From f0fac0d93f94f66f400b1c7910efde967efcdcdb Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 28 Dec 2024 16:15:13 +0100 Subject: [PATCH] Update Static CMS --- static-cms/v4/static-cms-app.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/static-cms/v4/static-cms-app.js b/static-cms/v4/static-cms-app.js index f748454..2850969 100644 --- a/static-cms/v4/static-cms-app.js +++ b/static-cms/v4/static-cms-app.js @@ -5,10 +5,10 @@ || ${s} === "boolean" || ${i} === null`).assign(l,a._`[${i}]`)}}r.else(),p(e),r.endIf(),r.if(a._`${l} !== undefined`,(()=>{r.assign(i,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${n}]`,r)))}(e,l)}))}(e,t,s):p(e)}))}return u};const c=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=l.Correct){const i=r===l.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${i} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return a._`typeof ${t} ${i} ${e}`}return r===l.Correct?o:(0,a.not)(o);function s(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function f(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let i;const o=(0,s.toHash)(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;i=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;o.number&&delete o.integer;for(const e in o)i=(0,a.and)(i,d(e,t,n,r));return i}t.checkDataType=d,t.checkDataTypes=f;const h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function p(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,s.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,h)}t.reportTypeError=p},68522:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(41783),i=n(30766);function o(e,t,n){const{gen:o,compositeRule:a,data:s,opts:l}=e;if(void 0===n)return;const u=r._`${s}${(0,r.getProperty)(t)}`;if(a)return void(0,i.checkStrictMode)(e,`default is ignored for: ${u}`);let c=r._`${u} === undefined`;"empty"===l.useDefaults&&(c=r._`${c} || ${u} === null || ${u} === ""`),o.if(c,r._`${u} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},8085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(97273),i=n(28066),o=n(46571),a=n(28066),s=n(68522),l=n(99094),u=n(6634),c=n(41783),d=n(23417),f=n(96561),h=n(30766),p=n(70009);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,c._`${d.default.data}, ${d.default.valCxt}`,r.$async,(()=>{e.code(c._`"use strict"; ${g(n,i)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,c._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,c._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,c._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,c._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,c._`""`),e.var(d.default.parentData,c._`undefined`),e.var(d.default.parentDataProperty,c._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`{}`)}))}(e,i),e.code(o)})):e.func(t,c._`${d.default.data}, ${function(e){return c._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?c._`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}(i)}`,r.$async,(()=>e.code(g(n,i)).code(o)))}function g(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?c._`/*# sourceURL=${n} */`:c.nil}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function O(e){return"boolean"!=typeof e.schema}function y(e){(0,h.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function b(e,t){if(e.opts.jtd)return k(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);k(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function w({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(c._`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=c.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(c._`${d.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function k(e,t,n,r){const{gen:i,schema:s,data:l,allErrors:u,opts:f,self:p}=e,{RULES:m}=p;function g(h){(0,o.shouldUseGroup)(s,h)&&(h.type?(i.if((0,a.checkDataType)(h.type,l,f.strictNumbers)),x(e,h),1===t.length&&t[0]===h.type&&n&&(i.else(),(0,a.reportTypeError)(e)),i.endIf()):x(e,h),u||i.if(c._`${d.default.errors} === ${r||0}`))}!s.$ref||!f.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(s,m)?(f.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{_(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)_(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&S(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)g(e);g(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function x(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,s.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&E(e,n.keyword,n.definition,t.type)}))}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){O(e)&&(y(e),v(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",c._`${n}.evaluated`),t.if(c._`${e.evaluated}.dynamicProps`,(()=>t.assign(c._`${e.evaluated}.props`,c._`undefined`))),t.if(c._`${e.evaluated}.dynamicItems`,(()=>t.assign(c._`${e.evaluated}.items`,c._`undefined`)))}(e),b(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(c._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(c._`new ${i}(${d.default.vErrors})`))):(t.assign(c._`${r}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign(c._`${t}.props`,n),r instanceof c.Name&&e.assign(c._`${t}.items`,r)}(e),t.return(c._`${d.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,n){if((0,l.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",$(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(c._`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=c.nil,t=c.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,c.or)(c._`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,c.or)(function(){if(n.length){if(!(t instanceof c.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return c._`${(0,a.checkDataTypes)(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return c._`!${n}(${t})`}return c.nil}())}subschema(e,t){const n=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(n,this.it,e),(0,u.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){O(e)&&(y(e),v(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&w(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",d.default.errors);b(e,o),r.var(t,c._`${o} === ${d.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=h.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=h.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,c.Name))),!0}}function E(e,t,n,r){const i=new P(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,l.funcKeywordCode)(i,n):"macro"in n?(0,l.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,l.funcKeywordCode)(i,n)}t.KeywordCxt=P;const C=/^\/(?:[^~]|~0|~1)*$/,T=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!C.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{const a=T.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(i=a[2],"#"===i){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(o=n[t-s],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=c._`${o}${(0,c.getProperty)((0,h.unescapeJsonPointer)(e))}`,a=c._`${a} && ${o}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=$},99094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(41783),i=n(23417),o=n(97562),a=n(70009);function s(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function l(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:a,it:s}=e,u=t.macro.call(s.self,o,a,s),c=l(n,i,u);!1!==s.opts.validateSchema&&s.self.validateSchema(u,!0);const d=n.name("valid");e.subschema({schema:u,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:h,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,t);const m=!h&&t.compile?t.compile.call(p.self,d,f,p):t.validate,g=l(u,c,m),v=u.let("valid");function O(n=(t.async?r._`await `:r.nil)){const a=p.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!h||!1===t.schema);u.assign(v,r._`${n}${(0,o.callValidateCode)(e,g,a,s)}`,t.modifying)}function y(e){var n;u.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:v),e)}e.block$data(v,(function(){if(!1===t.errors)O(),t.modifying&&s(e),y((()=>e.error()));else{const n=t.async?function(){const e=u.let("ruleErrs",null);return u.try((()=>O(r._`await `)),(t=>u.assign(v,!1).if(r._`${t} instanceof ${p.ValidationError}`,(()=>u.assign(e,r._`${t}.errors`)),(()=>u.throw(t))))),e}():function(){const e=r._`${g}.errors`;return u.assign(e,null),O(r.nil),e}();t.modifying&&s(e),y((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:v)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},6634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(41783),i=n(30766);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:l}=t;c(u.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${a}${(0,i.getErrorPath)(n,o,l.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}function c(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==a&&(c(a instanceof r.Name?a:u.let("data",a,!0)),void 0!==l&&(e.propertyName=l)),s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},8938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(8085);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(41783);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(17227),a=n(17907),s=n(59118),l=n(57153),u=n(41783),c=n(96561),d=n(28066),f=n(30766),h=n(17814),p=n(11582),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),O={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,n,r,i,o,a,s,l,u,c,d,f,h,g,v,O,y,b,w,k,x,_,S,P,E;const C=e.strict,T=null===(t=e.code)||void 0===t?void 0:t.optimize,$=!0===T||void 0===T?1:T||0,Q=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:m,R=null!==(i=e.uriResolver)&&void 0!==i?i:p.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:C)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:C)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:C)&&void 0!==c?c:"log",strictTuples:null!==(f=null!==(d=e.strictTuples)&&void 0!==d?d:C)&&void 0!==f?f:"log",strictRequired:null!==(g=null!==(h=e.strictRequired)&&void 0!==h?h:C)&&void 0!==g&&g,code:e.code?{...e.code,optimize:$,regExp:Q}:{optimize:$,regExp:Q},loopRequired:null!==(v=e.loopRequired)&&void 0!==v?v:200,loopEnum:null!==(O=e.loopEnum)&&void 0!==O?O:200,meta:null===(y=e.meta)||void 0===y||y,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(k=e.schemaId)&&void 0!==k?k:"$id",addUsedSchema:null===(x=e.addUsedSchema)||void 0===x||x,validateSchema:null===(_=e.validateSchema)||void 0===_||_,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(E=e.int32range)||void 0===E||E,uriResolver:R}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:t,lines:n}),this.logger=function(e){if(!1===e)return C;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),k.call(this,O,e,"NOT SUPPORTED"),k.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=E.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),_.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=h;"id"===n&&(r={...h},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await u.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new l.SchemaEnv({schema:{},schemaId:n});if(t=l.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,c.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if($.call(this,n,t),!t)return(0,f.eachItem)(n,(e=>Q.call(this,e))),this;A.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(n,0===r.type.length?e=>Q.call(this,e,r):e=>r.type.forEach((t=>Q.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=D(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;n=(0,c.normalizeId)(o||n);const u=c.getSchemaRefs.call(this,e,n);return s=new l.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:u}),this._cache.set(s.schema,s),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function k(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function _(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function S(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function P(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function E(){const e={...this.opts};for(const t of g)delete e[t];return e}w.ValidationError=o.default,w.MissingRefError=a.default,t.default=w;const C={log(){},warn(){},error(){}},T=/^[a-z_$][a-z0-9_$:-]*$/i;function $(e,t){const{RULES:n}=this;if((0,f.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!T.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function Q(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?R.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function R(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function A(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=D(t)),e.validateSchema=this.compile(t,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function D(e){return{anyOf:[e,j]}}},83932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28926);r.code='require("ajv/dist/runtime/equal").default',t.default=r},73485:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17267);r.code='require("ajv/dist/runtime/uri").default',t.default=r},17227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},69232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(41783),i=n(30766),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:o,data:a,keyword:s,it:l}=e;l.items=!0;const u=n.const("len",r._`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${u} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(l,o)){const o=n.var("valid",r._`${u} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,u,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},o),l.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=a,t.default=o},34223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97562),i=n(41783),o=n(23417),a=n(30766),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:l,errsCount:u,it:c}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:d,opts:f}=c;if(c.props=!0,"all"!==f.removeAdditional&&(0,a.alwaysValidSchema)(c,n))return;const h=(0,r.allSchemaProperties)(s.properties),p=(0,r.allSchemaProperties)(s.patternProperties);function m(e){t.code(i._`delete ${l}[${e}]`)}function g(r){if("all"===f.removeAdditional||f.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!(0,a.alwaysValidSchema)(c,n)){const n=t.name("valid");"failing"===f.removeAdditional?(v(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),m(r)}))):(v(r,n),d||t.if((0,i.not)(n),(()=>t.break())))}}}function v(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",l,(n=>{h.length||p.length?t.if(function(n){let o;if(h.length>8){const e=(0,a.schemaRefOrVal)(c,s.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=h.length?(0,i.or)(...h.map((e=>i._`${n} === ${e}`))):i.nil;return p.length&&(o=(0,i.or)(o,...p.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>g(n))):g(n)})),e.ok(i._`${u} === ${o.default.errors}`)}};t.default=s},16415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30766),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(a)}))}};t.default=i},41666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(97562).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},25389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:a,it:s}=e;let l,u;const{minContains:c,maxContains:d}=o;s.opts.next?(l=void 0===c?1:c,u=d):l=1;const f=t.const("len",r._`${a}.length`);if(e.setParams({min:l,max:u}),void 0===u&&0===l)return void(0,i.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&l>u)return(0,i.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(s,n)){let t=r._`${f} >= ${l}`;return void 0!==u&&(t=r._`${t} && ${f} <= ${u}`),void e.pass(t)}s.items=!0;const h=t.name("valid");function p(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===u?t.if(r._`${e} >= ${l}`,(()=>t.assign(h,!0).break())):(t.if(r._`${e} > ${u}`,(()=>t.assign(h,!1).break())),1===l?t.assign(h,!0):t.if(r._`${e} >= ${l}`,(()=>t.assign(h,!0))))}(n)))))}function m(n,r){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===u&&1===l?m(h,(()=>t.if(h,(()=>t.break())))):0===l?(t.let(h,!0),void 0!==u&&t.if(r._`${a}.length > 0`,p)):(t.let(h,!1),p()),e.result(h,(()=>e.reset()))}};t.default=o},41261:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(41783),i=n(30766),o=n(97562);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e}, missingProperty: ${i}, depsCount: ${t}, - deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);s(e,t),l(e,n)}};function s(e,t=e.schema){const{gen:n,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const l in t){const u=t[l];if(0===u.length)continue;const c=(0,o.propertyInData)(n,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),a.allErrors?n.if(c,(()=>{for(const t of u)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${c} && (${(0,o.checkMissingProp)(e,u,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const u in t)(0,i.alwaysValidSchema)(s,t[u])||(n.if((0,o.propertyInData)(n,r,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>n.var(l,!0))),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},34122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),l=a(o,"else");if(!s&&!l)return;const u=t.let("valid",!0),c=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(c,d("then",n),d("else",n))}else s?t.if(c,d("then")):t.if((0,r.not)(c),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},c);t.assign(u,c),e.mergeValidEvaluated(o,u),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(u,(()=>e.error(!0)))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},77869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69232),i=n(86025),o=n(47229),a=n(79429),s=n(25389),l=n(41261),u=n(78961),c=n(34223),d=n(10477),f=n(12658),h=n(19752),p=n(41666),m=n(59037),g=n(16415),v=n(34122),O=n(14666);t.default=function(e=!1){const t=[h.default,p.default,m.default,g.default,v.default,O.default,u.default,c.default,l.default,d.default,f.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},47229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(41783),i=n(30766),o=n(97562),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:l,it:u}=e;!function(e){const{opts:r,errSchemaPath:o}=u,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(u,e,r.strictTuples)}}(a),u.opts.unevaluated&&n.length&&!0!==u.items&&(u.items=i.mergeEvaluated.items(o,n.length,u.items));const c=o.name("valid"),d=o.const("len",r._`${s}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(u,t)||(o.if(r._`${d} > ${n}`,(()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},c))),e.ok(c))}))}t.validateTuple=s,t.default=a},79429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o=n(97562),a=n(69232),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(s?(0,a.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=s},19752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30766),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},59037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,l=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block((function(){s.forEach(((n,o)=>{let s;(0,i.alwaysValidSchema)(a,n)?t.var(c,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},c),o>0&&t.if(r._`${c} && ${l}`).assign(l,!1).assign(u,r._`[${u}, ${o}]`).else(),t.if(c,(()=>{t.assign(l,!0),t.assign(u,o),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(l,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},12658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97562),i=n(41783),o=n(30766),a=n(30766),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:u}=e,{opts:c}=u,d=(0,r.allSchemaProperties)(n),f=d.filter((e=>(0,o.alwaysValidSchema)(u,n[e])));if(0===d.length||f.length===d.length&&(!u.opts.unevaluated||!0===u.props))return;const h=c.strictSchema&&!c.allowMatchingProperties&&l.properties,p=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=(0,a.evaluatedPropsToName)(t,u.props));const{props:m}=u;function g(e){for(const t in h)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(n){t.forIn("key",s,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=f.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},p),u.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||u.allErrors||t.if((0,i.not)(p),(()=>t.break()))}))}))}!function(){for(const e of d)h&&g(e),u.allErrors?v(e):(t.var(p,!0),v(e),t.if(p))}()}};t.default=s},86025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(47229),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},10477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8085),i=n(97562),o=n(30766),a=n(34223),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:u}=e;"all"===u.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(u,a.default,"additionalProperties"));const c=(0,i.allSchemaProperties)(n);for(const e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,(0,o.toHash)(c),u.props));const d=c.filter((e=>!(0,o.alwaysValidSchema)(u,n[e])));if(0===d.length)return;const f=t.name("valid");for(const n of d)h(n)?p(n):(t.if((0,i.propertyInData)(t,l,n,u.opts.ownProperties)),p(n),u.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function h(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==n[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=s},78961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,n))return;const s=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(s)}};t.default=o},14666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30766),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},97562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(41783),i=n(30766),o=n(23417),a=n(30766);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function l(e,t,n){return r._`${s(e)}.call(${t}, ${n})`}function u(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(l(e,t,n))):o}function c(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(u(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(u(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=l,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${l(e,t,n)}`:o},t.noPropertyInData=u,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},u,c,d){const f=d?r._`${e}, ${t}, ${i}${a}`:t,h=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const p=r._`${f}, ${n.object(...h)}`;return c!==r.nil?r._`${u}.call(${c}, ${p})`:r._`${u}(${p})`};const d=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(n,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:r._`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l((()=>t.assign(e,!1))),e}return t.var(s,!0),l((()=>t.break())),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if((0,r.not)(s),a)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`),e.mergeValidEvaluated(a,l)||t.if((0,r.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},11118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},26030:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11118),i=n(49340),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},49340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(17907),i=n(97562),o=n(41783),a=n(23417),s=n(57153),l=n(30766),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:l,validateName:u,opts:f,self:h}=i,{root:p}=l;if(("#"===n||"#/"===n)&&a===p.baseId)return function(){if(l===p)return d(e,u,l,l.$async);const n=t.scopeValue("root",{ref:p});return d(e,o._`${n}.validate`,p,p.$async)}();const m=s.resolveRef.call(h,p,a,n);if(void 0===m)throw new r.default(i.opts.uriResolver,a,n);return m instanceof s.SchemaEnv?function(t){const n=c(e,t);d(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===f.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(m)}};function c(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:u}=e,{allErrors:c,schemaEnv:d,opts:f}=u,h=f.passContext?a.default.this:o.nil;function p(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(r&&!r.dynamicProps)void 0!==r.props&&(u.props=l.mergeEvaluated.props(s,r.props,u.props));else{const t=s.var("props",o._`${e}.evaluated.props`);u.props=l.mergeEvaluated.props(s,t,u.props,o.Name)}if(!0!==u.items)if(r&&!r.dynamicItems)void 0!==r.items&&(u.items=l.mergeEvaluated.items(s,r.items,u.items));else{const t=s.var("items",o._`${e}.evaluated.items`);u.items=l.mergeEvaluated.items(s,t,u.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(o._`await ${(0,i.callValidateCode)(e,t,h)}`),m(t),c||s.assign(n,!0)}),(e=>{s.if(o._`!(${e} instanceof ${u.ValidationError})`,(()=>s.throw(e))),p(e),c||s.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,h),(()=>m(t)),(()=>p(t)))}t.getValidate=c,t.callRef=d,t.default=u},29889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(66172),o=n(57153),a=n(17907),s=n(30766),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:l,parentSchema:u,it:c}=e,{oneOf:d}=u;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=l.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),p=t.const("tag",r._`${n}${(0,r.getProperty)(f)}`);function m(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${p} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(u);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:f}))),e.ok(h)}};t.default=l},66172:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(n||(t.DiscrError=n={}))},26615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(26030),i=n(45157),o=n(77869),a=n(74233),s=n(75990),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},48545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:l}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:f}=l;u.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:f.formats,code:u.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),l=n.let("fType"),c=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(l,r._`${a}.type || "string"`).assign(c,r._`${a}.validate`)),(()=>n.assign(l,r._`"string"`).assign(c,a))),e.fail$data((0,r.or)(!1===u.strictSchema?r.nil:r._`${s} && !${c}`,function(){const e=d.$async?r._`(${a}.async ? await ${c}(${i}) : ${c}(${i}))`:r._`${c}(${i})`,n=r._`(typeof ${c} == "function" ? ${e} : ${c}.test(${i}))`;return r._`${c} && ${c} !== true && ${l} === ${t} && !${n}`}()))}():function(){const o=f.formats[a];if(!o)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}f.logger.warn(e())}();if(!0===o)return;const[s,l,h]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):u.code.formats?r._`${u.code.formats}${(0,r.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${h}(${i})`}return"function"==typeof l?r._`${h}(${i})`:r._`${h}.test(${i})`}())}())}};t.default=i},74233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(48545).default];t.default=r},75990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},29916:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o=n(83932),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${s})`):e.fail(r._`${l} !== ${n}`)}};t.default=a},47880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o=n(83932),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:u}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const c=s.length>=u.opts.loopEnum;let d;const f=()=>null!=d?d:d=(0,i.useFunc)(t,o.default);let h;if(c||a)h=t.let("valid"),e.block$data(h,(function(){t.assign(h,!1),t.forOf("v",l,(e=>t.if(r._`${f()}(${n}, ${e})`,(()=>t.assign(h,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);h=(0,r.or)(...s.map(((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?r._`${f()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(h)}};t.default=a},45157:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(76741),i=n(53849),o=n(54010),a=n(17834),s=n(19354),l=n(22598),u=n(52367),c=n(38521),d=n(29916),f=n(47880),h=[r.default,i.default,o.default,a.default,s.default,l.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=h},52367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},54010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o=n(73485),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,u=!1===s.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${u} ${l} ${a}`)}};t.default=a},76741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},19354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},53849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${l}))`)}};t.default=i},17834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97562),i=n(41783),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:a,it:s}=e,l=s.opts.unicodeRegExp?"u":"",u=n?i._`(new RegExp(${a}, ${l}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${u}.test(${t})`)}};t.default=o},22598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97562),i=n(41783),o=n(30766),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:u}=e,{opts:c}=u;if(!l&&0===n.length)return;const d=n.length>=c.loopRequired;if(u.allErrors?function(){if(d||l)e.block$data(i.nil,f);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||l){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,(()=>{t.assign(o,(0,r.propertyInData)(t,s,n,c.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),c.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(u,t,u.opts.strictRequired)}}function f(){t.forOf("prop",a,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,s,n,c.ownProperties),(()=>e.error()))}))}}};t.default=a},38521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28066),i=n(41783),o=n(30766),a=n(83932),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:u,schemaCode:c,it:d}=e;if(!s&&!l)return;const f=t.let("valid"),h=u.items?(0,r.getSchemaTypes)(u.items):[];function p(o,a){const s=t.name("item"),l=(0,r.checkDataTypes)(h,s,d.opts.strictNumbers,r.DataType.Wrong),u=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(s,i._`${n}[${o}]`),t.if(l,i._`continue`),h.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${u}[${s}] == "number"`,(()=>{t.assign(a,i._`${u}[${s}]`),e.error(),t.assign(f,!1).break()})).code(i._`${u}[${s}] = ${o}`)}))}function m(r,s){const l=(0,o.useFunc)(t,a.default),u=t.name("outer");t.label(u).for(i._`;${r}--;`,(()=>t.for(i._`${s} = ${r}; ${s}--;`,(()=>t.if(i._`${l}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(f,!1).break(u)}))))))}e.block$data(f,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(f,!0),t.if(i._`${r} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?p:m)(r,o)))}),i._`${c} === false`),e.ok(f)}};t.default=s},79218:(e,t,n)=>{"use strict";const r=n(17086),i=n(98329),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||G(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function O(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return k(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){F(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function D(e,t,n,r,i){F(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||R(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||A(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||A(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=K((function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=K((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=K((function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=K((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function F(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new W.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||X(t,e.length-(n+1))}(r,i,o)}function U(e,t){if("number"!=typeof e)throw new W.ERR_INVALID_ARG_TYPE(t,"number",e)}function X(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new W.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new W.ERR_BUFFER_OUT_OF_BOUNDS;throw new W.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}N("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),N("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),N("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=L(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=L(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function B(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}const H=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},37740:(e,t,n)=>{var r=n(48494);const{hasOwnProperty:i}=Object.prototype,o=(e,t={})=>{"string"==typeof t&&(t={section:t}),t.align=!0===t.align,t.newline=!0===t.newline,t.sort=!0===t.sort,t.whitespace=!0===t.whitespace||!0===t.align,t.platform=t.platform||void 0!==r&&r.platform,t.bracketedArray=!1!==t.bracketedArray;const n="win32"===t.platform?"\r\n":"\n",i=t.whitespace?" = ":"=",s=[],l=t.sort?Object.keys(e).sort():Object.keys(e);let c=0;t.align&&(c=u(l.filter((t=>null===e[t]||Array.isArray(e[t])||"object"!=typeof e[t])).map((t=>Array.isArray(e[t])?`${t}[]`:t)).concat([""]).reduce(((e,t)=>u(e).length>=u(t).length?e:t))).length);let d="";const f=t.bracketedArray?"[]":"";for(const t of l){const r=e[t];if(r&&Array.isArray(r))for(const e of r)d+=u(`${t}${f}`).padEnd(c," ")+i+u(e)+n;else r&&"object"==typeof r?s.push(t):d+=u(t).padEnd(c," ")+i+u(r)+n}t.section&&d.length&&(d="["+u(t.section)+"]"+(t.newline?n+n:n)+d);for(const r of s){const i=a(r,".").join("\\."),s=(t.section?t.section+".":"")+i,l=o(e[r],{...t,section:s});d.length&&l.length&&(d+=n),d+=l}return d};function a(e,t){var n=0,r=0,i=0,o=[];do{if(-1!==(i=e.indexOf(t,n))){if(n=i+t.length,i>0&&"\\"===e[i-1])continue;o.push(e.slice(r,i)),r=i+t.length}}while(-1!==i);return o.push(e.slice(r)),o}const s=(e,t={})=>{t.bracketedArray=!1!==t.bracketedArray;const n=Object.create(null);let r=n,o=null;const s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=e.split(/[\r\n]+/g),u={};for(const e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;const a=e.match(s);if(!a)continue;if(void 0!==a[1]){if(o=c(a[1]),"__proto__"===o){r=Object.create(null);continue}r=n[o]=n[o]||Object.create(null);continue}const l=c(a[2]);let d;t.bracketedArray?d=l.length>2&&"[]"===l.slice(-2):(u[l]=(u?.[l]||0)+1,d=u[l]>1);const f=d?l.slice(0,-2):l;if("__proto__"===f)continue;const h=!a[3]||c(a[4]),p="true"===h||"false"===h||"null"===h?JSON.parse(h):h;d&&(i.call(r,f)?Array.isArray(r[f])||(r[f]=[r[f]]):r[f]=[]),Array.isArray(r[f])?r[f].push(p):r[f]=p}const d=[];for(const e of Object.keys(n)){if(!i.call(n,e)||"object"!=typeof n[e]||Array.isArray(n[e]))continue;const t=a(e,".");r=n;const o=t.pop(),s=o.replace(/\\\./g,".");for(const e of t)"__proto__"!==e&&(i.call(r,e)&&"object"==typeof r[e]||(r[e]=Object.create(null)),r=r[e]);r===n&&s===o||(r[s]=n[e],d.push(e))}for(const e of d)delete n[e];return n},l=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),u=e=>"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&l(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),c=(e,t)=>{if(e=(e||"").trim(),!l(e)){let t=!1,n="";for(let r=0,i=e.length;r{},68906:()=>{},31783:()=>{},60449:()=>{},53260:()=>{},74854:()=>{},66602:()=>{},43013:(e,t,n)=>{"use strict";var r=n(65205),i=n(34537),o=r("%TypeError%"),a=n(14337),s=r("%Reflect.apply%",!0)||i("Function.prototype.apply");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!a(n))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,n)}},46314:(e,t,n)=>{"use strict";var r=n(65205)("%TypeError%"),i=n(45290),o=n(7506),a=n(95629);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+i(t));return e[t]}},15798:(e,t,n)=>{"use strict";var r=n(65205)("%TypeError%"),i=n(7506),o=n(95629);e.exports=function(e,t){if("Object"!==o(e))throw new r("Assertion failed: `O` must be an Object");if(!i(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},14337:(e,t,n)=>{"use strict";e.exports=n(42362)},49780:(e,t,n)=>{"use strict";e.exports=n(68416)},7506:e=>{"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},66435:(e,t,n)=>{"use strict";var r=n(65205)("%TypeError%"),i=n(46314),o=n(63533),a=n(95629);e.exports=function(e){if("Object"!==a(e))throw new r("Assertion failed: `obj` must be an Object");return o(i(e,"length"))}},46864:(e,t,n)=>{"use strict";e.exports=n(83401)},97511:(e,t,n)=>{"use strict";var r=n(65205),i=r("%Number%"),o=r("%RegExp%"),a=r("%TypeError%"),s=r("%parseInt%"),l=n(34537),u=n(33073),c=l("String.prototype.slice"),d=u(/^0b[01]+$/i),f=u(/^0o[0-7]+$/i),h=u(/^[-+]0x[0-9a-f]+$/i),p=u(new o("["+["…","​","￾"].join("")+"]","g")),m=n(55581),g=n(95629);e.exports=function e(t){if("String"!==g(t))throw new a("Assertion failed: `argument` is not a String");if(d(t))return i(s(c(t,2),2));if(f(t))return i(s(c(t,2),8));if(p(t)||h(t))return NaN;var n=m(t);return n!==t?e(n):i(t)}},87388:(e,t,n)=>{"use strict";var r=n(68969),i=n(80946),o=n(86288),a=n(98477),s=n(69777),l=n(35687);e.exports=function(e){var t=o(e);if(a(t)||0===t)return 0;if(!s(t))return t;var n=i(r(t));return 0===n?0:l(t)*n}},63533:(e,t,n)=>{"use strict";var r=n(50966),i=n(87388);e.exports=function(e){var t=i(e);return t<=0?0:t>r?r:t}},86288:(e,t,n)=>{"use strict";var r=n(65205),i=r("%TypeError%"),o=r("%Number%"),a=n(12533),s=n(61880),l=n(97511);e.exports=function(e){var t=a(e)?e:s(e,o);if("symbol"==typeof t)throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?l(t):o(t)}},34805:(e,t,n)=>{"use strict";var r=n(65205)("%Object%"),i=n(46864);e.exports=function(e){return i(e),r(e)}},61880:(e,t,n)=>{"use strict";var r=n(67255);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},38779:(e,t,n)=>{"use strict";var r=n(65205),i=r("%String%"),o=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new o("Cannot convert a Symbol value to a string");return i(e)}},95629:(e,t,n)=>{"use strict";var r=n(62310);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},68969:(e,t,n)=>{"use strict";var r=n(65205)("%Math.abs%");e.exports=function(e){return r(e)}},80946:(e,t,n)=>{"use strict";var r=n(95629),i=Math.floor;e.exports=function(e){return"BigInt"===r(e)?e:i(e)}},83401:(e,t,n)=>{"use strict";var r=n(65205)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},62310:e=>{"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},42362:(e,t,n)=>{"use strict";var r=n(65205)("%Array%"),i=!r.isArray&&n(34537)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===i(e)}},69777:(e,t,n)=>{"use strict";var r=n(98477);e.exports=function(e){return("number"==typeof e||"bigint"==typeof e)&&!r(e)&&e!==1/0&&e!==-1/0}},98477:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},12533:e=>{"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},50966:(e,t,n)=>{"use strict";var r=n(65205),i=r("%Math%"),o=r("%Number%");e.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},35687:e=>{"use strict";e.exports=function(e){return e>=0?1:-1}},17267:(e,t,n)=>{"use strict";const{normalizeIPv6:r,normalizeIPv4:i,removeDotSegments:o,recomposeAuthority:a,normalizeComponentEncoding:s}=n(30018),l=n(93369);function u(e,t,n,r){const i={};return r||(e=h(c(e,n),n),t=h(c(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=o(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=o(t.path||""),i.query=t.query):(t.path?("/"===t.path.charAt(0)?i.path=o(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=o(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function c(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},t),i=[],s=l[(r.scheme||n.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(n,r),void 0!==n.path&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==r.reference&&n.scheme&&i.push(n.scheme,":");const u=a(n,r);if(void 0!==u&&("suffix"!==r.reference&&i.push("//"),i.push(u),n.path&&"/"!==n.path.charAt(0)&&i.push("/")),void 0!==n.path){let e=n.path;r.absolutePath||s&&s.absolutePath||(e=o(e)),void 0===u&&(e=e.replace(/^\/\//u,"/%2F")),i.push(e)}return void 0!==n.query&&i.push("?",n.query),void 0!==n.fragment&&i.push("#",n.fragment),i.join("")}const d=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)))),f=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function h(e,t){const n=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=-1!==e.indexOf("%");let s=!1;"suffix"===n.reference&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const u=e.match(f);if(u){if(o.scheme=u[1],o.userinfo=u[3],o.host=u[4],o.port=parseInt(u[5],10),o.path=u[6]||"",o.query=u[7],o.fragment=u[8],isNaN(o.port)&&(o.port=u[5]),o.host){const e=i(o.host);if(!1===e.isIPV4){const t=r(e.host,{isIPV4:!1});o.host=t.host.toLowerCase(),s=t.isIPV6}else o.host=e.host,s=!0}void 0!==o.scheme||void 0!==o.userinfo||void 0!==o.host||void 0!==o.port||o.path||void 0!==o.query?void 0===o.scheme?o.reference="relative":void 0===o.fragment?o.reference="absolute":o.reference="uri":o.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==o.reference&&(o.error=o.error||"URI is not a "+n.reference+" reference.");const e=l[(n.scheme||o.scheme||"").toLowerCase()];if(!(n.unicodeSupport||e&&e.unicodeSupport)&&o.host&&(n.domainHost||e&&e.domainHost)&&!1===s&&function(e){let t=0;for(let n=0,r=e.length;n126||d[t])return!0;return!1}(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(e){o.error=o.error||"Host's domain name can not be converted to ASCII: "+e}(!e||e&&!e.skipNormalize)&&(a&&void 0!==o.scheme&&(o.scheme=unescape(o.scheme)),a&&void 0!==o.host&&(o.host=unescape(o.host)),void 0!==o.path&&o.path.length&&(o.path=escape(unescape(o.path))),void 0!==o.fragment&&o.fragment.length&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),e&&e.parse&&e.parse(o,n)}else o.error=o.error||"URI can not be parsed.";return o}const p={SCHEMES:l,normalize:function(e,t){return"string"==typeof e?e=c(h(e,t),t):"object"==typeof e&&(e=h(c(e,t),t)),e},resolve:function(e,t,n){const r=Object.assign({scheme:"null"},n);return c(u(h(e,r),h(t,r),r,!0),{...r,skipEscape:!0})},resolveComponents:u,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=c(s(h(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=c(s(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=c(s(h(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=c(s(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:c,parse:h};e.exports=p,e.exports.default=p,e.exports.fastUri=p},93369:e=>{"use strict";const t=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,n=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}function i(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function o(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const a={scheme:"http",domainHost:!0,parse:i,serialize:o},s={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=r(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(r(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}},l={http:a,https:{scheme:"https",domainHost:a.domainHost,parse:i,serialize:o},ws:s,wss:{scheme:"wss",domainHost:s.domainHost,parse:s.parse,serialize:s.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(n);if(r){const n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const i=`${n}:${t.nid||e.nid}`,o=l[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),i=`${n}:${t.nid||r}`,o=l[i];o&&(e=o.serialize(e,t));const a=e,s=e.nss;return a.path=`${r||t.nid}:${s}`,t.skipEscape=!0,a},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,n){const r=e;return r.uuid=r.nss,r.nss=void 0,n.tolerant||r.uuid&&t.test(r.uuid)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};e.exports=l},98857:e=>{"use strict";e.exports={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}},30018:(e,t,n)=>{"use strict";const{HEX:r}=n(98857);function i(e){if(l(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[n]=t;return n?{host:s(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function o(e,t=!1){let n="",i=!0;for(const t of e){if(void 0===r[t])return;"0"!==t&&!0===i&&(i=!1),i||(n+=t)}return t&&0===n.length&&(n="0"),n}function a(e,t={}){if(l(e,":")<2)return{host:e,isIPV6:!1};const n=function(e){let t=0;const n={error:!1,address:"",zone:""},r=[],i=[];let a=!1,s=!1,l=!1;function u(){if(i.length){if(!1===a){const e=o(i);if(void 0===e)return n.error=!0,!1;r.push(e)}i.length=0}return!0}for(let o=0;o7){n.error=!0;break}o-1>=0&&":"===e[o-1]&&(s=!0)}}return i.length&&(a?n.zone=i.join(""):l?r.push(i.join("")):r.push(o(i))),n.address=r.join(""),n}(e);if(n.error)return{host:e,isIPV6:!1};{let e=n.address,t=n.address;return n.zone&&(e+="%"+n.zone,t+="%25"+n.zone),{host:e,escapedHost:t,isIPV6:!0}}}function s(e,t){let n="",r=!0;const i=e.length;for(let o=0;o{"use strict";n.d(t,{B1:()=>_e,GA:()=>me,Gn:()=>re,Mb:()=>l,TK:()=>a,eC:()=>u,vQ:()=>ue,ys:()=>xe});var r=n(30638),i=n(87283),o=n(72107);class a{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,o.qz)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(f(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function s(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function l(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function u(e,t){return n=>{for(let t=(0,o.qz)(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class c{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function d(e){return e.selection.main.from}function f(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const h=r.q6.define(),p=new WeakMap;function m(e){if(!Array.isArray(e))return e;let t=p.get(e);return t||p.set(e,t=l(e)),t}const g=r.Py.define(),v=r.Py.define();class O{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&u<=57||u>=97&&u<=122?2:u>=65&&u<=90?1:0:(y=(0,r.bg)(u))!=y.toLowerCase()?1:y!=y.toUpperCase()?2:0;(!i||1==b&&g||0==O&&0!=b)&&(t[d]==u||n[d]==u&&(f=!0)?a[d++]=i:a.length&&(v=!1)),O=b,i+=(0,r.nZ)(u)}return d==l&&0==a[0]&&v?this.result((f?-200:0)-100,a,e):h==l&&0==p?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):h==l?this.ret(-900-e.length,[p,m]):d==l?this.result((f?-200:0)-100-700+(v?0:-1100),a,e):2!=t.length&&this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[],o=0;for(let e of t){let t=e+(this.astral?(0,r.nZ)((0,r.gm)(n,e)):1);o&&i[o-1]==e?i[o-1]=t:(i[o++]=e,i[o++]=t)}return this.ret(e-n.length,i)}}const y=r.r$.define({combine:e=>(0,r.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:w,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>b(e(n),t(n)),optionClass:(e,t)=>n=>b(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function b(e,t){return e?t?e+" "+t:e:t}function w(e,t,n,r,o,a){let s,l,u=e.textDirection==i.Nm.RTL,c=u,d=!1,f="top",h=t.left-o.left,p=o.right-t.right,m=r.right-r.left,g=r.bottom-r.top;if(c&&h=g||e>t.top?s=n.bottom-t.top:(f="bottom",s=t.bottom-n.top)}return{style:`${f}: ${s/((t.bottom-t.top)/a.offsetHeight)}px; max-width: ${l/((t.right-t.left)/a.offsetWidth)}px`,class:"cm-completionInfo-"+(d?u?"left-narrow":"right-narrow":c?"left":"right")}}function k(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class x{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,a=e.state.facet(y);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n){let r=document.createElement("span");r.className="cm-completionLabel";let i=e.displayLabel||e.label,o=0;for(let e=0;eo&&r.appendChild(document.createTextNode(i.slice(o,t)));let s=r.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(i.slice(t,a))),s.className="cm-completionMatchedText",o=a}return oe.position-t.position)).map((e=>e.render))}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=k(i.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(t=>{for(let n,r=t.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(n=/-(\d+)$/.exec(r.id))&&+n[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(y).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:v.of(null)})})),this.list=this.dom.appendChild(this.createListBox(i,r.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}mount(){this.updateSel()}update(e){var t,n,r;let i=e.state.field(this.stateField),o=e.startState.field(this.stateField);this.updateTooltipClass(e.state),i!=o&&(this.updateSel(),(null===(t=i.open)||void 0===t?void 0:t.disabled)!=(null===(n=o.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(null===(r=i.open)||void 0===r?void 0:r.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=k(t.options.length,t.selected,this.view.state.facet(y).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let o="string"==typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>(0,i.OO)(this.view.state,e,"completion info"))):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottomn.from||0==n.from)&&(i=e,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=e)}const u=r.appendChild(document.createElement("li"));u.id=t+"-"+o,u.setAttribute("role","option");let c=this.optionClass(a);c&&(u.className=c);for(let e of this.optionContent){let t=e(a,this.view.state,s);t&&u.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew x(n,e,t)}function S(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class P{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new P(this.options,T(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i){let o=function(e,t){let n=[],r=null,i=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some((t=>t.name==e))||r.push("string"==typeof t?{name:e}:t)}};for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(!1===r.result.filter)for(let t of r.result.options)i(new c(t,r.source,e?e(t):[],1e9-n.length));else{let n=new O(t.sliceDoc(r.from,r.to));for(let t of r.result.options)if(n.match(t.label)){let o=t.displayLabel?e?e(t,n.matched):[]:n.matched;i(new c(t,r.source,o,n.score+(t.boost||0)))}}}if(r){let e=Object.create(null),t=0,i=(e,t)=>{var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.namet.score-e.score||s(e.completion,t.completion)))){let t=e.completion;!a||a.label!=t.label||a.detail!=t.detail||null!=a.type&&null!=t.type&&a.type!=t.type||a.apply!=t.apply||a.boost!=t.boost?o.push(e):S(e.completion)>S(a)&&(o[o.length-1]=e),a=e.completion}return o}(e,t);if(!o.length)return r&&e.some((e=>1==e.state))?new P(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let a=t.facet(y).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:_(M,I),above:i.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new P(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class E{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new E($,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(y),r=(n.override||t.languageDataAt("autocomplete",d(t)).map(m)).map((t=>(this.active.find((e=>e.source==t))||new R(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n1==e.state))&&(i=null),!i&&r.every((e=>1!=e.state))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new R(e.source,0):e)));for(let t of e.effects)t.is(D)&&(i=i&&i.setSelected(t.value,this.id));return r==this.active&&i==this.open?this:new E(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:C}}const C={"aria-autocomplete":"list"};function T(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const $=[];function Q(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class R{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=Q(e),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new R(r.source,0));for(let t of e.effects)if(t.is(g))r=new R(r.source,1,t.value?d(e.state):-1);else if(t.is(v))r=new R(r.source,0);else if(t.is(j))for(let e of t.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new R(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(d(e.startState))?new R(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new R(this.source,this.state,e.mapPos(this.explicitPos))}}class A extends R{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=d(e.state);if((this.explicitPos<0?s<=i:so||"delete"==t&&d(e.startState)==this.from)return new R(this.source,"input"==t&&n.activateOnTyping?1:0);let l,u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):f(e,!0).test(i)}(this.result.validFor,e.state,i,o)?new A(this.source,u,this.result,i,o):this.result.update&&(l=this.result.update(this.result,i,o,new a(e.state,s,u>=0)))?new A(this.source,u,l,l.from,null!==(r=l.to)&&void 0!==r?r:d(e.state)):new R(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new R(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new A(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const j=r.Py.define({map:(e,t)=>e.map((e=>e.map(t)))}),D=r.Py.define(),M=r.QQ.define({create:()=>E.start(),update:(e,t)=>e.update(t),provide:e=>[i.hJ.from(e,(e=>e.tooltip)),i.tk.contentAttributes.from(e,(e=>e.attrs))]});function I(e,t){const n=t.completion.apply||t.completion.label;let i=e.state.field(M).active.find((e=>e.source==t.source));return i instanceof A&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:o}=e.selection,a=n-o.from,s=i-o.from;return Object.assign(Object.assign({},e.changeByRange((l=>l!=o&&n!=i&&e.sliceDoc(l.from+a,l.from+s)!=e.sliceDoc(n,i)?{range:l}:{changes:{from:l.from+a,to:i==o.from?l.to:l.from+s,insert:t},range:r.jT.cursor(l.from+a+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:h.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}function z(e,t="option"){return n=>{let r=n.state.field(M,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+a*(e?1:-1):e?0:s-1;return l<0?l="page"==t?0:s-1:l>=s&&(l="page"==t?s-1:0),n.dispatch({effects:D.of(l)}),!0}}class W{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const N=i.lg.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(M).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(M);if(!e.selectionSet&&!e.docChanged&&e.startState.field(M)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!Q(e)));for(let t=0;t50&&Date.now()-r.time>1e3){for(let e of r.context.abortListeners)try{e()}catch(e){(0,i.OO)(this.view.state,e)}r.context.abortListeners=null,this.running.splice(t--,1)}else r.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let t of e.transactions)"input"==Q(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(M);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,n=d(t),r=new a(t,n,e.explicitPos==n),o=new W(e,r);this.running.push(o),Promise.resolve(e.source(r)).then((e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:v.of(null)}),(0,i.OO)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(y);for(let r=0;re.source==i.active.source));if(o&&1==o.state)if(null==i.done){let e=new R(i.active.source,0);for(let t of i.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:j.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(M,!1);if(t&&t.tooltip&&this.view.state.facet(y).closeOnBlur){let n=t.open&&(0,i.gB)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:v.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:g.of(!1)})),20),this.composing=0}}}),L=i.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class F{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class U{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,r.gc.TrackDel),n=e.mapPos(this.to,1,r.gc.TrackDel);return null==t||null==n?null:new U(this.field,t,n)}}class X{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=a,s=/^\t*/.exec(i)[0].length;for(let t=0;tnew U(e.field,r[e.line]+e.from,r[e.line]+e.to)));return{text:n,ranges:s}}static parse(e){let t,n=[],r=[],i=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let e=t[1]?+t[1]:null,a=t[2]||t[3]||"",s=-1;for(let t=0;t=s&&e.field++}i.push(new F(s,r.length,t.index,t.index+a.length)),o=o.slice(0,t.index)+a+o.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(o);){o=o.slice(0,e.index)+e[1]+o.slice(e.index+e[0].length);for(let t of i)t.line==r.length&&t.from>e.index&&(t.from--,t.to--)}r.push(o)}return new X(r,i)}}let q=i.p.widget({widget:new class extends i.l9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),B=i.p.mark({class:"cm-snippetField"});class V{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.p.set(e.map((e=>(e.from==e.to?q:B).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new V(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Y=r.Py.define({map:(e,t)=>e&&e.map(t)}),Z=r.Py.define(),G=r.QQ.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Y))return n.value;if(n.is(Z)&&e)return new V(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.tk.decorations.from(e,(e=>e?e.deco:i.p.none))});function H(e,t){return r.jT.create(e.filter((e=>e.field==t)).map((e=>r.jT.range(e.from,e.to))))}function K(e){let t=X.parse(e);return(e,n,i,o)=>{let{text:a,ranges:s}=t.instantiate(e.state,i),l={changes:{from:i,to:o,insert:r.xv.of(a)},scrollIntoView:!0,annotations:n?h.of(n):void 0};if(s.length&&(l.selection=H(s,0)),s.length>1){let t=new V(s,0),n=l.effects=[Y.of(t)];void 0===e.state.field(G,!1)&&n.push(r.Py.appendConfig.of([G,ne,ie,L]))}e.dispatch(e.state.update(l))}}function J(e){return({state:t,dispatch:n})=>{let r=t.field(G,!1);if(!r||e<0&&0==r.active)return!1;let i=r.active+e,o=e>0&&!r.ranges.some((t=>t.field==i+e));return n(t.update({selection:H(r.ranges,i),effects:Y.of(o?null:new V(r.ranges,i)),scrollIntoView:!0})),!0}}const ee=[{key:"Tab",run:J(1),shift:J(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(G,!1)&&(t(e.update({effects:Y.of(null)})),!0)}],te=r.r$.define({combine:e=>e.length?e[0]:ee}),ne=r.Wl.highest(i.$f.compute([te],(e=>e.facet(te))));function re(e,t){return Object.assign(Object.assign({},t),{apply:K(e)})}const ie=i.tk.domEventHandlers({mousedown(e,t){let n,r=t.state.field(G,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find((e=>e.from<=n&&e.to>=n));return!(!i||i.field==r.active||(t.dispatch({selection:H(r.ranges,i.field),effects:Y.of(r.ranges.some((e=>e.field>i.field))?new V(r.ranges,i.field):null),scrollIntoView:!0}),0))}}),oe={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ae=r.Py.define({map(e,t){let n=t.mapPos(e,-1,r.gc.TrackAfter);return null==n?void 0:n}}),se=new class extends r.uU{};se.startSide=1,se.endSide=-1;const le=r.QQ.define({create:()=>r.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(i,-1)&&(e=r.Xs.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(ae)&&(e=e.update({add:[se.range(n.value,n.value+1)]}));return e}});function ue(){return[pe,le]}const ce="()[]{}<>";function de(e){for(let t=0;t<8;t+=2)if(ce.charCodeAt(t)==e)return ce.charAt(t+1);return(0,r.bg)(e<128?e:e+1)}function fe(e,t){return e.languageDataAt("closeBrackets",t)[0]||oe}const he="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),pe=i.tk.inputHandler.of(((e,t,n,i)=>{if((he?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,r.nZ)((0,r.gm)(i,0))||t!=o.from||n!=o.to)return!1;let a=function(e,t){let n=fe(e,e.selection.main.head),i=n.brackets||oe.brackets;for(let o of i){let a=de((0,r.gm)(o,0));if(t==o)return a==o?be(e,o,i.indexOf(o+o+o)>-1,n):Oe(e,o,a,n.before||oe.before);if(t==a&&ge(e,e.selection.main.from))return ye(e,0,a)}return null}(e.state,i);return!!a&&(e.dispatch(a),!0)})),me=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=fe(e,e.selection.main.head).brackets||oe.brackets,i=null,o=e.changeByRange((t=>{if(t.empty){let i=function(e,t){let n=e.sliceString(t-2,t);return(0,r.nZ)((0,r.gm)(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let o of n)if(o==i&&ve(e.doc,t.head)==de((0,r.gm)(o,0)))return{changes:{from:t.head-o.length,to:t.head+o.length},range:r.jT.cursor(t.head-o.length)}}return{range:i=t}}));return i||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function ge(e,t){let n=!1;return e.field(le).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function ve(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,r.nZ)((0,r.gm)(n,0)))}function Oe(e,t,n,i){let o=null,a=e.changeByRange((a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:ae.of(a.to+t.length),range:r.jT.range(a.anchor+t.length,a.head+t.length)};let s=ve(e.doc,a.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:ae.of(a.head+t.length),range:r.jT.cursor(a.head+t.length)}:{range:o=a}}));return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function ye(e,t,n){let i=null,o=e.changeByRange((t=>t.empty&&ve(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.jT.cursor(t.head+n.length)}:i={range:t}));return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function be(e,t,n,i){let a=i.stringPrefixes||oe.stringPrefixes,s=null,l=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:ae.of(i.to+t.length),range:r.jT.range(i.anchor+t.length,i.head+t.length)};let l,u=i.head,c=ve(e.doc,u);if(c==t){if(we(e,u))return{changes:{insert:t+t,from:u},effects:ae.of(u+t.length),range:r.jT.cursor(u+t.length)};if(ge(e,u)){let i=n&&e.sliceDoc(u,u+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:u,to:u+i.length,insert:i},range:r.jT.cursor(u+i.length)}}}else{if(n&&e.sliceDoc(u-2*t.length,u)==t+t&&(l=ke(e,u-2*t.length,a))>-1&&we(e,l))return{changes:{insert:t+t+t+t,from:u},effects:ae.of(u+t.length),range:r.jT.cursor(u+t.length)};if(e.charCategorizer(u)(c)!=r.D0.Word&&ke(e,u,a)>-1&&!function(e,t,n,r){let i=(0,o.qz)(e).resolveInner(t,-1),a=r.reduce(((e,t)=>Math.max(e,t.length)),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,u,t,a))return{changes:{insert:t+t,from:u},effects:ae.of(u+t.length),range:r.jT.cursor(u+t.length)}}return{range:s=i}}));return s?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function we(e,t){let n=(0,o.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function ke(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.D0.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&i(e.sliceDoc(n-1,n))!=r.D0.Word)return n}return-1}function xe(e={}){return[M,y.of(e),N,Se,L]}const _e=[{key:"Ctrl-Space",run:e=>!!e.state.field(M,!1)&&(e.dispatch({effects:g.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(M,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:v.of(null)}),0))}},{key:"ArrowDown",run:z(!0)},{key:"ArrowUp",run:z(!1)},{key:"PageDown",run:z(!0,"page")},{key:"PageUp",run:z(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(M,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(y).defaultKeymap?[_e]:[])))},23193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cpp:()=>m,cppLanguage:()=>p});var r=n(64963),i=n(7778);const o=new r.Jq((e=>{if(76==e.next||85==e.next?e.advance():117==e.next&&(e.advance(),56==e.next&&e.advance()),82!=e.next)return;if(e.advance(),34!=e.next)return;e.advance();let t="";for(;40!=e.next;){if(32==e.next||e.next<=13||41==e.next)return;t+=String.fromCharCode(e.next),e.advance()}for(e.advance();;){if(e.next<0)return e.acceptToken(1);if(41==e.next){let n=!0;for(let r=0;n&&r{if(62==e.next)62==e.peek(1)&&e.acceptToken(2,1);else{let t=!1,n=0;for(;;n++){if(e.next>=65&&e.next<=90)t=!0;else{if(e.next>=97&&e.next<=122)return;if(95!=e.next&&!(e.next>=48&&e.next<=57))break}e.advance()}t&&n>1&&e.acceptToken(3)}}),{extend:!0}),s=(0,i.Gv)({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":i.pJ.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":i.pJ.modifier,"if else switch for while do case default return break continue goto throw try catch":i.pJ.controlKeyword,"co_return co_yield co_await":i.pJ.controlKeyword,"new sizeof delete static_assert":i.pJ.operatorKeyword,"NULL nullptr":i.pJ.null,this:i.pJ.self,"True False":i.pJ.bool,"TypeSize PrimitiveType":i.pJ.standard(i.pJ.typeName),TypeIdentifier:i.pJ.typeName,FieldIdentifier:i.pJ.propertyName,"CallExpression/FieldExpression/FieldIdentifier":i.pJ.function(i.pJ.propertyName),"ModuleName/Identifier":i.pJ.namespace,PartitionName:i.pJ.labelName,StatementIdentifier:i.pJ.labelName,"Identifier DestructorName":i.pJ.variableName,"CallExpression/Identifier":i.pJ.function(i.pJ.variableName),"CallExpression/ScopedIdentifier/Identifier":i.pJ.function(i.pJ.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":i.pJ.function(i.pJ.definition(i.pJ.variableName)),NamespaceIdentifier:i.pJ.namespace,OperatorName:i.pJ.operator,ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,AssignOp:i.pJ.definitionOperator,UpdateOp:i.pJ.updateOperator,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Number:i.pJ.number,String:i.pJ.string,"RawString SystemLibString":i.pJ.special(i.pJ.string),CharLiteral:i.pJ.character,EscapeSequence:i.pJ.escape,"UserDefinedLiteral/Identifier":i.pJ.literal,PreProcArg:i.pJ.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":i.pJ.processingInstruction,MacroName:i.pJ.special(i.pJ.name),"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,"< >":i.pJ.angleBracket,". ->":i.pJ.derefOperator,", ;":i.pJ.separator}),l={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:784,true:784,FALSE:786,false:786,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},u={__proto__:null,"<":131},c={__proto__:null,">":135},d={__proto__:null,operator:388,new:576,delete:582},f=r.WQ.deserialize({version:14,states:"$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FjO-sQbO'#CwO.UQUO'#CwO0TQUO'#KZO0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JO'#JOO5XQVO'#GUO5fQUO'#JVOOQQ'#JV'#JVO8zQUO'#KmO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FhOOQR'#Fj'#FjOB{QUO'#FjOOQR'#LQ'#LQOOQR'#LP'#LPOETQVO'#KQOFxQUO'#LVOGVQUO'#KqOGkQUO'#LVOH]QUO'#LXOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#K|'#K|OOQR'#J_'#J_Q!QQVOOOHkQVO'#FOOIWQUO'#EhOI_QUOOOKZQVO'#HgOKkQUO'#HgONVQUO'#KqONaQUO'#KqOOQQ'#Kq'#KqO!!_QUO'#KqOOQQ'#Jq'#JqO!!lQUO'#HxOOQQ'#KZ'#KZO!&^QUO'#KZO!&zQUO'#KQO!(zQVO'#I]O!(zQVO'#I`OCQQUO'#KQOOQQ'#Ip'#IpOOQQ'#KQ'#KQO!,}QUO'#KZOOQR'#KY'#KYO!-UQUO'#DYO!/mQUO'#KnOOQQ'#Kn'#KnO!/tQUO'#KnO!/{QUO'#ETO!0QQUO'#EWO!0VQUO'#FRO8zQUO'#FPO!QQVO'#F^O!0[Q#vO'#F`O!0gQUO'#FkO!0oQUO'#FpO!0tQVO'#FrO!0oQUO'#FuO!3sQUO'#FvO!3xQVO'#FxO!4SQUO'#FzO!4XQUO'#F|O!4^QUO'#GOO!4cQVO'#GQO!(zQVO'#GSO!4jQUO'#GpO!4xQUO'#GYO!(zQVO'#FeO!6VQUO'#FeO!6[QVO'#G`O!6cQUO'#GaO!6nQUO'#GnO!6sQUO'#GrO!6xQUO'#GzO!7jQ&lO'#HiO!:mQUO'#GuO!:}QUO'#HXO!;YQUO'#HZO!;bQUO'#DWO!;bQUO'#HuO!;bQUO'#HvO!;yQUO'#HwO!<[QUO'#H|O!=PQUO'#H}O!>uQVO'#IbO!(zQVO'#IdO!?PQUO'#IgO!?WQVO'#IjP!@}{,UO'#CbP!6n{,UO'#CbP!AY{7[O'#CbP!6n{,UO'#CbP!A_{,UO'#CbP!AjOSO'#IzPOOO)CEn)CEnOOOO'#I|'#I|O!AtOWO,59OOOQR,59O,59OO!(zQVO,59UOOQQ,59W,59WO!(zQVO,5;ROOQR,5qOOQR'#IX'#IXOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[O!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!DOQVO,5>zOOQQ,5?W,5?WO!EqQVO'#ChO!IjQUO'#CyOOQQ,59c,59cOOQQ,59b,59bOOQQ,5<},5<}O!IwQ&lO,5=mO!?PQUO,5?RO!LkQVO,5?UO!LrQbO,59cO!L}QVO'#FYOOQQ,5?P,5?PO!M_QVO,59VO!MfO`O,5:bO!MkQbO'#D^O!M|QbO'#K^O!N[QbO,59wO!NdQbO'#CwO!NuQUO'#CwO!NzQUO'#KZO# UQUO'#CvOOQR-E<|-E<|O# aQUO,5AoO# hQVO'#EfO@XQVO'#EiOBUQUO,5;kOOQR,5l,5>lO#3gQUO'#CgO#4]QUO,5>pO#6OQUO'#IeOOQR'#I}'#I}O#6WQUO,5:xO#6tQUO,5:xO#7eQUO,5:xO#8YQUO'#CtO!0QQUO'#ClOOQQ'#JW'#JWO#6tQUO,5:xO#8bQUO,5;QO!4xQUO'#C}O#9kQUO,5;QO#9pQUO,5>QO#:|QUO'#C}O#;dQUO,5>{O#;iQUO'#KwO#}QUO'#L[O#?UQUO,5>UO#?ZQbO'#CwO#?fQUO'#GcO#?kQUO'#E^O#@[QUO,5;kO#@sQUO'#K}O#@{QUO,5;rOKkQUO'#HfOBUQUO'#HgO#AQQUO'#KqO!6nQUO'#HjO#AxQUO'#CtO!0tQVO,5PO$(WQUO'#E[O$(eQUO,5>ROOQQ,5>S,5>SO$,RQVO'#C{OOQQ-E=o-E=oOOQQ,5>d,5>dOOQQ,59`,59`O$,]QUO,5>wO$.]QUO,5>zO!6nQUO,59tO$.pQUO,5;qO$.}QUO,5<{O!0QQUO,5:oOOQQ,5:r,5:rO$/YQUO,5;mO$/_QUO'#KmOBUQUO,5;kOOQR,5;x,5;xO$0OQUO'#FbO$0^QUO'#FbO$0cQUO,5;zO$3|QVO'#FmO!0tQVO,5eQUO,5pQUO,5=[O$>uQUO,5=[O!4xQUO,5}QUO,5uQUO,5<{O$DQQUO,5<{O$D]QUO,5=YO!(zQVO,5=^O!(zQVO,5=fO#NeQUO,5=mOOQQ,5>T,5>TO$FbQUO,5>TO$FlQUO,5>TO$FqQUO,5>TO$FvQUO,5>TO!6nQUO,5>TO$HtQUO'#KZO$H{QUO,5=oO$IWQUO,5=aOKkQUO,5=oO$JQQUO,5=sOOQR,5=s,5=sO$JYQUO,5=sO$LeQVO'#H[OOQQ,5=u,5=uO!;]QUO,5=uO%#`QUO'#KjO%#gQUO'#K[O%#{QUO'#KjO%$VQUO'#DyO%$hQUO'#D|O%'eQUO'#K[OOQQ'#K['#K[O%)WQUO'#K[O%#gQUO'#K[O%)]QUO'#K[OOQQ,59r,59rOOQQ,5>a,5>aOOQQ,5>b,5>bO%)eQUO'#HzO%)mQUO,5>cOOQQ,5>c,5>cO%-XQUO,5>cO%-dQUO,5>hO%1OQVO,5>iO%1VQUO,5>|O# hQVO'#EfO%4]QUO,5>|OOQQ,5>|,5>|O%4|QUO,5?OO%7QQUO,5?RO!<[QUO,5?RO%8|QUO,5?UO%sQUO1G0mOOQQ1G0m1G0mO%@PQUO'#CoO%B`QbO'#CwO%BkQUO'#CrO%BpQUO'#CrO%BuQUO1G.tO#AxQUO'#CqOOQQ1G.t1G.tO%DxQUO1G4]O%FOQUO1G4^O%GqQUO1G4^O%IdQUO1G4^O%KVQUO1G4^O%LxQUO1G4^O%NkQUO1G4^O&!^QUO1G4^O&$PQUO1G4^O&%rQUO1G4^O&'eQUO1G4^O&)WQUO1G4^O&*yQUO'#KPO&,SQUO'#KPO&,[QUO,59SOOQQ,5=P,5=PO&.dQUO,5=PO&.nQUO,5=PO&.sQUO,5=PO&.xQUO,5=PO!6nQUO,5=PO#NeQUO1G3XO&/SQUO1G4mO!<[QUO1G4mO&1OQUO1G4pO&2qQVO1G4pOOQQ1G.}1G.}OOQQ1G.|1G.|OOQQ1G2i1G2iO!IwQ&lO1G3XO&2xQUO'#LOO@XQVO'#EiO&4RQUO'#F]OOQQ'#Ja'#JaO&4WQUO'#FZO&4cQUO'#LOO&4kQUO,5;tO&4pQUO1G.qOOQQ1G.q1G.qOOQR1G/|1G/|O&6cQ!dO'#JPO&6hQbO,59xO&8yQ!eO'#D`O&9QQ!dO'#JRO&9VQbO,5@xO&9VQbO,5@xOOQR1G/c1G/cO&9bQbO1G/cO&9gQ&lO'#GeO&:eQbO,59cOOQR1G7Z1G7ZO#@[QUO1G1VO&:pQUO1G1^OBUQUO1G1VO&=RQUO'#CyO#*wQbO,59cO&@tQUO1G6sOOQR-E<{-E<{O&BWQUO1G0dO#6WQUO1G0dOOQQ-E=U-E=UO#6tQUO1G0dOOQQ1G0l1G0lO&B{QUO,59iOOQQ1G3l1G3lO&CcQUO,59iO&CyQUO,59iO!M_QVO1G4gO!(zQVO'#JYO&DeQUO,5AcOOQQ1G0o1G0oO!(zQVO1G0oO!6nQUO'#JnO&DmQUO,5AvOOQQ1G3p1G3pOOQR1G1V1G1VO&HjQVO'#FOO!M_QVO,5;sOOQQ,5;s,5;sOBUQUO'#JcO&JfQUO,5AiO&JnQVO'#E[OOQR1G1^1G1^O&M]QUO'#L[OOQR1G1n1G1nOOQR-E=f-E=fOOQR1G7]1G7]O#DhQUO1G7]OGVQUO1G7]O#DhQUO1G7_OOQR1G7_1G7_O&MeQUO'#G}O&MmQUO'#LWOOQQ,5=h,5=hO&M{QUO,5=jO&NQQUO,5=kOOQR1G7`1G7`O#EfQVO1G7`O&NVQUO1G7`O' ]QVO,5=kOOQR1G1U1G1UO$.vQUO'#E]O'!RQUO'#E]OOQQ'#Ky'#KyO'!lQUO'#KxO'!wQUO,5;UO'#PQUO'#ElO'#dQUO'#ElO'#wQUO'#EtOOQQ'#J['#J[O'#|QUO,5;cO'$sQUO,5;cO'%nQUO,5;dO'&tQVO,5;dOOQQ,5;d,5;dO''OQVO,5;dO'&tQVO,5;dO''VQUO,5;bO'(SQUO,5;eO'(_QUO'#KpO'(gQUO,5:vO'(lQUO,5;fOOQQ1G0n1G0nOOQQ'#J]'#J]O''VQUO,5;bO!4xQUO'#E}OOQQ,5;b,5;bO')gQUO'#E`O'+aQUO'#E{OHrQUO1G0nO'+fQUO'#EbOOQQ'#JX'#JXO'-OQUO'#KrOOQQ'#Kr'#KrO'-xQUO1G0eO'.pQUO1G3kO'/vQVO1G3kOOQQ1G3k1G3kO'0QQVO1G3kO'0XQUO'#L_O'1eQUO'#KXO'1sQUO'#KWO'2OQUO,59gO'2WQUO1G/`O'2]QUO'#FPOOQR1G1]1G1]OOQR1G2g1G2gO$>uQUO1G2gO'2gQUO1G2gO'2rQUO1G0ZOOQR'#J`'#J`O'2wQVO1G1XO'8pQUO'#FTO'8uQUO1G1VO!6nQUO'#JdO'9TQUO,5;|O$0^QUO,5;|OOQQ'#Fc'#FcOOQQ,5;|,5;|O'9cQUO1G1fOOQR1G1f1G1fO'9kQUO,5}QUO1G2`OOQQ'#Cu'#CuO'CzQUO'#G[O'DuQUO'#G[O'DzQUO'#LRO'EYQUO'#G_OOQQ'#LS'#LSO'EhQUO1G2`O'EmQVO1G1kO'HOQVO'#GUOBUQUO'#FWOOQR'#Je'#JeO'EmQVO1G1kO'HYQUO'#FvOOQR1G2f1G2fO'H_QUO1G2gO'HdQUO'#JgO'2gQUO1G2gO!(zQVO1G2tO'HlQUO1G2xO'IuQUO1G3QO'J{QUO1G3XOOQQ1G3o1G3oO'KaQUO1G3oOOQR1G3Z1G3ZO'KfQUO'#KZO'2]QUO'#LTOGkQUO'#LVOOQR'#Gy'#GyO#DhQUO'#LXOOQR'#HQ'#HQO'KpQUO'#GvO'#wQUO'#GuOOQR1G2{1G2{O'LmQUO1G2{O'MdQUO1G3ZO'MoQUO1G3_O'MtQUO1G3_OOQR1G3_1G3_O'M|QUO'#H]OOQR'#H]'#H]O( VQUO'#H]O!(zQVO'#H`O!(zQVO'#H_OOQR'#LZ'#LZO( [QUO'#LZOOQR'#Jk'#JkO( aQVO,5=vOOQQ,5=v,5=vO( hQUO'#H^O( pQUO'#HZOOQQ1G3a1G3aO( zQUO,5@vOOQQ,5@v,5@vO%)WQUO,5@vO%)]QUO,5@vO%$VQUO,5:eO(%iQUO'#KkO(%wQUO'#KkOOQQ,5:e,5:eOOQQ'#JS'#JSO(&SQUO'#D}O(&^QUO'#KqOGkQUO'#LVO('YQUO'#D}OOQQ'#Hp'#HpOOQQ'#Hr'#HrOOQQ'#Hs'#HsOOQQ'#Kl'#KlOOQQ'#JU'#JUO('dQUO,5:hOOQQ,5:h,5:hO((aQUO'#LVO((nQUO'#HtO()UQUO,5@vO()]QUO'#H{O()hQUO'#L^O()pQUO,5>fO()uQUO'#L]OOQQ1G3}1G3}O(-lQUO1G3}O(-sQUO1G3}O(-zQUO1G4TO(/QQUO1G4TO(/VQUO,5A|O!6nQUO1G4hO!(zQVO'#IiOOQQ1G4m1G4mO(/[QUO1G4mO(1_QVO1G4pPOOO1G.h1G.hP!A_{,UO1G.hP(3_QUO'#LeP(3j{,UO1G.hP(3o{7[O1G.hPO{O-E=s-E=sPOOO,5A},5A}P(3w{,UO,5A}POOO1G5Q1G5QO!(zQVO7+$[O(3|QUO'#CyOOQQ,59^,59^O(4XQbO,59cO(4dQbO,59^OOQQ,59],59]OOQQ7+)w7+)wO!M_QVO'#JtO(4oQUO,5@kOOQQ1G.n1G.nOOQQ1G2k1G2kO(4wQUO1G2kO(4|QUO7+(sOOQQ7+*X7+*XO(7bQUO7+*XO(7iQUO7+*XO(1_QVO7+*[O#NeQUO7+(sO(7vQVO'#JbO(8ZQUO,5AjO(8cQUO,5;vOOQQ'#Co'#CoOOQQ,5;w,5;wO!(zQVO'#F[OOQQ-E=_-E=_O!M_QVO,5;uOOQQ1G1`1G1`OOQQ,5?k,5?kOOQQ-E<}-E<}OOQR'#Dg'#DgOOQR'#Di'#DiOOQR'#Dl'#DlO(9lQ!eO'#K_O(9sQMkO'#K_O(9zQ!eO'#K_OOQR'#K_'#K_OOQR'#JQ'#JQO(:RQ!eO,59zOOQQ,59z,59zO(:YQbO,5?mOOQQ-E=P-E=PO(:hQbO1G6dOOQR7+$}7+$}OOQR7+&q7+&qOOQR7+&x7+&xO'8uQUO7+&qO(:sQUO7+&OO#6WQUO7+&OO(;hQUO1G/TO(]QUO,5?tOOQQ-E=W-E=WO(?fQUO7+&ZOOQQ,5@Y,5@YOOQQ-E=l-E=lO(?kQUO'#LOO@XQVO'#EiO(@wQUO1G1_OOQQ1G1_1G1_O(BQQUO,5?}OOQQ,5?},5?}OOQQ-E=a-E=aO(BfQUO'#KpOOQR7+,w7+,wO#DhQUO7+,wOOQR7+,y7+,yO(BsQUO,5=iO#DsQUO'#JjO(CUQUO,5ArOOQR1G3U1G3UOOQR1G3V1G3VO(CdQUO7+,zOOQR7+,z7+,zO(E[QUO,5:wO(FyQUO'#EwO!(zQVO,5;VO(GlQUO,5:wO(GvQUO'#EpO(HXQUO'#EzOOQQ,5;Z,5;ZO#K]QVO'#ExO(HoQUO,5:wO(HvQUO'#EyO#GgQUO'#JZO(J`QUO,5AdOOQQ1G0p1G0pO(JkQUO,5;WO!<[QUO,5;^O(KUQUO,5;_O(KdQUO,5;WO(MvQUO,5;`OOQQ-E=Y-E=YO(NOQUO1G0}OOQQ1G1O1G1OO(NyQUO1G1OO)!PQVO1G1OO)!WQVO1G1OO)!bQUO1G0|OOQQ1G0|1G0|OOQQ1G1P1G1PO)#_QUO'#JoO)#iQUO,5A[OOQQ1G0b1G0bOOQQ-E=Z-E=ZO)#qQUO,5;iO!<[QUO,5;iO)$nQVO,5:zO)$uQUO,5;gO$ mQUO7+&YOOQQ7+&Y7+&YO!(zQVO'#EfO)$|QUO,5:|OOQQ'#Ks'#KsOOQQ-E=V-E=VOOQQ,5A^,5A^OOQQ'#Jl'#JlO)(qQUO7+&PPOQQ7+&P7+&POOQQ7+)V7+)VO))iQUO7+)VO)*oQVO7+)VOOQQ,5>m,5>mO$)YQVO'#JsO)*vQUO,5@rOOQQ1G/R1G/ROOQQ7+$z7+$zO)+RQUO7+(RO)+WQUO7+(ROOQR7+(R7+(RO$>uQUO7+(ROOQQ7+%u7+%uOOQR-E=^-E=^O!0VQUO,5;oOOQQ,5@O,5@OOOQQ-E=b-E=bO$0^QUO1G1hOOQQ1G1h1G1hOOQR7+'Q7+'QOOQR1G1s1G1sOBUQUO,5;rO)+tQUO,5hQUO,5}QUO7+(dO)?SQVO7+(dOOQQ7+(l7+(lOOQQ7+)Z7+)ZO)?[QUO'#KjO)?fQUO'#KjOOQR,5=b,5=bO)?sQUO,5=bO!;bQUO,5=bO!;bQUO,5=bO!;bQUO,5=bOOQR7+(g7+(gOOQR7+(u7+(uOOQR7+(y7+(yOOQR,5=w,5=wO)?xQUO,5=zO)AOQUO,5=yOOQR,5Au,5AuOOQR-E=i-E=iOOQQ1G3b1G3bO)BUQUO,5=xO)BZQVO'#EfOOQQ1G6b1G6bO%)WQUO1G6bO%)]QUO1G6bOOQQ1G0P1G0POOQQ-E=Q-E=QO)DrQUO,5AVO(%iQUO'#JTO)D}QUO,5AVO)D}QUO,5AVO)EVQUO,5:iO8zQUO,5:iOOQQ,5>],5>]O)EaQUO,5AqO)EhQUO'#EVO)FrQUO'#EVO)G]QUO,5:iO)GgQUO'#HlO)GgQUO'#HmOOQQ'#Ko'#KoO)HUQUO'#KoO!(zQVO'#HnOOQQ,5:i,5:iO)HvQUO,5:iO!M_QVO,5:iOOQQ-E=S-E=SOOQQ1G0S1G0SOOQQ,5>`,5>`O)H{QUO1G6bO!(zQVO,5>gO)LjQUO'#JrO)LuQUO,5AxOOQQ1G4Q1G4QO)L}QUO,5AwOOQQ,5Aw,5AwOOQQ7+)i7+)iO*!lQUO7+)iOOQQ7+)o7+)oO*'kQVO1G7hO*)mQUO7+*SO*)rQUO,5?TO**xQUO7+*[POOO7+$S7+$SP*,kQUO'#LfP*,sQUO,5BPP*,x{,UO7+$SPOOO1G7i1G7iO*,}QUO<XQUO7+&jO*?_QVO7+&jOOQQ7+&h7+&hOOQQ,5@Z,5@ZOOQQ-E=m-E=mO*@ZQUO1G1TO*@eQUO1G1TO*AOQUO1G0fOOQQ1G0f1G0fO*BUQUO'#K{O*B^QUO1G1ROOQQ<uQUO<VO)GgQUO'#JpO*NQQUO1G0TO*NcQVO1G0TOOQQ1G3u1G3uO*NjQUO,5>WO*NuQUO,5>XO+ dQUO,5>YO+!jQUO1G0TO%)]QUO7++|O+#pQUO1G4ROOQQ,5@^,5@^OOQQ-E=p-E=pOOQQ<n,5>nO+/iQUOANAXOOQRANAXANAXO+/nQUO7+'`OOQRAN@cAN@cO+0zQVOAN@nO+1RQUOAN@nO!0tQVOAN@nO+2[QUOAN@nO+2aQUOAN@}O+2lQUOAN@}O+3rQUOAN@}OOQRAN@nAN@nO!M_QVOAN@}OOQRANAOANAOO+3wQUO7+'|O)7VQUO7+'|OOQQ7+(O7+(OO+4YQUO7+(OO+5`QVO7+(OO+5gQVO7+'hO+5nQUOANAjOOQR7+(h7+(hOOQR7+)P7+)PO+5sQUO7+)PO+5xQUO7+)POOQQ<= h<= hO+6QQUO7+,]O+6YQUO1G5ZOOQQ1G5Z1G5ZO+6eQUO7+%oOOQQ7+%o7+%oO+6vQUO7+%oO*NcQVO7+%oOOQQ7+)a7+)aO+6{QUO7+%oO+8RQUO7+%oO!M_QVO7+%oO+8]QUO1G0]O*LkQUO1G0]O)EhQUO1G0]OOQQ1G0a1G0aO+8zQUO1G3qO+:QQVO1G3qOOQQ1G3q1G3qO+:[QVO1G3qO+:cQUO,5@[OOQQ-E=n-E=nOOQQ1G3r1G3rO%)WQUO<= hOOQQ7+*Z7+*ZPOQQ,5@b,5@bPOQQ-E=t-E=tOOQQ1G/}1G/}OOQQ,5?x,5?xOOQQ-E=[-E=[OOQRG26sG26sO+:zQUOG26YO!0tQVOG26YO+QQUO<uAN>uO+BpQUOAN>uO+CvQUOAN>uO!M_QVOAN>uO+C{QUO<nQUO'#KZO,?OQUO'#CyO,?^QbO,59cO,6VQUO7+&OO,OP>i>{?aFXMX!&]!,sP!3m!4b!5VP!5qPPPPPPPP!6[P!7tPP!9V!:oP!:uPPPPPP!:xP!:xPP!:xPPPPPPPPP!;U!>lP!>oPP!?]!@QPPPPP!@UP>l!AgPP>l!Cn!Eo!E}!Gd!ITP!I`P!Io!Io!MP#!`##v#'S#*^!Eo#*hPP!Eo#*o#*u#*h#*h#*xP#*|#+k#+k#+k#+k!ITP#,U#,g#.|P#/bP#0}P#1R#1Z#2O#2Z#4i#4q#4q#1RP#1RP#4x#5OP#5YPP#5u#6d#7U#5uP#7v#8SP#5uP#5uPP#5u#5uP#5uP#5uP#5uP#5uP#5uP#5uP#8V#5Y#8sP#9YP#9o#9o#9o#9o#9|#1RP#:d#?`#?}PPPPPPPP#@uP#ATP#ATP#Aa#Dn#9OPP#@}#EQP#Ee#Ep#Ev#Ev#@}#FlP#1R#1R#1R#1R#1RP!Io#GW#G_#G_#G_#Gc!Ly#Gm!Ly#Gq!E}!E}!E}#Gt#L^!E}>l>l>l$#V!@Q!@Q!@Q!@Q!@Q!@Q!6[!6[!6[$#jP$%V$%e!6[$%kPP!6[$'y$'|#@l$(P:t7j$+V$-Q$.q$0a7jPP7j$2T7jP7j7jP7jP$5Z7jP7jPP7j$5gPPPPPPPPP*[P$8o$8u$;^$=d$=j$>Q$>[$>g$>v$>|$@[$AZ$Ab$Ai$Ao$Aw$BR$BX$Bd$Bj$Bs$B{$CW$C^$Ch$Cn$Cx$DP$D`$Df$DlP$Dr$Dz$ER$Ea$F}$GT$GZ$Gb$GkPPPPPPPP$Gq$GuPPPPP$Nw$'y$Nz%$S%&[P%&i%&lPPPPPPPPPP%&x%'{%(R%(V%)|%+Z%+|%,T%.d%.jPPP%.t%/P%/S%/Y%0a%0d%0n%0x%0|%2Q%2s%2y#@uP%3d%3t%3w%4X%4e%4i%4o%4u$'y$'|$'|%4x%4{P%5V%5YR#cP'`mO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*q*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0h0{1Q1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fU%om%p7QQ&m!`Q(j#]d0P)}/|/}0O0R4}5O5P5S8QR7Q3Tb}Oaewx{!g&S*q&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0{1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fS%`f0h#d%jgnp|#O$g$|$}%S%d%h%i%w&s't'u(Q*Y*`*b*t+],l,v-_-p-w.f.m.o0]0y0z1O1S2_2j5a6g;W;X;Y;`;a;b;o;p;q;r;v;w;x;y MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:425,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,17,24,25,26,42,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"]],propSources:[s],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S;=`(u<%lO$e4e5xd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#X4Y#X#Y7W#Y#o4Y#o;'S$e;'S;=`(u<%lO$e4e7cd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#Y4Y#Y#Z8q#Z#o4Y#o;'S$e;'S;=`(u<%lO$e4e8|d)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#]4Y#]#^:[#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e:gd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#b4Y#b#c;u#c#o4Y#o;'S$e;'S;=`(u<%lO$e4e][)S,g)ZW(pQ%Z!b'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!?`^)ZW(pQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|!@[|!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!@gY)ZW!X-y(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!AbY!h,k)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!B__)ZW(pQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox}$e}!O!@[!O!_$e!_!`!8g!`!a!C^!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!CiY(x-y)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Dd^)ZW(pQ'f&j(w,gOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!E`!P!Q$e!Q![!GY![#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Ei[)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!F_!P#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!FjY)X,k)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]!Gen)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx!Icx!Q$e!Q![!GY![!g$e!g!h#$w!h!i#*Y!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#X$e#X#Y#$w#Y#Z#*Y#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2T!IjY(pQ'f&jOY(OZr(Ors%}s!Q(O!Q![!JY![#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O2T!Jcn(pQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Icx!Q(O!Q![!JY![!g(O!g!h!La!h!i##`!i!n(O!n!o##`!o!r(O!r!s!La!s!w(O!w!x##`!x#O(O#O#P&f#P#X(O#X#Y!La#Y#Z##`#Z#`(O#`#a##`#a#d(O#d#e!La#e#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ljl(pQ!i,g'f&jOY(OZr(Ors%}s{(O{|!Nb|}(O}!O!Nb!O!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ni^(pQ'f&jOY(OZr(Ors%}s!Q(O!Q![# e![!c(O!c!i# e!i#O(O#O#P&f#P#T(O#T#Z# e#Z;'S(O;'S;=`(o<%lO(O2T# nj(pQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Nbx!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T##id(pQ!i,g'f&jOY(OZr(Ors%}s!h(O!h!i##`!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#Y(O#Y#Z##`#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2]#%Sn)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|#'Q|}$e}!O#'Q!O!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#'Z`)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![#(]![!c$e!c!i#(]!i#O$e#O#P&f#P#T$e#T#Z#(]#Z;'S$e;'S;=`(u<%lO$e2]#(hj)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx!Nbx!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#*ef)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox!h$e!h!i#*Y!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#Y$e#Y#Z#*Y#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e7Z#,W`)ZW(pQ%Z!b![,g'f&jOY$eZr$ers%^sw$ewx(Oxz$ez{#-Y{!P$e!P!Q#:s!Q!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#-c])ZW(pQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y1e#._TOz#.[z{#.n{;'S#.[;'S;=`#/]<%lO#.[1e#.qVOz#.[z{#.n{!P#.[!P!Q#/W!Q;'S#.[;'S;=`#/]<%lO#.[1e#/]OT1e1e#/`P;=`<%l#.[7X#/jZ)ZW'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7P#0bX'f&jOY#0]YZ#.[Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1SZ'f&jOY#0]YZ#.[Zz#0]z{#0}{!P#0]!P!Q#1u!Q#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1|UT1e'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}7P#2eZ'f&jOY#0]YZ#0]Z]#0]]^#3W^z#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3]X'f&jOY#0]YZ#0]Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3{P;=`<%l#0]7X#4V])ZW'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{!P#/c!P!Q#5O!Q#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7X#5XW)ZWT1e'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^7X#5tP;=`<%l#/c7R#6OZ(pQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#6x](pQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{!P#5w!P!Q#7q!Q#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#7zW(pQT1e'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O7R#8gP;=`<%l#5w7Z#8s_)ZW(pQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{!P#-Y!P!Q#9r!Q#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y7Z#9}Y)ZW(pQT1e'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#:pP;=`<%l#-Y7Z#;OY)ZW(pQS1e'f&jOY#:sZr#:srs#;nsw#:swx#@{x#O#:s#O#P#[<%lO#b#P;'S#[<%lO#[<%lO#_P;=`<%l#i]S1e'f&jOY#b#P#b#[<%lO#[<%lO#b#P#b#[<%lO#t!R![$2V![!c$e!c!i$2V!i#O$e#O#P&f#P#T$e#T#Z$2V#Z;'S$e;'S;=`(u<%lO$e2]$?Pv)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx$4lx!O$e!O!P$ m!P!Q$e!Q![$2V![!c$e!c!g$2V!g!h$:p!h!i$2V!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#U$2V#U#V$2V#V#X$2V#X#Y$:p#Y#Z$2V#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j#l$e#l#m$0z#m;'S$e;'S;=`(u<%lO$e4e$Ar[(v-X)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox![$e![!]$Bh!]#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3s$BsYl-})ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]$CnY)W,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7V$Dk_p,g%]!b)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!^$Ej!^!_%+w!_!`%.U!`!a%0]!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej*[$Es])ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ejp$FoTO!`$Fl!`!a$GO!a;'S$Fl;'S;=`$GT<%lO$Flp$GTO$Wpp$GWP;=`<%l$Fl*Y$GbZ)ZW'f&jOY$GZYZ$FlZw$GZwx$HTx!`$GZ!`!a%(U!a#O$GZ#O#P$Ib#P;'S$GZ;'S;=`%(y<%lO$GZ*Q$HYX'f&jOY$HTYZ$FlZ!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q$IOU$WpY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}*Q$Ig['f&jOY$HTYZ$HTZ]$HT]^$J]^!`$HT!`!a$NO!a#O$HT#O#P%&n#P;'S$HT;'S;=`%'f;=`<%l%$z<%lO$HT*Q$JbX'f&jOY$HTYZ$J}Z!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT'[$KSX'f&jOY$J}YZ$FlZ!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$KvU$Wp'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}'[$L_Z'f&jOY$J}YZ$J}Z]$J}]^$MQ^!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MVX'f&jOY$J}YZ$J}Z!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MuP;=`<%l$J}*Q$M{P;=`<%l$HT*Q$NVW$Wp'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`$NtW'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`% eUY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%})`% |Y'f&jOY$NoYZ$NoZ]$No]^%!l^#O$No#O#P%#d#P;'S$No;'S;=`%$[;=`<%l%$z<%lO$No)`%!qX'f&jOY$NoYZ%}Z!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%#aP;=`<%l$No)`%#iZ'f&jOY$NoYZ%}Z]$No]^%!l^!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%$_XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$No<%lO%$z#t%$}WOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h<%lO%$z#t%%lOY#t#t%%oRO;'S%$z;'S;=`%%x;=`O%$z#t%%{XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l%$z<%lO%$z#t%&kP;=`<%l%$z*Q%&sZ'f&jOY$HTYZ$J}Z]$HT]^$J]^!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q%'iXOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$HT<%lO%$z*Y%(aW$WpY#t)ZW'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^*Y%(|P;=`<%l$GZ*S%)WZ(pQ'f&jOY%)PYZ$FlZr%)Prs$HTs!`%)P!`!a%)y!a#O%)P#O#P$Ib#P;'S%)P;'S;=`%*n<%lO%)P*S%*UW$WpY#t(pQ'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O*S%*qP;=`<%l%)P*[%+RY$WpY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e*[%+tP;=`<%l$Ej7V%,U^)ZW(pQ%[!b!f,g'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!_$Ej!_!`%-Q!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%-]]!g-y)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%.c]%]!b!b,g)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%/[!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%/mY%]!b!b,g$WpY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e)j%0hYY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%1c[)j!c)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`0Q!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%2f]%]!b)ZW(pQ!d,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`%3_!`!a%4[!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%3lY%]!b!b,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%4i[)ZW(pQ%[!b!f,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%5jY(uP)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z%6ib)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e7Z%8Qb)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e5P%9cW)ZW(o/]'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^2T%:UW(pQ)Y,g'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O3o%:yZ!V-y)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!}$e!}#O%;l#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%;wY)PP)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e4e%[Z]%=q]^%?Z^!Q%=q!Q![%?w![!w%=q!w!x%AX!x#O%=q#O#P%H_#P#i%=q#i#j%Ds#j#l%=q#l#m%IR#m;'S%=q;'S;=`%Kt<%lO%=q&t%=xUXY'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}4e%>e[XY(n.o'f&jOX%}XY-OYZ*[Z]%}]^-O^p%}pq-Oq#O%}#O#P,^#P;'S%};'S;=`'r<%lO%}4e%?bVXY'f&jOY%}YZ-OZ#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@OWXY'f&jOY%}Z!Q%}!Q![%@h![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@oWXY'f&jOY%}Z!Q%}!Q![%=q![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%A^['f&jOY%}Z!Q%}!Q![%BS![!c%}!c!i%BS!i#O%}#O#P&f#P#T%}#T#Z%BS#Z;'S%};'S;=`'r<%lO%}&t%BX['f&jOY%}Z!Q%}!Q![%B}![!c%}!c!i%B}!i#O%}#O#P&f#P#T%}#T#Z%B}#Z;'S%};'S;=`'r<%lO%}&t%CS['f&jOY%}Z!Q%}!Q![%Cx![!c%}!c!i%Cx!i#O%}#O#P&f#P#T%}#T#Z%Cx#Z;'S%};'S;=`'r<%lO%}&t%C}['f&jOY%}Z!Q%}!Q![%Ds![!c%}!c!i%Ds!i#O%}#O#P&f#P#T%}#T#Z%Ds#Z;'S%};'S;=`'r<%lO%}&t%Dx['f&jOY%}Z!Q%}!Q![%En![!c%}!c!i%En!i#O%}#O#P&f#P#T%}#T#Z%En#Z;'S%};'S;=`'r<%lO%}&t%Es['f&jOY%}Z!Q%}!Q![%Fi![!c%}!c!i%Fi!i#O%}#O#P&f#P#T%}#T#Z%Fi#Z;'S%};'S;=`'r<%lO%}&t%Fn['f&jOY%}Z!Q%}!Q![%Gd![!c%}!c!i%Gd!i#O%}#O#P&f#P#T%}#T#Z%Gd#Z;'S%};'S;=`'r<%lO%}&t%Gi['f&jOY%}Z!Q%}!Q![%=q![!c%}!c!i%=q!i#O%}#O#P&f#P#T%}#T#Z%=q#Z;'S%};'S;=`'r<%lO%}&t%HfXXY'f&jOY%}YZ%}Z]%}]^'W^#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%IW['f&jOY%}Z!Q%}!Q![%I|![!c%}!c!i%I|!i#O%}#O#P&f#P#T%}#T#Z%I|#Z;'S%};'S;=`'r<%lO%}&t%JR['f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KO[XY'f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KwP;=`<%l%=q2a%LVZ!W,V)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P#Q%Lx#Q;'S$e;'S;=`(u<%lO$e'Y%MTY)]d)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%NQ[)ZW(pQ%[!b'f&j!_,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z& Vd)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q!Y%6Y!Y!Z%7q!Z![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e2]&!pY!T,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o&#m^)ZW(pQ%[!b'f&j!^,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P#p$e#p#q&$i#q;'S$e;'S;=`(u<%lO$e3o&$vY)T,g%^!b)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e'V&%qY!Ua)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e(]&&nc)ZW(pQ%[!b'RP'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)ZW(pQ'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)ZW(pQdT'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[o,a,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,307]},dynamicPrecedences:{87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,365:3,417:1,418:3,419:1,420:1},specialized:[{term:356,get:e=>l[e]||-1},{term:32,get:e=>u[e]||-1},{term:66,get:e=>c[e]||-1},{term:363,get:e=>d[e]||-1}],tokenPrec:24891});var h=n(72107);const p=h.qp.define({name:"cpp",parser:f.configure({props:[h.uj.add({IfStatement:(0,h.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,h.tC)({except:/^\s*({|catch)\b/}),LabeledStatement:h.ze,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:(0,h.vw)({closing:"}"}),Statement:(0,h.tC)({except:/^{/})}),h.x0.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":h.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function m(){return new h.ri(p)}},59958:(e,t,n)=>{"use strict";n.r(t),n.d(t,{css:()=>Q,cssCompletionSource:()=>T,cssLanguage:()=>$,defineCSSCompletionSource:()=>C});var r=n(64963),i=n(7778);const o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function a(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const s=new r.Jq(((e,t)=>{for(let r=!1,i=0,o=0;;o++){let{next:s}=e;if(!(a(s)||45==s||95==s||r&&(n=s,n>=48&&n<=57))){r&&e.acceptToken(40==s?97:2==i&&t.canShift(2)?2:98);break}!r&&(45!=s||o>0)&&(r=!0),i===o&&45==s&&i++,e.advance()}var n})),l=new r.Jq((e=>{if(o.includes(e.peek(-1))){let{next:t}=e;(a(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(96)}})),u=new r.Jq((e=>{if(!o.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),a(t)){do{e.advance()}while(a(e.next));e.acceptToken(1)}}})),c=(0,i.Gv)({"AtKeyword import charset namespace keyframes media supports":i.pJ.definitionKeyword,"from to selector":i.pJ.keyword,NamespaceName:i.pJ.namespace,KeyframeName:i.pJ.labelName,KeyframeRangeName:i.pJ.operatorKeyword,TagName:i.pJ.tagName,ClassName:i.pJ.className,PseudoClassName:i.pJ.constant(i.pJ.className),IdName:i.pJ.labelName,"FeatureName PropertyName":i.pJ.propertyName,AttributeName:i.pJ.attributeName,NumberLiteral:i.pJ.number,KeywordQuery:i.pJ.keyword,UnaryQueryOp:i.pJ.operatorKeyword,"CallTag ValueName":i.pJ.atom,VariableName:i.pJ.variableName,Callee:i.pJ.operatorKeyword,Unit:i.pJ.unit,"UniversalSelector NestingSelector":i.pJ.definitionOperator,MatchOp:i.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":i.pJ.logicOperator,BinOp:i.pJ.arithmeticOperator,Important:i.pJ.modifier,Comment:i.pJ.blockComment,ColorLiteral:i.pJ.color,"ParenthesizedContent StringLiteral":i.pJ.string,":":i.pJ.punctuation,"PseudoOp #":i.pJ.derefOperator,"; ,":i.pJ.separator,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace}),d={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},f={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},h={__proto__:null,not:128,only:128},p=r.WQ.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[l,u,s,1,2,3,4,new r.RA("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:e=>d[e]||-1},{term:56,get:e=>f[e]||-1},{term:98,get:e=>h[e]||-1}],tokenPrec:1169});var m=n(72107),g=n(54163);let v=null;function O(){if(!v&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),n.has(r)||(t.push(r),n.add(r)));v=t.sort().map((e=>({type:"property",label:e})))}return v||[]}const y=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),b=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),w=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),k=/^(\w[\w-]*|-\w[\w-]*|)$/,x=/^-(-[\w-]*)?$/,_=new g.hr,S=["Declaration"];function P(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function E(e,t,n){if(t.to-t.from>4096){let r=_.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(g.vj.IncludeAnonymous);if(a.firstChild())do{for(let t of E(e,a.node,n))o.has(t.label)||(o.add(t.label),i.push(t))}while(a.nextSibling());return _.set(t,i),i}{let r=[],i=new Set;return t.cursor().iterate((t=>{var o;if(n(t)&&t.matchContext(S)&&":"==(null===(o=t.node.nextSibling)||void 0===o?void 0:o.name)){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:"variable"}))}})),r}}const C=e=>t=>{let{state:n,pos:r}=t,i=(0,m.qz)(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&"-"==n.doc.sliceString(i.from,i.to);if("PropertyName"==i.name||(o||"TagName"==i.name)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:O(),validFor:k};if("ValueName"==i.name)return{from:i.from,options:b,validFor:k};if("PseudoClassName"==i.name)return{from:i.from,options:y,validFor:k};if(e(i)||(t.explicit||o)&&function(e,t){var n;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let r=null===(n=e.parent)||void 0===n?void 0:n.firstChild;return"Callee"==(null==r?void 0:r.name)&&"var"==t.sliceString(r.from,r.to)}(i,n.doc))return{from:e(i)||o?i.from:r,options:E(n.doc,P(i),e),validFor:x};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:O(),validFor:k};return{from:i.from,options:w,validFor:k}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&":"==s.name&&"PseudoClassSelector"==a.name?{from:r,options:y,validFor:k}:s&&":"==s.name&&"Declaration"==a.name||"ArgList"==a.name?{from:r,options:b,validFor:k}:"Block"==a.name||"Styles"==a.name?{from:r,options:O(),validFor:k}:null},T=C((e=>"VariableName"==e.name)),$=m.qp.define({name:"css",parser:p.configure({props:[m.uj.add({Declaration:(0,m.tC)()}),m.x0.add({"Block KeyframeList":m.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Q(){return new m.ri($,$.data.of({autocomplete:T}))}},6407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoCloseTags:()=>be,html:()=>Oe,htmlCompletionSource:()=>de,htmlCompletionSourceWith:()=>fe,htmlLanguage:()=>ve,htmlPlain:()=>ge});var r=n(64963),i=n(7778),o=n(54163);const a=20,s=22,l=23,u=24,c=26,d=27,f=28,h=31,p=34,m=37,g={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},v={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},O={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function y(e){return 9==e||10==e||13==e||32==e}let b=null,w=null,k=0;function x(e,t){let n=e.pos+t;if(k==n&&w==e)return b;let r=e.peek(t);for(;y(r);)r=e.peek(++t);let i="";for(;45==(o=r)||46==o||58==o||o>=65&&o<=90||95==o||o>=97&&o<=122||o>=161;)i+=String.fromCharCode(r),r=e.peek(++t);var o;return w=e,k=n,b=i?i.toLowerCase():r==_||r==S?void 0:null}const _=63,S=33;function P(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;tE.indexOf(t)>-1?new P(x(r,1)||"",e):e,reduce:(e,t)=>t==a&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 6==i||36==i?new P(x(r,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),T=new r.Jq(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let n=47==e.next;n&&e.advance();let r=x(e,0);if(void 0===r)return;if(!r)return e.acceptToken(n?14:6);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(11);if(i&&v[i])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(13)}else{if("script"==r)return e.acceptToken(7);if("style"==r)return e.acceptToken(8);if("textarea"==r)return e.acceptToken(9);if(g.hasOwnProperty(r))return e.acceptToken(10);i&&O[i]&&O[i][r]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0}),$=new r.Jq((e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){n>3&&e.acceptToken(58,-2);break}t=0}e.advance()}})),Q=new r.Jq(((e,t)=>{if(47==e.next&&62==e.peek(1)){let n=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(n?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}));function R(e,t,n){let i=2+e.length;return new r.Jq((r=>{for(let o=0,a=0,s=0;;s++){if(r.next<0){s&&r.acceptToken(t);break}if(0==o&&60==r.next||1==o&&47==r.next||o>=2&&oa?r.acceptToken(t,-a):r.acceptToken(n,-(a-2));break}if((10==r.next||13==r.next)&&s){r.acceptToken(t,1);break}o=a=0}else a++;r.advance()}}))}const A=R("script",54,1),j=R("style",55,2),D=R("textarea",56,3),M=(0,i.Gv)({"Text RawText":i.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i.pJ.angleBracket,TagName:i.pJ.tagName,"MismatchedCloseTag/TagName":[i.pJ.tagName,i.pJ.invalid],AttributeName:i.pJ.attributeName,"AttributeValue UnquotedAttributeValue":i.pJ.attributeValue,Is:i.pJ.definitionOperator,"EntityReference CharacterReference":i.pJ.character,Comment:i.pJ.blockComment,ProcessingInst:i.pJ.processingInstruction,DoctypeDecl:i.pJ.documentMeta}),I=r.WQ.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:C,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[M],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let o=e.type.id;if(o==f)return N(e,t,n);if(o==h)return N(e,t,r);if(o==p)return N(e,t,i);if(o==a&&s.length){let n,r=e.node,i=r.firstChild,o=i&&W(i,t);if(o)for(let e of s)if(e.tag==o&&(!e.attrs||e.attrs(n||(n=z(r,t))))){let t=r.lastChild;return{parser:e.parser,overlay:[{from:i.to,to:t.type.id==m?t.from:r.to}]}}}if(u&&o==l){let n,r=e.node;if(n=r.firstChild){let e=u[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=W(r.parent,t))continue;let e=r.lastChild;if(e.type.id==c){let t=e.from+1,r=e.lastChild,i=e.to-(r&&r.isError?0:1);if(i>t)return{parser:n.parser,overlay:[{from:t,to:i}]}}else if(e.type.id==d)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}return null}))}var F=n(59958),U=n(59403),X=n(87283),q=n(30638),B=n(72107);const V=["_blank","_self","_top","_parent"],Y=["ascii","utf-8","utf-16","latin1","latin1"],Z=["get","post","put","delete"],G=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],H=["true","false"],K={},J={a:{attrs:{href:null,ping:null,type:null,media:null,target:V,hreflang:null}},abbr:K,address:K,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:K,aside:K,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:K,base:{attrs:{href:null,target:V}},bdi:K,bdo:K,blockquote:{attrs:{cite:null}},body:K,br:K,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:G,formmethod:Z,formnovalidate:["novalidate"],formtarget:V,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:K,center:K,cite:K,code:K,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:K,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:K,div:K,dl:K,dt:K,em:K,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:K,figure:K,footer:K,form:{attrs:{action:null,name:null,"accept-charset":Y,autocomplete:["on","off"],enctype:G,method:Z,novalidate:["novalidate"],target:V}},h1:K,h2:K,h3:K,h4:K,h5:K,h6:K,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:K,hgroup:K,hr:K,html:{attrs:{manifest:null}},i:K,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:G,formmethod:Z,formnovalidate:["novalidate"],formtarget:V,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:K,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:K,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:K,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Y,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:K,noscript:K,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:K,param:{attrs:{name:null,value:null}},pre:K,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:K,rt:K,ruby:K,samp:K,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Y}},section:K,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:K,source:{attrs:{src:null,type:null,media:null}},span:K,strong:K,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:K,summary:K,sup:K,table:K,tbody:K,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:K,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:K,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:K,time:{attrs:{datetime:null}},title:K,tr:K,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:K,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:K},ee={accesskey:null,class:null,contenteditable:H,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:H,autocorrect:H,autocapitalize:H,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":H,"aria-autocomplete":["inline","list","both","none"],"aria-busy":H,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":H,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":H,"aria-hidden":H,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":H,"aria-multiselectable":H,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":H,"aria-relevant":null,"aria-required":H,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},te="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e=>"on"+e));for(let e of te)ee[e]=null;class ne{constructor(e,t){this.tags=Object.assign(Object.assign({},J),e),this.globalAttrs=Object.assign(Object.assign({},ee),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function re(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function ie(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function oe(e,t,n){let r=n.tags[re(e,ie(t))];return(null==r?void 0:r.children)||n.allTags}function ae(e,t){let n=[];for(let r=ie(t);r&&!r.type.isTop;r=ie(r.parent)){let i=re(e,r);if(i&&"CloseTag"==r.lastChild.name)break;i&&n.indexOf(i)<0&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(i)}return n}ne.default=new ne;const se=/^[:\-\.\w\u00b7-\uffff]*$/;function le(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=ie(n,!0);return{from:r,to:i,options:oe(e.doc,a,t).map((e=>({label:e,type:"type"}))).concat(ae(e.doc,n).map(((e,t)=>({label:"/"+e,apply:"/"+e+o,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ue(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:ae(e.doc,t).map(((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t}))),validFor:se}}function ce(e,t){let{state:n,pos:r}=t,i=(0,B.qz)(n).resolveInner(r,-1),o=i.resolve(r);for(let e,t=r;o==i&&(e=i.childBefore(t));){let n=e.lastChild;if(!n||!n.type.isError||n.from({label:e,type:"property"}))),validFor:se}}(n,e,i,"AttributeName"==i.name?i.from:r,r):"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,n,r,i){var o;let a,s=null===(o=n.parent)||void 0===o?void 0:o.getChild("AttributeName"),l=[];if(s){let o=e.sliceDoc(s.from,s.to),u=t.globalAttrs[o];if(!u){let r=ie(n),i=r?t.tags[re(e.doc,r)]:null;u=(null==i?void 0:i.attrs)&&i.attrs[o]}if(u){let t=e.sliceDoc(r,i).toLowerCase(),n='"',o='"';/^['"]/.test(t)?(a='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",o=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),r++):a=/^[^\s<>='"]*$/;for(let e of u)l.push({label:e,apply:n+e+o,type:"constant"})}}return{from:r,to:i,options:l,validFor:a}}(n,e,i,"Is"==i.name?r:i.from,r):!t.explicit||"Element"!=o.name&&"Text"!=o.name&&"Document"!=o.name?null:function(e,t,n,r){let i=[],o=0;for(let r of oe(e.doc,n,t))i.push({label:"<"+r,type:"type"});for(let t of ae(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,e,i,r)}function de(e){return ce(ne.default,e)}function fe(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new ne(t,n):ne.default;return e=>ce(r,e)}const he=U.javascriptLanguage.parser.configure({top:"SingleExpression"}),pe=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:U.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:U.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:U.tsxLanguage.parser},{tag:"script",attrs:e=>"importmap"==e.type||"speculationrules"==e.type,parser:he},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:U.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:F.cssLanguage.parser}],me=[{name:"style",parser:F.cssLanguage.parser.configure({top:"Styles"})}].concat(te.map((e=>({name:e,parser:U.javascriptLanguage.parser})))),ge=B.qp.define({name:"html",parser:I.configure({props:[B.uj.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),ve=ge.configure({wrap:L(pe,me)});function Oe(e={}){let t,n="";!1===e.matchClosingTags&&(n="noMatch"),!0===e.selfClosingTags&&(n=(n?n+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=L((e.nestedLanguages||[]).concat(pe),(e.nestedAttributes||[]).concat(me)));let r=t?ge.configure({wrap:t,dialect:n}):n?ve.configure({dialect:n}):ve;return new B.ri(r,[ve.data.of({autocomplete:fe(e)}),!1!==e.autoCloseTags?be:[],(0,U.javascript)().support,(0,F.css)().support])}const ye=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),be=X.tk.inputHandler.of(((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!ve.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange((e=>{var t,n,i;let o,s=a.doc.sliceString(e.from-1,e.to)==r,{head:l}=e,u=(0,B.qz)(a).resolveInner(l-1,-1);if("TagName"!=u.name&&"StartTag"!=u.name||(u=u.parent),s&&">"==r&&"OpenTag"==u.name){if("CloseTag"!=(null===(n=null===(t=u.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=re(a.doc,u.parent,l))&&!ye.has(o))return{range:e,changes:{from:l,to:l+(">"===a.doc.sliceString(l,l+1)?1:0),insert:``}}}else if(s&&"/"==r&&"IncompleteCloseTag"==u.name){let e=u.parent;if(u.from==l-2&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(o=re(a.doc,e,l))&&!ye.has(o)){let e=l+(">"===a.doc.sliceString(l,l+1)?1:0),t=`${o}>`;return{range:q.jT.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))},7501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{java:()=>c,javaLanguage:()=>u});var r=n(64963),i=n(7778);const o=(0,i.Gv)({null:i.pJ.null,instanceof:i.pJ.operatorKeyword,this:i.pJ.self,"new super assert open to with void":i.pJ.keyword,"class interface extends implements enum var":i.pJ.definitionKeyword,"module package import":i.pJ.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":i.pJ.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":i.pJ.modifier,IntegerLiteral:i.pJ.integer,FloatingPointLiteral:i.pJ.float,"StringLiteral TextBlock":i.pJ.string,CharacterLiteral:i.pJ.character,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,BooleanLiteral:i.pJ.bool,PrimitiveType:i.pJ.standard(i.pJ.typeName),TypeName:i.pJ.typeName,Identifier:i.pJ.variableName,"MethodName/Identifier":i.pJ.function(i.pJ.variableName),Definition:i.pJ.definition(i.pJ.variableName),ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,AssignOp:i.pJ.definitionOperator,UpdateOp:i.pJ.updateOperator,Asterisk:i.pJ.punctuation,Label:i.pJ.labelName,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,".":i.pJ.derefOperator,", ;":i.pJ.separator}),a={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:236,open:265,module:267,requires:272,transitive:274,exports:276,to:278,opens:280,uses:282,provides:284,with:286,package:290,import:294,if:306,else:308,while:312,for:316,var:323,assert:330,switch:334,case:340,do:344,break:348,continue:352,return:356,throw:362,try:366,catch:370,finally:378},s=r.WQ.deserialize({version:14,states:"#!hQ]QPOOO&tQQO'#H[O(xQQO'#CbOOQO'#Cb'#CbO)PQPO'#CaO)XOSO'#CpOOQO'#Ha'#HaOOQO'#Cu'#CuO*tQPO'#D_O+_QQO'#HkOOQO'#Hk'#HkO-sQQO'#HfO-zQQO'#HfOOQO'#Hf'#HfOOQO'#He'#HeO0OQPO'#DUO0]QPO'#GlO3TQPO'#D_O3[QPO'#DzO)PQPO'#E[O3}QPO'#E[OOQO'#DV'#DVO5]QQO'#H_O7dQQO'#EeO7kQPO'#EdO7pQPO'#EfOOQO'#H`'#H`O5sQQO'#H`O8sQQO'#FgO8zQPO'#EwO9PQPO'#E|O9PQPO'#FOOOQO'#H_'#H_OOQO'#HW'#HWOOQO'#Gf'#GfOOQO'#HV'#HVO:aQPO'#FhOOQO'#HU'#HUOOQO'#Ge'#GeQ]QPOOOOQO'#Hq'#HqO:fQPO'#HqO:kQPO'#D{O:kQPO'#EVO:kQPO'#EQO:sQPO'#HnO;UQQO'#EfO)PQPO'#C`O;^QPO'#C`O)PQPO'#FbO;cQPO'#FdO;nQPO'#FjO;nQPO'#FmO:kQPO'#FrO;sQPO'#FoO9PQPO'#FvO;nQPO'#FxO]QPO'#F}O;xQPO'#GPOyOSO,59[OOQO,59[,59[OOQO'#Hg'#HgO?jQPO,59eO@lQPO,59yOOQO-E:d-E:dO)PQPO,58zOA`QPO,58zO)PQPO,5;|OAeQPO'#DQOAjQPO'#DQOOQO'#Gi'#GiOBjQQO,59jOOQO'#Dm'#DmODRQPO'#HsOD]QPO'#DlODkQPO'#HrODsQPO,5<^ODxQPO,59^OEcQPO'#CxOOQO,59c,59cOEjQPO,59bOGrQQO'#H[OJVQQO'#CbOJmQPO'#D_OKrQQO'#HkOLSQQO,59pOLZQPO'#DvOLiQPO'#HzOLqQPO,5:`OLvQPO,5:`OM^QPO,5;mOMiQPO'#IROMtQPO,5;dOMyQPO,5=WOOQO-E:j-E:jOOQO,5:f,5:fO! aQPO,5:fO! hQPO,5:vO! mQPO,5<^O)PQPO,5:vO:kQPO,5:gO:kQPO,5:qO:kQPO,5:lO:kQPO,5<^O!!^QPO,59qO9PQPO,5:}O!!eQPO,5;QO9PQPO,59TO!!sQPO'#DXOOQO,5;O,5;OOOQO'#El'#ElOOQO'#En'#EnO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;eOOQO,5;h,5;hOOQO,5],5>]O!%SQPO,5:gO!%bQPO,5:qO!%jQPO,5:lO!%uQPO,5>YOLZQPO,5>YO! {QPO,59UO!&QQQO,58zO!&YQQO,5;|O!&bQQO,5_O!.ZQPO,5:WO:kQPO'#GnO!.bQPO,5>^OOQO1G1x1G1xOOQO1G.x1G.xO!.{QPO'#CyO!/kQPO'#HkO!/uQPO'#CzO!0TQPO'#HjO!0]QPO,59dOOQO1G.|1G.|OEjQPO1G.|O!0sQPO,59eO!1QQQO'#H[O!1cQQO'#CbOOQO,5:b,5:bO:kQPO,5:cOOQO,5:a,5:aO!1tQQO,5:aOOQO1G/[1G/[O!1yQPO,5:bO!2[QPO'#GqO!2oQPO,5>fOOQO1G/z1G/zO!2wQPO'#DvO!3YQPO'#D_O!3aQPO1G/zO!!zQPO'#GoO!3fQPO1G1XO9PQPO1G1XO:kQPO'#GwO!3nQPO,5>mOOQO1G1O1G1OOOQO1G0Q1G0QO!3vQPO'#E]OOQO1G0b1G0bO!4gQPO1G1xO! hQPO1G0bO!%SQPO1G0RO!%bQPO1G0]O!%jQPO1G0WOOQO1G/]1G/]O!4lQQO1G.pO7kQPO1G0jO)PQPO1G0jO:sQPO'#HnO!6`QQO1G.pOOQO1G.p1G.pO!6eQQO1G0iOOQO1G0l1G0lO!6lQPO1G0lO!6wQQO1G.oO!7_QQO'#HoO!7lQPO,59sO!8{QQO1G0pO!:dQQO1G0pO!;rQQO1G0pO!UOOQO1G/O1G/OOOQO7+$h7+$hOOQO1G/{1G/{O#1TQQO1G/{OOQO1G/}1G/}O#1YQPO1G/{OOQO1G/|1G/|O:kQPO1G/}OOQO,5=],5=]OOQO-E:o-E:oOOQO7+%f7+%fOOQO,5=Z,5=ZOOQO-E:m-E:mO9PQPO7+&sOOQO7+&s7+&sOOQO,5=c,5=cOOQO-E:u-E:uO#1_QPO'#EUO#1mQPO'#EUOOQO'#Gu'#GuO#2UQPO,5:wOOQO,5:w,5:wOOQO7+'d7+'dOOQO7+%|7+%|OOQO7+%m7+%mO!AYQPO7+%mO!A_QPO7+%mO!AgQPO7+%mOOQO7+%w7+%wO!BVQPO7+%wOOQO7+%r7+%rO!CUQPO7+%rO!CZQPO7+%rOOQO7+&U7+&UOOQO'#Ee'#EeO7kQPO7+&UO7kQPO,5>YO#2uQPO7+$[OOQO7+&T7+&TOOQO7+&W7+&WO9PQPO'#GjO#3TQPO,5>ZOOQO1G/_1G/_O9PQPO7+&kO#3`QQO,59eO#4cQPO'#DrO! pQPO'#DrO#4nQPO'#HwO#4vQPO,5:]O#5aQQO'#HgO#5|QQO'#CuO! mQPO'#HvO#6lQPO'#DpO#6vQPO'#HvO#7XQPO'#DpO#7aQPO'#IPO#7fQPO'#E`OOQO'#Hp'#HpOOQO'#Gk'#GkO#7nQPO,59vOOQO,59v,59vO#7uQPO'#HqOOQO,5:h,5:hO#9]QPO'#H|OOQO'#EP'#EPOOQO,5:i,5:iO#9hQPO'#EYO:kQPO'#EYO#9yQPO'#H}O#:UQPO,5:sO! mQPO'#HvO!!zQPO'#HvO#:^QPO'#DpOOQO'#Gs'#GsO#:eQPO,5:oOOQO,5:o,5:oOOQO,5:n,5:nOOQO,5;S,5;SO#;_QQO,5;SO#;fQPO,5;SOOQO-E:t-E:tOOQO7+&X7+&XOOQO7+)`7+)`O#;mQQO7+)`OOQO'#Gz'#GzO#=ZQPO,5;rOOQO,5;r,5;rO#=bQPO'#FXO)PQPO'#FXO)PQPO'#FXO)PQPO'#FXO#=pQPO7+'UO#=uQPO7+'UOOQO7+'U7+'UO]QPO7+'[O#>QQPO1G1{O! mQPO1G1{O#>`QQO1G1wO!!sQPO1G1wO#>gQPO1G1wO#>nQQO7+'hOOQO'#G}'#G}O#>uQPO,5|QPO'#HqO9PQPO'#F{O#?UQPO7+'oO#?ZQPO,5=OO! mQPO,5=OO#?`QPO1G2iO#@iQPO1G2iOOQO1G2i1G2iOOQO-E:|-E:|OOQO7+'z7+'zO!2[QPO'#G^OpOOQO1G.n1G.nOOQO<X,5>XOOQO,5=S,5=SOOQO-E:f-E:fO#EjQPO7+%gOOQO7+%g7+%gOOQO7+%i7+%iOOQO<cOOQO1G/w1G/wO#IfQPO'#HsO#ImQPO,59xO#IrQPO,5>bO! mQPO,59xO#I}QPO,5:[O#7fQPO,5:zO! mQPO,5>bO!!zQPO,5>bO#7aQPO,5>kOOQO,5:[,5:[OLvQPO'#DtOOQO,5>k,5>kO#JVQPO'#EaOOQO,5:z,5:zO#MWQPO,5:zO!!zQPO'#DxOOQO-E:i-E:iOOQO1G/b1G/bOOQO,5:y,5:yO!!zQPO'#GrO#M]QPO,5>hOOQO,5:t,5:tO#MhQPO,5:tO#MvQPO,5:tO#NXQPO'#GtO#NoQPO,5>iO#NzQPO'#EZOOQO1G0_1G0_O$ RQPO1G0_O! mQPO,5:pOOQO-E:q-E:qOOQO1G0Z1G0ZOOQO1G0n1G0nO$ WQQO1G0nOOQO<oOOQO1G1Y1G1YO$%uQPO'#FTOOQO,5=e,5=eOOQO-E:w-E:wO$%zQPO'#GmO$&XQPO,5>aOOQO1G/u1G/uOOQO<sAN>sO!AYQPOAN>sOOQOAN>xAN>xOOQOAN?[AN?[O7kQPOAN?[O$&pQPO,5:_OOQO1G/x1G/xOOQO,5=[,5=[OOQO-E:n-E:nO$&{QPO,5>eOOQO1G/d1G/dOOQO1G3|1G3|O$'^QPO1G/dOOQO1G/v1G/vOOQO1G0f1G0fO#MWQPO1G0fO#7aQPO'#HyO$'cQPO1G3|O! mQPO1G3|OOQO1G4V1G4VOK^QPO'#DvOJmQPO'#D_OOQO,5:{,5:{O$'nQPO,5:{O$'nQPO,5:{O$'uQQO'#H_O$'|QQO'#H`O$(WQQO'#EbO$(cQPO'#EbOOQO,5:d,5:dOOQO,5=^,5=^OOQO-E:p-E:pOOQO1G0`1G0`O$(kQPO1G0`OOQO,5=`,5=`OOQO-E:r-E:rO$(yQPO,5:uOOQO7+%y7+%yOOQO7+&Y7+&YOOQO1G1_1G1_O$)QQQO1G1_OOQO-E:y-E:yO$)YQQO'#IWO$)TQPO1G1_O$ mQPO1G1_O)PQPO1G1_OOQOAN@[AN@[O$)eQQO<rO$,cQPO7+&yO$,hQQO'#IXOOQOAN@mAN@mO$,sQQOAN@mOOQOAN@iAN@iO$,zQPOAN@iO$-PQQO<sOOQOG26XG26XOOQOG26TG26TOOQO<bPPP>hP@|PPPAv2vPCoPPDjPEaEgPPPPPPPPPPPPFpGXPJ_JgJqKZKaKgMVMZMZMcPMrNx! k! uP!![NxP!!b!!l!!{!#TP!#r!#|!$SNx!$V!$]EaEa!$a!$k!$n2v!&Y2v2v!(RP.^P!(VP!(vPPPPPP.^P.^!)d.^PP.^P.^PP.^!*x!+SPP!+Y!+cPPPPPPPP&}P&}PP!+g!+g!+z!+gPP!+gP!+gP!,e!,hP!+g!-O!+gP!+gP!-R!-UP!+gP!+gP!+gP!+gP!+g!+gP!+gP!-YP!-`!-c!-iP!+g!-u!-x!.Q!.d!2a!2g!2m!3s!3y!4T!5X!5_!5e!5o!5u!5{!6R!6X!6_!6e!6k!6q!6w!6}!7T!7Z!7e!7k!7u!7{PPP!8R!+g!8vP!g!]!^!?w!^!_!@e!_!`!BO!`!a!Br!a!b!D`!b!c!EO!c!}!Kz!}#O!MW#O#P%Q#P#Q!Mt#Q#R!Nb#R#S4e#S#T%Q#T#o4e#o#p# U#p#q# r#q#r##[#r#s##x#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%QS%VV&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&WSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&WS%wZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%Q_)iY&WS%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XZ*^Y%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XV+TX#sP&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QU+wV#_Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT,aXOY,|YZ%lZr,|rs3Ys#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T-PXOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT-qX&WSOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT.cVcPOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZT.}V&WSOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT/iW&WSOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0UWOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0sOcPP0vTOY0RYZ0RZ;'S0R;'S;=`1V<%lO0RP1YP;=`<%l0RT1`XOY,|YZ%lZr,|rs1{s#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T2QUcPOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZT2gVOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT3PP;=`<%l-lT3VP;=`<%l,|T3_VcPOY&ZYZ%lZr&Zrs3ts;'S&Z;'S;=`'`<%lO&ZT3yR&USXY4SYZ4`pq4SP4VRXY4SYZ4`pq4SP4eO&VP_4la%}Z&WSOY%QYZ%lZr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o;'S%Q;'S;=`&s<%lO%QU5xX#gQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU6lV#]Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV7YZ&lR&WSOY%QYZ%lZr%Qrs%qsv%Qvw7{w!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU8SV#aQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT8nZ&WSOY9aYZ%lZr9ars:osw9awx%Qx#O9a#O#P;y#P;'S9a;'S;=`@z<%lO9aT9fX&WSOY%QYZ%lZr%Qrs%qsw%Qwx:Rx;'S%Q;'S;=`&s<%lO%QT:YVbP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT:rXOY&ZYZ%lZr&Zrs&ysw&Zwx;_x;'S&Z;'S;=`'`<%lO&ZT;dVbPOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT_YZ%lZr>_rs?Zsw>_wx;_x#O>_#O#P&Z#P;'S>_;'S;=`@t<%lO>_T>bZOY_YZ%lZr>_rs@Psw>_wx;_x#O>_#O#P&Z#P;'S>_;'S;=`@t<%lO>_P@SVOY@PZw@Pwx@ix#O@P#P;'S@P;'S;=`@n<%lO@PP@nObPP@qP;=`<%l@PT@wP;=`<%l>_T@}P;=`<%l9a_AXVZZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVAuVYR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVBeX$YP&WS#fQOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVCXZ#eR&WSOY%QYZ%lZr%Qrs%qs{%Q{|Cz|!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVDRV#qR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVDoVqR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVE][#eR&WSOY%QYZ%lZr%Qrs%qs}%Q}!OCz!O!_%Q!_!`6e!`!aFR!a;'S%Q;'S;=`&s<%lO%QVFYV&vR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_FvZWY&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PGi!P!Q%Q!Q![Hw![;'S%Q;'S;=`&s<%lO%QVGnX&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PHZ!P;'S%Q;'S;=`&s<%lO%QVHbV&oR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTIOc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hw![!f%Q!f!gJZ!g!hJw!h!iJZ!i#R%Q#R#SNq#S#W%Q#W#XJZ#X#YJw#Y#ZJZ#Z;'S%Q;'S;=`&s<%lO%QTJbV&WS`POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTJ|]&WSOY%QYZ%lZr%Qrs%qs{%Q{|Ku|}%Q}!OKu!O!Q%Q!Q![Lg![;'S%Q;'S;=`&s<%lO%QTKzX&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lg![;'S%Q;'S;=`&s<%lO%QTLnc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lg![!f%Q!f!gJZ!g!h%Q!h!iJZ!i#R%Q#R#SMy#S#W%Q#W#XJZ#X#Y%Q#Y#ZJZ#Z;'S%Q;'S;=`&s<%lO%QTNOZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lg![#R%Q#R#SMy#S;'S%Q;'S;=`&s<%lO%QTNvZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hw![#R%Q#R#SNq#S;'S%Q;'S;=`&s<%lO%Q_! p]&WS#fQOY%QYZ%lZr%Qrs%qsz%Qz{!!i{!P%Q!P!Q!)[!Q!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%Q_!!nX&WSOY!!iYZ!#ZZr!!irs!$vsz!!iz{!&U{;'S!!i;'S;=`!'j<%lO!!i_!#`T&WSOz!#oz{!$R{;'S!#o;'S;=`!$p<%lO!#oZ!#rTOz!#oz{!$R{;'S!#o;'S;=`!$p<%lO!#oZ!$UVOz!#oz{!$R{!P!#o!P!Q!$k!Q;'S!#o;'S;=`!$p<%lO!#oZ!$pOQZZ!$sP;=`<%l!#o_!$yXOY!%fYZ!#ZZr!%frs!'psz!%fz{!(`{;'S!%f;'S;=`!)U<%lO!%f_!%iXOY!!iYZ!#ZZr!!irs!$vsz!!iz{!&U{;'S!!i;'S;=`!'j<%lO!!i_!&ZZ&WSOY!!iYZ!#ZZr!!irs!$vsz!!iz{!&U{!P!!i!P!Q!&|!Q;'S!!i;'S;=`!'j<%lO!!i_!'TV&WSQZOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!'mP;=`<%l!!i_!'sXOY!%fYZ!#ZZr!%frs!#osz!%fz{!(`{;'S!%f;'S;=`!)U<%lO!%f_!(cZOY!!iYZ!#ZZr!!irs!$vsz!!iz{!&U{!P!!i!P!Q!&|!Q;'S!!i;'S;=`!'j<%lO!!i_!)XP;=`<%l!%f_!)cV&WSPZOY!)[YZ%lZr!)[rs!)xs;'S!)[;'S;=`!+O<%lO!)[_!)}VPZOY!*dYZ%lZr!*drs!+Us;'S!*d;'S;=`!,X<%lO!*d_!*iVPZOY!)[YZ%lZr!)[rs!)xs;'S!)[;'S;=`!+O<%lO!)[_!+RP;=`<%l!)[_!+ZVPZOY!*dYZ%lZr!*drs!+ps;'S!*d;'S;=`!,X<%lO!*dZ!+uSPZOY!+pZ;'S!+p;'S;=`!,R<%lO!+pZ!,UP;=`<%l!+p_!,[P;=`<%l!*dT!,fu&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.y!P!Q%Q!Q![!0V![!d%Q!d!e!3a!e!f%Q!f!gJZ!g!hJw!h!iJZ!i!n%Q!n!o!1{!o!q%Q!q!r!5_!r!z%Q!z!{!7V!{#R%Q#R#S!2i#S#U%Q#U#V!3a#V#W%Q#W#XJZ#X#YJw#Y#ZJZ#Z#`%Q#`#a!1{#a#c%Q#c#d!5_#d#l%Q#l#m!7V#m;'S%Q;'S;=`&s<%lO%QT!/Qa&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hw![!f%Q!f!gJZ!g!hJw!h!iJZ!i#W%Q#W#XJZ#X#YJw#Y#ZJZ#Z;'S%Q;'S;=`&s<%lO%QT!0^i&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.y!P!Q%Q!Q![!0V![!f%Q!f!gJZ!g!hJw!h!iJZ!i!n%Q!n!o!1{!o#R%Q#R#S!2i#S#W%Q#W#XJZ#X#YJw#Y#ZJZ#Z#`%Q#`#a!1{#a;'S%Q;'S;=`&s<%lO%QT!2SV&WS_POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT!2nZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!0V![#R%Q#R#S!2i#S;'S%Q;'S;=`&s<%lO%QT!3fY&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4U!R!S!4U!S;'S%Q;'S;=`&s<%lO%QT!4]`&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4U!R!S!4U!S!n%Q!n!o!1{!o#R%Q#R#S!3a#S#`%Q#`#a!1{#a;'S%Q;'S;=`&s<%lO%QT!5dX&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!6P!Y;'S%Q;'S;=`&s<%lO%QT!6W_&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!6P!Y!n%Q!n!o!1{!o#R%Q#R#S!5_#S#`%Q#`#a!1{#a;'S%Q;'S;=`&s<%lO%QT!7[_&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!P!8Z!P!Q%Q!Q![!:i![!c%Q!c!i!:i!i#T%Q#T#Z!:i#Z;'S%Q;'S;=`&s<%lO%QT!8`]&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9X![!c%Q!c!i!9X!i#T%Q#T#Z!9X#Z;'S%Q;'S;=`&s<%lO%QT!9^c&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9X![!c%Q!c!i!9X!i!r%Q!r!sJw!s#R%Q#R#S!8Z#S#T%Q#T#Z!9X#Z#d%Q#d#eJw#e;'S%Q;'S;=`&s<%lO%QT!:pi&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!<_!P!Q%Q!Q![!:i![!c%Q!c!i!:i!i!n%Q!n!o!1{!o!r%Q!r!sJw!s#R%Q#R#S!=i#S#T%Q#T#Z!:i#Z#`%Q#`#a!1{#a#d%Q#d#eJw#e;'S%Q;'S;=`&s<%lO%QT!nX#oR&WSOY%QYZ%lZr%Qrs%qs![%Q![!]!?Z!];'S%Q;'S;=`&s<%lO%QV!?bV&tR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!@OV!PR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!@lY&]Z&WSOY%QYZ%lZr%Qrs%qs!^%Q!^!_!A[!_!`+p!`;'S%Q;'S;=`&s<%lO%QU!AcX#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV!BVX!bR&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QV!ByY&[R&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`!a!Ci!a;'S%Q;'S;=`&s<%lO%QU!CpY#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`!a!A[!a;'S%Q;'S;=`&s<%lO%Q_!DiV&`X#nQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!EVX%{Z&WSOY%QYZ%lZr%Qrs%qs#]%Q#]#^!Er#^;'S%Q;'S;=`&s<%lO%QV!EwX&WSOY%QYZ%lZr%Qrs%qs#b%Q#b#c!Fd#c;'S%Q;'S;=`&s<%lO%QV!FiX&WSOY%QYZ%lZr%Qrs%qs#h%Q#h#i!GU#i;'S%Q;'S;=`&s<%lO%QV!GZX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!Gv#Y;'S%Q;'S;=`&s<%lO%QV!G{X&WSOY%QYZ%lZr%Qrs%qs#f%Q#f#g!Hh#g;'S%Q;'S;=`&s<%lO%QV!HmX&WSOY%QYZ%lZr%Qrs%qs#Y%Q#Y#Z!IY#Z;'S%Q;'S;=`&s<%lO%QV!I_X&WSOY%QYZ%lZr%Qrs%qs#T%Q#T#U!Iz#U;'S%Q;'S;=`&s<%lO%QV!JPX&WSOY%QYZ%lZr%Qrs%qs#V%Q#V#W!Jl#W;'S%Q;'S;=`&s<%lO%QV!JqX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!K^#Y;'S%Q;'S;=`&s<%lO%QV!KeV&rR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!LRa&PZ&WSOY%QYZ%lZr%Qrs%qst%Qtu!Kzu!Q%Q!Q![!Kz![!c%Q!c!}!Kz!}#R%Q#R#S!Kz#S#T%Q#T#o!Kz#o;'S%Q;'S;=`&s<%lO%Q_!M_VuZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!M{VsR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QU!NiX#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV# ]V}R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_# {Z&|X#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`#p%Q#p#q#!n#q;'S%Q;'S;=`&s<%lO%QU#!uV#dQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##cV|R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT#$PV#tP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q",tokenizers:[0,1,2,3],topRules:{Program:[0,3]},dynamicPrecedences:{27:1,230:-1,241:-1},specialized:[{term:229,get:e=>a[e]||-1}],tokenPrec:7067});var l=n(72107);const u=l.qp.define({name:"java",parser:s.configure({props:[l.uj.add({IfStatement:(0,l.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,l.tC)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:l.ze,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,l.vw)({closing:"}"}),BlockComment:()=>null,Statement:(0,l.tC)({except:/^{/})}),l.x0.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":l.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function c(){return new l.ri(u)}},59403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoCloseTags:()=>q,completionPath:()=>R,esLint:()=>B,javascript:()=>F,javascriptLanguage:()=>j,jsxLanguage:()=>I,localCompletionSource:()=>$,scopeCompletionSource:()=>A,snippets:()=>b,tsxLanguage:()=>z,typescriptLanguage:()=>M,typescriptSnippets:()=>w});var r=n(64963),i=n(7778);const o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],a=new r.IK({start:!1,shift:(e,t)=>3==t||4==t||307==t?e:308==t,strict:!1}),s=new r.Jq(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(305)}),{contextual:!0,fallback:!0}),l=new r.Jq(((e,t)=>{let n,{next:r}=e;o.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(304))}),{contextual:!0}),u=new r.Jq(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}),{contextual:!0}),c=(0,i.Gv)({"get set async static":i.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":i.pJ.controlKeyword,"in of await yield void typeof delete instanceof":i.pJ.operatorKeyword,"let var const function class extends":i.pJ.definitionKeyword,"import export from":i.pJ.moduleKeyword,"with debugger as new":i.pJ.keyword,TemplateString:i.pJ.special(i.pJ.string),super:i.pJ.atom,BooleanLiteral:i.pJ.bool,this:i.pJ.self,null:i.pJ.null,Star:i.pJ.modifier,VariableName:i.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i.pJ.function(i.pJ.variableName),VariableDefinition:i.pJ.definition(i.pJ.variableName),Label:i.pJ.labelName,PropertyName:i.pJ.propertyName,PrivatePropertyName:i.pJ.special(i.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":i.pJ.function(i.pJ.propertyName),"FunctionDeclaration/VariableDefinition":i.pJ.function(i.pJ.definition(i.pJ.variableName)),"ClassDeclaration/VariableDefinition":i.pJ.definition(i.pJ.className),PropertyDefinition:i.pJ.definition(i.pJ.propertyName),PrivatePropertyDefinition:i.pJ.definition(i.pJ.special(i.pJ.propertyName)),UpdateOp:i.pJ.updateOperator,"LineComment Hashbang":i.pJ.lineComment,BlockComment:i.pJ.blockComment,Number:i.pJ.number,String:i.pJ.string,Escape:i.pJ.escape,ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,RegExp:i.pJ.regexp,Equals:i.pJ.definitionOperator,Arrow:i.pJ.function(i.pJ.punctuation),": Spread":i.pJ.punctuation,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,"InterpolationStart InterpolationEnd":i.pJ.special(i.pJ.brace),".":i.pJ.derefOperator,", ;":i.pJ.separator,"@":i.pJ.meta,TypeName:i.pJ.typeName,TypeDefinition:i.pJ.definition(i.pJ.typeName),"type enum interface implements namespace module declare":i.pJ.definitionKeyword,"abstract global Privacy readonly override":i.pJ.modifier,"is keyof unique infer":i.pJ.operatorKeyword,JSXAttributeValue:i.pJ.attributeValue,JSXText:i.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":i.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i.pJ.attributeName,"JSXBuiltin/JSXIdentifier":i.pJ.standard(i.pJ.tagName)}),d={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},f={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},h={__proto__:null,"<":139},p=r.WQ.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AcQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AkQSO,5=sO!ApQSO,5=sO!AuQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BTQWO,5=`O!B]Q,UO,5=aO!BhQSO,5=cO!BmQ`O,5=fO!BuQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!BzQSO'#HRO9{Q,UO'#HTO!CPQSO'#HTOOQQ,5=i,5=iO!CUQSO'#HUO!C^QSO'#CmO!CcQSO,58}O!CmQSO,58}O!ErQUO,58}OOQQ,58},58}O!FSQ(C[O,58}O%[QUO,58}O!H_QUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!HuQSO,5=uO`QUO,5={O`QUO,5=}O!HzQSO,5>PO`QUO,5>RO!IPQSO,5>UO!IUQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!M`QSO,5>fOOQQ,5>h,5>hO!M`QSO,5>hOOQQ,5>j,5>jO!MeQWO'#DYO%[QUO'#JiO!NSQWO'#JiO!NqQWO'#DhO# SQWO'#DhO##eQUO'#DhO##lQSO'#JhO##tQSO,5:RO##yQSO'#EnO#$XQSO'#JvO#$aQSO,5;XO#$fQWO'#DhO#$sQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#$zQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%SQSO,5@TO#%XQ!LQO,5:pOOQO-E<_-E<_O#&_Q(C`O,5:{OChQWO,5:oO#&iQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#&vQ(C[O,5:{O#'RQ(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'aQ(C[O,5:{POOO'#IU'#IUP#'uO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(aQUO'#I[OOQO-ERQ(CjO1G0yO#?yQ(CjO1G0yO#ByQ$IUO'#CgO#DwQ$IUO1G1[O#EOQ$IUO'#JfO!,YQSO1G1bO#E`Q(CjO,5?SOOQ(CW-EeQSO1G3kO$.VQUO1G3mO$2ZQUO'#HlOOQQ1G3p1G3pO$2hQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$2pQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$6wQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$6|Q$IUO,5:SOOQO,5;Y,5;YO$7WQWO'#I]O$7nQSO,5@SOOQ(CY1G/m1G/mO$7vQWO'#IcO$8QQSO,5@bOOQ(CW1G0s1G0sO# SQWO,5:SOOQO'#I`'#I`O$8YQWO,5:nOOQ(CY,5:n,5:nO#$}QSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8aQ(C[O1G0gO$8lQ(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$8zQ(C[O1G0gOOQO1G0Z1G0ZO$9`Q(CjO1G0gPOOO-EvO$9|QSO1G5mO$:UQSO1G5zO$:^QbO1G5{O9TQSO,5>|O$:hQ(CjO1G5xO%[QUO1G5xO$:xQ(C[O1G5xO$;ZQSO1G5wO$;ZQSO1G5wO9TQSO1G5wO$;cQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$;wQSO,5?PO$$XQSO,5?POOQO-ExQ(CjO,5WOOQQ,5>W,5>WO%[QUO'#HmO%(ZQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%(`QWO1G5oO%(tQ$IUO1G0tO%)OQSO1G0tOOQO1G/n1G/nO%)ZQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9`Q(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%)eQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%)pQ(C[O7+&RO%*OQ(CjO7++dO%[QUO7++dO%*`QSO7++cO%*`QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%*hQSO1G4kOOQO7+%z7+%zO#$}QSO<xOOQO-E<[-E<[O%2^QbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%2hQSO1G5qOOQ(CY<XQ$IUO1G0yO%>`Q$IUO1G0yO%@WQ$IUO1G0yO%@kQ(CjO<XOOQQ,5>Z,5>ZO%NUQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO%NZQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&5rQSO<{AN>{O%[QUOAN?XOOQO<SQSO7++uO%LgQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&>[QSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#MzQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&>dQSOANBTOOQQ<iQSOLD,jO&>qQ$IUO7+'tO&@gQ$IUO7+'vO&B]Q,UOG26|OOQO<YOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#@sOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#CQO#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,gO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#CQO!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,gO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,gO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ hOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!^Oz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#PO#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$nOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+dO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#CQOm!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ hO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!^O#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#PO#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,gO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#CQO#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,gO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,gOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$I|Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$JoO(d$ZO~P#,gO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,gO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,gO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,gO!Y$|O~P#,gO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%$nOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O'v#mO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#CQO#Y5lO!W#bi!X#bi~O!W![i!X![i~P#CQO_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$I|O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$JoO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,gOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#CQOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%2}O#h9zO~P%2}OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5YOl9|O~P%5YOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%7eOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%7eOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:PO(k#|O~P%:POP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%<[O(l#}O~P%<[OP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO(TVO(k#|O(l#}O~O#w#gi#z#gi(d#gi!W#gi!X#gi~P%>gO_#xy!W#xy'm#xy'k#xy!T#xy!h#xyp#xy!Y#xy%b#xy!b#xy~P!7zOh;mOz)vO})wO(k)yO(l){O~OP#giY#gil#gi{#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(T#gi(d#gi!W#gi!X#gi~P%A_O!g#wOP(SXY(SXh(SXl(SXz(SX{(SX}(SX!f(SX!i(SX!m(SX#h(SX#i(SX#j(SX#k(SX#l(SX#m(SX#n(SX#o(SX#p(SX#r(SX#t(SX#v(SX#w(SX#z(SX(T(SX(d(SX(k(SX(l(SX!W(SX!X(SX~O#z#{i!W#{i!X#{i~P#CQO#z!oi!X!oi~P$$nO!X6`O~O!W'[a!X'[a~P#CQO!b#uO(d'gO!W']a!h']a~O!W/VO!h(qi~O!W/VO!b#uO!h(qi~Oe$vq!W$vq#Y$vq#z$vq~P!0kO!T'_a!W'_a~P#,gO!b6gO~O!W/_O!T(ri~P#,gO!W/_O!T(ri~O!T6kO~O!b#uO#p6pO~Ol6qO!b#uO(d'gO~O!T6sO~Oe$xq!W$xq#Y$xq#z$xq~P!0kO_$jy!W$jy'm$jy'k$jy!T$jy!h$jyp$jy!Y$jy%b$jy!b$jy~P!7zO!b5kO~O!W4WO!Y(sa~O_#]y!W#]y'm#]y'k#]y!T#]y!h#]yp#]y!Y#]y%b#]y!b#]y~P!7zOY6xO~O!W0bO!X(zi~O^7OO~O(W(tO!W'dX!X'dX~O!W4nO!X(wa~OjkO'v7VO~P.iO!X7YO~P%$nOm!nO}7ZO'xTO'{UO(W!mO(c!sO~O!Y0zO~O!Y0zO%b7]O~Oh7`O!Y0zO%b7]O~OY7eO!W'ga!X'ga~O!W1VO!X(xi~O!h7iO~O!h7jO~O!h7mO~O!h7mO~P%[O_7oO~O!b7pO~O!h7qO~O!W(ii!X(ii~P#CQO_%gO#Y7yO'm%gO~O!W(fy!h(fy_(fy'm(fy~P!7zO!W(`O!h(ey~O!Y'VO%b7|O~O#e$vqP$vqY$vq_$vql$vq{$vq!W$vq!f$vq!g$vq!i$vq!m$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#o$vq#p$vq#r$vq#t$vq#v$vq#w$vq'm$vq(T$vq(d$vq!h$vq!T$vq'k$vq#Y$vqp$vq!Y$vq%b$vq!b$vq~P#,gO#e$xqP$xqY$xq_$xql$xq{$xq!W$xq!f$xq!g$xq!i$xq!m$xq#h$xq#i$xq#j$xq#k$xq#l$xq#m$xq#n$xq#o$xq#p$xq#r$xq#t$xq#v$xq#w$xq'm$xq(T$xq(d$xq!h$xq!T$xq'k$xq#Y$xqp$xq!Y$xq%b$xq!b$xq~P#,gO!W'Ri!h'Ri~P!7zO#z#]q!W#]q!X#]q~P#CQOz/yO{/yO}/zOPwaYwahwalwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa#zwa(Twa(dwa(kwa(lwa!Wwa!Xwa~Oz)vO})wOP$maY$mah$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma#z$ma(T$ma(d$ma(k$ma(l$ma!W$ma!X$ma~Oz)vO})wOP$oaY$oah$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa#z$oa(T$oa(d$oa(k$oa(l$oa!W$oa!X$oa~OP$}aY$}al$}a{$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a#z$}a(T$}a(d$}a!W$}a!X$}a~P%A_O#z$iq!W$iq!X$iq~P#CQO#z$jq!W$jq!X$jq~P#CQO!X8WO~O#z8XO~P!0kO!b#uO!W']i!h']i~O!b#uO(d'gO!W']i!h']i~O!W/VO!h(qq~O!T'_i!W'_i~P#,gO!W/_O!T(rq~O!T8_O~P#,gO!T8_O~Oe(Ry!W(Ry~P!0kO!W'ba!Y'ba~P#,gO_%Uq!Y%Uq'm%Uq!W%Uq~P#,gOY8dO~O!W0bO!X(zq~O#Y8hO!W'da!X'da~O!W4nO!X(wi~P#CQOPZXYZXlZXzZX{ZX}ZX!TZX!WZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX~O!b%SX#p%SX~P&2_O!Y0zO%b8lO~O'xTO'{UO(W8qO~O!W1VO!X(xq~O!h8tO~O!h8uO~O!h8vO~O!h8vO~P%[O#Y8yO!W#by!X#by~O!W#by!X#by~P#CQO!Y'VO%b9OO~O#z#xy!W#xy!X#xy~P#CQOP$viY$vil$vi{$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi#z$vi(T$vi(d$vi!W$vi!X$vi~P%A_Oz)vO})wO(l){OP%YiY%Yih%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi#z%Yi(T%Yi(d%Yi(k%Yi!W%Yi!X%Yi~Oz)vO})wOP%[iY%[ih%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i#z%[i(T%[i(d%[i(k%[i(l%[i!W%[i!X%[i~O#z$jy!W$jy!X$jy~P#CQO#z#]y!W#]y!X#]y~P#CQO!b#uO!W']q!h']q~O!W/VO!h(qy~O!T'_q!W'_q~P#,gO!T9VO~P#,gO!W0bO!X(zy~O!W4nO!X(wq~O!Y0zO%b9^O~O!h9aO~O!Y'VO%b9fO~OP$vqY$vql$vq{$vq!f$vq!g$vq!i$vq!m$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#o$vq#p$vq#r$vq#t$vq#v$vq#w$vq#z$vq(T$vq(d$vq!W$vq!X$vq~P%A_OP$xqY$xql$xq{$xq!f$xq!g$xq!i$xq!m$xq#h$xq#i$xq#j$xq#k$xq#l$xq#m$xq#n$xq#o$xq#p$xq#r$xq#t$xq#v$xq#w$xq#z$xq(T$xq(d$xq!W$xq!X$xq~P%A_Oe%^!Z!W%^!Z#Y%^!Z#z%^!Z~P!0kO!W'dq!X'dq~P#CQO!W#b!Z!X#b!Z~P#CQO#e%^!ZP%^!ZY%^!Z_%^!Zl%^!Z{%^!Z!W%^!Z!f%^!Z!g%^!Z!i%^!Z!m%^!Z#h%^!Z#i%^!Z#j%^!Z#k%^!Z#l%^!Z#m%^!Z#n%^!Z#o%^!Z#p%^!Z#r%^!Z#t%^!Z#v%^!Z#w%^!Z'm%^!Z(T%^!Z(d%^!Z!h%^!Z!T%^!Z'k%^!Z#Y%^!Zp%^!Z!Y%^!Z%b%^!Z!b%^!Z~P#,gOP%^!ZY%^!Zl%^!Z{%^!Z!f%^!Z!g%^!Z!i%^!Z!m%^!Z#h%^!Z#i%^!Z#j%^!Z#k%^!Z#l%^!Z#m%^!Z#n%^!Z#o%^!Z#p%^!Z#r%^!Z#t%^!Z#v%^!Z#w%^!Z#z%^!Z(T%^!Z(d%^!Z!W%^!Z!X%^!Z~P%A_Op(XX~P1qO'w!lO~P!*SO!TdX!WdX#YdX~P&2_OPZXYZXlZXzZX{ZX}ZX!WZX!WdX!fZX!gZX!iZX!mZX#YZX#YdX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX~O!bdX!hZX!hdX(ddX~P&GuOP9qOQ9qOb;bOc!iOjkOl9qOmkOnkOtkOv9qOx9qO}WO!RkO!SkO!YXO!d9tO!iZO!l9qO!m9qO!n9qO!p9uO!r9xO!u!hO$R!kO$VfO'v)UO'xTO'{UO(TVO(c[O(p;`O~O!W:VO!X$la~Oj%SOl$tOm$sOn$sOt%TOv%UOx:]O}${O!Y$|O!d;gO!i$xO#d:cO$R%YO$n:_O$p:aO$s%ZO'v(lO'xTO'{UO(P%RO(T$uO~O#q)]O~P&LkO!XZX!XdX~P&GuO#e9yO~O!b#uO#e9yO~O#Y:ZO~O#p:OO~O#Y:eO!W(iX!X(iX~O#Y:ZO!W(gX!X(gX~O#e:fO~Oe:hO~P!0kO#e:mO~O#e:nO~O!b#uO#e:oO~O!b#uO#e:fO~O#z:pO~P#CQO#e:qO~O#e:rO~O#e:sO~O#e:tO~O#e:uO~O#e:vO~O#z:wO~P!0kO#z:xO~P!0kO$V~!g!}#O#Q#R#U#c#d#o(p$n$p$s%V%a%b%c%j%l%o%p%r%t~'qR$V(p#i!S'o'w#jm#h#klz'p(W'p'v$X$Z$X~",goto:"$'R)OPPPP)PPP)SP)eP*t.xPPPP5YPP5pP;l>sP?WP?WPPP?WP@xP?WP?WP?WP@|PPARPAlPFdPPPFhPPPPFhIiPPPIoJjPFhPLxPPPP! WFhPPPFhPFhP!#fFhP!&z!'|!(VP!(y!(}!(yPPPPP!,Y!'|PP!,v!-pP!0dFhFh!0i!3s!8Y!8Y!wP#@W#@_#@gPPPP#Du#Gl#NT#NW#NZ$ S$ V$ Y$ a$ iPP$ o$ s$!k$#j$#n$$SPP$$W$$^$$bP$$e$$i$$l$%b$%y$&b$&f$&i$&l$&r$&u$&y$&}R!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:a,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[c],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#d[e]||-1},{term:330,get:e=>f[e]||-1},{term:68,get:e=>h[e]||-1}],tokenPrec:12827});var m=n(72107),g=n(30638),v=n(87283),O=n(71170),y=n(54163);const b=[(0,O.Gn)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,O.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,O.Gn)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,O.Gn)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,O.Gn)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,O.Gn)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,O.Gn)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,O.Gn)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,O.Gn)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,O.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,O.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],w=b.concat([(0,O.Gn)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,O.Gn)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,O.Gn)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),k=new y.hr,x=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function _(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const S=["FunctionDeclaration"],P={FunctionDeclaration:_("function"),ClassDeclaration:_("class"),ClassExpression:()=>!0,EnumDeclaration:_("constant"),TypeAliasDeclaration:_("type"),NamespaceDeclaration:_("namespace"),VariableDefinition(e,t){e.matchContext(S)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function E(e,t){let n=k.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(y.vj.IncludeAnonymous).iterate((t=>{if(i)i=!1;else if(t.name){let e=P[t.name];if(e&&e(t,o)||x.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of E(e,t.node))r.push(n);return!1}})),k.set(t,r),r}const C=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,T=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function $(e){let t=(0,m.qz)(e.state).resolveInner(e.pos,-1);if(T.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&C.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)x.has(n.name)&&(r=r.concat(E(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:C}}function Q(e,t,n){var r;let i=[];for(;;){let o,a=t.firstChild;if("VariableName"==(null==a?void 0:a.name))return i.push(e(a)),{path:i.reverse(),name:n};if("MemberExpression"!=(null==a?void 0:a.name)||"PropertyName"!=(null===(r=o=a.lastChild)||void 0===r?void 0:r.name))return null;i.push(e(o)),t=a}}function R(e){let t=t=>e.state.doc.sliceString(t.from,t.to),n=(0,m.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==n.name?Q(t,n.parent,t(n)):"."!=n.name&&"?."!=n.name||"MemberExpression"!=n.parent.name?T.indexOf(n.name)>-1?null:"VariableName"==n.name||n.to-n.from<20&&C.test(t(n))?{path:[],name:t(n)}:"MemberExpression"==n.name?Q(t,n,""):e.explicit?{path:[],name:""}:null:Q(t,n.parent,"")}function A(e){let t=new Map;return n=>{let r=R(n);if(!r)return null;let i=e;for(let e of r.path)if(i=i[e],!i)return null;let o=t.get(i);return o||t.set(i,o=function(e,t){let n=[],r=new Set;for(let i=0;;i++){for(let o of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(o)||r.has(o))continue;let a;r.add(o);try{a=e[o]}catch(e){continue}n.push({label:o,type:"function"==typeof a?/^[A-Z]/.test(o)?"class":t?"function":"method":t?"variable":"property",boost:-i})}let o=Object.getPrototypeOf(e);if(!o)return n;e=o}}(i,!r.path.length)),{from:n.pos-r.name.length,options:o,validFor:C}}}const j=m.qp.define({name:"javascript",parser:p.configure({props:[m.uj.add({IfStatement:(0,m.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,m.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:m.ze,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,m.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,m.tC)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),m.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":m.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),D={test:e=>/^JSX/.test(e.name),facet:(0,m.kU)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},M=j.configure({dialect:"ts"},"typescript"),I=j.configure({dialect:"jsx",props:[m.KC.add((e=>e.isTop?[D]:void 0))]}),z=j.configure({dialect:"jsx ts",props:[m.KC.add((e=>e.isTop?[D]:void 0))]},"typescript");let W=e=>({label:e,type:"keyword"});const N="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(W),L=N.concat(["declare","implements","private","protected","public"].map(W));function F(e={}){let t=e.jsx?e.typescript?z:I:e.typescript?M:j,n=e.typescript?w.concat(L):b.concat(N);return new m.ri(t,[j.data.of({autocomplete:(0,O.eC)(T,(0,O.Mb)(n))}),j.data.of({autocomplete:$}),e.jsx?q:[]])}function U(e,t,n=e.length){for(let r=null==t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const X="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),q=v.tk.inputHandler.of(((e,t,n,r,i)=>{if((X?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!j.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange((e=>{var t;let n,{head:i}=e,o=(0,m.qz)(a).resolveInner(i-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),a.doc.sliceString(i-1,i)!=r||"JSXAttributeValue"==o.name&&o.to>i);else{if(">"==r&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:i,insert:""}};if("/"==r&&"JSXStartCloseTag"==o.name){let e=o.parent,r=e.parent;if(r&&e.from==i-2&&((n=U(a.doc,r.firstChild,i))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:g.jT.cursor(i+e.length,-1),changes:{from:i,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&!/^\/?>|^<\//.test(a.doc.sliceString(i,i+2))&&(n=U(a.doc,t,i)))return{range:e,changes:{from:i,insert:``}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));function B(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach(((e,n)=>{e.meta.docs.recommended&&(t.rules[n]=2)}))),n=>{let{state:r}=n,i=[];for(let{from:n,to:o}of j.findRegions(r)){let a=r.doc.lineAt(n),s={line:a.number-1,col:n-a.from,pos:n};for(let a of e.verify(r.sliceDoc(n,o),t))i.push(Y(a,r.doc,s))}return i}}function V(e,t,n,r){return n.line(e+r.line).from+t+(1==e?r.col-1:-1)}function Y(e,t,n){let r=V(e.line,e.column,t,n),i={from:r,to:null!=e.endLine&&1!=e.endColumn?V(e.endLine,e.endColumn,t,n):r,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:o}=e.fix,a=t[0]+n.pos-r,s=t[1]+n.pos-r;i.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+a,to:t+s,insert:o},scrollIntoView:!0})}}]}return i}},54623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{json:()=>c,jsonLanguage:()=>u,jsonParseLinter:()=>l});var r=n(64963),i=n(7778);const o=(0,i.Gv)({String:i.pJ.string,Number:i.pJ.number,"True False":i.pJ.bool,PropertyName:i.pJ.propertyName,Null:i.pJ.null,",":i.pJ.separator,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace}),a=r.WQ.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[o],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var s=n(72107);const l=()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(t){if(!(t instanceof SyntaxError))throw t;const n=function(e,t){let n;return(n=e.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=e.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0}(t,e.state.doc);return[{from:n,message:t.message,severity:"error",to:n}]}return[]},u=s.qp.define({name:"json",parser:a.configure({props:[s.uj.add({Object:(0,s.tC)({except:/^\s*\}/}),Array:(0,s.tC)({except:/^\s*\]/})}),s.x0.add({"Object Array":s.Dv})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new s.ri(u)}},83856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{commonmarkLanguage:()=>qe,deleteMarkupBackward:()=>et,insertNewlineContinueMarkup:()=>Ke,markdown:()=>rt,markdownKeymap:()=>tt,markdownLanguage:()=>Be});var r,i=n(30638),o=n(87283),a=n(72107),s=n(71170),l=n(54163),u=n(7778);class c{static create(e,t,n,r,i){return new c(e,t,n,r+(r<<8)+e+(t<<4)|0,i,[],[])}constructor(e,t,n,r,i,o,a){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=o,this.positions=a,this.hashProp=[[l.md.contextHash,r]]}addChild(e,t){e.prop(l.md.contextHash)!=this.hash&&(e=new l.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new l.mp(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new l.mp(l.Jq.none,e,t,n,this.hashProp)})}}!function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.URL=33]="URL",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel"}(r||(r={}));class d{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class f{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return g(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let i=(e.type==r.OrderedList?x:k)(n,t,!1);return i>0&&(e.type!=r.BulletList||b(n,t,!1)<0)&&n.text.charCodeAt(n.pos+i-1)==e.value}const p={[r.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(H(r.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(m(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[r.ListItem]:(e,t,n)=>!(n.indent-1||(n.moveBaseColumn(n.baseIndent+e.value),0)),[r.OrderedList]:h,[r.BulletList]:h,[r.Document]:()=>!0};function m(e){return 32==e||9==e||10==e||13==e}function g(e,t=0){for(;tn&&m(e.charCodeAt(t-1));)t--;return t}function O(e){if(96!=e.next&&126!=e.next)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||r<3?-1:1}function w(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function k(e,t,n){return 45!=e.next&&43!=e.next&&42!=e.next||e.pos!=e.text.length-1&&!m(e.text.charCodeAt(e.pos+1))||!(!n||w(t,r.BulletList)||e.skipSpace(e.pos+2)=48&&o<=57;){if(i++,i==e.text.length)return-1;o=e.text.charCodeAt(i)}return i==e.pos||i>e.pos+9||46!=o&&41!=o||ie.pos+1||49!=e.next)?-1:i+1-e.pos}function _(e){if(35!=e.next)return-1;let t=e.pos+1;for(;t6?-1:n}function S(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,C=/\?>/,T=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(i);if(a)return e.append(H(r.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(i);if(s)return e.append(H(r.ProcessingInstruction,n,n+1+s[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return l?e.append(H(r.HTMLTag,n,n+1+l[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),o=e.slice(r,r+1),a=re.test(i),s=re.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),f=c&&(42==t||!d||a),h=d&&(42==t||!c||s);return e.append(new ne(95==t?K:J,n,r,(f?1:0)|(h?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(H(r.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(H(r.HardBreak,n,t+1))}return-1},Link:(e,t,n)=>91==t?e.append(new ne(ee,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new ne(te,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return-1;for(let t=e.parts.length-1;t>=0;t--){let i=e.parts[t];if(i instanceof ne&&(i.type==ee||i.type==te)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let o=e.takeContent(t),a=e.parts[t]=oe(e,o,i.type==ee?r.Link:r.Image,i.from,n+1);if(i.type==ee)for(let n=0;nt?H(r.URL,t+n,o+n):o==e.length&&null}}function se(e,t,n){let i=e.charCodeAt(t);if(39!=i&&34!=i&&40!=i)return!1;let o=40==i?41:i;for(let i=t+1,a=!1;i=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new ne(e,t,n,(r?1:0)|(i?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t=e;a--){let e=this.parts[a];if(e instanceof ne&&1&e.side&&e.type==n.type&&!(i&&(1&n.side||2&e.side)&&(e.to-e.from+o)%3==0&&((e.to-e.from)%3||o%3))){r=e;break}}if(!r)continue;let s=n.type.resolve,l=[],u=r.from,c=n.to;if(i){let e=Math.min(2,r.to-r.from,o);u=r.to-e,c=n.from+e,s=1==e?"Emphasis":"StrongEmphasis"}r.type.mark&&l.push(this.elt(r.type.mark,u,r.to));for(let e=a+1;e=0;t--){let n=this.parts[t];if(n instanceof ne&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return g(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return"string"==typeof e?H(this.parser.getNodeType(e),t,n,r):new G(e,t)}}function ce(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(l.md.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=e.absoluteLineStart,a=o,s=e.block.children.length,u=a,c=s;for(;;){if(t.to-n>i){if(t.type.isAnonymous&&t.firstChild())continue;break}let o=he(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,o);else{let n=new l.mp(e.parser.nodeSet.types[r.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,o)}if(t.type.is("Block")&&(de.indexOf(t.type.id)<0?(a=t.to-n,s=e.block.children.length):(a=u,s=c,u=t.to-n,c=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>s;)e.block.children.pop(),e.block.positions.pop();return a-o}}function he(e,t){let n=e;for(let r=1;rA[e])),Object.keys(A).map((e=>I[e])),Object.keys(A),z,p,Object.keys(ie).map((e=>ie[e])),Object.keys(ie),[]);function ge(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let e=i?i.from:n;if(e>o&&r.push({from:o,to:e}),!i)break;o=i.to}return r}const ve={resolve:"Strikethrough",mark:"StrikethroughMark"},Oe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":u.pJ.strikethrough}},{name:"StrikethroughMark",style:u.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(126!=t||126!=e.char(n+1)||126==e.char(n+2))return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=re.test(r),l=re.test(i);return e.addDelimiter(ve,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function ye(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1),u=!u&&92==n}return s>-1&&(o++,r&&c()),o}function be(e,t){for(let n=t;nbe(t.content,0)?new ke:null,endLeaf(e,t,n){if(n.parsers.some((e=>e instanceof ke))||!be(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return we.test(r)&&ye(e,t.text,t.basePos)==ye(e,r,t.basePos)},before:"SetextHeading"}]};class _e{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const Se={defineNodes:[{name:"Task",block:!0,style:u.pJ.list},{name:"TaskMarker",style:u.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\][ \t]/.test(t.content)&&"ListItem"==e.parentType().name?new _e:null,after:"SetextHeading"}]},Pe=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Ee=/[\w-]+(\.\w+(\.\w+)?)(\/[^\s<]*)?/gy,Ce=/[\w.+-]+@[\w-]+\.[\w.-]+/gy,Te=/\/[a-zA-Z\d@.]+/gy;function $e(e,t,n,r){let i=0;for(let o=t;o$e(e,t,r,"("))r--;else{if(";"!=i||!(n=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))break;r=t+n.index}}return r}(e.text,r+i[0].length):i[3]?o=Qe(e.text,r):(o=Qe(e.text,r+i[0].length),o>-1&&"xmpp:"==i[0]&&(Te.lastIndex=o,i=Te.exec(e.text),i&&(o=i.index+i[0].length))),o<0?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)):-1}}]}];function Ae(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let i=o+1;i!e.is("Block")||e.is("Document")||null!=Le(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to}))),We.add(Le),a.uj.add({Document:()=>null}),a.pp.add({Document:ze})]});function Le(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function Fe(e,t){let n=e;for(;;){let e,r=n.nextSibling;if(!r||null!=(e=Le(r.type))&&e<=t)break;n=r}return n.to}const Ue=a.rs.of(((e,t,n)=>{for(let r=(0,a.qz)(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:t}}return null}));function Xe(e){return new a.SQ(ze,e,[Ue],"markdown")}const qe=Xe(Ne),Be=Xe(Ne.configure([Re,De,je,Me]));class Ve{constructor(e,t,n,r,i,o,a){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=o,this.item=a}blank(e,t=!0){let n=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;n.length0;e--)n+=" ";return n+(t?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+Ze(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function Ye(e,t){let n=[];for(let t=e;t&&"Document"!=t.name;t=t.parent)"ListItem"!=t.name&&"Blockquote"!=t.name&&"FencedCode"!=t.name||n.push(t);let r=[];for(let e=n.length-1;e>=0;e--){let i,o=n[e],a=t.lineAt(o.from),s=o.from-a.from;if("FencedCode"==o.name)r.push(new Ve(o,s,s,"","","",null));else if("Blockquote"==o.name&&(i=/^ *>( ?)/.exec(a.text.slice(s))))r.push(new Ve(o,s,s+i[0].length,"",i[1],">",null));else if("ListItem"==o.name&&"OrderedList"==o.parent.name&&(i=/^( *)\d+([.)])( *)/.exec(a.text.slice(s)))){let e=i[3],t=i[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new Ve(o.parent,s,s+t,i[1],e,i[2],o))}else if("ListItem"==o.name&&"BulletList"==o.parent.name&&(i=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(s)))){let e=i[4],t=i[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=i[2];i[3]&&(n+=i[3].replace(/[xX]/," ")),r.push(new Ve(o.parent,s,s+t,i[1],e,n,o))}}return r}function Ze(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function Ge(e,t,n,r=0){for(let i=-1,o=e;;){if("ListItem"==o.name){let e=Ze(o,t),a=+e[2];if(i>=0){if(a!=i+1)return;n.push({from:o.from+e[1].length,to:o.from+e[0].length,insert:String(i+2+r)})}i=a}let e=o.nextSibling;if(!e)break;o=e}}function He(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||"\t"!=t.facet(a.c))return e;let r="";for(let t=(0,i.IS)(e,4,n);t>0;)t>=4?(r+="\t",t-=4):(r+=" ",t--);return r+e.slice(n)}const Ke=({state:e,dispatch:t})=>{let n=(0,a.qz)(e),{doc:r}=e,o=null,s=e.changeByRange((t=>{if(!t.empty||!Be.isActiveAt(e,t.from))return o={range:t};let a=t.from,s=r.lineAt(a),l=Ye(n.resolveInner(a,-1),r);for(;l.length&&l[l.length-1].from>a-s.from;)l.pop();if(!l.length)return o={range:t};let u=l[l.length-1];if(u.to-u.spaceAfter.length>a-s.from)return o={range:t};let c=a>=u.to-u.spaceAfter.length&&!/\S/.test(s.text.slice(u.to));if(u.item&&c){if(u.node.firstChild.to>=a||s.from>0&&!/[^\s>]/.test(r.lineAt(s.from-1).text)){let e,t=l.length>1?l[l.length-2]:null,n="";t&&t.item?(e=s.from+t.from,n=t.marker(r,1)):e=s.from+(t?t.to:0);let o=[{from:e,to:a,insert:n}];return"OrderedList"==u.node.name&&Ge(u.item,r,o,-2),t&&"OrderedList"==t.node.name&&Ge(t.item,r,o),{range:i.jT.cursor(e+n.length),changes:o}}{let t="";for(let e=0,n=l.length-2;e<=n;e++)t+=l[e].blank(e\s*$/.exec(n.text);if(i&&i.index==u.from){let r=e.changes([{from:n.from+i.index,to:n.to},{from:s.from+u.from,to:s.to}]);return{range:t.map(r),changes:r}}}let d=[];"OrderedList"==u.node.name&&Ge(u.item,r,d);let f=u.item&&u.item.from]*/.exec(s.text)[0].length>=u.to)for(let e=0,t=l.length-1;e<=t;e++)h+=e!=t||f?l[e].blank(es.from&&/\s/.test(s.text.charAt(p-s.from-1));)p--;return h=e.lineBreak+He(h,e),d.push({from:p,to:a,insert:h}),{range:i.jT.cursor(p+h.length),changes:d}}));return!o&&(t(e.update(s,{scrollIntoView:!0,userEvent:"input"})),!0)};function Je(e){return"QuoteMark"==e.name||"ListMark"==e.name}const et=({state:e,dispatch:t})=>{let n=(0,a.qz)(e),r=null,o=e.changeByRange((t=>{let o=t.from,{doc:a}=e;if(t.empty&&Be.isActiveAt(e,t.from)){let t=a.lineAt(o),r=Ye(function(e,t){let n=e.resolveInner(t,-1),r=t;Je(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(Je(e))r=e.from;else{if("OrderedList"!=e.name&&"BulletList"!=e.name)break;n=e.lastChild,r=n.to}return n}(n,o),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(o-t.from>a&&!/\S/.test(t.text.slice(a,o-t.from)))return{range:i.jT.cursor(t.from+a),changes:{from:t.from+a,to:o}};if(o-t.from==a&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from{if(e&&m){let t=null;if(e=/\S*/.exec(e)[0],t="function"==typeof m?m(e):a.c6.matchLanguageName(m,e,!0),t instanceof a.c6)return t.support?t.support.language.parser:a.Be.getSkippingParser(t.load());if(t)return t.parser}return g?g.parser:null}):void 0;var m,g;f.push(function(e){let{codeParser:t,htmlParser:n}=e,i=(0,l.FE)(((e,i)=>{let o=e.type.id;if(!t||o!=r.CodeBlock&&o!=r.FencedCode){if(n&&(o==r.HTMLBlock||o==r.HTMLTag))return{parser:n,overlay:ge(e.node,e.from,e.to)}}else{let n="";if(o==r.FencedCode){let t=e.node.getChild(r.CodeInfo);t&&(n=i.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==r.CodeText}}return null}));return{wrap:i}}({codeParser:p,htmlParser:nt.language.parser})),s&&h.push(i.Wl.high(o.$f.of(tt)));let v=Xe(u.configure(f));return c&&h.push(v.data.of({autocomplete:it})),new a.ri(v,h)}function it(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=(0,a.qz)(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if("CodeBlock"==i.name||"FencedCode"==i.name||"ProcessingInstructionBlock"==i.name||"CommentBlock"==i.name||"Link"==i.name||"Image"==i.name)return null;i=i.parent}return{from:n-r[0].length,to:n,options:at(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let ot=null;function at(){if(ot)return ot;let e=(0,Ie.htmlCompletionSource)(new s.TK(i.yy.create({extensions:nt}),0,!0));return ot=e?e.options:[]}},48291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{php:()=>_,phpLanguage:()=>x});var r=n(64963),i=n(7778);const o={abstract:4,and:5,array:6,as:7,true:8,false:8,break:9,case:10,catch:11,clone:12,const:13,continue:14,declare:16,default:15,do:17,echo:18,else:19,elseif:20,enddeclare:21,endfor:22,endforeach:23,endif:24,endswitch:25,endwhile:26,enum:27,extends:28,final:29,finally:30,fn:31,for:32,foreach:33,from:34,function:35,global:36,goto:37,if:38,implements:39,include:40,include_once:41,instanceof:42,insteadof:43,interface:44,list:45,match:46,namespace:47,new:48,null:49,or:50,print:51,require:52,require_once:53,return:54,switch:55,throw:56,trait:57,try:58,unset:59,use:60,var:61,public:62,private:62,protected:62,while:63,xor:64,yield:65,__proto__:null};function a(e){let t=o[e.toLowerCase()];return null==t?-1:t}function s(e){return 9==e||10==e||13==e||32==e}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(e){return 95==e||e>=128||l(e)}function c(e){return e>=48&&e<=55||e>=97&&e<=102||e>=65&&e<=70}const d={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},f=new r.Jq((e=>{if(40==e.next){e.advance();let t=0;for(;s(e.peek(t));)t++;let n,r="";for(;l(n=e.peek(t));)r+=String.fromCharCode(n),t++;for(;s(e.peek(t));)t++;41==e.peek(t)&&d[r.toLowerCase()]&&e.acceptToken(1)}else if(60==e.next&&60==e.peek(1)&&60==e.peek(2)){for(let t=0;t<3;t++)e.advance();for(;32==e.next||9==e.next;)e.advance();let t=39==e.next;if(t&&e.advance(),!u(e.next))return;let n=String.fromCharCode(e.next);for(;e.advance(),u(e.next)||e.next>=48&&e.next<=55;)n+=String.fromCharCode(e.next);if(t){if(39!=e.next)return;e.advance()}if(10!=e.next&&13!=e.next)return;for(;;){let t=10==e.next||13==e.next;if(e.advance(),e.next<0)return;if(t){for(;32==e.next||9==e.next;)e.advance();let t=!0;for(let r=0;r{e.next<0&&e.acceptToken(266)})),p=new r.Jq(((e,t)=>{63==e.next&&t.canShift(265)&&62==e.peek(1)&&e.acceptToken(265)}));function m(e){let t=e.peek(1);if(110==t||114==t||116==t||118==t||101==t||102==t||92==t||36==t||34==t||123==t)return 2;if(t>=48&&t<=55){let t,n=2;for(;n<5&&(t=e.peek(n))>=48&&t<=55;)n++;return n}if(120==t&&c(e.peek(2)))return c(e.peek(3))?4:3;if(117==t&&123==e.peek(2))for(let t=3;;t++){let n=e.peek(t);if(125==n)return 2==t?0:t+1;if(!c(n))break}return 0}const g=new r.Jq(((e,t)=>{let n=!1;for(;!(34==e.next||e.next<0||36==e.next&&(u(e.peek(1))||123==e.peek(1))||123==e.next&&36==e.peek(1));n=!0){if(92==e.next){let t=m(e);if(t){if(n)break;return e.acceptToken(3,t)}}else if(!n&&(91==e.next||45==e.next&&62==e.peek(1)&&u(e.peek(2))||63==e.next&&45==e.peek(1)&&62==e.peek(2)&&u(e.peek(3)))&&t.canShift(264))break;e.advance()}n&&e.acceptToken(263)})),v=(0,i.Gv)({"Visibility abstract final static":i.pJ.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":i.pJ.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":i.pJ.controlKeyword,"and or xor yield unset clone instanceof insteadof":i.pJ.operatorKeyword,"function fn class trait implements extends const enum global interface use var":i.pJ.definitionKeyword,"include include_once require require_once namespace":i.pJ.moduleKeyword,"new from echo print array list as":i.pJ.keyword,null:i.pJ.null,Boolean:i.pJ.bool,VariableName:i.pJ.variableName,"NamespaceName/...":i.pJ.namespace,"NamedType/...":i.pJ.typeName,Name:i.pJ.name,"CallExpression/Name":i.pJ.function(i.pJ.variableName),"LabelStatement/Name":i.pJ.labelName,"MemberExpression/Name":i.pJ.propertyName,"MemberExpression/VariableName":i.pJ.special(i.pJ.propertyName),"ScopedExpression/ClassMemberName/Name":i.pJ.propertyName,"ScopedExpression/ClassMemberName/VariableName":i.pJ.special(i.pJ.propertyName),"CallExpression/MemberExpression/Name":i.pJ.function(i.pJ.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":i.pJ.function(i.pJ.propertyName),"MethodDeclaration/Name":i.pJ.function(i.pJ.definition(i.pJ.variableName)),"FunctionDefinition/Name":i.pJ.function(i.pJ.definition(i.pJ.variableName)),"ClassDeclaration/Name":i.pJ.definition(i.pJ.className),UpdateOp:i.pJ.updateOperator,ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,ControlOp:i.pJ.controlOperator,AssignOp:i.pJ.definitionOperator,"$ ConcatOp":i.pJ.operator,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Integer:i.pJ.integer,Float:i.pJ.float,String:i.pJ.string,ShellExpression:i.pJ.special(i.pJ.string),"=> ->":i.pJ.punctuation,"( )":i.pJ.paren,"#[ [ ]":i.pJ.squareBracket,"${ { }":i.pJ.brace,"-> ?->":i.pJ.derefOperator,", ; :: : \\":i.pJ.separator,"PhpOpen PhpClose":i.pJ.processingInstruction}),O={__proto__:null,static:311,STATIC:311,class:333,CLASS:333},y=r.WQ.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]Q`O'#FvO8eQaO'#FwO*kQaO'#GVO*kQaO'#GYO8}OrO'#G]OOQS'#Iq'#IqOOQS'#Ip'#IpOOQS'#IW'#IWO,zQ`O'#GdO,zQ`O'#GfO,zQ`O'#GkOhQaO'#GmO9UQ`O'#GnO9ZQ`O'#GqO9`Q`O'#GtO9eQeO'#GuO9eQeO'#GvO9eQeO'#GwO9oQ`O'#GxO9tQ`O'#GzO9yQaO'#G{OS,5>SOJ[QdO,5;gOOQO-E;f-E;fOL^Q`O,5;gOLcQpO,5;bO0aQ`O'#EyOLkQtO'#E}OOQS'#Ez'#EzOOQS'#Ib'#IbOM`QaO,5:wO*kQaO,5;nOOQS,5;p,5;pO*kQaO,5;pOMgQdO,5UQaO,5=hO!-eQ`O'#F}O!-jQdO'#IlO!&WQdO,5=iOOQ#u,5=j,5=jO!-uQ`O,5=lO!-xQ`O,5=mO!-}Q`O,5=nO!.YQdO,5=qOOQ#u,5=q,5=qO!.eQ`O,5=rO!.eQ`O,5=rO!.mQdO'#IwO!.{Q`O'#HXO!&WQdO,5=rO!/ZQ`O,5=rO!/fQdO'#IYO!&WQdO,5=vOOQ#u-E;_-E;_O!1RQ`O,5=kOOO#u,5:^,5:^O!1^O#|O,5:^OOO#u-E;^-E;^OOOO,5>p,5>pOOQ#y1G0S1G0SO!1fQ`O1G0XO*kQaO1G0XO!2xQ`O1G0pOOQS1G0p1G0pO!4[Q`O1G0pOOQS'#I_'#I_O*kQaO'#I_OOQS1G0q1G0qO!4cQ`O'#IaO!7lQ`O'#E}O!7yQaO'#EuOOQO'#Ia'#IaO!8TQ`O'#I`O!8]Q`O,5;_OOQS'#FQ'#FQOOQS1G1U1G1UO!8bQdO1G1]O!:dQdO1G1]O!wO#(fQaO'#HdO#(vQ`O,5>vOOQS1G0d1G0dO#)OQ`O1G0dO#)TQ`O'#I^O#*mQ`O'#I^O#*uQ`O,5;ROIbQaO,5;ROOQS1G0u1G0uPOQO'#E}'#E}O#+fQdO1G1RO0aQ`O'#HgO#-hQtO,5;cO#.YQaO1G0|OOQS,5;e,5;eO#0iQtO,5;gO#0vQdO1G0cO*kQaO1G0cO#2cQdO1G1YO#4OQdO1G1[OOQO,5<^,5<^O#4`Q`O'#HjO#4nQ`O,5?ROOQO1G1w1G1wO#4vQ`O,5?ZO!&WQdO1G3TO<_Q`O1G3TOOQ#u1G3U1G3UO#4{Q`O1G3YO!1RQ`O1G3VO#5WQ`O1G3VO#5]QpO'#FoO#5kQ`O'#FoO#5{Q`O'#FoO#6WQ`O'#FoO#6`Q`O'#FsO#6eQ`O'#FtOOQO'#If'#IfO#6lQ`O'#IeO#6tQ`O,5tOOQ#u1G3b1G3bOOQ#u1G3V1G3VO!-xQ`O1G3VO!1UQ`O1G3VOOO#u1G/x1G/xO*kQaO7+%sO#MuQdO7+%sOOQS7+&[7+&[O$ bQ`O,5>yO>UQaO,5;`O$ iQ`O,5;aO$#OQaO'#HfO$#YQ`O,5>zOOQS1G0y1G0yO$#bQ`O'#EYO$#gQ`O'#IXO$#oQ`O,5:sOOQS1G0e1G0eO$#tQ`O1G0eO$#yQ`O1G0iO9yQaO1G0iOOQO,5>O,5>OOOQO-E;b-E;bOOQS7+&O7+&OO>UQaO,5;SO$%`QaO'#HeO$%jQ`O,5>xOOQS1G0m1G0mO$%rQ`O1G0mOOQS,5>R,5>ROOQS-E;e-E;eO$%wQdO7+&hO$'yQtO1G1RO$(WQdO7+%}OOQS1G0i1G0iOOQO,5>U,5>UOOQO-E;h-E;hOOQ#u7+(o7+(oO!&WQdO7+(oOOQ#u7+(t7+(tO#KmQ`O7+(tO0aQ`O7+(tOOQ#u7+(q7+(qO!-xQ`O7+(qO!1UQ`O7+(qO!1RQ`O7+(qO$)sQ`O,5UQaO,5],5>]OOQS-E;o-E;oO$.iQdO7+'hO$.yQpO7+'hO$/RQdO'#IiOOQO,5dOOQ#u,5>d,5>dOOQ#u-E;v-E;vO$;lQaO7+(lO$cOOQS-E;u-E;uO!&WQdO7+(nO$=mQdO1G2TOOQS,5>[,5>[OOQS-E;n-E;nOOQ#u7+(r7+(rO$?nQ`O'#GQO$?uQ`O'#GQO$@ZQ`O'#HUOOQO'#Hy'#HyO$@`Q`O,5=oOOQ#u,5=o,5=oO$@gQpO7+(tOOQ#u7+(x7+(xO!&WQdO7+(xO$@rQdO,5>fOOQS-E;x-E;xO$AQQdO1G4}O$A]Q`O,5=tO$AbQ`O,5=tO$AmQ`O'#H{O$BRQ`O,5?dOOQS1G3_1G3_O#KrQ`O7+(xO$BZQdO,5=|OOQS-E;`-E;`O$CvQdO<Q,5>QOOQO-E;d-E;dO$8YQaO,5:tO$FxQaO'#HcO$GVQ`O,5>sOOQS1G0_1G0_OOQS7+&P7+&PO$G_Q`O7+&TO$HtQ`O1G0nO$JZQ`O,5>POOQO,5>P,5>POOQO-E;c-E;cOOQS7+&X7+&XOOQS7+&T7+&TOOQ#u<UQaO1G1uO$KsQ`O1G1uO$LOQ`O1G1yOOQO1G1y1G1yO$LTQ`O1G1uO$L]Q`O1G1uO$MrQ`O1G1zO>UQaO1G1zOOQO,5>V,5>VOOQO-E;i-E;iOOQS<`OOQ#u-E;r-E;rOhQaO<aOOQO-E;s-E;sO!&WQdO<g,5>gOOQO-E;y-E;yO!&WQdO<UQaO,5;TOOQ#uANAzANAzO#KmQ`OANAzOOQ#uANAwANAwO!-xQ`OANAwO%)vQ`O7+'aO>UQaO7+'aOOQO7+'e7+'eO%+]Q`O7+'aO%+hQ`O7+'eO>UQaO7+'fO%+mQ`O7+'fO%-SQ`O'#HlO%-bQ`O,5?SO%-bQ`O,5?SOOQO1G1{1G1{O$+qQpOAN@dOOQSAN@dAN@dO0aQ`OAN@dO%-jQtOANCgO%-xQ`OAN@dO*kQaOAN@nO%.QQdOAN@nO%.bQpOAN@nOOQS,5>X,5>XOOQS-E;k-E;kOOQO1G2U1G2UO!&WQdO1G2UO$/dQpO1G2UO<_Q`O1G2SO!.YQdO1G2WO!&WQdO1G2SOOQO1G2W1G2WOOQO1G2S1G2SO%.jQaO'#GSOOQO1G2X1G2XOOQSAN@oAN@oOOOQ<UQaO<W,5>WO%6wQ`O,5>WOOQO-E;j-E;jO%6|Q`O1G4nOOQSG26OG26OO$+qQpOG26OO0aQ`OG26OO%7UQdOG26YO*kQaOG26YOOQO7+'p7+'pO!&WQdO7+'pO!&WQdO7+'nOOQO7+'r7+'rOOQO7+'n7+'nO%7fQ`OLD+tO%8uQ`O'#E}O%9PQ`O'#IZO!&WQdO'#HrO%:|QaO,5^,5>^OOQP-E;p-E;pOOQO1G2Y1G2YOOQ#uLD,bLD,bOOQTG27RG27RO!&WQdOLD,xO!&WQdO<wO&EPQdO1G0cO#.YQaO1G0cO&F{QdO1G1YO&HwQdO1G1[O#.YQaO1G1|O#.YQaO7+%sO&JsQdO7+%sO&LoQdO7+%}O#.YQaO7+'hO&NkQdO7+'hO'!gQdO<lQdO,5>wO(@nQdO1G0cO'.QQaO1G0cO(BpQdO1G1YO(DrQdO1G1[O'.QQaO1G1|O'.QQaO7+%sO(FtQdO7+%sO(HvQdO7+%}O'.QQaO7+'hO(JxQdO7+'hO(LzQdO<wO*1sQaO'#HdO*2TQ`O,5>vO*2]QdO1G0cO9yQaO1G0cO*4XQdO1G1YO*6TQdO1G1[O9yQaO1G1|O>UQaO'#HwO*8PQ`O,5=[O*8XQaO'#HbO*8cQ`O,5>tO9yQaO7+%sO*8kQdO7+%sO*:gQ`O1G0iO>UQaO1G0iO*;|QdO7+%}O9yQaO7+'hO*=xQdO7+'hO*?tQ`O,5>cO*AZQ`O,5=|O*BpQdO<UQaO'#FeO>UQaO'#FfO>UQaO'#FgO>UQaO'#FhO>UQaO'#FhO>UQaO'#FkO+'XQaO'#FwO>UQaO'#GVO>UQaO'#GYO+'`QaO,5:mO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO+'gQ`O'#I]O$8YQaO'#EaO+)PQaOG26YO$8YQaO'#I]O+*{Q`O'#I[O++TQaO,5:wO>UQaO,5;nO>UQaO,5;pO++[Q`O,5UQaO1G0XO+9hQ`O1G1]O+;TQ`O1G1]O+]Q`O1G1]O+?xQ`O1G1]O+AeQ`O1G1]O+CQQ`O1G1]O+DmQ`O1G1]O+FYQ`O1G1]O+GuQ`O1G1]O+IbQ`O1G1]O+J}Q`O1G1]O+LjQ`O1G1]O+NVQ`O1G1]O, rQ`O1G1]O,#_Q`O1G0cO>UQaO1G0cO,$zQ`O1G1YO,&gQ`O1G1[O,(SQ`O1G1|O>UQaO1G1|O>UQaO7+%sO,([Q`O7+%sO,)wQ`O7+%}O>UQaO7+'hO,+dQ`O7+'hO,+lQ`O7+'hO,-XQpO7+'hO,-aQ`O<UQaO<UQaOAN@nO,0qQ`OAN@nO,2^QpOAN@nO,2fQ`OG26YO>UQaOG26YO,4RQ`OLD+tO,5nQaO,5:}O>UQaO1G0iO,5uQ`O'#I]O$8YQaO'#FeO$8YQaO'#FfO$8YQaO'#FgO$8YQaO'#FhO$8YQaO'#FhO+)PQaO'#FhO$8YQaO'#FkO,6SQaO'#FwO,6ZQaO'#FwO$8YQaO'#GVO+)PQaO'#GVO$8YQaO'#GYO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO,8YQ`O'#FlO>UQaO'#EaO>UQaO'#I]O,8bQaO,5:wO,8iQaO,5:wO$8YQaO,5;nO+)PQaO,5;nO$8YQaO,5;pO,:hQ`O,5wO-IcQ`O1G0cO-KOQ`O1G0cO$8YQaO1G0cO+)PQaO1G0cO-L_Q`O1G1YO-MzQ`O1G1YO. ZQ`O1G1[O$8YQaO1G1|O$8YQaO7+%sO+)PQaO7+%sO.!vQ`O7+%sO.$cQ`O7+%sO.%rQ`O7+%}O.'_Q`O7+%}O$8YQaO7+'hO.(nQ`O7+'hO.*ZQ`O<fQ`O,5>wO.@RQ`O1G1|O!%WQ`O1G1|O0aQ`O1G1|O0aQ`O7+'hO.@ZQ`O7+'hO.@cQpO7+'hO.@kQpO<UO#X&PO~P>UO!o&SO!s&RO#b&RO~OPgOQ|OU^OW}O[8lOo=yOs#hOx8jOy8jO}`O!O]O!Q8pO!R}O!T8oO!U8kO!V8kO!Y8rO!c8iO!s&VO!y[O#U&WO#W_O#bhO#daO#ebO#peO$T8nO$]8mO$^8nO$aqO$z8qO${!OO$}}O%O}O%V|O'g{O~O!x'SP~PAOO!s&[O#b&[O~OT#TOz#RO!S#UO!b#VO!o!{O!v!yO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO~O!x&nO~PCqO!x'VX!}'VX#O'VX#X'VX!n'VXV'VX!q'VX#u'VX#w'VXw'VX~P&sO!y$hO#S&oO~Oo$mOs$lO~O!o&pO~O!}&sO#S;dO#U;cO!x'OP~P9yOT6iOz6gO!S6jO!b6kO!o!{O!v8sO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}'PX#X'PX~O#O&tO~PGSO!}&wO#X'OX~O#X&yO~O!}'OO!x'QP~P9yO!n'PO~PCqO!m#oa!o#oa#S#oa#p#qX&s#oa!x#oa#O#oaw#oa~OT#oaz#oa!S#oa!b#oa!v#oa!y#oa#W#oa#`#oa#a#oa#s#oa#z#oa#{#oa#|#oa#}#oa$O#oa$Q#oa$R#oa$S#oa$T#oa$U#oa$V#oa$W#oa$z#oa!}#oa#X#oa!n#oaV#oa!q#oa#u#oa#w#oa~PIpO!s'RO~O!x'UO#l'SO~O!x'VX#l'VX#p#qX#S'VX#U'VX#b'VX!o'VX#O'VXw'VX!m'VX&s'VX~O#S'YO~P*kO!m$Xa&s$Xa!x$Xa!n$Xa~PCqO!m$Ya&s$Ya!x$Ya!n$Ya~PCqO!m$Za&s$Za!x$Za!n$Za~PCqO!m$[a&s$[a!x$[a!n$[a~PCqO!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO$z#dOT$[a!S$[a!b$[a!m$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a&s$[a!x$[a!n$[a~Oz#RO~PNyO!m$_a&s$_a!x$_a!n$_a~PCqO!y!}O!}$fX#X$fX~O!}'^O#X'ZX~O#X'`O~O!s$kO#S'aO~O]'cO~O!s'eO~O!s'fO~O$l'gO~O!`'mO#S'kO#U'lO#b'jO$drO!x'XP~P0aO!^'sO!oXO!q'rO~O!s'uO!y$hO~O!y$hO#S'wO~O!y$hO#S'yO~O#u'zO!m$sX!}$sX&s$sX~O!}'{O!m'bX&s'bX~O!m#cO&s#cO~O!q(PO#O(OO~O!m$ka&s$ka!x$ka!n$ka~PCqOl(ROw(SO!o(TO!y!}O~O!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO~OT$yaz$ya!S$ya!b$ya!m$ya!v$ya#S$ya#z$ya#{$ya#|$ya#}$ya$O$ya$Q$ya$R$ya$S$ya$T$ya$U$ya$V$ya$W$ya$z$ya&s$ya!x$ya!}$ya#O$ya#X$ya!n$ya!q$yaV$ya#u$ya#w$ya~P!'WO!m$|a&s$|a!x$|a!n$|a~PCqO#W([O#`(YO#a(YO&r(ZOR&gX!o&gX#b&gX#e&gX&q&gX'f&gX~O'f(_O~P8lO!q(`O~PhO!o(cO!q(dO~O!q(`O&s(gO~PhO!a(kO~O!m(lO~P9yOZ(wOn(xO~O!s(zO~OT6iOz6gO!S6jO!b6kO!v8sO!}({O#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'jX&s'jX~P!'WO#u)PO~O!})QO!m'`X&s'`X~Ol(RO!o(TO~Ow(SO!o)WO!q)ZO~O!m#cO!oXO&s#cO~O!o%pO!s#yO~OV)aO!})_O!m'kX&s'kX~O])cOs)cO!s#gO#peO~O!o%pO!s#gO#p)hO~OT6iOz6gO!S6jO!b6kO!v8sO!})iO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&|X&s&|X#O&|X~P!'WOl(ROw(SO!o(TO~O!i)oO&t)oO~OT8vOz8tO!S8wO!b8xO!q)pO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#X)rO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!n)rO~PCqOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x'TX!}'TX~P!'WOT'VXz'VX!S'VX!b'VX!o'VX!v'VX!y'VX#S'VX#W'VX#`'VX#a'VX#p#qX#s'VX#z'VX#{'VX#|'VX#}'VX$O'VX$Q'VX$R'VX$S'VX$T'VX$U'VX$V'VX$W'VX$z'VX~O!q)tO!x'VX!}'VX~P!5xO!x#iX!}#iX~P>UO!})vO!x'SX~O!x)xO~O$z#dOT#yiz#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi$W#yi&s#yi!x#yi!}#yi#O#yi#X#yi!n#yi!q#yiV#yi#u#yi#w#yi~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi&s#yi!x#yi!n#yi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!b#VO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi~P!'WOz#RO$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi~P!'WO_)yO~P9yO!x)|O~O#S*PO~P9yOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Ta#X#Ta#O#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}'Pa#X'Pa#O'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WO#S#oO#U#nO!}&WX#X&WX~P9yO!}&wO#X'Oa~O#X*SO~OT6iOz6gO!S6jO!b6kO!v8sO!}*UO#O*TO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x'QX~P!'WO!}*UO!x'QX~O!x*WO~O!m#oi!o#oi#S#oi#p#qX&s#oi!x#oi#O#oiw#oi~OT#oiz#oi!S#oi!b#oi!v#oi!y#oi#W#oi#`#oi#a#oi#s#oi#z#oi#{#oi#|#oi#}#oi$O#oi$Q#oi$R#oi$S#oi$T#oi$U#oi$V#oi$W#oi$z#oi!}#oi#X#oi!n#oiV#oi!q#oi#u#oi#w#oi~P#*zO#l'SO!x#ka#S#ka#U#ka#b#ka!o#ka#O#kaw#ka!m#ka&s#ka~OPgOQ|OU^OW}O[4OOo5xOs#hOx3zOy3zO}`O!O]O!Q2^O!R}O!T4UO!U3|O!V3|O!Y2`O!c3xO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4SO$]4QO$^4SO$aqO$z2_O${!OO$}}O%O}O%V|O'g{O~O#l#oa#U#oa#b#oa~PIpOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pi!S#Pi!b#Pi!m#Pi&s#Pi!x#Pi!n#Pi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#vi!S#vi!b#vi!m#vi&s#vi!x#vi!n#vi~P!'WO!m#xi&s#xi!x#xi!n#xi~PCqO!s#gO#peO!}&^X#X&^X~O!}'^O#X'Za~O!s'uO~Ow(SO!o)WO!q*fO~O!s*jO~O#S*lO#U*mO#b*kO#l'SO~O#S*lO#U*mO#b*kO$drO~P0aO#u*oO!x$cX!}$cX~O#U*mO#b*kO~O#b*pO~O#b*rO~P0aO!}*sO!x'XX~O!x*uO~O!y*wO~O!^*{O!oXO!q*zO~O!q*}O!o'ci!m'ci&s'ci~O!q+QO#O+PO~O#b$nO!m&eX!}&eX&s&eX~O!}'{O!m'ba&s'ba~OT$kiz$ki!S$ki!b$ki!m$ki!o$ki!v$ki!y$ki#S$ki#W$ki#`$ki#a$ki#s$ki#u#fa#w#fa#z$ki#{$ki#|$ki#}$ki$O$ki$Q$ki$R$ki$S$ki$T$ki$U$ki$V$ki$W$ki$z$ki&s$ki!x$ki!}$ki#O$ki#X$ki!n$ki!q$kiV$ki~OS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n+hO#b$nO$aqO$drO~P0aO!s+lO~O#W+nO#`+mO#a+mO~O!s+pO#b+pO$}+pO%T+oO~O!n+qO~PCqOc%XXd%XXh%XXj%XXf%XXg%XXe%XX~PhOc+uOd+sOP%WiQ%WiS%WiU%WiW%WiX%Wi[%Wi]%Wi^%Wi`%Wia%Wib%Wik%Wim%Wio%Wip%Wiq%Wis%Wit%Wiu%Wiv%Wix%Wiy%Wi|%Wi}%Wi!O%Wi!P%Wi!Q%Wi!R%Wi!T%Wi!U%Wi!V%Wi!W%Wi!X%Wi!Y%Wi!Z%Wi![%Wi!]%Wi!^%Wi!`%Wi!a%Wi!c%Wi!m%Wi!o%Wi!s%Wi!y%Wi#W%Wi#b%Wi#d%Wi#e%Wi#p%Wi$T%Wi$]%Wi$^%Wi$a%Wi$d%Wi$l%Wi$z%Wi${%Wi$}%Wi%O%Wi%V%Wi&p%Wi'g%Wi&t%Wi!n%Wih%Wij%Wif%Wig%WiY%Wi_%Wii%Wie%Wi~Oc+yOd+vOh+xO~OY+zO_+{O!n,OO~OY+zO_+{Oi%^X~Oi,QO~Oj,RO~O!m,TO~P9yO!m,VO~Of,WO~OT6iOV,XOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WOg,YO~O!y,ZO~OZ(wOn(xOP%liQ%liS%liU%liW%liX%li[%li]%li^%li`%lia%lib%lik%lim%lio%lip%liq%lis%lit%liu%liv%lix%liy%li|%li}%li!O%li!P%li!Q%li!R%li!T%li!U%li!V%li!W%li!X%li!Y%li!Z%li![%li!]%li!^%li!`%li!a%li!c%li!m%li!o%li!s%li!y%li#W%li#b%li#d%li#e%li#p%li$T%li$]%li$^%li$a%li$d%li$l%li$z%li${%li$}%li%O%li%V%li&p%li'g%li&t%li!n%lic%lid%lih%lij%lif%lig%liY%li_%lii%lie%li~O#u,_O~O!}({O!m%da&s%da~O!x,bO~O!s%dO!m&dX!}&dX&s&dX~O!})QO!m'`a&s'`a~OS+^OY,iOm+^Os$aO!^+dO!_+^O!`+^O$aqO$drO~O!n,lO~P#JwO!o)WO~O!o%pO!s'RO~O!s#gO#peO!m&nX!}&nX&s&nX~O!})_O!m'ka&s'ka~O!s,rO~OV,sO!n%|X!}%|X~O!},uO!n'lX~O!n,wO~O!m&UX!}&UX&s&UX#O&UX~P9yO!})iO!m&|a&s&|a#O&|a~Oz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq&s!uq!x!uq!n!uq~P!'WO!n,|O~PCqOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#ia!}#ia~P!'WO!x&YX!}&YX~PAOO!})vO!x'Sa~O#O-QO~O!}-RO!n&{X~O!n-TO~O!x-UO~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Vi#X#Vi~P!'WO!x&XX!}&XX~P9yO!}*UO!x'Qa~O!x-[O~OT#jqz#jq!S#jq!b#jq!m#jq!v#jq#S#jq#u#jq#w#jq#z#jq#{#jq#|#jq#}#jq$O#jq$Q#jq$R#jq$S#jq$T#jq$U#jq$V#jq$W#jq$z#jq&s#jq!x#jq!}#jq#O#jq#X#jq!n#jq!q#jqV#jq~P!'WO#l#oi#U#oi#b#oi~P#*zOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pq!S#Pq!b#Pq!m#Pq&s#Pq!x#Pq!n#Pq~P!'WO#u-dO!x$ca!}$ca~O#U-fO#b-eO~O#b-gO~O#S-hO#U-fO#b-eO#l'SO~O#b-jO#l'SO~O#u-kO!x$ha!}$ha~O!`'mO#S'kO#U'lO#b'jO$drO!x&_X!}&_X~P0aO!}*sO!x'Xa~O!oXO#l'SO~O#S-pO#b-oO!x'[P~O!oXO!q-rO~O!q-uO!o'cq!m'cq&s'cq~O!^-wO!oXO!q-rO~O!q-{O#O-zO~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m$si!}$si&s$si~P!'WO!m$jq&s$jq!x$jq!n$jq~PCqO#O-zO#l'SO~O!}-|Ow']X!o']X!m']X&s']X~O#b$nO#l'SO~OS+^O].ROm+^Os$aO!_+^O!`+^O#b$nO$aqO$drO~P0aOS+^O].ROm+^Os$aO!_+^O!`+^O#b$nO$aqO~P0aOS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n.ZO#b$nO$aqO$drO~P0aO!s.^O~O!s._O#b._O$}._O%T+oO~O$}.`O~O#X.aO~Oc%Xad%Xah%Xaj%Xaf%Xag%Xae%Xa~PhOc.dOd+sOP%WqQ%WqS%WqU%WqW%WqX%Wq[%Wq]%Wq^%Wq`%Wqa%Wqb%Wqk%Wqm%Wqo%Wqp%Wqq%Wqs%Wqt%Wqu%Wqv%Wqx%Wqy%Wq|%Wq}%Wq!O%Wq!P%Wq!Q%Wq!R%Wq!T%Wq!U%Wq!V%Wq!W%Wq!X%Wq!Y%Wq!Z%Wq![%Wq!]%Wq!^%Wq!`%Wq!a%Wq!c%Wq!m%Wq!o%Wq!s%Wq!y%Wq#W%Wq#b%Wq#d%Wq#e%Wq#p%Wq$T%Wq$]%Wq$^%Wq$a%Wq$d%Wq$l%Wq$z%Wq${%Wq$}%Wq%O%Wq%V%Wq&p%Wq'g%Wq&t%Wq!n%Wqh%Wqj%Wqf%Wqg%WqY%Wq_%Wqi%Wqe%Wq~Oc.iOd+vOh.hO~O!q(`O~OP6]OQ|OU^OW}O[:fOo>ROs#hOx:dOy:dO}`O!O]O!Q:kO!R}O!T:jO!U:eO!V:eO!Y:oO!c8gO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:hO$]:gO$^:hO$aqO$z:mO${!OO$}}O%O}O%V|O'g{O~O!m.lO!q.lO~OY+zO_+{O!n.nO~OY+zO_+{Oi%^a~O!x.rO~P>UO!m.tO~O!m.tO~P9yOQ|OW}O!R}O$}}O%O}O%V|O'g{O~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&ka!}&ka&s&ka~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m$qi!}$qi&s$qi~P!'WOS+^Om+^Os$aO!_+^O!`+^O$aqO$drO~OY/PO~P$?VOS+^Om+^Os$aO!_+^O!`+^O$aqO~O!s/QO~O!n/SO~P#JwOw(SO!o)WO#l'SO~OV/VO!m&na!}&na&s&na~O!})_O!m'ki&s'ki~O!s/XO~OV/YO!n%|a!}%|a~O]/[Os/[O!s#gO#peO!n&oX!}&oX~O!},uO!n'la~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&Ua!}&Ua&s&Ua#O&Ua~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy&s!uy!x!uy!n!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#hi!}#hi~P!'WO_)yO!n&VX!}&VX~P9yO!}-RO!n&{a~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Vq#X#Vq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#[i!}#[i~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#O/cO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x&Xa!}&Xa~P!'WO#u/iO!x$ci!}$ci~O#b/jO~O#U/lO#b/kO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$ci!}$ci~P!'WO#u/mO!x$hi!}$hi~O!}/oO!x'[X~O#b/qO~O!x/rO~O!oXO!q/uO~O#l'SO!o'cy!m'cy&s'cy~O!m$jy&s$jy!x$jy!n$jy~PCqO#O/xO#l'SO~O!s#gO#peOw&aX!o&aX!}&aX!m&aX&s&aX~O!}-|Ow']a!o']a!m']a&s']a~OU$PO]0QO!R$PO!s$OO!v#}O#b$nO#p2XO~P$?uO!m#cO!o0VO&s#cO~O#X0YO~Oh0_O~OT:tOz:pO!S:vO!b:xO!m0`O!q0`O!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO~P!'WOY%]a_%]a!n%]ai%]a~PhO!x0bO~O!x0bO~P>UO!m0dO~OT6iOz6gO!S6jO!b6kO!v8sO!x0fO#O0eO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WO!x0fO~O!x0gO#b0hO#l'SO~O!x0iO~O!s0jO~O!m#cO#u0lO&s#cO~O!s0mO~O!})_O!m'kq&s'kq~O!s0nO~OV0oO!n%}X!}%}X~OT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!n!|i!}!|i~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$cq!}$cq~P!'WO#u0vO!x$cq!}$cq~O#b0wO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$hq!}$hq~P!'WO#S0zO#b0yO!x&`X!}&`X~O!}/oO!x'[a~O#l'SO!o'c!R!m'c!R&s'c!R~O!oXO!q1PO~O!m$j!R&s$j!R!x$j!R!n$j!R~PCqO#O1RO#l'SO~OP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!n1^O!s1YO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOh1_O~OY%[i_%[i!n%[ii%[i~PhOY%]i_%]i!n%]ii%]i~PhO!x1bO~O!x1bO~P>UO!x1eO~O!m#cO#u1iO&s#cO~O$}1jO%V1jO~O!s1kO~OV1lO!n%}a!}%}a~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#]i!}#]i~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$cy!}$cy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$hy!}$hy~P!'WO#b1nO~O!}/oO!x'[i~O!m$j!Z&s$j!Z!x$j!Z!n$j!Z~PCqOT:uOz:qO!S:wO!b:yO!v=nO#S#QO#z:sO#{:{O#|:}O#};PO$O;RO$Q;VO$R;XO$S;ZO$T;]O$U;_O$V;aO$W;aO$z#dO~P!'WOV1uO{1tO~P!5xOV1uO{1tOT&}Xz&}X!S&}X!b&}X!o&}X!v&}X!y&}X#S&}X#W&}X#`&}X#a&}X#s&}X#u&}X#w&}X#z&}X#{&}X#|&}X#}&}X$O&}X$Q&}X$R&}X$S&}X$T&}X$U&}X$V&}X$W&}X$z&}X~OP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!n1xO!s1YO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOY%[q_%[q!n%[qi%[q~PhO!x1zO~O!x%gi~PCqOe1{O~O$}1|O%V1|O~O!s2OO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$c!R!}$c!R~P!'WO!m$j!c&s$j!c!x$j!c!n$j!c~PCqO!s2QO~O!`2SO!s2RO~O!s2VO!m$xi&s$xi~O!s'WO~O!s*]O~OT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$ka#u$ka#w$ka&s$ka!x$ka!n$ka!q$ka#X$ka!}$ka~P!'WO#S2]O~P*kO$l$tO~P#.YOT6iOz6gO!S6jO!b6kO!v8sO#O2[O#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'PX&s'PX!x'PX!n'PX~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#O3uO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}'PX#X'PX#u'PX#w'PX!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~P!'WO#S3dO~P#.YOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Xa#u$Xa#w$Xa&s$Xa!x$Xa!n$Xa!q$Xa#X$Xa!}$Xa~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Ya#u$Ya#w$Ya&s$Ya!x$Ya!n$Ya!q$Ya#X$Ya!}$Ya~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Za#u$Za#w$Za&s$Za!x$Za!n$Za!q$Za#X$Za!}$Za~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$[a#u$[a#w$[a&s$[a!x$[a!n$[a!q$[a#X$[a!}$[a~P!'WOz2aO#u$[a#w$[a!q$[a#X$[a!}$[a~PNyOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$_a#u$_a#w$_a&s$_a!x$_a!n$_a!q$_a#X$_a!}$_a~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$|a#u$|a#w$|a&s$|a!x$|a!n$|a!q$|a#X$|a!}$|a~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!S#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$T2nO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$S2mO$T2nO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m#Ta#u#Ta#w#Ta&s#Ta!x#Ta!n#Ta!q#Ta#X#Ta!}#Ta~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m'Pa#u'Pa#w'Pa&s'Pa!x'Pa!n'Pa!q'Pa#X'Pa!}'Pa~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#Pi!S#Pi!b#Pi!m#Pi#u#Pi#w#Pi&s#Pi!x#Pi!n#Pi!q#Pi#X#Pi!}#Pi~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#vi!S#vi!b#vi!m#vi#u#vi#w#vi&s#vi!x#vi!n#vi!q#vi#X#vi!}#vi~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m#xi#u#xi#w#xi&s#xi!x#xi!n#xi!q#xi#X#xi!}#xi~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq#u!uq#w!uq&s!uq!x!uq!n!uq!q!uq#X!uq!}!uq~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#Pq!S#Pq!b#Pq!m#Pq#u#Pq#w#Pq&s#Pq!x#Pq!n#Pq!q#Pq#X#Pq!}#Pq~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$jq#u$jq#w$jq&s$jq!x$jq!n$jq!q$jq#X$jq!}$jq~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy#u!uy#w!uy&s!uy!x!uy!n!uy!q!uy#X!uy!}!uy~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$jy#u$jy#w$jy&s$jy!x$jy!n$jy!q$jy#X$jy!}$jy~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!R#u$j!R#w$j!R&s$j!R!x$j!R!n$j!R!q$j!R#X$j!R!}$j!R~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!Z#u$j!Z#w$j!Z&s$j!Z!x$j!Z!n$j!Z!q$j!Z#X$j!Z!}$j!Z~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!c#u$j!c#w$j!c&s$j!c!x$j!c!n$j!c!q$j!c#X$j!c!}$j!c~P!'WOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S3vO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lO#u2uO#w2vO!q&zX#X&zX!}&zX~P0rOP6]OU^O[4POo8^Or2wOs#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S2tO#U2sO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!v#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX&s#xX!x#xX!n#xX!q#xX#X#xX!}#xX~P$;lOP6]OU^O[4POo8^Or4xOs#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S4uO#U4tO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OOT#xXz#xX!S#xX!b#xX!o#xX!v#xX!}#xX#O#xX#X#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!m#xX&s#xX!x#xX!n#xXV#xX!q#xX~P$;lO!q3PO~P>UO!q5}O#O3gO~OT8vOz8tO!S8wO!b8xO!q3hO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!q6OO#O3kO~O!q6PO#O3oO~O#O3oO#l'SO~O#O3pO#l'SO~O#O3sO#l'SO~OP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$l$tO$z4bO${!OO~P$;lOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S5eO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Xa#O$Xa#X$Xa#u$Xa#w$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Ya#O$Ya#X$Ya#u$Ya#w$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Za#O$Za#X$Za#u$Za#w$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$[a#O$[a#X$[a#u$[a#w$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz4dO!}$[a#O$[a#X$[a#u$[a#w$[aV$[a!q$[a~PNyOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$_a#O$_a#X$_a#u$_a#w$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$|a#O$|a#X$|a#u$|a#w$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!S#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$T4qO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$S4pO$T4qO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}#Ta#O#Ta#X#Ta#u#Ta#w#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}'Pa#O'Pa#X'Pa#u'Pa#w'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi#u#Pi#w#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi#u#vi#w#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}#xi#O#xi#X#xi#u#xi#w#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq#u!uq#w!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq#u#Pq#w#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$jq#O$jq#X$jq#u$jq#w$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy#u!uy#w!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$jy#O$jy#X$jy#u$jy#w$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!R#O$j!R#X$j!R#u$j!R#w$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!Z#O$j!Z#X$j!Z#u$j!Z#w$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!c#O$j!c#X$j!c#u$j!c#w$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S5wO~P#.YO!y$hO#S5{O~O!x4ZO#l'SO~O!y$hO#S5|O~OT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$ka#O$ka#X$ka#u$ka#w$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#O5vO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!m'PX#u'PX#w'PX&s'PX!x'PX!n'PX!q'PX#X'PX!}'PX~P!'WO#u4vO#w4wO!}&zX#O&zX#X&zXV&zX!q&zX~P0rO!q5QO~P>UO!q8bO#O5hO~OT8vOz8tO!S8wO!b8xO!q5iO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!q8cO#O5lO~O!q8dO#O5pO~O#O5pO#l'SO~O#O5qO#l'SO~O#O5tO#l'SO~O$l$tO~P9yOo5zOs$lO~O#S7oO~P9yOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Xa#O$Xa#X$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Ya#O$Ya#X$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Za#O$Za#X$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$[a#O$[a#X$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz6gO!}$[a#O$[a#X$[aV$[a!q$[a~PNyOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$_a#O$_a#X$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$ka#O$ka#X$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$|a#O$|a#X$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO!}7sO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x'jX~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO!}7uO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&|X~P!'WOz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6iOz6gO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!S#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6iOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$T6tO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$S6sO$T6tO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WO#S7zO~P>UO!m#Ta&s#Ta!x#Ta!n#Ta~PCqO!m'Pa&s'Pa!x'Pa!n'Pa~PCqO#S;dO#U;cO!x&WX!}&WX~P9yO!}7lO!x'Oa~Oz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#xi#O#xi#X#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WO!}7sO!x%da~O!x&UX!}&UX~P>UO!}7uO!x&|a~Oz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#Vi!}#Vi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$jq#O$jq#X$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&ka!}&ka~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&Ua!}&Ua~P!'WOz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#Vq!}#Vq~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$jy#O$jy#X$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!R#O$j!R#X$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!Z#O$j!Z#X$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!c#O$j!c#X$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S8[O~P9yO#O8ZO!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~PGSO!y$hO#S8`O~O!y$hO#S8aO~O#u6zO#w6{O!}&zX#O&zX#X&zXV&zX!q&zX~P0rOr6|O#S#oO#U#nO!}#xX#O#xX#X#xXV#xX!q#xX~P2yOr;iO#S9XO#U9VOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!n#xX!}#xX~P9yOr9WO#S9WO#U9WOT#xXz#xX!S#xX!b#xX!o#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX~P9yOr9]O#S;dO#U;cOT#xXz#xX!S#xX!b#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX#X#xX!x#xX!}#xX~P9yO$l$tO~P>UO!q7XO~P>UOT6iOz6gO!S6jO!b6kO!v8sO#O7iO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x'PX!}'PX~P!'WOP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lO!}7lO!x'OX~O#S9yO~P>UOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Xa#X$Xa!x$Xa!}$Xa~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Ya#X$Ya!x$Ya!}$Ya~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Za#X$Za!x$Za!}$Za~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$[a#X$[a!x$[a!}$[a~P!'WOz8tO$z#dOT$[a!S$[a!b$[a!q$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a#X$[a!x$[a!}$[a~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$_a#X$_a!x$_a!}$_a~P!'WO!q=dO#O7rO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$ka#X$ka!x$ka!}$ka~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$|a#X$|a!x$|a!}$|a~P!'WOT8vOz8tO!S8wO!b8xO!q7wO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#X#yi!x#yi!}#yi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8vOz8tO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!S#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8vOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8tO$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8tO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi#X#yi!x#yi!}#yi~P!'WOz8tO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi#X#yi!x#yi!}#yi~P!'WOz8tO$T9RO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$S9QO$T9RO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi#X#yi!x#yi!}#yi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#Pi!S#Pi!b#Pi!q#Pi#X#Pi!x#Pi!}#Pi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#vi!S#vi!b#vi!q#vi#X#vi!x#vi!}#vi~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q#xi#X#xi!x#xi!}#xi~P!'WO!q=eO#O7|O~Oz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT!uq!S!uq!b!uq!q!uq!v!uq#X!uq!x!uq!}!uq~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#Pq!S#Pq!b#Pq!q#Pq#X#Pq!x#Pq!}#Pq~P!'WO!q=iO#O8TO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$jq#X$jq!x$jq!}$jq~P!'WO#O8TO#l'SO~Oz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT!uy!S!uy!b!uy!q!uy!v!uy#X!uy!x!uy!}!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$jy#X$jy!x$jy!}$jy~P!'WO#O8UO#l'SO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!R#X$j!R!x$j!R!}$j!R~P!'WO#O8XO#l'SO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!Z#X$j!Z!x$j!Z!}$j!Z~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!c#X$j!c!x$j!c!}$j!c~P!'WO#S:bO~P>UO#O:aO!q'PX!x'PX~PGSO$l$tO~P$8YOP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$l$tO$z:nO${!OO~P$;lOo8_Os$lO~O#SSOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#SSOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#S=UO#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOT6iOz6gO!S6jO!b6kO!v8sO#O=SO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#O=RO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'PX!q'PX!n'PX!}'PX~P!'WOT&zXz&zX!S&zX!b&zX!o&zX!q&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX!}&zX~O#u9ZO#w9[O#X&zX!x&zX~P.8oO!y$hO#S=^O~O!q9hO~P>UO!y$hO#S=cO~O!q>OO#O9}O~OT8vOz8tO!S8wO!b8xO!q:OO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!m#Ta!q#Ta!n#Ta!}#Ta~P!'WOT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!m'Pa!q'Pa!n'Pa!}'Pa~P!'WO!q>PO#O:RO~O!q>QO#O:YO~O#O:YO#l'SO~O#O:ZO#l'SO~O#O:_O#l'SO~O#u;eO#w;gO!m&zX!n&zX~P.8oO#u;fO#w;hOT&zXz&zX!S&zX!b&zX!o&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX~O!q;tO~P>UO!q;uO~P>UO!q>XO#OYO#O9WO~OT8vOz8tO!S8wO!b8xO!qZO#O[O#O<{O~O#O<{O#l'SO~O#O9WO#l'SO~O#O<|O#l'SO~O#O=PO#l'SO~O!y$hO#S=|O~Oo=[Os$lO~O!y$hO#S=}O~O!y$hO#S>UO~O!y$hO#S>VO~O!y$hO#S>WO~Oo={Os$lO~Oo>TOs$lO~Oo>SOs$lO~O%O$U$}$d!d$V#b%V#e'g!s#d~",goto:"%&y'mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP'nP'uPP'{(OPPP(hP(OP(O*ZP*ZPP2W:j:mPP*Z:sBpPBsPBsPP:sCSCVCZ:s:sPPPC^PP:sK^!$S!$S:s!$WP!$W!$W!%UP!.]!7pP!?oP*ZP*Z*ZPPPPP!?rPPPPPPP*Z*Z*Z*ZPP*Z*ZP!E]!GRP!GV!Gy!GR!GR!HP*Z*ZP!HY!Hl!Ib!J`!Jd!J`!Jo!J}!J}!KV!KY!KY*ZPP*ZPP!K^#%[#%[#%`P#%fP(O#%j(O#&S#&V#&V#&](O#&`(O(O#&f#&i(O#&r#&u(O(O(O(O(O#&x(O(O(O(O(O(O(O(O(O#&{!KR(O(O#'_#'o#'r(O(OP#'u#'|#(S#(o#(y#)P#)Z#)b#)h#*d#4X#5T#5Z#5a#5k#5q#5w#6]#6c#6i#6o#6u#6{#7R#7]#7g#7m#7s#7}PPPPPPPP#8T#8X#8}#NO#NR#N]$(f$(r$)X$)_$)b$)e$)k$,X$5v$>_$>b$>h$>k$>n$>w$>{$?X$?k$Bk$CO$C{$K{PP%%y%%}%&Z%&p%&vQ!nQT!qV!rQUOR%x!mRVO}!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a|!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aQ%^!ZQ%g!aQ%l!eQ'd$dQ'q$iQ)[%kQ*y'tQ,](xU-n*v*x+OQ.W+cQ.{,[S/t-s-tQ0T.SS0}/s/wQ1V0RQ1o1OR2P1p0u!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[3ZfPVX[_bgjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#}$R$S$U$h$y$}%P%R%S%T%U%c%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)Z)_)c)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,u-Q-R-d-k-r-u-z-{-|.Q.b.d.l.t/[/c/i/m/u/x0V0`0a0d0e0i0v1P1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w5}6O6P6T6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8b8c8d8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[3scPVX[_bdegjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#{#}$R$S$U$h$y$}%P%R%S%T%U%c%m%n%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)Z)^)_)c)g)h)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,u,x-Q-R-d-k-r-u-z-{-|.Q.b.d.l.t/[/c/i/m/u/x0V0`0a0d0e0i0v1P1R1]1a2W2X2Y2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w5}6O6P6T6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8b8c8d8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[0phPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0`0a0d0e0i0v1R1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uRS=p>S>VS=s>T>UR=t>WT'n$h*s!csPVXt!S!j!r!s!w$h$}%P%S%U'i(T(`)W*s+]+g+r+u,g,k.b.d.l0`0a0i1aQ$^rR*`'^Q*x'sQ-t*{R/w-wQ(W$tQ)U%hQ)n%vQ*i'fQ+k(XR-c*jQ(V$tQ)Y%jQ)m%vQ*e'eS*h'f)nS+j(W(XS-b*i*jQ.]+kQ/T,mQ/e-`R/g-cQ(U$tQ)T%hQ)V%iQ)l%vU*g'f)m)nU+i(V(W(XQ,f)UU-a*h*i*jS.[+j+kS/f-b-cQ0X.]R0t/gT+e(T+g[%e!_$b'c+a.R0QR,d)Qb$ov(T+[+]+`+g.P.Q0PR+T'{S+e(T+gT,j)W,kR0W.XT1[0V1]0w|PVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X,_-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[R2Y2X|tPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aW$`t'i+],gS'i$h*sS+](T+gT,g)W,kQ'_$^R*a'_Q*t'oR-m*tQ/p-oS0{/p0|R0|/qQ-}+XR/|-}Q+g(TR.Y+gS+`(T+gS,h)W,kQ.Q+]W.T+`,h.Q/OR/O,gQ)R%eR,e)RQ'|$oR+U'|Q1]0VR1w1]Q${{R(^${Q+t(aR.c+tQ+w(bR.g+wQ+}(cQ,P(dT.m+},PQ(|%`S,a(|7tR7t7VQ(y%^R,^(yQ,k)WR/R,kQ)`%oS,q)`/WR/W,rQ,v)dR/^,vT!uV!rj!iPVX!j!r!s!w(`+r.l0`0a1aQ%Q!SQ(a$}W(h%P%S%U0iQ.e+uQ0Z.bR0[.d|ZPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aQ#f[U#m_#s&wQ#wbQ$VkQ$WlQ$XmQ$YnQ$ZoQ$[pQ$sx^$uy2_4b6e8q:m:nQ$vzQ%W!WQ%Y!XQ%[!YW%`!]%R(l,VU%s!g&p-RQ%|!yQ&O!zQ&Q!{S&U!})v^&^#R2a4d6g8t:p:qQ&_#SQ&`#TQ&a#UQ&b#VQ&c#WQ&d#XQ&e#YQ&f#ZQ&g#[Q&h#]Q&i#^Q&j#_Q&k#`Q&l#aQ&m#bQ&u#nQ&v#oS&{#t'OQ'X$RQ'Z$SQ'[$UQ(]$yQ(p%TQ)q%}Q)s&SQ)u&WQ*O&tS*['U4ZQ*^'Y^*_2[3u5v8Z:a=R=SQ+S'zQ+V(OQ,`({Q,c)PQ,y)iQ,{)pQ,})tQ-V*PQ-W*TQ-X*U^-]2]3v5w8[:b=T=UQ-i*oQ-x+PQ.k+zQ.w,XQ/`-QQ/h-dQ/n-kQ/y-zQ0r/cQ0u/iQ0x/mQ1Q/xU1X0V1]9WQ1d0eQ1m0vQ1q1RQ2Z2^Q2qjQ2r3yQ2x3zQ2y3|Q2z4OQ2{4QQ2|4SQ2}4UQ3O2`Q3Q2bQ3R2cQ3S2dQ3T2eQ3U2fQ3V2gQ3W2hQ3X2iQ3Y2jQ3Z2kQ3[2lQ3]2mQ3^2nQ3_2oQ3`2pQ3a2sQ3b2tQ3c2uQ3e2vQ3f2wQ3i3PQ3j3dQ3l3gQ3m3hQ3n3kQ3q3oQ3r3pQ3t3sQ4Y4WQ4y3{Q4z3}Q4{4PQ4|4RQ4}4TQ5O4VQ5P4cQ5R4eQ5S4fQ5T4gQ5U4hQ5V4iQ5W4jQ5X4kQ5Y4lQ5Z4mQ5[4nQ5]4oQ5^4pQ5_4qQ5`4rQ5a4sQ5b4tQ5c4uQ5d4vQ5f4wQ5g4xQ5j5QQ5k5eQ5m5hQ5n5iQ5o5lQ5r5pQ5s5qQ5u5tQ6Q4aQ6R3xQ6V6TQ6}6^Q7O6_Q7P6`Q7Q6aQ7R6bQ7S6cQ7T6dQ7U6fU7V,T.t0dQ7W%cQ7Y6hQ7Z6iQ7[6jQ7]6kQ7^6lQ7_6mQ7`6nQ7a6oQ7b6pQ7c6qQ7d6rQ7e6sQ7f6tQ7g6uQ7h6vQ7j6xQ7k6yQ7n6zQ7p6{Q7q6|Q7x7XQ7y7iQ7{7oQ7}7rQ8O7sQ8P7uQ8Q7wQ8R7zQ8S7|Q8V8TQ8W8UQ8Y8XQ8]8fU9U#k&s7lQ9^8jQ9_8kQ9`8lQ9a8mQ9b8nQ9c8oQ9e8pQ9f8rQ9g8sQ9i8uQ9j8vQ9k8wQ9l8xQ9m8yQ9n8zQ9o8{Q9p8|Q9q8}Q9r9OQ9s9PQ9t9QQ9u9RQ9v9SQ9w9TQ9x9ZQ9z9[Q9{9]Q:P9hQ:Q9yQ:T9}Q:V:OQ:W:RQ:[:YQ:^:ZQ:`:_Q:c8iQ;j:dQ;k:eQ;l:fQ;m:gQ;n:hQ;o:iQ;p:jQ;q:kQ;r:lQ;s:oQ;v:rQ;w:sQ;x:tQ;y:uQ;z:vQ;{:wQ;|:xQ;}:yQOQ=h>PQ=j>QQ=u>XQ=v>YQ=w>ZR=x>[0t!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[S$]r'^Q%k!eS%o!f%rQ)b%pU+X(R(S+dQ,p)_Q,t)cQ/Z,uQ/{-|R0p/[|vPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a#U#i[bklmnopxyz!W!X!Y!{#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b$R$S$U$y%}&S'Y(O)p+P-z/x0e1R2[2]6x6yd+^(T)W+]+`+g,g,h,k.Q/O!t6w'U2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3z3|4O4Q4S4U5v5w!x;b3u3v3x3y3{3}4P4R4T4V4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t$O=z_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-R6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6z6{6|7X7l7o7r7w7|8T8U8X8Z8[8f8g8h8i#|>]!y!z!}%c&W)t)v*T*o,T-d-k.t/c/i/m0d0v4W6T7i7s7u7z8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9Z9[9]9h9y9}:O:R:Y:Z:_:a:b;c;d=Z=m=n!v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[v],skippedNodes:[0],repeatNodeCount:29,tokenData:"!F|_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9W!e!}!7z!}#O!;^#O#P!;z#P#Q!V<%lO8VR9WV&wP%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9rV%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ:^O%VQQ:aRO;'S9m;'S;=`:j;=`O9mQ:oW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l9m<%lO9mQ;[P;=`<%l9mR;fV&wP%VQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRV<%l~8V~O8V~~%fR=OW&wPOY8VYZ9PZ!^8V!^!_;{!_;'S8V;'S;=`=h;=`<%l9m<%lO8VR=mW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l8V<%lO9mR>YP;=`<%l8VR>dV!yQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV?QV!xU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR?nY&wP$VQOY$zYZ%fZz$zz{@^{!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR@eW$WQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRAUY$TQ&wPOY$zYZ%fZ{$z{|At|!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRA{V$zQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRBiV!}Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_CXZ$TQ%TW&wPOY$zYZ%fZ}$z}!OAt!O!^$z!^!_%k!_!`6U!`!aCz!a;'S$z;'S;=`&W<%lO$zVDRV#`U&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVDo[&wP$UQOY$zYZ%fZ!O$z!O!PEe!P!Q$z!Q![Fs![!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVEjX&wPOY$zYZ%fZ!O$z!O!PFV!P!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVF^V#UU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRFz_&wP%OQOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#SJc#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zRHO]&wPOY$zYZ%fZ{$z{|Hw|}$z}!OHw!O!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRH|X&wPOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRIpZ&wP%OQOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_#R$z#R#SHw#S;'S$z;'S;=`&W<%lO$zRJhX&wPOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVK[[&wP$VQOY$zYZ%fZz$zz{LQ{!P$z!P!Q,o!Q!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVLVX&wPOYLQYZLrZzLQz{N_{!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQVLwT&wPOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMZTOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMmVOzMWz{Mj{!PMW!P!QNS!Q;'SMW;'S;=`NX<%lOMWUNXO!eUUN[P;=`<%lMWVNdZ&wPOYLQYZLrZzLQz{N_{!PLQ!P!Q! V!Q!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQV! ^V!eU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV! vZOYLQYZLrZzLQz{N_{!aLQ!a!bMW!b;'SLQ;'S;=`!!i<%l~LQ~OLQ~~%fV!!lP;=`<%lLQZ!!vm&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!d$z!d!e!&o!e!g$z!g!hGy!h!q$z!q!r!(a!r!z$z!z!{!){!{#R$z#R#S!%}#S#U$z#U#V!&o#V#X$z#X#YGy#Y#c$z#c#d!(a#d#l$z#l#m!){#m;'S$z;'S;=`&W<%lO$zZ!$xa&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#S!%}#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zZ!&SX&wPOY$zYZ%fZ!Q$z!Q![!$q![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!&tY&wPOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!'k[&wP$}YOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_#R$z#R#S!&o#S;'S$z;'S;=`&W<%lO$zZ!(fX&wPOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!)YZ&wP$}YOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_#R$z#R#S!(a#S;'S$z;'S;=`&W<%lO$zZ!*Q]&wPOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zZ!+Q_&wP$}YOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#R$z#R#S!){#S#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zR!,WX!qQ&wPOY$zYZ%fZ![$z![!]!,s!]!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!,zV#sQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!-hV!mU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!.S[$RQOY$zYZ%fZ!^$z!^!_!.x!_!`!/i!`!a*c!a!b!0]!b;'S$z;'S;=`&W<%l~$z~O$z~~%fR!/PW$SQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!/pX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a*c!a;'S$z;'S;=`&W<%lO$zP!0bR!iP!_!`!0k!r!s!0p#d#e!0pP!0pO!iPP!0sQ!j!k!0y#[#]!0yP!0|Q!r!s!0k#d#e!0kV!1ZX#uQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`)r!`!a!1v!a;'S$z;'S;=`&W<%lO$zV!1}V#OU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!2kX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`!3W!`!a!.x!a;'S$z;'S;=`&W<%lO$zR!3_V$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!3{[!vQ&wPOY$zYZ%fZ}$z}!O!4q!O!^$z!^!_%k!_!`$z!`!a!6P!a!b!6m!b;'S$z;'S;=`&W<%lO$zV!4vX&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a!5c!a;'S$z;'S;=`&W<%lO$zV!5jV#aU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!6WV!gU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!6tW#zQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!7eV$]Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_!8Ra&wP!s^OY$zYZ%fZ!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$z_!9_e&wP!s^OY$zYZ%fZr$zrs!:psw$zwx8Vx!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$zR!:wV&wP'gQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!;eV#WU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!mZ!^!=u!^!_!@u!_#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%lO!=uR!>rV&wPO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?[VO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?tRO;'S!?X;'S;=`!?};=`O!?XQ!@QWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!?X<%lO!?XQ!@oO${QQ!@rP;=`<%l!?XR!@x]OY!=uYZ!>mZ!a!=u!a!b!?X!b#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%l~!=u~O!=u~~%fR!AvW&wPOY!=uYZ!>mZ!^!=u!^!_!@u!_;'S!=u;'S;=`!B`;=`<%l!?X<%lO!=uR!BcWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!=u<%lO!?XR!CSV${Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!ClP;=`<%l!=uV!CvV!oU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!DfY#}Q#lS&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EU#q;'S$z;'S;=`&W<%lO$zR!E]V#{Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!EyV!nQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FgV$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[f,g,p,0,1,2,3,h],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get:(e,t)=>a(e)<<1,external:a},{term:81,get:e=>O[e]||-1}],tokenPrec:29354});var b=n(54163),w=n(6407),k=n(72107);const x=k.qp.define({name:"php",parser:y.configure({props:[k.uj.add({IfStatement:(0,k.tC)({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:(0,k.tC)({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},ColonBlock:e=>e.baseIndent+e.unit,"Block EnumBody DeclarationList":(0,k.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"String BlockComment":()=>null,Statement:(0,k.tC)({except:/^({|end(for|foreach|switch|while)\b)/})}),k.x0.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":k.Dv,ColonBlock:e=>({from:e.from+1,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function _(e={}){let t,n=[];if(null===e.baseLanguage);else if(e.baseLanguage)t=e.baseLanguage;else{let e=(0,w.html)({matchClosingTags:!1});n.push(e.support),t=e.language}return new k.ri(x.configure({wrap:t&&(0,b.FE)((e=>e.type.isTop?{parser:t.parser,overlay:e=>"Text"==e.name}:null)),top:e.plain?"Program":"Template"}),n)}},99213:(e,t,n)=>{"use strict";n.r(t),n.d(t,{globalCompletion:()=>M,localCompletionSource:()=>A,python:()=>W,pythonLanguage:()=>z});var r=n(64963),i=n(7778);const o=10,a=13,s=new Set([27,51,52,265,67,129,58,59,246,64,65,74,62,63,150,151,154]);function l(e){return e==o||e==a}const u=new r.Jq(((e,t)=>{let n;if(e.next<0)e.acceptToken(201);else if(t.context.depth<0)l(e.next)&&e.acceptToken(200,1);else if(((n=e.peek(-1))<0||l(n))&&t.canShift(199)){let t=0;for(;32==e.next||9==e.next;)e.advance(),t++;e.next!=o&&e.next!=a&&35!=e.next||e.acceptToken(199,-t)}else l(e.next)&&e.acceptToken(198,1)}),{contextual:!0}),c=new r.Jq(((e,t)=>{let n=t.context.depth;if(n<0)return;let r=e.peek(-1);if(r==o||r==a){let t=0,r=0;for(;;){if(32==e.next)t++;else{if(9!=e.next)break;t+=8-t%8}e.advance(),r++}t!=n&&e.next!=o&&e.next!=a&&35!=e.next&&(te.depth<0&&s.has(t)?e.parent:e,shift:(e,t,n,r)=>196==t?new d(e,function(e){let t=0;for(let n=0;ne.hash}),p=new r.Jq((e=>{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let n=e.peek(t);if(32!=n&&9!=n)return void(40!=n&&46!=n&&n!=o&&n!=a&&35!=n&&e.acceptToken(1))}}));function m(e,t,n,i,o){return new r.Jq((r=>{let a=r.pos;for(;!(r.next<0);)if(123==r.next){if(123!=r.peek(1)){if(r.pos==a)return void r.acceptToken(i,1);break}r.advance(2)}else if(92==r.next)r.advance(),r.next>=0&&r.advance();else{if(r.next==e&&(1==t||r.peek(1)==e&&r.peek(2)==e)){if(r.pos==a)return void r.acceptToken(o,t);break}r.advance()}r.pos>a&&r.acceptToken(n)}))}const g=m(39,1,202,2,203),v=m(34,1,204,3,205),O=m(39,3,206,4,207),y=m(34,3,208,5,209),b=(0,i.Gv)({'async "*" "**" FormatConversion FormatSpec':i.pJ.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":i.pJ.controlKeyword,"in not and or is del":i.pJ.operatorKeyword,"from def class global nonlocal lambda":i.pJ.definitionKeyword,import:i.pJ.moduleKeyword,"with as print":i.pJ.keyword,Boolean:i.pJ.bool,None:i.pJ.null,VariableName:i.pJ.variableName,"CallExpression/VariableName":i.pJ.function(i.pJ.variableName),"FunctionDefinition/VariableName":i.pJ.function(i.pJ.definition(i.pJ.variableName)),"ClassDefinition/VariableName":i.pJ.definition(i.pJ.className),PropertyName:i.pJ.propertyName,"CallExpression/MemberExpression/PropertyName":i.pJ.function(i.pJ.propertyName),Comment:i.pJ.lineComment,Number:i.pJ.number,String:i.pJ.string,FormatString:i.pJ.special(i.pJ.string),UpdateOp:i.pJ.updateOperator,"ArithOp!":i.pJ.arithmeticOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,AssignOp:i.pJ.definitionOperator,Ellipsis:i.pJ.punctuation,At:i.pJ.meta,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,".":i.pJ.derefOperator,", ;":i.pJ.separator}),w={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,elif:234,while:238,try:244,except:246,finally:248,with:252,def:256,class:266,match:277,case:283},k=r.WQ.deserialize({version:14,states:"#!OO`Q#yOOP$_OSOOO%hQ&nO'#H^OOQS'#Cq'#CqOOQS'#Cr'#CrO'WQ#xO'#CpO(yQ&nO'#H]OOQS'#H^'#H^OOQS'#DW'#DWOOQS'#H]'#H]O)gQ#xO'#DaO)zQ#xO'#DhO*[Q#xO'#DlOOQS'#Dw'#DwO*oO,UO'#DwO*wO7[O'#DwO+POWO'#DxO+[O`O'#DxO+gOpO'#DxO+rO!bO'#DxO-tQ&nO'#G}OOQS'#G}'#G}O'WQ#xO'#G|O/WQ&nO'#G|OOQS'#Ee'#EeO/oQ#xO'#EfOOQS'#G{'#G{O/yQ#xO'#GzOOQV'#Gz'#GzO0UQ#xO'#FXOOQS'#G`'#G`O0ZQ#xO'#FWOOQV'#IS'#ISOOQV'#Gy'#GyOOQV'#Fp'#FpQ`Q#yOOO'WQ#xO'#CsO0iQ#xO'#DPO0pQ#xO'#DTO1OQ#xO'#HbO1`Q&nO'#EYO'WQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1tQ#xO'#EcO2[Q#xO'#EgO0UQ#xO'#EiO2oQ&nO'#EiO0UQ#xO'#ElO/oQ#xO'#EoO/oQ#xO'#EsO/oQ#xO'#EvO2zQ#xO'#ExO3RQ#xO'#E}O3^Q#xO'#EyO/oQ#xO'#E}O0UQ#xO'#FPO0UQ#xO'#FUO3cQ#xO'#FZP3jO#xO'#GxPOOO)CBl)CBlOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO3uQ#xO'#DqOOQS,5:[,5:[O4YQ#xO'#HlOOQS,5:_,5:_O4gQMlO,5:_O4lQ&nO,59[O0iQ#xO,59dO0iQ#xO,59dO0iQ#xO,59dO7[Q#xO,59dO7aQ#xO,59dO7hQ#xO,59lO7oQ#xO'#H]O8uQ#xO'#H[OOQS'#H['#H[OOQS'#D^'#D^O9^Q#xO,59cO'WQ#xO,59cO9lQ#xO,59cOOQS,59{,59{O9qQ#xO,5:TO'WQ#xO,5:TOOQS,5:S,5:SO:PQ#xO,5:SO:UQ#xO,5:ZO'WQ#xO,5:ZO'WQ#xO,5:XOOQS,5:W,5:WO:gQ#xO,5:WO:lQ#xO,5:YOOOO'#Fx'#FxO:qO,UO,5:cOOQS,5:c,5:cOOOO'#Fy'#FyO:yO7[O,5:cO;RQ#xO'#DyOOOW'#Fz'#FzO;cOWO,5:dOOQS,5:d,5:dO;RQ#xO'#D}OOO`'#F}'#F}O;nO`O,5:dO;RQ#xO'#EOOOOp'#GO'#GOO;yOpO,5:dO;RQ#xO'#EPOOO!b'#GP'#GPOWOOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-ZQ&nO1G/OO!-bQ&nO1G/OO0iQ#xO1G/OO!-}Q#xO1G/WOOQS'#D]'#D]O/oQ#xO,59vOOQS1G.}1G.}O!.UQ#xO1G/gO!.fQ#xO1G/gO!.nQ#xO1G/hO'WQ#xO'#HdO!.sQ#xO'#HdO!.xQ&nO1G.}O!/YQ#xO,59kO!0`Q#xO,5>SO!0pQ#xO,5>SO!0xQ#xO1G/oO!0}Q&nO1G/oOOQS1G/n1G/nO!1_Q#xO,5=}O!2UQ#xO,5=}O/oQ#xO1G/sO!2sQ#xO1G/uO!2xQ&nO1G/uO!3YQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9v-E9vOOQS1G/}1G/}OOOO-E9w-E9wO!3jQ#xO'#HwO/oQ#xO'#HwO!3xQ#xO,5:eOOOW-E9x-E9xOOQS1G0O1G0OO!4TQ#xO,5:iOOO`-E9{-E9{O!4`Q#xO,5:jOOOp-E9|-E9|O!4kQ#xO,5:kOOO!b-E9}-E9}OOQS-E:O-E:OO!4vQ!LUO1G3SO!5gQ&nO1G3SO'WQ#xO,5jOOQS1G1_1G1_O!6gQ#xO1G1_OOQS'#DX'#DXO/oQ#xO,5=yOOQS,5=y,5=yO!6lQ#xO'#FqO!6wQ#xO,59qO!7PQ#xO1G/ZO!7ZQ&nO,5=}OOQS1G3h1G3hOOQS,5:p,5:pO!7zQ#xO'#G|OOQS,5PO!8{Q#xO,5>PO/oQ#xO1G0mO/oQ#xO1G0mO0UQ#xO1G0oOOQS-E:T-E:TO!9^Q#xO1G0oO!9iQ#xO1G0oO!9nQ#xO,5>mO!9|Q#xO,5>mO!:[Q#xO,5>iO!:rQ#xO,5>iO!;TQ#{O1G0yO!>cQ#{O1G0|O!AnQ#xO,5>oO!AxQ#xO,5>oO!BQQ&nO,5>oO/oQ#xO1G1OO!B[Q#xO1G1OO3^Q#xO1G1TO! RQ#xO1G1VOOQV,5;`,5;`O!BaQ#zO,5;`O!BfQ#{O1G1PO!EwQ#xO'#G]O3^Q#xO1G1PO3^Q#xO1G1PO!FUQ#xO,5>pO!FcQ#xO,5>pO0UQ#xO,5>pOOQV1G1T1G1TO!FkQ#xO'#FRO!F|QMlO1G1VOOQV1G1[1G1[O3^Q#xO1G1[O!GUQ#xO'#F]OOQV1G1a1G1aO! `Q&nO1G1aPOOO1G3O1G3OP!GZOSO1G3OOOQS,5>V,5>VOOQS'#Dr'#DrO/oQ#xO,5>VO!G`Q#xO,5>UO!GsQ#xO,5>UOOQS1G/w1G/wO!G{Q#xO,5>XO!H]Q#xO,5>XO!HeQ#xO,5>XO!HxQ#xO,5>XO!IYQ#xO,5>XOOQS1G3r1G3rOOQS7+$j7+$jO!7PQ#xO7+$rO!J{Q#xO1G/OO!KSQ#xO1G/OOOQS1G/b1G/bOOQS,5<_,5<_O'WQ#xO,5<_OOQS7+%R7+%RO!KZQ#xO7+%ROOQS-E9q-E9qOOQS7+%S7+%SO!KkQ#xO,5>OO'WQ#xO,5>OOOQS7+$i7+$iO!KpQ#xO7+%RO!KxQ#xO7+%SO!K}Q#xO1G3nOOQS7+%Z7+%ZO!L_Q#xO1G3nO!LgQ#xO7+%ZOOQS,5<^,5<^O'WQ#xO,5<^O!LlQ#xO1G3iOOQS-E9p-E9pO!McQ#xO7+%_OOQS7+%a7+%aO!MqQ#xO1G3iO!N`Q#xO7+%aO!NeQ#xO1G3oO!NuQ#xO1G3oO!N}Q#xO7+%_O# SQ#xO,5>cO# jQ#xO,5>cO# jQ#xO,5>cO# xO$ISO'#D{O#!TO#tO'#HxOOOW1G0P1G0PO#!YQ#xO1G0POOO`1G0T1G0TO#!bQ#xO1G0TOOOp1G0U1G0UO#!jQ#xO1G0UOOO!b1G0V1G0VO#!rQ#xO1G0VO#!zQ!LUO7+(nO##kQ&nO1G2XP#$UQ#xO'#GROOQS,5d,5>dOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#7{Q#xO1G3SO#8fQ#xO1G3SP'WQ#xO'#FtO/oQ#xO<lO#9YQ#xO,5>lO0UQ#xO,5>lO#9kQ#xO,5>kOOQS<rO#AdQ#xO,5>rOOQS,5>r,5>rO#AoQ#xO,5>qO#BQQ#xO,5>qOOQS1G1X1G1XOOQS,5;o,5;oO#BYQ#xO1G1cP#B_Q#xO'#FvO#BoQ#xO1G1}O#CSQ#xO1G1}O#CdQ#xO1G1}P#CoQ#xO'#FwO#C|Q#xO7+)_O#D^Q#xO7+)_O#D^Q#xO7+)_O#DfQ#xO7+)_O#DvQ#xO7+)UO7hQ#xO7+)UOOQSAN>XAN>XO#EaQ#xO<eAN>eO/oQ#xO1G1{O#EqQ&nO1G1{P#E{Q#xO'#FuOOQS1G2R1G2RP#FYQ#xO'#F{O#FgQ#xO7+)iO#F}Q#xO,5:hOOOO-E9z-E9zO#GYQ#xO7+(nOOQSAN?_AN?_O#GsQ#xO,5QOOQSANB[ANB[OOOO7+%n7+%nOOQS7+'x7+'xO$'{Q#xO<tO$*qQ#xO,5>tO0UQ#xO,5vO#MRQ#xO,5>vOOQS1G1o1G1oO$.iQ&nO,5wO$.wQ#xO,5>wOOQS1G1r1G1rOOQS7+'R7+'RP#MRQ#xO'#GfO$/PQ#xO1G4bO$/ZQ#xO1G4bO$/cQ#xO1G4bOOQS7+%V7+%VO$/qQ#xO1G1sO$0PQ&nO'#F`O$0WQ#xO,5=POOQS,5=P,5=PO$0fQ#xO1G4cOOQS-E:c-E:cO#MRQ#xO,5=OO$0mQ#xO,5=OO$0rQ#xO7+)|OOQS-E:b-E:bO$0|Q#xO7+)|O#MRQ#xO,5e>hPP'Z'ZPP?QPP'Z'ZPP'Z'Z'Z'Z'Z?U?{'ZP@OP@UD]GyPG}HZH_HcHg'ZPPPHkHq'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RPHwPIOIUPIOPIOIOPPPIOPKTPK^KdKjKTPIOKpPIOPKwK}PLRLgMUMoLRLRMuNSLRLRLRLRNhNnNqNvNy! T! Z! g! y!!P!!Z!!a!!}!#T!#Z!#a!#k!#q!#w!#}!$T!$Z!$m!$w!$}!%T!%Z!%e!%k!%q!%w!&R!&X!&c!&i!&r!&x!'X!'a!'k!'rPPPPPPPPPPPPPPPPP!'x!'{!(R!([!(f!(qPPPPPPPPPPPP!-e!.y!2s!6TPP!6]!6o!6x!7n!7e!7w!7}!8Q!8T!8W!8`!9PPPPPPPPPP!9S!9cPPPP!:R!:_!:k!:q!:z!:}!;T!;Z!;a!;dP!;l!;u!x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&m!b&eS&hW%k!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&m!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&m!b&eS&hWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&m!b&eS&hWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&m!b&eS&hWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&m!b&eS&csOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&m!b&eS&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&m!b&eS&csOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&m!b&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&m!b&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&m!b&hW&csOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&m!b&csOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&m!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&csOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&m!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&eS&hW&csOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&eS&csOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&m!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&m!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&m!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&hWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&hWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&hWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&m!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&eS&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&eSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&eSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&eS&hWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&m!b&eS&hW&b`%}sOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$w[e]||-1}],tokenPrec:7205});var x=n(72107),_=n(54163),S=n(71170);const P=new _.hr,E=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function C(e){return(t,n,r)=>{if(r)return!1;let i=t.node.getChild("VariableName");return i&&n(i,e),!0}}const T={FunctionDefinition:C("function"),ClassDefinition:C("class"),ForStatement(e,t,n){if(n)for(let n=e.node.firstChild;n;n=n.nextSibling)if("VariableName"==n.name)t(n,"variable");else if("in"==n.name)break},ImportStatement(e,t){var n,r;let{node:i}=e,o="from"==(null===(n=i.firstChild)||void 0===n?void 0:n.name);for(let e=i.getChild("import");e;e=e.nextSibling)"VariableName"==e.name&&"as"!=(null===(r=e.nextSibling)||void 0===r?void 0:r.name)&&t(e,o?"variable":"namespace")},AssignStatement(e,t){for(let n=e.node.firstChild;n;n=n.nextSibling)if("VariableName"==n.name)t(n,"variable");else if(":"==n.name||"AssignOp"==n.name)break},ParamList(e,t){for(let n=null,r=e.node.firstChild;r;r=r.nextSibling)"VariableName"!=r.name||n&&/\*|AssignOp/.test(n.name)||t(r,"variable"),n=r},CapturePattern:C("variable"),AsPattern:C("variable"),__proto__:null};function $(e,t){let n=P.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(_.vj.IncludeAnonymous).iterate((t=>{if(t.name){let e=T[t.name];if(e&&e(t,o,i)||!i&&E.has(t.name))return!1;i=!1}else if(t.to-t.from>8192){for(let n of $(e,t.node))r.push(n);return!1}})),P.set(t,r),r}const Q=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,R=["String","FormatString","Comment","PropertyName"];function A(e){let t=(0,x.qz)(e.state).resolveInner(e.pos,-1);if(R.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&Q.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)E.has(n.name)&&(r=r.concat($(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:Q}}const j=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map((e=>({label:e,type:"constant"}))).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map((e=>({label:e,type:"type"})))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map((e=>({label:e,type:"class"})))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map((e=>({label:e,type:"function"})))),D=[(0,S.Gn)("def ${name}(${params}):\n\t${}",{label:"def",detail:"function",type:"keyword"}),(0,S.Gn)("for ${name} in ${collection}:\n\t${}",{label:"for",detail:"loop",type:"keyword"}),(0,S.Gn)("while ${}:\n\t${}",{label:"while",detail:"loop",type:"keyword"}),(0,S.Gn)("try:\n\t${}\nexcept ${error}:\n\t${}",{label:"try",detail:"/ except block",type:"keyword"}),(0,S.Gn)("if ${}:\n\t\n",{label:"if",detail:"block",type:"keyword"}),(0,S.Gn)("if ${}:\n\t${}\nelse:\n\t${}",{label:"if",detail:"/ else block",type:"keyword"}),(0,S.Gn)("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}",{label:"class",detail:"definition",type:"keyword"}),(0,S.Gn)("import ${module}",{label:"import",detail:"statement",type:"keyword"}),(0,S.Gn)("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],M=(0,S.eC)(R,(0,S.Mb)(j.concat(D)));function I(e,t){let n=e.baseIndentFor(t),r=e.lineAt(e.pos,-1),i=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.ton?null:n+e.unit}const z=x.qp.define({name:"python",parser:k.configure({props:[x.uj.add({Body:e=>{var t;return null!==(t=I(e,e.node))&&void 0!==t?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except |finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,x.vw)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,x.vw)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,x.vw)({closing:"]"}),"String FormatString":()=>null,Script:e=>{if(e.pos+/\s*/.exec(e.textAfter)[0].length>=e.node.to){let t=null;for(let n=e.node,r=n.to;n=n.lastChild,n&&n.to==r;)"Body"==n.type.name&&(t=n);if(t){let n=I(e,t);if(null!=n)return n}}return e.continue()}}),x.x0.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":x.Dv,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function W(){return new x.ri(z,[z.data.of({autocomplete:A}),z.data.of({autocomplete:M})])}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{rust:()=>m,rustLanguage:()=>p});var r=n(64963),i=n(7778);function o(e){return e>=48&&e<=57}function a(e){return o(e)||95==e}const s=new r.Jq(((e,t)=>{if(o(e.next)){let t=!1;do{e.advance()}while(a(e.next));if(46==e.next)if(t=!0,e.advance(),o(e.next))do{e.advance()}while(a(e.next));else if(46==e.next||e.next>127||/\w/.test(String.fromCharCode(e.next)))return;if(101==e.next||69==e.next){if(t=!0,e.advance(),43!=e.next&&45!=e.next||e.advance(),!a(e.next))return;do{e.advance()}while(a(e.next))}if(102==e.next){let n=e.peek(1);if(!(51==n&&50==e.peek(2)||54==n&&52==e.peek(2)))return;e.advance(3),t=!0}t&&e.acceptToken(5)}else if(98==e.next||114==e.next){if(98==e.next&&e.advance(),114!=e.next)return;e.advance();let t=0;for(;35==e.next;)t++,e.advance();if(34!=e.next)return;e.advance();e:for(;;){if(e.next<0)return;let n=34==e.next;if(e.advance(),n){for(let n=0;n{124==e.next&&e.acceptToken(1,1)})),u=new r.Jq((e=>{60==e.next?e.acceptToken(2,1):62==e.next&&e.acceptToken(3,1)})),c=(0,i.Gv)({"const macro_rules struct union enum type fn impl trait let static":i.pJ.definitionKeyword,"mod use crate":i.pJ.moduleKeyword,"pub unsafe async mut extern default move":i.pJ.modifier,"for if else loop while match continue break return await":i.pJ.controlKeyword,"as in ref":i.pJ.operatorKeyword,"where _ crate super dyn":i.pJ.keyword,self:i.pJ.self,String:i.pJ.string,Char:i.pJ.character,RawString:i.pJ.special(i.pJ.string),Boolean:i.pJ.bool,Identifier:i.pJ.variableName,"CallExpression/Identifier":i.pJ.function(i.pJ.variableName),BoundIdentifier:i.pJ.definition(i.pJ.variableName),"FunctionItem/BoundIdentifier":i.pJ.function(i.pJ.definition(i.pJ.variableName)),LoopLabel:i.pJ.labelName,FieldIdentifier:i.pJ.propertyName,"CallExpression/FieldExpression/FieldIdentifier":i.pJ.function(i.pJ.propertyName),Lifetime:i.pJ.special(i.pJ.variableName),ScopeIdentifier:i.pJ.namespace,TypeIdentifier:i.pJ.typeName,"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier":i.pJ.macroName,"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier":i.pJ.macroName,'"!"':i.pJ.macroName,UpdateOp:i.pJ.updateOperator,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Integer:i.pJ.integer,Float:i.pJ.float,ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,"=":i.pJ.definitionOperator,".. ... => ->":i.pJ.punctuation,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,". DerefOp":i.pJ.derefOperator,"&":i.pJ.operator,", ; ::":i.pJ.separator,"Attribute/...":i.pJ.meta}),d={__proto__:null,self:28,super:32,crate:34,impl:46,true:72,false:72,pub:88,in:92,const:96,unsafe:104,async:108,move:110,if:114,let:118,ref:142,mut:144,_:198,else:200,match:204,as:248,return:252,await:262,break:270,continue:276,while:312,loop:316,for:320,macro_rules:327,mod:334,extern:342,struct:346,where:364,union:379,enum:382,type:390,default:395,fn:396,trait:412,use:420,static:438,dyn:476},f=r.WQ.deserialize({version:14,states:"$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#EmOOQV'#En'#EnO.YQ_O'#EkO0_Q_O'#EoO2gQWOOO4QQ_O'#FPO7hQWO'#J`OOQV'#FY'#FYO7{Q_O'#F^O:WQ_O'#FaOOQO'#F`'#F`O=sQ_O'#FcO=}Q_O'#FbO@VQWO'#FgOOQO'#J`'#J`OOQV'#Io'#IoOA]Q_O'#InOEPQWO'#InOOQV'#Fw'#FwOF[QWO'#JuOFcQWO'#F|OOQO'#IO'#IOOGrQWO'#GhOOQV'#Im'#ImOOQV'#Il'#IlOOQV'#Hj'#HjQGyQ_OOOKeQ_O'#DUOKlQYO'#CqOOQP'#I_'#I_OOQV'#Hg'#HgQ]Q_OOOLuQWO'#I`ONsQYO'#DXO!!eQWO'#JuO!!lQWO'#JuO!!vQ_O'#DfO!%]Q_O'#E}O!(sQ_O'#FWO!,ZQWO'#FZO!.^QXO'#FbO!.cQ_O'#EeO!!vQ_O'#FmO!0uQWO'#FoO!0zQWO'#FoO!1PQ^O'#FqO!1WQWO'#JuO!1_QWO'#FtO!1dQWO'#FxO!2WQWO'#JjO!2_QWO'#GOO!2_QWO'#G`O!2_QWO'#GbO!2_QWO'#GsOOQO'#Ju'#JuO!2dQWO'#GhO!2lQYO'#GpO!2_QWO'#GqO!3uQ^O'#GtO!3|QWO'#GuO!4hQWO'#HOP!4sOpO'#CcPOOO)CC})CC}OOOO'#Hi'#HiO!5OO`O,59iOOQV,59i,59iO!5ZQYO,5?aOOQO-E;i-E;iOOQO,5:[,5:[OOQP,59Z,59ZO)xQWO,5:[O)xQWO,5:[O!5oQWO,5?kO!5zQYO,5;qO!6PQYO,5;TO!6hQWO,59QO!7kQXO'#CnO!7xQXO'#I`O!9SQWO'#CoO,^QWO'#EiOOQV-E;n-E;nO!9eQWO'#FsOOQV,5WQWO,5:fOOQP,5:h,5:hO!1PQ^O,5:hO!1PQ^O,5:mO$>]QYO,5gQ_O'#HsO$>tQXO,5@QOOQV1G1i1G1iOOQP,5:e,5:eO$>|QXO,5]QYO,5=vO$LRQWO'#KRO$L^QWO,5=xOOQR,5=y,5=yO$LcQWO,5=zO$>]QYO,5>PO$>]QYO,5>POOQO1G.w1G.wO$>]QYO1G.wO$LnQYO,5=pO$LvQZO,59^OOQR,59^,59^O$>]QYO,5=wO% YQZO,5=}OOQR,5=},5=}O%#lQWO1G/_O!6PQYO1G/_O#FYQYO1G2vO%#qQWO1G2vO%$PQYO1G2vOOQV1G/i1G/iO%%YQWO,5:SO%%bQ_O1G/lO%*kQWO1G1^O%+RQWO1G1hOOQO1G1h1G1hO$>]QYO1G1hO%+iQ^O'#EgOOQV1G0k1G0kOOQV1G1s1G1sO!!vQ_O1G1sO!0zQWO1G1uO!1PQ^O1G1wO!.cQ_O1G1wOOQP,5:j,5:jO$>]QYO1G/^OOQO'#Cn'#CnO%+vQWO1G1zOOQV1G2O1G2OO%,OQWO'#CnO%,WQWO1G3TO%,]QWO1G3TO%,bQYO'#GQO%,sQWO'#G]O%-UQYO'#G_O%.hQYO'#GXOOQV1G2U1G2UO%/wQWO1G2UO%/|QWO1G2UO$ARQWO1G2UOOQV1G2f1G2fO%/wQWO1G2fO#CpQWO1G2fO%0UQWO'#GdOOQV1G2h1G2hO%0gQWO1G2hO#C{QWO1G2hO%0lQYO'#GSO$>]QYO1G2lO$AdQWO1G2lOOQV1G2y1G2yO%1xQWO1G2yO%3hQ^O'#GkO%3rQWO1G2nO#DfQWO1G2nO%4QQYO,5]QYO1G2vOOQV1G2w1G2wO%5tQWO1G2wO%5yQWO1G2wO#HXQWO1G2wOOQV1G2z1G2zO.YQ_O1G2zO$>]QYO1G2zO%6RQWO1G2zOOQO,5>l,5>lOOQO-E]QYO1G3UPOOO-E;d-E;dPOOO1G.i1G.iOOQO7+*g7+*gO%7VQYO'#IcO%7nQYO'#IfO%7yQYO'#IfO%8RQYO'#IfO%8^QYO,59eOOQO7+%b7+%bOOQP7+$a7+$aO%8cQ!fO'#JTOOQS'#EX'#EXOOQS'#EY'#EYOOQS'#EZ'#EZOOQS'#JT'#JTO%;UQWO'#EWOOQS'#E`'#E`OOQS'#JR'#JROOQS'#Hn'#HnO%;ZQ!fO,5:oOOQV,5:o,5:oOOQV'#JQ'#JQO%;bQ!fO,5:{OOQV,5:{,5:{O%;iQ!fO,5:|OOQV,5:|,5:|OOQV7+'e7+'eOOQV7+&Z7+&ZO%;pQ!fO,59TOOQO,59T,59TO%>YQWO7+$WO%>_QWO1G1yOOQV1G1y1G1yO!9SQWO1G.uO%>dQWO,5?}O%>nQ_O'#HqO%@|QWO,5?}OOQO1G1X1G1XOOQO7+&}7+&}O%AUQWO,5>^OOQO-E;p-E;pO%AcQWO7+'OO.YQ_O7+'OOOQO7+'O7+'OOOQO7+'P7+'PO%AjQWO7+'POOQO7+'W7+'WOOQP1G0V1G0VO%ArQXO1G/tO!M{QWO1G/tO%BsQXO1G0RO%CkQ^O'#HlO%C{QWO,5?eOOQP1G/u1G/uO%DWQWO1G/uO%D]QWO'#D_OOQO'#Dt'#DtO%DhQWO'#DtO%DmQWO'#I{OOQO'#Iz'#IzO%DuQWO,5:_O%DzQWO'#DtO%EPQWO'#DtOOQP1G0Q1G0QOOQP1G0S1G0SOOQP1G0X1G0XO%EXQXO1G1jO%EdQXO'#FeOOQP,5>_,5>_O!1PQ^O'#FeOOQP-E;q-E;qO$>]QYO1G1jOOQO7+'S7+'SOOQO,5]QYO7+$xOOQV7+'j7+'jO%FsQWO7+(oO%FxQWO7+(oOOQV7+'p7+'pO%/wQWO7+'pO%F}QWO7+'pO%GVQWO7+'pOOQV7+(Q7+(QO%/wQWO7+(QO#CpQWO7+(QOOQV7+(S7+(SO%0gQWO7+(SO#C{QWO7+(SO$>]QYO7+(WO%GeQWO7+(WO#HUQYO7+(cO%GjQWO7+(YO#DfQWO7+(YOOQV7+(c7+(cO%5tQWO7+(cO%5yQWO7+(cO#HXQWO7+(cOOQV7+(g7+(gO$>]QYO7+(pO%GxQWO7+(pO!1dQWO7+(pOOQV7+$v7+$vO%G}QWO7+$vO%HSQZO1G3ZO%JfQWO1G4jOOQO1G4j1G4jOOQR1G.}1G.}O#.WQWO1G.}O%JkQWO'#KQOOQO'#HW'#HWO%J|QWO'#HXO%KXQWO'#KQOOQO'#KP'#KPO%KaQWO,5=qO%KfQYO'#H[O%LrQWO'#GmO%L}QYO'#CtO%MXQWO'#GmO$>]QYO1G3ZOOQR1G3g1G3gO#7aQWO1G3ZO%M^QZO1G3bO$>]QYO1G3bO& mQYO'#IVO& }QWO,5@mOOQR1G3d1G3dOOQR1G3f1G3fO.YQ_O1G3fOOQR1G3k1G3kO&!VQYO7+$cO&!_QYO'#KOOOQQ'#J}'#J}O&!gQYO1G3[O&!lQZO1G3cOOQQ7+$y7+$yO&${QWO7+$yO&%QQWO7+(bOOQV7+(b7+(bO%5tQWO7+(bO$>]QYO7+(bO#FYQYO7+(bO&%YQWO7+(bO!.cQ_O1G/nO&%hQWO7+%WO$?[QWO7+'SO&%pQWO'#EhO&%{Q^O'#EhOOQU'#Ho'#HoO&%{Q^O,5;ROOQV,5;R,5;RO&&VQWO,5;RO&&[Q^O,5;RO!0zQWO7+'_OOQV7+'a7+'aO&&iQWO7+'cO&&qQWO7+'cO&&xQWO7+$xO&'TQ!fO7+'fO&'[Q!fO7+'fOOQV7+(o7+(oO!1dQWO7+(oO&'cQYO,5]QYO'#JrOOQO'#Jq'#JqO&*YQWO,5]QYO'#GUO&,SQYO'#JkOOQQ,5]QYO7+(YO&0SQYO'#HxO&0hQYO1G2WOOQQ1G2W1G2WOOQQ,5]QYO,5]QYO7+(fO&1dQWO'#IRO&1nQWO,5@hOOQO1G3Q1G3QOOQO1G2}1G2}OOQO1G3P1G3POOQO1G3R1G3ROOQO1G3S1G3SOOQO1G3O1G3OO&1vQWO7+(pO$>]QYO,59fO&2RQ^O'#ISO&2xQYO,5?QOOQR1G/P1G/PO&3QQ!bO,5:pO&3VQ!fO,5:rOOQS-E;l-E;lOOQV1G0Z1G0ZOOQV1G0g1G0gOOQV1G0h1G0hO&3^QWO'#JTOOQO1G.o1G.oOOQV<]O&3qQWO,5>]OOQO-E;o-E;oOOQO<WOOQO-E;j-E;jOOQP7+%a7+%aO!1PQ^O,5:`O&5cQWO'#HmO&5wQWO,5?gOOQP1G/y1G/yOOQO,5:`,5:`O&6PQWO,5:`O%DzQWO,5:`O$>]QYO,5`,5>`OOQO-E;r-E;rOOQV7+'l7+'lO&6yQWO<]QYO<]QYO<]QYO<]QYO7+(uOOQO7+*U7+*UOOQR7+$i7+$iO&8cQWO,5@lOOQO'#Gm'#GmO&8kQWO'#GmO&8vQYO'#IUO&8cQWO,5@lOOQR1G3]1G3]O&:cQYO,5=vO&;rQYO,5=XO&;|QWO,5=XOOQO,5=X,5=XOOQR7+(u7+(uO&eQZO7+(|O&@tQWO,5>qOOQO-E]QYO<]QYO,5]QYO,5@^O&D^QYO'#H|O&EsQWO,5@^OOQO1G2e1G2eO%,nQWO,5]QYO,5PO&I]QYO,5@VOOQV<]QYO,5=WO&KuQWO,5@cO&K}QWO,5@cO&MvQ^O'#IPO&KuQWO,5@cOOQO1G2q1G2qO&NTQWO,5=WO&N]QWO<oO&NvQYO,5>dO' UQYO,5>dOOQQ,5>d,5>dOOQQ-E;v-E;vOOQQ7+'r7+'rO' aQYO1G2]O$>]QYO1G2^OOQV<m,5>mOOQO-EnOOQQ,5>n,5>nO'!fQYO,5>nOOQQ-EX,5>XOOQO-E;k-E;kO!1PQ^O1G/zOOQO1G/z1G/zO'%oQWO1G/zO'%tQXO1G1kO$>]QYO1G1kO'&PQWO7+'[OOQVANA`ANA`O'&ZQWOANA`O$>]QYOANA`O'&cQWOANA`OOQVAN>OAN>OO.YQ_OAN>OO'&qQWOANAuOOQVAN@vAN@vO'&vQWOAN@vOOQVANAWANAWOOQVANAYANAYOOQVANA^ANA^O'&{QWOANA^OOQVANAiANAiO%5tQWOANAiO%5yQWOANAiO''TQWOANA`OOQVANAvANAvO.YQ_OANAvO''cQWOANAvO$>]QYOANAvOOQR<pOOQO'#HY'#HYO''vQWO'#HZOOQO,5>p,5>pOOQO-E]QYO<o,5>oOOQQ-E]QYOANAhO'(bQWO1G1rO')UQ^O1G0nO.YQ_O1G0nO'*zQWO,5;UO'+RQWO1G0nP'+WQWO'#ERP&%{Q^O'#HpOOQV7+&X7+&XO'+cQWO7+&XO&&qQWOAN@iO'+hQWOAN>OO!5oQWO,5a,5>aO'+oQWOAN@lO'+tQWOAN@lOOQS-E;s-E;sOOQVAN@lAN@lO'+|QWOAN@lOOQVANAuANAuO',UQWO1G5vO',^QWO1G2dO$>]QYO1G2dO&'|QWO,5>gOOQO,5>g,5>gOOQO-E;y-E;yO',iQWO1G5xO',qQWO1G5xO&(nQYO,5>hO',|QWO,5>hO$>]QYO,5>hOOQO-E;z-E;zO'-XQWO'#JnOOQO1G2a1G2aOOQO,5>f,5>fOOQO-E;x-E;xO&'cQYO,5iOOQO,5>i,5>iOOQO-E;{-E;{OOQQ,5>c,5>cOOQQ-E;u-E;uO'.pQWO1G2sO'/QQWO1G2rO'/]QWO1G5}O'/eQ^O,5>kOOQO'#Go'#GoOOQO,5>k,5>kO'/lQWO,5>kOOQO-E;}-E;}O$>]QYO1G2rO'/zQYO7+'xO'0VQWOANAlOOQVANAlANAlO.YQ_OANAlO'0^QWOANAvOOQS7+%x7+%xO'0eQWO7+%xO'0pQ!fO7+%xO'0}QWO7+%fO!1PQ^O7+%fO'1YQXO7+'VOOQVG26zG26zO'1eQWOG26zO'1sQWOG26zO$>]QYOG26zO'1{QWOG23jOOQVG27aG27aOOQVG26bG26bOOQVG26xG26xOOQVG27TG27TO%5tQWOG27TO'2SQWOG27bOOQVG27bG27bO.YQ_OG27bO'2ZQWOG27bOOQO1G4[1G4[OOQO7+(_7+(_OOQRANA{ANA{OOQVG27SG27SO%5tQWOG27SO&0uQWOG27SO'2fQ^O7+&YO'4PQWO7+'^O'4sQ^O7+&YO.YQ_O7+&YP.YQ_O,5;SP'6PQWO,5;SP'6UQWO,5;SOOQV<]QYO1G4SO%,nQWO'#HyO'7UQWO,5@YO'7dQWO7+(VO.YQ_O7+(VOOQO1G4T1G4TOOQO1G4V1G4VO'7nQWO1G4VO'7|QWO7+(^OOQVG27WG27WO'8XQWOG27WOOQS<e,5>eOOQO-E;w-E;wO'?rQWO<wD_DpPDvHQPPPPPPK`P! P! _PPPPP!!VP!$oP!$oPP!&oP!(rP!(w!)n!*f!*f!*f!(w!+]P!(w!.Q!.TPP!.ZP!(w!(w!(w!(wP!(w!(wP!(w!(w!.y!/dP!/dJ}J}J}PPPP!/d!.y!/sPP!$oP!0^!0a!0g!1h!1t!3t!3t!5r!7t!1t!1t!9p!;_!=O!>k!@U!Am!CS!De!1t!1tP!1tP!1t!1t!Et!1tP!Ge!1t!1tP!Ie!1tP!1t!7t!7t!1t!7t!1t!Kl!Mt!Mw!7t!1t!Mz!M}!M}!M}!NR!$oP!$oP!$oP! P! PP!N]! P! PP!Ni# }! PP! PP#!^##c##k#$Z#$_#$e#$e#$mP#&s#&s#&y#'o#'{! PP! PP#(]#(l! PP! PPP#(x#)W#)d#)|#)^! P! PP! P! P! PP#*S#*S#*Y#*`#*S#*S! P! PP#*m#*v#+Q#+Q#,x#.l#.x#.x#.{#.{5a5a5a5a5a5a5a5aP5a#/O#/U#/p#1{#2R#2b#6^#6d#6j#6|#7W#8w#9R#9b#9h#9n#9x#:S#:Y#:g#:m#:s#:}#;]#;g#=u#>R#>`#>f#>n#>u#?PPPPPPPP#?V#BaP#F^#Jx#Ls#Nr$&^P$&aPPP$)_$)h$)z$/U$1d$1m$3fP!(w$4`$7r$:i$>T$>^$>c$>fPPP$>i$A`$A|P$BaPPPPPPPPPP$BvP$EU$EX$E[$Eb$Ee$Eh$Ek$En$Et$HO$HR$HU$HX$H[$H_$Hb$He$Hh$Hk$Hn$Jt$Jw$Jz#*S$KW$K^$Ka$Kd$Kh$Kl$Ko$KrQ!tPT'V!s'Wi!SOlm!P!T$T$W$y%b)U*f/gQ'i#QR,n'l(OSOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%X%_%b&U&Y&[&b&u&z&|'P'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n+z,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1P1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:gS(z$v-oQ*p&eQ*t&hQ-k(yQ-y)ZW0Z+Q0Y4Z7UR4Y0[&w!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#r]Ofgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hb#[b#Q$y'l(b)S)U*Z-t!h$bo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m$b%k!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g!W:y!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:|%n$_%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g$e%l!Q!n$O$u%n%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g'hZOY[fgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r%_%b%i%j&U&Y&[&b&u'a'}(W(Y(d(e(f(j(o(p(r(|)i)p)q*f*i*k*l+Z+n,s,z-R-T-g-m.i.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:x$^%l!Q!n$O$u%n%o%p%q%y%{&P&p&r(q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ&j!hQ&k!iQ&l!jQ&m!kQ&s!oQ)[%QQ)]%RQ)^%SQ)_%TQ)b%WQ+`&oS,R']1ZQ.W)`S/r*u4TR4n0s+yTOY[bfgilmop!O!P!Q!T!Y!Z![!_!`!c!n!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$O$T$W$`$a$e$g$h$q$r$u$y%X%_%b%i%j%n%o%p%q%y%{&P&U&Y&[&b&o&p&r&u&z&|'P']'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(q(r(|)S)U)i)p)q)s)x)y*O*P*R*V*Z*[*^*e*f*i*k*l*n*w*x+U+V+Z+h+n+o+z+},q,s,z-R-T-g-i-m-t-v.U.`.i.p.t.x.y.}/Z/[/^/b/d/g/{/}0`0e0g0m0r0w0}1O1P1Y1Z1h1r1y1|2a2h2j2m2s2v3V3_3a3f3h3k3u3{3|4R4U4W4_4c4e4h4t4v4|5[5`5d5g5t5v6R6Y6]6a6p6v6x7S7^7c7g7m7r7{8W8X8g8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:xQ'[!xQ'h#PQ)l%gU)r%m*T*WR.f)kQ,T']R5P1Z#t%s!Q!n$O$u%p%q&P&p&r(q)x)y*O*R*V*[*^*e*n*w+V+h+o+}-i-v.U.`.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2v3V3u3{3|4U4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)x%oQ+_&oQ,U']n,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7kS.q)s2sQ/O*PQ/Q*SQ/q*uS0Q*x4RQ0a+U[0o+Z.j0g4h5y7^Q2v.pS4d0e2rQ4m0sQ5Q1ZQ6T3RQ6z4PQ7O4TQ7X4_R9Y8h&jVOfgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u']'}(W(Y(b(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1Z1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fU&g!g%P%[o,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7k$nsOfgilm!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y'}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9z9{:O:P:Q:R:S:T:U:V:W:X:Y:eS$tp9xS&O!W#bS&Q!X#cQ&`!bQ*_&RQ*a&VS*d&[:fQ*h&^Q,T']Q-j(wQ/i*jQ0p+[S2f.X0qQ3]/_Q3^/`Q3g/hQ3i/kQ5P1ZU5b2R2g4lU7o5c5e5rQ8]6dS8u7p7qS9_8v8wR9i9`i{Ob!O!P!T$y%_%b)S)U)i-thxOb!O!P!T$y%_%b)S)U)i-tW/v*v/t3w6qQ/}*wW0[+Q0Y4Z7UQ3{/{Q6x3|R8g6v!h$do!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ&d!dQ&f!fQ&n!mW&x!q%X&|1PQ'S!rQ)X$}Q)Y%OQ)a%VU)d%Y'T'UQ*s&hS+s&z'PS-Y(k1sQ-u)WQ-x)ZS.a)e)fS0x+c/sQ1S+zQ1W+{S1v-_-`Q2k.bQ3s/pQ5]1xR5h2V${sOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$zsOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR3]/_V&T!Y!`*i!i$lo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!k$^o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!i$co!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&e^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR(l$fQ-[(kR5Y1sQ(S#|S({$v-oS-Z(k1sQ-l(yW/u*v/t3w6qS1w-_-`Q3v/vR5^1xQ'e#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,o'mk,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ'f#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,p'mR*g&]X/c*f/d/g3f!}aOb!O!P!T#z$v$y%_%b'}(y)S)U)i)s*f*v*w+Q+Z,s-o-t.j/b/d/g/t/{0Y0g1h2s3f3w3|4Z4h5y6a6q6v7U7^Q3`/aQ6_3bQ8Y6`R9V8Z${rOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#nfOfglmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!T9u!Y!_!`*i*l/^3h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#rfOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!X9u!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$srOfglmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#U#oh#d$P$Q$V$s%^&W&X'q't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b}:P&S&]/k3[6d:[:]:c:d:h:j:k:l:m:n:o:p:q:r:v:w:{#W#ph#d$P$Q$V$s%^&W&X'q'r't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b!P:Q&S&]/k3[6d:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{#S#qh#d$P$Q$V$s%^&W&X'q'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b{:R&S&]/k3[6d:[:]:c:d:h:k:l:m:n:o:p:q:r:v:w:{#Q#rh#d$P$Q$V$s%^&W&X'q'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9by:S&S&]/k3[6d:[:]:c:d:h:l:m:n:o:p:q:r:v:w:{#O#sh#d$P$Q$V$s%^&W&X'q'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bw:T&S&]/k3[6d:[:]:c:d:h:m:n:o:p:q:r:v:w:{!|#th#d$P$Q$V$s%^&W&X'q'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bu:U&S&]/k3[6d:[:]:c:d:h:n:o:p:q:r:v:w:{!x#vh#d$P$Q$V$s%^&W&X'q'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bq:W&S&]/k3[6d:[:]:c:d:h:p:q:r:v:w:{!v#wh#d$P$Q$V$s%^&W&X'q'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bo:X&S&]/k3[6d:[:]:c:d:h:q:r:v:w:{$]#{h#`#d$P$Q$V$s%^&S&W&X&]'q'r's't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n/k0z1i1l1}3P3[4w5V5a6^6d6e7R7e7h7s7y8j8q8{9[9b:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{${jOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$v!aOfgilmp!O!P!T!Y!Z!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ&Y![Q&Z!]R:e9{#rpOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hQ&[!^!W9x!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:f:zR$moR-f(rR$wqT(}$v-oQ/f*fS3d/d/gR6c3fQ3m/mQ3p/nQ6i3nR6l3qQ$zwQ)V${Q*q&fQ+f&qQ+i&sQ-w)YW.Z)b+j+k+lS/X*]+gW2b.W.[.].^U3W/Y/]0yU5o2c2d2eS6W3X3ZS7w5p5qS8Q6V6XQ8y7xS8}8R8SR9c9O^|O!O!P!T%_%b)iX)R$y)S)U-tQ&r!nQ*^&PQ*|&jQ+P&kQ+T&lQ+W&mQ+]&nQ+l&sQ-})[Q.Q)]Q.T)^Q.V)_Q.Y)aQ.^)bQ2S-uQ2e.WR4U0VU+a&o*u4TR4o0sQ+Y&mQ+k&sS.])b+l^0v+_+`/q/r4m4n7OS2d.W.^S4Q0R0SR5q2eS0R*x4RQ0a+UR7X4_U+d&o*u4TR4p0sQ*z&jQ+O&kQ+S&lQ+g&qQ+j&sS-{)[*|S.P)]+PS.S)^+TU.[)b+k+lQ/Y*]Q0X*{Q0q+[Q2X-|Q2Y-}Q2].QQ2_.TU2c.W.].^Q2g.XS3Z/]0yS5c2R4lQ5j2ZS5p2d2eQ6X3XS7q5e5rQ7x5qQ8R6VQ8v7pQ9O8SR9`8wQ0T*xR6|4RQ*y&jQ*}&kU-z)[*z*|U.O)]+O+PS2W-{-}S2[.P.QQ4X0ZQ5i2YQ5k2]R7T4YQ/w*vQ3t/tQ6r3wR8d6qQ*{&jS-|)[*|Q2Z-}Q4X0ZR7T4YQ+R&lU.R)^+S+TS2^.S.TR5l2_Q0]+QQ4V0YQ7V4ZR8l7UQ+[&nS.X)a+]S2R-u.YR5e2SQ0i+ZQ4f0gQ7`4hR8m7^Q.m)sQ0i+ZQ2p.jQ4f0gQ5|2sQ7`4hQ7}5yR8m7^Q0i+ZR4f0gX'O!q%X&|1PX&{!q%X&|1PW'O!q%X&|1PS+u&z'PR1U+z_|O!O!P!T%_%b)iQ%a!PS)h%_%bR.d)i$^%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ*U%yR*X%{$c%n!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gW)t%m%x*T*WQ.e)jR2{.vR.m)sR5|2sQ'W!sR,O'WQ!TOQ$TlQ$WmQ%b!P[%|!T$T$W%b)U/gQ)U$yR/g*f$b%i!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g[)n%i)p.i:`:t:xQ)p%jQ.i)qQ:`%nQ:t:aR:x:uQ!vUR'Y!vS!OO!TU%]!O%_)iQ%_!PR)i%b#rYOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hh!yY!|#U$`'a'n(d,q-R9s9|:gQ!|[b#Ub#Q$y'l(b)S)U*Z-t!h$`o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ'a!}Q'n#ZQ(d$aQ,q'oQ-R(e!W9s!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ9|9tR:g9}Q-U(gR1p-UQ1t-[R5Z1tQ,c'bQ,f'cQ,h'dW1`,c,f,h5UR5U1_Q/d*fS3c/d3fR3f/gfbO!O!P!T$y%_%b)S)U)i-tp#Wb'}(y.j/b/t/{0Y0g1h5y6a6q6v7U7^Q'}#zS(y$v-oQ.j)sW/b*f/d/g3fQ/t*vQ/{*wQ0Y+QQ0g+ZQ1h,sQ5y2sQ6q3wQ6v3|Q7U4ZR7^4hQ,t(OQ1g,rT1j,t1gS(X$Q([Q(^$VU,x(X(^,}R,}(`Q(s$mR-h(sQ-p)OR2P-pQ3n/mQ3q/nT6j3n3qQ)S$yS-r)S-tR-t)UQ4`0aR7Y4``0t+^+_+`+a+d/q/r7OR4q0tQ8i6zR9Z8iQ4S0TR6}4SQ3x/wQ6n3tT6s3x6nQ3}/|Q6t3zU6y3}6t8eR8e6uQ4[0]Q7Q4VT7W4[7QhzOb!O!P!T$y%_%b)S)U)i-tQ$|xW%Zz$|%f)v$b%f!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR)v%nS4i0i0nS7]4f4gT7b4i7]W&z!q%X&|1PS+r&z+zR+z'PQ1Q+wR4z1QU1[,S,T,UR5R1[S3S/Q7OR6U3SQ2t.mQ5x2pT5}2t5xQ.z)zR3O.z^_O!O!P!T%_%b)iY#Xb$y)S)U-t$l#_fgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!h$io!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'j#Q'lQ-P(bR/V*Z&v!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!{Y[#U#Z9s9tW&{!q%X&|1P['`!|!}'n'o9|9}S(c$`$aS+t&z'PU,X'a,q:gS-Q(d(eQ1T+zR1n-RS%t!Q&oQ&q!nQ(V$OQ(w$uS)w%o.pQ)z%pQ)}%qS*]&P&rQ+e&pQ,S']Q-d(qQ.l)sU.w)x)y2vS/O*O*PQ/P*RQ/T*VQ/W*[Q/]*^Q/`*eQ/l*nQ/|*wS0S*x4RQ0a+UQ0c+VQ0y+hQ0{+oQ1X+}Q1{-iQ2T-vQ2`.UQ2i.`Q2z.tQ2|.xQ2}.yQ3X/ZQ3Y/[S3z/{/}Q4^0`Q4l0rQ4s0wQ4x1OQ4}1YQ5O1ZQ5_1yQ5n2aQ5r2hQ5u2jQ5w2mQ5{2sQ6V3VQ6o3uQ6u3{Q6w3|Q7P4UQ7X4_Q7[4eQ7d4tQ7n5`Q7p5dQ7|5vQ8P6RQ8S6YQ8c6pS8f6v6xQ8o7cQ8w7rR9X8g$^%m!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)j%nQ*T%yR*W%{$y%h!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x'pWOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$x%g!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x_&y!q%X&z&|'P+z1PR,V']$zrOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!j$]o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ,T']R5P1Z_}O!O!P!T%_%b)i^|O!O!P!T%_%b)iQ#YbX)R$y)S)U-tbhO!O!T3_6]8W8X9U9hS#`f9uQ#dgQ$PiQ$QlQ$VmQ$spW%^!P%_%b)iU&S!Y!`*iQ&W!ZQ&X![Q&]!_Q'q#eQ'r#oS's#p:QQ't#qQ'u#rQ'v#sQ'w#tQ'x#uQ'y#vQ'z#wQ'{#xQ'|#yQ(O#zQ(U#}Q([$TQ(`$WQ*b&YQ*c&[Q,r'}Q,w(WQ,y(YQ-n(|Q/k*lQ0z+nQ1i,sQ1l,zQ1}-mQ3P.}Q3[/^Q4w0}Q5V1hQ5a1|Q6^3aQ6d3hQ6e3kQ7R4WQ7e4vQ7h4|Q7s5gQ7y5tQ8j7SQ8q7gQ8{7{Q9[8kQ9b8|Q:[9wQ:]9xQ:c9zQ:d9{Q:h:OQ:i:PQ:j:RQ:k:SQ:l:TQ:m:UQ:n:VQ:o:WQ:p:XQ:q:YQ:r:ZQ:v:eQ:w:fR:{9v^tO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6[3_Q8V6]Q9R8WQ9T8XQ9g9UR9m9hQ&V!YQ&^!`R/h*iQ$joQ&a!cQ&t!pU(g$e$g(jS(n$h0eQ(u$qQ(v$rQ*`&UQ*m&bQ+p&uQ-S(fS-b(o4cQ-c(pQ-e(rW/a*f/d/g3fQ/j*kW0f+Z0g4h7^Q1o-TQ1z-gQ3b/bQ4k0mQ5X1rQ7l5[Q8Z6aR8t7m!h$_o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mR-P(b'qXOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$zqOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$fo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&d^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!zY[$`$a9s9t['_!|!}(d(e9|9}W)o%i%j:`:aU,W'a-R:gW.h)p)q:t:uT2o.i:xQ(i$eQ(m$gR-W(jV(h$e$g(jR-^(kR-](k$znOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$ko!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'g#O'pj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ,m'jQ.u)uR8_6f`,b'b'c'd,c,f,h1_5UQ1e,lX3l/m/n3n3qj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ7j5TR8s7k^uO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6Z3_Q8U6]Q9Q8WQ9S8XQ9f9UR9l9hR(Q#zR(P#zQ$SlR(]$TR$ooR$noR)Q$vR)P$vQ)O$vR2O-ohwOb!O!P!T$y%_%b)S)U)i-t$l!lz!Q!n$O$u$|%f%n%o%p%q%y%{&P&o&p&r'](q)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR${xR0b+UR0W*xR0U*xR6{4PR/y*vR/x*vR0P*wR0O*wR0_+QR0^+Q%XyObxz!O!P!Q!T!n$O$u$y$|%_%b%f%n%o%p%q%y%{&P&o&p&r'](q)S)U)i)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-t-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR0k+ZR0j+ZQ'R!qQ)c%XQ+w&|R4y1PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",nodeNames:"⚠ | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",maxTerm:359,nodeProps:[["group",-42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],["openedBy",9,"[",38,"{",47,"("],["closedBy",12,"]",39,"}",45,")"]],propSources:[c],skippedNodes:[0,6,7,240],repeatNodeCount:32,tokenData:"$%h_R!XOX$nXY5gYZ6iZ]$n]^5g^p$npq5gqr7Xrs9cst:Rtu;Tuv>vvwAQwxCbxy!+Tyz!,Vz{!-X{|!/_|}!0g}!O!1i!O!P!3v!P!Q!8[!Q!R!Bw!R![!Dr![!]#+q!]!^#-{!^!_#.}!_!`#1b!`!a#3o!a!b#6S!b!c#7U!c!}#8W!}#O#:T#O#P#;V#P#Q#Cb#Q#R#Dd#R#S#8W#S#T$n#T#U#8W#U#V#El#V#f#8W#f#g#Ic#g#o#8W#o#p$ S#p#q$!U#q#r$$f#r${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nU$u]'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU%uV'_Q'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&aV'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&yVOz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'`S'cVOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S'{UOz'`{!P'`!P!Q(_!Q;'S'`;'S;=`*m<%lO'`S(bUOz(t{!P(t!P!Q(_!Q;'S(t;'S;=`*a<%lO(tS(wVOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^S)eV'PS'OSOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^S)}UOz(tz{)z{!P(t!Q;'S(t;'S;=`*a<%lO(tS*dP;=`<%l(tS*jP;=`<%l)^S*pP;=`<%l'`S*vP;=`<%l&[S+OO'PSU+T]'_QOY+|YZ-xZr+|rs'`sz+|z{+O{!P+|!P!Q4y!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|U,R]'_QOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU-P]'_QOY+|YZ-xZr+|rs'`sz+|z{.d{!P+|!P!Q/Z!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|U-}V'_QOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[Q.iV'_QOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.dQ/TO'_QQ/WP;=`<%l.dU/`]'_QOY0XYZ3uZr0Xrs(tsz0Xz{.d{!P0X!P!Q/Z!Q#O0X#O#P(t#P;'S0X;'S;=`4a<%lO0XU0^]'_QOY1VYZ2XZr1Vrs)^sz1Vz{2w{!P1V!P!Q/Z!Q#O1V#O#P)^#P;'S1V;'S;=`4g<%lO1VU1`]'_Q'PS'OSOY1VYZ2XZr1Vrs)^sz1Vz{2w{!P1V!P!Q/Z!Q#O1V#O#P)^#P;'S1V;'S;=`4g<%lO1VU2bV'_Q'PS'OSOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^U2|]'_QOY0XYZ3uZr0Xrs(tsz0Xz{2w{!P0X!P!Q.d!Q#O0X#O#P(t#P;'S0X;'S;=`4a<%lO0XU3zV'_QOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^U4dP;=`<%l0XU4jP;=`<%l1VU4pP;=`<%l+|U4vP;=`<%l$nU5QV'_Q'PSOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.d_5p]'_Q&|X'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_6rV'_Q&|X'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_7b_ZX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`8a!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_8j]#PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_9lV']Q'OS'^XOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_:[]'QX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_;^i'_Q'vW'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!c$n!c!}<{!}#O$n#O#P&[#P#R$n#R#S<{#S#T$n#T#o<{#o${$n${$|<{$|4w$n4w5b<{5b5i$n5i6S<{6S;'S$n;'S;=`4s<%lO$n_=Uj'_Q_X'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![<{![!c$n!c!}<{!}#O$n#O#P&[#P#R$n#R#S<{#S#T$n#T#o<{#o${$n${$|<{$|4w$n4w5b<{5b5i$n5i6S<{6S;'S$n;'S;=`4s<%lO$n_?P_(TP'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_@X]#OX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_AZa!qX'_Q'OSOY$nYZ%nZr$nrs&[sv$nvwB`wz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Bi]'}X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Cik'_Q'OSOYE^YZGfZrE^rsHvswE^wxFdxzE^z{Ih{!PE^!P!QKl!Q!cE^!c!}Lp!}#OE^#O#P!!l#P#RE^#R#SLp#S#TE^#T#oLp#o${E^${$|Lp$|4wE^4w5bLp5b5iE^5i6SLp6S;'SE^;'S;=`!*}<%lOE^_Ee_'_Q'OSOY$nYZ%nZr$nrs&[sw$nwxFdxz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Fm]'_Q'OSsXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_GmX'_Q'OSOw&[wxHYxz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]HaV'OSsXOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]H{X'OSOw&[wxHYxz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_Im_'_QOY+|YZ-xZr+|rs'`sw+|wxJlxz+|z{+O{!P+|!P!Q4y!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_Js]'_QsXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Kq_'_QOY+|YZ-xZr+|rs'`sw+|wxJlxz+|z{.d{!P+|!P!Q/Z!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_Lyl'_Q'OS'ZXOY$nYZ%nZr$nrs&[sw$nwxFdxz$nz{+O{!P$n!P!Q,z!Q![Nq![!c$n!c!}Nq!}#O$n#O#P&[#P#R$n#R#SNq#S#T$n#T#oNq#o${$n${$|Nq$|4w$n4w5bNq5b5i$n5i6SNq6S;'S$n;'S;=`4s<%lO$n_Nzj'_Q'OS'ZXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![Nq![!c$n!c!}Nq!}#O$n#O#P&[#P#R$n#R#SNq#S#T$n#T#oNq#o${$n${$|Nq$|4w$n4w5bNq5b5i$n5i6SNq6S;'S$n;'S;=`4s<%lO$n]!!qZ'OSOzHvz{!#d{!PHv!P!Q!$n!Q#iHv#i#j!%Z#j#lHv#l#m!'V#m;'SHv;'S;=`!*w<%lOHv]!#gXOw'`wx!$Sxz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'`]!$XVsXOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]!$qWOw'`wx!$Sxz'`{!P'`!P!Q(_!Q;'S'`;'S;=`*m<%lO'`]!%`^'OSOz&[z{&v{!P&[!P!Q'x!Q![!&[![!c&[!c!i!&[!i#T&[#T#Z!&[#Z#o&[#o#p!({#p;'S&[;'S;=`*s<%lO&[]!&a['OSOz&[z{&v{!P&[!P!Q'x!Q![!'V![!c&[!c!i!'V!i#T&[#T#Z!'V#Z;'S&[;'S;=`*s<%lO&[]!'[['OSOz&[z{&v{!P&[!P!Q'x!Q![!(Q![!c&[!c!i!(Q!i#T&[#T#Z!(Q#Z;'S&[;'S;=`*s<%lO&[]!(V['OSOz&[z{&v{!P&[!P!Q'x!Q![Hv![!c&[!c!iHv!i#T&[#T#ZHv#Z;'S&[;'S;=`*s<%lO&[]!)Q['OSOz&[z{&v{!P&[!P!Q'x!Q![!)v![!c&[!c!i!)v!i#T&[#T#Z!)v#Z;'S&[;'S;=`*s<%lO&[]!){^'OSOz&[z{&v{!P&[!P!Q'x!Q![!)v![!c&[!c!i!)v!i#T&[#T#Z!)v#Z#q&[#q#rHv#r;'S&[;'S;=`*s<%lO&[]!*zP;=`<%lHv_!+QP;=`<%lE^_!+^]}X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!,`]!PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!-`_(QX'_QOY+|YZ-xZr+|rs'`sz+|z{+O{!P+|!P!Q4y!Q!_+|!_!`!._!`#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_!.f]#OX'_QOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!/h_(PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!0p]!eX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!1r`'gX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`!a!2t!a#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!2}]#QX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!4P^(OX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!O$n!O!P!4{!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!5U`!lX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!O$n!O!P!6W!P!Q,z!Q!_$n!_!`!7Y!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!6a]!tX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nV!7c]'qP'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!8c_'_Q'xXOY+|YZ-xZr+|rs'`sz+|z{!9b{!P+|!P!Q!:O!Q!_+|!_!`!._!`#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_!9iV&}]'_QOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.d_!:V]'_QUXOY!;OYZ3uZr!;Ors!>jsz!;Oz{!Aq{!P!;O!P!Q!:O!Q#O!;O#O#P!>j#P;'S!;O;'S;=`!Bk<%lO!;O_!;V]'_QUXOY!jYZ(tZz!>jz{!=x{!P!>j!P!Q!?|!Q;'S!>j;'S;=`!@e<%lO!>j]!>oXUXOY!=SYZ)^Zz!=Sz{!=x{!P!=S!P!Q!?[!Q;'S!=S;'S;=`!@k<%lO!=S]!?aXUXOY!>jYZ(tZz!>jz{!?|{!P!>j!P!Q!?[!Q;'S!>j;'S;=`!@e<%lO!>jX!@RSUXOY!?|Z;'S!?|;'S;=`!@_<%lO!?|X!@bP;=`<%l!?|]!@hP;=`<%l!>j]!@nP;=`<%l!=S_!@x]'_QUXOY!;OYZ3uZr!;Ors!>jsz!;Oz{!@q{!P!;O!P!Q!Aq!Q#O!;O#O#P!>j#P;'S!;O;'S;=`!Bk<%lO!;OZ!AxX'_QUXOY!AqYZ/OZr!Aqrs!?|s#O!Aq#O#P!?|#P;'S!Aq;'S;=`!Be<%lO!AqZ!BhP;=`<%l!Aq_!BnP;=`<%l!;O_!BtP;=`<%l!o![!c&[!c!i#>o!i#T&[#T#Z#>o#Z#o&[#o#p#A`#p;'S&[;'S;=`*s<%lO&[U#>t['OSOz&[z{&v{!P&[!P!Q'x!Q![#?j![!c&[!c!i#?j!i#T&[#T#Z#?j#Z;'S&[;'S;=`*s<%lO&[U#?o['OSOz&[z{&v{!P&[!P!Q'x!Q![#@e![!c&[!c!i#@e!i#T&[#T#Z#@e#Z;'S&[;'S;=`*s<%lO&[U#@j['OSOz&[z{&v{!P&[!P!Q'x!Q![#;}![!c&[!c!i#;}!i#T&[#T#Z#;}#Z;'S&[;'S;=`*s<%lO&[U#Ae['OSOz&[z{&v{!P&[!P!Q'x!Q![#BZ![!c&[!c!i#BZ!i#T&[#T#Z#BZ#Z;'S&[;'S;=`*s<%lO&[U#B`^'OSOz&[z{&v{!P&[!P!Q'x!Q![#BZ![!c&[!c!i#BZ!i#T&[#T#Z#BZ#Z#q&[#q#r#;}#r;'S&[;'S;=`*s<%lO&[U#C_P;=`<%l#;}_#Ck]XX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_#Dm_'{X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_#Ewl'_Q'OS!yW'TPOY$nYZ%nZr$nrs#Gosw$nwx#H]xz$nz{+O{!P$n!P!Q,z!Q![#8W![!c$n!c!}#8W!}#O$n#O#P&[#P#R$n#R#S#8W#S#T$n#T#o#8W#o${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$n]#GvV'OS'^XOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_#Hd_'_Q'OSOYE^YZGfZrE^rsHvswE^wxFdxzE^z{Ih{!PE^!P!QKl!Q#OE^#O#P!!l#P;'SE^;'S;=`!*}<%lOE^_#Ink'_Q'OS!yW'TPOY$nYZ%nZr$nrs&[st#Kctz$nz{+O{!P$n!P!Q,z!Q![#8W![!c$n!c!}#8W!}#O$n#O#P&[#P#R$n#R#S#8W#S#T$n#T#o#8W#o${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nV#Kji'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!c$n!c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$nV#Mbj'_Q'OS'TPOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![#MX![!c$n!c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$n_$ ]]wX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$!_a'rX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P#p$n#p#q$#d#q;'S$n;'S;=`4s<%lO$n_$#m]'|X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$$o]vX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n",tokenizers:[l,u,s,0,1,2,3],topRules:{SourceFile:[0,8]},specialized:[{term:281,get:e=>d[e]||-1}],tokenPrec:15596});var h=n(72107);const p=h.qp.define({name:"rust",parser:f.configure({props:[h.uj.add({IfExpression:(0,h.tC)({except:/^\s*({|else\b)/}),"String BlockComment":()=>null,AttributeItem:e=>e.continue(),"Statement MatchArm":(0,h.tC)()}),h.x0.add((e=>/(Block|edTokens|List)$/.test(e.name)?h.Dv:"BlockComment"==e.name?e=>({from:e.from+2,to:e.to-2}):void 0))]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});function m(){return new h.ri(p)}},46764:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Cassandra:()=>G,MSSQL:()=>Y,MariaSQL:()=>V,MySQL:()=>B,PLSQL:()=>H,PostgreSQL:()=>F,SQLDialect:()=>D,SQLite:()=>Z,StandardSQL:()=>L,keywordCompletion:()=>I,keywordCompletionSource:()=>M,schemaCompletion:()=>W,schemaCompletionSource:()=>z,sql:()=>N});var r=n(72107),i=n(7778),o=n(64963),a=n(71170);const s=20,l=21;function u(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function c(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r)return void e.advance();r=n&&!r&&92==e.next,e.advance()}}function d(e,t){for(;95==e.next||u(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function f(e,t){for(;48==e.next||49==e.next;)e.advance();t&&e.next==t&&e.advance()}function h(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),43!=e.next&&45!=e.next||e.advance();e.next>=48&&e.next<=57;)e.advance()}function p(e){for(;!(e.next<0||10==e.next);)e.advance()}function m(e,t){for(let n=0;n!=&|~^/",specialVar:"?",identifierQuotes:'"',words:v(y,O)};function w(e){return new o.Jq((t=>{var n;let{next:r}=t;if(t.advance(),m(r,g)){for(;m(t.next,g);)t.advance();t.acceptToken(36)}else if(36==r&&36==t.next&&e.doubleDollarQuotedStrings)!function(e){for(;;){if(e.next<0||e.peek(1)<0)return;if(36==e.next&&36==e.peek(1))return void e.advance(2);e.advance()}}(t),t.acceptToken(3);else if(39==r||34==r&&e.doubleQuotedStrings)c(t,r,e.backslashEscapes),t.acceptToken(3);else if(35==r&&e.hashComments||47==r&&47==t.next&&e.slashComments)p(t),t.acceptToken(1);else if(45!=r||45!=t.next||e.spaceAfterDashes&&32!=t.peek(1))if(47==r&&42==t.next){t.advance();for(let e=1;;){let n=t.next;if(t.next<0)break;if(t.advance(),42==n&&47==t.next){if(e--,t.advance(),!e)break}else 47==n&&42==t.next&&(e++,t.advance())}t.acceptToken(2)}else if(101!=r&&69!=r||39!=t.next)if(110!=r&&78!=r||39!=t.next||!e.charSetCasts)if(95==r&&e.charSetCasts)for(let n=0;;n++){if(39==t.next&&n>1){t.advance(),c(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!u(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(113==r||81==r)&&39==t.next&&t.peek(1)>0&&!m(t.peek(1),g)){let e=t.peek(1);t.advance(2),function(e,t){let n="[{<(".indexOf(String.fromCharCode(t)),r=n<0?t:"]}>)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==r&&39==e.peek(1))return void e.advance(2);e.advance()}}(t,e),t.acceptToken(3)}else if(40==r)t.acceptToken(7);else if(41==r)t.acceptToken(8);else if(123==r)t.acceptToken(9);else if(125==r)t.acceptToken(10);else if(91==r)t.acceptToken(11);else if(93==r)t.acceptToken(12);else if(59==r)t.acceptToken(13);else if(e.unquotedBitLiterals&&48==r&&98==t.next)t.advance(),f(t),t.acceptToken(22);else if(98!=r&&66!=r||39!=t.next&&34!=t.next){if(48==r&&(120==t.next||88==t.next)||(120==r||88==r)&&39==t.next){let e=39==t.next;for(t.advance();(i=t.next)>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==r&&t.next>=48&&t.next<=57)h(t,!0),t.acceptToken(4);else if(46==r)t.acceptToken(14);else if(r>=48&&r<=57)h(t,!1),t.acceptToken(4);else if(m(r,e.operatorChars)){for(;m(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(m(r,e.specialVar))t.next==r&&t.advance(),function(e){if(39==e.next||34==e.next||96==e.next){let t=e.next;e.advance(),c(e,t,!1)}else d(e)}(t),t.acceptToken(17);else if(m(r,e.identifierQuotes))c(t,r,!1),t.acceptToken(19);else if(58==r||44==r)t.acceptToken(16);else if(u(r)){let i=d(t,String.fromCharCode(r));t.acceptToken(46==t.next?18:null!==(n=e.words[i.toLowerCase()])&&void 0!==n?n:18)}}else{const n=t.next;t.advance(),e.treatBitsAsBytes?(c(t,n,e.backslashEscapes),t.acceptToken(23)):(f(t,n),t.acceptToken(22))}else t.advance(),c(t,39,e.backslashEscapes),t.acceptToken(3);else t.advance(),c(t,39,!0);else p(t),t.acceptToken(1);var i}))}const k=w(b),x=o.WQ.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,k],topRules:{Script:[0,25]},tokenPrec:0});function _(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function S(e,t){let n=e.sliceString(t.from,t.to),r=/^([`'"])(.*)\1$/.exec(n);return r?r[2]:n}function P(e){return e&&("Identifier"==e.name||"QuotedIdentifier"==e.name)}function E(e,t){if("CompositeIdentifier"==t.name){let n=[];for(let r=t.firstChild;r;r=r.nextSibling)P(r)&&n.push(S(e,r));return n}return[S(e,t)]}function C(e,t){for(let n=[];;){if(!t||"."!=t.name)return n;let r=_(t);if(!P(r))return n;n.unshift(S(e,r)),t=_(r)}}const T=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" ")),$=/^\w*$/,Q=/^[`'"]?\w*[`'"]?$/;class R{constructor(){this.list=[],this.children=void 0}child(e,t){let n=this.children||(this.children=Object.create(null));return n[e]||(e&&this.list.push(A(e,"type",t)),n[e]=new R)}addCompletions(e){for(let t of e){let e=this.list.findIndex((e=>e.label==t.label));e>-1?this.list[e]=t:this.list.push(t)}}}function A(e,t,n){return/[^\w\xb5-\uffff]/.test(e)?{label:e,type:t,apply:n+e+n}:{label:e,type:t}}let j=x.configure({props:[r.uj.add({Statement:(0,r.tC)()}),r.x0.add({Statement:e=>({from:e.firstChild.to,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,i.Gv)({Keyword:i.pJ.keyword,Type:i.pJ.typeName,Builtin:i.pJ.standard(i.pJ.name),Bits:i.pJ.number,Bytes:i.pJ.string,Bool:i.pJ.bool,Null:i.pJ.null,Number:i.pJ.number,String:i.pJ.string,Identifier:i.pJ.name,QuotedIdentifier:i.pJ.special(i.pJ.string),SpecialVar:i.pJ.special(i.pJ.name),LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Operator:i.pJ.operator,"Semi Punctuation":i.pJ.punctuation,"( )":i.pJ.paren,"{ }":i.pJ.brace,"[ ]":i.pJ.squareBracket})]});class D{constructor(e,t,n){this.dialect=e,this.language=t,this.spec=n}get extension(){return this.language.extension}static define(e){let t=function(e,t,n,r){let i={};for(let t in b)i[t]=(e.hasOwnProperty(t)?e:b)[t];return t&&(i.words=v(t,n||"",r)),i}(e,e.keywords,e.types,e.builtin),n=r.qp.define({name:"sql",parser:j.configure({tokenizers:[{from:k,to:w(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new D(t,n,e)}}function M(e,t=!1){return function(e,t){let n=Object.keys(e).map((n=>({label:t?n.toUpperCase():n,type:e[n]==l?"type":e[n]==s?"keyword":"variable",boost:-1})));return(0,a.eC)(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],(0,a.Mb)(n))}(e.dialect.words,t)}function I(e,t=!1){return e.language.data.of({autocomplete:M(e,t)})}function z(e){return e.schema?function(e,t,n,i,o,a){var s;let l=new R,u=(null===(s=null==a?void 0:a.spec.identifierQuotes)||void 0===s?void 0:s[0])||'"',c=l.child(o||"",u);for(let t in e){let n=t.replace(/\\?\./g,(e=>"."==e?"\0":e)).split("\0"),r=1==n.length?c:l;for(let e of n)r=r.child(e.replace(/\\\./g,"."),u);for(let n of e[t])n&&r.list.push("string"==typeof n?A(n,"property",u):n)}return t&&c.addCompletions(t),n&&l.addCompletions(n),l.addCompletions(c.list),i&&l.addCompletions(c.child(i,u).list),e=>{let{parents:t,from:n,quoted:o,empty:a,aliases:s}=function(e,t){let n=(0,r.qz)(e).resolveInner(t,-1),i=function(e,t){let n;for(let e=t;!n;e=e.parent){if(!e)return null;"Statement"==e.name&&(n=e)}let r=null;for(let t=n.firstChild,i=!1,o=null;t;t=t.nextSibling){let n="Keyword"==t.name?e.sliceString(t.from,t.to).toLowerCase():null,a=null;if(i)if("as"==n&&o&&P(t.nextSibling))a=S(e,t.nextSibling);else{if(n&&T.has(n))break;o&&P(t)&&(a=S(e,t))}else i="from"==n;a&&(r||(r=Object.create(null)),r[a]=E(e,o)),o=/Identifier$/.test(t.name)?t:null}return r}(e.doc,n);return"Identifier"==n.name||"QuotedIdentifier"==n.name||"Keyword"==n.name?{from:n.from,quoted:"QuotedIdentifier"==n.name?e.doc.sliceString(n.from,n.from+1):null,parents:C(e.doc,_(n)),aliases:i}:"."==n.name?{from:t,quoted:null,parents:C(e.doc,n),aliases:i}:{from:t,quoted:null,parents:[],empty:!0,aliases:i}}(e.state,e.pos);if(a&&!e.explicit)return null;s&&1==t.length&&(t=s[t[0]]||t);let d=l;for(let e of t){for(;!d.children||!d.children[e];)if(d==l)d=c;else{if(d!=c||!i)return null;d=d.child(i,u)}d=d.child(e,u)}let f=o&&e.state.sliceDoc(e.pos,e.pos+1)==o,h=d.list;return d==l&&s&&(h=h.concat(Object.keys(s).map((e=>({label:e,type:"constant"}))))),{from:n,to:f?e.pos+1:void 0,options:(p=o,m=h,p?m.map((e=>Object.assign(Object.assign({},e),{label:p+e.label+p,apply:void 0}))):m),validFor:o?Q:$};var p,m}}(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||L):()=>null}function W(e){return e.schema?(e.dialect||L).language.data.of({autocomplete:z(e)}):[]}function N(e={}){let t=e.dialect||L;return new r.ri(t.language,[W(e),I(t,!!e.upperCaseKeywords)])}const L=D.define({}),F=D.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:y+"a abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom c cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion g generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull k key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower m mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner p parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time t table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:O+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),U="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",X=O+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",q="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",B=D.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:y+"group_concat "+U,types:X,builtin:q}),V=D.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:y+"always generated groupby_concat hard persistent shutdown soft virtual "+U,types:X,builtin:q}),Y=D.define({keywords:y+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:O+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"}),Z=D.define({keywords:y+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:O+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),G=D.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:O+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),H=D.define({keywords:y+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:O+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0})},967:(e,t,n)=>{"use strict";n.r(t),n.d(t,{wast:()=>u,wastLanguage:()=>l});var r=n(72107),i=n(7778),o=n(64963);const a={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},s=o.WQ.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"/Q~R^XY}YZ}]^}pq}rs!Stu!qxy&Vyz'S{|'X}!O'X!Q!R'b!R![)_!]!^,{#T#o-^~!SO_~~!VTOr!Srs!fs#O!S#O#P!k#P~!S~!kOZ~~!nPO~!S~!tiqr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~$hiV~qr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~&[PT~!]!^&_~&bRO!]&_!]!^&k!^~&_~&nTOy&_yz&}z!]&_!]!^&k!^~&_~'SOQ~~'XOS~~'[Q!Q!R'b!R![)_~'gUY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j#l#m)y~(ORY~!Q![(X!g!h(j#X#Y(j~(^SY~!Q![(X!g!h(j#R#S)X#X#Y(j~(mR{|(v}!O(v!Q![(|~(yP!Q![(|~)RQY~!Q![(|#R#S(v~)[P!Q![(X~)dTY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j~)vP!Q![)_~)|R!Q![*V!c!i*V#T#Z*V~*[VY~!O!P*q!Q![*V!c!i*V!r!s+n#R#S)y#T#Z*V#d#e+n~*vTY~!Q![+V!c!i+V!r!s+n#T#Z+V#d#e+n~+[UY~!Q![+V!c!i+V!r!s+n#R#S,o#T#Z+V#d#e+n~+qT{|,Q}!O,Q!Q![,^!c!i,^#T#Z,^~,TR!Q![,^!c!i,^#T#Z,^~,cSY~!Q![,^!c!i,^#R#S,Q#T#Z,^~,rR!Q![+V!c!i+V#T#Z+V~-OP!]!^-R~-WQP~OY-RZ~-R~-ciX~qr-^st-^tu-^uv-^vw-^wx-^z{-^{|-^}!O-^!O!P-^!P!Q-^!Q![-^![!]-^!^!_-^!_!`-^!`!a-^!a!b-^!b!c-^!c!}-^#Q#R-^#R#S-^#S#T-^#T#o-^#p#q-^#r#s-^",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:e=>a[e]||-1}],tokenPrec:0}),l=r.qp.define({name:"wast",parser:s.configure({props:[r.uj.add({App:(0,r.vw)({closing:")",align:!1})}),r.x0.add({App:r.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,i.Gv)({Keyword:i.pJ.keyword,Type:i.pJ.typeName,Number:i.pJ.number,String:i.pJ.string,Identifier:i.pJ.variableName,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,"( )":i.pJ.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function u(){return new r.ri(l)}},47152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{completeFromSchema:()=>E,xml:()=>T,xmlLanguage:()=>C});var r=n(64963),i=n(7778);function o(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let a=null,s=null,l=0;function u(e,t){let n=e.pos+t;if(s==e&&l==n)return a;for(;9==(r=e.peek(t))||10==r||13==r||32==r;)t++;var r;let i="";for(;;){let n=e.peek(t);if(!o(n))break;i+=String.fromCharCode(n),t++}return s=e,l=n,a=i||null}function c(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t1==t?new c(u(r,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 1==i||13==i?new c(u(r,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),f=new r.Jq(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let n=u(e,0);if(!n)return e.acceptToken(5);if(t.context&&n==t.context.name)return e.acceptToken(2);for(let r=t.context;r;r=r.parent)if(r.name==n)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{contextual:!0});function h(e,t){return new r.Jq((n=>{for(let r=0,i=0;;i++){if(n.next<0){i&&n.acceptToken(e);break}if(n.next==t.charCodeAt(r)){if(r++,r==t.length){i>=t.length&&n.acceptToken(e,1-t.length);break}}else r=n.next==t.charCodeAt(0)?1:0;n.advance()}}))}const p=h(35,"--\x3e"),m=h(36,"?>"),g=h(37,"]]>"),v=(0,i.Gv)({Text:i.pJ.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":i.pJ.angleBracket,TagName:i.pJ.tagName,"MismatchedCloseTag/Tagname":[i.pJ.tagName,i.pJ.invalid],AttributeName:i.pJ.attributeName,AttributeValue:i.pJ.attributeValue,Is:i.pJ.definitionOperator,"EntityReference CharacterReference":i.pJ.character,Comment:i.pJ.blockComment,ProcessingInst:i.pJ.processingInstruction,DoctypeDecl:i.pJ.documentMeta,Cdata:i.pJ.special(i.pJ.string)}),O=r.WQ.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<`#X;'S%y;'S;=`&_<%lO%yX>eV{WOr%ysv%yw#T%y#T#U>z#U;'S%y;'S;=`&_<%lO%yX?PV{WOr%ysv%yw#h%y#h#i?f#i;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#T%y#T#U",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const _=/^[:\-\.\w\u00b7-\uffff]*$/;function S(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function P(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function E(e,t){let n=[],r=[],i=Object.create(null);for(let e of t){let t=S(e);n.push(t),e.global&&r.push(t),e.values&&(i[e.name]=e.values.map(P))}let o=[],a=[],s=Object.create(null);for(let t of e){let e=r,l=i;t.attributes&&(e=e.concat(t.attributes.map((e=>"string"==typeof e?n.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(l==i&&(l=Object.create(l)),l[e.name]=e.values.map(P)),S(e))))));let u=new x(t,e,l);s[u.name]=u,o.push(u),t.top&&a.push(u)}a.length||(a=o);for(let t=0;t{var t;let{doc:n}=e.state,l=function(e,t){var n;let r=(0,y.qz)(e).resolveInner(t,-1),i=null;for(let e=r;!i&&e.parent;e=e.parent)"OpenTag"!=e.name&&"CloseTag"!=e.name&&"SelfClosingTag"!=e.name&&"MismatchedCloseTag"!=e.name||(i=e);if(i&&(i.to>t||i.lastChild.type.isError)){let e=i.parent;if("TagName"==r.name)return"CloseTag"==i.name||"MismatchedCloseTag"==i.name?{type:"closeTag",from:r.from,context:e}:{type:"openTag",from:r.from,context:k(e)};if("AttributeName"==r.name)return{type:"attrName",from:r.from,context:i};if("AttributeValue"==r.name)return{type:"attrValue",from:r.from,context:i};let n=r==i||"Attribute"==r.name?r.childBefore(t):r;return"StartTag"==(null==n?void 0:n.name)?{type:"openTag",from:t,context:k(e)}:"StartCloseTag"==(null==n?void 0:n.name)&&n.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null==n?void 0:n.name)?{type:"attrValue",from:t,context:i}:n?{type:"attrName",from:t,context:i}:null}if("StartCloseTag"==r.name)return{type:"closeTag",from:t,context:r.parent};for(;r.parent&&r.to==t&&!(null===(n=r.lastChild)||void 0===n?void 0:n.type.isError);)r=r.parent;return"Element"==r.name||"Text"==r.name||"Document"==r.name?{type:"tag",from:t,context:"Element"==r.name?r:k(r)}:null}(e.state,e.pos);if(!l||"tag"==l.type&&!e.explicit)return null;let{type:u,from:c,context:d}=l;if("openTag"==u){let e=a,t=w(n,d);if(t){let n=s[t];e=(null==n?void 0:n.children)||o}return{from:c,options:e.map((e=>e.completion)),validFor:_}}if("closeTag"==u){let r=w(n,d);return r?{from:c,to:e.pos+(">"==n.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=s[r])||void 0===t?void 0:t.closeNameCompletion)||{label:r+">",type:"type"}],validFor:_}:null}if("attrName"==u){let e=s[b(n,d)];return{from:c,options:(null==e?void 0:e.attrs)||r,validFor:_}}if("attrValue"==u){let t=function(e,t,n){let r=t&&t.getChildren("Attribute").find((e=>e.from<=n&&e.to>=n)),i=r&&r.getChild("AttributeName");return i?e.sliceString(i.from,i.to):""}(n,d,c);if(!t)return null;let r=s[b(n,d)],o=((null==r?void 0:r.attrValues)||i)[t];return o&&o.length?{from:c,to:e.pos+('"'==n.sliceString(e.pos,e.pos+1)?1:0),options:o,validFor:/^"[^"]*"?$/}:null}if("tag"==u){let t=w(n,d),r=s[t],i=[],l=d&&d.lastChild;!t||l&&"CloseTag"==l.name&&b(n,l)==t||i.push(r?r.closeCompletion:{label:"",type:"type",boost:2});let u=i.concat(((null==r?void 0:r.children)||(d?o:a)).map((e=>e.openCompletion)));if(d&&(null==r?void 0:r.text.length)){let t=d.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(u=u.concat(r.text))}return{from:c,options:u,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const C=y.qp.define({name:"xml",parser:O.configure({props:[y.uj.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),y.x0.add({Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),y.a0.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function T(e={}){return new y.ri(C,C.data.of({autocomplete:E(e.elements||[],e.attributes||[])}))}},72107:(e,t,n)=>{"use strict";n.d(t,{Be:()=>O,Dv:()=>V,Gn:()=>R,K0:()=>Q,KC:()=>d,Qf:()=>ge,R_:()=>xe,SQ:()=>f,SS:()=>$,Um:()=>Me,a0:()=>Ae,c:()=>C,c6:()=>P,e7:()=>oe,il:()=>Fe,kU:()=>c,mi:()=>pe,n$:()=>Re,nF:()=>be,nY:()=>X,pp:()=>u,qp:()=>p,qz:()=>m,ri:()=>S,rs:()=>q,tC:()=>F,uj:()=>A,vw:()=>W,x0:()=>B,y1:()=>T,ze:()=>L});var r,i=n(54163),o=n(30638),a=n(87283),s=n(7778),l=n(93662);const u=new i.md;function c(e){return o.r$.define({combine:e?t=>t.concat(e):void 0})}const d=new i.md;class f{constructor(e,t,n=[],r=""){this.data=e,this.name=r,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[_.of(this),o.yy.languageData.of(((e,t,n)=>{let r=h(e,t,n),i=r.type.prop(u);if(!i)return[];let o=e.facet(i),a=r.type.prop(d);if(a){let i=r.resolve(t-r.from,n);for(let t of a)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o}))].concat(n)}isActiveAt(e,t,n=-1){return h(e,t,n).type.prop(u)==this.data}findRegions(e){let t=e.facet(_);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(u)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(i.md.mounted);if(o){if(o.tree.prop(u)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}),e.name)}configure(e,t){return new p(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(f.state,!1);return t?t.tree:i.mp.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let v=null;class O{constructor(e,t,n=[],r,i,o,a,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new O(e,t,[],i.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.mp.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=v;v=this;try{return e()}finally{v=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=y(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=i.i9.applyChanges(n,t),r=i.mp.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=y(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i._b{createParse(t,n,r){let o=r[0].from,a=r[r.length-1].to;return{parsedPos:o,advance(){let t=v;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new i.mp(i.Jq.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return v}}function y(e,t,n){return i.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class b{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new b(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=O.create(e.facet(_).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new b(n)}}f.state=o.QQ.define({create:b.init,update(e,t){for(let e of t.effects)if(e.is(f.setState))return e.value;return t.startState.facet(_)!=t.state.facet(_)?b.init(t.state):e.apply(t)}});let w=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(w=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const k="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,x=a.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(f.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(f.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=w(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work((()=>k&&k()||Date.now()>o),r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:f.setState.of(new b(i.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,a.OO)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),_=o.r$.define({combine:e=>e.length?e[0]:null,enables:e=>[f.state,x,a.tk.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class S{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class P{constructor(e,t,n,r,i,o=void 0){this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((e=>this.support=e),(e=>{throw this.loading=null,e})))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new P(e.name,(e.alias||[]).concat(e.name).map((e=>e.toLowerCase())),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let n of e)if(n.filename&&n.filename.test(t))return n;let n=/\.([^.]+)$/.exec(t);if(n)for(let t of e)if(t.extensions.indexOf(n[1])>-1)return t;return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let n of e)if(n.alias.some((e=>e==t)))return n;if(n)for(let n of e)for(let e of n.alias){let r=t.indexOf(e);if(r>-1&&(e.length>2||!/\w/.test(t[r-1])&&!/\w/.test(t[r+e.length])))return n}return null}}const E=o.r$.define(),C=o.r$.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function T(e){let t=e.facet(C);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function $(e,t){let n="",r=e.tabSize,i=e.facet(C)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let e=0;e=t?function(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t!=r.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return j(r,e,n)}(e,n,t):null}class R{constructor(e,t={}){this.state=e,this.options=t,this.unit=T(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,o.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const A=new i.md;function j(e,t,n){for(let r=e;r;r=r.next){let e=D(r.node);if(e)return e(I.create(t,n,r))}return 0}function D(e){let t=e.type.prop(A);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(i.md.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>N(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?M:null}function M(){return 0}class I extends R{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new I(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(z(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return j(this.context.next,this.base,this.pos)}}function z(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function W({closing:e,align:t=!0,units:n=1}){return r=>N(r,t,n,e)}function N(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.frome.baseIndent;function F({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const U=200;function X(){return o.yy.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+U)return e;let o=n.sliceString(i.from,r);if(!t.some((e=>e.test(o))))return e;let{state:a}=e,s=-1,l=[];for(let{head:e}of a.selection.ranges){let t=a.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=Q(a,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=$(a,n);r!=i&&l.push({from:t.from,to:t.from+r.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const q=o.r$.define(),B=new i.md;function V(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(i&&a.from=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function G(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const H=o.Py.define({map:G}),K=o.Py.define({map:G});function J(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const ee=o.QQ.define({create:()=>a.p.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(H)&&!ne(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(se),i=r?a.p.replace({widget:new de(r(t.state,n.value))}):ce;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(K)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{er&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>a.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>e)&&(i={from:e,to:t})})),i}function ne(e,t,n){let r=!1;return e.between(t,t,((e,i)=>{e==t&&i==n&&(r=!0)})),r}function re(e,t){return e.field(ee,!1)?t:t.concat(o.Py.appendConfig.of(le()))}function ie(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return a.tk.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const oe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of J(e)){let n=Z(e.state,t.from,t.to);if(n)return e.dispatch({effects:re(e.state,[H.of(n),ie(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(ee,!1))return!1;let t=[];for(let n of J(e)){let r=te(e.state,n.from,n.to);r&&t.push(K.of(r),ie(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(ee,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(K.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],ae={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},se=o.r$.define({combine:e=>(0,o.BO)(e,ae)});function le(e){let t=[ee,me];return e&&t.push(se.of(e)),t}function ue(e,t){let{state:n}=e,r=n.facet(se),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=te(e.state,n.from,n.to);r&&e.dispatch({effects:K.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const ce=a.p.replace({widget:new class extends a.l9{toDOM(e){return ue(e,null)}}});class de extends a.l9{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ue(e,this.value)}}const fe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class he extends a.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function pe(e={}){let t=Object.assign(Object.assign({},fe),e),n=new he(t,!0),r=new he(t,!1),i=a.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(_)!=e.state.facet(_)||e.startState.field(ee,!1)!=e.state.field(ee,!1)||m(e.startState)!=m(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.f_;for(let i of e.viewportLineBlocks){let o=te(e.state,i.from,i.to)?r:Z(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:s}=t;return[i,(0,a.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||o.Xs.empty},initialSpacer:()=>new he(t,!1),domEventHandlers:Object.assign(Object.assign({},s),{click:(e,t,n)=>{if(s.click&&s.click(e,t,n))return!0;let r=te(e.state,t.from,t.to);if(r)return e.dispatch({effects:K.of(r)}),!0;let i=Z(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:H.of(i)}),!0)}})}),le()]}const me=a.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ge{constructor(e,t){let n;function r(e){let t=l.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof f?e=>e.prop(u)==o.data:o?e=>e==o:void 0,this.style=(0,s.QR)(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new l.V(n):null,this.themeType=t.themeType}static define(e,t){return new ge(e,t||{})}}const ve=o.r$.define(),Oe=o.r$.define({combine:e=>e.length?[e[0]]:null});function ye(e){let t=e.facet(ve);return t.length?t:e.facet(Oe)}function be(e,t){let n,r=[ke];return e instanceof ge&&(e.module&&r.push(a.tk.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(Oe.of(e)):n?r.push(ve.computeN([a.tk.darkTheme],(t=>t.facet(a.tk.darkTheme)==("dark"==n)?[e]:[]))):r.push(ve.of(e)),r}class we{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,ye(e.state))}update(e){let t=m(e.state),n=ye(e.state),r=n!=ye(e.startState);t.length{n.add(e,t,this.markCache[r]||(this.markCache[r]=a.p.mark({class:r})))}),r,i);return n.finish()}}const ke=o.Wl.high(a.lg.fromClass(we,{decorations:e=>e.decorations})),xe=ge.define([{tag:s.pJ.meta,color:"#404740"},{tag:s.pJ.link,textDecoration:"underline"},{tag:s.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:s.pJ.emphasis,fontStyle:"italic"},{tag:s.pJ.strong,fontWeight:"bold"},{tag:s.pJ.strikethrough,textDecoration:"line-through"},{tag:s.pJ.keyword,color:"#708"},{tag:[s.pJ.atom,s.pJ.bool,s.pJ.url,s.pJ.contentSeparator,s.pJ.labelName],color:"#219"},{tag:[s.pJ.literal,s.pJ.inserted],color:"#164"},{tag:[s.pJ.string,s.pJ.deleted],color:"#a11"},{tag:[s.pJ.regexp,s.pJ.escape,s.pJ.special(s.pJ.string)],color:"#e40"},{tag:s.pJ.definition(s.pJ.variableName),color:"#00f"},{tag:s.pJ.local(s.pJ.variableName),color:"#30a"},{tag:[s.pJ.typeName,s.pJ.namespace],color:"#085"},{tag:s.pJ.className,color:"#167"},{tag:[s.pJ.special(s.pJ.variableName),s.pJ.macroName],color:"#256"},{tag:s.pJ.definition(s.pJ.propertyName),color:"#00c"},{tag:s.pJ.comment,color:"#940"},{tag:s.pJ.invalid,color:"#f00"}]),_e=a.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Se=1e4,Pe="()[]{}",Ee=o.r$.define({combine:e=>(0,o.BO)(e,{afterCursor:!0,brackets:Pe,maxScanDistance:Se,renderMatch:$e})}),Ce=a.p.mark({class:"cm-matchingBracket"}),Te=a.p.mark({class:"cm-nonmatchingBracket"});function $e(e){let t=[],n=e.matched?Ce:Te;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Qe=[o.QQ.define({create:()=>a.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Ee);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=Me(t.state,e.head,-1,r)||e.head>0&&Me(t.state,e.head-1,1,r)||r.afterCursor&&(Me(t.state,e.head,1,r)||e.heada.tk.decorations.from(e)}),_e];function Re(e={}){return[Ee.of(e),Qe]}const Ae=new i.md;function je(e,t,n){let r=e.prop(t<0?i.md.openedBy:i.md.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function De(e){let t=e.type.prop(Ae);return t?t(e.node):e}function Me(e,t,n,r={}){let i=r.maxScanDistance||Se,o=r.brackets||Pe,a=m(e),s=a.resolveInner(t,n);for(let e=s;e;e=e.parent){let r=je(e.type,n,o);if(r&&e.from0?t>=i.from&&ti.from&&t<=i.to))return Ie(0,0,n,e,i,r,o)}}return function(e,t,n,r,i,o,a){let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!c.next().done&&e<=o;){let o=c.value;n<0&&(e+=o.length);let s=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=a.indexOf(o[e]);if(!(t<0||r.resolveInner(s+e,1).type!=i))if(t%2==0==n>0)d++;else{if(1==d)return{start:u,end:{from:s+e,to:s+e+1},matched:t>>1==l>>1};d--}}n>0&&(e+=o.length)}return c.done?{start:u,matched:!1}:null}(e,t,n,a,s.type,i,o)}function Ie(e,t,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=null==s?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do{if(n<0?c.to<=r.from:c.from>=r.to){if(0==u&&o.indexOf(c.type.name)>-1&&c.from=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosn?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function Ne(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}const Le=new WeakMap;class Fe extends f{constructor(e){let t,n=c(e.languageData),r={name:(o=e).name||"",token:o.token,blankLine:o.blankLine||(()=>{}),startState:o.startState||(()=>!0),copyState:o.copyState||Ne,indent:o.indent||(()=>null),languageData:o.languageData||{},tokenTable:o.tokenTable||Ve};var o;super(n,new class extends i._b{createParse(e,n,r){return new qe(t,e,n,r)}},[E.of(((e,t)=>this.getIndent(e,t)))],e.name),this.topNode=function(e){let t=i.Jq.define({id:Ye.length,name:"Document",props:[u.add((()=>e))],top:!0});return Ye.push(t),t}(n),t=this,this.streamParser=r,this.stateAfter=new i.md({perNode:!0}),this.tokenTable=e.tokenTable?new Ke(r.tokenTable):Je}static define(e){return new Fe(e)}getIndent(e,t){let n,r=m(e.state),i=r.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let{overrideIndentation:o}=e.options;o&&(n=Le.get(e.state),null!=n&&n1e4)return null;for(;a=r&&n+t.length<=o&&t.prop(e.stateAfter);if(a)return{state:e.streamParser.copyState(a),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let s=t.children[a],l=n+t.positions[a],u=s instanceof i.mp&&l=t.length)return t;o||t.type!=e.topNode||(o=!0);for(let a=t.children.length-1;a>=0;a--){let s,l=t.positions[a],u=t.children[a];if(ln&&Ue(e,r.tree,0-r.offset,n,o);if(a&&(t=Xe(e,r.tree,n+r.offset,a.pos+r.offset,!1)))return{state:a.state,tree:t}}return{state:e.streamParser.startState(r?T(r):4),tree:i.mp.empty}}(e,n,a,null==o?void 0:o.state);this.state=s,this.parsedPos=this.chunkStart=a+l.length;for(let e=0;e=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let e=this.rangeIndex;;){let r=this.ranges[e].to;if(r>=n)break;if(t=t.slice(0,r-(n-t.length)),e++,e==this.ranges.length)break;let i=this.ranges[e].from,o=this.lineAfter(i);t+=o,n=i+o.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;t+=this.ranges[++this.rangeIndex].from-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){t+=i=this.skipGapsTo(t,i,1);let e=this.chunk.length;n+=i=this.skipGapsTo(n,i,-1),r+=this.chunk.length-e}return this.chunk.push(e,t,n,r),i}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new We(t,e?e.state.tabSize:4,e?T(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let e=Be(i.token,o,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+o.start,this.parsedPos+o.pos,4,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return r}throw new Error("Stream parser failed to advance stream.")}const Ve=Object.create(null),Ye=[i.Jq.none],Ze=new i.Lj(Ye),Ge=[],He=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])He[e]=tt(Ve,t);class Ke{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),He)}resolve(e){return e?this.table[e]||(this.table[e]=tt(this.extra,e)):0}}const Je=new Ke(Ve);function et(e,t){Ge.indexOf(e)>-1||(Ge.push(e),console.warn(t))}function tt(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||s.pJ[r];t?"function"==typeof t?n?n=t(n):et(r,`Modifier ${r} used at start of tag`):n?et(r,`Tag ${r} used as modifier`):n=t:et(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),o=i.Jq.define({id:Ye.length,name:r,props:[(0,s.Gv)({[r]:n})]});return Ye.push(o),o.id}},24631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{apl:()=>u});var r={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},i=/[\.\/⌿⍀¨⍣]/,o=/⍬/,a=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,s=/←/,l=/[⍝#].*$/;const u={name:"apl",startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(e,t){var n,u,c;return e.eatSpace()?null:'"'===(n=e.next())||"'"===n?(e.eatWhile((u=n,c=!1,function(e){return c=e,e!==u||"\\"===c})),e.next(),t.prev=!0,"string"):/[\[{\(]/.test(n)?(t.prev=!1,null):/[\]}\)]/.test(n)?(t.prev=!0,null):o.test(n)?(t.prev=!1,"atom"):/[¯\d]/.test(n)?(t.func?(t.func=!1,t.prev=!1):t.prev=!0,e.eatWhile(/[\w\.]/),"number"):i.test(n)||s.test(n)?"operator":a.test(n)?(t.func=!0,t.prev=!1,r[n]?"variableName.function.standard":"variableName.function"):l.test(n)?(e.skipToEnd(),"comment"):"∘"===n&&"."===e.peek()?(e.next(),"variableName.function"):(e.eatWhile(/[\w\$_]/),t.prev=!0,"keyword")}}},66396:(e,t,n)=>{"use strict";function r(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}n.r(t),n.d(t,{asciiArmor:()=>i});const i={name:"asciiarmor",token:function(e,t){var n;if("top"==t.state)return e.sol()&&(n=e.match(/^-----BEGIN (.*)?-----\s*$/))?(t.state="headers",t.type=n[1],"tag"):r(e);if("headers"==t.state){if(e.sol()&&e.match(/^\w+:/))return t.state="header","atom";var i=r(e);return i&&(t.state="body"),i}return"header"==t.state?(e.skipToEnd(),t.state="headers","string"):"body"==t.state?e.sol()&&(n=e.match(/^-----END (.*)?-----\s*$/))?n[1]!=t.type?"error":(t.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==t.state?r(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}}},88522:(e,t,n)=>{"use strict";n.r(t),n.d(t,{asterisk:()=>a});var r=["exten","same","include","ignorepat","switch"],i=["#include","#exec"],o=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];const a={name:"asterisk",startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,t){var n="";return e.eatSpace()?null:t.extenStart?(e.eatWhile(/[^\s]/),n=e.current(),/^=>?$/.test(n)?(t.extenExten=!0,t.extenStart=!1,"strong"):(t.extenStart=!1,e.skipToEnd(),"error")):t.extenExten?(t.extenExten=!1,t.extenPriority=!0,e.eatWhile(/[^,]/),t.extenInclude&&(e.skipToEnd(),t.extenPriority=!1,t.extenInclude=!1),t.extenSame&&(t.extenPriority=!1,t.extenSame=!1,t.extenApplication=!0),"tag"):t.extenPriority?(t.extenPriority=!1,t.extenApplication=!0,e.next(),t.extenSame?null:(e.eatWhile(/[^,]/),"number")):t.extenApplication?(e.eatWhile(/,/),","===(n=e.current())?null:(e.eatWhile(/\w/),n=e.current().toLowerCase(),t.extenApplication=!1,-1!==o.indexOf(n)?"def":null)):function(e,t){var n="",o=e.next();if(t.blockComment)return"-"==o&&e.match("-;",!0)?t.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),t.blockComment=!1):e.skipToEnd(),"comment";if(";"==o)return e.match("--",!0)&&!e.match("-",!1)?(t.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if("["==o)return e.skipTo("]"),e.eat("]"),"header";if('"'==o)return e.skipTo('"'),"string";if("'"==o)return e.skipTo("'"),"string.special";if("#"==o&&(e.eatWhile(/\w/),n=e.current(),-1!==i.indexOf(n)))return e.skipToEnd(),"strong";if("$"==o&&"{"==e.peek())return e.skipTo("}"),e.eat("}"),"variableName.special";if(e.eatWhile(/\w/),n=e.current(),-1!==r.indexOf(n)){switch(t.extenStart=!0,n){case"same":t.extenSame=!0;break;case"include":case"switch":case"ignorepat":t.extenInclude=!0}return"atom"}}(e,t)},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}}},12860:(e,t,n)=>{"use strict";n.r(t),n.d(t,{brainfuck:()=>i});var r="><+-.,[]".split("");const i={name:"brainfuck",startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,t){if(e.eatSpace())return null;e.sol()&&(t.commentLine=!1);var n=e.next().toString();return-1===r.indexOf(n)?(t.commentLine=!0,e.eol()&&(t.commentLine=!1),"comment"):!0===t.commentLine?(e.eol()&&(t.commentLine=!1),"comment"):"]"===n||"["===n?("["===n?t.left++:t.right++,"bracket"):"+"===n||"-"===n?"keyword":"<"===n||">"===n?"atom":"."===n||","===n?"def":void(e.eol()&&(t.commentLine=!1))}}},48231:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function i(e,t,n,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(o=e.context.indented),e.context=new r(o,t,n,i,null,e.context)}function o(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function a(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function s(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function l(e){var t,n,l=e.statementIndentUnit,u=e.dontAlignCalls,d=e.keywords||{},f=e.types||{},h=e.builtin||{},p=e.blockKeywords||{},m=e.defKeywords||{},g=e.atoms||{},v=e.hooks||{},O=e.multiLineStrings,y=!1!==e.indentStatements,b=!1!==e.indentSwitch,w=e.namespaceSeparator,k=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,x=e.numberStart||/[\d\.]/,_=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,S=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,P=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,E=e.isReservedIdentifier||!1;function C(e,r){var i,o=e.next();if(v[o]){var a=v[o](e,r);if(!1!==a)return a}if('"'==o||"'"==o)return r.tokenize=(i=o,function(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if(n==i&&!r){o=!0;break}r=!r&&"\\"==n}return(o||!r&&!O)&&(t.tokenize=null),"string"}),r.tokenize(e,r);if(x.test(o)){if(e.backUp(1),e.match(_))return"number";e.next()}if(k.test(o))return t=o,null;if("/"==o){if(e.eat("*"))return r.tokenize=T,T(e,r);if(e.eat("/"))return e.skipToEnd(),"comment"}if(S.test(o)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(S););return"operator"}if(e.eatWhile(P),w)for(;e.match(w);)e.eatWhile(P);var s=e.current();return c(d,s)?(c(p,s)&&(t="newstatement"),c(m,s)&&(n=!0),"keyword"):c(f,s)?"type":c(h,s)||E&&E(s)?(c(p,s)&&(t="newstatement"),"builtin"):c(g,s)?"atom":"variable"}function T(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function $(t,n){e.typeFirstDefinitions&&t.eol()&&s(n.context)&&(n.typeAtEndOfLine=a(t,n,t.pos))}return{name:e.name,startState:function(e){return{tokenize:null,context:new r(-e,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(r,l){var u=l.context;if(r.sol()&&(null==u.align&&(u.align=!1),l.indented=r.indentation(),l.startOfLine=!0),r.eatSpace())return $(r,l),null;t=n=null;var c=(l.tokenize||C)(r,l);if("comment"==c||"meta"==c)return c;if(null==u.align&&(u.align=!0),";"==t||":"==t||","==t&&r.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==l.context.type;)o(l);else if("{"==t)i(l,r.column(),"}");else if("["==t)i(l,r.column(),"]");else if("("==t)i(l,r.column(),")");else if("}"==t){for(;"statement"==u.type;)u=o(l);for("}"==u.type&&(u=o(l));"statement"==u.type;)u=o(l)}else t==u.type?o(l):y&&(("}"==u.type||"top"==u.type)&&";"!=t||"statement"==u.type&&"newstatement"==t)&&i(l,r.column(),"statement",r.current());if("variable"==c&&("def"==l.prevToken||e.typeFirstDefinitions&&a(r,l,r.start)&&s(l.context)&&r.match(/^\s*\(/,!1))&&(c="def"),v.token){var d=v.token(r,l,c);void 0!==d&&(c=d)}return"def"==c&&!1===e.styleDefs&&(c="variable"),l.startOfLine=!1,l.prevToken=n?"def":c||t,$(r,l),c},indent:function(t,n,r){if(t.tokenize!=C&&null!=t.tokenize||t.typeAtEndOfLine&&s(t.context))return null;var i=t.context,o=n&&n.charAt(0),a=o==i.type;if("statement"==i.type&&"}"==o&&(i=i.prev),e.dontIndentStatements)for(;"statement"==i.type&&e.dontIndentStatements.test(i.info);)i=i.prev;if(v.indent){var c=v.indent(t,i,n,r.unit);if("number"==typeof c)return c}var d=i.prev&&"switch"==i.prev.info;if(e.allmanIndentation&&/[{(]/.test(o)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return"statement"==i.type?i.indented+("{"==o?0:l||r.unit):!i.align||u&&")"==i.type?")"!=i.type||a?i.indented+(a?0:r.unit)+(a||!d||/^(?:case|default)\b/.test(n)?0:r.unit):i.indented+(l||r.unit):i.column+(a?0:1)},languageData:{indentOnInput:b?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(d).concat(Object.keys(f)).concat(Object.keys(h)).concat(Object.keys(g)),...e.languageData}}}function u(e){for(var t={},n=e.split(" "),r=0;rT,ceylon:()=>X,clike:()=>l,cpp:()=>$,csharp:()=>R,dart:()=>G,java:()=>Q,kotlin:()=>M,nesC:()=>z,objectiveC:()=>W,objectiveCpp:()=>N,scala:()=>D,shader:()=>I,squirrel:()=>L});var d="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",f="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",h="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",p="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",m=u("int long char short double float unsigned signed void bool"),g=u("SEL instancetype id Class Protocol BOOL");function v(e){return c(m,e)||/.+_t$/.test(e)}function O(e){return v(e)||c(g,e)}var y="case do else for if switch while struct enum union",b="struct enum union";function w(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=w;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function k(e,t){return"type"==t.prevToken&&"type"}function x(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function _(e){return e.eatWhile(/[\w\.']/),"number"}function S(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=C,C(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function P(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function E(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function C(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}const T=l({name:"c",keywords:u(d),types:v,blockKeywords:u(y),defKeywords:u(b),typeFirstDefinitions:!0,atoms:u("NULL true false"),isReservedIdentifier:x,hooks:{"#":w,"*":k}}),$=l({name:"cpp",keywords:u(d+" "+f),types:v,blockKeywords:u(y+" class try catch"),defKeywords:u(b+" class namespace"),typeFirstDefinitions:!0,atoms:u("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:x,hooks:{"#":w,"*":k,u:S,U:S,L:S,R:S,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&P(e.current()))return"def"}},namespaceSeparator:"::"}),Q=l({name:"java",keywords:u("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:u("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:u("catch class do else finally for if switch try while"),defKeywords:u("class interface enum @interface"),typeFirstDefinitions:!0,atoms:u("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match(/""$/)&&(t.tokenize=A,t.tokenize(e,t))}}}),R=l({name:"csharp",keywords:u("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:u("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:u("catch class do else finally for foreach if struct switch try while"),defKeywords:u("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:u("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=E,E(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}});function A(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function j(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=j(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=j(e+1),n.tokenize(t,n)}return"comment"}}const D=l({name:"scala",keywords:u("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:u("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:u("catch class enum do else finally for forSome if match switch try while"),defKeywords:u("class enum def object package trait type val var"),atoms:u("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=A,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"character":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,t){var n=t.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(t.context=new r(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=j(1),t.tokenize(e,t))}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),M=l({name:"kotlin",keywords:u("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:u("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:u("catch class do else finally for if where try while enum"),defKeywords:u("class val var object interface fun"),atoms:u("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=j(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),I=l({name:"shader",keywords:u("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:u("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:u("for while do if else struct"),builtin:u("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:u("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":w}}),z=l({name:"nesc",keywords:u(d+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:v,blockKeywords:u(y),atoms:u("null true false"),hooks:{"#":w}}),W=l({name:"objectivec",keywords:u(d+" "+h),types:O,builtin:u(p),blockKeywords:u(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:u(b+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:u("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":w,"*":k}}),N=l({name:"objectivecpp",keywords:u(d+" "+h+" "+f),types:O,builtin:u(p),blockKeywords:u(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:u(b+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:u("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":w,"*":k,u:S,U:S,L:S,R:S,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&P(e.current()))return"def"}},namespaceSeparator:"::"}),L=l({name:"squirrel",keywords:u("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:v,blockKeywords:u("case catch class else for foreach if switch try while"),defKeywords:u("function local class"),typeFirstDefinitions:!0,atoms:u("true false null"),hooks:{"#":w}});var F=null;function U(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){F=U(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}const X=l({name:"ceylon",keywords:u("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:u("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:u("class dynamic function interface module object package value"),builtin:u("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:u("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=U(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!F||!e.match("`"))&&(t.tokenize=F,F=null,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string.special":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variableName.special"}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function q(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function B(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function V(e,t,n,r){var i=!1;if(t.eat(e)){if(!t.eat(e))return"string";i=!0}function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek())return q(n),n.tokenize=Y,"string";var a=t.next();if(a==e&&!o&&(!i||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==a}return"string"}return n.tokenize=o,o(t,n)}function Y(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=Z,null}function Z(e,t){return e.eatWhile(/[\w_]/),t.tokenize=B(t),"variable"}const G=l({name:"dart",keywords:u("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),blockKeywords:u("try catch finally do else for if switch while"),builtin:u("void bool num int double dynamic var String Null Never"),atoms:u("true false null"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return V("'",e,t,!1)},'"':function(e,t){return V('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&V(e.next(),e,t,!0)},"}":function(e,t){return function(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=B(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=j(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"type"}}})},23463:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clojure:()=>y});var r=["false","nil","true"],i=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],o=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],a=v(r),s=v(i),l=v(o),u=v(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),c=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,d=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,f=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,h=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function p(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(d))return[null,"number"];if(e.match(f))return[null,"string.special"];if(e.eat(/^"/))return(t.tokenize=m)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(h),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=g)(e,t):O(r,a)||":"===r.charAt(0)?["symbol","atom"]:O(r,s)||O(r,l)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!O(e,c)})),[null,"error"])}function m(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=p;break}r=!r&&"\\"===n}return[null,"string"]}function g(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=p;break}return["space","comment"]}function v(e){for(var t={},n=0;n{"use strict";n.r(t),n.d(t,{cmake:()=>o});var r=/({)?[a-zA-Z0-9_]+(})?/;function i(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}const o={name:"cmake",startState:function(){return{inDefinition:!1,inInclude:!1,continueString:!1,pending:!1}},token:function(e,t){return e.eatSpace()?null:function(e,t){var n=e.next();return"$"===n?e.match(r)?"variableName.special":"variable":t.continueString?(e.backUp(1),i(e,t)):e.match(/(\s+)?\w+\(/)||e.match(/(\s+)?\w+\ \(/)?(e.backUp(1),"def"):"#"==n?(e.skipToEnd(),"comment"):"'"==n||'"'==n?(t.pending=n,i(e,t)):"("==n||")"==n?"bracket":n.match(/[0-9]/)?"number":(e.eatWhile(/[\w-]/),null)}(e,t)}}},10021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cobol:()=>c});var r="string",i="atom";function o(e){for(var t={},n=e.split(" "),r=0;r >= "),u={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};const c={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=6),e.eatSpace())return null;var n=null;if("string"===t.mode){for(var o=!1;null!=(o=e.next());)if(('"'==o||"'"==o)&&!e.match(/['"]/,!1)){t.mode=!1;break}n=r}else{var c=e.next(),d=e.column();if(d>=0&&d<=5)n="def";else if(d>=72&&d<=79)e.skipToEnd(),n="header";else if("*"==c&&6==d)e.skipToEnd(),n="comment";else if('"'==c||"'"==c)t.mode="string",n=r;else if("'"!=c||u.digit_or_colon.test(e.peek()))if("."==c)n="link";else if(function(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(u.hex),!0):("+"!=e&&"-"!=e||!u.digit.test(t.peek())||(t.eat(u.sign),e=t.next()),!!u.digit.test(e)&&(t.eat(e),t.eatWhile(u.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(u.digit)),t.eat(u.exponent)&&(t.eat(u.sign),t.eatWhile(u.digit)),!0))}(c,e))n="number";else{if(e.current().match(u.symbol))for(;d<71&&void 0!==e.eat(u.symbol);)d++;n=s&&s.propertyIsEnumerable(e.current().toUpperCase())?"keyword":l&&l.propertyIsEnumerable(e.current().toUpperCase())?"builtin":a&&a.propertyIsEnumerable(e.current().toUpperCase())?i:null}else n=i}return n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}}},73182:(e,t,n)=>{"use strict";n.r(t),n.d(t,{coffeeScript:()=>b});var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var o=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,s=/^[_A-Za-z$][_A-Za-z$0-9]*/,l=/^@[_A-Za-z$][_A-Za-z$0-9]*/,u=i(["and","or","not","is","isnt","in","instanceof","typeof"]),c=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],d=i(c.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));c=i(c);var f=/^('{3}|\"{3}|['\"])/,h=/^(\/{3}|\/)/,p=i(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function m(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var n=t.scope.offset;if(e.eatSpace()){var i=e.indentation();return i>n&&"coffee"==t.scope.type?"indent":i0&&y(e,t)}if(e.eatSpace())return null;var c=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=v,t.tokenize(e,t);if("#"===c)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var m=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(m=!0),e.match(/^-?\d+\.\d*/)&&(m=!0),e.match(/^-?\.\d+/)&&(m=!0),m)return"."==e.peek()&&e.backUp(1),"number";var O=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(O=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(O=!0),e.match(/^-?0(?![\dx])/i)&&(O=!0),O)return"number"}if(e.match(f))return t.tokenize=g(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(h)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=g(e.current(),!0,"string.special"),t.tokenize(e,t);e.backUp(1)}return e.match(o)||e.match(u)?"operator":e.match(a)?"punctuation":e.match(p)?"atom":e.match(l)||t.prop&&e.match(s)?"property":e.match(d)?"keyword":e.match(s)?"variable":(e.next(),r)}function g(e,t,n){return function(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\/\\]/),r.eat("\\")){if(r.next(),t&&r.eol())return n}else{if(r.match(e))return i.tokenize=m,n;r.eat(/['"\/]/)}return t&&(i.tokenize=m),n}}function v(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=m;break}e.eatWhile("#")}return"comment"}function O(e,t,n="coffee"){for(var r=0,i=!1,o=null,a=t.scope;a;a=a.prev)if("coffee"===a.type||"}"==a.type){r=a.offset+e.indentUnit;break}"coffee"!==n?(i=null,o=e.column()+e.current().length):t.scope.align&&(t.scope.align=!1),t.scope={offset:r,type:n,prev:t.scope,align:i,alignOffset:o}}function y(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}const b={name:"coffeescript",startState:function(){return{tokenize:m,scope:{offset:0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var i=function(e,t){var n=t.tokenize(e,t),i=e.current();"return"===i&&(t.dedent=!0),(("->"===i||"=>"===i)&&e.eol()||"indent"===n)&&O(e,t);var o="[({".indexOf(i);if(-1!==o&&O(e,t,"])}".slice(o,o+1)),c.exec(i)&&O(e,t),"then"==i&&y(e,t),"dedent"===n&&y(e,t))return r;if(-1!==(o="])}".indexOf(i))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),"indent"==n||"dedent"==n?null:n}(e,t);return i&&"comment"!=i&&(n&&(n.align=!0),t.prop="punctuation"==i&&"."==e.current()),i},indent:function(e,t){if(e.tokenize!=m)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},languageData:{commentTokens:{line:"#"}}}},31402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{commonLisp:()=>f});var r,i=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,o=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,s=/[^\s'`,@()\[\]";]/;function l(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!s.test(t)){e.backUp(1);break}return e.current()}function u(e,t){if(e.eatSpace())return r="ws",null;if(e.match(a))return"number";var n;if("\\"==(n=e.next())&&(n=e.next()),'"'==n)return(t.tokenize=c)(e,t);if("("==n)return r="open","bracket";if(")"==n||"]"==n)return r="close","bracket";if(";"==n)return e.skipToEnd(),r="ws","comment";if(/['`,@]/.test(n))return null;if("|"==n)return e.skipTo("|")?(e.next(),"variableName"):(e.skipToEnd(),"error");if("#"==n)return"("==(n=e.next())?(r="open","bracket"):/[+\-=\.']/.test(n)||/\d/.test(n)&&e.match(/^\d*#/)?null:"|"==n?(t.tokenize=d)(e,t):":"==n?(l(e),"meta"):"\\"==n?(e.next(),l(e),"string.special"):"error";var s=l(e);return"."==s?null:(r="symbol","nil"==s||"t"==s||":"==s.charAt(0)?"atom":"open"==t.lastType&&(i.test(s)||o.test(s))?"keyword":"&"==s.charAt(0)?"variableName.special":"variableName")}function c(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=u;break}r=!r&&"\\"==n}return"string"}function d(e,t){for(var n,i;n=e.next();){if("#"==n&&"|"==i){t.tokenize=u;break}i=n}return r="ws","comment"}const f={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:u}},token:function(e,t){e.sol()&&"number"!=typeof t.ctx.indentTo&&(t.ctx.indentTo=t.ctx.start+1),r=null;var n=t.tokenize(e,t);return"ws"!=r&&(null==t.ctx.indentTo?"symbol"==r&&o.test(e.current())?t.ctx.indentTo=t.ctx.start+e.indentUnit:t.ctx.indentTo="next":"next"==t.ctx.indentTo&&(t.ctx.indentTo=e.column()),t.lastType=r),"open"==r?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:"close"==r&&(t.ctx=t.ctx.prev||t.ctx),n},indent:function(e){var t=e.ctx.indentTo;return"number"==typeof t?t:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}}},69802:(e,t,n)=>{"use strict";function r(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function i(e,t,n){return n.tokenize.push(e),e(t,n)}n.r(t),n.d(t,{crystal:()=>E});var o=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,a=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,s=/^(?:\[\][?=]?)/,l=/^(?:\.(?:\.{2})?|->|[?:])/,u=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,c=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,d=r(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),f=r(["true","false","nil","self"]),h=r(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),p=r(["if","unless","case","while","until","begin","then"]),m=["end","else","elsif","rescue","ensure"],g=r(m),v=["\\)","\\}","\\]"],O=new RegExp("^(?:"+v.join("|")+")$"),y={def:_,fun:_,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(u)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:S,module:S,struct:S,lib:S,enum:S,union:S},b={"[":"]","{":"}","(":")","<":">"};function w(e,t){if(e.eatSpace())return null;if("\\"!=t.lastToken&&e.match("{%",!1))return i(x("%","%"),e,t);if("\\"!=t.lastToken&&e.match("{{",!1))return i(x("{","}"),e,t);if("#"==e.peek())return e.skipToEnd(),"comment";var n;if(e.match(u))return e.eat(/[?!]/),n=e.current(),e.eat(":")?"atom":"."==t.lastToken?"property":d.test(n)?(h.test(n)?"fun"==n&&t.blocks.indexOf("lib")>=0||"def"==n&&"abstract"==t.lastToken||(t.blocks.push(n),t.currentIndent+=1):"operator"!=t.lastStyle&&t.lastStyle||!p.test(n)?"end"==n&&(t.blocks.pop(),t.currentIndent-=1):(t.blocks.push(n),t.currentIndent+=1),y.hasOwnProperty(n)&&t.tokenize.push(y[n]),"keyword"):f.test(n)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?i(k("[","]","meta"),e,t):(e.eat("@"),e.match(u)||e.match(c),"propertyName");if(e.match(c))return"tag";if(e.eat(":"))return e.eat('"')?i(P('"',"atom",!1),e,t):e.match(u)||e.match(c)||e.match(o)||e.match(a)||e.match(s)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return i(P('"',"string",!0),e,t);if("%"==e.peek()){var r,m="string",g=!0;if(e.match("%r"))m="string.special",r=e.next();else if(e.match("%w"))g=!1,r=e.next();else if(e.match("%q"))g=!1,r=e.next();else if(r=e.match(/^%([^\w\s=])/))r=r[1];else{if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(e.eat("%"))return"operator"}return b.hasOwnProperty(r)&&(r=b[r]),i(P(r,m,g),e,t)}return(n=e.match(/^<<-('?)([A-Z]\w*)\1/))?i(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match("{%",!1))return r.tokenize.push(x("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(x("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(k("#{","}","meta")),"string";i=t&&"\\"==n.next()}return"string"}}(n[2],!n[1]),e,t):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F_]+/):e.eat("o")?e.match(/^[0-7_]+/):e.eat("b")&&e.match(/^[01_]+/),"number"):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):e.match(o)?(e.eat("="),"operator"):e.match(a)||e.match(l)?"operator":(n=e.match(/[({[]/,!1))?i(k(n=n[0],b[n],null),e,t):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function k(e,t,n,r){return function(i,o){if(!r&&i.match(e))return o.tokenize[o.tokenize.length-1]=k(e,t,n,!0),o.currentIndent+=1,n;var a=w(i,o);return i.current()===t&&(o.tokenize.pop(),o.currentIndent-=1,a=n),a}}function x(e,t,n){return function(r,i){return!n&&r.match("{"+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=x(e,t,!0),"meta"):r.match(t+"}")?(i.currentIndent-=1,i.tokenize.pop(),"meta"):w(r,i)}}function _(e,t){return e.eatSpace()?null:(e.match(u)?e.eat(/[!?]/):e.match(o)||e.match(a)||e.match(s),t.tokenize.pop(),"def")}function S(e,t){return e.eatSpace()?null:(e.match(c),t.tokenize.pop(),"def")}function P(e,t,n){return function(r,i){for(var o=!1;r.peek();)if(o)r.next(),o=!1;else{if(r.match("{%",!1))return i.tokenize.push(x("%","%")),t;if(r.match("{{",!1))return i.tokenize.push(x("{","}")),t;if(n&&r.match("#{",!1))return i.tokenize.push(k("#{","}","meta")),t;var a=r.next();if(a==e)return i.tokenize.pop(),t;o=n&&"\\"==a}return t}}const E={name:"crystal",startState:function(){return{tokenize:[w],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(e,t,n){return t=t.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),g.test(t)||O.test(t)?n.unit*(e.currentIndent-1):n.unit*e.currentIndent},languageData:{indentOnInput:r(v.concat(m),!0),commentTokens:{line:"#"}}}},41525:(e,t,n)=>{"use strict";function r(e){var t,n,r=(e={...P,...e}).inline,i=e.tokenHooks,o=e.documentTypes||{},a=e.mediaTypes||{},s=e.mediaFeatures||{},l=e.mediaValueKeywords||{},u=e.propertyKeywords||{},c=e.nonStandardPropertyKeywords||{},d=e.fontProperties||{},f=e.counterDescriptors||{},h=e.colorKeywords||{},p=e.valueKeywords||{},m=e.allowNested,g=e.lineComment,v=!0===e.supportsAtComponent,O=!1!==e.highlightNonStandardPropertyKeywords;function y(e,n){return t=n,e}function b(e,t){var n=e.next();if(i[n]){var r=i[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),y("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?y(null,"compare"):'"'==n||"'"==n?(t.tokenize=w(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),y("atom","hash")):"!"==n?(e.match(/^\s*\w*/),y("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),y("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?y(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?y("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?y(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=k),y("variableName.function","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),y("property","word")):y(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),y("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?y("def","variable-definition"):y("variableName","variable")):e.match(/^\w+-/)?y("meta","meta"):void 0}function w(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),y("string","string")}}function k(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=w(")"),y(null,"(")}function x(e,t,n){this.type=e,this.indent=t,this.prev=n}function S(e,t,n,r){return e.context=new x(n,t.indentation()+(!1===r?0:t.indentUnit),e.context),n}function E(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function C(e,t,n){return Q[n.context.type](e,t,n)}function T(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return C(e,t,n)}function $(e){var t=e.current().toLowerCase();n=p.hasOwnProperty(t)?"atom":h.hasOwnProperty(t)?"keyword":"variable"}var Q={top:function(e,t,r){if("{"==e)return S(r,t,"block");if("}"==e&&r.context.prev)return E(r);if(v&&/@component/i.test(e))return S(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return S(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return S(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return S(r,t,"at");if("hash"==e)n="builtin";else if("word"==e)n="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return S(r,t,"interpolation");if(":"==e)return"pseudo";if(m&&"("==e)return S(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var i=t.current().toLowerCase();return u.hasOwnProperty(i)?(n="property","maybeprop"):c.hasOwnProperty(i)?(n=O?"string.special":"property","maybeprop"):m?(n=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n="error","maybeprop")}return"meta"==e?"block":m||"hash"!=e&&"qualifier"!=e?Q.top(e,t,r):(n="error","block")},maybeprop:function(e,t,n){return":"==e?S(n,t,"prop"):C(e,t,n)},prop:function(e,t,r){if(";"==e)return E(r);if("{"==e&&m)return S(r,t,"propBlock");if("}"==e||"{"==e)return T(e,t,r);if("("==e)return S(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)$(t);else if("interpolation"==e)return S(r,t,"interpolation")}else n="error";return"prop"},propBlock:function(e,t,r){return"}"==e?E(r):"word"==e?(n="property","maybeprop"):r.context.type},parens:function(e,t,n){return"{"==e||"}"==e?T(e,t,n):")"==e?E(n):"("==e?S(n,t,"parens"):"interpolation"==e?S(n,t,"interpolation"):("word"==e&&$(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(n="variableName.constant",r.context.type):C(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&o.hasOwnProperty(t.current())?(n="tag",r.context.type):Q.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return S(r,t,"atBlock_parens");if("}"==e||";"==e)return T(e,t,r);if("{"==e)return E(r)&&S(r,t,m?"block":"top");if("interpolation"==e)return S(r,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();n="only"==i||"not"==i||"and"==i||"or"==i?"keyword":a.hasOwnProperty(i)?"attribute":s.hasOwnProperty(i)?"property":l.hasOwnProperty(i)?"keyword":u.hasOwnProperty(i)?"property":c.hasOwnProperty(i)?O?"string.special":"property":p.hasOwnProperty(i)?"atom":h.hasOwnProperty(i)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?T(e,t,r):"{"==e?E(r)&&S(r,t,m?"block":"top",!1):("word"==e&&(n="error"),r.context.type)},atBlock_parens:function(e,t,n){return")"==e?E(n):"{"==e||"}"==e?T(e,t,n,2):Q.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,r){return"{"==e?S(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(n="variable","restricted_atBlock_before"):C(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,E(r)):"word"==e?(n="@font-face"==r.stateArg&&!d.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!f.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(n="variable","keyframes"):"{"==e?S(r,t,"top"):C(e,t,r)},at:function(e,t,r){return";"==e?E(r):"{"==e||"}"==e?T(e,t,r):("word"==e?n="tag":"hash"==e&&(n="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?E(r):"{"==e||";"==e?T(e,t,r):("word"==e?n="variable":"variable"!=e&&"("!=e&&")"!=e&&(n="error"),"interpolation")}};return{name:e.name,startState:function(){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new x(r?"block":"top",0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var i=(r.tokenize||b)(e,r);return i&&"object"==typeof i&&(t=i[1],i=i[0]),n=i,"comment"!=t&&(r.state=Q[r.state](t,e,r)),n},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=i&&")"!=i||(r=r.prev),r.prev&&("}"!=i||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=i||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=i||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-n.unit)):o=(r=r.prev).indent),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:g,block:{open:"/*",close:"*/"}},autocomplete:_}}}function i(e){for(var t={},n=0;nE,gss:()=>Q,keywords:()=>S,less:()=>$,mkCSS:()=>r,sCSS:()=>T});var o=["domain","regexp","url","url-prefix"],a=i(o),s=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],l=i(s),u=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],c=i(u),d=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],f=i(d),h=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=i(h),m=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],g=i(m),v=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],O=i(v),y=i(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),b=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],w=i(b),k=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=i(k),_=o.concat(s).concat(u).concat(d).concat(h).concat(m).concat(b).concat(k);const S={properties:h,colors:b,fonts:v,values:k,all:_},P={documentTypes:a,mediaTypes:l,mediaFeatures:c,mediaValueKeywords:f,propertyKeywords:p,nonStandardPropertyKeywords:g,fontProperties:O,counterDescriptors:y,colorKeywords:w,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=C,C(e,t))}}},E=r({name:"css"});function C(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}const T=r({name:"scss",mediaTypes:l,mediaFeatures:c,mediaValueKeywords:f,propertyKeywords:p,nonStandardPropertyKeywords:g,colorKeywords:w,valueKeywords:x,fontProperties:O,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=C,C(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["def","variable-definition"]:["variableName.special","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}}}),$=r({name:"less",mediaTypes:l,mediaFeatures:c,mediaValueKeywords:f,propertyKeywords:p,nonStandardPropertyKeywords:g,colorKeywords:w,valueKeywords:x,fontProperties:O,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=C,C(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["def","variable-definition"]:["variableName","variable"])},"&":function(){return["atom","atom"]}}}),Q=r({name:"gss",documentTypes:a,mediaTypes:l,mediaFeatures:c,propertyKeywords:p,nonStandardPropertyKeywords:g,fontProperties:O,counterDescriptors:y,colorKeywords:w,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=C,C(e,t))}}})},67065:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cypher:()=>h});var r,i=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")},o=function(e){r=null;var t=e.next();if('"'===t)return e.match(/^.*?"/),"string";if("'"===t)return e.match(/^.*?'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return r=t,"punctuation";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(f.test(t))return e.eatWhile(f),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return l.test(n)?"builtin":u.test(n)?"def":c.test(n)||d.test(n)?"keyword":"variable"},a=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},s=function(e){return e.indent=e.context.indent,e.context=e.context.prev},l=i(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),u=i(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),c=i(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),d=i(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;const h={name:"cypher",startState:function(){return{tokenize:o,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===r)a(t,")",e.column());else if("["===r)a(t,"]",e.column());else if("{"===r)a(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"===t.context.type;)s(t);t.context&&r===t.context.type&&s(t)}else"."===r&&t.context&&"pattern"===t.context.type?s(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?a(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?null:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0}}},61632:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rw});var i="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";const o={keywords:r("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+i),blockKeywords:r(i),builtin:r("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:r("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}};var a,s=o.statementIndentUnit,l=o.keywords,u=o.builtin,c=o.blockKeywords,d=o.atoms,f=o.hooks,h=o.multiLineStrings,p=/[+\-*&%=<>!?|\/]/;function m(e,t){var n,r=e.next();if(f[r]){var i=f[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r||"`"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!h)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return a=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("+"))return t.tokenize=v,v(e,t);if(e.eat("*"))return t.tokenize=g,g(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(p.test(r))return e.eatWhile(p),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return l.propertyIsEnumerable(o)?(c.propertyIsEnumerable(o)&&(a="newstatement"),"keyword"):u.propertyIsEnumerable(o)?(c.propertyIsEnumerable(o)&&(a="newstatement"),"builtin"):d.propertyIsEnumerable(o)?"atom":"variable"}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function O(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function y(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new O(r,t,n,null,e.context)}function b(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const w={name:"d",startState:function(e){return{tokenize:null,context:new O(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;a=null;var r=(t.tokenize||m)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=a&&":"!=a&&","!=a||"statement"!=n.type)if("{"==a)y(t,e.column(),"}");else if("["==a)y(t,e.column(),"]");else if("("==a)y(t,e.column(),")");else if("}"==a){for(;"statement"==n.type;)n=b(t);for("}"==n.type&&(n=b(t));"statement"==n.type;)n=b(t)}else a==n.type?b(t):(("}"==n.type||"top"==n.type)&&";"!=a||"statement"==n.type&&"newstatement"==a)&&y(t,e.column(),"statement");else b(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=m&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:s||n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},37155:(e,t,n)=>{"use strict";n.r(t),n.d(t,{diff:()=>i});var r={"+":"inserted","-":"deleted","@":"meta"};const i={name:"diff",token:function(e){var t=e.string.search(/[\t ]+?$/);if(!e.sol()||0===t)return e.skipToEnd(),("error "+(r[e.string.charAt(0)]||"")).replace(/ $/,"");var n=r[e.peek()]||e.skipToEnd();return-1===t?e.skipToEnd():e.pos=t,n}}},95812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dockerFile:()=>h});var r=n(68343),i="from",o=new RegExp("^(\\s*)\\b("+i+")\\b","i"),a=["run","cmd","entrypoint","shell"],s=new RegExp("^(\\s*)("+a.join("|")+")(\\s+\\[)","i"),l="expose",u=new RegExp("^(\\s*)("+l+")(\\s+)","i"),c="("+[i,l].concat(a).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")",d=new RegExp("^(\\s*)"+c+"(\\s*)(#.*)?$","i"),f=new RegExp("^(\\s*)"+c+"(\\s+)","i");const h=(0,r.Q)({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:o,token:[null,"keyword"],sol:!0,next:"from"},{regex:d,token:[null,"keyword",null,"error"],sol:!0},{regex:s,token:[null,"keyword",null],sol:!0,next:"array"},{regex:u,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:f,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}})},16398:(e,t,n)=>{"use strict";var r;function i(e,t){return r=t,e}function o(e,t){var n,r=e.next();if("<"!=r||!e.eat("!")){if("<"==r&&e.eat("?"))return t.tokenize=("meta","?>",function(e,t){for(;!e.eol();){if(e.match("?>")){t.tokenize=o;break}e.next()}return"meta"}),i("meta",r);if("#"==r&&e.eatWhile(/[\w]/))return i("atom","tag");if("|"==r)return i("keyword","separator");if(r.match(/[\(\)\[\]\-\.,\+\?>]/))return i(null,r);if(r.match(/[\[\]]/))return i("rule",r);if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,a=!1;null!=(r=e.next());){if(r==n&&!a){t.tokenize=o;break}a=!a&&"\\"==r}return i("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var s=e.current();return null!==s.substr(s.length-1,s.length).match(/\?|\+/)&&e.backUp(1),i("tag","tag")}return"%"==r||"*"==r?i("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),i(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=a,a(e,t)):e.eatWhile(/[\w]/)?i("keyword","doindent"):void 0}function a(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=o;break}r="-"==n?r+1:0}return i("comment","comment")}n.r(t),n.d(t,{dtd:()=>s});const s={name:"dtd",startState:function(){return{tokenize:o,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t),i=t.stack[t.stack.length-1];return"["==e.current()||"doindent"===r||"["==r?t.stack.push("rule"):"endtag"===r?t.stack[t.stack.length-1]="endtag":"]"==e.current()||"]"==r||">"==r&&"rule"==i?t.stack.pop():"["==r&&t.stack.push("["),n},indent:function(e,t,n){var i=e.stack.length;return"]"===t.charAt(0)?i--:">"===t.substr(t.length-1,t.length)&&("<"===t.substr(0,1)||"doindent"==r&&t.length>1||("doindent"==r?i--:">"==r&&t.length>1||"tag"==r&&">"!==t||("tag"==r&&"rule"==e.stack[e.stack.length-1]?i--:"tag"==r?i++:">"===t&&"rule"==e.stack[e.stack.length-1]&&">"===r?i--:">"===t&&"rule"==e.stack[e.stack.length-1]||("<"!==t.substr(0,1)&&">"===t.substr(0,1)?i-=1:">"===t||(i-=1)))),null!=r&&"]"!=r||i--),e.baseIndent+i*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}}},46528:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;nO});var o={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};o.otherDefinition=o.unnamedDefinition.concat(o.namedDefinition).concat(o.otherParameterizedDefinition),o.definition=o.typeParameterizedDefinition.concat(o.otherDefinition),o.parameterizedDefinition=o.typeParameterizedDefinition.concat(o.otherParameterizedDefinition),o.simpleDefinition=o.constantSimpleDefinition.concat(o.variableSimpleDefinition).concat(o.otherSimpleDefinition),o.keyword=o.statement.concat(o.separator).concat(o.other);var a="[-_a-zA-Z?!*@<>$%]+",s=new RegExp("^"+a),l={symbolKeyword:a+":",symbolClass:"<"+a+">",symbolGlobal:"\\*"+a+"\\*",symbolConstant:"\\$"+a},u={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var c in l)l.hasOwnProperty(c)&&(l[c]=new RegExp("^"+l[c]));l.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var d={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},f={},h={};function p(e,t,n){return t.tokenize=n,n(e,t)}function m(e,t){var n=e.peek();if("'"==n||'"'==n)return e.next(),p(e,t,v(n,"string"));if("/"==n){if(e.next(),e.eat("*"))return p(e,t,g);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==n)return e.next(),'"'==(n=e.peek())?(e.next(),p(e,t,v('"',"string"))):"b"==n?(e.next(),e.eatWhile(/[01]/),"number"):"x"==n?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==n?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==n?(e.next(),"punctuation"):"["==n||"("==n?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==n)return e.next(),"="==(n=e.peek())?(e.next(),"="==(n=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==n){if(e.next(),"="==(n=e.peek()))return e.next(),"operator";if(":"==n)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(n))return e.next(),"bracket";if(-1!=".,".indexOf(n))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var r in l)if(l.hasOwnProperty(r)){var o=l[r];if(o instanceof Array&&i(o,(function(t){return e.match(t)}))||e.match(o))return u[r]}return/[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),f.hasOwnProperty(e.current())?h[e.current()]:e.current().match(s)?"variable":(e.next(),"variableName.standard"))}function g(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if("/"==n&&r){if(!(o>0)){t.tokenize=m;break}o--}else"*"==n&&i&&o++;r="*"==n,i="/"==n}return"comment"}function v(e,t){return function(n,r){for(var i,o=!1,a=!1;null!=(i=n.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return!a&&o||(r.tokenize=m),t}}r(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){r(o[e],(function(t){f[t]=e,h[t]=d[e]}))}));const O={name:"dylan",startState:function(){return{tokenize:m,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}}},24140:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ebnf:()=>r});const r={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'==e.peek()||"'"==e.peek()?(t.stringType=e.peek(),e.next(),t.stack.unshift(1)):e.match("/*")?(t.stack.unshift(0),t.commentType=0):e.match("(*")&&(t.stack.unshift(0),t.commentType=1)),t.stack[0]){case 1:for(;1===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string";case 0:for(;0===t.stack[0]&&!e.eol();)0===t.commentType&&e.match("*/")||1===t.commentType&&e.match("*)")?(t.stack.shift(),t.commentType=null):e.match(/^.[^\*]*/);return"comment";case 2:for(;2===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift(2),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(n))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":-1!=["[","]","(",")"].indexOf(e.peek())?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}},54176:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;ry});var i,o=r("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),a=r("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),s=r("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),l=r("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),u=r("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),c=r("catch class do else finally for if switch try while"),d=r("true false null"),f={"#":function(e,t){return!!t.startOfLine&&(e.skipToEnd(),"meta")}},h=/[+\-*&%=<>!?|\/]/;function p(e,t){var n,r=e.next();if(f[r]){var g=f[r](e,t);if(!1!==g)return g}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=m,m(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(h.test(r))return e.eatWhile(h),"operator";e.eatWhile(/[\w\$_]/);var v=e.current().toLowerCase();if(o.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"keyword";if(a.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"variable";if(s.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"modifier";if(l.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"type";if(u.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"builtin";for(var O=v.length-1;O>=0&&(!isNaN(v[O])||"_"==v[O]);)--O;if(O>0){var y=v.substr(0,O+1);if(l.propertyIsEnumerable(y))return c.propertyIsEnumerable(y)&&(i="newstatement"),"type"}return d.propertyIsEnumerable(v)?"atom":null}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){return e.context=new g(e.indented,t,n,null,e.context)}function O(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const y={name:"ecl",startState:function(e){return{tokenize:null,context:new g(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;i=null;var r=(t.tokenize||p)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("{"==i)v(t,e.column(),"}");else if("["==i)v(t,e.column(),"]");else if("("==i)v(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=O(t);for("}"==n.type&&(n=O(t));"statement"==n.type;)n=O(t)}else i==n.type?O(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&v(t,e.column(),"statement");else O(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=p&&null!=e.tokenize)return 0;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/}}},36653:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0,r=e.length;ns});var i=r(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),o=r([":=","and then","and","or","<<",">>"]);function a(e,t){if(e.eatSpace())return null;var n,r=e.next();return'"'==r||"'"==r?function(e,t,n){return n.tokenize.push(e),e(t,n)}((n=r,"string",function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize.pop();break}i=!i&&"%"==r}return"string"}),e,t):"-"==r&&e.eat("-")?(e.skipToEnd(),"comment"):":"==r&&e.eat("=")?"operator":/[0-9]/.test(r)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"variable"):/[a-zA-Z_0-9]/.test(r)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"variable"):/[=+\-\/*^%<>~]/.test(r)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}const s={name:"eiffel",startState:function(){return{tokenize:[a]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t);if("variable"==n){var r=e.current();n=i.propertyIsEnumerable(e.current())?"keyword":o.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(r)?"tag":/^0[bB][0-1]+$/g.test(r)||/^0[cC][0-7]+$/g.test(r)||/^0[xX][a-fA-F0-9]+$/g.test(r)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(r)||/^[0-9]+$/g.test(r)?"number":"variable"}return n},languageData:{commentTokens:{line:"--"}}}},63488:(e,t,n)=>{"use strict";function r(e,t,n){return t(n),n(e,t)}n.r(t),n.d(t,{elm:()=>y});var i=/[a-z]/,o=/[A-Z]/,a=/[a-zA-Z0-9_]/,s=/[0-9]/,l=/[0-9A-Fa-f]/,u=/[-&*+.\\/<>=?^|:]/,c=/[(),[\]{}]/,d=/[ \v\f]/;function f(){return function(e,t){if(e.eatWhile(d))return null;var n=e.next();if(c.test(n))return"{"===n&&e.eat("-")?r(e,t,h(1)):"["===n&&e.match("glsl|")?r(e,t,v):"builtin";if("'"===n)return r(e,t,g);if('"'===n)return e.eat('"')?e.eat('"')?r(e,t,p):"string":r(e,t,m);if(o.test(n))return e.eatWhile(a),"type";if(i.test(n)){var f=1===e.pos;return e.eatWhile(a),f?"def":"variable"}if(s.test(n)){if("0"===n){if(e.eat(/[xX]/))return e.eatWhile(l),"number"}else e.eatWhile(s);return e.eat(".")&&e.eatWhile(s),e.eat(/[eE]/)&&(e.eat(/[-+]/),e.eatWhile(s)),"number"}return u.test(n)?"-"===n&&e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(u),"keyword"):"_"===n?"keyword":"error"}}function h(e){return 0==e?f():function(t,n){for(;!t.eol();){var r=t.next();if("{"==r&&t.eat("-"))++e;else if("-"==r&&t.eat("}")&&0==--e)return n(f()),"comment"}return n(h(e)),"comment"}}function p(e,t){for(;!e.eol();)if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(f()),"string";return"string"}function m(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(f()),"string"):(e.skipToEnd(),t(f()),"error")}function g(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(f()),"string"):(e.skipToEnd(),t(f()),"error")}function v(e,t){for(;!e.eol();)if("|"===e.next()&&e.eat("]"))return t(f()),"string";return"string"}var O={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const y={name:"elm",startState:function(){return{f:f()}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return O.hasOwnProperty(r)?"keyword":n},languageData:{commentTokens:{line:"--"}}}},58984:(e,t,n)=>{"use strict";n.r(t),n.d(t,{erlang:()=>R});var r=["-type","-spec","-export_type","-opaque"],i=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],o=/[\->,;]/,a=["->",";",","],s=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],l=/[\+\-\*\/<>=\|:!]/,u=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],c=/[<\(\[\{]/,d=["<<","(","[","{"],f=/[>\)\]\}]/,h=["}","]",")",">>"],p=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],m=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],g=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,v=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function O(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function y(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;01&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return C(e,{g:["{"]});case"]":return C(e,{i:["["]});case")":return C(e,{i:["("]});case">>":return C(e,{i:["<<"]});case"end":return C(e,{i:["begin","case","fun","if","receive","try"]});case",":return C(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return C(e,{r:["when"],m:["try","if","case","receive"]});case";":return C(e,{E:["case","fun","if","receive","try","when"]});case"catch":return C(e,{e:["try"]});case"of":return C(e,{e:["case"]});case"after":return C(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return S(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"macroName";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function S(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function P(e){return S(e,0,0,e)}function E(e,t){var n=e.tokenStack.length,r=t||1;return!(n({tokenStack:[],in_string:!1,in_atom:!1}),token:function(e,t){if(t.in_string)return t.in_string=!b(e),_(t,e,"string");if(t.in_atom)return t.in_atom=!w(e),_(t,e,"atom");if(e.eatSpace())return _(t,e,"whitespace");if(!E(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return x(e.current(),r)?_(t,e,"type"):_(t,e,"attribute");var n=e.next();if("%"==n)return e.skipToEnd(),_(t,e,"comment");if(":"==n)return _(t,e,"colon");if("?"==n)return e.eatSpace(),e.eatWhile(g),_(t,e,"macro");if("#"==n)return e.eatSpace(),e.eatWhile(g),_(t,e,"record");if("$"==n)return"\\"!=e.next()||e.match(v)?_(t,e,"number"):_(t,e,"error");if("."==n)return _(t,e,"dot");if("'"==n){if(!(t.in_atom=!w(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),_(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return _(t,e,"function")}return _(t,e,"atom")}if('"'==n)return t.in_string=!b(e),_(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(n))return e.eatWhile(g),_(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(n)){if(e.eatWhile(g),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),_(t,e,"fun");var k=e.current();return x(k,i)?_(t,e,"keyword"):x(k,s)?_(t,e,"operator"):e.match(/\s*\(/,!1)?!x(k,m)||":"==E(t).token&&"erlang"!=E(t,2).token?x(k,p)?_(t,e,"guard"):_(t,e,"function"):_(t,e,"builtin"):":"==function(e){var t=e.match(/^\s*([^\s%])/,!1);return t?t[1]:""}(e)?_(t,e,"erlang"==k?"builtin":"function"):x(k,["true","false"])?_(t,e,"boolean"):_(t,e,"atom")}var S=/[0-9]/;return S.test(n)?(e.eatWhile(S),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(S)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(S)||e.backUp(2):e.eatWhile(S)||e.backUp(1)):e.backUp(1)),_(t,e,"number")):O(e,c,d)?_(t,e,"open_paren"):O(e,f,h)?_(t,e,"close_paren"):y(e,o,a)?_(t,e,"separator"):y(e,l,u)?_(t,e,"operator"):_(t,e,null)},indent:function(e,t,n){var r,i,o=Q(i=t.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/))&&0===i.index?i[0]:"",a=E(e,1),s=E(e,2);return e.in_string||e.in_atom?null:s?"when"==a.token?a.column+n.unit:"when"===o&&"function"===s.type?s.indent+n.unit:"("===o&&"fun"===a.token?a.column+3:"catch"===o&&(r=T(e,["try"]))?r.column:x(o,["end","after","of"])?(r=T(e,["begin","case","fun","if","receive","try"]))?r.column:null:x(o,h)?(r=T(e,d))?r.column:null:x(a.token,[",","|","||"])||x(o,[",","|","||"])?(r=function(e){var t=e.tokenStack.slice(0,-1),n=$(t,"type",["open_paren"]);return!!Q(t[n])&&t[n]}(e))?r.column+r.token.length:n.unit:"->"==a.token?x(s.token,["receive","case","if","try"])?s.column+n.unit+n.unit:s.column+n.unit:x(a.token,d)?a.column+a.token.length:(r=function(e){var t=e.tokenStack,n=$(t,"type",["open_paren","separator","keyword"]),r=$(t,"type",["operator"]);return Q(n)&&Q(r)&&n{"use strict";n.r(t),n.d(t,{factor:()=>r});const r=(0,n(68343).Q)({start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}})},42753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fcl:()=>d});var r={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},i={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},o={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},a={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},s=/[+\-*&^%:=<>!|\/]/;function l(e,t){var n=e.next();if(/[\d\.]/.test(n))return"."==n?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==n?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==n||"("==n){if(e.eat("*"))return t.tokenize=u,u(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(s.test(n))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var l=e.current().toLowerCase();return r.propertyIsEnumerable(l)||i.propertyIsEnumerable(l)||o.propertyIsEnumerable(l)?"keyword":a.propertyIsEnumerable(l)?"atom":"variable"}function u(e,t){for(var n,r=!1;n=e.next();){if(("/"==n||")"==n)&&r){t.tokenize=l;break}r="*"==n}return"comment"}function c(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}const d={name:"fcl",startState:function(e){return{tokenize:null,context:new c(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var r=(t.tokenize||l)(e,t);if("comment"==r)return r;null==n.align&&(n.align=!0);var a=e.current().toLowerCase();return i.propertyIsEnumerable(a)?function(e,t,n){e.context=new c(e.indented,t,"end_block",null,e.context)}(t,e.column()):o.propertyIsEnumerable(a)&&function(e){e.context.prev&&("end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev)}(t),t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=l&&null!=e.tokenize)return 0;var r=e.context,i=o.propertyIsEnumerable(t);return r.align?r.column+(i?0:1):r.indented+(i?0:n.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}}},90313:(e,t,n)=>{"use strict";function r(e){var t=[];return e.split(" ").forEach((function(e){t.push({name:e})})),t}n.r(t),n.d(t,{forth:()=>s});var i=r("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),o=r("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function a(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].name===t.toUpperCase())return e[n]}const s={name:"forth",startState:function(){return{state:"",base:10,coreWordList:i,immediateWordList:o,wordList:[]}},token:function(e,t){var n;if(e.eatSpace())return null;if(""===t.state){if(e.match(/^(\]|:NONAME)(\s|$)/i))return t.state=" compilation","builtin";if(n=e.match(/^(\:)\s+(\S+)(\s|$)+/))return t.wordList.push({name:n[2].toUpperCase()}),t.state=" compilation","def";if(n=e.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return t.wordList.push({name:n[2].toUpperCase()}),"def";if(n=e.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"}else{if(e.match(/^(\;|\[)(\s)/))return t.state="",e.backUp(1),"builtin";if(e.match(/^(\;|\[)($)/))return t.state="","builtin";if(e.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(n=e.match(/^(\S+)(\s+|$)/))?void 0!==a(t.wordList,n[1])?"variable":"\\"===n[1]?(e.skipToEnd(),"comment"):void 0!==a(t.coreWordList,n[1])?"builtin":void 0!==a(t.immediateWordList,n[1])?"keyword":"("===n[1]?(e.eatWhile((function(e){return")"!==e})),e.eat(")"),"comment"):".("===n[1]?(e.eatWhile((function(e){return")"!==e})),e.eat(")"),"string"):'S"'===n[1]||'."'===n[1]||'C"'===n[1]?(e.eatWhile((function(e){return'"'!==e})),e.eat('"'),"string"):n[1]-68719476735?"number":"atom":void 0}}},78968:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0;nc});var i=r(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),o=r(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),a=r(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),s=/[+\-*&=<>\/\:]/,l=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function u(e,t){if(e.match(l))return"operator";var n,r=e.next();if("!"==r)return e.skipToEnd(),"comment";if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\),]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if(s.test(r))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_]/);var u=e.current().toLowerCase();return i.hasOwnProperty(u)?"keyword":o.hasOwnProperty(u)||a.hasOwnProperty(u)?"builtin":"variable"}const c={name:"fortran",startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||u)(e,t)}}},78923:(e,t,n)=>{"use strict";function r(e){var t=[],n="",r={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},i={};function o(e,t){for(var n,r=!1;null!=(n=e.next());){if("/"===n&&r){t.tokenize=null;break}r="*"===n}return"comment"}return"x86"===e?(n="#",i.al="variable",i.ah="variable",i.ax="variable",i.eax="variableName.special",i.rax="variableName.special",i.bl="variable",i.bh="variable",i.bx="variable",i.ebx="variableName.special",i.rbx="variableName.special",i.cl="variable",i.ch="variable",i.cx="variable",i.ecx="variableName.special",i.rcx="variableName.special",i.dl="variable",i.dh="variable",i.dx="variable",i.edx="variableName.special",i.rdx="variableName.special",i.si="variable",i.esi="variableName.special",i.rsi="variableName.special",i.di="variable",i.edi="variableName.special",i.rdi="variableName.special",i.sp="variable",i.esp="variableName.special",i.rsp="variableName.special",i.bp="variable",i.ebp="variableName.special",i.rbp="variableName.special",i.ip="variable",i.eip="variableName.special",i.rip="variableName.special",i.cs="keyword",i.ds="keyword",i.ss="keyword",i.es="keyword",i.fs="keyword",i.gs="keyword"):"arm"!==e&&"armv6"!==e||(n="@",r.syntax="builtin",i.r0="variable",i.r1="variable",i.r2="variable",i.r3="variable",i.r4="variable",i.r5="variable",i.r6="variable",i.r7="variable",i.r8="variable",i.r9="variable",i.r10="variable",i.r11="variable",i.r12="variable",i.sp="variableName.special",i.lr="variableName.special",i.pc="variableName.special",i.r13=i.sp,i.r14=i.lr,i.r15=i.pc,t.push((function(e,t){if("#"===e)return t.eatWhile(/\w/),"number"}))),{name:"gas",startState:function(){return{tokenize:null}},token:function(e,a){if(a.tokenize)return a.tokenize(e,a);if(e.eatSpace())return null;var s,l,u=e.next();if("/"===u&&e.eat("*"))return a.tokenize=o,o(e,a);if(u===n)return e.skipToEnd(),"comment";if('"'===u)return function(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'===n&&!r)return!1;r=!r&&"\\"===n}}(e),"string";if("."===u)return e.eatWhile(/\w/),l=e.current().toLowerCase(),(s=r[l])||null;if("="===u)return e.eatWhile(/\w/),"tag";if("{"===u)return"bracket";if("}"===u)return"bracket";if(/\d/.test(u))return"0"===u&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(u))return e.eatWhile(/\w/),e.eat(":")?"tag":(l=e.current().toLowerCase(),(s=i[l])||null);for(var c=0;ci,gasArm:()=>o});const i=r("x86"),o=r("arm")},8952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{gherkin:()=>r});const r={name:"gherkin",startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}},60574:(e,t,n)=>{"use strict";n.r(t),n.d(t,{go:()=>d});var r,i={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},o={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var n,u=e.next();if('"'==u||"'"==u||"`"==u)return t.tokenize=(n=u,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"`"!=n&&"\\"==r}return(o||!i&&"`"!=n)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(u))return"."==u?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==u?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(u))return r=u,null;if("/"==u){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(u))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var c=e.current();return i.propertyIsEnumerable(c)?("case"!=c&&"default"!=c||(r="case"),"keyword"):o.propertyIsEnumerable(c)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function c(e,t,n){return e.context=new u(e.indented,t,n,null,e.context)}const d={name:"go",startState:function(e){return{tokenize:null,context:new u(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==n.type&&(n.type="}")),e.eatSpace())return null;r=null;var i=(t.tokenize||s)(e,t);return"comment"==i||(null==n.align&&(n.align=!0),"{"==r?c(t,e.column(),"}"):"["==r?c(t,e.column(),"]"):"("==r?c(t,e.column(),")"):"case"==r?n.type="case":("}"==r&&"}"==n.type||r==n.type)&&function(e){if(e.context.prev){var t=e.context.type;")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}(t),t.startOfLine=!1),i},indent:function(e,t,n){if(e.tokenize!=s&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(t))return r.indented;var o=i==r.type;return r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s([{}]|case |default\s*:)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},9259:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rO});var i,o=r("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),a=r("catch class def do else enum finally for if interface switch trait try while"),s=r("return break continue"),l=r("null true false this");function u(e,t){var n=e.next();if('"'==n||"'"==n)return c(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return i=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(h),h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(p(t.lastToken,!1))return c(n,e,t)}if("-"==n&&e.eat(">"))return i="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return i="proplabel","property";var r=e.current();return l.propertyIsEnumerable(r)?"atom":o.propertyIsEnumerable(r)?(a.propertyIsEnumerable(r)?i="newstatement":s.propertyIsEnumerable(r)&&(i="standalone"),"keyword"):"variable"}function c(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,o=!1,a=!r;null!=(i=t.next());){if(i==e&&!o){if(!r)break;if(t.match(e+e)){a=!0;break}}if('"'==e&&"$"==i&&!o){if(t.eat("{"))return n.tokenize.push(d()),"string";if(t.match(/^\w/,!1))return n.tokenize.push(f),"string"}o=!o&&"\\"==i}return a&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function d(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return u(t,n)}return t.isBase=!0,t}function f(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return n?"."==n[0]?null:"variable":(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t))}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function p(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function m(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function g(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function v(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}u.isBase=!0;const O={name:"groovy",startState:function(e){return{tokenize:[u],context:new m(-e,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||p(t.lastToken,!0)||(v(t),n=t.context)),e.eatSpace())return null;i=null;var r=t.tokenize[t.tokenize.length-1](e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("->"==i&&"statement"==n.type&&"}"==n.prev.type)v(t),t.context.align=!1;else if("{"==i)g(t,e.column(),"}");else if("["==i)g(t,e.column(),"]");else if("("==i)g(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=v(t);for("}"==n.type&&(n=v(t));"statement"==n.type;)n=v(t)}else i==n.type?v(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&g(t,e.column(),"statement");else v(t);return t.startOfLine=!1,t.lastToken=i||r,r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;"statement"!=i.type||p(e.lastToken,!0)||(i=i.prev);var o=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:n.unit):i.align?i.column+(o?0:1):i.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}},39498:(e,t,n)=>{"use strict";function r(e,t,n){return t(n),n(e,t)}n.r(t),n.d(t,{haskell:()=>O});var i=/[a-z_]/,o=/[A-Z]/,a=/\d/,s=/[0-9A-Fa-f]/,l=/[0-7]/,u=/[a-z_A-Z0-9'\xa1-\uffff]/,c=/[-!#$%&*+.\/<=>?@\\^|~:]/,d=/[(),;[\]`{}]/,f=/[ \t\v\f]/;function h(e,t){if(e.eatWhile(f))return null;var n=e.next();if(d.test(n)){if("{"==n&&e.eat("-")){var h="comment";return e.eat("#")&&(h="meta"),r(e,t,p(h,1))}return null}if("'"==n)return e.eat("\\"),e.next(),e.eat("'")?"string":"error";if('"'==n)return r(e,t,m);if(o.test(n))return e.eatWhile(u),e.eat(".")?"qualifier":"type";if(i.test(n))return e.eatWhile(u),"variable";if(a.test(n)){if("0"==n){if(e.eat(/[xX]/))return e.eatWhile(s),"integer";if(e.eat(/[oO]/))return e.eatWhile(l),"number"}return e.eatWhile(a),h="number",e.match(/^\.\d+/)&&(h="number"),e.eat(/[eE]/)&&(h="number",e.eat(/[-+]/),e.eatWhile(a)),h}return"."==n&&e.eat(".")?"keyword":c.test(n)?"-"==n&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(c))?(e.skipToEnd(),"comment"):(e.eatWhile(c),"variable"):"error"}function p(e,t){return 0==t?h:function(n,r){for(var i=t;!n.eol();){var o=n.next();if("{"==o&&n.eat("-"))++i;else if("-"==o&&n.eat("}")&&0==--i)return r(h),e}return r(p(e,i)),e}}function m(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(h),"string";if("\\"==n){if(e.eol()||e.eat(f))return t(g),"string";e.eat("&")||e.next()}}return t(h),"error"}function g(e,t){return e.eat("\\")?r(e,t,m):(e.next(),t(h),"error")}var v=function(){var e={};function t(t){return function(){for(var n=0;n","@","~","=>"),t("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),t("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),t("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3"),e}();const O={name:"haskell",startState:function(){return{f:h}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return v.hasOwnProperty(r)?v[r]:n},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}}},64114:(e,t,n)=>{"use strict";function r(e){return{type:e,style:"keyword"}}n.r(t),n.d(t,{haxe:()=>ie,hxml:()=>oe});var i,o=r("keyword a"),a=r("keyword b"),s=r("keyword c"),l=r("operator"),u={type:"atom",style:"atom"},c={type:"attribute",style:"attribute"},d=r("typedef"),f={if:o,while:o,else:a,do:a,try:a,return:s,break:s,continue:s,new:s,throw:s,var:r("var"),inline:c,static:c,using:r("import"),public:c,private:c,cast:r("cast"),import:r("import"),macro:r("macro"),function:r("function"),catch:r("catch"),untyped:r("untyped"),callback:r("cb"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,never:r("property_access"),trace:r("trace"),class:d,abstract:d,enum:d,interface:d,typedef:d,extends:d,implements:d,dynamic:d,true:u,false:u,null:u},h=/[+\-*&%=<>!?|]/;function p(e,t,n){return t.tokenize=n,n(e,t)}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function g(e,t,n){return d=e,i=n,t}function v(e,t){var n=e.next();if('"'==n||"'"==n)return p(e,t,(r=n,function(e,t){return m(e,r)&&(t.tokenize=v),g("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),g("number","number");if(/\d/.test(n)||"-"==n&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),g("number","number");if(t.reAllowed&&"~"==n&&e.eat(/\//))return m(e,"/"),e.eatWhile(/[gimsu]/),g("regexp","string.special");if("/"==n)return e.eat("*")?p(e,t,O):e.eat("/")?(e.skipToEnd(),g("comment","comment")):(e.eatWhile(h),g("operator",null,e.current()));if("#"==n)return e.skipToEnd(),g("conditional","meta");if("@"==n)return e.eat(/:/),e.eatWhile(/[\w_]/),g("metadata","meta");if(h.test(n))return e.eatWhile(h),g("operator",null,e.current());if(/[A-Z]/.test(n))return e.eatWhile(/[\w_<>]/),g("type","type",i=e.current());e.eatWhile(/[\w_]/);var r,i=e.current(),o=f.propertyIsEnumerable(i)&&f[i];return o&&t.kwAllowed?g(o.type,o.style,i):g("variable","variable",i)}function O(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return g("comment","comment")}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function b(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function k(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r=0;e--)_.cc.push(arguments[e])}function P(){return S.apply(null,arguments),!0}function E(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function C(e){var t=_.state;if(t.context){if(_.marked="def",E(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(E(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var T={name:"this",next:null};function $(){_.state.context||(_.state.localVars=T),_.state.context={prev:_.state.context,vars:_.state.localVars}}function Q(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}function R(e,t){var n=function(){var n=_.state;n.lexical=new b(n.indented,_.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function A(){var e=_.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function j(e){return function t(n){return n==e?P():";"==e?S():P(t)}}function D(e){return"@"==e?P(N):"var"==e?P(R("vardef"),Z,j(";"),A):"keyword a"==e?P(R("form"),M,D,A):"keyword b"==e?P(R("form"),D,A):"{"==e?P(R("}"),$,Y,A,Q):";"==e?P():"attribute"==e?P(W):"function"==e?P(J):"for"==e?P(R("form"),j("("),R(")"),H,j(")"),A,D,A):"variable"==e?P(R("stat"),X):"switch"==e?P(R("form"),M,R("}","switch"),j("{"),Y,A,A):"case"==e?P(M,j(":")):"default"==e?P(j(":")):"catch"==e?P(R("form"),$,j("("),re,j(")"),D,A,Q):"import"==e?P(F,j(";")):"typedef"==e?P(U):S(R("stat"),M,j(";"),A)}function M(e){return y.hasOwnProperty(e)||"type"==e?P(z):"function"==e?P(J):"keyword c"==e?P(I):"("==e?P(R(")"),I,j(")"),A,z):"operator"==e?P(M):"["==e?P(R("]"),V(I,"]"),A,z):"{"==e?P(R("}"),V(B,"}"),A,z):P()}function I(e){return e.match(/[;\}\)\],]/)?S():S(M)}function z(e,t){return"operator"==e&&/\+\+|--/.test(t)?P(z):"operator"==e||":"==e?P(M):";"!=e?"("==e?P(R(")"),V(M,")"),A,z):"."==e?P(q,z):"["==e?P(R("]"),M,j("]"),A,z):void 0:void 0}function W(e){return"attribute"==e?P(W):"function"==e?P(J):"var"==e?P(Z):void 0}function N(e){return":"==e||"variable"==e?P(N):"("==e?P(R(")"),V(L,")"),A,D):void 0}function L(e){if("variable"==e)return P()}function F(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(x(t),P()):"variable"==e||"property"==e||"."==e||"*"==t?P(F):void 0}function U(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(x(t),P()):"type"==e&&/[A-Z]/.test(t.charAt(0))?P():void 0}function X(e){return":"==e?P(A,D):S(z,j(";"),A)}function q(e){if("variable"==e)return _.marked="property",P()}function B(e){if("variable"==e&&(_.marked="property"),y.hasOwnProperty(e))return P(j(":"),M)}function V(e,t){function n(r){return","==r?P(e,n):r==t?P():P(j(t))}return function(r){return r==t?P():S(e,n)}}function Y(e){return"}"==e?P():S(D,Y)}function Z(e,t){return"variable"==e?(C(t),P(ee,G)):P()}function G(e,t){return"="==t?P(M,G):","==e?P(Z):void 0}function H(e,t){return"variable"==e?(C(t),P(K,M)):S()}function K(e,t){if("in"==t)return P()}function J(e,t){return"variable"==e||"type"==e?(C(t),P(J)):"new"==t?P(J):"("==e?P(R(")"),$,V(re,")"),A,ee,D,Q):void 0}function ee(e){if(":"==e)return P(te)}function te(e){return"type"==e||"variable"==e?P():"{"==e?P(R("}"),V(ne,"}"),A):void 0}function ne(e){if("variable"==e)return P(ee)}function re(e,t){if("variable"==e)return C(t),P(ee)}Q.lex=!0,A.lex=!0;const ie={name:"haxe",startState:function(e){return{tokenize:v,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new b(-e,0,"block",!1),importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:null,indented:0}},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==d?n:(t.reAllowed=!("operator"!=d&&"keyword c"!=d&&!d.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=d,function(e,t,n,r,i){var o=e.cc;for(_.state=e,_.stream=i,_.marked=null,_.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():D)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return _.marked?_.marked:"variable"==n&&w(e,r)?"variableName.local":"variable"==n&&k(e,r)?"variableName.special":t}}(t,n,d,i,e))},indent:function(e,t,n){if(e.tokenize!=v)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var o=i.type,a=r==o;return"vardef"==o?i.indented+4:"form"==o&&"{"==r?i.indented:"stat"==o||"form"==o?i.indented+n.unit:"switch"!=i.info||a?i.align?i.column+(a?0:1):i.indented+(a?0:n.unit):i.indented+(/^(?:case|default)\b/.test(t)?n.unit:2*n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},oe={name:"hxml",startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}return n=e.peek(),0==t.inString&&"'"==n&&(t.inString=!0,e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},languageData:{commentTokens:{line:"#"}}}},96427:(e,t,n)=>{"use strict";function r(e,t){return e.skipToEnd(),t.cur=u,"error"}function i(e,t){return e.match(/^HTTP\/\d\.\d/)?(t.cur=o,"keyword"):e.match(/^[A-Z]+/)&&/[ \t]/.test(e.peek())?(t.cur=s,"keyword"):r(e,t)}function o(e,t){var n=e.match(/^\d+/);if(!n)return r(e,t);t.cur=a;var i=Number(n[0]);return i>=100&&i<400?"atom":"error"}function a(e,t){return e.skipToEnd(),t.cur=u,null}function s(e,t){return e.eatWhile(/\S/),t.cur=l,"string.special"}function l(e,t){return e.match(/^HTTP\/\d\.\d$/)?(t.cur=u,"keyword"):r(e,t)}function u(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function c(e){return e.skipToEnd(),null}n.r(t),n.d(t,{http:()=>d});const d={name:"http",token:function(e,t){var n=t.cur;return n!=u&&n!=c&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=c},startState:function(){return{cur:i}}}},78074:(e,t,n)=>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}n.r(t),n.d(t,{idl:()=>d});var i=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],o=r(i),a=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],s=r(a),l=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i"),u=/[+\-*&=<>\/@#~$]/,c=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");const d={name:"idl",token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(s)?"keyword":e.match(o)?"builtin":e.match(l)?"variable":e.match(u)||e.match(c)?"operator":(e.next(),null)}(e)},languageData:{autocomplete:i.concat(a)}}},53398:(e,t,n)=>{"use strict";n.r(t),n.d(t,{jinja2:()=>u});var r=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],i=/^[+\-*&%=<>!?|~^]/,o=/^[:\[\(\{]/,a=["true","false"],s=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function l(e,t){var n=e.peek();if(t.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),t.incomment=!1):e.skipToEnd(),"comment";if(t.intag){if(t.operator){if(t.operator=!1,e.match(a))return"atom";if(e.match(s))return"number"}if(t.sign){if(t.sign=!1,e.match(a))return"atom";if(e.match(s))return"number"}if(t.instring)return n==t.instring&&(t.instring=!1),e.next(),"string";if("'"==n||'"'==n)return t.instring=n,e.next(),"string";if(t.inbraces>0&&")"==n)e.next(),t.inbraces--;else if("("==n)e.next(),t.inbraces++;else if(t.inbrackets>0&&"]"==n)e.next(),t.inbrackets--;else if("["==n)e.next(),t.inbrackets++;else{if(!t.lineTag&&(e.match(t.intag+"}")||e.eat("-")&&e.match(t.intag+"}")))return t.intag=!1,"tag";if(e.match(i))return t.operator=!0,"operator";if(e.match(o))t.sign=!0;else{if(1==e.column()&&t.lineTag&&e.match(r))return"keyword";if(e.eat(" ")||e.sol()){if(e.match(r))return"keyword";if(e.match(a))return"atom";if(e.match(s))return"number";e.sol()&&e.next()}else e.next()}}return"variable"}if(e.eat("{")){if(e.eat("#"))return t.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),t.incomment=!1):e.skipToEnd(),"comment";if(n=e.eat(/\{|%/))return t.intag=n,t.inbraces=0,t.inbrackets=0,"{"==n&&(t.intag="}"),e.eat("-"),"tag"}else if(e.eat("#")){if("#"==e.peek())return e.skipToEnd(),"comment";if(!e.eol())return t.intag=!0,t.lineTag=!0,t.inbraces=0,t.inbrackets=0,"tag"}e.next()}r=new RegExp("(("+r.join(")|(")+"))\\b"),a=new RegExp("(("+a.join(")|(")+"))\\b");const u={name:"jinja2",startState:function(){return{tokenize:l,inbrackets:0,inbraces:0}},token:function(e,t){var n=t.tokenize(e,t);return e.eol()&&t.lineTag&&!t.instring&&0==t.inbraces&&0==t.inbrackets&&(t.intag=!1,t.lineTag=!1),n},languageData:{commentTokens:{block:{open:"{#",close:"#}",line:"##"}}}}},41254:(e,t,n)=>{"use strict";function r(e,t,n){return void 0===n&&(n=""),void 0===t&&(t="\\b"),new RegExp("^"+n+"(("+e.join(")|(")+"))"+t)}n.r(t),n.d(t,{julia:()=>P});var i=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],o=r(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),a=/^[;,()[\]{}]/,s=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,l=r(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),u=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],c=["true","false","nothing","NaN","Inf"],d=r(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),f=r(["end","else","elseif","catch","finally"]),h=r(u),p=r(c),m=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,g=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,v=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,O=r(i,"","@"),y=r(i,"",":");function b(e){return e.nestedArrays>0}function w(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function k(e,t){if(e.match("#=",!1))return t.tokenize=_,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r,i,l=e.peek();if("#"===l)return e.skipToEnd(),"comment";if("["===l&&(t.scopes.push("["),t.nestedArrays++),"("===l&&(t.scopes.push("("),t.nestedGenerators++),b(t)&&"]"===l){for(;t.scopes.length&&"["!==w(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===l){for(;t.scopes.length&&"("!==w(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(b(t)){if("end"==t.lastToken&&e.match(":"))return"operator";if(e.match("end"))return"number"}if((r=e.match(d,!1))&&t.scopes.push(r[0]),e.match(f,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=x,t.tokenize(e,t);if(!n&&(e.match(g)||e.match(y)))return"builtin";if(e.match(o))return"operator";if(e.match(/^\.?\d/,!1)){var u=RegExp(/^im\b/),c=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(c=!0),e.match(/^0x[0-9a-f_]+/i)&&(c=!0),e.match(/^0b[01_]+/i)&&(c=!0),e.match(/^0o[0-7_]+/i)&&(c=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(c=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(c=!0),c)return e.match(u),t.leavingExpr=!0,"number"}if(e.match("'"))return t.tokenize=S,t.tokenize(e,t);if(e.match(v))return t.tokenize=('"""'===(i=e.current()).substr(-3)?i='"""':'"'===i.substr(-1)&&(i='"'),function(e,t){if(e.eat("\\"))e.next();else{if(e.match(i))return t.tokenize=k,t.leavingExpr=!0,"string";e.eat(/[`"]/)}return e.eatWhile(/[^\\`"]/),"string"}),t.tokenize(e,t);if(e.match(m)||e.match(O))return"meta";if(e.match(a))return null;if(e.match(h))return"keyword";if(e.match(p))return"builtin";var P=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(s)?P?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function x(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?t.nestedParameters++:e.match("}")&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=k),"builtin"}function _(e,t){return e.match("#=")&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=k)),"comment"}function S(e,t){var n,r=!1;if(e.match(l))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i))((i=parseInt(n[1],16))<=55295||i>=57344)&&(r=!0,e.next());else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i;(i=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=k,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(t.tokenize=k),"error")}const P={name:"julia",startState:function(){return{tokenize:k,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,t,n){var r=0;return("]"===t||")"===t||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t))&&(r=-1),(e.scopes.length+r)*n.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:u.concat(c)}}},94813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{liveScript:()=>p});var r=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=l[n];if(r.splice){for(var i=0;i|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+i+")?))\\s*$"),a="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",s={token:"string",regex:".+"},l={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+a},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+a},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+a},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+a},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+a},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+a},{token:"variableName",regex:i+"\\s*:(?![:=])"},{token:"variableName",regex:i},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:i,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},s],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},s],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},s],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},s],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},s],words:[{token:"string",regex:".*?\\]>",next:"key"},s]};for(var u in l){var c=l[u];if(c.splice)for(var d=0,f=c.length;d{"use strict";function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{lua:()=>f});var i=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),o=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),a=r(["function","if","repeat","do","\\(","{"]),s=r(["end","until","\\)","}"]),l=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function u(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function c(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=d(u(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=c),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=d(u(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function d(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=c;break}o=null}return t}}const f={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:c}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(o.test(r)?n="keyword":i.test(r)&&(n="builtin")),"comment"!=n&&"string"!=n&&(a.test(r)?++t.indentDepth:s.test(r)&&--t.indentDepth),n},indent:function(e,t,n){var r=l.test(t);return e.basecol+n.unit*(e.indentDepth-(r?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}}},53756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mathematica:()=>f});var r="[a-zA-Z\\$][a-zA-Z0-9\\$]*",i="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",o="(?:`(?:`?"+i+")?)",a=new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+o+"?(?:\\*\\^[+-]?\\d+)?))"),s=new RegExp("(?:"+i+o+"?(?:\\*\\^[+-]?\\d+)?)"),l=new RegExp("(?:`?)(?:"+r+")(?:`(?:"+r+"))*(?:`?)");function u(e,t){var n;return'"'===(n=e.next())?(t.tokenize=c,t.tokenize(e,t)):"("===n&&e.eat("*")?(t.commentLevel++,t.tokenize=d,t.tokenize(e,t)):(e.backUp(1),e.match(a,!0,!1)||e.match(s,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string.special":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variableName.special":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"character":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variableName.constant":e.match(l,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function c(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=u),"string"}function d(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=u),"comment"}const f={name:"mathematica",startState:function(){return{tokenize:u,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}}},20214:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mbox:()=>p});var r=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],i=["Date","Subject","Comments","Keywords","Resent-Date"],o=/^[ \t]/,a=/^From /,s=new RegExp("^("+r.join("|")+"): "),l=new RegExp("^("+i.join("|")+"): "),u=/^[^:]+:/,c=/^[^ ]+@[^ ]+/,d=/^.*?(?=[^ ]+?@[^ ]+)/,f=/^<.*?>/,h=/^.*?(?=<.*>)/;const p={name:"mbox",startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:function(e,t){if(e.sol()){if(t.inSeparator=!1,t.inHeader&&e.match(o))return null;if(t.inHeader=!1,t.header=null,e.match(a))return t.inHeaders=!0,t.inSeparator=!0,"atom";var n,r=!1;return(n=e.match(l))||(r=!0)&&(n=e.match(s))?(t.inHeaders=!0,t.inHeader=!0,t.emailPermitted=r,t.header=n[1],"atom"):t.inHeaders&&(n=e.match(u))?(t.inHeader=!0,t.emailPermitted=!0,t.header=n[1],"atom"):(t.inHeaders=!1,e.skipToEnd(),null)}if(t.inSeparator)return e.match(c)?"link":(e.match(d)||e.skipToEnd(),"atom");if(t.inHeader){var i=function(e){return"Subject"===e?"header":"string"}(t.header);if(t.emailPermitted){if(e.match(f))return i+" link";if(e.match(h))return i}return e.skipToEnd(),i}return e.skipToEnd(),null},blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1},languageData:{autocomplete:r.concat(i)}}},86794:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rf});var i=r("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),o=r("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),a=r("if elseif else and not or eq ne in ni for foreach while switch"),s=/[+\-*&%=<>!?^\/\|]/;function l(e,t,n){return t.tokenize=n,n(e,t)}function u(e,t){var n=t.beforeParams;t.beforeParams=!1;var r=e.next();if(/[\[\]{}\(\),\.]/.test(r))return"("==r&&n?t.inParams=!0:")"==r&&(t.inParams=!1),null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("\\"==r)return e.eat("\\"),e.eat(/./),"number";if("/"==r&&e.eat("*"))return l(e,t,c);if(";"==r&&e.match(/ *\( *\(/))return l(e,t,d);if(";"!=r||t.inParams){if('"'==r)return e.eat(/"/),"keyword";if("$"==r)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),i&&i.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(t.beforeParams=!0,"builtin");if("%"==r)return e.eatWhile(/[^,\s()]/),t.beforeParams=!0,"string";if(s.test(r))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_{}]/);var u=e.current().toLowerCase();return o&&o.propertyIsEnumerable(u)?"keyword":a&&a.propertyIsEnumerable(u)?(t.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function c(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=u;break}r="*"==n}return"comment"}function d(e,t){for(var n,r=0;n=e.next();){if(";"==n&&2==r){t.tokenize=u;break}")"==n?r++:" "!=n&&(r=0)}return"meta"}const f={name:"mirc",startState:function(){return{tokenize:u,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},39038:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rO});var i=r("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),o=r("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),a=r("Real Boolean Integer String"),s=[].concat(Object.keys(i),Object.keys(o),Object.keys(a)),l=/[;=\(:\),{}.*<>+\-\/^\[\]]/,u=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,c=/[0-9]/,d=/[_a-zA-Z]/;function f(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function h(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function p(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function m(e,t){for(e.eatWhile(c);e.eat(c)||e.eat(d););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"builtin":a.propertyIsEnumerable(n)?"atom":"variable"}function g(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function v(e,t){return e.eatWhile(c),e.eat(".")&&e.eatWhile(c),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(c)),t.tokenize=null,t.sol=!1,"number"}const O={name:"modelica",startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=f;else if("/"==n&&e.eat("*"))t.tokenize=h;else{if(u.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(l.test(n))return t.tokenize=null,"operator";if(d.test(n))t.tokenize=m;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=g;else if('"'==n)t.tokenize=p;else{if(!c.test(n))return t.tokenize=null,"error";t.tokenize=v}}return t.tokenize(e,t)},indent:function(e,t,n){if(null!=e.tokenize)return null;var r=e.level;return/(algorithm)/.test(t)&&r--,/(equation)/.test(t)&&r--,/(initial algorithm)/.test(t)&&r--,/(initial equation)/.test(t)&&r--,/(end)/.test(t)&&r--,r>0?n.unit*r:0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:s}}},94782:(e,t,n)=>{"use strict";function r(e){return{name:"mscgen",startState:u,copyState:c,token:(t=e,function(e,n){if(e.match(l(t.brackets),!0,!0))return"bracket";if(!n.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return n.inComment=!0,"comment";if(e.match(l(t.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(n.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?n.inComment=!1:e.skipToEnd(),"comment";if(!n.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return n.inString=!0,"string";if(n.inString)return e.match(/[^\"]*\"/,!0,!0)?n.inString=!1:e.skipToEnd(),"string";if(t.keywords&&e.match(s(t.keywords),!0,!0))return"keyword";if(e.match(s(t.options),!0,!0))return"keyword";if(e.match(s(t.arcsWords),!0,!0))return"keyword";if(e.match(l(t.arcsOthers),!0,!0))return"keyword";if(t.operators&&e.match(l(t.operators),!0,!0))return"operator";if(t.constants&&e.match(l(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&t.attributes&&e.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(null!==t.attributes&&e.match(s(t.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return e.next(),null}),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}};var t}n.r(t),n.d(t,{mscgen:()=>i,msgenny:()=>o,xu:()=>a});const i=r({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),o=r({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),a=r({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function s(e){return new RegExp("^\\b("+e.join("|")+")\\b","i")}function l(e){return new RegExp("^(?:"+e.join("|")+")","i")}function u(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function c(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}},26850:(e,t,n)=>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}n.r(t),n.d(t,{mumps:()=>d});var i=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),o=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),a=new RegExp("^[\\.,:]"),s=new RegExp("[()]"),l=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),u=r(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),c=r(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);const d={name:"mumps",startState:function(){return{label:!1,commandMode:0}},token:function(e,t){var n=function(e,t){e.sol()&&(t.label=!0,t.commandMode=0);var n=e.peek();return" "==n||"\t"==n?(t.label=!1,0==t.commandMode?t.commandMode=1:(t.commandMode<0||2==t.commandMode)&&(t.commandMode=0)):"."!=n&&t.commandMode>0&&(t.commandMode=":"==n?-1:2),"("!==n&&"\t"!==n||(t.label=!1),";"===n?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==n?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(o)||e.match(i)?"operator":e.match(a)?null:s.test(n)?(e.next(),"bracket"):t.commandMode>0&&e.match(c)?"controlKeyword":e.match(u)?"builtin":e.match(l)?"variable":"$"===n||"^"===n?(e.next(),"builtin"):"@"===n?(e.next(),"string.special"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,t);return t.label?"tag":n}}},32290:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rf});var i,o=r("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),a=r("http mail events server types location upstream charset_map limit_except if geo map"),s=r("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files");function l(e,t){return i=t,e}function u(e,t){e.eatWhile(/[\w\$_]/);var n=e.current();if(o.propertyIsEnumerable(n))return"keyword";if(a.propertyIsEnumerable(n))return"controlKeyword";if(s.propertyIsEnumerable(n))return"controlKeyword";var r,i=e.next();return"@"==i?(e.eatWhile(/[\w\\\-]/),l("meta",e.current())):"/"==i&&e.eat("*")?(t.tokenize=c,c(e,t)):"<"==i&&e.eat("!")?(t.tokenize=d,d(e,t)):"="!=i?"~"!=i&&"|"!=i||!e.eat("=")?'"'==i||"'"==i?(t.tokenize=(r=i,function(e,t){for(var n,i=!1;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=u),l("string","string")}),t.tokenize(e,t)):"#"==i?(e.skipToEnd(),l("comment","comment")):"!"==i?(e.match(/^\s*\w*/),l("keyword","important")):/\d/.test(i)?(e.eatWhile(/[\w.%]/),l("number","unit")):/[,.+>*\/]/.test(i)?l(null,"select-op"):/[;{}:\[\]]/.test(i)?l(null,i):(e.eatWhile(/[\w\\\-]/),l("variable","variable")):l(null,"compare"):void l(null,"compare")}function c(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=u;break}r="*"==n}return l("comment","comment")}function d(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=u;break}r="-"==n?r+1:0}return l("comment","comment")}const f={name:"nginx",startState:function(){return{tokenize:u,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;i=null;var n=t.tokenize(e,t),r=t.stack[t.stack.length-1];return"hash"==i&&"rule"==r?n="atom":"variable"==n&&("rule"==r?n="number":r&&"@media{"!=r||(n="tag")),"rule"==r&&/^[\{\};]$/.test(i)&&t.stack.pop(),"{"==i?"@media"==r?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==i?t.stack.pop():"@media"==i?t.stack.push("@media"):"{"==r&&"comment"!=i&&t.stack.push("rule"),n},indent:function(e,t,n){var r=e.stack.length;return/^\}/.test(t)&&(r-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+r*n.unit},languageData:{indentOnInput:/^\s*\}$/}}},93204:(e,t,n)=>{"use strict";n.r(t),n.d(t,{nsis:()=>r});const r=(0,n(68343).Q)({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}})},84895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ntriples:()=>i});function r(e,t){var n,r=e.location;n=0==r&&"<"==t?1:0==r&&"_"==t?2:3==r&&"<"==t?4:5==r&&"<"==t?6:5==r&&"_"==t?7:5==r&&'"'==t?8:1==r&&">"==t||2==r&&" "==t?3:4==r&&">"==t?5:6==r&&">"==t||7==r&&" "==t||8==r&&'"'==t||9==r&&" "==t||10==r&&">"==t?11:8==r&&"@"==t?9:8==r&&"^"==t?10:" "!=t||0!=r&&3!=r&&5!=r&&11!=r?11==r&&"."==t?0:12:r,e.location=n}const i={name:"ntriples",startState:function(){return{location:0,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,t){var n=e.next();if("<"==n){r(t,n);var i="";return e.eatWhile((function(e){return"#"!=e&&">"!=e&&(i+=e,!0)})),t.uris.push(i),e.match("#",!1)||(e.next(),r(t,">")),"variable"}if("#"==n){var o="";return e.eatWhile((function(e){return">"!=e&&" "!=e&&(o+=e,!0)})),t.anchors.push(o),"url"}if(">"==n)return r(t,">"),"variable";if("_"==n){r(t,n);var a="";return e.eatWhile((function(e){return" "!=e&&(a+=e,!0)})),t.bnodes.push(a),e.next(),r(t," "),"builtin"}if('"'==n)return r(t,n),e.eatWhile((function(e){return'"'!=e})),e.next(),"@"!=e.peek()&&"^"!=e.peek()&&r(t,'"'),"string";if("@"==n){r(t,"@");var s="";return e.eatWhile((function(e){return" "!=e&&(s+=e,!0)})),t.langs.push(s),e.next(),r(t," "),"string.special"}if("^"==n){e.next(),r(t,"^");var l="";return e.eatWhile((function(e){return">"!=e&&(l+=e,!0)})),t.types.push(l),e.next(),r(t,">"),"variable"}" "==n&&r(t,n),"."==n&&r(t,n)}}},21798:(e,t,n)=>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{octave:()=>g});var i=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),o=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),a=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),s=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=new RegExp("^((>>=)|(<<=))"),u=new RegExp("^[\\]\\)]"),c=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),d=r(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),f=r(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function h(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=m,m(e,t)):(e.next(),t.tokenize=m,"operator")}function p(e,t){return e.match(/^.*%}/)?(t.tokenize=m,"comment"):(e.skipToEnd(),"comment")}function m(e,t){if(e.eatSpace())return null;if(e.match("%{"))return t.tokenize=p,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=m,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(r(["nan","NaN","inf","Inf"])))return"number";var n=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return n?n[1]?"string":"error":e.match(f)?"keyword":e.match(d)?"builtin":e.match(c)?"variable":e.match(i)||e.match(a)?"operator":e.match(o)||e.match(s)||e.match(l)?null:e.match(u)?(t.tokenize=h,null):(e.next(),"error")}const g={name:"octave",startState:function(){return{tokenize:m}},token:function(e,t){var n=t.tokenize(e,t);return"number"!==n&&"variable"!==n||(t.tokenize=h),n},languageData:{commentTokens:{line:"%"}}}},93816:(e,t,n)=>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{oz:()=>y});var i=/[\^@!\|<>#~\.\*\-\+\\/,=]/,o=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,a=/(:::)|(\.\.\.)|(=<:)|(>=:)/,s=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],l=["end"],u=r(["true","false","nil","unit"]),c=r(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),d=r(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),f=r(s),h=r(l);function p(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(a)||e.match(o))return"operator";if(e.match(u))return"atom";var n=e.match(d);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=v:"class"==n[0]?t.tokenize=m:"meth"==n[0]&&(t.tokenize=g),"keyword";if(e.match(f)||e.match(c))return"keyword";if(e.match(h))return t.currentIndent--,"keyword";var r,s=e.next();if('"'==s||"'"==s)return t.tokenize=(r=s,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return!o&&i||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[~\d]/.test(s)){if("~"==s){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==s&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==s?(e.skipToEnd(),"comment"):"/"==s&&e.eat("*")?(t.tokenize=O,O(e,t)):i.test(s)?"operator":(e.eatWhile(/\w/),"variable")}function m(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"type")}function g(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"def")}function v(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=p,"def"):(t.tokenize=p,null)}function O(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}const y={name:"oz",startState:function(){return{tokenize:p,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(h)||r.match(f)||r.match(/(\[])/)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{indentOnInut:(b=s.concat(l),new RegExp("[\\[\\]]|("+b.join("|")+")$")),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}};var b},68948:(e,t,n)=>{"use strict";n.r(t),n.d(t,{pascal:()=>u});var r=function(e){for(var t={},n="absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write".split(" "),r=0;r!?|\/]/;function a(e,t){var n,a=e.next();if("#"==a&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==a||"'"==a)return t.tokenize=(n=a,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=null),"string"}),t.tokenize(e,t);if("("==a&&e.eat("*"))return t.tokenize=s,s(e,t);if("{"==a)return t.tokenize=l,l(e,t);if(/[\[\]\(\),;\:\.]/.test(a))return null;if(/\d/.test(a))return e.eatWhile(/[\w\.]/),"number";if("/"==a&&e.eat("/"))return e.skipToEnd(),"comment";if(o.test(a))return e.eatWhile(o),"operator";e.eatWhile(/[\w\$_]/);var u=e.current();return r.propertyIsEnumerable(u)?"keyword":i.propertyIsEnumerable(u)?"atom":"variable"}function s(e,t){for(var n,r=!1;n=e.next();){if(")"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function l(e,t){for(var n;n=e.next();)if("}"==n){t.tokenize=null;break}return"comment"}const u={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||a)(e,t)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}}},26375:(e,t,n)=>{"use strict";function r(e,t){return e.string.charAt(e.pos+(t||0))}function i(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function o(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t=(n=e.string.length-1)?e.pos=n:e.pos=r}n.r(t),n.d(t,{perl:()=>h});var s={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},l="string.special",u=/[goseximacplud]/;function c(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=f,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function d(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=f),e.skipToEnd(),"string"},t.tokenize(e,t)}function f(e,t){if(e.eatSpace())return null;if(t.chain)return c(e,t,t.chain,t.style,t.tail);if(e.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=[_a-zA-Z])/))return e.eatWhile(/\w/),d(e,t,e.current().substr(2));if(e.sol()&&e.match(/^\=item(?!\w)/))return d(e,t,"=cut");var n=e.next();if('"'==n||"'"==n){if(i(e,3)=="<<"+n){var f=e.pos;e.eatWhile(/\w/);var h=e.current().substr(1);if(h&&e.eat(n))return d(e,t,h);e.pos=f}return c(e,t,[n],"string")}if(!("q"!=n||(p=r(e,-2))&&/\w/.test(p)))if("x"==(p=r(e,0))){if("("==(p=r(e,1)))return a(e,2),c(e,t,[")"],l,u);if("["==p)return a(e,2),c(e,t,["]"],l,u);if("{"==p)return a(e,2),c(e,t,["}"],l,u);if("<"==p)return a(e,2),c(e,t,[">"],l,u);if(/[\^'"!~\/]/.test(p))return a(e,1),c(e,t,[e.eat(p)],l,u)}else if("q"==p){if("("==(p=r(e,1)))return a(e,2),c(e,t,[")"],"string");if("["==p)return a(e,2),c(e,t,["]"],"string");if("{"==p)return a(e,2),c(e,t,["}"],"string");if("<"==p)return a(e,2),c(e,t,[">"],"string");if(/[\^'"!~\/]/.test(p))return a(e,1),c(e,t,[e.eat(p)],"string")}else if("w"==p){if("("==(p=r(e,1)))return a(e,2),c(e,t,[")"],"bracket");if("["==p)return a(e,2),c(e,t,["]"],"bracket");if("{"==p)return a(e,2),c(e,t,["}"],"bracket");if("<"==p)return a(e,2),c(e,t,[">"],"bracket");if(/[\^'"!~\/]/.test(p))return a(e,1),c(e,t,[e.eat(p)],"bracket")}else if("r"==p){if("("==(p=r(e,1)))return a(e,2),c(e,t,[")"],l,u);if("["==p)return a(e,2),c(e,t,["]"],l,u);if("{"==p)return a(e,2),c(e,t,["}"],l,u);if("<"==p)return a(e,2),c(e,t,[">"],l,u);if(/[\^'"!~\/]/.test(p))return a(e,1),c(e,t,[e.eat(p)],l,u)}else if(/[\^'"!~\/(\[{<]/.test(p)){if("("==p)return a(e,1),c(e,t,[")"],"string");if("["==p)return a(e,1),c(e,t,["]"],"string");if("{"==p)return a(e,1),c(e,t,["}"],"string");if("<"==p)return a(e,1),c(e,t,[">"],"string");if(/[\^'"!~\/]/.test(p))return c(e,t,[e.eat(p)],"string")}if("m"==n&&(!(p=r(e,-2))||!/\w/.test(p))&&(p=e.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(p))return c(e,t,[p],l,u);if("("==p)return c(e,t,[")"],l,u);if("["==p)return c(e,t,["]"],l,u);if("{"==p)return c(e,t,["}"],l,u);if("<"==p)return c(e,t,[">"],l,u)}if("s"==n&&!(p=/[\/>\]})\w]/.test(r(e,-2)))&&(p=e.eat(/[(\[{<\^'"!~\/]/)))return c(e,t,"["==p?["]","]"]:"{"==p?["}","}"]:"<"==p?[">",">"]:"("==p?[")",")"]:[p,p],l,u);if("y"==n&&!(p=/[\/>\]})\w]/.test(r(e,-2)))&&(p=e.eat(/[(\[{<\^'"!~\/]/)))return c(e,t,"["==p?["]","]"]:"{"==p?["}","}"]:"<"==p?[">",">"]:"("==p?[")",")"]:[p,p],l,u);if("t"==n&&!(p=/[\/>\]})\w]/.test(r(e,-2)))&&(p=e.eat("r"))&&(p=e.eat(/[(\[{<\^'"!~\/]/)))return c(e,t,"["==p?["]","]"]:"{"==p?["}","}"]:"<"==p?[">",">"]:"("==p?[")",")"]:[p,p],l,u);if("`"==n)return c(e,t,[n],"builtin");if("/"==n)return/~\s*$/.test(i(e))?c(e,t,[n],l,u):"operator";if("$"==n){if(f=e.pos,e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"builtin";e.pos=f}if(/[$@%]/.test(n)){if(f=e.pos,e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(r(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var p=e.current();if(s[p])return"builtin"}e.pos=f}if(/[$@%&]/.test(n)&&(e.eatWhile(/[\w$]/)||e.eat("{")&&e.eatWhile(/[\w$]/)&&e.eat("}")))return p=e.current(),s[p]?"builtin":"variable";if("#"==n&&"$"!=r(e,-2))return e.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(n)){if(f=e.pos,e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),s[e.current()])return"operator";e.pos=f}if("_"==n&&1==e.pos){if("_END__"==o(e,6))return c(e,t,["\0"],"comment");if("_DATA__"==o(e,7))return c(e,t,["\0"],"builtin");if("_C__"==o(e,7))return c(e,t,["\0"],"string")}if(/\w/.test(n)){if(f=e.pos,"{"==r(e,-2)&&("}"==r(e,0)||e.eatWhile(/\w/)&&"}"==r(e,0)))return"string";e.pos=f}if(/[A-Z]/.test(n)){var m=r(e,-2);if(f=e.pos,e.eatWhile(/[A-Z_]/),!/[\da-z]/.test(r(e,0)))return(p=s[e.current()])?(p[1]&&(p=p[0]),":"!=m?1==p?"keyword":2==p?"def":3==p?"atom":4==p?"operator":5==p?"builtin":"meta":"meta"):"meta";e.pos=f}return/[a-zA-Z_]/.test(n)?(m=r(e,-2),e.eatWhile(/\w/),(p=s[e.current()])?(p[1]&&(p=p[0]),":"!=m?1==p?"keyword":2==p?"def":3==p?"atom":4==p?"operator":5==p?"builtin":"meta":"meta"):"meta"):null}const h={name:"perl",startState:function(){return{tokenize:f,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||f)(e,t)},languageData:{commentTokens:{line:"#"},wordChars:"$"}}},53410:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rp});var i="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",o="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",a="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ",s=r(i),l=r(o),u=r(a),c=/[*+\-%<>=&?:\/!|]/;function d(e,t,n){return t.tokenize=n,n(e,t)}function f(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=h;break}r="*"==n}return"comment"}function h(e,t){var n,r=e.next();return'"'==r||"'"==r?d(e,t,(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=h),"error"})):/[\[\]{}\(\),;\.]/.test(r)?null:/\d/.test(r)?(e.eatWhile(/[\w\.]/),"number"):"/"==r?e.eat("*")?d(e,t,f):(e.eatWhile(c),"operator"):"-"==r?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(c),"operator"):c.test(r)?(e.eatWhile(c),"operator"):(e.eatWhile(/[\w\$_]/),l&&l.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":s&&s.propertyIsEnumerable(e.current().toUpperCase())?"builtin":u&&u.propertyIsEnumerable(e.current().toUpperCase())?"type":"variable")}const p={name:"pig",startState:function(){return{tokenize:h,startOfLine:!0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{autocomplete:(i+a+o).split(" ")}}},69144:(e,t,n)=>{"use strict";function r(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;ik});var i="(?=[^A-Za-z\\d\\-_]|$)",o=/[\w\-:]/,a=r([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:i}),s=r(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),l=r([s,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),u=r([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),c=r([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),d={keyword:a,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:l,builtin:r([/[A-Z]:|%|\?/i,u,c],{suffix:i}),punctuation:/[\[\]{},;`\\\.]|@[({]/,variable:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function f(e,t){var n=t.returnStack[t.returnStack.length-1];if(n&&n.shouldReturnFrom(t))return t.tokenize=n.tokenize,t.returnStack.pop(),t.tokenize(e,t);if(e.eatSpace())return null;if(e.eat("("))return t.bracketNesting+=1,"punctuation";if(e.eat(")"))return t.bracketNesting-=1,"punctuation";for(var r in d)if(e.match(d[r]))return r;var i=e.next();if("'"===i)return function(e,t){for(var n;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=f,"string";return"error"}(e,t);if("$"===i)return y(e,t);if('"'===i)return h(e,t);if("<"===i&&e.eat("#"))return t.tokenize=O,O(e,t);if("#"===i)return e.skipToEnd(),"comment";if("@"===i){var a=e.eat(/["']/);if(a&&e.eol())return t.tokenize=w,t.startQuote=a[0],w(e,t);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(o))return y(e,t)}return"error"}function h(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=p,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=f,"string"}else e.next()}return"error"}function p(e,t){return v(e,t,h)}function m(e,t){return t.tokenize=w,t.startQuote='"',w(e,t)}function g(e,t){return v(e,t,m)}function v(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=f,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=y,t.tokenize(e,t)}function O(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=f;break}r="#"===n}return"comment"}function y(e,t){var n=e.peek();return e.eat("{")?(t.tokenize=b,b(e,t)):null!=n&&n.match(o)?(e.eatWhile(o),t.tokenize=f,"variable"):(t.tokenize=f,"error")}function b(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=f;break}return"variable"}function w(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=f;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=g,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}const k={name:"powershell",startState:function(){return{returnStack:[],bracketNesting:0,tokenize:f}},token:function(e,t){return t.tokenize(e,t)},languageData:{commentTokens:{line:"#",block:{open:"<#",close:"#>"}}}}},15859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{properties:()=>r});const r={name:"properties",token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}},68478:(e,t,n)=>{"use strict";n.r(t),n.d(t,{protobuf:()=>a});var r=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],i=new RegExp("^(("+r.join(")|(")+"))\\b","i"),o=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");const a={name:"protobuf",token:function(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(i)?"keyword":e.match(o)?"variable":(e.next(),null)},languageData:{autocomplete:r}}},91782:(e,t,n)=>{"use strict";n.r(t),n.d(t,{puppet:()=>s});var r={},i=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function o(e,t){for(var n=t.split(" "),i=0;i.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),l=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),u=e.next();if("$"===u)return e.match(i)?t.continueString?"variableName.special":"variable":"error";if(t.continueString)return e.backUp(1),a(e,t);if(t.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),t.inDefinition=!1}return t.inInclude?(e.match(/(\s+)?\S+(\s+)?/),t.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):o?(e.match(/(\s+)?\w+/),"tag"):n&&r.hasOwnProperty(n)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(t.inDefinition=!0),"include"==n&&(t.inInclude=!0),r[n]):/(^|\s+)[A-Z][\w:_]+/.test(n)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):l?(e.match(/(\s+)?[@]{1,2}/),"atom"):"#"==u?(e.skipToEnd(),"comment"):"'"==u||'"'==u?(t.pending=u,a(e,t)):"{"==u||"}"==u?"bracket":"/"==u?(e.match(/^[^\/]*\//),"string.special"):u.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):"="==u?(">"==e.peek()&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}(e,t)}}},61164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{q:()=>h});var r,i=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),o=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function a(e,t){var n=e.sol(),l=e.next();if(r=null,n){if("/"==l)return(t.tokenize=s)(e,t);if("\\"==l)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(t.tokenize=u)(e):t.tokenize=a,"comment"):(t.tokenize=a,"builtin")}if(/\s/.test(l))return"/"==e.peek()?(e.skipToEnd(),"comment"):"null";if('"'==l)return(t.tokenize=c)(e,t);if("`"==l)return e.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==l&&/\d/.test(e.peek())||/\d/.test(l)){var d=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?d="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(d="number"),!d||(l=e.peek())&&!o.test(l)?(e.next(),"error"):d}return/[A-Za-z]|\./.test(l)?(e.eatWhile(/[A-Za-z._\d]/),i.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(l)||/[{}\(\[\]\)]/.test(l)?null:"error"}function s(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=l)(e,t):t.tokenize=a,"comment"}function l(e,t){var n=e.sol()&&"\\"==e.peek();return e.skipToEnd(),n&&/^\\\s*$/.test(e.current())&&(t.tokenize=a),"comment"}function u(e){return e.skipToEnd(),"comment"}function c(e,t){for(var n,r=!1,i=!1;n=e.next();){if('"'==n&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=a),"string"}function d(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function f(e){e.indent=e.context.indent,e.context=e.context.prev}const h={name:"q",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,t){e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation());var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)d(t,")",e.column());else if("["==r)d(t,"]",e.column());else if("{"==r)d(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)f(t);t.context&&r==t.context.type&&f(t)}else"."==r&&t.context&&"pattern"==t.context.type?f(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?d(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0}}},95098:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0;nv});var i,o=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],a=["list","quote","bquote","eval","return","call","parse","deparse"],s=["if","else","repeat","while","function","for","in","next","break"],l=r(o),u=r(a),c=r(s),d=r(["if","else","repeat","while","function","for"]),f=/[+\-*\/^<>=!&|~$:]/;function h(e,t){i=null;var n,r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=(n=r,function(e,t){if(e.eat("\\")){var r=e.next();return"x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string.special"}for(var i;null!=(i=e.next());){if(i==n){t.tokenize=h;break}if("\\"==i){e.backUp(1);break}}return"string"}),"string";if("`"==r)return e.match(/[^`]+`/),"string.special";if("."==r&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var o=e.current();return l.propertyIsEnumerable(o)?"atom":c.propertyIsEnumerable(o)?(d.propertyIsEnumerable(o)&&!e.match(/\s*if(\s+|$)/,!1)&&(i="block"),"keyword"):u.propertyIsEnumerable(o)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"variableName.special"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)||"="==r&&t.ctx.argList?"operator":f.test(r)?("$"==r||e.eatWhile(f),"operator"):/[\(\){}\[\];]/.test(r)?(i=r,";"==r?"punctuation":null):null}function p(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function m(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function g(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}const v={name:"r",startState:function(e){return{tokenize:h,ctx:{type:"top",indent:-e,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(0==(3&t.ctx.flags)&&(t.ctx.flags|=2),4&t.ctx.flags&&g(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"!=n&&0==(2&t.ctx.flags)&&m(t,1),";"!=i&&"{"!=i&&"}"!=i||"block"!=t.ctx.type||g(t),"{"==i?p(t,"}",e):"("==i?(p(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==i?p(t,"]",e):"block"==i?p(t,"block",e):i==t.ctx.type?g(t):"block"==t.ctx.type&&"comment"!=n&&m(t,4),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,t,n){if(e.tokenize!=h)return 0;var r=t&&t.charAt(0),i=e.ctx,o=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:n.unit):1&i.flags?i.column+(o?0:1):i.indent+(o?0:n.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:o.concat(a,s)}}},11197:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0,r=e.length;nv});var i,o=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],a=r(o),s=r(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),l=r(["end","until"]),u={"[":"]","{":"}","(":")"},c={"]":"[","}":"{",")":"("};function d(e,t,n){return n.tokenize.push(e),e(t,n)}function f(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(g),"comment";if(e.eatSpace())return null;var n,r,o,a=e.next();if("`"==a||"'"==a||'"'==a)return d(m(a,"string",'"'==a||"`"==a),e,t);if("/"==a)return function(e){for(var t,n=e.pos,r=0,i=!1,o=!1;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?d(m(a,"string.special",!0),e,t):"operator";if("%"==a){var s="string",l=!0;e.eat("s")?s="atom":e.eat(/[WQ]/)?s="string":e.eat(/[r]/)?s="string.special":e.eat(/[wxq]/)&&(s="string",l=!1);var c=e.eat(/[^\w\s=]/);return c?(u.propertyIsEnumerable(c)&&(c=u[c]),d(m(c,s,l,!0),e,t)):"operator"}if("#"==a)return e.skipToEnd(),"comment";if("<"==a&&(n=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return d((r=n[2],o=n[1],function(e,t){return o&&e.eatSpace(),e.match(r)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==a)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(a))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==a){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==a)return e.eat("'")?d(m("'","atom",!1),e,t):e.eat('"')?d(m('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==a&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"propertyName";if("$"==a)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variableName.special";if(/[a-zA-Z_\xa1-\uffff]/.test(a))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"variable";if("|"!=a||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(a))return i=a,null;if("-"==a&&e.eat(">"))return"operator";if(/[=+\-\/*:\.^%<>~|]/.test(a)){var f=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=a||f||(i="."),"operator"}return null}return i="|",null}function h(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=h(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=h(e+1));return f(t,n)}}function p(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,f(t,n))}}function m(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(h());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(p());break}}s=!s&&"\\"==a}return t}}function g(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}const v={name:"ruby",startState:function(e){return{tokenize:[f],indented:0,context:{type:"top",indented:-e},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){i=null,e.sol()&&(t.indented=e.indentation());var n,r=t.tokenize[t.tokenize.length-1](e,t),o=i;if("variable"==r){var u=e.current();"keyword"==(r="."==t.lastTok?"property":a.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(u)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(o=u,s.propertyIsEnumerable(u)?n="indent":l.propertyIsEnumerable(u)?n="dedent":"if"!=u&&"unless"!=u||e.column()!=e.indentation()?"do"==u&&t.context.indented{"use strict";n.r(t),n.d(t,{sas:()=>l});var r={},i={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},o=/(<=|>=|!=|<>)/,a=/[=\(:\),{}.*<>+\-\/^\[\]]/;function s(e,t,n){if(n)for(var i=t.split(" "),o=0;o{"use strict";n.r(t),n.d(t,{scheme:()=>x});var r="comment",i="string",o="symbol",a="atom",s="number",l="bracket";function u(e){for(var t={},n=e.split(" "),r=0;rinteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),d=u("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function f(e,t,n){this.indent=e,this.type=t,this.prev=n}function h(e,t,n){e.indentStack=new f(t,n,e.indentStack)}var p=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),m=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),g=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),v=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function O(e){return e.match(p)}function y(e){return e.match(m)}function b(e,t){return!0===t&&e.backUp(1),e.match(v)}function w(e){return e.match(g)}function k(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t.token&&!r){t.state.mode=!1;break}r=!r&&"\\"==n}}const x={name:"scheme",startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=e.indentation()),e.eatSpace())return null;var n=null;switch(t.mode){case"string":k(e,{token:'"',state:t}),n=i;break;case"symbol":k(e,{token:"|",state:t}),n=o;break;case"comment":for(var u,f=!1;null!=(u=e.next());){if("#"==u&&f){t.mode=!1;break}f="|"==u}n=r;break;case"s-expr-comment":if(t.mode=!1,"("!=e.peek()&&"["!=e.peek()){e.eatWhile(/[^\s\(\)\[\]]/),n=r;break}t.sExprComment=0;default:var p=e.next();if('"'==p)t.mode="string",n=i;else if("'"==p)"("==e.peek()||"["==e.peek()?("number"!=typeof t.sExprQuote&&(t.sExprQuote=0),n=a):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=a);else if("|"==p)t.mode="symbol",n=o;else if("#"==p)if(e.eat("|"))t.mode="comment",n=r;else if(e.eat(/[tf]/i))n=a;else if(e.eat(";"))t.mode="s-expr-comment",n=r;else{var m=null,g=!1,v=!0;e.eat(/[ei]/i)?g=!0:e.backUp(1),e.match(/^#b/i)?m=O:e.match(/^#o/i)?m=y:e.match(/^#x/i)?m=w:e.match(/^#d/i)?m=b:e.match(/^[-+0-9.]/,!1)?(v=!1,m=b):g||e.eat("#"),null!=m&&(v&&!g&&e.match(/^#[ei]/i),m(e)&&(n=s))}else if(/^[-+0-9.]/.test(p)&&b(e,!0))n=s;else if(";"==p)e.skipToEnd(),n=r;else if("("==p||"["==p){for(var x,_="",S=e.column();null!=(x=e.eat(/[^\s\(\[\;\)\]]/));)_+=x;_.length>0&&d.propertyIsEnumerable(_)?h(t,S+2,p):(e.eatSpace(),e.eol()||";"==e.peek()?h(t,S+1,p):h(t,S+e.current().length,p)),e.backUp(e.current().length-1),"number"==typeof t.sExprComment&&t.sExprComment++,"number"==typeof t.sExprQuote&&t.sExprQuote++,n=l}else")"==p||"]"==p?(n=l,null!=t.indentStack&&t.indentStack.type==(")"==p?"(":"[")&&(function(e){e.indentStack=e.indentStack.prev}(t),"number"==typeof t.sExprComment&&0==--t.sExprComment&&(n=r,t.sExprComment=!1),"number"==typeof t.sExprQuote&&0==--t.sExprQuote&&(n=a,t.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=c&&c.propertyIsEnumerable(e.current())?"builtin":"variable")}return"number"==typeof t.sExprComment?r:"number"==typeof t.sExprQuote?a:n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"}}}},24347:(e,t,n)=>{"use strict";n.r(t),n.d(t,{shell:()=>h});var r={};function i(e,t){for(var n=0;n1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=u(n,"("==n?"quote":"{"==n?"def":"string"),f(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function f(e,t){return(t.tokens[0]||l)(e,t)}const h={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return f(e,t)},languageData:{autocomplete:o.concat(a,s),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}},64674:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;ru});var i=r("if elsif else stop require"),o=r("true false not");function a(e,t){var n,r=e.next();if("/"==r&&e.eat("*"))return t.tokenize=l,l(e,t);if("#"===r)return e.skipToEnd(),"comment";if('"'==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=a),"string"}),t.tokenize(e,t);if("("==r)return t._indent.push("("),t._indent.push("{"),null;if("{"===r)return t._indent.push("{"),null;if(")"==r&&(t._indent.pop(),t._indent.pop()),"}"===r)return t._indent.pop(),null;if(","==r)return null;if(";"==r)return null;if(/[{}\(\),;]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==r)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var u=e.current();return"text"==u&&e.eat(":")?(t.tokenize=s,"string"):i.propertyIsEnumerable(u)?"keyword":o.propertyIsEnumerable(u)?"atom":null}function s(e,t){return t._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(t._multiLineString=!1,t.tokenize=a),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function l(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=a;break}r="*"==n}return"comment"}const u={name:"sieve",startState:function(e){return{tokenize:a,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||a)(e,t)},indent:function(e,t,n){var r=e._indent.length;return t&&"}"==t[0]&&r--,r<0&&(r=0),r*n.unit},languageData:{indentOnInput:/^\s*\}$/}}},68343:(e,t,n)=>{"use strict";function r(e){i(e,"start");var t={},n=e.languageData||{},r=!1;for(var l in e)if(l!=n&&e.hasOwnProperty(l))for(var u=t[l]=[],c=e[l],d=0;d2&&a.token&&"string"!=typeof a.token){n.pending=[];for(var u=2;u-1)return null;var i=n.indent.length-1,o=e[n.state];e:for(;;){for(var a=0;ar})},2075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{smalltalk:()=>h});var r=/[+\-\/\\*~<>=@%|&?!.,:;^]/,i=/true|false|nil|self|super|thisContext/,o=function(e,t){this.next=e,this.parent=t},a=function(e,t,n){this.name=e,this.context=t,this.eos=n},s=function(){this.context=new o(l,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};s.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var l=function(e,t,n){var s=new a(null,t,!1),l=e.next();return'"'===l?s=u(e,new o(u,t)):"'"===l?s=c(e,new o(c,t)):"#"===l?"'"===e.peek()?(e.next(),s=d(e,new o(d,t))):e.eatWhile(/[^\s.{}\[\]()]/)?s.name="string.special":s.name="meta":"$"===l?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),s.name="string.special"):"|"===l&&n.expectVariable?s.context=new o(f,t):/[\[\]{}()]/.test(l)?(s.name="bracket",s.eos=/[\[{(]/.test(l),"["===l?n.indentation++:"]"===l&&(n.indentation=Math.max(0,n.indentation-1))):r.test(l)?(e.eatWhile(r),s.name="operator",s.eos=";"!==l):/\d/.test(l)?(e.eatWhile(/[\w\d]/),s.name="number"):/[\w_]/.test(l)?(e.eatWhile(/[\w\d_]/),s.name=n.expectVariable?i.test(e.current())?"keyword":"variable":null):s.eos=n.expectVariable,s},u=function(e,t){return e.eatWhile(/[^"]/),new a("comment",e.eat('"')?t.parent:t,!0)},c=function(e,t){return e.eatWhile(/[^']/),new a("string",e.eat("'")?t.parent:t,!1)},d=function(e,t){return e.eatWhile(/[^']/),new a("string.special",e.eat("'")?t.parent:t,!1)},f=function(e,t){var n=new a(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};const h={name:"smalltalk",startState:function(){return new s},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var r=e.context.next===l&&t&&"]"===t.charAt(0)?-1:e.userIndentationDelta;return(e.indentation+r)*n.unit},languageData:{indentOnInput:/^\s*\]$/}}},97919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{solr:()=>s});var r=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,i=/[\|\!\+\-\*\?\~\^\&]/,o=/^(OR|AND|NOT|TO)$/i;function a(e,t){var n,s,l=e.next();return'"'==l?t.tokenize=(s=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=s||r);)r=!r&&"\\"==n;return r||(t.tokenize=a),"string"}):i.test(l)?t.tokenize=(n=l,function(e,t){return"|"==n?e.eat(/\|/):"&"==n&&e.eat(/\&/),t.tokenize=a,"operator"}):r.test(l)&&(t.tokenize=function(e){return function(t,n){for(var i=e;(e=t.peek())&&null!=e.match(r);)i+=t.next();return n.tokenize=a,o.test(i)?"operator":function(e){return parseFloat(e).toString()===e}(i)?"number":":"==t.peek()?"propertyName":"string"}}(l)),t.tokenize!=a?t.tokenize(e,t):null}const s={name:"solr",startState:function(){return{tokenize:a}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},27629:(e,t,n)=>{"use strict";var r;function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{sparql:()=>m});var o=i(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),a=i(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),s=/[*+\-<>=&|\^\/!\?]/,l="[A-Za-z_\\-0-9]",u=new RegExp("[A-Za-z]"),c=new RegExp("(("+l+"|\\.)*("+l+"))?:");function d(e,t){var n,i=e.next();if(r=null,"$"==i||"?"==i)return"?"==i&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variableName.local");if("<"==i&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=d;break}i=!i&&"\\"==r}return"string"}),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(i))return r=i,"bracket";if("#"==i)return e.skipToEnd(),"comment";if(s.test(i))return"operator";if(":"==i)return f(e),"atom";if("@"==i)return e.eatWhile(/[a-z\d\-]/i),"meta";if(u.test(i)&&e.match(c))return f(e),"atom";e.eatWhile(/[_\w\d]/);var l=e.current();return o.test(l)?"builtin":a.test(l)?"keyword":"variable"}function f(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function h(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function p(e){e.indent=e.context.indent,e.context=e.context.prev}const m={name:"sparql",startState:function(){return{tokenize:d,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)h(t,")",e.column());else if("["==r)h(t,"]",e.column());else if("{"==r)h(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)p(t);t.context&&r==t.context.type&&(p(t),"}"==r&&t.context&&"pattern"==t.context.type&&p(t))}else"."==r&&t.context&&"pattern"==t.context.type?p(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?h(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"#"}}}},1013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{spreadsheet:()=>r});const r={name:"spreadsheet",startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string.special":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable":-1!=["[","]","(",")","{","}"].indexOf(n)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}},66996:(e,t,n)=>{"use strict";function r(e){function t(e,t){e.cmdState.push(t)}function n(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function r(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var i={};function o(e,t){e.f=t}function a(e,r){var a;if(e.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var u=e.current().slice(1);return t(r,a=new(a=i.hasOwnProperty(u)?i[u]:i.DEFAULT)),o(r,l),a.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return o(r,(function(e,t){return s(e,t,"\\]")})),"keyword";if(e.match("\\("))return o(r,(function(e,t){return s(e,t,"\\)")})),"keyword";if(e.match("$$"))return o(r,(function(e,t){return s(e,t,"$$")})),"keyword";if(e.match("$"))return o(r,(function(e,t){return s(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(a=n(r))?(a.closeBracket(c),o(r,l),"bracket"):"error":"{"==c||"["==c?(t(r,a=new(a=i.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),a=function(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(r),"begin"==a.name&&(a.argument=e.current()),a.styleIdentifier())}function s(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return o(t,a),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variableName.special";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function l(e,t){var r=e.peek();return"{"==r||"["==r?(n(t).openBracket(r),e.eat(r),o(t,a),"bracket"):/[ \t\r]/.test(r)?(e.eat(r),null):(o(t,a),function(e){var t=e.cmdState.pop();t&&t.closeBracket()}(t),a(e,t))}return i.importmodule=r("importmodule","tag",["string","builtin"]),i.documentclass=r("documentclass","tag",["","atom"]),i.usepackage=r("usepackage","tag",["atom"]),i.begin=r("begin","tag",["atom"]),i.end=r("end","tag",["atom"]),i.label=r("label","tag",["atom"]),i.ref=r("ref","tag",["atom"]),i.eqref=r("eqref","tag",["atom"]),i.cite=r("cite","tag",["atom"]),i.bibitem=r("bibitem","tag",["atom"]),i.Bibitem=r("Bibitem","tag",["atom"]),i.RBibitem=r("RBibitem","tag",["atom"]),i.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{name:"stex",startState:function(){return{cmdState:[],f:e?function(e,t){return s(e,t)}:a}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=a,e.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}n.r(t),n.d(t,{stex:()=>i,stexMath:()=>o});const i=r(!1),o=r(!0)},11273:(e,t,n)=>{"use strict";n.r(t),n.d(t,{stylus:()=>oe});var r=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],i=["domain","regexp","url-prefix","url"],o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],s=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],l=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],u=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],c=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],d=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],f=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],h=["for","if","else","unless","from","to"],p=["null","true","false","href","title","type","not-allowed","readonly","disabled"],m=r.concat(i,o,a,s,l,c,d,u,f,h,p,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function g(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function v(e){for(var t={},n=0;n]=?|\?:|\~)/,j=g(f),D=v(h),M=new RegExp(/^\-(moz|ms|o|webkit)-/i),I=v(p),z="",W={};function N(e,t){if(z=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=z?z[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),O=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=L,L(e,t);if('"'==O||"'"==O)return e.next(),t.tokenize=F(O),t.tokenize(e,t);if("@"==O)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==O){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(M)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==O?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==O&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(T)?("("==e.peek()&&(t.tokenize=U),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variableName.special","reference"]):e.match(/^&{1}\s*$/)?["variableName.special","reference"]:e.match(j)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!Y(e.current())?(e.match("."),["variable","variable-name"]):["variable","word"]:e.match(A)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(O)?(e.next(),[null,O]):(e.next(),[null,null])}function L(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function F(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function U(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=F(")"),[null,"("]}function X(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function q(e,t,n,r){return r=r>=0?r:t.indentUnit,e.context=new X(n,t.indentation()+r,e.context),n}function B(e,t,n){var r=e.context.indent-t.indentUnit;return n=n||!1,e.context=e.context.prev,n&&(e.context.indent=r),e.context.type}function V(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return W[n.context.type](e,t,n)}(e,t,n)}function Y(e){return e.toLowerCase()in k}function Z(e){return(e=e.toLowerCase())in _||e in R}function G(e){return e.toLowerCase()in D}function H(e){return e.toLowerCase().match(M)}function K(e){var t=e.toLowerCase(),n="variable";return Y(e)?n="tag":G(e)?n="block-keyword":Z(e)?n="property":t in P||t in I?n="atom":"return"==t||t in E?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function J(e,t){return re(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function ee(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function te(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function ne(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function re(e){return e.eol()||e.match(/^\s*$/,!1)}function ie(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}W.block=function(e,t,n){if("comment"==e&&ne(t)||","==e&&re(t)||"mixin"==e)return q(n,t,"block",0);if(ee(e,t))return q(n,t,"interpolation");if(re(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!Y(ie(t)))return q(n,t,"block",0);if(J(e,t))return q(n,t,"block");if("}"==e&&re(t))return q(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||G(ie(t))?q(n,t,"variableName"):q(n,t,"variableName",0);if("="==e)return re(t)||G(ie(t))?q(n,t,"block"):q(n,t,"block",0);if("*"==e&&(re(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return w="tag",q(n,t,"block");if(te(e,t))return q(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return q(n,t,re(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return q(n,t,"keyframes");if(/@extends?/.test(e))return q(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&Z(t.current().slice(1))?(w="variable","block"):/(@import|@require|@charset)/.test(e)?q(n,t,"block",0):q(n,t,"block");if("reference"==e&&re(t))return q(n,t,"block");if("("==e)return q(n,t,"parens");if("vendor-prefixes"==e)return q(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(w=K(r)))return ne(t)?q(n,t,"block",0):(w="atom","block");if("tag"==w){if(/embed|menu|pre|progress|sub|table/.test(r)&&Z(ie(t)))return w="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return w="atom","block";if(x.test(r)&&(ne(t)&&t.string.match(/=/)||!ne(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!Y(ie(t))))return w="variable",G(ie(t))?"block":q(n,t,"block",0);if(re(t))return q(n,t,"block")}if("block-keyword"==w)return w="keyword",t.current(/(if|unless)/)&&!ne(t)?"block":q(n,t,"block");if("return"==r)return q(n,t,"block",0);if("variable"==w&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return q(n,t,"block")}return n.context.type},W.parens=function(e,t,n){if("("==e)return q(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?B(n,t):t.string.match(/^[a-z][\w-]*\(/i)&&re(t)||G(ie(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ie(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&Y(ie(t))?q(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?q(n,t,"block",0):re(t)?q(n,t,"block"):q(n,t,"block",0);if(e&&"@"==e.charAt(0)&&Z(t.current().slice(1))&&(w="variable"),"word"==e){var r=t.current();"tag"==(w=K(r))&&x.test(r)&&(w="variable"),"property"!=w&&"to"!=r||(w="atom")}return"variable-name"==e?q(n,t,"variableName"):te(e,t)?q(n,t,"pseudo"):n.context.type},W.vendorPrefixes=function(e,t,n){return"word"==e?(w="property",q(n,t,"block",0)):B(n,t)},W.pseudo=function(e,t,n){return Z(ie(t.string))?V(e,t,n):(t.match(/^[a-z-]+/),w="variableName.special",re(t)?q(n,t,"block"):B(n,t))},W.atBlock=function(e,t,n){if("("==e)return q(n,t,"atBlock_parens");if(J(e,t))return q(n,t,"block");if(ee(e,t))return q(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(w=/^(only|not|and|or)$/.test(r)?"keyword":C.hasOwnProperty(r)?"tag":Q.hasOwnProperty(r)?"attribute":$.hasOwnProperty(r)?"property":S.hasOwnProperty(r)?"string.special":K(t.current()))&&re(t))return q(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(w="keyword"),n.context.type},W.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return re(t)?q(n,t,"block"):q(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return w=K(r),/^(max|min)/.test(r)&&(w="property"),"tag"==w&&(w=x.test(r)?"variable":"atom"),n.context.type}return W.atBlock(e,t,n)},W.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&ne(t)||"]"==e||"hash"==e||"qualifier"==e||Y(t.current()))?V(e,t,n):"{"==e?q(n,t,"keyframes"):"}"==e?ne(t)?B(n,t,!0):q(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?q(n,t,"keyframes"):"word"==e&&"block-keyword"==(w=K(t.current()))?(w="keyword",q(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?q(n,t,re(t)?"block":"atBlock"):"mixin"==e?q(n,t,"block",0):n.context.type},W.interpolation=function(e,t,n){return"{"==e&&B(n,t)&&q(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&Y(ie(t))?q(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?q(n,t,"block",0):q(n,t,"block"):"variable-name"==e?q(n,t,"variableName",0):("word"==e&&"tag"==(w=K(t.current()))&&(w="atom"),n.context.type)},W.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?B(n,t):"word"==e?(w=K(t.current()),"extend"):B(n,t)},W.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(w="variable"),"variableName"):V(e,t,n)};const oe={name:"stylus",startState:function(){return{tokenize:null,state:"block",context:new X("block",0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((y=(t.tokenize||N)(e,t))&&"object"==typeof y&&(b=y[1],y=y[0]),w=y,t.state=W[t.state](b,e,t),w)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=ie(t),s=n.lineIndent(n.pos),l=e.context.prev?e.context.prev.line.firstWord:"",u=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-n.unit:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||G(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||Y(a)?o=/\,\s*$/.test(l)?u:e.sol()||!/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)&&!Y(l)?s:s<=u?u:u+n.unit:/,\s*$/.test(t)||!H(a)&&!Z(a)||(o=G(l)?s<=u?u:u+n.unit:/^\{/.test(l)?s<=u?s:u+n.unit:H(l)||Z(l)?s>=u?u:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||Y(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?u+n.unit:s)),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:m}}},1763:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0;nS});var i=r(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),o=r(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),a=r(["true","false","nil","self","super","_"]),s=r(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),l="+-/*%=|&<>~^?!",u=":;,.(){}[]",c=/^\-?0b[01][01_]*/,d=/^\-?0o[0-7][0-7_]*/,f=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,h=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,p=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,m=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,g=/^\#[A-Za-z]+/,v=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function O(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var r,O=e.peek();if("/"==O){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(w),w(e,t)}if(e.match(g))return"builtin";if(e.match(v))return"attribute";if(e.match(c))return"number";if(e.match(d))return"number";if(e.match(f))return"number";if(e.match(h))return"number";if(e.match(m))return"property";if(l.indexOf(O)>-1)return e.next(),"operator";if(u.indexOf(O)>-1)return e.next(),e.match(".."),"punctuation";if(r=e.match(/("""|"|')/)){var y=b.bind(null,r[0]);return t.tokenize.push(y),y(e,t)}if(e.match(p)){var k=e.current();return s.hasOwnProperty(k)?"type":a.hasOwnProperty(k)?"atom":i.hasOwnProperty(k)?(o.hasOwnProperty(k)&&(t.prev="define"),"keyword"):"define"==n?"def":"variable"}return e.next(),null}function y(){var e=0;return function(t,n,r){var i=O(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function b(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(y()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function w(e,t){for(var n;n=e.next();)if("/"===n&&e.eat("*"))t.tokenize.push(w);else if("*"===n&&e.eat("/")){t.tokenize.pop();break}return"comment"}function k(e,t,n){this.prev=e,this.align=t,this.indented=n}function x(e,t){var n=t.match(/^\s*($|\/[\/\*]|[)}\]])/,!1)?null:t.column()+1;e.context=new k(e.context,n,e.indented)}function _(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}const S={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||O)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?_:x)(t,e)}return r},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}},41680:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rd});var i=r("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),o=r("if elseif else and not or eq ne in ni for foreach while switch"),a=/[+\-*&%=<>!?^\/\|]/;function s(e,t,n){return t.tokenize=n,n(e,t)}function l(e,t){var n=t.beforeParams;t.beforeParams=!1;var r,d=e.next();if('"'!=d&&"'"!=d||!t.inParams){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&n?t.inParams=!0:")"==d&&(t.inParams=!1),null;if(/\d/.test(d))return e.eatWhile(/[\w\.]/),"number";if("#"==d)return e.eat("*")?s(e,t,u):"#"==d&&e.match(/ *\[ *\[/)?s(e,t,c):(e.skipToEnd(),"comment");if('"'==d)return e.skipTo(/"/),"comment";if("$"==d)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),t.beforeParams=!0,"builtin";if(a.test(d))return e.eatWhile(a),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var f=e.current().toLowerCase();return i&&i.propertyIsEnumerable(f)?"keyword":o&&o.propertyIsEnumerable(f)?(t.beforeParams=!0,"keyword"):null}return s(e,t,(r=d,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return o&&(t.tokenize=l),"string"}))}function u(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=l;break}r="*"==n}return"comment"}function c(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=l;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const d={name:"tcl",startState:function(){return{tokenize:l,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"#"}}}},95883:(e,t,n)=>{"use strict";n.r(t),n.d(t,{textile:()=>d});var r={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function i(e,t,n){if("_"===n)return e.eat("_")?o(e,t,"italic",/__/,2):o(e,t,"em",/_/,1);if("*"===n)return e.eat("*")?o(e,t,"bold",/\*\*/,2):o(e,t,"strong",/\*/,1);if("["===n)return e.match(/\d+\]/)&&(t.footCite=!0),a(t);if("("===n&&e.match(/^(r|tm|c)\)/))return r.specialChar;if("<"===n&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return r.html;if("?"===n&&e.eat("?"))return o(e,t,"cite",/\?\?/,2);if("="===n&&e.eat("="))return o(e,t,"notextile",/==/,2);if("-"===n&&!e.eat("-"))return o(e,t,"deletion",/-/,1);if("+"===n)return o(e,t,"addition",/\+/,1);if("~"===n)return o(e,t,"sub",/~/,1);if("^"===n)return o(e,t,"sup",/\^/,1);if("%"===n)return o(e,t,"span",/%/,1);if("@"===n)return o(e,t,"code",/@/,1);if("!"===n){var i=o(e,t,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),i}return a(t)}function o(e,t,n,r,i){var o=e.pos>i?e.string.charAt(e.pos-i-1):null,s=e.peek();if(t[n]){if((!s||/\W/.test(s))&&o&&/\S/.test(o)){var l=a(t);return t[n]=!1,l}}else(!o||/\W/.test(o))&&s&&/\S/.test(s)&&e.match(new RegExp("^.*\\S"+r.source+"(?:\\W|$)"),!1)&&(t[n]=!0,t.mode=c.attributes);return a(t)}function a(e){var t=s(e);if(t)return t;var n=[];return e.layoutType&&n.push(r[e.layoutType]),n=n.concat(function(e){for(var t=[],n=1;n]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,u("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,u("allAttributes")),"+\\.");case"type":return l.makeRe("^",u("allTypes"));case"typeLayout":return l.makeRe("^",u("allTypes"),u("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",u("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[e])}},makeRe:function(){for(var e="",t=0;t{"use strict";n.r(t),n.d(t,{tiddlyWiki:()=>P});var r={},i={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},o=/[\w_\-]/i,a=/^\-\-\-\-+$/,s=/^\/\*\*\*$/,l=/^\*\*\*\/$/,u=/^<<<$/,c=/^\/\/\{\{\{$/,d=/^\/\/\}\}\}$/,f=/^$/,h=/^$/,p=/^\{\{\{$/,m=/^\}\}\}$/,g=/.*?\}\}\}/;function v(e,t,n){return t.tokenize=n,n(e,t)}function O(e,t){var n=e.sol(),i=e.peek();if(t.block=!1,n&&/[<\/\*{}\-]/.test(i)){if(e.match(p))return t.block=!0,v(e,t,w);if(e.match(u))return"quote";if(e.match(s)||e.match(l))return"comment";if(e.match(c)||e.match(d)||e.match(f)||e.match(h))return"comment";if(e.match(a))return"contentSeparator"}if(e.next(),n&&/[\/\*!#;:>|]/.test(i)){if("!"==i)return e.skipToEnd(),"header";if("*"==i)return e.eatWhile("*"),"comment";if("#"==i)return e.eatWhile("#"),"comment";if(";"==i)return e.eatWhile(";"),"comment";if(":"==i)return e.eatWhile(":"),"comment";if(">"==i)return e.eatWhile(">"),"quote";if("|"==i)return"header"}if("{"==i&&e.match("{{"))return v(e,t,w);if(/[hf]/i.test(i)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==i)return"string";if("~"==i)return"brace";if(/[\[\]]/.test(i)&&e.match(i))return"brace";if("@"==i)return e.eatWhile(o),"link";if(/\d/.test(i))return e.eatWhile(/\d/),"number";if("/"==i){if(e.eat("%"))return v(e,t,y);if(e.eat("/"))return v(e,t,k)}if("_"==i&&e.eat("_"))return v(e,t,x);if("-"==i&&e.eat("-")){if(" "!=e.peek())return v(e,t,_);if(" "==e.peek())return"brace"}return"'"==i&&e.eat("'")?v(e,t,b):"<"==i&&e.eat("<")?v(e,t,S):(e.eatWhile(/[\w\$_]/),r.propertyIsEnumerable(e.current())?"keyword":null)}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=O;break}r="%"==n}return"comment"}function b(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=O;break}r="'"==n}return"strong"}function w(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(g)||n&&e.sol()&&e.match(m)?(t.tokenize=O,"comment"):(e.next(),"comment")}function k(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=O;break}r="/"==n}return"emphasis"}function x(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=O;break}r="_"==n}return"link"}function _(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=O;break}r="-"==n}return"deleted"}function S(e,t){if("<<"==e.current())return"meta";var n=e.next();return n?">"==n&&">"==e.peek()?(e.next(),t.tokenize=O,"meta"):(e.eatWhile(/[\w\$_]/),i.propertyIsEnumerable(e.current())?"keyword":null):(t.tokenize=O,null)}const P={name:"tiddlywiki",startState:function(){return{tokenize:O}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},21351:(e,t,n)=>{"use strict";function r(e,t,n){return function(r,i){for(;!r.eol();){if(r.match(t)){i.tokenize=o;break}r.next()}return n&&(i.tokenize=n),e}}function i(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=o,e}}function o(e,t){function n(n){return t.tokenize=n,n(e,t)}var a=e.sol(),s=e.next();switch(s){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),t.tokenize=c,"tag";case"_":if(e.eat("_"))return n(r("strong","__",o));break;case"'":if(e.eat("'"))return n(r("em","''",o));break;case"(":if(e.eat("("))return n(r("link","))",o));break;case"[":return n(r("url","]",o));case"|":if(e.eat("|"))return n(r("comment","||"));break;case"-":if(e.eat("="))return n(r("header string","=-",o));if(e.eat("-"))return n(r("error tw-deleted","--",o));break;case"=":if(e.match("=="))return n(r("tw-underline","===",o));break;case":":if(e.eat(":"))return n(r("comment","::"));break;case"^":return n(r("tw-box","^"));case"~":if(e.match("np~"))return n(r("meta","~/np~"))}if(a)switch(s){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),n(i("header string"));case"*":case"#":case"+":return n(i("tw-listitem bracket"))}return null}var a,s,l,u;function c(e,t){var n,r=e.next(),i=e.peek();return"}"==r?(t.tokenize=o,"tag"):"("==r||")"==r?"bracket":"="==r?(s="equals",">"==i&&(e.next(),i=e.peek()),/[\'\"]/.test(i)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=c;break}}return"string"}),"operator"):/[\'\"]/.test(r)?(t.tokenize=(n=r,function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=c;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function d(){for(var e=arguments.length-1;e>=0;e--)l.cc.push(arguments[e])}function f(){return d.apply(null,arguments),!0}function h(e,t){var n=l.context&&l.context.noIndent;l.context={prev:l.context,pluginName:e,indent:l.indented,startOfLine:t,noIndent:n}}function p(){l.context&&(l.context=l.context.prev)}function m(e){if("openPlugin"==e)return l.pluginName=a,f(g,(n=l.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?f():"endPlugin"==e?(h(l.pluginName,n),f()):f()}));if("closePlugin"==e){var t=!1;return l.context?(t=l.context.pluginName!=a,p()):t=!0,t&&(u="error"),f(function(e){return function(t){return e&&(u="error"),"endPlugin"==t?f():d()}}(t))}return"string"==e?(l.context&&"!cdata"==l.context.name||h("!cdata"),l.tokenize==o&&p(),f()):f();var n}function g(e){return"keyword"==e?(u="attribute",f(g)):"equals"==e?f(v,g):d()}function v(e){return"keyword"==e?(u="string",f()):"string"==e?f(O):d()}function O(e){return"string"==e?f(O):d()}n.r(t),n.d(t,{tiki:()=>y});const y={name:"tiki",startState:function(){return{tokenize:o,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;u=s=a=null;var n=t.tokenize(e,t);if((n||s)&&"comment"!=n)for(l=t;!(t.cc.pop()||m)(s||n););return t.startOfLine=!1,u||n},indent:function(e,t,n){var r=e.context;if(r&&r.noIndent)return 0;for(r&&/^{\//.test(t)&&(r=r.prev);r&&!r.startOfLine;)r=r.prev;return r?r.indent+n.unit:0}}},68212:(e,t,n)=>{"use strict";n.r(t),n.d(t,{toml:()=>r});const r={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile((function(e){return"="!=e&&" "!=e}))?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"},languageData:{commentTokens:{line:"#"}}}},89349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{troff:()=>a});var r={};function i(e){if(e.eatSpace())return null;var t=e.sol(),n=e.next();if("\\"===n)return e.match("fB")||e.match("fR")||e.match("fI")||e.match("u")||e.match("d")||e.match("%")||e.match("&")?"string":e.match("m[")?(e.skipTo("]"),e.next(),"string"):e.match("s+")||e.match("s-")?(e.eatWhile(/[\d-]/),"string"):e.match("(")||e.match("*(")?(e.eatWhile(/[\w-]/),"string"):"string";if(t&&("."===n||"'"===n)&&e.eat("\\")&&e.eat('"'))return e.skipToEnd(),"comment";if(t&&"."===n){if(e.match("B ")||e.match("I ")||e.match("R "))return"attribute";if(e.match("TH ")||e.match("SH ")||e.match("SS ")||e.match("HP "))return e.skipToEnd(),"quote";if(e.match(/[A-Z]/)&&e.match(/[A-Z]/)||e.match(/[a-z]/)&&e.match(/[a-z]/))return"attribute"}e.eatWhile(/[\w-]/);var i=e.current();return r.hasOwnProperty(i)?r[i]:null}function o(e,t){return(t.tokens[0]||i)(e,t)}const a={name:"troff",startState:function(){return{tokens:[]}},token:function(e,t){return o(e,t)}}},82668:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;r$});const i={name:"ttcn",keywords:r("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:r("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:r("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:r("read running start stop timeout"),portOps:r("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:r("create connect disconnect done kill killed map unmap"),verdictOps:r("getverdict setverdict"),sutOps:r("action"),functionOps:r("apply derefers refers"),verdictConsts:r("error fail inconc none pass"),booleanConsts:r("true false"),otherConsts:r("null NULL omit"),visibilityModifiers:r("private public friend"),templateMatch:r("complement ifpresent subset superset permutation"),multiLineStrings:!0};var o=[];function a(e){if(e)for(var t in e)e.hasOwnProperty(t)&&o.push(t)}a(i.keywords),a(i.builtin),a(i.timerOps),a(i.portOps);var s,l=i.keywords||{},u=i.builtin||{},c=i.timerOps||{},d=i.portOps||{},f=i.configOps||{},h=i.verdictOps||{},p=i.sutOps||{},m=i.functionOps||{},g=i.verdictConsts||{},v=i.booleanConsts||{},O=i.otherConsts||{},y=i.types||{},b=i.visibilityModifiers||{},w=i.templateMatch||{},k=i.multiLineStrings,x=!1!==i.indentStatements,_=/[+\-*&@=<>!\/]/;function S(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==r}return(o||!i&&!k)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(r))return s=r,"punctuation";if("#"==r)return e.skipToEnd(),"atom";if("%"==r)return e.eatWhile(/\b/),"atom";if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=P,P(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(_.test(r))return"@"==r&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(_),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();return l.propertyIsEnumerable(i)?"keyword":u.propertyIsEnumerable(i)?"builtin":c.propertyIsEnumerable(i)||f.propertyIsEnumerable(i)||h.propertyIsEnumerable(i)||d.propertyIsEnumerable(i)||p.propertyIsEnumerable(i)||m.propertyIsEnumerable(i)?"def":g.propertyIsEnumerable(i)||v.propertyIsEnumerable(i)||O.propertyIsEnumerable(i)?"string":y.propertyIsEnumerable(i)?"typeName.standard":b.propertyIsEnumerable(i)?"modifier":w.propertyIsEnumerable(i)?"atom":"variable"}function P(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function E(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function C(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new E(r,t,n,null,e.context)}function T(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const $={name:"ttcn",startState:function(){return{tokenize:null,context:new E(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;s=null;var r=(t.tokenize||S)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=s&&":"!=s&&","!=s||"statement"!=n.type)if("{"==s)C(t,e.column(),"}");else if("["==s)C(t,e.column(),"]");else if("("==s)C(t,e.column(),")");else if("}"==s){for(;"statement"==n.type;)n=T(t);for("}"==n.type&&(n=T(t));"statement"==n.type;)n=T(t)}else s==n.type?T(t):x&&(("}"==n.type||"top"==n.type)&&";"!=s||"statement"==n.type&&"newstatement"==s)&&C(t,e.column(),"statement");else T(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:o}}},68774:(e,t,n)=>{"use strict";var r;function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{turtle:()=>c}),i([]);var o=i(["@prefix","@base","a"]),a=/[*+\-<>=&|]/;function s(e,t){var n,i=e.next();if(r=null,"<"!=i||e.match(/^[\s\u00a0=]/,!1)){if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=s;break}i=!i&&"\\"==r}return"string"}),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(i))return r=i,null;if("#"==i)return e.skipToEnd(),"comment";if(a.test(i))return e.eatWhile(a),null;if(":"==i)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variableName.special";var l=e.current();return o.test(l)?"meta":i>="A"&&i<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function l(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function u(e){e.indent=e.context.indent,e.context=e.context.prev}const c={name:"turtle",startState:function(){return{tokenize:s,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)l(t,")",e.column());else if("["==r)l(t,"]",e.column());else if("{"==r)l(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)u(t);t.context&&r==t.context.type&&u(t)}else"."==r&&t.context&&"pattern"==t.context.type?u(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?l(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"#"}}}},152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{vb:()=>C});var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var o=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),a=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),s=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),l=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),u=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),c=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),d=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],f=["else","elseif","case","catch","finally"],h=["next","loop"],p=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],m=i(p),g=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],v=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],O=i(g),y=i(v),b=i(d),w=i(f),k=i(h),x=i(["end"]),_=i(["do"]);function S(e,t){t.currentIndent++}function P(e,t){t.currentIndent--}function E(e,t){if(e.eatSpace())return null;var n,i,d;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var f=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(f=!0),f)return e.eat(/J/i),"number";var h=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?h=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),h=!0):e.match(/^0(?![\dx])/i)&&(h=!0),h)return e.eat(/L/i),"number"}return e.match('"')?(t.tokenize=(n=e.current(),i=1==n.length,d="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(n))return t.tokenize=E,d;e.eat(/['"]/)}return i&&(t.tokenize=E),d}),t.tokenize(e,t)):e.match(u)||e.match(l)?null:e.match(s)||e.match(o)||e.match(m)?"operator":e.match(a)?null:e.match(_)?(S(0,t),t.doInCurrentLine=!0,"keyword"):e.match(b)?(t.doInCurrentLine?t.doInCurrentLine=!1:S(0,t),"keyword"):e.match(w)?"keyword":e.match(x)?(P(0,t),P(0,t),"keyword"):e.match(k)?(P(0,t),"keyword"):e.match(y)||e.match(O)?"keyword":e.match(c)?"variable":(e.next(),r)}const C={name:"vb",startState:function(){return{tokenize:E,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),i=e.current();if("."===i)return"variable"===(n=t.tokenize(e,t))?"variable":r;var o="[({".indexOf(i);return-1!==o&&S(0,t),-1!==(o="])}".indexOf(i))&&P(0,t)?r:n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(k)||r.match(x)||r.match(w)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:d.concat(f).concat(h).concat(p).concat(g).concat(v)}}},20530:(e,t,n)=>{"use strict";function r(e){var t="error";function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),i=new RegExp("^((<>)|(<=)|(>=))"),o=new RegExp("^[\\.,]"),a=new RegExp("^[\\(\\)]"),s=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),l=n(["and","or","not","xor","is","mod","eqv","imp"]),u=["WScript","err","debug","RegExp"],c=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);u=u.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(u=u.concat(["server","response","request","session","application"]),c=c.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var d=n(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),f=n(["true","false","nothing","empty","null"]),h=n(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),p=n(u),m=n(c),g=n(["class","sub","select","while","if","function","property","with","for"]),v=n(["else","elseif","case"]),O=n(["next","loop","wend"]),y=n(["end"]),b=n(["do"]),w=n(["on error resume next","exit"]),k=n(["rem"]);function x(e,t){t.currentIndent++}function _(e,t){t.currentIndent--}function S(e,n){if(e.eatSpace())return null;var u,c,P;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(k))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var E=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(E=!0),E)return e.eat(/J/i),"number";var C=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?C=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),C=!0):e.match(/^0(?![\dx])/i)&&(C=!0),C)return e.eat(/L/i),"number"}return e.match('"')?(n.tokenize=(u=e.current(),c=1==u.length,P="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(u))return t.tokenize=S,P;e.eat(/['"]/)}return c&&(t.tokenize=S),P}),n.tokenize(e,n)):e.match(i)||e.match(r)||e.match(l)?"operator":e.match(o)?null:e.match(a)?"bracket":e.match(w)?(n.doInCurrentLine=!0,"keyword"):e.match(b)?(x(0,n),n.doInCurrentLine=!0,"keyword"):e.match(g)?(n.doInCurrentLine?n.doInCurrentLine=!1:x(0,n),"keyword"):e.match(v)?"keyword":e.match(y)?(_(0,n),_(0,n),"keyword"):e.match(O)?(n.doInCurrentLine?n.doInCurrentLine=!1:_(0,n),"keyword"):e.match(d)?"keyword":e.match(f)?"atom":e.match(m)?"variableName.special":e.match(h)||e.match(p)?"builtin":e.match(s)?"variable":(e.next(),t)}return{name:"vbscript",startState:function(){return{tokenize:S,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=function(e,n){var r=n.tokenize(e,n),i=e.current();return"."===i?(r=n.tokenize(e,n),i=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?t:("builtin"!==r&&"keyword"!==r||(r="variable"),c.indexOf(i.substr(1))>-1&&(r="keyword"),r)):r}(e,n);return n.lastToken={style:r,content:e.current()},null===r&&(r=null),r},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(O)||r.match(y)||r.match(v)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit}}}n.r(t),n.d(t,{vbScript:()=>i,vbScriptASP:()=>o});const i=r({}),o=r({isASP:!0})},50889:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rh});var i=r("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),o=r("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),a=r("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),s=/[+\-*&%=<>!?:\/|]/;function l(e,t,n){return t.tokenize=n,n(e,t)}function u(e,t){var n=t.beforeParams;t.beforeParams=!1;var r=e.next();if("'"==r&&!t.inString&&t.inParams)return t.lastTokenWasBuiltin=!1,l(e,t,c(r));if('"'!=r){if(/[\[\]{}\(\),;\.]/.test(r))return"("==r&&n?t.inParams=!0:")"==r&&(t.inParams=!1,t.lastTokenWasBuiltin=!0),null;if(/\d/.test(r))return t.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==r&&e.eat("*"))return t.lastTokenWasBuiltin=!1,l(e,t,d);if("#"==r&&e.match(/ *\[ *\[/))return t.lastTokenWasBuiltin=!1,l(e,t,f);if("#"==r&&e.eat("#"))return t.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==r)return e.eat("!"),e.eatWhile(/[\w\d\$_\.{}-]/),a&&a.propertyIsEnumerable(e.current())?"keyword":(t.lastTokenWasBuiltin=!0,t.beforeParams=!0,"builtin");if(s.test(r))return t.lastTokenWasBuiltin=!1,e.eatWhile(s),"operator";e.eatWhile(/[\w\$_{}@]/);var u=e.current();return i&&i.propertyIsEnumerable(u)?"keyword":o&&o.propertyIsEnumerable(u)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!o||!o.propertyIsEnumerable(u.toLowerCase()))?(t.beforeParams=!0,t.lastTokenWasBuiltin=!1,"keyword"):t.inString?(t.lastTokenWasBuiltin=!1,"string"):e.pos>u.length&&"."==e.string.charAt(e.pos-u.length-1)&&t.lastTokenWasBuiltin?"builtin":(t.lastTokenWasBuiltin=!1,null)}return t.lastTokenWasBuiltin=!1,t.inString?(t.inString=!1,"string"):t.inParams?l(e,t,c(r)):void 0}function c(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}if('"'==e&&"$"==t.peek()&&!i){n.inString=!0,o=!0;break}i=!i&&"\\"==r}return o&&(n.tokenize=u),"string"}}function d(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=u;break}r="*"==n}return"comment"}function f(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=u;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const h={name:"velocity",startState:function(){return{tokenize:u,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}}},23074:(e,t,n)=>{"use strict";function r(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,r=e.noIndentKeywords||[],i=e.multiLineStrings,o=e.hooks||{};function a(e){for(var t={},n=e.split(" "),r=0;r=0)return a}var s=e.context,l=r&&r.charAt(0);"statement"==s.type&&"}"==l&&(s=s.prev);var u=!1,c=r.match(O);return c&&(u=$(c[0],s.type)),"statement"==s.type?s.indented+("{"==l?0:t||i.unit):y.test(s.type)&&s.align&&!n?s.column+(u?0:1):")"!=s.type||u?s.indented+(u?0:i.unit):s.indented+(t||i.unit)},languageData:{indentOnInput:function(){var e=[];for(var t in w)if(w[t]){var n=w[t].split(";");for(var r in n)e.push(n[r])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}n.r(t),n.d(t,{tlv:()=>c,verilog:()=>i});const i=r({});var o={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"},a={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},s=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,l=/^[! ] */,u=/^\/[\/\*]/;const c=r({hooks:{electricInput:!1,token:function(e,t){var n,r=void 0;if(e.sol()&&!t.tlvInBlockComment){"\\"==e.peek()&&(r="def",e.skipToEnd(),e.string.match(/\\SV/)?t.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(t.tlvCodeActive=!0)),t.tlvCodeActive&&0==e.pos&&0==t.indented&&(n=e.match(l,!1))&&(t.indented=n[0].length);var i=t.indented,c=i/3;if(c<=t.tlvIndentationStyle.length){var d=e.string.length==i,f=3*c;if(f0||(t.tlvIndentationStyle[c]=a[p],c++))}if(!d)for(;t.tlvIndentationStyle.length>c;)t.tlvIndentationStyle.pop()}t.tlvNextIndent=i}if(t.tlvCodeActive)if(void 0!==r);else if(t.tlvInBlockComment)e.match(/^.*?\*\//)?t.tlvInBlockComment=!1:e.skipToEnd(),r="comment";else if((n=e.match(u))&&!t.tlvInBlockComment)"//"==n[0]?e.skipToEnd():t.tlvInBlockComment=!0,r="comment";else if(n=e.match(s)){var m=n[1],g=n[2];o.hasOwnProperty(m)&&(g.length>0||e.eol())?r=o[m]:e.backUp(e.current().length-1)}else e.match(/^\t+/)?r="invalid":e.match(/^[\[\]{}\(\);\:]+/)?r="meta":(n=e.match(/^[mM]4([\+_])?[\w\d_]*/))?r="+"==n[1]?"keyword.special":"keyword":e.match(/^ +/)?e.eol()&&(r="error"):e.match(/^[\w\d_]+/)?r="number":e.next();else e.match(/^[mM]4([\w\d_]*)/)&&(r="keyword");return r},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}})},14119:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(","),r=0;rm});var o,a=r("null"),s={"`":i,$:i},l=r("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),u=r("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),c=/[&|~>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{webIDL:()=>x});var i=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],o=r(i),a=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],s=r(a),l=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],u=r(l),c=["true","false","Infinity","NaN","null"],d=r(c),f=r(["callback","dictionary","enum","interface"]),h=r(["typedef"]),p=/^[:<=>?]/,m=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,g=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,v=/^_?[A-Za-z][0-9A-Z_a-z-]*/,O=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,y=/^"[^"]*"/,b=/^\/\*.*?\*\//,w=/^\/\*.*/,k=/^.*?\*\//;const x={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(k)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(b))return"comment";if(e.match(w))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(m)||e.match(g)))return"number";if(e.match(y))return"string";if(t.startDef&&e.match(v))return"def";if(t.endDef&&e.match(O))return t.endDef=!1,"def";if(e.match(u))return"keyword";if(e.match(s)){var n=t.lastToken,r=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===r||"="===r?"builtin":"type"}return e.match(o)?"builtin":e.match(d)?"atom":e.match(v)?"variable":e.match(p)?"operator":(e.next(),null)}(e,t);if(n){var r=e.current();t.lastToken=r,"keyword"===n?(t.startDef=f.test(r),t.endDef=t.endDef||h.test(r)):t.startDef=!1}return n},languageData:{autocomplete:i.concat(a).concat(l).concat(c)}}},83365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{xQuery:()=>O});var r=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},o=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],a=0,s=o.length;a",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(a=0,s=u.length;a\"\'\/?]/);)w+=b;return i(e,t,function(e,t){return function(n,r){return n.eatSpace(),t&&n.eat(">")?(v(r),r.tokenize=o,"tag"):(n.eat("/")||g(r,{type:"tag",name:e,tokenize:o}),n.eat(">")?(r.tokenize=o,"tag"):(r.tokenize=u,"tag"))}}(w,y))}if("{"==n)return g(t,{type:"codeblock"}),null;if("}"==n)return v(t),null;if(h(t))return">"==n?"tag":"/"==n&&e.eat(">")?(v(t),"tag"):"variable";if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===n&&e.eat(":"))return g(t,{type:"comment"}),i(e,t,a);if(O||'"'!==n&&"'"!==n){if("$"===n)return i(e,t,l);if(":"===n&&e.eat("="))return"keyword";if("("===n)return g(t,{type:"paren"}),null;if(")"===n)return v(t),null;if("["===n)return g(t,{type:"bracket"}),null;if("]"===n)return v(t),null;var k=r.propertyIsEnumerable(n)&&r[n];if(O&&'"'===n)for(;'"'!==e.next(););if(O&&"'"===n)for(;"'"!==e.next(););k||e.eatWhile(/[\w\$_-]/);var x=e.eat(":");!e.eat(":")&&x&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(p=!0);var _=e.current();return k=r.propertyIsEnumerable(_)&&r[_],p&&!k&&(k={type:"function_call",style:"def"}),function(e){return m(e,"xmlconstructor")}(t)?(v(t),"variable"):("element"!=_&&"attribute"!=_&&"axis_specifier"!=k.type||g(t,{type:"xmlconstructor"}),k?k.style:"variable")}return i(e,t,s(n))}function a(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if(")"==n&&r){if(!(o>0)){v(t);break}o--}else":"==n&&i&&o++;r=":"==n,i="("==n}return"comment"}function s(e,t){return function(n,r){var i;if(function(e){return m(e,"string")}(r)&&n.current()==e)return v(r),t&&(r.tokenize=t),"string";if(g(r,{type:"string",name:e,tokenize:s(e,t)}),n.match("{",!1)&&p(r))return r.tokenize=o,"string";for(;i=n.next();){if(i==e){v(r),t&&(r.tokenize=t);break}if(n.match("{",!1)&&p(r))return r.tokenize=o,"string"}return"string"}}function l(e,t){var n=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(n),e.match(":=",!1)||e.eat(":");return e.eatWhile(n),t.tokenize=o,"variable"}function u(e,t){var n=e.next();return"/"==n&&e.eat(">")?(p(t)&&v(t),h(t)&&v(t),"tag"):">"==n?(p(t)&&v(t),"tag"):"="==n?null:'"'==n||"'"==n?i(e,t,s(n,u)):(p(t)||g(t,{type:"attribute",tokenize:u}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(v(t),t.tokenize=o),"attribute")}function c(e,t){for(var n;n=e.next();)if("-"==n&&e.match("->",!0))return t.tokenize=o,"comment"}function d(e,t){for(var n;n=e.next();)if("]"==n&&e.match("]",!0))return t.tokenize=o,"comment"}function f(e,t){for(var n;n=e.next();)if("?"==n&&e.match(">",!0))return t.tokenize=o,"processingInstruction"}function h(e){return m(e,"tag")}function p(e){return m(e,"attribute")}function m(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function g(e,t){e.stack.push(t)}function v(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||o}const O={name:"xquery",startState:function(){return{tokenize:o,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}}},5717:(e,t,n)=>{"use strict";n.r(t),n.d(t,{yacas:()=>h});var r=function(e){for(var t={},n="Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While".split(" "),r=0;r|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function c(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=u),"string"}function d(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=u;break}n=r}return"comment"}function f(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}const h={name:"yacas",startState:function(){return{tokenize:u,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(e,t,n){if(e.tokenize!==u&&null!==e.tokenize)return null;var r=0;return"]"!==t&&"];"!==t&&"}"!==t&&"};"!==t&&");"!==t||(r=-1),(e.scopes.length+r)*n.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},55273:(e,t,n)=>{"use strict";n.r(t),n.d(t,{yaml:()=>i});var r=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");const i={name:"yaml",token:function(e,t){var n=e.peek(),i=t.escaped;if(t.escaped=!1,"#"==n&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol)return e.skipToEnd(),"string";if(t.literal&&(t.literal=!1),e.sol()){if(t.keyCol=0,t.pair=!1,t.pairStart=!1,e.match("---"))return"def";if(e.match("..."))return"def";if(e.match(/^\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==n?t.inlinePairs++:"}"==n?t.inlinePairs--:"["==n?t.inlineList++:t.inlineList--,"meta";if(t.inlineList>0&&!i&&","==n)return e.next(),"meta";if(t.inlinePairs>0&&!i&&","==n)return t.keyCol=0,t.pair=!1,t.pairStart=!1,e.next(),"meta";if(t.pairStart){if(e.match(/^\s*(\||\>)\s*/))return t.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(0==t.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(t.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(r))return"keyword"}return!t.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(t.pair=!0,t.keyCol=e.indentation(),"atom"):t.pair&&e.match(/^:\s*/)?(t.pairStart=!0,"meta"):(t.pairStart=!1,t.escaped="\\"==n,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}}},835:(e,t,n)=>{"use strict";function r(e){var t,n;e?(t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,n=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,n=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var r=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,i=/^(n?[zc]|p[oe]?|m)\b/i,o=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(s,l){if(s.column()||(l.context=0),s.eatSpace())return null;var u;if(s.eatWhile(/\w/)){if(e&&s.eat(".")&&s.eatWhile(/\w/),u=s.current(),!s.indentation())return s.match(a)?"number":null;if((1==l.context||4==l.context)&&r.test(u))return l.context=4,"variable";if(2==l.context&&i.test(u))return l.context=4,"variableName.special";if(t.test(u))return l.context=1,"keyword";if(n.test(u))return l.context=2,"keyword";if(4==l.context&&a.test(u))return"number";if(o.test(u))return"error"}else{if(s.eat(";"))return s.skipToEnd(),"comment";if(s.eat('"')){for(;(u=s.next())&&'"'!=u;)"\\"==u&&s.next();return"string"}if(s.eat("'")){if(s.match(/\\?.'/))return"number"}else if(s.eat(".")||s.sol()&&s.eat("#")){if(l.context=5,s.eatWhile(/\w/))return"def"}else if(s.eat("$")){if(s.eatWhile(/[\da-f]/i))return"number"}else if(s.eat("%")){if(s.eatWhile(/[01]/))return"number"}else s.next()}return null}}}n.r(t),n.d(t,{ez80:()=>o,z80:()=>i});const i=r(!1),o=r(!0)},30638:(e,t,n)=>{"use strict";n.d(t,{BO:()=>ke,D0:()=>Oe,Gz:()=>Ne,IS:()=>We,Py:()=>ce,QQ:()=>q,Wl:()=>V,Xs:()=>Ee,YW:()=>de,as:()=>E,bg:()=>k,cp:()=>g,f_:()=>Ce,gc:()=>S,gm:()=>w,jT:()=>D,n0:()=>P,nZ:()=>x,q6:()=>se,r$:()=>z,uU:()=>xe,xv:()=>r,yy:()=>we});class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),o.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),o.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new l(this),i=new l(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new u(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new i(e):o.from(i.split(e,[])):r.empty}}class i extends r{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new d(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new i(s(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=a(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new i(t,e.length+o.length));else{let e=t.length>>1;n.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof i))return super.replace(e,t,n);let r=a(this.text,a(n.text,s(this.text,0,e)),t),l=this.length+n.length-(t-e);return r.length<=32?new i(r,l):o.from(i.split(r,[]),l)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}}class o extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(e,t,n){if(n.lines=i&&t<=s){let l=a.replace(e-i,t-i,n),u=this.lines-a.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let i=this.children.slice();return i[r]=l,new o(i,this.length-(t-e)+n.length)}return super.replace(i,s,l)}i=s+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let n=0,[r,i,a,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==a||i==s)return n;let o=this.children[r],l=e.children[i];if(o!=l)return n+o.scanIdentical(l,t);n+=o.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new i(n,t)}let r=Math.max(32,n>>5),a=r<<1,s=r>>1,l=[],u=0,c=-1,d=[];function f(e){let t;if(e.lines>a&&e instanceof o)for(let t of e.children)f(t);else e.lines>s&&(u>s||!u)?(h(),l.push(e)):e instanceof i&&u&&(t=d[d.length-1])instanceof i&&e.lines+t.lines<=32?(u+=e.lines,c+=e.length+1,d[d.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)):(u+e.lines>r&&h(),u+=e.lines,c+=e.length+1,d.push(e))}function h(){0!=u&&(l.push(1==d.length?d[0]:o.from(d,c)),c=-1,u=d.length=0)}for(let t of e)f(t);return h(),1==l.length?l[0]:new o(l,t)}}function a(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],a=o>>1,s=r instanceof i?r.text.length:r.children.length;if(a==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof i){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let o=r.children[a+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof i?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class u{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this});class d{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let f="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;ee)return f[t-1]<=e;return!1}function p(e){return e>=127462&&e<=127487}const m=8205;function g(e,t,n=!0,r=!0){return(n?v:O)(e,t,r)}function v(e,t,n){if(t==e.length)return t;t&&y(e.charCodeAt(t))&&b(e.charCodeAt(t-1))&&t--;let r=w(e,t);for(t+=x(r);t=0&&p(w(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function O(e,t,n){for(;t>0;){let r=v(e,t-2,n);if(r=56320&&e<57344}function b(e){return e>=55296&&e<56320}function w(e,t){let n=e.charCodeAt(t);if(!b(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return y(r)?r-56320+(n-55296<<10)+65536:n}function k(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function x(e){return e<65536?1:2}const _=/\r\n?|\n/;var S=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(S||(S={}));class P{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=a}else{if(n!=S.Simple&&l>=e&&(n==S.TrackDel&&re||n==S.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new P(e)}static create(e){return new P(e)}}class E extends P{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return $(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e,t=!1){return Q(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,o=0;i=0){t[i]=s,t[i+1]=a;let l=i>>1;for(;n.length0&&T(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let i=[],o=[],a=0,s=null;function l(e=!1){if(!e&&!i.length)return;as||e<0||s>t)throw new RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let d=c?"string"==typeof c?r.of(c.split(n||_)):c:r.empty,f=d.length;if(e==s&&0==f)return;ea&&C(i,e-a,-1),C(i,s-e,f),T(o,i,d),a=s}}(e),l(!s),s}static empty(e){return new E(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;it&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function T(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)l=e.sections[s++],u=e.sections[s++];t(o,c,a,d,f),o=c,a=d}}}function Q(e,t,n,r=!1){let i=[],o=r?[]:null,a=new A(e),s=new A(t);for(let e=-1;;)if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);C(i,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(s.len=0&&e=0)){if(a.done&&s.done)return o?E.createSet(i,o):P.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=a.len;for(;n;)if(-1==s.ins){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else{if(!(0==s.ins&&s.lent||a.ins>=0&&a.len>t)&&(e||r.length>n),o.forward2(t),a.forward(t)}}else C(r,0,a.ins,e),i&&T(i,r,a.text),a.next()}}class A{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class j{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new j(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return D.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return D.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return D.range(e.anchor,e.head)}static create(e,t,n){return new j(e,t,n)}}class D{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:D.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new D(e.ranges.map((e=>j.fromJSON(e))),e.main)}static single(e,t=e){return new D([D.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;re?4:0)|i)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;nr.head?D.range(a,o):D.range(o,a))}}return new D(e,t)}}function M(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let I=0;class z{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=I++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}static define(e={}){return new z(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:W),!!e.static,e.enables)}of(e){return new N([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new N(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new N(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function W(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class N{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=I++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,u=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:0==(1&(null!==(t=e[n.id])&&void 0!==t?t:1))&&u.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||F(e,u)){let t=n(e);if(a?!L(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[i];if(null!=l){let i=J(t,l);if(this.dependencies.every((n=>n instanceof z?t.facet(n)===e.facet(n):!(n instanceof q)||t.field(n,!1)==e.field(n,!1)))||(a?L(s=n(e),i,r):r(s=n(e),i)))return e.values[o]=i,0}else s=n(e);return e.values[o]=s,1}}}}function L(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(X).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,X.of({field:this,create:e})]}get extension(){return this}}function B(e){return t=>new Y(t,e)}const V={highest:B(0),high:B(1),default:B(2),low:B(3),lowest:B(4)};class Y{constructor(e,t){this.inner=e,this.prec=t}}class Z{of(e){return new G(this,e)}reconfigure(e){return Z.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class G{constructor(e,t){this.compartment=e,this.inner=t}}class H{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;return function e(o,a){let s=i.get(o);if(null!=s){if(s<=a)return;let e=r[s].indexOf(o);e>-1&&r[s].splice(e,1),o instanceof G&&n.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let t of o)e(t,a);else if(o instanceof G){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(o.compartment)||o.inner;n.set(o.compartment,r),e(r,a)}else if(o instanceof Y)e(o.inner,o.prec);else if(o instanceof q)r[a].push(o),o.provides&&e(o.provides,a);else if(o instanceof N)r[a].push(o),o.facet.extensions&&e(o.facet.extensions,2);else{let t=o.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,a)}}(e,2),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))n instanceof q?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let a=Object.create(null),s=[],l=[];for(let e of r)a[e.id]=l.length<<1,l.push((t=>e.slot(t)));let u=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,o=u&&u[e]||[];if(t.every((e=>0==e.type)))if(a[r.id]=s.length<<1|1,W(o,t))s.push(n.facet(r));else{let e=r.combine(t.map((e=>e.value)));s.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(a[e.id]=s.length<<1|1,s.push(e.value)):(a[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));a[r.id]=l.length<<1,l.push((e=>U(e,r,t)))}}let c=l.map((e=>e(a)));return new H(e,o,c,a,s,i)}}function K(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function J(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ee=z.define(),te=z.define({combine:e=>e.some((e=>e)),static:!0}),ne=z.define({combine:e=>e.length?e[0]:void 0,static:!0}),re=z.define(),ie=z.define(),oe=z.define(),ae=z.define({combine:e=>!!e.length&&e[0]});class se{constructor(e,t){this.type=e,this.value=t}static define(){return new le}}class le{of(e){return new se(this,e)}}class ue{constructor(e){this.map=e}of(e){return new ce(this,e)}}class ce{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ce(this.type,t)}is(e){return this.type==e}static define(e={}){return new ue(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}ce.reconfigure=ce.define(),ce.appendConfig=ce.define();class de{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&M(n,t.newLength),i.some((e=>e.type==de.time))||(this.annotations=i.concat(de.time.of(Date.now())))}static create(e,t,n,r,i,o){return new de(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(de.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function fe(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=he(r,pe(t,o,e.changes.newLength),!0))}return r==e?e:de.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(re)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:fe(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=E.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=de.create(t,r,e.selection&&e.selection.map(i),ce.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(ie);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof de?i:Array.isArray(i)&&1==i.length&&i[0]instanceof de?i[0]:me(t,ve(i),!1)}return e}(i):i)}de.time=se.define(),de.userEvent=se.define(),de.addToHistory=se.define(),de.remote=se.define();const ge=[];function ve(e){return null==e?ge:Array.isArray(e)?e:[e]}var Oe=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Oe||(Oe={}));const ye=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let be;try{be=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class we{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;ei.set(t,e))),n=null),i.set(t.value.compartment,t.value.extension)):t.is(ce.reconfigure)?(n=null,r=t.value):t.is(ce.appendConfig)&&(n=null,r=ve(r).concat(t.value));n?t=e.startState.values.slice():(n=H.resolve(r,i,this),t=new we(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values),new we(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:D.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=ve(n.effects);for(let n=1;ni.spec.fromJSON(o,e))))}return we.create({doc:e.doc,selection:D.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=H.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(we.lineSeparator)||_)),i=e.selection?e.selection instanceof D?e.selection:D.single(e.selection.anchor,e.selection.head):D.single(0);return M(i,n.length),t.staticFacet(te)||(i=i.asSingle()),new we(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(we.tabSize)}get lineBreak(){return this.facet(we.lineSeparator)||"\n"}get readOnly(){return this.facet(ae)}phrase(e,...t){for(let t of this.facet(we.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(ee))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return Oe.Space;if(function(e){if(be)return be.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||ye.test(n)))return!0}return!1}(e))return Oe.Word;for(let n=0;n-1)return Oe.Word;return Oe.Other};var t}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=g(t,o,!1);if(i(t.slice(e,o))!=Oe.Word)break;o=e}for(;ae.length?e[0]:4}),we.lineSeparator=ne,we.readOnly=ae,we.phrases=z.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),we.languageData=ee,we.changeFilter=re,we.transactionFilter=ie,we.transactionExtender=oe,Z.reconfigure=ce.define();class xe{eq(e){return this==e}range(e,t=e){return _e.create(e,t,this)}}xe.prototype.startSide=xe.prototype.endSide=0,xe.prototype.point=!1,xe.prototype.mapMode=S.TrackDel;class _e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new _e(e,t,n)}}function Se(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Pe{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);iu||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(o<0&&(o=l),c.point&&(a=Math.max(a,u-l)),n.push(c),r.push(l-o),i.push(u-o))}return{mapped:n.length?new Pe(r,i,n,a):null,pos:o}}}class Ee{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Ee(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Se)),this.isEmpty)return t.length?Ee.of(t):this;let a=new $e(this,null,-1).goto(0),s=0,l=[],u=new Ce;for(;a.value||s=0){let e=t[s++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ia.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Qe.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Qe.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=Te(o,a,n),l=new Ae(o,s,i),u=new Ae(a,s,i);n.iterGaps(((e,t,n)=>je(l,e,u,t,n,r))),n.empty&&0==n.length&&je(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let a=Te(i,o),s=new Ae(i,a,0).goto(n),l=new Ae(o,a,0).goto(n);for(;;){if(s.to!=l.to||!De(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new Ae(e,null,i).goto(t),a=t,s=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFroma&&(r.span(a,e,o.active,s),s=o.openEnd(e));if(o.to>n)return s+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new Ce;for(let r of e instanceof _e?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Se);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}Ee.empty=new Ee([],[],null,-1),Ee.empty.nextLayer=Ee.empty;class Ce{finishChunk(e){this.chunks.push(new Pe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Ce)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ee.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ee.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Te(e,t,n){let r=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new $e(o,t,n,i));return 1==r.length?r[0]:new Qe(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Re(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Re(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Re(this.heap,0)}}}function Re(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class Ae{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Qe.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Me(this.active,e),Me(this.activeTo,e),Me(this.activeRank,e),this.minActive=ze(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Me(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function je(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&De(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,i,e.point,n.point):i>s&&!De(e.active,n.active)&&o.compareRange(s,i,e.active,n.active),r>a)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function De(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function ze(e,t){let n=-1,r=1e9;for(let i=0;i=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=g(e,r)}return!0===r?-1:e.length}},87283:(e,t,n)=>{"use strict";n.d(t,{p:()=>ce,Nm:()=>Ve,tk:()=>Yn,SJ:()=>yi,lg:()=>je,l9:()=>le,S2:()=>Zr,Uw:()=>vr,qr:()=>Er,Sd:()=>pi,gB:()=>di,v5:()=>xi,ZO:()=>Wr,HQ:()=>Li,AE:()=>Dr,bF:()=>ci,$f:()=>nr,Eu:()=>Ii,OO:()=>$e,W$:()=>Ur,Zs:()=>Br,$1:()=>or,mH:()=>Oi,hJ:()=>ii});for(var r=n(30638),i=n(93662),o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=0;u<10;u++)o[48+u]=o[96+u]=String(u);for(u=1;u<=24;u++)o[u+111]="F"+u;for(u=65;u<=90;u++)o[u]=String.fromCharCode(u+32),a[u]=String.fromCharCode(u);for(var c in o)a.hasOwnProperty(c)||(a[c]=o[c]);function d(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function f(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function h(e,t){if(!t.anchorNode)return!1;try{return f(e,t.anchorNode)}catch(e){return!1}}function p(e){return 3==e.nodeType?S(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function m(e,t,n,r){return!!n&&(v(e,t,n,r,-1)||v(e,t,n,r,1))}function g(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function v(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:O(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=g(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?O(e):0}}}function O(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function y(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function b(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class w{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?O(t):0),n,Math.min(e.focusOffset,n?O(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let k,x=null;function _(e){if(e.setActive)return e.setActive();if(x)return e.focus(x);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let e=0;eMath.max(1,e.scrollHeight-e.clientHeight-4)}class T{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new T(e.parentNode,g(e),t)}static after(e,t){return new T(e.parentNode,g(e)+1,t)}}const $=[];class Q{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,r=this.dom,i=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let e=Q.get(n);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(e,t),o.flags&=-8}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;n&&n!=o.dom;)n=R(n);else r.insertBefore(o.dom,n);i=o.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=R(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==O(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Q.get(n);)n=n.nextSibling;if(!n)return this.length;for(let e=0,t=0;;e++){let r=this.children[e];if(r.dom==n)return t;t+=r.length+r.breakAfter}}domBoundsAround(e,t,n=0){let r=-1,i=-1,o=-1,a=-1;for(let s=0,l=n,u=n;st)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=s,i=l),l>t&&n.dom.parentNode==this.dom){o=s,a=u;break}u=c,l=c+n.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=$){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function j(e,t,n,r,i,o,a,s,l){let{children:u}=e,c=u.length?u[t]:null,d=o.length?o[o.length-1]:null,f=d?d.breakAfter:a;if(!(t==r&&c&&!a&&!f&&o.length<2&&c.merge(n,i,o.length?d:null,0==n,s,l))){if(r0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n2);var V={mac:B||/Mac/.test(M.platform),windows:/Win/.test(M.platform),linux:/Linux|X11/.test(M.platform),ie:L,ie_version:W?I.documentMode||6:N?+N[1]:z?+z[1]:0,gecko:F,gecko_version:F?+(/Firefox\/(\d+)/.exec(M.userAgent)||[0,0])[1]:0,chrome:!!U,chrome_version:U?+U[1]:0,ios:B,android:/Android\b/.test(M.userAgent),webkit:X,safari:q,webkit_version:X?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=I.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Y extends Q{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof Y)||this.length-(t-e)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new Y(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new T(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;0==t&&n<0||t==r&&n>=0?V.chrome||V.gecko||(t?(i--,a=1):o=0)?0:s.length-1];return V.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,(e=>e.width))||l),a?y(l,a<0):l||null}(this.dom,e,t)}}class Z extends Q{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(E(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof Z&&n.mark.eq(this.mark))||e&&i<=0||te&&t.push(n=e&&(r=i),n=a,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new Z(this.mark,t,o)}domAtPos(e){return K(this,e)}coordsAt(e,t){return ee(this,e,t)}}class G extends Q{static create(e,t,n){return new G(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=G.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof G&&this.widget.compare(n.widget))||e>0&&i<=0||t0)?T.before(this.dom):T.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let t=o?r.length-1:0;i=r[t],!(e>0?0==t:t==r.length-1||i.top0?T.before(this.dom):T.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return r.xv.empty}get isHidden(){return!0}}function K(e,t){let n=e.dom,{children:r}=e,i=0;for(let e=0;ie&&t0;e--){let t=r[e-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let e=i;e0&&t instanceof Z&&i.length&&(r=i[i.length-1])instanceof Z&&r.mark.eq(t.mark)?J(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function ee(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(t,s){for(let l=0,u=0;l=s&&(c.children.length?e(c,s-u):(!o||o.isHidden&&n>0)&&(d>s||u==d&&c.getSide()>0)?(o=c,a=s-u):(u-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function ie(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function oe(e){let t=Object.create(null);for(let n=0;n0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){re(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){J(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=te(t,this.attrs||{})),n&&(this.attrs=te({class:n},this.attrs||{}))}domAtPos(e){return K(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(E(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ie(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&Q.get(r)instanceof Z;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=Q.get(r))||void 0===n?void 0:n.isEditable)||V.ios&&this.children.some((e=>e instanceof Y))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof Y)||/[^ -~]/.test(n.text))return null;let r=p(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=ee(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight=t){if(i instanceof ae)return i;if(o>t)break}r=o+i.breakAfter}return null}}class se extends Q{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof se&&this.widget.compare(n.widget))||e>0&&i<=0||t0)}}class le{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}destroy(e){}}var ue=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ue||(ue={}));class ce extends r.uU{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new de(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new he(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=pe(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new he(e,t,n,r,e.widget||null,!0)}static line(e){return new fe(e)}static set(e,t=!1){return r.Xs.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}ce.none=r.Xs.empty;class de extends ce{constructor(e){let{start:t,end:n}=pe(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof de&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&re(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}de.prototype.point=!1;class fe extends ce{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof fe&&this.spec.class==e.spec.class&&re(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}fe.prototype.mapMode=r.gc.TrackBefore,fe.prototype.point=!0;class he extends ce{constructor(e,t,n,i,o,a){super(t,n,o,e),this.block=i,this.isReplace=a,this.mapMode=i?t<=0?r.gc.TrackBefore:r.gc.TrackAfter:r.gc.TrackDel}get type(){return this.startSide!=this.endSide?ue.WidgetRange:this.startSide<=0?ue.WidgetBefore:ue.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof he&&((t=this.widget)==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function pe(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function me(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}he.prototype.point=!0;class ge{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof se&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ae),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(ve(new H(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof se||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(ve(new Y(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof he){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof he)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new se(n.widget||new Oe("div"),a,n));else{let o=G.create(n.widget||new Oe("span"),a,a?0:n.startSide),s=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e0),l=!o.isEditable&&(er.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||s||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),s&&(u.append(ve(new H(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(ve(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,o){let a=new ge(e,t,n,o);return a.openEnd=r.Xs.spans(i,t,n,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function ve(e,t){for(let n of t)e=new Z(n,[e],e.length);return e}class Oe extends le{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const ye=r.r$.define(),be=r.r$.define(),we=r.r$.define(),ke=r.r$.define(),xe=r.r$.define(),_e=r.r$.define(),Se=r.r$.define(),Pe=r.r$.define({combine:e=>e.some((e=>e))}),Ee=r.r$.define({combine:e=>e.some((e=>e))});class Ce{constructor(e,t="nearest",n="nearest",r=5,i=5){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i}map(e){return e.empty?this:new Ce(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const Te=r.Py.define({map:(e,t)=>e.map(t)});function $e(e,t,n){let r=e.facet(ke);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const Qe=r.r$.define({combine:e=>!e.length||e[0]});let Re=0;const Ae=r.r$.define();class je{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=i(this)}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new je(Re++,e,n,r,(e=>{let t=[Ae.of(e)];return o&&t.push(ze.of((t=>{let n=t.plugin(e);return n?o(n):ce.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return je.define((t=>new e(t)),t)}}class De{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if($e(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){$e(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){$e(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Me=r.r$.define(),Ie=r.r$.define(),ze=r.r$.define(),We=r.r$.define(),Ne=r.r$.define();function Le(e,t,n){let i=e.state.facet(Ne);if(!i.length)return i;let o=i.map((t=>t instanceof Function?t(e):t)),a=[];return r.Xs.spans(o,t,n,{point(){},span(e,t,n,r){let i=a;for(let o=n.length-1;o>=0;o--,r--){let a,s=n[o].spec.bidiIsolate;if(null!=s)if(r>0&&i.length&&(a=i[i.length-1]).to==e&&a.direction==s)a.to=t,i=a.inner;else{let n={from:e,to:t,direction:s,inner:[]};i.push(n),i=n.inner}}}}),a}const Fe=r.r$.define();function Ue(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(Fe)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const Xe=r.r$.define();class qe{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new qe(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAu)break;i+=2}if(!s)return n;new qe(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),o=s.toA,a=s.toB}}}class Be{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.as.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new qe(e,t,n,r)))),this.changedRanges=i}static create(e,t,n){return new Be(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Ve=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Ve||(Ve={}));const Ye=Ve.LTR,Ze=Ve.RTL;function Ge(e){let t=[];for(let n=0;n=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.fromt:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function rt(e,t){if(e.length!=t.length)return!1;for(let n=0;nl&&a.push(new nt(l,p.from,f)),at(e,p.direction==Ye!=!(f%2)?r+1:r,i,p.inner,p.from,p.to,a),l=p.to),h=p.to}else{if(h==n||(t?it[h]!=s:it[h]==s))break;h++}d?ot(e,l,h,r+1,i,d,a):lt;){let n=!0,c=!1;if(!u||l>o[u-1].to){let e=it[l-1];e!=s&&(n=!1,c=16==e)}let d=n||1!=s?null:[],f=n?r:r+1,h=l;e:for(;;)if(u&&h==o[u-1].to){if(c)break e;let p=o[--u];if(!n)for(let e=p.from,n=u;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(it[e-1]==s)break e;break}e=o[--n].from}d?d.push(p):(p.to=0;e-=3)if(et[e+1]==-n){let t=et[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(it[a]=it[et[e]]=n),s=e;break}}else{if(189==et.length)break;et[s++]=a,et[s++]=t,et[s++]=l}else if(2==(r=it[a])||1==r){let e=r==i;l=e?0:1;for(let t=s-3;t>=0;t-=3){let n=et[t+2];if(2&n)break;if(e)et[t+2]|=2;else{if(4&n)break;et[t+2]|=4}}}}}(e,i,o,r,s),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=il;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),it[--t]=c;l=a}else o=a,l++}}}(i,o,r,s),ot(e,i,o,t,n,r,a)}function st(e){return[new nt(0,e,0)]}let lt="";function ut(e,t,n,i,o){var a;let s=i.head-e.from,l=-1;if(0==s){if(!o||!e.length)return null;t[0].level!=n&&(s=t[0].side(!1,n),l=0)}else if(s==e.length){if(o)return null;let e=t[t.length-1];e.level!=n&&(s=e.side(!0,n),l=t.length-1)}l<0&&(l=nt.find(t,s,null!==(a=i.bidiLevel)&&void 0!==a?a:-1,i.assoc));let u=t[l];s==u.side(o,n)&&(u=t[l+=o?1:-1],s=u.side(!o,n));let c=o==(u.dir==n),d=(0,r.cp)(e.text,s,c);if(lt=e.text.slice(Math.min(s,d),Math.max(s,d)),d!=u.side(o,n))return r.jT.cursor(d+e.from,c?-1:1,u.level);let f=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];return f||u.level==n?f&&f.level0&&n.length&&(n.every((({fromA:e,toA:t})=>tthis.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let n=!1;return t&&e.iterChangedRanges(((e,r)=>{et.from&&(n=!0)})),n}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let o=i>-1?function(e,t,n){let r=ft(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s))return null;if(e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc,u=new qe(l.mapPos(o),l.mapPos(a),o,a),c=[];for(let t=i.parentNode;;t=t.parentNode){let n=Q.get(t);if(n instanceof Z)c.push({node:t,deco:n.mark});else{if(n instanceof ae||"DIV"==t.nodeName&&t.parentNode==e.contentDOM)return{range:u,text:i,marks:c,line:t};if(t==e.contentDOM)return null;c.push({node:t,deco:new de({inclusive:!0,attributes:oe(t),tagName:t.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition;n=new qe(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(V.ie||V.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=function(e,t,n){let i=new pt;return r.Xs.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return n=qe.extendWithRanges(n,a),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=V.chrome||V.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let i=[];if(this.view.viewport.from||this.view.viewport.to=0?r[e]:null;if(!t)break;let o,a,s,l,{fromA:u,toA:c,fromB:d,toB:f}=t;if(n&&n.range.fromBd){let e=ge.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),t=ge.build(this.view.state.doc,n.range.toB,f,this.decorations,this.dynamicDecorationMap);a=e.breakAtStart,s=e.openStart,l=t.openEnd;let r=this.compositionView(n);t.breakAtStart?r.breakAfter=1:t.content.length&&r.merge(r.length,r.length,t.content[0],!1,t.openStart,0)&&(r.breakAfter=t.content[0].breakAfter,t.content.shift()),e.content.length&&r.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),o=e.content.concat(r).concat(t.content)}else({content:o,breakAtStart:a,openStart:s,openEnd:l}=ge.build(this.view.state.doc,d,f,this.decorations,this.dynamicDecorationMap));let{i:h,off:p}=i.findPos(c,1),{i:m,off:g}=i.findPos(u,-1);j(this,m,g,h,p,o,a,s,l)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new Y(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new Z(n,[t],t.length);let n=new ae;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=Q.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let i=e.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],t(i>=0?e.marks[i].node:e.text,r)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,i=!r&&h(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||t||i))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(a.anchor)),l=a.empty?s:this.moveToLine(this.domAtPos(a.head));if(V.gecko&&a.empty&&!this.hasComposition&&1==(u=s).node.nodeType&&u.node.firstChild&&(0==u.offset||"false"==u.node.childNodes[u.offset-1].contentEditable)&&(u.offset==u.node.childNodes.length||"false"==u.node.childNodes[u.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),s=l=new T(e,0),o=!0}var u;let c=this.view.observer.selectionRange;!o&&c.focusNode&&m(s.node,s.offset,c.anchorNode,c.anchorOffset)&&m(l.node,l.offset,c.focusNode,c.focusOffset)||(this.view.observer.ignore((()=>{V.android&&V.chrome&&this.dom.contains(c.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=d(this.view.root);if(e)if(a.empty){if(V.gecko){let e=(t=s.node,r=s.offset,1!=t.nodeType?0:(r&&"false"==t.childNodes[r-1].contentEditable?1:0)|(ra.head&&([s,l]=[l,s]),t.setEnd(l.node,l.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}var t,r;i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(s,l)),this.impreciseAnchor=s.precise?null:new T(c.anchorNode,c.anchorOffset),this.impreciseHead=l.precise?null:new T(c.focusNode,c.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=d(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=ae.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,i)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!t&&r=0;r--){let e=Q.get(n.childNodes[r]);e instanceof ae&&(t=e.domAtPos(e.length))}return t?new T(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=Q.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;o--){let a=this.children[o],s=i-a.breakAfter,l=s-a.length;if(se||a.covers(1))&&(!n||a instanceof ae&&!(n instanceof ae&&t>=0))&&(n=a,r=l),i=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof ae))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(n,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}n=t}if(!(i instanceof Y))return null;let o=(0,r.cp)(i.text,n);if(o==n)return null;let a=S(i.dom,n,o).getClientRects();return!a.length||a[0].top>=a[0].bottom?null:a[0]}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==Ve.LTR;for(let e=0,l=0;lr)break;if(e>=n){let n=u.dom.getBoundingClientRect();if(t.push(n.height),o){let t=u.dom.lastChild,r=t?p(t):[];if(r.length){let t=r[r.length-1],o=s?t.right-n.left:n.right-t.left;o>a&&(a=o,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Ve.RTL:Ve.LTR}measureTextSize(){for(let e of this.children)if(e instanceof ae){let t=e.measureTextSize();if(t)return t}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=p(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new A(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(ce.replace({widget:new dt(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return ce.set(e)}updateDeco(){let e=this.view.state.facet(ze).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;tn.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=Ue(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom};!function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(1==c.nodeType){let e,f=c==l.body,h=1,p=1;if(f)e=b(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();h=t.width/c.offsetWidth,p=t.height/c.offsetHeight,e={left:t.left,right:t.left+c.clientWidth*h,top:t.top,bottom:t.top+c.clientHeight*p}}let m=0,g=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+g+a)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+a,n<0&&t.top-g0&&t.right>e.right+m&&(m=t.right-e.right+m+o)):t.right>e.right&&(m=t.right-e.right+o,n<0&&t.left0))break;n=n.childNodes[r-1],r=O(n)}if(n>=0)for(let r=e,i=t;;){if(3==r.nodeType)return{node:r,offset:i};if(!(1==r.nodeType&&i=0))break;r=r.childNodes[i],i=0}return null}let pt=class{constructor(){this.changes=[]}compareRange(e,t){me(e,t,this.changes)}comparePoint(e,t){me(e,t,this.changes)}};function mt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function gt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function vt(e,t){return e.topt.top+1}function Ot(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function bt(e,t,n){let r,i,o,a,s,l,u,c,d=!1;for(let f=e.firstChild;f;f=f.nextSibling){let e=p(f);for(let h=0;hg||a==g&&o>m){r=f,i=p,o=m,a=g;let s=g?n0?h0)}0==m?n>p.bottom&&(!u||u.bottomp.top)&&(l=f,c=p):u&&vt(u,p)?u=yt(u,p.bottom):c&&vt(c,p)&&(c=Ot(c,p.top))}}if(u&&u.bottom>=n?(r=s,i=u):c&&c.top<=n&&(r=l,i=c),!r)return{node:e,offset:0};let f=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?wt(r,f,n):d&&"false"!=r.contentEditable?bt(r,f,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function wt(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c=(u.left+u.right)/2,r=n;if((V.chrome||V.gecko)&&S(e,s).getBoundingClientRect().left==u.right&&(r=!n),c<=0)return{node:e,offset:s+(r?1:0)};i=s+(r?1:0),o=c}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function kt(e,t,n,r=-1){var i,o;let a,s=e.contentDOM.getBoundingClientRect(),l=s.top+e.viewState.paddingTop,{docHeight:u}=e.viewState,{x:c,y:d}=t,f=d-l;if(f<0)return 0;if(f>u)return e.state.doc.length;for(let t=e.viewState.heightOracle.textHeight/2,i=!1;a=e.elementAtHeight(f),a.type!=ue.Text;)for(;f=r>0?a.bottom+t:a.top-t,!(f>=0&&f<=u);){if(i)return n?null:0;i=!0,r=-r}d=l+f;let h=a.from;if(he.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:xt(e,s,a,c,d);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(c,d);g&&!e.contentDOM.contains(g)&&(g=null),g||(c=Math.max(s.left+1,Math.min(s.right-1,c)),g=m.elementFromPoint(c,d),g&&!e.contentDOM.contains(g)&&(g=null));let v,O=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable))if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(c,d);e&&({offsetNode:v,offset:O}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(c,d);t&&(({startContainer:v,startOffset:O}=t),(!e.contentDOM.contains(v)||V.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return S(e,r-1,r).getBoundingClientRect().left>n}(v,O,c)||V.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return n-(1==e.nodeType?e.getBoundingClientRect():S(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(v,O,c))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=ae.find(e.docView,h);if(!t)return f>a.top+a.height/2?a.to:a.from;({node:v,offset:O}=bt(t.dom,c,d))}let y=e.docView.nearest(v);if(!y)return null;if(y.isWidget&&1==(null===(o=y.dom)||void 0===o?void 0:o.nodeType)){let e=y.dom.getBoundingClientRect();return t.y1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;a+=Math.floor((o-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+(0,r.Gz)(s,a,e.state.tabSize)}function _t(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==ue.Text))return e;return n}function St(e,t,n,i){let o=e.state.doc.lineAt(t.head),a=e.bidiSpans(o),s=e.textDirectionAt(o.from);for(let l=t,u=null;;){let t=ut(o,a,s,l,n),c=lt;if(!t){if(o.number==(n?e.state.doc.lines:1))return l;c="\n",o=e.state.doc.line(o.number+(n?1:-1)),a=e.bidiSpans(o),t=r.jT.cursor(n?o.from:o.to)}if(u){if(!u(c))return l}else{if(!i)return t;u=i(c)}l=t}}function Pt(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,((e,i,o)=>{if(t>e&&tt(e))),n.from,t.head>n.from?-1:1);return i==n.from?n:r.jT.cursor(i,i{if(t.target==e.scrollDOM&&t.clientY>e.contentDOM.getBoundingClientRect().bottom&&(this.runHandlers("mousedown",t),!t.defaultPrevented&&2==t.button)){let t=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout((()=>e.contentDOM.style.minHeight=t),200)}})),e.scrollDOM.addEventListener("drop",(t=>{t.target==e.scrollDOM&&t.clientY>e.contentDOM.getBoundingClientRect().bottom&&this.runHandlers("drop",t)})),this.notifiedFocused=e.hasFocus,V.safari&&e.contentDOM.addEventListener("input",(()=>null)),V.gecko&&function(e){tn.has(e)||(tn.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{})))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=Q.get(r))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=$t(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,o=n[e];o&&i!=!o.handlers.length&&(r.removeEventListener(e,this.handleEvent),o=null),o||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)"scroll"==e||t[e]||r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()t.keyCode==e.keyCode)))&&!e.ctrlKey||Rt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,P(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(V.safari&&!V.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Tt(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){$e(n.state,e)}}}function $t(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec;if(e&&e.domEventHandlers)for(let r in e.domEventHandlers){let i=e.domEventHandlers[r];i&&n(r).handlers.push(Tt(t.value,i))}if(e&&e.domEventObservers)for(let r in e.domEventObservers){let i=e.domEventObservers[r];i&&n(r).observers.push(Tt(t.value,i))}}for(let e in Mt)n(e).handlers.push(Mt[e]);for(let e in It)n(e).observers.push(It[e]);return t}const Qt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Rt="dthko",At=[16,17,18,20,91,92,224,225];function jt(e){return.7*Math.max(0,e)+8}class Dt{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(We).map((t=>t(e)));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.yy.allowMultipleSelections)&&function(e,t){let n=e.state.facet(ye);return n.length?n[0](t):V.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=d(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Zt(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,n,r;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(n=this.startEvent,r=e,Math.max(Math.abs(n.clientX-r.clientX),Math.abs(n.clientY-r.clientY))<10))return;this.select(this.lastEvent=e);let i=0,o=0,a=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=Ue(this.view);e.clientX-s.left<=a.left+6?i=-jt(a.left-e.clientX):e.clientX+s.right>=a.right-6&&(i=jt(e.clientX-a.right)),e.clientY-s.top<=a.top+6?o=-jt(a.top-e.clientY):e.clientY+s.bottom>=a.bottom-6&&(o=jt(e.clientY-a.bottom)),this.setScrollSpeed(i,o)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent)),20)}}const Mt=Object.create(null),It=Object.create(null),zt=V.ie&&V.ie_version<15||V.ios&&V.webkit_version<604;function Wt(e,t){let n,{state:i}=e,o=1,a=i.toText(t),s=a.lines==i.selection.ranges.length;if(null!=Ht&&i.selection.ranges.every((e=>e.empty))&&Ht==a.toString()){let e=-1;n=i.changeByRange((n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let u=i.toText((s?a.line(o++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:u},range:r.jT.cursor(n.from+u.length)}}))}else n=s?i.changeByRange((e=>{let t=a.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.jT.cursor(e.from+t.length)}})):i.replaceSelection(a);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function Nt(e,t,n,i){if(1==i)return r.jT.cursor(t,n);if(2==i)return function(e,t,n=1){let i=e.charCategorizer(t),o=e.doc.lineAt(t),a=t-o.from;if(0==o.length)return r.jT.cursor(t);0==a?n=1:a==o.length&&(n=-1);let s=a,l=a;n<0?s=(0,r.cp)(o.text,a,!1):l=(0,r.cp)(o.text,a);let u=i(o.text.slice(s,l));for(;s>0;){let e=(0,r.cp)(o.text,s,!1);if(i(o.text.slice(e,s))!=u)break;s=e}for(;l{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},Mt.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),It.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},It.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Mt.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(we))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=Xt(e,t),i=Zt(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,a,s){let l,u=Xt(e,t),c=Nt(e,u.pos,u.bias,i);if(n.pos!=u.pos&&!a){let t=Nt(e,n.pos,n.bias,i),o=Math.min(t.from,c.from),a=Math.max(t.to,c.to);c=o1&&(l=function(e,t){for(let n=0;n=t)return r.jT.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(o,u.pos))?l:s?o.addRange(c):r.jT.create([c])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Dt(e,t,n,r)),r&&e.observer.ignore((()=>_(e.contentDOM)));let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}return!1};let Lt=(e,t)=>e>=t.top&&e<=t.bottom,Ft=(e,t,n)=>Lt(t,n)&&e>=n.left&&e<=n.right;function Ut(e,t,n,r){let i=ae.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&Ft(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&Ft(n,r,s)?1:a&&Lt(r,a)?-1:1}function Xt(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Ut(e,n,t.clientX,t.clientY)}}const qt=V.ie&&V.ie_version<=11;let Bt=null,Vt=0,Yt=0;function Zt(e){if(!qt)return e.detail;let t=Bt,n=Yt;return Bt=e,Yt=Date.now(),Vt=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Vt+1)%3:1}function Gt(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{mouseSelection:o}=e.inputState,a=r&&o&&o.dragging&&function(e,t){let n=e.state.facet(be);return n.length?n[0](t):V.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.dragging.from,to:o.dragging.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"})}Mt.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;return r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},Mt.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&Gt(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return Gt(e,t,n,!0),!0}return!1},Mt.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=zt?null:t.clipboardData;return n?(Wt(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Wt(e,n.value)}),50)}(e),!1)};let Ht=null;Mt.copy=Mt.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;Ht=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=zt?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),!1)};const Kt=r.q6.define();function Jt(e,t){let n=[];for(let r of e.facet(Se)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Kt.of(!0)}):null}function en(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Jt(e.state,t);n?e.dispatch(n):e.update([])}}),10)}It.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),en(e)},It.blur=e=>{e.observer.clearSelectionRange(),en(e)},It.compositionstart=It.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},It.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,V.chrome&&V.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},It.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Mt.beforeinput=(e,t)=>{var n;let r;if(V.chrome&&V.android&&(r=Qt.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const tn=new Set,nn=["pre-wrap","normal","pre-line","break-spaces"];class rn{constructor(e){this.lineWrapping=e,this.doc=r.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return nn.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>ln&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return un.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:u,toB:c}=r[a],d=i.lineAt(s,sn.ByPosNoHeight,n.setDoc(t),0,0),f=d.to>=l?d:i.lineAt(l,sn.ByPosNoHeight,n,0,0);for(c+=f.to-l,l=f.to;a>0&&d.from<=r[a-1].toA;)s=r[a-1].fromA,u=r[a-1].fromB,a--,s2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class dn extends cn{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new an(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof dn||r instanceof fn&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof fn?r=new dn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):un.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class fn extends un{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(a=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),o=t.doc.lineAt(i),l=a+o.length*s,u=Math.max(n,e-l/2);return new an(o.from,o.length,u,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(i+r);return new an(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,i){if(t==sn.ByHeight)return this.blockAt(e,n,r,i);if(t==sn.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new an(t,r-t,0,0,0)}let{firstLine:o,perLine:a,perChar:s}=this.heightMetrics(n,i),l=n.doc.lineAt(e),u=a+l.length*s,c=l.number-o,d=r+a*c+s*(l.from-i-c);return new an(l.from,l.length,Math.max(r,Math.min(d,r+this.height-u)),u,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);for(let u=e,c=r;u<=t;){let t=n.doc.lineAt(u);if(u==e){let n=t.number-a;c+=s*n+l*(e-i-n)}let r=s+l*t.length;o(new an(t.from,t.length,c,r,0)),c+=r,u=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof fn?n[n.length-1]=new fn(e.length+r):n.push(null,new fn(r-1))}if(e>0){let t=n[0];t instanceof fn?n[0]=new fn(e+t.length):n.unshift(new fn(e-1),null)}return un.of(n)}decomposeLeft(e,t){t.push(new fn(e-1),null)}decomposeRight(e,t){t.push(null,new fn(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new fn(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==a?a=i:Math.abs(i-a)>=ln&&(a=-2);let s=new dn(t,i);s.outdated=!1,n.push(s),o+=t+1}o<=i&&n.push(null,new fn(i-o).updateHeight(e,o));let s=un.of(n);return(a<0||Math.abs(s.height-this.height)>=ln||Math.abs(a-this.heightMetrics(e,t).perLine)>=ln)&&(e.heightChanged=!0),s}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class hn extends un{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return ea))return l;let u=t==sn.ByPosNoHeight?sn.ByPosNoHeight:sn.ByPos;return s?l.join(this.right.lineAt(a,u,n,o,a)):this.left.lineAt(a,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,sn.ByPos,n,r,i);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&pn(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?un.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function pn(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof fn&&(r=e[t+1])instanceof fn&&e.splice(t-1,3,new fn(n.length+1+r.length))}class mn{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof dn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new dn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new dn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new fn(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof dn)return e;let t=new dn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof dn||this.isCovered?(this.writtenTon.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),a=Math.min(a,r.right),s=Math.max(s,r.top),l=t==e.parentNode?r.bottom:Math.min(l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function On(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class yn{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new rn(t),this.stateDeco=e.facet(ze).filter((e=>"function"!=typeof e)),this.heightMap=un.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle.setDoc(e.doc),[new qe(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ce.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new kn(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?Pn:new En(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:Cn(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ze).filter((e=>"function"!=typeof e));let i=e.changedRanges,o=qe.extendWithRanges(i,function(e,t,n){let i=new gn;return r.Xs.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.as.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let u=!e.changes.empty||2&e.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Ee)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Ve.RTL:Ve.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=t.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let e=s.width/t.offsetWidth,n=s.height/t.offsetHeight;(e>.995&&e<1.005||!isFinite(e)||Math.abs(s.width-t.offsetWidth)<1)&&(e=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(s.height-t.offsetHeight)<1)&&(n=1),this.scaleX==e&&this.scaleY==n||(this.scaleX=e,this.scaleY=n,u|=8,a=l=!0)}let d=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==d&&this.paddingBottom==f||(this.paddingTop=d,this.paddingBottom=f,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let h=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=C(e.scrollDOM);let p=(this.printing?On:vn)(t,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView&&(this.inView=v,v&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let O=s.width;if(this.contentDOMWidth==O&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(a=!0),a||i.lineWrapping&&Math.abs(O-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:s}=e.docView.measureTextSize();a=n>0&&i.refresh(o,n,r,s,O/r,t),a&&(e.docView.minWidth=0,u|=8)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),i.heightChanged=!1;for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(a?un.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle,[new qe(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new on(n.from,o))}i.heightChanged&&(u|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&u||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new kn(r.lineAt(o-1e3*n,sn.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),sn.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,sn.ByPos,i,0,0);n="center"==t.y?(a.top+a.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i>1,a=i<<1;if(this.defaultTextDirection!=Ve.LTR&&!n)return[];let s=[],l=(i,a,u,c)=>{if(a-ii&&ee.from>=u.from&&e.to<=u.to&&Math.abs(e.from-i)e.fromt))));if(!h){if(ae.from<=a&&e.to>=a))){let e=t.moveToLineBoundary(r.jT.cursor(a),!1,!0).head;e>i&&(a=e)}h=new yn(i,a,this.gapSize(u,i,a,c))}s.push(h)};for(let e of this.viewportLines){if(e.lengthe.from&&l(e.from,r,e,t),oe.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];r.Xs.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Cn(this.heightMap.lineAt(e,sn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Cn(this.heightMap.lineAt(this.scaler.fromDOM(e),sn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Cn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class kn{constructor(e,t){this.from=e,this.to=t}}function xn(e,t,n){let i=[],o=e,a=0;return r.Xs.spans(n,e,t,{span(){},point(e,t){e>o&&(i.push({from:o,to:e}),a+=e-o),o=t}},20),o=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function Sn(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const Pn={toDOM:e=>e,fromDOM:e=>e,scale:1};class En{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((({from:n,to:i})=>{let o=t.lineAt(n,sn.ByPos,e,0,0).top,a=t.lineAt(i,sn.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=o+(e.top-i)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tCn(e,t))):e._content)}const Tn=r.r$.define({combine:e=>e.join(" ")}),$n=r.r$.define({combine:e=>e.indexOf(!0)>-1}),Qn=i.V.newName(),Rn=i.V.newName(),An=i.V.newName(),jn={"&light":"."+Rn,"&dark":"."+An};function Dn(e,t,n){return new i.V(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const Mn=Dn("."+Qn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},jn),In="￿";class zn{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(r.yy.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=In}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==t)break;let o=Q.get(r),a=Q.get(i);(o&&a?o.breakAfter:(o?o.breakAfter:Nn(r))||Nn(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,a=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,a=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=o+a}}readNode(e){if(e.cmIgnore)return;let t=Q.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Wn(e,n.node,n.offset)?t:0))}}function Wn(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||a?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new Ln(n,r)),i==n&&o==r||t.push(new Ln(i,o))),t}(e),n=new zn(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.jT.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!f(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=a&&a.node==t.anchorNode&&a.offset==t.anchorOffset||!f(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=r.jT.single(i,n)}}}function Un(e,t){let n,{newSel:i}=t,o=e.state.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:s}=t.bounds,l=o.from,u=null;(8===a||V.android&&t.text.length0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;return"end"==r&&(n-=a+Math.max(0,o-Math.min(a,s))-o),a=a?o-n:0,s=o+(s-a),a=o):s=s?o-n:0,a=o+(a-s),s=o),{from:o,toA:a,toB:s}}(e.state.doc.sliceString(i,s,In),t.text,l-i,u);c&&(V.chrome&&13==a&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==In+In&&c.toB--,n={from:i+c.from,to:i+c.toA,insert:r.xv.of(t.text.slice(c.from,c.toB).split(In))})}else i&&(!e.hasFocus&&e.state.facet(Qe)||i.main.eq(o))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!o.empty&&i&&i.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(V.mac||V.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}):V.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}),n){if(V.ios&&e.inputState.flushIOSKey())return!0;if(V.android&&(n.from==o.from&&n.to==o.to&&1==n.insert.length&&2==n.insert.lines&&P(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&0==n.insert.length||8==a&&n.insert.lengtho.head)&&P(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&0==n.insert.length&&P(e.contentDOM,"Delete",46)))return!0;let t,s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>t||(t=function(e,t,n){let i,o=e.state,a=o.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=a.fromt.to?o.sliceDoc(t.to,a.to):"";i=o.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+r))}else{let s=o.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let u,c=e.state.sliceDoc(t.from,t.to),d=n&&ft(e,n.main.head);if(d){let e=t.insert.length-(t.to-t.from);u={from:d.from,to:d.to-e}}else u=e.state.doc.lineAt(a.head);let f=a.to-t.to,h=a.to-a.from;i=o.changeByRange((n=>{if(n.from==a.from&&n.to==a.to)return{changes:s,range:l||n.map(s)};let i=n.to-f,d=i-c.length;if(n.to-n.from!=h||e.state.sliceDoc(d,i)!=c||n.to>=u.from&&n.from<=u.to)return{range:n};let p=o.changes({from:d,to:i,insert:t.insert}),m=n.to-a.to;return{changes:p,range:l?r.jT.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):n.map(p)}}))}else i={changes:s,selection:l&&o.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),o.update(i,{userEvent:s,scrollIntoView:!0})}(e,n,i));return e.state.facet(_e).some((t=>t(e,n.from,n.to,s,l)))||e.dispatch(l()),!0}if(i&&!i.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}const Xn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},qn=V.ie&&V.ie_version<=11;class Bn{constructor(e){this.view=e,this.active=!1,this.selectionRange=new w,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(V.ie&&V.ie_version<=11||V.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),qn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)this.view.requestMeasure())),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Qe)?n.root.activeElement!=this.dom:!h(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(V.ie&&V.ie_version<=11||V.android&&V.chrome)&&!n.state.selection.main.empty&&r.focusNode&&m(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=V.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return m(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}(this.view)||d(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=h(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&P(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&h(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new Fn(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let n=this.view.state,r=Un(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=Vn(t,e.previousSibling||e.target.previousSibling,-1),r=Vn(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n,r;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Vn(e,t,n){for(;t;){let r=Q.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class Yn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new wn(e.state||r.yy.create(e)),this.plugins=this.state.facet(Ae).map((e=>new De(e)));for(let e of this.plugins)e.update(this);this.observer=new Bn(this),this.inputState=new Ct(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ct(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let t=1==e.length&&e[0]instanceof r.YW?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=!1,o=this.state;for(let t of e){if(t.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=t.state}if(this.destroyed)return void(this.viewState.state=o);let a=this.hasFocus,s=0,l=null;e.some((e=>e.annotation(Kt)))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=Jt(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(r.yy.phrases)!=this.state.facet(r.yy.phrases))return this.setState(o);t=Be.create(this,o,e),t.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(d&&(d=d.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;d=new Ce(e.empty?e:r.jT.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Te)&&(d=e.value)}this.viewState.update(t,d),this.bidiCache=Hn.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(Xe)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Tn)!=t.state.facet(Tn)&&(this.viewState.mustMeasureContent=!0),(n||i||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(xe))e(t);(l||c)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Un(this,c)&&u.force&&P(this.contentDOM,u.key,u.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new wn(e),this.plugins=e.facet(Ae).map((e=>new De(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new ct(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ae),n=e.state.facet(Ae);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new De(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(C(n))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&a||([this.measureRequests,s]=[s,this.measureRequests]);let l=s.map((e=>{try{return e.read(this)}catch(e){return $e(this.state,e),Gn}})),u=Be.create(this,this.state,[]),c=!1;u.flags|=a,t?t.flags|=a:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),c=this.docView.update(u));for(let e=0;e1||e<-1){r+=e,n.scrollTop=r/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(xe))e(t)}get themeClasses(){return Qn+" "+(this.state.facet($n)?An:Rn)+" "+this.state.facet(Tn)}updateAttrs(){let e=Kn(this,Me,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Qe)?"true":"false",class:"cm-content",style:`${V.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Kn(this,Ie,t);let n=this.observer.ignore((()=>{let n=ie(this.contentDOM,this.contentAttrs,t),r=ie(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(Yn.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(Xe);let e=this.state.facet(Yn.cspNonce);i.V.mount(this.root,this.styleModules.concat(Mn).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Et(this,e,St(this,e,t,n))}moveByGroup(e,t){return Et(this,e,St(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),o=i(n);return e=>{let t=i(e);return o==r.D0.Space&&(o=t),o==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,i){let o=_t(e,t.head),a=i&&o.type==ue.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(a){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(o.from),s=e.posAtCoords({x:n==(i==Ve.LTR)?t.right-1:t.left+1,y:(a.top+a.bottom)/2});if(null!=s)return r.jT.cursor(s,n?-1:1)}return r.jT.cursor(n?o.to:o.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return Et(this,e,function(e,t,n,i){let o=t.head,a=n?1:-1;if(o==(n?e.state.doc.length:0))return r.jT.cursor(o,t.assoc);let s,l=t.goalColumn,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o,t.assoc||-1),d=e.documentTop;if(c)null==l&&(l=c.left-u.left),s=a<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(o);null==l&&(l=Math.min(u.right-u.left,e.defaultCharacterWidth*(o-t.from))),s=(a<0?t.top:t.bottom)+d}let f=u.left+l,h=null!=i?i:e.viewState.heightOracle.textHeight>>1;for(let t=0;;t+=10){let n=s+(h+t)*a,i=kt(e,{x:f,y:n},!1,a);if(nu.bottom||(a<0?io)){let t=e.docView.coordsForChar(i),o=!t||n0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Pe)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Zn)return st(e.length);let t,n=this.textDirectionAt(e.from);for(let r of this.bidiCache)if(r.from==e.from&&r.dir==n&&(r.fresh||rt(r.isolates,t=Le(this,e.from,e.to))))return r.order;t||(t=Le(this,e.from,e.to));let r=function(e,t,n){if(!e)return[new nt(0,0,t==Ze?1:0)];if(t==Ye&&!n.length&&!tt.test(e))return st(e.length);if(n.length)for(;e.length>it.length;)it[it.length]=256;let r=[],i=t==Ye?0:1;return at(e,i,i,n,0,e.length,r),r}(e.text,n,t);return this.bidiCache.push(new Hn(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||V.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{_(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Te.of(new Ce("number"==typeof e?r.jT.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return je.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return je.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=i.V.newName(),r=[Tn.of(n),Xe.of(Dn(`.${n}`,e))];return t&&t.dark&&r.push($n.of(!0)),r}static baseTheme(e){return r.Wl.lowest(Xe.of(Dn("."+Qn,e,jn)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&Q.get(n)||Q.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}Yn.styleModule=Xe,Yn.inputHandler=_e,Yn.focusChangeEffect=Se,Yn.perLineTextDirection=Pe,Yn.exceptionSink=ke,Yn.updateListener=xe,Yn.editable=Qe,Yn.mouseSelectionStyle=we,Yn.dragMovesSelection=be,Yn.clickAddsSelectionRange=ye,Yn.decorations=ze,Yn.atomicRanges=We,Yn.bidiIsolatedRanges=Ne,Yn.scrollMargins=Fe,Yn.darkTheme=$n,Yn.cspNonce=r.r$.define({combine:e=>e.length?e[0]:""}),Yn.contentAttributes=Ie,Yn.editorAttributes=Me,Yn.lineWrapping=Yn.contentAttributes.of({class:"cm-lineWrapping"}),Yn.announce=r.Py.define();const Zn=4096,Gn={};class Hn{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],r=e.length?e[e.length-1].dir:Ve.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&te(o,n)}return n}const Jn=V.mac?"mac":V.windows?"win":V.linux?"linux":"key";function er(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const tr=r.Wl.default(Yn.domEventHandlers({keydown:(e,t)=>lr(ir(t.state),e,t,"editor")})),nr=r.r$.define({enables:tr}),rr=new WeakMap;function ir(e){let t=e.facet(nr),n=rr.get(t);return n||rr.set(t,n=function(e,t=Jn){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a,s)=>{var l,u;let c=n[e]||(n[e]=Object.create(null)),d=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let e=0;e{let r=ar={view:t,prefix:n,scope:e};return setTimeout((()=>{ar==r&&(ar=null)}),sr),!0}]})}let f=d.join(" ");i(f,!1);let h=c[f]||(c[f]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});o&&h.run.push(o),a&&(h.preventDefault=!0),s&&(h.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(r.any)}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault,r.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}function or(e,t,n){return lr(ir(e.state),t,e,n)}let ar=null;const sr=4e3;function lr(e,t,n,i){let u=function(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||l&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?a:o)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),c=(0,r.gm)(u,0),d=(0,r.nZ)(c)==u.length&&" "!=u,f="",h=!1,p=!1,m=!1;ar&&ar.view==n&&ar.scope==i&&(f=ar.prefix+" ",At.indexOf(t.keyCode)<0&&(p=!0,ar=null));let g,v,O=new Set,y=e=>{if(e){for(let r of e.run)if(!O.has(r)&&(O.add(r),r(n,t)))return e.stopPropagation&&(m=!0),!0;e.preventDefault&&(e.stopPropagation&&(m=!0),p=!0)}return!1},b=e[i];return b&&(y(b[f+er(u,t,!d)])?h=!0:d&&(t.altKey||t.metaKey||t.ctrlKey)&&!(V.windows&&t.ctrlKey&&t.altKey)&&(g=o[t.keyCode])&&g!=u?(y(b[f+er(g,t,!0)])||t.shiftKey&&(v=a[t.keyCode])!=u&&v!=g&&y(b[f+er(v,t,!1)]))&&(h=!0):d&&t.shiftKey&&y(b[f+er(u,t,!0)])&&(h=!0),!h&&y(b._any)&&(h=!0)),p&&(h=!0),h&&m&&t.stopPropagation(),h}class ur{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=cr(e);return[new ur(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==Ve.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=cr(e),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),f=s.right-(c?parseInt(c.paddingRight):0),h=_t(e,r),p=_t(e,i),m=h.type==ue.Text?h:null,g=p.type==ue.Text?p:null;if(m&&(e.lineWrapping||h.widgetLineBreaks)&&(m=dr(e,r,m)),g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=dr(e,i,g)),m&&g&&m.from==g.from)return O(y(n.from,n.to,m));{let t=m?y(n.from,null,m):b(h,!1),r=g?y(null,n.to,g):b(p,!0),i=[];return(m||h).to<(g||p).from-(m&&g?1:0)||h.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2u&&r.from=o)break;s>i&&l(Math.max(e,i),null==t&&e<=u,Math.min(s,o),null==n&&s>=c,a.dir)}if(i=r.to+1,i>=o)break}return 0==s.length&&l(u,null==t,c,null==n,e.textDirection),{top:i,bottom:a,horizontal:s}}function b(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function cr(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Ve.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function dr(e,t,n){let i=r.jT.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(i,!0,!0).from),type:ue.Text}}class fr{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(hr)!=e.state.facet(hr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,n=e.facet(hr);for(;t{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r}))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const hr=r.r$.define();function pr(e){return[je.define((t=>new fr(t,e))),hr.of(e)]}const mr=!V.ios,gr=r.r$.define({combine:e=>(0,r.BO)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function vr(e={}){return[gr.of(e),yr,wr,xr,Ee.of(!0)]}function Or(e){return e.startState.facet(gr)!=e.state.facet(gr)}const yr=pr({above:!0,markers(e){let{state:t}=e,n=t.facet(gr),i=[];for(let o of t.selection.ranges){let a=o==t.selection.main;if(o.empty?!a||mr:n.drawRangeCursor){let t=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:r.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let r of ur.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=Or(e);return n&&br(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){br(t.state,e)},class:"cm-cursorLayer"});function br(e,t){t.style.animationDuration=e.facet(gr).cursorBlinkRate+"ms"}const wr=pr({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:ur.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||Or(e),class:"cm-selectionLayer"}),kr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};mr&&(kr[".cm-line"].caretColor="transparent !important");const xr=r.Wl.highest(Yn.theme(kr)),_r=r.Py.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Sr=r.QQ.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(_r)?t.value:e),e))}),Pr=je.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(Sr);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Sr)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Sr),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Sr)!=e&&this.view.dispatch({effects:_r.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Er(){return[Sr,Pr]}function Cr(e,t,n,r,i){t.lastIndex=0;for(let o,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}class Tr{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new r.f_,n=t.add.bind(t);for(let{from:t,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))Cr(e.state.doc,this.regexp,t,r,((t,r)=>this.addMatch(r,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges(((t,i,o,a)=>{a>e.view.viewport.from&&o1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),a=Math.min(i.to,r);if(a>o){let n=e.state.doc.lineAt(o),r=n.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){s=o;break}for(;ac.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=s-n.from;(u=this.regexp.exec(n.text))&&u.indexthis.addMatch(n,e,t,d)));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>el,add:c})}}return t}}const $r=null!=/x/.unicode?"gu":"g",Qr=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",$r),Rr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ar=null;const jr=r.r$.define({combine(e){let t=(0,r.BO)(e,{render:null,specialChars:Qr,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Ar&&"undefined"!=typeof document&&document.body){let t=document.body.style;Ar=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Ar||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,$r)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,$r)),t}});function Dr(e={}){return[jr.of(e),Mr||(Mr=je.fromClass(class{constructor(e){this.view=e,this.decorations=ce.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(jr)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Tr({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:o}=n.state,a=(0,r.gm)(t[0],0);if(9==a){let e=o.lineAt(i),t=n.state.tabSize,a=(0,r.IS)(e.text,t,i-e.from);return ce.replace({widget:new zr((t-a%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=ce.replace({widget:new Ir(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(jr);e.startState.facet(jr)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Mr=null;class Ir extends le{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"␤":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(Rr[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class zr extends le{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Wr(){return Lr}const Nr=ce.line({class:"cm-activeLine"}),Lr=je.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(Nr.range(i.from)),t=i.from)}return ce.set(n)}},{decorations:e=>e.decorations});class Fr extends le{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?p(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=y(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function Ur(e){return je.fromClass(class{constructor(t){this.view=t,this.placeholder=e?ce.set([ce.widget({widget:new Fr(e),side:1}).range(0)]):ce.none}get decorations(){return this.view.state.doc.length?ce.none:this.placeholder}},{decorations:e=>e.decorations})}const Xr=2e3;function qr(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(n),o=n-i.from,a=o>Xr?-1:o==i.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):(0,r.IS)(i.text,e.state.tabSize,n-i.from);return{line:i.number,col:a,off:o}}function Br(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return Yn.mouseSelectionStyle.of(((e,n)=>t(n)?function(e,t){let n=qr(e,t),i=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(e.changes)}},get(t,o,a){let s=qr(e,t);if(!s)return i;let l=function(e,t,n){let i=Math.min(t.line,n.line),o=Math.max(t.line,n.line),a=[];if(t.off>Xr||n.off>Xr||t.col<0||n.col<0){let s=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=i;t<=o;t++){let n=e.doc.line(t);n.length<=l&&a.push(r.jT.range(n.from+s,n.to+l))}}else{let s=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=i;t<=o;t++){let n=e.doc.line(t),i=(0,r.Gz)(n.text,s,e.tabSize,!0);if(i<0)a.push(r.jT.cursor(n.to));else{let t=(0,r.Gz)(n.text,l,e.tabSize);a.push(r.jT.range(n.from+i,n.from+t))}}}return a}(e.state,n,s);return l.length?a?r.jT.create(l.concat(i.ranges)):r.jT.create(l):i}}:null}(e,n):null))}const Vr={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Yr={style:"cursor: crosshair"};function Zr(e={}){let[t,n]=Vr[e.key||"Alt"],r=je.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,Yn.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?Yr:null}))]}const Gr="-10000px";class Hr{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e){var t;let n=e.state.facet(this.facet),r=n.filter((e=>e));if(n===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[];for(let t=0;t{var t,n,r;return{position:V.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||Kr}}}),ei=new WeakMap,ti=je.fromClass(class{constructor(e){this.view=e,this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Jr);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Hr(e,ii,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(Jr);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=Gr,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{offsetParent:e}=this.manager.tooltipViews[0].dom;r=!(!e||e==this.container.ownerDocument.body)}if(r||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(Jr).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1){c.style.top=Gr;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,p=h?7:0,m=f.right-f.left,g=null!==(t=ei.get(u))&&void 0!==t?t:f.bottom-f.top,v=u.offset||ri,O=this.view.textDirection==Ve.LTR,y=f.width>r.right-r.left?O?r.left:r.right-f.width:O?Math.min(d.left-(h?14:0)+v.x,r.right-m):Math.max(r.left,d.left-m+(h?14:0)-v.x),b=!!l.above;!l.strictSide&&(b?d.top-(f.bottom-f.top)-v.yr.bottom)&&b==r.bottom-d.bottom>d.top-r.top&&(b=!b);let w=(b?d.top-r.top:r.bottom-d.bottom)-p;if(wy&&e.topk&&(k=b?e.top-g-2-p:e.bottom+p+2);if("absolute"==this.position?(c.style.top=(k-e.parent.top)/o+"px",c.style.left=(y-e.parent.left)/i+"px"):(c.style.top=k/o+"px",c.style.left=y/i+"px"),h){let e=d.left+(O?v.x:-v.x)-(y+14-7);h.style.left=e/i+"px"}!0!==u.overlap&&a.push({left:y,top:k,right:x,bottom:k+g}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Gr}},{eventObservers:{scroll(){this.maybeMeasure()}}}),ni=Yn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ri={x:0,y:0},ii=r.r$.define({enables:[ti,ni]}),oi=r.r$.define();class ai{static create(e){return new ai(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Hr(e,oi,(e=>this.createHostedView(e)))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}}const si=ii.compute([oi],(e=>{let t=e.facet(oi).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.filter((e=>null!=e.end)).map((e=>e.end))),create:ai.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class li{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find((e=>e.from<=r&&e.to>=r)),a=o&&o.dir==Ve.RTL?-1:1;i=t.x{this.pending==t&&(this.pending=null,n&&e.dispatch({effects:this.setHover.of(n)}))}),(t=>$e(e.state,t,"hover tooltip")))}else o&&e.dispatch({effects:this.setHover.of(o)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!ui(this.lastMove.target)||this.pending){let{pos:r}=n||this.pending,i=null!==(t=null==n?void 0:n.end)&&void 0!==t?t:r;(r==i?this.view.posAtCoords(this.lastMove)==r:function(e,t,n,r,i,o){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.righti||Math.min(a.bottom,s)=t&&l<=n}(this.view,r,i,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!ui(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function ui(e){for(let t=e;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}function ci(e,t={}){let n=r.Py.define(),i=r.QQ.define({create:()=>null,update(e,i){if(e&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,e)))return null;if(e&&i.docChanged){let t=i.changes.mapPos(e.pos,-1,r.gc.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=i.changes.mapPos(e.end)),e=n}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(fi)&&(e=null);return e},provide:e=>oi.from(e)});return[i,je.define((r=>new li(r,e,i,n,t.hoverTime||300))),si]}function di(e,t){let n=e.plugin(ti);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const fi=r.Py.define(),hi=r.r$.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function pi(e,t){let n=e.plugin(mi),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const mi=je.fromClass(class{constructor(e){this.input=e.state.facet(Oi),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(hi);this.top=new gi(e,!0,t.topContainer),this.bottom=new gi(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(hi);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new gi(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new gi(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Oi);if(n!=this.input){let t=n.filter((e=>e)),r=[],i=[],o=[],a=[];for(let n of t){let t,s=this.specs.indexOf(n);s<0?(t=n(e.view),a.push(t)):(t=this.panels[s],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of a)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Yn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class gi{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=vi(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=vi(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function vi(e){let t=e.nextSibling;return e.remove(),t}const Oi=r.r$.define({enables:mi});class yi extends r.uU{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}yi.prototype.elementClass="",yi.prototype.toDOM=void 0,yi.prototype.mapMode=r.gc.TrackBefore,yi.prototype.startSide=yi.prototype.endSide=-1,yi.prototype.point=!0;const bi=r.r$.define(),wi={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>r.Xs.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},ki=r.r$.define();function xi(e){return[Si(),ki.of(Object.assign(Object.assign({},wi),e))]}const _i=r.r$.define({combine:e=>e.some((e=>e))});function Si(e){let t=[Pi];return e&&!1===e.fixed&&t.push(_i.of(!0)),t}const Pi=je.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(ki).map((t=>new $i(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(_i),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(_i)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=r.Xs.iter(this.view.state.facet(bi),this.view.viewport.from),i=[],o=this.gutters.map((e=>new Ti(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(e.type)){let t=!0;for(let r of e.type)if(r.type==ue.Text&&t){Ci(n,i,r.from);for(let e of o)e.line(this.view,r,i);t=!1}else if(r.widget)for(let e of o)e.widget(this.view,r)}else if(e.type==ue.Text){Ci(n,i,e.from);for(let t of o)t.line(this.view,e,i)}else if(e.widget)for(let t of o)t.widget(this.view,e);for(let e of o)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(ki),n=e.state.facet(ki),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.Xs.eq(e.startState.facet(bi),e.state.facet(bi),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new $i(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Yn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Ve.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function Ei(e){return Array.isArray(e)?e:[e]}function Ci(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Ti{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.Xs.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new Qi(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];Ci(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class $i{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let a=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()}));this.markers=Ei(t.markers(e)),t.initialSpacer&&(this.spacer=new Qi(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ei(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.Xs.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Qi{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n(0,r.BO)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class ji extends yi{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Di(e,t){return e.state.facet(Ai).formatNumber(t,e.state)}const Mi=ki.compute([Ai],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Ri),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new ji(Di(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Ai)!=e.state.facet(Ai),initialSpacer:e=>new ji(Di(e,zi(e.state.doc.lines))),updateSpacer(e,t){let n=Di(t.view,zi(t.view.state.doc.lines));return n==e.number?e:new ji(n)},domEventHandlers:e.facet(Ai).domEventHandlers})));function Ii(e={}){return[Ai.of(e),Si(),Mi]}function zi(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(Wi.range(i)))}return r.Xs.of(t)}));function Li(){return Ni}},90845:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Store:()=>r,clear:()=>c,close:()=>f,del:()=>u,get:()=>a,keys:()=>d,set:()=>s,update:()=>l});class r{constructor(e="keyval-store",t="keyval"){this.storeName=t,this._dbName=e,this._storeName=t,this._init()}_init(){this._dbp||(this._dbp=new Promise(((e,t)=>{const n=indexedDB.open(this._dbName);n.onerror=()=>t(n.error),n.onsuccess=()=>e(n.result),n.onupgradeneeded=()=>{n.result.createObjectStore(this._storeName)}})))}_withIDBStore(e,t){return this._init(),this._dbp.then((n=>new Promise(((r,i)=>{const o=n.transaction(this.storeName,e);o.oncomplete=()=>r(),o.onabort=o.onerror=()=>i(o.error),t(o.objectStore(this.storeName))}))))}_close(){return this._init(),this._dbp.then((e=>{e.close(),this._dbp=void 0}))}}let i;function o(){return i||(i=new r),i}function a(e,t=o()){let n;return t._withIDBStore("readwrite",(t=>{n=t.get(e)})).then((()=>n.result))}function s(e,t,n=o()){return n._withIDBStore("readwrite",(n=>{n.put(t,e)}))}function l(e,t,n=o()){return n._withIDBStore("readwrite",(n=>{const r=n.get(e);r.onsuccess=()=>{n.put(t(r.result),e)}}))}function u(e,t=o()){return t._withIDBStore("readwrite",(t=>{t.delete(e)}))}function c(e=o()){return e._withIDBStore("readwrite",(e=>{e.clear()}))}function d(e=o()){const t=[];return e._withIDBStore("readwrite",(e=>{(e.openKeyCursor||e.openCursor).call(e).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}})).then((()=>t))}function f(e=o()){return e._close()}},54163:(e,t,n)=>{"use strict";n.d(t,{FE:()=>M,Jq:()=>u,L3:()=>r,Lj:()=>c,_b:()=>j,hr:()=>R,i9:()=>A,md:()=>a,mp:()=>p,vj:()=>h});const r=1024;let i=0;class o{constructor(e,t){this.from=e,this.to=t}}class a{constructor(e={}){this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=u.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}a.closedBy=new a({deserialize:e=>e.split(" ")}),a.openedBy=new a({deserialize:e=>e.split(" ")}),a.group=new a({deserialize:e=>e.split(" ")}),a.contextHash=new a({perNode:!0}),a.lookAhead=new a({perNode:!0}),a.mounted=new a({perNode:!0});class s{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[a.mounted.id]}}const l=Object.create(null);class u{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new u(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(a.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(a.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class c{constructor(e){this.types=e;for(let t=0;t=t){let a=new b(o.tree,o.overlay[0].from+e.from,0,null);(i||(i=[r])).push(O(a,t,n,!1))}}return i?S(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,a=(o&h.IncludeAnonymous)>0;for(let e=this.cursor(o|h.IncludeAnonymous);;){let o=!1;if(e.from<=i&&e.to>=r&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;o=!0}for(;o&&n&&(a||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;o=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Q(u.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new p(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new p(u.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:o=r,reused:s=[],minRepeatType:l=i.types.length}=e,u=Array.isArray(n)?new m(n,n.length):n,c=i.types,d=0,f=0;function h(e,t,n,r,m){let{id:b,start:w,end:k,size:x}=u,_=f;for(;x<0;){if(u.next(),-1==x){let t=s[b];return n.push(t),void r.push(w-e)}if(-3==x)return void(d=b);if(-4==x)return void(f=b);throw new RangeError(`Unrecognized record size: ${x}`)}let S,P,E=c[b],C=w-e;if(k-w<=o&&(P=function(e,t){let n=u.fork(),r=0,i=0,a=0,s=n.end-o,c={size:0,start:0,skip:0};e:for(let o=n.pos-e;n.pos>o;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=i,c.skip=a,a+=4,r+=4,n.next();continue}let u=n.pos-e;if(e<0||u=l?4:0,f=n.start;for(n.next();n.pos>u;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=l&&(d+=4);n.next()}i=f,r+=e,a+=d}return(t<0||r==e)&&(c.size=r,c.start=i,c.skip=a),c.size>4?c:void 0}(u.pos-t,m))){let t=new Uint16Array(P.size-P.skip),n=u.pos-P.size,r=t.length;for(;u.pos>n;)r=y(P.start,t,r);S=new g(t,k-P.start,i),C=P.start-e}else{let e=u.pos-x;u.next();let t=[],n=[],r=b>=l?b:-1,i=0,s=k;for(;u.pos>e;)r>=0&&u.id==r&&u.size>=0?(u.end<=s-o&&(v(t,n,w,i,u.end,s,r,_),i=t.length,s=u.end),u.next()):h(w,e,t,n,r);if(r>=0&&i>0&&i-1&&i>0){let e=function(e){return(t,n,r)=>{let i,o,s=0,l=t.length-1;if(l>=0&&(i=t[l])instanceof p){if(!l&&i.type==e&&i.length==r)return i;(o=i.prop(a.lookAhead))&&(s=n[l]+i.length+o)}return O(e,t,n,r,s)}}(E);S=Q(E,t,n,0,t.length,0,k-w,e,e)}else S=O(E,t,n,k-w,_-k)}n.push(S),r.push(C)}function v(e,t,n,r,o,a,s,l){let u=[],c=[];for(;e.length>r;)u.push(e.pop()),c.push(t.pop()+n-o);e.push(O(i.types[s],u,c,a-o,l-a)),t.push(o-n)}function O(e,t,n,r,i=0,o){if(d){let e=[a.contextHash,d];o=o?[e].concat(o):[e]}if(i>25){let e=[a.lookAhead,i];o=o?[e].concat(o):[e]}return new p(e,t,n,r,o)}function y(e,t,n){let{id:r,start:i,end:o,size:a}=u;if(u.next(),a>=0&&r4){let r=u.pos-(a-4);for(;u.pos>r;)n=y(e,t,n)}t[--n]=s,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==a?d=r:-4==a&&(f=r);return n}let b=[],w=[];for(;u.pos>0;)h(e.start||0,e.bufferStart||0,b,w,-1);let k=null!==(t=e.length)&&void 0!==t?t:b.length?w[0]+b[0].length:0;return new p(c[e.topID],b.reverse(),w.reverse(),k)}(e)}}p.empty=new p(u.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return u.none}toString(){let e=[];for(let t=0;t0));s=o[s+3]);return a}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let a=e,s=0;a=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function O(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?a.length:-1;e!=u;e+=t){let u=a[e],c=l[e]+o.from;if(v(r,n,c,c+u.length))if(u instanceof g){if(i&h.ExcludeBuffers)continue;let a=u.findChild(0,u.buffer.length,t,n-c,r);if(a>-1)return new _(new x(o,u,e,c),null,a)}else if(i&h.IncludeAnonymous||!u.type.isAnonymous||C(u)){let a;if(!(i&h.IgnoreMounts)&&(a=s.get(u))&&!a.overlay)return new b(a.tree,c,e,o);let l=new b(u,c,e,o);return i&h.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?u.children.length-1:0,t,n,r)}}if(i&h.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&h.IgnoreOverlays)&&(r=s.get(this._tree))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e=n:i>n))return new b(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function w(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function k(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class x{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class _ extends y{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new _(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&h.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new _(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new _(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new _(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new p(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function S(e){if(!e.length)return null;if(1==e.length)return e[0];let t=0,n=e[0];for(let r=1;rn.from||i.to0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&h.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||C(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let e=n;e=0;i--){if(i<0)return k(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function C(e){return e.children.some((e=>e instanceof g||!e.type.isAnonymous||C(e)))}const T=new WeakMap;function $(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=T.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof p)){n=1;break}n+=$(e,r)}T.set(t,n)}return n}function Q(e,t,n,r,i,o,a,s,l){let u=0;for(let n=r;n=c)break;p+=t}if(u==i+1){if(p>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}d.push(n[i])}else{let t=r[u-1]+n[u-1].length-h;d.push(Q(e,n,r,i,u,h,t,null,l))}f.push(h+s-o)}}(t,n,r,i,0),(s||l)(d,f,a)}class R{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof _?this.setBuffer(e.context.buffer,e.index,t):e instanceof b&&this.map.set(e.tree,t)}get(e){return e instanceof _?this.getBuffer(e.context.buffer,e.index):e instanceof b?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class A{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new A(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let a=0,s=0,l=0;;a++){let u=a=n)for(;o&&o.from=t.from||c<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new A(e,n,t.tree,t.offset+l,a>0,!!u)}if(t&&r.push(t),o.to>c)break;o=inew o(e.from,e.to))):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class D{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function M(e){return(t,n,r,i)=>new N(t,e,n,r,i)}class I{constructor(e,t,n,r,i){if(this.parser=e,this.parse=t,this.overlay=n,this.target=r,this.ranges=i,!i.length||i.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(i))}}class z{constructor(e,t,n,r,i,o,a){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=i,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const W=new a({perNode:!0});class N{constructor(e,t,n,r,i){this.nest=t,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new p(e.type,e.children,e.positions,e.length,e.propValues.concat([[W,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[a.mounted.id]=new s(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;te.frag.from<=r.from&&e.frag.to>=r.to&&e.mount.overlay));if(e)for(let n of e.mount.overlay){let i=n.from+e.pos,o=n.to+e.pos;i>=r.from&&o<=r.to&&!t.ranges.some((e=>e.fromi))&&t.ranges.push({from:i,to:o})}}l=!1}else if(n&&(a=L(n.ranges,r.from,r.to)))l=2!=a;else if(!r.type.isAnonymous&&r.fromnew o(e.from-r.from,e.to-r.from))):null,r.tree,e)),i.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):l=!1}}else t&&(s=t.predicate(r))&&(!0===s&&(s=new o(r.from,r.to)),s.fromnew o(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function L(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function F(e,t,n,r,i,o){if(t=t.to);r++);let a=i.children[r],s=a.buffer;i.children[r]=function e(n,r,i,l,u){let c=n;for(;s[c+2]+o<=t.from;)c=s[c+3];let d=[],f=[];F(a,n,c,d,f,l);let h=s[c+1],m=s[c+2],g=h+o==t.from&&m+o==t.to&&s[c]==t.type.id;return d.push(g?t.toTree():e(c+4,s[c+3],a.set.types[s[c]],h,m-h)),f.push(h-l),F(a,s[c+3],r,d,f,l),new p(i,d,f,u)}(0,s.length,u.none,0,a.length);for(let r=0;r<=n;r++)e.childAfter(t.from)}class X{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(h.IncludeAnonymous|h.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from=e&&t.enter(n,1,h.IgnoreOverlays|h.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof p))break;t=t.children[0]}return!1}}class q{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(W))&&void 0!==t?t:n.to,this.inner=new X(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(W))&&void 0!==e?e:t.to,this.inner=new X(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(n=e.tree)||void 0===n?void 0:n.prop(a.mounted);if(i&&i.parser==t)for(let t=this.fragI;t=e.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:e.from-n.offset,mount:i})}}}return r}}function B(e,t){let n=null,r=t;for(let i=1,a=0;i=l)break;e.to<=s||(n||(r=n=t.slice()),e.froml&&n.splice(a+1,0,new o(l,e.to))):e.to>l?n[a--]=new o(l,e.to):n.splice(a--,1))}}return r}function V(e,t,n,r){let i=0,a=0,s=!1,l=!1,u=-1e9,c=[];for(;;){let d=i==e.length?1e9:s?e[i].to:e[i].from,f=a==t.length?1e9:l?t[a].to:t[a].from;if(s!=l){let e=Math.max(u,n),t=Math.min(d,f,r);enew o(e.from+r,e.to+r))),l,u);for(let t=0,r=l;;t++){let o=t==s.length,l=o?u:s[t].from;if(l>r&&n.push(new A(r,l,i.tree,-e,a.from>=r||a.openStart,a.to<=l||a.openEnd)),o)break;r=s[t].to}}else n.push(new A(l,u,i.tree,-e,a.from>=e||a.openStart,a.to<=s||a.openEnd))}return n}},7778:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>l,QR:()=>d,Vp:()=>o,bW:()=>f,pJ:()=>T});var r=n(54163);let i=0;class o{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=i++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new o([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new s;return t=>t.modified.indexOf(e)>-1?t:s.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let a=0;class s{constructor(){this.instances=[],this.id=a++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every(((e,t)=>e==i[t])));var r,i}));if(n)return n;let r=[],i=new o(r,e,t);for(let e of t)e.instances.push(i);let a=function(e){let t=[[]];for(let n=0;nt.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of a)r.push(s.get(t,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){i=0;break}if("/"!=a)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+e);let l=new c(r,i,a>0?n.slice(0,a):null);t[s]=l.sort(t[s])}}return u.add(t)}const u=new r.md;class c{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function f(e,t,n,r=0,i=e.length){let o=new h(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}c.empty=new c([],2,null);class h{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,o){let{type:a,from:s,to:l}=e;if(s>=n||l<=t)return;a.isTop&&(o=this.highlighters.filter((e=>!e.scope||e.scope(a))));let d=i,f=function(e){let t=e.type.prop(u);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||c.empty,h=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(o,f.tags);if(h&&(d&&(d+=" "),d+=h,1==f.mode&&(i+=(i?" ":"")+h)),this.startSpan(Math.max(t,s),d),f.opaque)return;let p=e.tree&&e.tree.prop(r.md.mounted);if(p&&p.overlay){let r=e.node.enter(p.overlay[0].from+s,1),a=this.highlighters.filter((e=>!e.scope||e.scope(p.tree.type))),u=e.firstChild();for(let c=0,f=s;;c++){let h=c=m)&&e.nextSibling()););if(!h||m>n)break;f=h.to+s,f>t&&(this.highlightRange(r.cursor(),Math.max(t,h.from+s),Math.min(n,f),"",a),this.startSpan(Math.min(n,f),d))}u&&e.parent()}else if(e.firstChild()){p&&(i="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,o),this.startSpan(Math.min(n,e.to),d)}}while(e.nextSibling());e.parent()}}}const p=o.define,m=p(),g=p(),v=p(g),O=p(g),y=p(),b=p(y),w=p(y),k=p(),x=p(k),_=p(),S=p(),P=p(),E=p(P),C=p(),T={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:v,tagName:p(v),propertyName:O,attributeName:p(O),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:y,string:b,docString:p(b),character:p(b),attributeValue:p(b),number:w,integer:p(w),float:p(w),bool:p(y),regexp:p(y),escape:p(y),color:p(y),url:p(y),keyword:_,self:p(_),null:p(_),atom:p(_),unit:p(_),modifier:p(_),operatorKeyword:p(_),controlKeyword:p(_),definitionKeyword:p(_),moduleKeyword:p(_),operator:S,derefOperator:p(S),arithmeticOperator:p(S),logicOperator:p(S),bitwiseOperator:p(S),compareOperator:p(S),updateOperator:p(S),definitionOperator:p(S),typeOperator:p(S),controlOperator:p(S),punctuation:P,separator:p(P),bracket:E,angleBracket:p(E),squareBracket:p(E),paren:p(E),brace:p(E),content:k,heading:x,heading1:p(x),heading2:p(x),heading3:p(x),heading4:p(x),heading5:p(x),heading6:p(x),contentSeparator:p(k),list:p(k),quote:p(k),emphasis:p(k),strong:p(k),link:p(k),monospace:p(k),strikethrough:p(k),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:C,documentMeta:p(C),annotation:p(C),processingInstruction:p(C),definition:o.defineModifier(),constant:o.defineModifier(),function:o.defineModifier(),standard:o.defineModifier(),local:o.defineModifier(),special:o.defineModifier()};d([{tag:T.link,class:"tok-link"},{tag:T.heading,class:"tok-heading"},{tag:T.emphasis,class:"tok-emphasis"},{tag:T.strong,class:"tok-strong"},{tag:T.keyword,class:"tok-keyword"},{tag:T.atom,class:"tok-atom"},{tag:T.bool,class:"tok-bool"},{tag:T.url,class:"tok-url"},{tag:T.labelName,class:"tok-labelName"},{tag:T.inserted,class:"tok-inserted"},{tag:T.deleted,class:"tok-deleted"},{tag:T.literal,class:"tok-literal"},{tag:T.string,class:"tok-string"},{tag:T.number,class:"tok-number"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"tok-string2"},{tag:T.variableName,class:"tok-variableName"},{tag:T.local(T.variableName),class:"tok-variableName tok-local"},{tag:T.definition(T.variableName),class:"tok-variableName tok-definition"},{tag:T.special(T.variableName),class:"tok-variableName2"},{tag:T.definition(T.propertyName),class:"tok-propertyName tok-definition"},{tag:T.typeName,class:"tok-typeName"},{tag:T.namespace,class:"tok-namespace"},{tag:T.className,class:"tok-className"},{tag:T.macroName,class:"tok-macroName"},{tag:T.propertyName,class:"tok-propertyName"},{tag:T.operator,class:"tok-operator"},{tag:T.comment,class:"tok-comment"},{tag:T.meta,class:"tok-meta"},{tag:T.invalid,class:"tok-invalid"},{tag:T.punctuation,class:"tok-punctuation"}])},64963:(e,t,n)=>{"use strict";n.d(t,{IK:()=>C,Jq:()=>m,RA:()=>p,WQ:()=>T});var r=n(54163),i=n(48494);class o{constructor(e,t,n,r,i,o,a,s,l,u=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=a,this.bufferBase=s,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new o(e,[],t,n,n,0,[],0,r?new a(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,o=i.dynamicPrecedence(r);if(o&&(this.score+=o),0==n)return this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(r,s)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t)return void(e.buffer[r-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let i=e,{parser:o}=this.p;(r>this.pos||t<=o.maxNode)&&(this.pos=r,o.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new s(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i1&t&&e==r))||n.push(t[e],r)}t=n}let n=[];for(let e=0;e>19,r=65535&t,i=this.stack.length-3*n;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class a{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class s{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class l{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new l(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new l(this.stack,this.pos,this.index)}}function u(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class c{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const d=new c;class f{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=d,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;in.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r=this.chunk2Pos&&tr.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=d,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class h{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;g(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}h.prototype.contextual=h.prototype.fallback=h.prototype.extend=!1;class p{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?u(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(g(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}p.prototype.contextual=h.prototype.fallback=h.prototype.extend=!1;class m{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function g(e,t,n,r,i,o){let a=0,s=1<0){let n=e[r];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||O(n,t.token.value,i,o))){t.acceptToken(n);break}}let r=t.next,u=0,c=e[a+2];if(!(t.next<0&&c>u&&65535==e[n+3*c-3]&&65535==e[n+3*c-3])){for(;u>1,o=n+i+(i<<1),s=e[o],l=e[o+1]||65536;if(r=l)){a=e[o+2],t.advance();continue e}u=i+1}}break}a=e[n+3*c-1]}}function v(e,t,n){for(let r,i=t;65535!=(r=e[i]);i++)if(r==n)return i-t;return-1}function O(e,t,n,r){let i=v(n,r,t);return i<0||v(n,r,e)t)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}class k{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?w(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?w(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(o instanceof r.mp){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+o.length}}}class x{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new c))}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0;for(let r=0;ru.end+25&&(s=Math.max(u.lookAhead,s)),0!=u.value)){let r=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(n=u,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||(n=new c,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new c,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r=0&&n.p.parser.dialect.allows(i>>1)){0==(1&i)?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t4*e.bufferLength?new k(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;or)i.push(a);else{if(this.advanceStack(a,i,n))continue;{e||(e=[],t=[]),e.push(a);let n=this.tokens.getMainToken(a);t.push(n.value,n.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return y&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort(((e,t)=>t.score-e.score));i.length>e;)i.pop();i.some((e=>e.reducePos>r))&&this.recovering--}else if(i.length>1){e:for(let e=0;e500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(n--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let e=1;e ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let s=this.fragments.nodeAt(i);s;){let i=this.parser.nodeSet.types[s.type.id]==s.type?o.getGoto(e.state,s.type.id):-1;if(i>-1&&s.length&&(!t||(s.prop(r.md.contextHash)||0)==n))return e.useNode(s,i),y&&console.log(a+this.stackID(e)+` (via reuse of ${o.getName(s.type.id)})`),!0;if(!(s instanceof r.mp)||0==s.children.length||s.positions[0]>0)break;let l=s.children[0];if(!(l instanceof r.mp&&0==s.positions[0]))break;s=l}}let s=o.stateSlot(e.state,4);if(s>0)return e.reduce(s),y&&console.log(a+this.stackID(e)+` (via always-reduce ${o.getName(65535&s)})`),!0;if(e.stack.length>=9e3)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let r=0;ri?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return S(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let o=0;o ":"";if(a.deadEnd){if(i)continue;if(i=!0,a.restart(),y&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))continue}let c=a.split(),d=u;for(let e=0;c.forceReduce()&&e<10&&(y&&console.log(d+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));e++)y&&(d=this.stackID(c)+" -> ");for(let e of a.recoverByInsert(s))y&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>a.pos?(l==a.pos&&(l++,s=0),a.recoverByDelete(s,l),y&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(s)})`),S(a,n)):(!r||r.scoree;class C{constructor(e){this.start=e.start,this.shift=e.shift||E,this.reduce=e.reduce||E,this.reuse=e.reuse||E,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class T extends r._b{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;ne.topRules[t][1])),i=[];for(let e=0;e=0)o(r,e,t[n++]);else{let i=t[n+-r];for(let a=-r;a>0;a--)o(t[n++],e,i);n++}}}this.nodeSet=new r.Lj(t.map(((t,o)=>r.Jq.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:i[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=r.L3;let a=u(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e"number"==typeof e?new h(a,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new _(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],o=1&t,a=r[i++];if(o&&n)return a;for(let n=i+(t>>1);i0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==r;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=$(this.data,n+2)}r=t($(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=$(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(T.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,r)=>{let i=e.specializers.find((e=>e.from==n.external));if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=Q(o),o}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;ee.external(n,r)<<1|t}return e.get}},93662:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});const r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class a{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,a){let s=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let a=t[n];if(/&/.test(n))i(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),a,o);else if(a&&"object"==typeof a){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,s,u)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+a+";")}(s.length||u)&&o.push((!n||l||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new l(e,o),r.mount(Array.isArray(t)?t:[t])}}let s=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=s.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[i]=t;this.sheet=new r.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],s.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let r=e.head||e;r.insertBefore(this.styleTag,r.firstChild)}this.modules=[],e[i]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,o),t)for(let e=0;e{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},72081:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>r[t]=()=>e[t]));return r.default=()=>e,__webpack_require__.d(n,r),n},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,n)=>(__webpack_require__.f[n](e,t),t)),[])),__webpack_require__.u=e=>e+".static-cms-app.js",__webpack_require__.miniCssF=e=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="StaticCmsApp:",__webpack_require__.l=(e,t,n,r)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s{i.onerror=i.onload=null,clearTimeout(c);var r=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},c=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={179:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,l=0;if(o.some((t=>0!==e[t]))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);s&&s(__webpack_require__)}for(t&&t(n);l{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{APIError:()=>a_,AccessTokenError:()=>C_,BackendClass:()=>mAt,BalloonToolbar:()=>ekt,BitbucketBackend:()=>O7,BlockquoteElement:()=>bkt,BoldToolbarButton:()=>twt,BooleanControl:()=>Ffe,BooleanSchema:()=>Ufe,BooleanWidget:()=>Xfe,CURSOR_COMPATIBILITY_SYMBOL:()=>D_,CodeBlockElement:()=>Skt,CodeBlockFrame:()=>kkt,CodeControl:()=>Pye,CodePreview:()=>Cye,CodeSchema:()=>Tye,CodeSettingsButton:()=>ZOe,CodeSettingsPane:()=>yye,CodeWidget:()=>$ye,ColorButton:()=>ukt,ColorControl:()=>sEe,ColorInput:()=>ckt,ColorPicker:()=>mkt,ColorPreview:()=>uEe,ColorStringWidget:()=>fEe,Colors:()=>dkt,Cursor:()=>j_,CursorOverlayContainer:()=>Kxt,CustomColors:()=>fkt,DEFAULT_TYPE_KEY:()=>BK,DateTimeControl:()=>VWe,DateTimePreview:()=>ZWe,DateTimeWidget:()=>KWe,DecreaseIndentToolbarButton:()=>wwt,DeleteColumnToolbarButton:()=>lwt,DeleteRowToolbarButton:()=>cwt,DeleteTableToolbarButton:()=>fwt,ELEMENT_LI:()=>c_t,ELEMENT_LIC:()=>d_t,ELEMENT_OL:()=>u_t,ELEMENT_SHORTCODE:()=>Qbt,ELEMENT_UL:()=>l_t,EditorialWorkflowError:()=>z_,FilePreview:()=>tNe,FileSchema:()=>nNe,FileWidget:()=>INe,FontTypeSelect:()=>ywt,GitGatewayBackend:()=>Tte,GitHubBackend:()=>zee,GitLabBackend:()=>Kee,GitProxyBackendGenerator:()=>loe,GiteaBackend:()=>Lte,Heading1:()=>Ckt,Heading2:()=>Qkt,Heading3:()=>jkt,Heading4:()=>Ikt,Heading5:()=>Nkt,Heading6:()=>Ukt,HrElement:()=>qkt,ImagePreview:()=>NNe,ImageSchema:()=>LNe,ImageToolbarButton:()=>Swt,ImageWidget:()=>UNe,ImplicitAuthenticator:()=>oz,IncreaseIndentToolbarButton:()=>awt,InsertColumnToolbarButton:()=>xwt,InsertRowToolbarButton:()=>Twt,ItalicToolbarButton:()=>Awt,KeyValueControl:()=>YNe,KeyValuePreview:()=>GNe,KeyValueWidget:()=>tLe,LIST_TYPES:()=>OCt,LinkToolbarButton:()=>Ewt,ListControl:()=>bLe,ListItem:()=>hLe,ListItemContentElement:()=>ext,ListItemElement:()=>nxt,ListPreview:()=>xLe,ListSchema:()=>_Le,ListWidget:()=>SLe,MapPreview:()=>ELe,MapSchema:()=>CLe,MapWidget:()=>gGe,MarkNodeTypes:()=>gCt,MarkdownControl:()=>oQt,MarkdownPreview:()=>eQt,MarkdownSchema:()=>nQt,MarkdownWidget:()=>aQt,MediaPopover:()=>Okt,NetlifyAuthenticator:()=>KI,NodeTypes:()=>vCt,NumberControl:()=>lQt,NumberPreview:()=>cQt,NumberWidget:()=>hQt,ObjectControl:()=>gQt,ObjectPreview:()=>OQt,ObjectSchema:()=>yQt,ObjectWidget:()=>bQt,OrderedListElement:()=>ixt,OrderedListToolbarButton:()=>zwt,Paragraph:()=>lxt,PkceAuthenticator:()=>uz,PlateEditor:()=>P_t,ProxyBackend:()=>Yte,RelationControl:()=>jQt,RelationPreview:()=>MQt,RelationSummary:()=>LJ,RelationWidget:()=>WQt,SelectControl:()=>UQt,SelectPreview:()=>BQt,SelectWidget:()=>YQt,ShortcodeToolbarButton:()=>Lwt,StrikethroughToolbarButton:()=>Uwt,StringControl:()=>HQt,StringPreview:()=>JQt,StringWidget:()=>eRt,TYPES_KEY:()=>XK,TYPE_KEY:()=>qK,TableCellElement:()=>hxt,TableElement:()=>vxt,TableHeaderCellElement:()=>mxt,TableRowElement:()=>yxt,TestBackend:()=>une,TextControl:()=>rRt,TextPreview:()=>oRt,TextWidget:()=>aRt,Toolbar:()=>kxt,UUIDControl:()=>dRt,UUIDPreview:()=>hRt,UUIDWidget:()=>pRt,UnorderedListElement:()=>axt,UnorderedListToolbarButton:()=>qwt,VOID_ELEMENTS:()=>mCt,alignPlugin:()=>Ext,allEntriesByFolder:()=>qS,asyncLock:()=>Wx,autoformatBlocks:()=>Rxt,autoformatLists:()=>jxt,autoformatMarks:()=>Dxt,autoformatPlugin:()=>Ixt,autoformatRules:()=>Mxt,basename:()=>ES,blobToFileObj:()=>zS,classes:()=>vye,colorSchema:()=>cEe,colorValidator:()=>dEe,createCodeBlockPlugin:()=>Nxt,createListPlugin:()=>f_t,createMdEditor:()=>Nbt,createMdPlateEditor:()=>Lbt,createMdPluginFactory:()=>Fbt,createMdPlugins:()=>Ubt,createPointerFile:()=>vS,createShortcodePlugin:()=>O_t,createTablePlugin:()=>w_t,cursorStore:()=>Bxt,dateTimeGetDefaultValue:()=>GWe,dateTimeSchema:()=>HWe,default:()=>bAt,deserializeHtmlCodeBlock:()=>Wxt,deserializeMarkdown:()=>TCt,dragOverCursorPlugin:()=>Jxt,editableProps:()=>Pxt,entriesByFiles:()=>MS,entriesByFolder:()=>DS,exitBreakPlugin:()=>t_t,fileExtension:()=>TS,fileExtensionWithSeparator:()=>CS,filterByExtension:()=>U_,flattenListItemParagraphs:()=>V$t,flowAsync:()=>JS,format:()=>Txt,formatList:()=>$xt,formatText:()=>Qxt,generateContentKey:()=>b_,getAllResponses:()=>Z_,getBlobSHA:()=>K_,getErrorMessageForTypedFieldAndValue:()=>GK,getLargeMediaFilteredMediaFiles:()=>yS,getLargeMediaPatternsFromGitAttributesFile:()=>gS,getMdEditor:()=>Rbt,getMediaAsBlob:()=>WS,getMediaDisplayURL:()=>NS,getPathDepth:()=>G_,getPointerFileForMediaFileObj:()=>OS,getTimezoneOffset:()=>qWe,getTypedFieldForValue:()=>VK,getValidFileValue:()=>jNe,indentPlugin:()=>rQt,insertBreakList:()=>a_t,insertListItem:()=>o_t,isAbsolutePath:()=>PS,keyValueConverters:()=>KNe,keyValueSchema:()=>JNe,keyValueValidator:()=>eLe,loadScript:()=>BS,localForage:()=>ZS,localToUTC:()=>UWe,locales:()=>uoe,markdownToSlate:()=>RCt,numberSchema:()=>dQt,numberValidator:()=>fQt,onlySuccessfulPromises:()=>KS,parseContentKey:()=>w_,parseLinkHeader:()=>Y_,parsePointerFile:()=>fS,parseResponse:()=>B_,preFormat:()=>Cxt,readFile:()=>d_,readFileMetadata:()=>f_,relationSchema:()=>IQt,relationValidator:()=>zQt,requestWithBackoff:()=>c_,resetBlockTypePlugin:()=>v_t,resolveFieldKeyType:()=>ZK,resolveFunctionForTypedField:()=>YK,responseParser:()=>V_,runWithLock:()=>LS,selectOnBackspacePlugin:()=>iQt,selectSchema:()=>NQt,selectValidator:()=>VQt,serializeMarkdown:()=>qCt,slateCompiler:()=>$Ct,softBreakPlugin:()=>y_t,staticCursors:()=>e_t,stringSchema:()=>ZQt,stringTemplate:()=>r,textSchema:()=>tRt,then:()=>GS,throwOnConflictingBranches:()=>h_,toSlatePlugin:()=>QCt,trailingBlockPlugin:()=>k_t,unsentRequest:()=>i_,useCurrentBackend:()=>Nz,useData:()=>cz,useEntries:()=>yz,useFolderSupport:()=>bz,useGetMediaAsset:()=>_z,useHasChildErrors:()=>wz,useIsMediaAsset:()=>xz,useMarkdownToSlate:()=>ACt,useMdEditorRef:()=>Abt,useMdEditorState:()=>jbt,useMdPlateActions:()=>zbt,useMdPlateEditorRef:()=>Dbt,useMdPlateEditorState:()=>Mbt,useMdPlateSelectors:()=>Ibt,useMdPlateStates:()=>Wbt,useMdx:()=>H$t,useMediaAsset:()=>Sz,useMediaFiles:()=>Tz,useMediaInsert:()=>$z,useMediaPersist:()=>zz,useTheme:()=>f4,useTranslate:()=>LD,useUUID:()=>Wz,utcToLocal:()=>XWe,uuidSchema:()=>sRt,validations:()=>i,withFileControl:()=>DNe,withImageElement:()=>Bkt,withLinkElement:()=>Jkt,withList:()=>s_t,withMapControl:()=>pGe,withShortcodeElement:()=>cxt,withTable:()=>b_t});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{BOM:()=>ii,DOCUMENT:()=>oi,FLOW_END:()=>ai,SCALAR:()=>si,createScalarToken:()=>Br,isCollection:()=>li,isScalar:()=>ui,prettyToken:()=>ci,resolveAsScalar:()=>qr,setScalarValue:()=>Vr,stringify:()=>Gr,tokenType:()=>di,visit:()=>ni});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{Alias:()=>Ct,CST:()=>e,Composer:()=>Xr,Document:()=>gr,Lexer:()=>Oi,LineCounter:()=>yi,Pair:()=>ln,Parser:()=>Pi,Scalar:()=>Qt,Schema:()=>mr,YAMLError:()=>Or,YAMLMap:()=>pn,YAMLParseError:()=>yr,YAMLSeq:()=>gn,YAMLWarning:()=>br,isAlias:()=>et,isCollection:()=>at,isDocument:()=>tt,isMap:()=>nt,isNode:()=>st,isPair:()=>rt,isScalar:()=>it,isSeq:()=>ot,parse:()=>$i,parseAllDocuments:()=>Ci,parseDocument:()=>Ti,stringify:()=>Qi,visit:()=>ft,visitAsync:()=>pt});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{af:()=>Os,ar:()=>_s,arDZ:()=>$s,arEG:()=>Ms,arMA:()=>Fs,arSA:()=>Ys,arTN:()=>el,az:()=>sl,be:()=>Ol,beTarask:()=>Cl,bg:()=>Il,bn:()=>ql,bs:()=>Hl,ca:()=>iu,ckb:()=>cu,cs:()=>vu,cy:()=>xu,da:()=>Tu,de:()=>Wu,deAT:()=>Fu,el:()=>Yu,enAU:()=>Zu,enCA:()=>Hu,enGB:()=>Ju,enIE:()=>ec,enIN:()=>tc,enNZ:()=>nc,enUS:()=>Uo,enZA:()=>rc,eo:()=>uc,es:()=>gc,et:()=>_c,eu:()=>Qc,faIR:()=>Ic,fi:()=>Jc,fr:()=>ld,frCA:()=>ud,frCH:()=>fd,fy:()=>Od,gd:()=>_d,gl:()=>Qd,gu:()=>Id,he:()=>Xd,hi:()=>Hd,hr:()=>rf,ht:()=>cf,hu:()=>bf,hy:()=>Pf,id:()=>Rf,is:()=>zf,it:()=>Yf,itCH:()=>Zf,ja:()=>th,jaHira:()=>sh,ka:()=>hh,kk:()=>xh,km:()=>Th,kn:()=>Mh,ko:()=>Fh,lb:()=>Jh,lt:()=>dp,lv:()=>yp,mk:()=>Ep,mn:()=>Ap,ms:()=>Wp,mt:()=>qp,nb:()=>Hp,nl:()=>rm,nlBE:()=>um,nn:()=>gm,oc:()=>km,pl:()=>jm,pt:()=>Nm,ptBR:()=>Bm,ro:()=>Km,ru:()=>lg,se:()=>pg,sk:()=>Sg,sl:()=>Qg,sq:()=>Ig,sr:()=>Ug,srLatn:()=>Zg,sv:()=>nv,ta:()=>lv,te:()=>pv,th:()=>bv,tr:()=>Pv,ug:()=>Rv,uk:()=>Fv,uz:()=>Yv,uzCyrl:()=>eO,vi:()=>aO,zhCN:()=>hO,zhHK:()=>yO,zhTW:()=>SO});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{SLUG_MISSING_REQUIRED_DATE:()=>$x,addFileTemplateFields:()=>Mx,compileStringTemplate:()=>jx,dateParsers:()=>Cx,expandPath:()=>Rx,extractTemplateVars:()=>Dx,getExplicitFieldReplacement:()=>Ax,keyToPathArray:()=>Qx,parseDateFromEntry:()=>Tx});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{validateMinMax:()=>UE});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{boolean:()=>$oe,booleanish:()=>Qoe,commaOrSpaceSeparated:()=>Moe,commaSeparated:()=>Doe,number:()=>Aoe,overloadedBoolean:()=>Roe,spaceSeparated:()=>joe});var a={};__webpack_require__.r(a),__webpack_require__.d(a,{attentionMarkers:()=>fle,contentInitial:()=>ale,disable:()=>hle,document:()=>ole,flow:()=>lle,flowInitial:()=>sle,insideSpan:()=>dle,string:()=>ule,text:()=>cle});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{FILE:()=>Vyt,HTML:()=>Gyt,TEXT:()=>Zyt,URL:()=>Yyt});var l={};__webpack_require__.r(l),__webpack_require__.d(l,{MDXProvider:()=>ZCt,useMDXComponents:()=>YCt});var u,c=__webpack_require__(66204),d=__webpack_require__.t(c,2);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var b;function w(e,t,n){void 0===n&&(n="/");let r=D(("string"==typeof t?y(t):t).pathname||"/",n);if(null==r)return null;let i=k(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let e=0;null==o&&e{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(p(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=W([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(p(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),k(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Q(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of x(e.path))i(e,t,n);else i(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=x(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(b||(b={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const _=/^:\w+$/,S=3,P=2,E=1,C=10,T=-2,$=e=>"*"===e;function Q(e,t){let n=e.split("/"),r=n.length;return n.some($)&&(r+=T),t&&(r+=P),n.filter((e=>!$(e))).reduce(((e,t)=>e+(_.test(t)?S:""===t?E:C)),r)}function R(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return m(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l||"",r),e}),{});return{params:l,pathname:o,pathnameBase:a,pattern:e}}function j(e){try{return decodeURI(e)}catch(t){return m(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function I(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function z(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=y(e):(i=f({},e),p(!i.pathname||!i.pathname.includes("?"),M("?","pathname","search",i)),p(!i.pathname||!i.pathname.includes("#"),M("#","pathname","hash",i)),p(!i.search||!i.search.includes("#"),M("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?y(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:L(r),hash:F(i)}}(i,o),u=s&&"/"!==s&&s.endsWith("/"),c=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}const W=e=>e.join("/").replace(/\/\/+/g,"/"),N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class U extends Error{}const X=["post","put","patch","delete"],q=(new Set(X),["get",...X]);function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let r=c.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,B({fromRouteId:t},i)))}),[e,t]);return r}():function(){J()||p(!1);let e=c.useContext(V),{basename:t,future:n,navigator:r}=c.useContext(Z),{matches:i}=c.useContext(H),{pathname:o}=ee(),a=JSON.stringify(I(i,n.v7_relativeSplatPath)),s=c.useRef(!1);te((()=>{s.current=!0}));let l=c.useCallback((function(n,i){if(void 0===i&&(i={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=z(n,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:W([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[t,r,a,o,e]);return l}()}function re(){let{matches:e}=c.useContext(H),t=e[e.length-1];return t?t.params:{}}function ie(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=c.useContext(Z),{matches:i}=c.useContext(H),{pathname:o}=ee(),a=JSON.stringify(I(i,r.v7_relativeSplatPath));return c.useMemo((()=>z(e,JSON.parse(a),o,"path"===n)),[e,a,o,n])}function oe(e,t,n,r){J()||p(!1);let{navigator:i}=c.useContext(Z),{matches:o}=c.useContext(H),a=o[o.length-1],s=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let d,f=ee();if(t){var h;let e="string"==typeof t?y(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||p(!1),d=e}else d=f;let m=d.pathname||"/",g=w(e,{pathname:"/"===l?m:m.slice(l.length)||"/"}),v=function(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(null==(o=n)||!o.errors)return null;e=n.matches}let a=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||p(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e=0?a.slice(0,u+1):[a[0]];break}}}return a.reduceRight(((e,r,i)=>{let o,d=!1,f=null,h=null;n&&(o=s&&r.route.id?s[r.route.id]:void 0,f=r.route.errorElement||se,l&&(u<0&&0===i?(function(e,t,n){!1||he[e]||(he[e]=!0)}("route-fallback"),d=!0,h=null):u===i&&(d=!0,h=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,i+1)),m=()=>{let t;return t=o?f:d?h:r.route.Component?c.createElement(r.route.Component,null):r.route.element?r.route.element:e,c.createElement(ue,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?c.createElement(le,{location:n.location,revalidation:n.revalidation,component:f,error:o,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:W([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:W([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);return t&&v?c.createElement(G.Provider,{value:{location:B({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:u.Pop}},v):v}function ae(){let e=function(){var e;let t=c.useContext(K),n=function(e){let t=c.useContext(Y);return t||p(!1),t}(de.UseRouteError),r=fe(de.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:r},n):null,null)}const se=c.createElement(ae,null);class le extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?c.createElement(H.Provider,{value:this.props.routeContext},c.createElement(K.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ue(e){let{routeContext:t,match:n,children:r}=e,i=c.useContext(V);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(H.Provider,{value:t},r)}var ce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ce||{}),de=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(de||{});function fe(e){let t=function(e){let t=c.useContext(H);return t||p(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||p(!1),n.route.id}const he={};function pe(e){let{to:t,replace:n,state:r,relative:i}=e;J()||p(!1);let{future:o,static:a}=c.useContext(Z),{matches:s}=c.useContext(H),{pathname:l}=ee(),u=ne(),d=z(t,I(s,o.v7_relativeSplatPath),l,"path"===i),f=JSON.stringify(d);return c.useEffect((()=>u(JSON.parse(f),{replace:n,state:r,relative:i})),[u,f,i,n,r]),null}function me(e){p(!1)}function ge(e){let{basename:t="/",children:n=null,location:r,navigationType:i=u.Pop,navigator:o,static:a=!1,future:s}=e;J()&&p(!1);let l=t.replace(/^\/*/,"/"),d=c.useMemo((()=>({basename:l,navigator:o,static:a,future:B({v7_relativeSplatPath:!1},s)})),[l,s,o,a]);"string"==typeof r&&(r=y(r));let{pathname:f="/",search:h="",hash:m="",state:g=null,key:v="default"}=r,O=c.useMemo((()=>{let e=D(f,l);return null==e?null:{location:{pathname:e,search:h,hash:m,state:g,key:v},navigationType:i}}),[l,f,h,m,g,v,i]);return null==O?null:c.createElement(Z.Provider,{value:d},c.createElement(G.Provider,{children:n,value:O}))}function ve(e){let{children:t,location:n}=e;return oe(ye(t),n)}d.startTransition,new Promise((()=>{}));class Oe extends c.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(" caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=AwaitRenderStatus.pending;if(n instanceof Promise)if(this.state.error){AwaitRenderStatus.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?void 0!==r._error?AwaitRenderStatus.error:void 0!==r._data?AwaitRenderStatus.success:AwaitRenderStatus.pending:(AwaitRenderStatus.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else AwaitRenderStatus.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(i===AwaitRenderStatus.error&&r._error instanceof U)throw neverSettledPromise;if(i===AwaitRenderStatus.error&&!t)throw r._error;if(i===AwaitRenderStatus.error)return c.createElement(AwaitContext.Provider,{value:r,children:t});if(i===AwaitRenderStatus.success)return c.createElement(AwaitContext.Provider,{value:r,children:e});throw r}}function ye(e,t){void 0===t&&(t=[]);let n=[];return c.Children.forEach(e,((e,r)=>{if(!c.isValidElement(e))return;let i=[...t,r];if(e.type===c.Fragment)return void n.push.apply(n,ye(e.props.children,i));e.type!==me&&p(!1),e.props.index&&e.props.children&&p(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ye(e.props.children,i)),n.push(o)})),n}var be=__webpack_require__(41003),we=__webpack_require__.n(be),ke=__webpack_require__(28611),xe=__webpack_require__.n(ke),_e=__webpack_require__(60567),Se=__webpack_require__.n(_e),Pe=__webpack_require__(9229),Ee=__webpack_require__.n(Pe),Ce=__webpack_require__(21663),Te=__webpack_require__.n(Ce),$e=__webpack_require__(70866),Qe=__webpack_require__.n($e),Re=__webpack_require__(77097);const Ae="DRAFT_MEDIA_FILES",je="editorial_workflow";let De=function(e){return e.DRAFT="draft",e.PENDING_REVIEW="pending_review",e.PENDING_PUBLISH="pending_publish",e}({});function Me(e){switch(e.toLowerCase()){case"draft":return De.DRAFT;case"pending_review":return De.PENDING_REVIEW;case"pending_publish":return De.PENDING_PUBLISH;default:return}}function Ie(e){return null!=e}function ze(e){return null==e}function We(e,t){return ze(e)||(t?""===e.trim():""===e)}function Ne(e){return Ie(e)&&""!==e}function Le(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function Fe(e){return e.replace(/_/g," ").replace(/\w\S*/g,Le)}De.DRAFT,De.PENDING_REVIEW,De.PENDING_PUBLISH;class Ue{constructor(){!function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name",void 0)}}const Xe=new class extends Ue{constructor(...e){super(...e),function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name","json")}fromFile(e){return We(e)?{}:JSON.parse(e)}toFile(e){return JSON.stringify(e,null,2)}};var qe=__webpack_require__(69493);const Be=new class extends Ue{constructor(...e){super(...e),function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name","toml")}fromFile(e){return qe.parse(e)}toFile(e){return qe.stringify(e)}},Ve=Symbol.for("yaml.alias"),Ye=Symbol.for("yaml.document"),Ze=Symbol.for("yaml.map"),Ge=Symbol.for("yaml.pair"),He=Symbol.for("yaml.scalar"),Ke=Symbol.for("yaml.seq"),Je=Symbol.for("yaml.node.type"),et=e=>!!e&&"object"==typeof e&&e[Je]===Ve,tt=e=>!!e&&"object"==typeof e&&e[Je]===Ye,nt=e=>!!e&&"object"==typeof e&&e[Je]===Ze,rt=e=>!!e&&"object"==typeof e&&e[Je]===Ge,it=e=>!!e&&"object"==typeof e&&e[Je]===He,ot=e=>!!e&&"object"==typeof e&&e[Je]===Ke;function at(e){if(e&&"object"==typeof e)switch(e[Je]){case Ze:case Ke:return!0}return!1}function st(e){if(e&&"object"==typeof e)switch(e[Je]){case Ve:case Ze:case He:case Ke:return!0}return!1}const lt=e=>(it(e)||at(e))&&!!e.anchor,ut=Symbol("break visit"),ct=Symbol("skip children"),dt=Symbol("remove node");function ft(e,t){const n=gt(t);tt(e)?ht(null,e.contents,n,Object.freeze([e]))===dt&&(e.contents=null):ht(null,e,n,Object.freeze([]))}function ht(e,t,n,r){const i=vt(e,t,n,r);if(st(i)||rt(i))return Ot(e,r,i),ht(e,i,n,r);if("symbol"!=typeof i)if(at(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,(e=>yt[e]));class wt{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},wt.defaultYaml,e),this.tags=Object.assign({},wt.defaultTags,t)}clone(){const e=new wt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new wt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:wt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},wt.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:wt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},wt.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+bt(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&st(e.contents)){const t={};ft(e.contents,((e,n)=>{st(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[i,o]of n)"!!"===i&&"tag:yaml.org,2002:"===o||e&&!r.some((e=>e.startsWith(o)))||t.push(`%TAG ${i} ${o}`);return t.join("\n")}}function kt(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function xt(e){const t=new Set;return ft(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function _t(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function St(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;tPt(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!lt(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}wt.defaultYaml={explicit:!1,version:"1.2"},wt.defaultTags={"!!":"tag:yaml.org,2002:"};class Et{constructor(e){Object.defineProperty(this,Je,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!tt(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},a=Pt(this,"",o);if("function"==typeof r)for(const{count:e,res:t}of o.anchors.values())r(t,e);return"function"==typeof i?St(i,{"":a},"",a):a}}class Ct extends Et{constructor(e){super(Ve),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return ft(e,{Node:(e,n)=>{if(n===this)return ft.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let a=n.get(o);if(a||(Pt(o,null,t),a=n.get(o)),!a||void 0===a.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=Tt(r,o,n)),a.count*a.aliasCount>i))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return a.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(kt(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function Tt(e,t,n){if(et(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(at(t)){let r=0;for(const i of t.items){const t=Tt(e,i,n);t>r&&(r=t)}return r}if(rt(t)){const r=Tt(e,t.key,n),i=Tt(e,t.value,n);return Math.max(r,i)}return 1}const $t=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Qt extends Et{constructor(e){super(He),this.value=e}toJSON(e,t){return t?.keep?this.value:Pt(this.value,e,t)}toString(){return String(this.value)}}Qt.BLOCK_FOLDED="BLOCK_FOLDED",Qt.BLOCK_LITERAL="BLOCK_LITERAL",Qt.PLAIN="PLAIN",Qt.QUOTE_DOUBLE="QUOTE_DOUBLE",Qt.QUOTE_SINGLE="QUOTE_SINGLE";const Rt="tag:yaml.org,2002:";function At(e,t,n){if(tt(e)&&(e=e.contents),st(e))return e;if(rt(e)){const t=n.schema[Ze].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:o,schema:a,sourceObjects:s}=n;let l;if(r&&e&&"object"==typeof e){if(l=s.get(e),l)return l.anchor||(l.anchor=i(e)),new Ct(l.anchor);l={anchor:null,node:null},s.set(e,l)}t?.startsWith("!!")&&(t=Rt+t.slice(2));let u=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,a.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new Qt(e);return l&&(l.node=t),t}u=e instanceof Map?a[Ze]:Symbol.iterator in Object(e)?a[Ke]:a[Ze]}o&&(o(u),delete n.onTagObj);const c=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new Qt(e);return t?c.tag=t:u.default||(c.tag=u.tag),l&&(l.node=c),c}function jt(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return At(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Dt=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class Mt extends Et{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>st(t)||rt(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Dt(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(at(i))i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,jt(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(at(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&it(i)?i.value:i:at(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!rt(t))return!1;const n=t.value;return null==n||e&&it(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!at(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(at(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,jt(this.schema,r,t))}}}}Mt.maxFlowStringSingleLineLength=60;const It=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function zt(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Wt=(e,t,n)=>e.endsWith("\n")?zt(n,t):n.includes("\n")?"\n"+zt(n,t):(e.endsWith(" ")?"":" ")+n,Nt="flow",Lt="block",Ft="quoted";function Ut(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:a,onOverflow:s}={}){if(!i||i<0)return e;const l=Math.max(1+o,1+i-t.length);if(e.length<=l)return e;const u=[],c={};let d,f,h=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?u.push(0):h=i-r);let p=!1,m=-1,g=-1,v=-1;n===Lt&&(m=Xt(e,m),-1!==m&&(h=m+l));for(let t;t=e[m+=1];){if(n===Ft&&"\\"===t){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if("\n"===t)n===Lt&&(m=Xt(e,m)),h=m+l,d=void 0;else{if(" "===t&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=m)}if(m>=h)if(d)u.push(d),h=d+l,d=void 0;else if(n===Ft){for(;" "===f||"\t"===f;)f=t,t=e[m+=1],p=!0;const n=m>v+1?m-2:g-1;if(c[n])return e;u.push(n),c[n]=!0,h=n+l,d=void 0}else p=!0}f=t}if(p&&s&&s(),0===u.length)return e;a&&a();let O=e.slice(0,u[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Bt=e=>/^(%|---|\.\.\.)/m.test(e);function Vt(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Bt(e)?" ":"");let a="",s=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(a+=n.slice(s,e)+"\\ ",e+=1,s=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{a+=n.slice(s,e);const t=n.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=n.substr(e,6)}e+=5,s=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(n=t+1,i-n<=r)return!1}return!0}(n,l,u.length));if(!n)return c?"|\n":">\n";let d,f;for(f=n.length;f>0;--f){const e=n[f-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let h=n.substring(f);const p=h.indexOf("\n");-1===p?d="-":n===h||p!==h.length-1?(d="+",o&&o()):d="",h&&(n=n.slice(0,-h.length),"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(Gt,`$&${u}`));let m,g=!1,v=-1;for(m=0;m")+(g?u?"2":"1":"")+d;return e&&(y+=" "+s(e.replace(/ ?[\r\n]+/g," ")),i&&i()),c?`${y}\n${u}${O}${n=n.replace(/\n+/g,`$&${u}`)}${h}`:`${y}\n${u}${Ut(`${O}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`)}${h}`,u,Lt,qt(r,!0))}`}function Kt(e,t,n,r){const{implicitKey:i,inFlow:o}=t,a="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:s}=e;s!==Qt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=Qt.QUOTE_DOUBLE);const l=e=>{switch(e){case Qt.BLOCK_FOLDED:case Qt.BLOCK_LITERAL:return i||o?Zt(a.value,t):Ht(a,t,n,r);case Qt.QUOTE_DOUBLE:return Vt(a.value,t);case Qt.QUOTE_SINGLE:return Yt(a.value,t);case Qt.PLAIN:return function(e,t,n,r){const{type:i,value:o}=e,{actualString:a,implicitKey:s,indent:l,indentStep:u,inFlow:c}=t;if(s&&o.includes("\n")||c&&/[[\]{},]/.test(o))return Zt(o,t);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return s||c||!o.includes("\n")?Zt(o,t):Ht(e,t,n,r);if(!s&&!c&&i!==Qt.PLAIN&&o.includes("\n"))return Ht(e,t,n,r);if(Bt(o)){if(""===l)return t.forceBlockIndent=!0,Ht(e,t,n,r);if(s&&l===u)return Zt(o,t)}const d=o.replace(/\n+/g,`$&\n${l}`);if(a){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return Zt(o,t)}return s?d:Ut(d,l,Nt,qt(t,!1))}(a,t,n,r);default:return null}};let u=l(s);if(null===u){const{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(u=l(r),null===u)throw new Error(`Unsupported default string type ${r}`)}return u}function Jt(e,t){const n=Object.assign({blockQuote:!0,commentString:It,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function en(e,t,n,r){if(rt(e))return e.toString(t,n,r);if(et(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const o=st(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,r;if(it(t)){r=t.value;const i=e.filter((e=>e.identify?.(r)));n=i.find((e=>e.format===t.format))??i.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,o));const a=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],o=(it(e)||at(e))&&e.anchor;o&&kt(o)&&(n.add(o),i.push(`&${o}`));const a=e.tag?e.tag:t.default?null:t.tag;return a&&i.push(r.directives.tagString(a)),i.join(" ")}(o,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const s="function"==typeof i.stringify?i.stringify(o,t,n,r):it(o)?Kt(o,t,n,r):o.toString(t,n,r);return a?it(o)||"{"===s[0]||"["===s[0]?`${a} ${s}`:`${a}\n${t.indent}${s}`:s}var tn=__webpack_require__(48494);function nn(e,t){"debug"!==e&&"warn"!==e||(void 0!==tn&&tn.emitWarning?tn.emitWarning(t):console.warn(t))}function rn(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&on(n))if(r=et(r)?r.resolve(e.doc):r,ot(r))for(const n of r.items)an(e,t,n);else if(Array.isArray(r))for(const n of r)an(e,t,n);else an(e,t,r);else{const i=Pt(n,"",e);if(t instanceof Map)t.set(i,Pt(r,i,e));else if(t instanceof Set)t.add(i);else{const o=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(st(e)&&n?.doc){const t=Jt(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),nn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),a=Pt(r,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}}return t}const on=e=>"<<"===e||it(e)&&"<<"===e.value&&(!e.type||e.type===Qt.PLAIN);function an(e,t,n){const r=e&&et(n)?n.resolve(e.doc):n;if(!nt(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function sn(e,t,n){const r=At(e,void 0,n),i=At(t,void 0,n);return new ln(r,i)}class ln{constructor(e,t=null){Object.defineProperty(this,Je,{value:Ge}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return st(t)&&(t=t.clone(e)),st(n)&&(n=n.clone(e)),new ln(t,n)}toJSON(e,t){return rn(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){const{allNullValues:o,doc:a,indent:s,indentStep:l,options:{commentString:u,indentSeq:c,simpleKeys:d}}=n;let f=st(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(at(e))throw new Error("With simple keys, collection cannot be used as a key value")}let h=!d&&(!e||f&&null==t&&!n.inFlow||at(e)||(it(e)?e.type===Qt.BLOCK_FOLDED||e.type===Qt.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(d||!o),indent:s+l});let p,m,g,v=!1,O=!1,y=en(e,n,(()=>v=!0),(()=>O=!0));if(!h&&!n.inFlow&&y.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(n.inFlow){if(o||null==t)return v&&r&&r(),""===y?"?":h?`? ${y}`:y}else if(o&&!d||null==t&&h)return y=`? ${y}`,f&&!v?y+=Wt(y,n.indent,u(f)):O&&i&&i(),y;v&&(f=null),h?(f&&(y+=Wt(y,n.indent,u(f))),y=`? ${y}\n${s}:`):(y=`${y}:`,f&&(y+=Wt(y,n.indent,u(f)))),st(t)?(p=!!t.spaceBefore,m=t.commentBefore,g=t.comment):(p=!1,m=null,g=null,t&&"object"==typeof t&&(t=a.createNode(t))),n.implicitKey=!1,h||f||!it(t)||(n.indentAtStart=y.length+1),O=!1,c||!(l.length>=2)||n.inFlow||h||!ot(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let b=!1;const w=en(t,n,(()=>b=!0),(()=>O=!0));let k=" ";if(f||p||m)k=p?"\n":"",m&&(k+=`\n${zt(u(m),n.indent)}`),""!==w||n.inFlow?k+=`\n${n.indent}`:"\n"===k&&(k="\n\n");else if(!h&&at(t)){const e=w[0],r=w.indexOf("\n"),i=-1!==r,o=n.inFlow??t.flow??0===t.items.length;if(i||!o){let t=!1;if(i&&("&"===e||"!"===e)){let n=w.indexOf(" ");"&"===e&&-1!==n&&na=null),(()=>d=!0));a&&(s+=Wt(s,o,u(a))),d&&a&&(d=!1),f.push(r+s)}let h;if(0===f.length)h=i.start+i.end;else{h=f[0];for(let e=1;eo=null));ef||a.includes("\n"))&&(d=!0),h.push(a),f=h.length}let p;const{start:m,end:g}=r;if(0===h.length)p=m+g;else{if(!d){const e=h.reduce(((e,t)=>e+t.length+2),2);d=e>Mt.maxFlowStringSingleLineLength}if(d){p=m;for(const e of h)p+=e?`\n${s}${a}${e}`:"\n";p+=`\n${a}${g}`}else p=`${m}${l}${h.join(" ")}${l}${g}`}return e&&(p+=Wt(p,a,u(e)),o&&o()),p}function fn({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const i=zt(t(r),e);n.push(i.trimStart())}}function hn(e,t){const n=it(t)?t.value:t;for(const r of e)if(rt(r)){if(r.key===t||r.key===n)return r;if(it(r.key)&&r.key.value===n)return r}}class pn extends Mt{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Ze,e),this.items=[]}static from(e,t,n){const{keepUndefined:r,replacer:i}=n,o=new this(e),a=(e,a)=>{if("function"==typeof i)a=i.call(t,e,a);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==a||r)&&o.items.push(sn(e,a,n))};if(t instanceof Map)for(const[e,n]of t)a(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))a(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=rt(e)?e:e&&"object"==typeof e&&"key"in e?new ln(e.key,e.value):new ln(e,e?.value);const r=hn(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);it(r.value)&&$t(n.value)?r.value.value=n.value:r.value=n.value}else if(i){const e=this.items.findIndex((e=>i(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=hn(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=hn(this.items,e),r=n?.value;return(!t&&it(r)?r.value:r)??void 0}has(e){return!!hn(this.items,e)}set(e,t){this.add(new ln(e,t),!0)}toJSON(e,t,n){const r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)rn(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!rt(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),un(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const mn={collection:"map",default:!0,nodeClass:pn,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(nt(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>pn.from(e,t,n)};class gn extends Mt{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ke,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=vn(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=vn(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&it(r)?r.value:r}has(e){const t=vn(e);return"number"==typeof t&&t=0?t:null}const On={collection:"seq",default:!0,nodeClass:gn,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(ot(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>gn.from(e,t,n)},yn={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>Kt(e,t=Object.assign({actualString:!0},t),n,r)},bn={identify:e=>null==e,createNode:()=>new Qt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Qt(null),stringify:({source:e},t)=>"string"==typeof e&&bn.test.test(e)?e:t.options.nullStr},wn={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Qt("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&wn.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function kn({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}const xn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:kn},_n={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():kn(e)}},Sn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Qt(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:kn},Pn=e=>"bigint"==typeof e||Number.isInteger(e),En=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Cn(e,t,n){const{value:r}=e;return Pn(r)&&r>=0?n+r.toString(t):kn(e)}const Tn={identify:e=>Pn(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>En(e,2,8,n),stringify:e=>Cn(e,8,"0o")},$n={identify:Pn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>En(e,0,10,n),stringify:kn},Qn={identify:e=>Pn(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>En(e,2,16,n),stringify:e=>Cn(e,16,"0x")},Rn=[mn,On,yn,bn,wn,Tn,$n,Qn,xn,_n,Sn];function An(e){return"bigint"==typeof e||Number.isInteger(e)}const jn=({value:e})=>JSON.stringify(e),Dn=[mn,On].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:jn},{identify:e=>null==e,createNode:()=>new Qt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:jn},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:jn},{identify:An,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>An(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:jn}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)});var Mn=__webpack_require__(18390).Buffer;const In={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Mn)return Mn.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");const e=r.items[0]||new ln(new Qt(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){const t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=rt(r)?r:new ln(r)}}else t("Expected a sequence for this tag");return e}function Wn(e,t,n){const{replacer:r}=n,i=new gn(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let a,s;if("function"==typeof r&&(e=r.call(t,String(o++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);a=e[0],s=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`);a=t[0],s=e[a]}else a=e;i.items.push(sn(a,s,n))}return i}const Nn={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:zn,createNode:Wn};class Ln extends gn{constructor(){super(),this.add=pn.prototype.add.bind(this),this.delete=pn.prototype.delete.bind(this),this.get=pn.prototype.get.bind(this),this.has=pn.prototype.has.bind(this),this.set=pn.prototype.set.bind(this),this.tag=Ln.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const e of this.items){let r,i;if(rt(e)?(r=Pt(e.key,"",t),i=Pt(e.value,r,t)):r=Pt(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(e,t,n){const r=Wn(e,t,n),i=new this;return i.items=r.items,i}}Ln.tag="tag:yaml.org,2002:omap";const Fn={collection:"seq",identify:e=>e instanceof Map,nodeClass:Ln,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=zn(e,t),r=[];for(const{key:e}of n.items)it(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new Ln,n)},createNode:(e,t,n)=>Ln.from(e,t,n)};function Un({value:e,source:t},n){return t&&(e?Xn:qn).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Xn={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Qt(!0),stringify:Un},qn={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Qt(!1),stringify:Un},Bn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:kn},Vn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():kn(e)}},Yn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Qt(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:kn},Zn=e=>"bigint"==typeof e||Number.isInteger(e);function Gn(e,t,n,{intAsBigInt:r}){const i=e[0];if("-"!==i&&"+"!==i||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===i?BigInt(-1)*t:t}const o=parseInt(e,n);return"-"===i?-1*o:o}function Hn(e,t,n){const{value:r}=e;if(Zn(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return kn(e)}const Kn={identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Gn(e,2,2,n),stringify:e=>Hn(e,2,"0b")},Jn={identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Gn(e,1,8,n),stringify:e=>Hn(e,8,"0")},er={identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Gn(e,0,10,n),stringify:kn},tr={identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Gn(e,2,16,n),stringify:e=>Hn(e,16,"0x")};class nr extends pn{constructor(e){super(e),this.tag=nr.tag}add(e){let t;t=rt(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ln(e.key,null):new ln(e,null),hn(this.items,t.key)||this.items.push(t)}get(e,t){const n=hn(this.items,e);return!t&&rt(n)?it(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=hn(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ln(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(sn(e,null,n));return i}}nr.tag="tag:yaml.org,2002:set";const rr={collection:"map",identify:e=>e instanceof Set,nodeClass:nr,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>nr.from(e,t,n),resolve(e,t){if(nt(e)){if(e.hasAllNullValues(!0))return Object.assign(new nr,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function ir(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),o=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*i(60)+i(t)),i(0));return"-"===n?i(-1)*o:o}function or(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return kn(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const ar={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>ir(e,n),stringify:or},sr={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>ir(e,!1),stringify:or},lr={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(lr.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,o,a,s]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,r-1,i,o||0,a||0,s||0,l);const c=t[8];if(c&&"Z"!==c){let e=ir(c,!1);Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},ur=[mn,On,yn,bn,Xn,qn,Kn,Jn,er,tr,Bn,Vn,Yn,In,Fn,Nn,rr,ar,sr,lr],cr=new Map([["core",Rn],["failsafe",[mn,On,yn]],["json",Dn],["yaml11",ur],["yaml-1.1",ur]]),dr={binary:In,bool:wn,float:Sn,floatExp:_n,floatNaN:xn,floatTime:sr,int:$n,intHex:Qn,intOct:Tn,intTime:ar,map:mn,null:bn,omap:Fn,pairs:Nn,seq:On,set:rr,timestamp:lr},fr={"tag:yaml.org,2002:binary":In,"tag:yaml.org,2002:omap":Fn,"tag:yaml.org,2002:pairs":Nn,"tag:yaml.org,2002:set":rr,"tag:yaml.org,2002:timestamp":lr};function hr(e,t){let n=cr.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(cr.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=dr[e];if(t)return t;const n=Object.keys(dr).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}const pr=(e,t)=>e.keyt.key?1:0;class mr{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?hr(e,"compat"):e?hr(null,e):null,this.merge=!!n,this.name="string"==typeof i&&i||"core",this.knownTags=r?fr:{},this.tags=hr(t,this.name),this.toStringOptions=a??null,Object.defineProperty(this,Ze,{value:mn}),Object.defineProperty(this,He,{value:yn}),Object.defineProperty(this,Ke,{value:On}),this.sortMapEntries="function"==typeof o?o:!0===o?pr:null}clone(){const e=Object.create(mr.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class gr{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Je,{value:Ye});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new wt({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(gr.prototype,{[Je]:{value:Ye}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=st(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){vr(this.contents)&&this.contents.add(e)}addIn(e,t){vr(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=xt(this);e.anchor=!t||n.has(t)?_t(t||"a",n):t}return new Ct(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:a,keepUndefined:s,onTagObj:l,tag:u}=n??{},{onAnchor:c,setAnchors:d,sourceObjects:f}=function(e,t){const n=[],r=new Map;let i=null;return{onAnchor:r=>{n.push(r),i||(i=xt(e));const o=_t(t,i);return i.add(o),o},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!it(t.node)&&!at(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,o||"a"),h=At(e,u,{aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:c,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:f});return a&&at(h)&&(h.flow=!0),d(),h}createPair(e,t,n={}){const r=this.createNode(e,null,n),i=this.createNode(t,null,n);return new ln(r,i)}delete(e){return!!vr(this.contents)&&this.contents.delete(e)}deleteIn(e){return Dt(e)?null!=this.contents&&(this.contents=null,!0):!!vr(this.contents)&&this.contents.deleteIn(e)}get(e,t){return at(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Dt(e)?!t&&it(this.contents)?this.contents.value:this.contents:at(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!at(this.contents)&&this.contents.has(e)}hasIn(e){return Dt(e)?void 0!==this.contents:!!at(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=jt(this.schema,[e],t):vr(this.contents)&&this.contents.set(e,t)}setIn(e,t){Dt(e)?this.contents=t:null==this.contents?this.contents=jt(this.schema,Array.from(e),t):vr(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new wt({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new wt({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new mr(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},s=Pt(this.contents,t??"",a);if("function"==typeof i)for(const{count:e,res:t}of a.anchors.values())i(t,e);return"function"==typeof o?St(o,{"":s},"",s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){const n=[];let r=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=Jt(e,t),{commentString:o}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=o(e.commentBefore);n.unshift(zt(t,""))}let a=!1,s=null;if(e.contents){if(st(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const t=o(e.contents.commentBefore);n.push(zt(t,""))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}const t=s?void 0:()=>a=!0;let l=en(e.contents,i,(()=>s=null),t);s&&(l+=Wt(l,"",o(s))),"|"!==l[0]&&">"!==l[0]||"---"!==n[n.length-1]?n.push(l):n[n.length-1]=`--- ${l}`}else n.push(en(e.contents,i));if(e.directives?.docEnd)if(e.comment){const t=o(e.comment);t.includes("\n")?(n.push("..."),n.push(zt(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&a&&(t=t.replace(/^\n+/,"")),t&&(a&&!s||""===n[n.length-1]||n.push(""),n.push(zt(o(t),"")))}return n.join("\n")+"\n"}(this,e)}}function vr(e){if(at(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Or extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class yr extends Or{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class br extends Or{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const wr=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let o=i-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(o>=60&&a.length>80){const e=Math.min(o-39,a.length-79);a="…"+a.substring(e),o-=e-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,o))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),a=n+a}if(/[^ ]/.test(a)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-o)));const s=" ".repeat(o)+"^".repeat(e);n.message+=`:\n\n${a}\n${s}\n`}};function kr(e,{flow:t,indicator:n,next:r,offset:i,onError:o,startOnNewline:a}){let s=!1,l=a,u=a,c="",d="",f=!1,h=!1,p=!1,m=null,g=null,v=null,O=null,y=null;for(const r of e)switch(p&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),r.type){case"space":!t&&l&&"doc-start"!==n&&"\t"===r.source[0]&&o(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||o(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";c?c+=d+e:c=e,d="",l=!1;break}case"newline":l?c?c+=r.source:s=!0:d+=r.source,l=!0,f=!0,(m||g)&&(h=!0),u=!0;break;case"anchor":m&&o(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&o(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===y&&(y=r.offset),l=!1,u=!1,p=!0;break;case"tag":g&&o(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===y&&(y=r.offset),l=!1,u=!1,p=!0;break;case n:(m||g)&&o(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),O&&o(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),O=r,l=!1,u=!1;break;case"comma":if(t){v&&o(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),v=r,l=!1,u=!1;break}default:o(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),l=!1,u=!1}const b=e[e.length-1],w=b?b.offset+b.source.length:i;return p&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:v,found:O,spaceBefore:s,comment:c,hasNewline:f,hasNewlineAfterProp:h,anchor:m,tag:g,end:w,start:y??w}}function xr(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(xr(t.key)||xr(t.value))return!0}return!1;default:return!0}}function _r(e,t,n){if("flow-collection"===t?.type){const r=t.end[0];r.indent!==e||"]"!==r.source&&"}"!==r.source||!xr(t)||n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Sr(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const i="function"==typeof r?r:(t,n)=>t===n||it(t)&&it(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}const Pr="All mapping items must start at the same column";function Er(e,t,n,r){let i="";if(e){let o=!1,a="";for(const s of e){const{source:e,type:l}=s;switch(l){case"space":o=!0;break;case"comment":{n&&!o&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";i?i+=a+t:i=t,a="";break}case"newline":i&&(a+=e),o=!0;break;default:r(s,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}const Cr="Block collections are not allowed within flow collections",Tr=e=>e&&("block-map"===e.type||"block-seq"===e.type);function $r(e,t,n,r,i,o){const a="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,o){const a=new(o?.nodeClass??pn)(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset,l=null;for(const o of r.items){const{start:u,key:c,sep:d,value:f}=o,h=kr(u,{indicator:"explicit-key-ind",next:c??d?.[0],offset:s,onError:i,startOnNewline:!0}),p=!h.found;if(p){if(c&&("block-seq"===c.type?i(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&i(s,"BAD_INDENT",Pr)),!h.anchor&&!h.tag&&!d){l=h.end,h.comment&&(a.comment?a.comment+="\n"+h.comment:a.comment=h.comment);continue}(h.hasNewlineAfterProp||xr(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==r.indent&&i(s,"BAD_INDENT",Pr);const m=h.end,g=c?e(n,c,h,i):t(n,m,u,null,h,i);n.schema.compat&&_r(r.indent,c,i),Sr(n,a.items,g)&&i(m,"DUPLICATE_KEY","Map keys must be unique");const v=kr(d??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,startOnNewline:!c||"block-scalar"===c.type});if(s=v.end,v.found){p&&("block-map"!==f?.type||v.hasNewline||i(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&h.start0){const e=Er(h,p,n.options.strict,i);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[r.offset,p,e.offset]}else l.range=[r.offset,p,p];return l}(e,t,n,r,o),s=a.constructor;return"!"===i||i===s.tagName?(a.tag=s.tagName,a):(i&&(a.tag=i),a)}function Qr(e,t,n){const r=e.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],o=i[0];let a=0,s="",l=-1;for(let t=1;t=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;s=e}if(0===s){const t="+"===i.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let n=r+i.length;return e.source&&(n+=e.source.length),{value:t,type:o,comment:i.comment,range:[r,n,n]}}let l=e.indent+i.indent,u=e.offset+i.length,c=0;for(let e=0;el&&(l=t.length),u+=t.length+r.length+1}for(let e=a.length-1;e>=s;--e)a[e][0].length>l&&(s=e+1);let d="",f="",h=!1;for(let e=0;el||"\t"===r[0]?(" "===f?f="\n":h||"\n"!==f||(f="\n\n"),d+=f+t.slice(l)+r,f="\n",h=!0):""===r?"\n"===f?d+="\n":f="\n":(d+=f+r,f=" ",h=!1)}switch(i.chomp){case"-":break;case"+":for(let e=s;en(r+e,t,i);switch(i){case"scalar":s=Qt.PLAIN,l=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Ar(e)}(o,u);break;case"single-quoted-scalar":s=Qt.QUOTE_SINGLE,l=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),Ar(e.slice(1,-1)).replace(/''/g,"'")}(o,u);break;case"double-quoted-scalar":s=Qt.QUOTE_DOUBLE,l=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):i)}else n+=i}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(o,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+o.length,r+o.length]}}const c=r+o.length,d=Er(a,c,t,n);return{value:l,type:s,comment:d.comment,range:[r,c,d.offset]}}function Ar(e){let t,n;try{t=new RegExp("(.*?)(?r(n,"TAG_RESOLVE_FAILED",e))):null,u=n&&l?function(e,t,n,r,i){if("!"===n)return e[He];const o=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;o.push(t)}for(const e of o)if(e.test?.test(t))return e;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[He])}(e.schema,i,l,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,i){const o=t.tags.find((e=>e.default&&e.test?.test(n)))||t[He];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(n)))??t[He];o.tag!==a.tag&&i(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(o.tag)} or ${e.tagString(a.tag)}`,!0)}return o}(e,i,t,r):e.schema[He];let c;try{const o=u.resolve(i,(e=>r(n??t,"TAG_RESOLVE_FAILED",e)),e.options);c=it(o)?o:new Qt(o)}catch(e){const o=e instanceof Error?e.message:String(e);r(n??t,"TAG_RESOLVE_FAILED",o),c=new Qt(i)}return c.range=s,c.source=i,o&&(c.type=o),l&&(c.tag=l),u.format&&(c.format=u.format),a&&(c.comment=a),c}function zr(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===n?.type;)e+=n.source.length,n=t[++r];break}}return e}const Wr={composeNode:Nr,composeEmptyNode:Lr};function Nr(e,t,n,r){const{spaceBefore:i,comment:o,anchor:a,tag:s}=n;let l,u=!0;switch(t.type){case"alias":l=function({options:e},{offset:t,source:n,end:r},i){const o=new Ct(n.substring(1));""===o.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=t+n.length,s=Er(r,a,e.strict,i);return o.range=[t,a,s.offset],s.comment&&(o.comment=s.comment),o}(e,t,r),(a||s)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=Ir(e,t,s,r),a&&(l.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=function(e,t,n,r,i){const o=r?t.directives.tagName(r.source,(e=>i(r,"TAG_RESOLVE_FAILED",e))):null,a="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!r||!o||"!"===o||o===pn.tagName&&"map"===a||o===gn.tagName&&"seq"===a||!a)return $r(e,t,n,i,o);let s=t.schema.tags.find((e=>e.tag===o&&e.collection===a));if(!s){const l=t.schema.knownTags[o];if(!l||l.collection!==a)return l?.collection?i(r,"BAD_COLLECTION_TYPE",`${l.tag} used for ${a} collection, but expects ${l.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),$r(e,t,n,i,o);t.schema.tags.push(Object.assign({},l,{default:!1})),s=l}const l=$r(e,t,n,i,o,s),u=s.resolve?.(l,(e=>i(r,"TAG_RESOLVE_FAILED",e)),t.options)??l,c=st(u)?u:new Qt(u);return c.range=l.range,c.tag=o,s?.format&&(c.format=s.format),c}(Wr,e,t,s,r),a&&(l.anchor=a.source.substring(1));break;default:r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),l=Lr(e,t.offset,void 0,null,n,r),u=!1}return a&&""===l.anchor&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(l.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function Lr(e,t,n,r,{spaceBefore:i,comment:o,anchor:a,tag:s,end:l},u){const c=Ir(e,{type:"scalar",offset:zr(t,n,r),indent:-1,source:""},s,u);return a&&(c.anchor=a.source.substring(1),""===c.anchor&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),o&&(c.comment=o,c.range[2]=l),c}function Fr(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function Ur(e){let t="",n=!1,r=!1;for(let i=0;i{const i=Fr(e);r?this.warnings.push(new br(i,t,n)):this.errors.push(new yr(i,t,n))},this.directives=new wt({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=Ur(this.prelude);if(n){const i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(at(i)&&!i.flow&&i.items.length>0){let e=i.items[0];rt(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ur(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const i=Fr(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:r,value:i,end:o},a){const s=Object.assign({_directives:t},e),l=new gr(void 0,s),u={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},c=kr(r,{indicator:"doc-start",next:i??o?.[0],offset:n,onError:a,startOnNewline:!0});c.found&&(l.directives.docStart=!0,!i||"block-map"!==i.type&&"block-seq"!==i.type||c.hasNewline||a(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?Nr(u,i,c,a):Lr(u,c.end,r,null,c,a);const d=l.contents.range[2],f=Er(o,d,!1,a);return f.comment&&(l.comment=f.comment),l.range=[n,d,f.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new yr(Fr(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new yr(Fr(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=Er(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new yr(Fr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),n=new gr(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}function qr(e,t=!0,n){if(e){const r=(e,t,r)=>{const i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!n)throw new yr([i,i+1],t,r);n(i,t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Rr(e,t,r);case"block-scalar":return Qr(e,t,r)}}return null}function Br(e,t){const{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:o=-1,type:a="PLAIN"}=t,s=Kt({type:a,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(s[0]){case"|":case">":{const e=s.indexOf("\n"),t=s.substring(0,e),n=s.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:o,indent:r,source:t}];return Yr(i,l)||i.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:o,indent:r,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:o,indent:r,source:s,end:l};case"'":return{type:"single-quoted-scalar",offset:o,indent:r,source:s,end:l};default:return{type:"scalar",offset:o,indent:r,source:s,end:l}}}function Vr(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:o=!1,type:a}=n,s="indent"in e?e.indent:null;if(r&&"number"==typeof s&&(s+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");a=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const l=Kt({type:a,value:t},{implicitKey:i||null===s,indent:null!==s&&s>0?" ".repeat(s):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){const n=t.indexOf("\n"),r=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=r,e.source=i}else{const{offset:t}=e,n="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:t,indent:n,source:r}];Yr(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:n,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:o,source:i})}}(e,l);break;case'"':Zr(e,l,"double-quoted-scalar");break;case"'":Zr(e,l,"single-quoted-scalar");break;default:Zr(e,l,"scalar")}}function Yr(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function Zr(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let i=t.length;"block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length);for(const e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}const Gr=e=>"type"in e?Hr(e):Kr(e);function Hr(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Hr(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Kr(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Kr(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Kr(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function Kr({start:e,key:t,sep:n,value:r}){let i="";for(const t of e)i+=t.source;if(t&&(i+=Hr(t)),n)for(const e of n)i+=e.source;return r&&(i+=Hr(r)),i}const Jr=Symbol("break visit"),ei=Symbol("skip children"),ti=Symbol("remove item");function ni(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),ri(Object.freeze([]),e,t)}function ri(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},ni.parentCollection=(e,t)=>{const n=ni.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};const ii="\ufeff",oi="",ai="",si="",li=e=>!!e&&"items"in e,ui=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function ci(e){switch(e){case ii:return"";case oi:return"";case ai:return"";case si:return"";default:return JSON.stringify(e)}}function di(e){switch(e){case ii:return"byte-order-mark";case oi:return"doc-mode";case ai:return"flow-error-end";case si:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function fi(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const hi="0123456789ABCDEFabcdef".split(""),pi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),mi=",[]{}".split(""),gi=" ,[]{}\n\r\t".split(""),vi=e=>!e||gi.includes(e);class Oi{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&fi(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&ethis.indentValue&&!fi(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&fi(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(vi),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>fi(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const i=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>i))break;t=e}return yield si,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(fi(t)||e&&","===t)break;n=r}else if(fi(t)){let i=this.buffer[r+1];if("\r"===t&&("\n"===i?(r+=1,t="\n",i=this.buffer[r+1]):n=r),"#"===i||e&&mi.includes(i))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&mi.includes(t))break;n=r}return t||this.atEnd?(yield si,yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(vi))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(fi(t)||e&&mi.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!fi(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(pi.includes(t))t=this.buffer[++e];else{if("%"!==t||!hi.includes(this.buffer[e+1])||!hi.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class yi{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function Si(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||bi(t.start,"explicit-key-ind")||bi(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,ki(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Pi{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Oi,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=di(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&Si(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!bi(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===wi(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep;let r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||bi(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(bi(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(bi(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(ki(t.key)&&!bi(t.sep,"newline")){const e=_i(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(bi(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=_i(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):bi(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:r,key:i,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(i):(Object.assign(t,{key:i,sep:[]}),this.onKeyLine=!0))}default:{const i=this.startBlockValue(e);if(i)return n&&"block-seq"!==i.type&&bi(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(i)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||bi(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=_i(xi(t));Si(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=_i(xi(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=_i(xi(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function Ei(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new yi||null,prettyErrors:t}}function Ci(e,t={}){const{lineCounter:n,prettyErrors:r}=Ei(t),i=new Pi(n?.addNewLine),o=new Xr(t),a=Array.from(o.compose(i.parse(e)));if(r&&n)for(const t of a)t.errors.forEach(wr(e,n)),t.warnings.forEach(wr(e,n));return a.length>0?a:Object.assign([],{empty:!0},o.streamInfo())}function Ti(e,t={}){const{lineCounter:n,prettyErrors:r}=Ei(t),i=new Pi(n?.addNewLine),o=new Xr(t);let a=null;for(const t of o.compose(i.parse(e),!0,e.length))if(a){if("silent"!==a.options.logLevel){a.errors.push(new yr(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else a=t;return r&&n&&(a.errors.forEach(wr(e,n)),a.warnings.forEach(wr(e,n))),a}function $i(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const i=Ti(e,n);if(!i)return null;if(i.warnings.forEach((e=>nn(i.options.logLevel,e))),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function Qi(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){const e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=n??t??{};if(!e)return}return new gr(e,r,n).toString(n)}const Ri=t;function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ji(e){for(var t=1;t{if(Ie(e.key)){var r,i;const o=null!==(r=null===(i=e.key)||void 0===i?void 0:i.toString())&&void 0!==r?r:"",a=n?`${n}.${o}`:o;if(st(e.key)&&t[a]){const n=t[a].split("\\n").join("\n ");e.key.commentBefore=` ${n}`}nt(e.value)&&Mi(e.value.items,t,a)}}))}const Ii=new class extends Ue{constructor(...e){super(...e),Di(this,"name","yaml")}fromFile(e,t){var n,r,i,o,a,s,l,u;return e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3)),Ri.parse(e,ji(ji(ji(ji({},null!==(n=null===(r=t.yaml)||void 0===r?void 0:r.parseOptions)&&void 0!==n?n:{}),null!==(i=null===(o=t.yaml)||void 0===o?void 0:o.documentOptions)&&void 0!==i?i:{}),null!==(a=null===(s=t.yaml)||void 0===s?void 0:s.schemaOptions)&&void 0!==a?a:{}),null!==(l=null===(u=t.yaml)||void 0===u?void 0:u.toJsOptions)&&void 0!==l?l:{}))}toFile(e,t,n=[],r={}){var i,o,a,s,l,u,c,d,f,h,p;const m=new Ri.Document(ji(ji(ji(ji({aliasDuplicateObjects:!1},null!==(i=null===(o=t.yaml)||void 0===o?void 0:o.documentOptions)&&void 0!==i?i:{}),null!==(a=null===(s=t.yaml)||void 0===s?void 0:s.schemaOptions)&&void 0!==a?a:{}),null!==(l=null===(u=t.yaml)||void 0===u?void 0:u.parseOptions)&&void 0!==l?l:{}),null!==(c=null===(d=t.yaml)||void 0===d?void 0:d.createNodeOptions)&&void 0!==c?c:{})),g=m.createNode(e,ji({aliasDuplicateObjects:!1},null!==(f=null===(h=t.yaml)||void 0===h?void 0:h.createNodeOptions)&&void 0!==f?f:{}));return Mi(g.items,r),g.items.sort(function(e,t=(e=>e)){return(n,r)=>{const i=e.indexOf(t(n)),o=e.indexOf(t(r));return-1===i||-1===o?0:i>o?1:i{var t;return null===(t=e.key)||void 0===t?void 0:t.toString()}))),m.contents=g,m.toString(null===(p=t.yaml)||void 0===p?void 0:p.toStringOptions)}};var zi=__webpack_require__(32388),Wi=__webpack_require__.n(zi);const Ni=["body"];function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t({toml:{parse:e=>Be.fromFile(e),stringify:e=>Be.toFile(e)},json:{parse:e=>{let t=e.trim();return"{"!==t.slice(0,1)&&(t="{"+t+"}"),Xe.fromFile(t)},stringify:e=>{let t=Xe.toFile(e).trim();return"{"===t.slice(0,1)&&"}"===t.slice(-1)&&(t=t.slice(1,-1)),t}},yaml:{parse:t=>Ii.fromFile(t,e),stringify:(t,n)=>{const{sortedKeys:r,comments:i}=n||{};return Ii.toFile(t,e,r,i)}}});function Bi(e,t){if(!e)return;const n={yaml:{language:Xi.YAML,delimiters:"---"},toml:{language:Xi.TOML,delimiters:"+++"},json:{language:Xi.JSON,delimiters:["{","}"]}},{language:r,delimiters:i}=n[e];return{language:r,delimiters:t||i}}class Vi extends Ue{constructor(e,t){super(),Ui(this,"name","formatter"),Ui(this,"format",void 0),this.format=Bi(e,t)}fromFile(e,t){const n=this.format||function(e){const t=e.indexOf("\n"),n=e.slice(0,-1!==t?t:0).trim();if(!(n.length>3&&"---"===n.slice(0,3)))switch(n){case"---":return Bi(Xi.YAML);case"+++":return Bi(Xi.TOML);case"{":return Bi(Xi.JSON);default:console.warn("[StaticCMS] Unrecognized front-matter format.")}}(e),r=Wi()(e,Fi({engines:qi(t)},n));return Fi(Fi({},r.data),r.content.trim()&&{body:r.content})}toFile(e,t,n,r){const{body:i=""}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rn(e)?e:t}function So(e,t){const{replacement:n="",encoding:r="unicode"}=t||{};if(!fo()(e))throw new Error("The input slug must be a string.");if(!fo()(n))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(_o(r,n)).join("")}function Po(e,t){const{encoding:n="unicode",sanitize_replacement:r=""}=t||{};return _o(n,r)(e)}function Eo(e,t){if(!fo()(e))throw new Error("The input slug must be a string.");const{encoding:n,clean_accents:r,sanitize_replacement:i}=t||{},o=uo()([...r?[oo.Od]:[],po()(So,{replacement:i,encoding:n}),po()(Oo(),{replacement:i})])(e),a=new RegExp(`(?:${so()(i)})+`,"g"),s=new RegExp(`${so()(i)}$`),l=new RegExp(`^${so()(i)}`);return o.replace(a,i).replace(l,"").replace(s,"")}function Co(e,...t){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r0&&(i=i.replace(/^[\/]+/,"")),i=r0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}(go()(e,"/"),...t.map((e=>go()(e,"/"))))}const To=["title","path"],$o=["title","date","author","description"],Qo={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>c.createElement("h1",null,e),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>c.createElement("h2",null,e),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>c.createElement("strong",null,e),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo","cover_image","cover-image","coverimage"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}},Ro={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ao=(e,t,n)=>{let r;const i=Ro[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function jo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Do={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Mo={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Io=(e,t,n,r)=>Mo[e];function zo(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Wo={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:zo({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function No(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let t=0;t{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return a=n.valueCallback?n.valueCallback(a):a,{value:a,rest:t.slice(i.length)}}}const Fo={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Uo={code:"en-US",formatDistance:Ao,formatLong:Do,formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Xo={};function qo(){return Xo}Math.pow(10,8);const Bo=6048e5,Vo=864e5,Yo=6e4,Zo=36e5;function Go(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Ho(e){const t=Go(e);return t.setHours(0,0,0,0),t}function Ko(e){const t=Go(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Jo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ea(e){const t=Go(e),n=Jo(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ta(e){const t=Go(e);return function(e,t){const n=Ho(e),r=Ho(t),i=+n-Ko(n),o=+r-Ko(r);return Math.round((i-o)/Vo)}(t,ea(t))+1}function na(e,t){const n=qo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Go(e),o=i.getDay(),a=(o=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function oa(e){const t=Go(e),n=+ra(t)-+function(e){const t=ia(e),n=Jo(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ra(n)}(t);return Math.round(n/Bo)+1}function aa(e,t){const n=Go(e),r=n.getFullYear(),i=qo(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=Jo(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=na(a,t),l=Jo(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=na(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function sa(e,t){const n=Go(e),r=+na(n,t)-+function(e,t){const n=qo(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=aa(e,t),o=Jo(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),na(o,t)}(n,t);return Math.round(r/Bo)+1}function la(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const ua={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return la("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):la(n+1,2)},d:(e,t)=>la(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>la(e.getHours()%12||12,t.length),H:(e,t)=>la(e.getHours(),t.length),m:(e,t)=>la(e.getMinutes(),t.length),s:(e,t)=>la(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return la(Math.trunc(r*Math.pow(10,n-3)),t.length)}},ca={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return ua.y(e,t)},Y:function(e,t,n,r){const i=aa(e,r),o=i>0?i:1-i;return"YY"===t?la(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):la(o,t.length)},R:function(e,t){return la(ia(e),t.length)},u:function(e,t){return la(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return la(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return la(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ua.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return la(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=sa(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):la(i,t.length)},I:function(e,t,n){const r=oa(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):la(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):ua.d(e,t)},D:function(e,t,n){const r=ta(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):la(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return la(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return la(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return la(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return ua.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):ua.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):la(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):la(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ua.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ua.s(e,t)},S:function(e,t){return ua.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return fa(r);case"XXXX":case"XX":return ha(r);default:return ha(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return fa(r);case"xxxx":case"xx":return ha(r);default:return ha(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+da(r,":");default:return"GMT"+ha(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+da(r,":");default:return"GMT"+ha(r,":")}},t:function(e,t,n){return la(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return la(e.getTime(),t.length)}};function da(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+la(o,2)}function fa(e,t){return e%60==0?(e>0?"-":"+")+la(Math.abs(e)/60,2):ha(e,t)}function ha(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+la(Math.trunc(r/60),2)+t+la(r%60,2)}const pa=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ma=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ga={p:ma,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pa(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",pa(r,t)).replace("{{time}}",ma(i,t))}},va=/^D+$/,Oa=/^Y+$/,ya=["D","DD","YY","YYYY"];function ba(e){return va.test(e)}function wa(e){return Oa.test(e)}function ka(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ya.includes(e))throw new RangeError(r)}function xa(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=Go(e);return!isNaN(Number(n))}const _a=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pa=/^'([^]*?)'?$/,Ea=/''/g,Ca=/[a-zA-Z]/;function Ta(e,t,n){const r=qo(),i=n?.locale??r.locale??Uo,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Go(e);if(!xa(s))throw new RangeError("Invalid time value");let l=t.match(Sa).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,ga[t])(e,i.formatLong):e})).join("").match(_a).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:$a(e)};if(ca[t])return{isToken:!0,value:e};if(t.match(Ca))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;return(!n?.useAdditionalWeekYearTokens&&wa(o)||!n?.useAdditionalDayOfYearTokens&&ba(o))&&ka(o,t,String(e)),(0,ca[o[0]])(s,o,i.localize,u)})).join("")}function $a(e){const t=e.match(Pa);return t?t[1].replace(Ea,"'"):e}class Qa{subPriority=0;validate(e,t){return!0}}class Ra extends Qa{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class Aa extends Qa{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:Jo(e,function(e,t){const n=t instanceof Date?Jo(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,Date))}}class ja{run(e,t,n,r){const i=this.parse(e,t,n,r);return i?{setter:new Ra(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}const Da={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ma=/^([+-])(\d{2})(\d{2})?|Z/,Ia=/^([+-])(\d{2})(\d{2})|Z/,za=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wa=/^([+-])(\d{2}):(\d{2})|Z/,Na=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function La(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Fa(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ua(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*Zo+o*Yo+1e3*a),rest:t.slice(n[0].length)}}function Xa(e){return Fa(Da.anyDigitsSigned,e)}function qa(e,t){switch(e){case 1:return Fa(Da.singleDigit,t);case 2:return Fa(Da.twoDigits,t);case 3:return Fa(Da.threeDigits,t);case 4:return Fa(Da.fourDigits,t);default:return Fa(new RegExp("^\\d{1,"+e+"}"),t)}}function Ba(e,t){switch(e){case 1:return Fa(Da.singleDigitSigned,t);case 2:return Fa(Da.twoDigitsSigned,t);case 3:return Fa(Da.threeDigitsSigned,t);case 4:return Fa(Da.fourDigitsSigned,t);default:return Fa(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Va(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ya(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i}function Za(e){return e%400==0||e%4==0&&e%100!=0}const Ga=[31,28,31,30,31,30,31,31,30,31,30,31],Ha=[31,29,31,30,31,30,31,31,30,31,30,31];function Ka(e,t){const n=Go(e);return isNaN(t)?Jo(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Ja(e,t,n){const r=qo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Go(e),a=o.getDay(),s=7-i;return Ka(o,t<0||t>6?t-(a+s)%7:((t%7+7)%7+s)%7-(a+s)%7)}function es(e,t){const n=Go(e);return Ka(n,t-function(e){let t=Go(e).getDay();return 0===t&&(t=7),t}(n))}const ts={G:new class extends ja{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends ja{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return La(qa(4,e),r);case"yo":return La(n.ordinalNumber(e,{unit:"year"}),r);default:return La(qa(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=Ya(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},Y:new class extends ja{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return La(qa(4,e),r);case"Yo":return La(n.ordinalNumber(e,{unit:"year"}),r);default:return La(qa(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const i=aa(e,r);if(n.isTwoDigitYear){const t=Ya(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),na(e,r)}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),na(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends ja{priority=130;parse(e,t){return Ba("R"===t?4:t.length,e)}set(e,t,n){const r=Jo(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ra(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends ja{priority=130;parse(e,t){return Ba("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends ja{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return qa(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends ja{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return qa(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends ja{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return La(Fa(Da.month,e),r);case"MM":return La(qa(2,e),r);case"Mo":return La(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends ja{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return La(Fa(Da.month,e),r);case"LL":return La(qa(2,e),r);case"Lo":return La(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends ja{priority=100;parse(e,t,n){switch(t){case"w":return Fa(Da.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return qa(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return na(function(e,t,n){const r=Go(e),i=sa(r,n)-t;return r.setDate(r.getDate()-7*i),r}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends ja{priority=100;parse(e,t,n){switch(t){case"I":return Fa(Da.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return qa(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return ra(function(e,t){const n=Go(e),r=oa(n)-t;return n.setDate(n.getDate()-7*r),n}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends ja{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Fa(Da.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return qa(t.length,e)}}validate(e,t){const n=Za(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=Ha[r]:t>=1&&t<=Ga[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends ja{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Fa(Da.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return qa(t.length,e)}}validate(e,t){return Za(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends ja{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ja(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends ja{priority=90;parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return La(qa(t.length,e),i);case"eo":return La(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ja(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends ja{priority=90;parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return La(qa(t.length,e),i);case"co":return La(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ja(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends ja{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return qa(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return La(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return La(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return La(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return La(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=es(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends ja{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Va(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends ja{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Va(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends ja{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Va(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends ja{priority=70;parse(e,t,n){switch(t){case"h":return Fa(Da.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return qa(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends ja{priority=70;parse(e,t,n){switch(t){case"H":return Fa(Da.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return qa(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends ja{priority=70;parse(e,t,n){switch(t){case"K":return Fa(Da.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return qa(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends ja{priority=70;parse(e,t,n){switch(t){case"k":return Fa(Da.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return qa(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends ja{priority=60;parse(e,t,n){switch(t){case"m":return Fa(Da.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return qa(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends ja{priority=50;parse(e,t,n){switch(t){case"s":return Fa(Da.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return qa(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends ja{priority=30;parse(e,t){return La(qa(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends ja{priority=10;parse(e,t){switch(t){case"X":return Ua(Ma,e);case"XX":return Ua(Ia,e);case"XXXX":return Ua(za,e);case"XXXXX":return Ua(Na,e);default:return Ua(Wa,e)}}set(e,t,n){return t.timestampIsSet?e:Jo(e,e.getTime()-Ko(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends ja{priority=10;parse(e,t){switch(t){case"x":return Ua(Ma,e);case"xx":return Ua(Ia,e);case"xxxx":return Ua(za,e);case"xxxxx":return Ua(Na,e);default:return Ua(Wa,e)}}set(e,t,n){return t.timestampIsSet?e:Jo(e,e.getTime()-Ko(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends ja{priority=40;parse(e){return Xa(e)}set(e,t,n){return[Jo(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends ja{priority=20;parse(e){return Xa(e)}set(e,t,n){return[Jo(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},ns=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,is=/^'([^]*?)'?$/,os=/''/g,as=/\S/,ss=/[a-zA-Z]/;function ls(e,t,n,r){const i=Object.assign({},qo()),o=r?.locale??i.locale??Uo,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(""===t)return""===e?Go(n):Jo(n,NaN);const l={firstWeekContainsDate:a,weekStartsOn:s,locale:o},u=[new Aa],c=t.match(rs).map((e=>{const t=e[0];return t in ga?(0,ga[t])(e,o.formatLong):e})).join("").match(ns),d=[];for(let i of c){!r?.useAdditionalWeekYearTokens&&wa(i)&&ka(i,t,e),!r?.useAdditionalDayOfYearTokens&&ba(i)&&ka(i,t,e);const a=i[0],s=ts[a];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=d.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${i}\` at the same time`)}else if("*"===s.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${i}\` and any other token at the same time`);d.push({token:a,fullToken:i});const r=s.run(e,i,o.match,l);if(!r)return Jo(n,NaN);u.push(r.setter),e=r.rest}else{if(a.match(ss))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===i?i="'":"'"===a&&(i=i.match(is)[1].replace(os,"'")),0!==e.indexOf(i))return Jo(n,NaN);e=e.slice(i.length)}}if(e.length>0&&as.test(e))return Jo(n,NaN);const f=u.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>u.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let h=Go(n);if(isNaN(h.getTime()))return Jo(n,NaN);const p={};for(const e of f){if(!e.validate(h,l))return Jo(n,NaN);const t=e.set(h,p,l);Array.isArray(t)?(h=t[0],Object.assign(p,t[1])):h=t}return Jo(n,h)}var us=__webpack_require__(70492),cs=__webpack_require__.n(us),ds=__webpack_require__(64702),fs=__webpack_require__.n(ds);const hs={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},ps={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ms={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'môre om' p",nextWeek:"eeee 'om' p",other:"P"},gs={ordinalNumber:e=>{const t=Number(e),n=t%100;if(n<20)switch(n){case 1:case 8:return t+"ste";default:return t+"de"}return t+"ste"},era:zo({values:{narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},defaultFormattingWidth:"wide"})},vs={ordinalNumber:Lo({matchPattern:/^(\d+)(ste|de)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},defaultParseWidth:"any"})},Os={code:"af",formatDistance:(e,t,n)=>{let r;const i=hs[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"oor "+r:r+" gelede":r},formatLong:ps,formatRelative:(e,t,n,r)=>ms[e],localize:gs,match:vs,options:{weekStartsOn:0,firstWeekContainsDate:1}},ys={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من ثانيتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانيتان",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتان",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريبا",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتان",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومان",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريبا",two:"أسبوعين تقريبا",threeToTen:"{{count}} أسابيع تقريبا",other:"{{count}} أسبوعا تقريبا"},xWeeks:{one:"أسبوع واحد",two:"أسبوعان",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوعا"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريبا",threeToTen:"{{count}} أشهر تقريبا",other:"{{count}} شهرا تقريباً"},xMonths:{one:"شهر واحد",two:"شهران",threeToTen:"{{count}} أشهر",other:"{{count}} شهرا"},aboutXYears:{one:"سنة واحدة تقريباً",two:"سنتين تقريبا",threeToTen:"{{count}} سنوات تقريباً",other:"{{count}} سنة تقريباً"},xYears:{one:"سنة واحد",two:"سنتان",threeToTen:"{{count}} سنوات",other:"{{count}} سنة"},overXYears:{one:"أكثر من سنة",two:"أكثر من سنتين",threeToTen:"أكثر من {{count}} سنوات",other:"أكثر من {{count}} سنة"},almostXYears:{one:"ما يقارب سنة واحدة",two:"ما يقارب سنتين",threeToTen:"ما يقارب {{count}} سنوات",other:"ما يقارب {{count}} سنة"}},bs={date:jo({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'عند الساعة' {{time}}",long:"{{date}} 'عند الساعة' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ws={lastWeek:"eeee 'الماضي عند الساعة' p",yesterday:"'الأمس عند الساعة' p",today:"'اليوم عند الساعة' p",tomorrow:"'غدا عند الساعة' p",nextWeek:"eeee 'القادم عند الساعة' p",other:"P"},ks={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"},abbreviated:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"},wide:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"},abbreviated:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"},wide:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"}},defaultFormattingWidth:"wide"})},xs={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:"wide",parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[أيفمسند]/,abbreviated:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^يناير/i,/^فبراير/i,/^مارس/i,/^أبريل/i,/^مايو/i,/^يونيو/i,/^يوليو/i,/^أغسطس/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/,any:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/منتصف الليل/,noon:/الظهر/,afternoon:/بعد الظهر/,morning:/في الصباح/,evening:/في المساء/,night:/في الليل/}},defaultParseWidth:"any"})},_s={code:"ar",formatDistance:(e,t,n)=>{const r=ys[e];let i;return i="string"==typeof r?r:1===t?r.one:2===t?r.two:t<=10?r.threeToTen.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"خلال "+i:"منذ "+i:i},formatLong:bs,formatRelative:e=>ws[e],localize:ks,match:xs,options:{weekStartsOn:6,firstWeekContainsDate:1}},Ss={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},Ps={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Es={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},Cs={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],abbreviated:["جانـ","فيفـ","مارس","أفريل","مايـ","جوانـ","جويـ","أوت","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},Ts={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>Number(e)+1}),month:No({matchPatterns:{narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},$s={code:"ar-DZ",formatDistance:(e,t,n)=>{n=n||{};const r=Ss[e];let i;return i="string"==typeof r?r:1===t?r.one:2===t?r.two:t<=10?r.threeToTen.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?"في خلال "+i:"منذ "+i:i},formatLong:Ps,formatRelative:(e,t,n,r)=>Es[e],localize:Cs,match:Ts,options:{weekStartsOn:0,firstWeekContainsDate:1}},Qs={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من ثانيتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية",two:"ثانيتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نص دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقايق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة",two:"دقيقتين",threeToTen:"{{count}} دقايق",other:"{{count}} دقيقة"},aboutXHours:{one:"حوالي ساعة",two:"حوالي ساعتين",threeToTen:"حوالي {{count}} ساعات",other:"حوالي {{count}} ساعة"},xHours:{one:"ساعة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"حوالي أسبوع",two:"حوالي أسبوعين",threeToTen:"حوالي {{count}} أسابيع",other:"حوالي {{count}} أسبوع"},xWeeks:{one:"أسبوع",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"حوالي شهر",two:"حوالي شهرين",threeToTen:"حوالي {{count}} أشهر",other:"حوالي {{count}} شهر"},xMonths:{one:"شهر",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"حوالي سنة",two:"حوالي سنتين",threeToTen:"حوالي {{count}} سنين",other:"حوالي {{count}} سنة"},xYears:{one:"عام",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من سنة",two:"أكثر من سنتين",threeToTen:"أكثر من {{count}} سنين",other:"أكثر من {{count}} سنة"},almostXYears:{one:"عام تقريبًا",two:"عامين تقريبًا",threeToTen:"{{count}} أعوام تقريبًا",other:"{{count}} عام تقريبًا"}},Rs={date:jo({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"dd/MMM/y",short:"d/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'الساعة' {{time}}",long:"{{date}} 'الساعة' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},As={lastWeek:"eeee 'اللي جاي الساعة' p",yesterday:"'إمبارح الساعة' p",today:"'النهاردة الساعة' p",tomorrow:"'بكرة الساعة' p",nextWeek:"eeee 'الساعة' p",other:"P"},js={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م","ب.م"],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",morning:"في الصباح",noon:"ظهراً",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},Ds={ordinalNumber:Lo({matchPattern:/^(\d+)/,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(ق|ب)/g,abbreviated:/^(ق.م|ب.م)/g,wide:/^(قبل الميلاد|بعد الميلاد)/g},defaultMatchWidth:"wide",parsePatterns:{any:[/^ق/g,/^ب/g]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/,abbreviated:/^ر[1234]/,wide:/^الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{wide:[/الربع الأول/,/الربع الثاني/,/الربع الثالث/,/الربع الرابع/],any:[/1/,/2/,/3/,/4/]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ي|ف|م|أ|س|ن|د)/,abbreviated:/^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/,/^ف/,/^م/,/^أ/,/^م/,/^ي/,/^ي/,/^أ/,/^س/,/^أ/,/^ن/,/^د/],any:[/^ينا/,/^فبر/,/^مارس/,/^أبريل/,/^مايو/,/^يون/,/^يول/,/^أغس/,/^سبت/,/^أكت/,/^نوف/,/^ديس/]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ح|ن|ث|ر|خ|ج|س)/,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/,/^ن/,/^ث/,/^ر/,/^خ/,/^ج/,/^س/],any:[/أحد/,/اثنين/,/ثلاثاء/,/أربعاء/,/خميس/,/جمعة/,/سبت/]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/,abbreviated:/^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/,wide:/^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/,any:/^(ص|م|صباح|ظهر|مساء|ليل)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/^ن/,noon:/^ظ/,morning:/^ص/,afternoon:/^بعد/,evening:/^م/,night:/^ل/}},defaultParseWidth:"any"})},Ms={code:"ar-EG",formatDistance:(e,t,n)=>{let r;const i=Qs[e];return r="string"==typeof i?i:1===t?i.one:2===t?i.two:t<=10?i.threeToTen.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`في خلال ${r}`:`منذ ${r}`:r},formatLong:Rs,formatRelative:(e,t,n,r)=>As[e],localize:js,match:Ds,options:{weekStartsOn:0,firstWeekContainsDate:1}},Is={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},zs={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ws={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},Ns={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["ي","ف","م","أ","م","ي","ي","غ","ش","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","ماي","يونـ","يولـ","غشت","شتنـ","أكتـ","نونـ","دجنـ"],wide:["يناير","فبراير","مارس","أبريل","ماي","يونيو","يوليوز","غشت","شتنبر","أكتوبر","نونبر","دجنبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},Ls={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>Number(e)+1}),month:No({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^غ/i,/^ش/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^فب/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^غشت/i,/^ش/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الإثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^إث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Fs={code:"ar-MA",formatDistance:(e,t,n)=>{n=n||{};const r=Is[e];let i;return i="string"==typeof r?r:1===t?r.one:2===t?r.two:t<=10?r.threeToTen.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?"في خلال "+i:"منذ "+i:i},formatLong:zs,formatRelative:(e,t,n,r)=>Ws[e],localize:Ns,match:Ls,options:{weekStartsOn:1,firstWeekContainsDate:1}},Us={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},Xs={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qs={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},Bs={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},Vs={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Ys={code:"ar-SA",formatDistance:(e,t,n)=>{let r;const i=Us[e];return r="string"==typeof i?i:1===t?i.one:2===t?i.two:t<=10?i.threeToTen.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"في خلال "+r:"منذ "+r:r},formatLong:Xs,formatRelative:(e,t,n,r)=>qs[e],localize:Bs,match:Vs,options:{weekStartsOn:0,firstWeekContainsDate:1}},Zs={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من زوز ثواني",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية",two:"زوز ثواني",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نص دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقايق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة",two:"دقيقتين",threeToTen:"{{count}} دقايق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة تقريب",two:"ساعتين تقريب",threeToTen:"{{count}} سوايع تقريب",other:"{{count}} ساعة تقريب"},xHours:{one:"ساعة",two:"ساعتين",threeToTen:"{{count}} سوايع",other:"{{count}} ساعة"},xDays:{one:"نهار",two:"نهارين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"جمعة تقريب",two:"جمعتين تقريب",threeToTen:"{{count}} جماع تقريب",other:"{{count}} جمعة تقريب"},xWeeks:{one:"جمعة",two:"جمعتين",threeToTen:"{{count}} جماع",other:"{{count}} جمعة"},aboutXMonths:{one:"شهر تقريب",two:"شهرين تقريب",threeToTen:"{{count}} أشهرة تقريب",other:"{{count}} شهر تقريب"},xMonths:{one:"شهر",two:"شهرين",threeToTen:"{{count}} أشهرة",other:"{{count}} شهر"},aboutXYears:{one:"عام تقريب",two:"عامين تقريب",threeToTen:"{{count}} أعوام تقريب",other:"{{count}} عام تقريب"},xYears:{one:"عام",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام تقريب",two:"عامين تقريب",threeToTen:"{{count}} أعوام تقريب",other:"{{count}} عام تقريب"}},Gs={date:jo({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'مع' {{time}}",long:"{{date}} 'مع' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Hs={lastWeek:"eeee 'إلي فات مع' p",yesterday:"'البارح مع' p",today:"'اليوم مع' p",tomorrow:"'غدوة مع' p",nextWeek:"eeee 'الجمعة الجاية مع' p 'نهار'",other:"P"},Ks={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["د","ن","أ","س","أ","ج","ج","م","أ","م","ف","ج"],abbreviated:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"},abbreviated:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"},wide:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"},abbreviated:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"},wide:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"}},defaultFormattingWidth:"wide"})},Js={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:"wide",parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[جفمأسند]/,abbreviated:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جانفي/i,/^فيفري/i,/^مارس/i,/^أفريل/i,/^ماي/i,/^جوان/i,/^جويلية/i,/^أوت/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/,any:/^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^ع/,midnight:/نص الليل/,noon:/قايلة/,afternoon:/بعد القايلة/,morning:/صباح/,evening:/عشية/,night:/ليل/}},defaultParseWidth:"any"})},el={code:"ar-TN",formatDistance:(e,t,n)=>{const r=Zs[e];let i;return i="string"==typeof r?r:1===t?r.one:2===t?r.two:t<=10?r.threeToTen.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"في "+i:"عندو "+i:i},formatLong:Gs,formatRelative:e=>Hs[e],localize:Ks,match:Js,options:{weekStartsOn:1,firstWeekContainsDate:1}},tl={lessThanXSeconds:{one:"bir saniyədən az",other:"{{count}} bir saniyədən az"},xSeconds:{one:"1 saniyə",other:"{{count}} saniyə"},halfAMinute:"yarım dəqiqə",lessThanXMinutes:{one:"bir dəqiqədən az",other:"{{count}} bir dəqiqədən az"},xMinutes:{one:"bir dəqiqə",other:"{{count}} dəqiqə"},aboutXHours:{one:"təxminən 1 saat",other:"təxminən {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"təxminən 1 həftə",other:"təxminən {{count}} həftə"},xWeeks:{one:"1 həftə",other:"{{count}} həftə"},aboutXMonths:{one:"təxminən 1 ay",other:"təxminən {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"təxminən 1 il",other:"təxminən {{count}} il"},xYears:{one:"1 il",other:"{{count}} il"},overXYears:{one:"1 ildən çox",other:"{{count}} ildən çox"},almostXYears:{one:"demək olar ki 1 il",other:"demək olar ki {{count}} il"}},nl={date:jo({formats:{full:"EEEE, do MMMM y 'il'",long:"do MMMM y 'il'",medium:"d MMM y 'il'",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}} - 'də'",long:"{{date}} {{time}} - 'də'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rl={lastWeek:"'sonuncu' eeee p -'də'",yesterday:"'dünən' p -'də'",today:"'bugün' p -'də'",tomorrow:"'sabah' p -'də'",nextWeek:"eeee p -'də'",other:"P"},il={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},ol={ordinalNumber:(e,t)=>{const n=Number(e),r=(e=>{if(0===e)return e+"-ıncı";const t=e%10,n=e%100-t,r=e>=100?100:null;return il[t]?il[t]:il[n]?il[n]:null!==r?il[r]:""})(n);return n+r},era:zo({values:{narrow:["e.ə","b.e"],abbreviated:["e.ə","b.e"],wide:["eramızdan əvvəl","bizim era"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ci kvartal","2ci kvartal","3cü kvartal","4cü kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Y","F","M","A","M","İ","İ","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","İyun","İyul","Avq","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},defaultWidth:"wide"}),day:zo({values:{narrow:["B.","B.e","Ç.a","Ç.","C.a","C.","Ş."],short:["B.","B.e","Ç.a","Ç.","C.a","C.","Ş."],abbreviated:["Baz","Baz.e","Çər.a","Çər","Cüm.a","Cüm","Şə"],wide:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},abbreviated:{am:"AM",pm:"PM",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},wide:{am:"a.m.",pm:"p.m.",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},abbreviated:{am:"AM",pm:"PM",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},wide:{am:"a.m.",pm:"p.m.",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"}},defaultFormattingWidth:"wide"})},al={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(b|a)$/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i,wide:/^(bizim eradan əvvəl|bizim era)$/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b$/i,/^(a|c)$/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]$/i,abbreviated:/^K[1234]$/i,wide:/^[1234](ci)? kvartal$/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[(?-i)yfmaisond]$/i,abbreviated:/^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i,wide:/^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^[(?-i)y]$/i,/^[(?-i)f]$/i,/^[(?-i)m]$/i,/^[(?-i)a]$/i,/^[(?-i)m]$/i,/^[(?-i)i]$/i,/^[(?-i)i]$/i,/^[(?-i)a]$/i,/^[(?-i)s]$/i,/^[(?-i)o]$/i,/^[(?-i)n]$/i,/^[(?-i)d]$/i],abbreviated:[/^Yan$/i,/^Fev$/i,/^Mar$/i,/^Apr$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avg$/i,/^Sen$/i,/^Okt$/i,/^Noy$/i,/^Dek$/i],wide:[/^Yanvar$/i,/^Fevral$/i,/^Mart$/i,/^Aprel$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avgust$/i,/^Sentyabr$/i,/^Oktyabr$/i,/^Noyabr$/i,/^Dekabr$/i]},defaultParseWidth:"narrow"}),day:No({matchPatterns:{narrow:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,short:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,abbreviated:/^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i,wide:/^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i],abbreviated:[/^Baz$/i,/^Baz\.e$/i,/^Çər\.a$/i,/^Çər$/i,/^Cüm\.a$/i,/^Cüm$/i,/^Şə$/i],wide:[/^Bazar$/i,/^Bazar ertəsi$/i,/^Çərşənbə axşamı$/i,/^Çərşənbə$/i,/^Cümə axşamı$/i,/^Cümə$/i,/^Şənbə$/i],any:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i,any:/^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a$/i,pm:/^p$/i,midnight:/^gecəyarı$/i,noon:/^gün$/i,morning:/səhər$/i,afternoon:/gündüz$/i,evening:/axşam$/i,night:/gecə$/i}},defaultParseWidth:"any"})},sl={code:"az",formatDistance:(e,t,n)=>{let r;const i=tl[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" əvvəl":r},formatLong:nl,formatRelative:(e,t,n,r)=>rl[e],localize:ol,match:al,options:{weekStartsOn:1,firstWeekContainsDate:1}};function ll(e,t){if(void 0!==e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function ul(e){return(t,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?ll(e.future,t):"праз "+ll(e.regular,t):e.past?ll(e.past,t):ll(e.regular,t)+" таму":ll(e.regular,t)}const cl={lessThanXSeconds:ul({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:ul({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны",lessThanXMinutes:ul({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:ul({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:ul({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:ul({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:ul({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:ul({regular:{singularNominative:"каля {{count}} тыдні",singularGenitive:"каля {{count}} тыдняў",pluralGenitive:"каля {{count}} тыдняў"},future:{singularNominative:"прыблізна праз {{count}} тыдзень",singularGenitive:"прыблізна праз {{count}} тыдні",pluralGenitive:"прыблізна праз {{count}} тыдняў"}}),xWeeks:ul({regular:{singularNominative:"{{count}} тыдзень",singularGenitive:"{{count}} тыдні",pluralGenitive:"{{count}} тыдняў"}}),aboutXMonths:ul({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:ul({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:ul({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:ul({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:ul({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:ul({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},dl={date:jo({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})};function fl(e,t,n){return+na(e,n)==+na(t,n)}const hl=["нядзелю","панядзелак","аўторак","сераду","чацвер","пятніцу","суботу"];function pl(e){return"'у "+hl[e]+" а' p"}const ml={lastWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?pl(i):function(e){const t=hl[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}(i)},yesterday:"'учора а' p",today:"'сёння а' p",tomorrow:"'заўтра а' p",nextWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?pl(i):function(e){const t=hl[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}(i)},other:"P"},gl={ordinalNumber:(e,t)=>{const n=String(t?.unit),r=Number(e);let i;return i="date"===n?"-га":"hour"===n||"minute"===n||"second"===n?"-я":r%10!=2&&r%10!=3||r%100==12||r%100==13?"-ы":"-і",r+i},era:zo({values:{narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","май","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзень","люты","сакавік","красавік","май","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","мая","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чац","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},defaultFormattingWidth:"wide"})},vl={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},Ol={code:"be",formatDistance:(e,t,n)=>(n=n||{},cl[e](t,n)),formatLong:dl,formatRelative:(e,t,n,r)=>{const i=ml[e];return"function"==typeof i?i(t,n,r):i},localize:gl,match:vl,options:{weekStartsOn:1,firstWeekContainsDate:1}};function yl(e,t){if(void 0!==e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function bl(e){return(t,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?yl(e.future,t):"праз "+yl(e.regular,t):e.past?yl(e.past,t):yl(e.regular,t)+" таму":yl(e.regular,t)}const wl={lessThanXSeconds:bl({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:bl({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны",lessThanXMinutes:bl({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:bl({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:bl({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:bl({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:bl({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:bl({regular:{singularNominative:"каля {{count}} тыдні",singularGenitive:"каля {{count}} тыдняў",pluralGenitive:"каля {{count}} тыдняў"},future:{singularNominative:"прыблізна праз {{count}} тыдзень",singularGenitive:"прыблізна праз {{count}} тыдні",pluralGenitive:"прыблізна праз {{count}} тыдняў"}}),xWeeks:bl({regular:{singularNominative:"{{count}} тыдзень",singularGenitive:"{{count}} тыдні",pluralGenitive:"{{count}} тыдняў"}}),aboutXMonths:bl({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:bl({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:bl({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:bl({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:bl({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:bl({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},kl={date:jo({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},xl=["нядзелю","панядзелак","аўторак","сераду","чацьвер","пятніцу","суботу"];function _l(e){return"'у "+xl[e]+" а' p"}const Sl={lastWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?_l(i):function(e){const t=xl[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}(i)},yesterday:"'учора а' p",today:"'сёньня а' p",tomorrow:"'заўтра а' p",nextWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?_l(i):function(e){const t=xl[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}(i)},other:"P"},Pl={ordinalNumber:(e,t)=>{const n=String(t?.unit),r=Number(e);let i;return i="date"===n?"-га":"hour"===n||"minute"===n||"second"===n?"-я":r%10!=2&&r%10!=3||r%100==12||r%100==13?"-ы":"-і",r+i},era:zo({values:{narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["С","Л","С","К","Т","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","трав.","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","сьнеж."],wide:["студзень","люты","сакавік","красавік","травень","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","сьнежань"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","С","К","Т","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","трав.","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","сьнеж."],wide:["студзеня","лютага","сакавіка","красавіка","траўня","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","сьнежня"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чаць","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацьвер","пятніца","субота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},defaultFormattingWidth:"wide"})},El={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^тр/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},Cl={code:"be-tarask",formatDistance:(e,t,n)=>(n=n||{},wl[e](t,n)),formatLong:kl,formatRelative:(e,t,n,r)=>{const i=Sl[e];return"function"==typeof i?i(t,n,r):i},localize:Pl,match:El,options:{weekStartsOn:1,firstWeekContainsDate:1}},Tl={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},$l={date:jo({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},Ql=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function Rl(e){const t=Ql[e];return 2===e?"'във "+t+" в' p":"'в "+t+" в' p"}const Al={lastWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?Rl(i):function(e){const t=Ql[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}(i)},yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?Rl(i):function(e){const t=Ql[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}(i)},other:"P"};function jl(e,t,n,r,i){const o=function(e){return"quarter"===e}(t)?i:function(e){return"year"===e||"week"===e||"minute"===e||"second"===e}(t)?r:n;return e+"-"+o}const Dl={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if(0===n)return jl(0,r,"ев","ева","ево");if(n%1e3==0)return jl(n,r,"ен","на","но");if(n%100==0)return jl(n,r,"тен","тна","тно");const i=n%100;if(i>20||i<10)switch(i%10){case 1:return jl(n,r,"ви","ва","во");case 2:return jl(n,r,"ри","ра","ро");case 7:case 8:return jl(n,r,"ми","ма","мо")}return jl(n,r,"ти","та","то")},era:zo({values:{narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}},defaultWidth:"wide"})},Ml={ordinalNumber:Lo({matchPattern:/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},defaultParseWidth:"any"})},Il={code:"bg",formatDistance:(e,t,n)=>{let r;const i=Tl[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"след "+r:"преди "+r:r},formatLong:$l,formatRelative:(e,t,n,r)=>{const i=Al[e];return"function"==typeof i?i(t,n,r):i},localize:Dl,match:Ml,options:{weekStartsOn:1,firstWeekContainsDate:1}},zl={locale:{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},number:{"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"}};function Wl(e){return e.toString().replace(/\d/g,(function(e){return zl.locale[e]}))}const Nl={ordinalNumber:(e,t)=>{const n=Number(e),r=Wl(n),i=t?.unit;if("date"===i)return function(e,t){if(e>18&&e<=31)return t+"শে";switch(e){case 1:return t+"লা";case 2:case 3:return t+"রা";case 4:return t+"ঠা";default:return t+"ই"}}(n,r);if(n>10||0===n)return r+"তম";switch(n%10){case 2:case 3:return r+"য়";case 4:return r+"র্থ";case 6:return r+"ষ্ঠ";default:return r+"ম"}},era:zo({values:{narrow:["খ্রিঃপূঃ","খ্রিঃ"],abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"],wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["১","২","৩","৪"],abbreviated:["১ত্রৈ","২ত্রৈ","৩ত্রৈ","৪ত্রৈ"],wide:["১ম ত্রৈমাসিক","২য় ত্রৈমাসিক","৩য় ত্রৈমাসিক","৪র্থ ত্রৈমাসিক"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],abbreviated:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],wide:["জানুয়ারি","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]},defaultWidth:"wide"}),day:zo({values:{narrow:["র","সো","ম","বু","বৃ","শু","শ"],short:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],abbreviated:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],wide:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার ","শুক্রবার","শনিবার"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},defaultWidth:"wide",formattingValues:{narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},defaultFormattingWidth:"wide"})},Ll={lessThanXSeconds:{one:"প্রায় ১ সেকেন্ড",other:"প্রায় {{count}} সেকেন্ড"},xSeconds:{one:"১ সেকেন্ড",other:"{{count}} সেকেন্ড"},halfAMinute:"আধ মিনিট",lessThanXMinutes:{one:"প্রায় ১ মিনিট",other:"প্রায় {{count}} মিনিট"},xMinutes:{one:"১ মিনিট",other:"{{count}} মিনিট"},aboutXHours:{one:"প্রায় ১ ঘন্টা",other:"প্রায় {{count}} ঘন্টা"},xHours:{one:"১ ঘন্টা",other:"{{count}} ঘন্টা"},xDays:{one:"১ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"প্রায় ১ সপ্তাহ",other:"প্রায় {{count}} সপ্তাহ"},xWeeks:{one:"১ সপ্তাহ",other:"{{count}} সপ্তাহ"},aboutXMonths:{one:"প্রায় ১ মাস",other:"প্রায় {{count}} মাস"},xMonths:{one:"১ মাস",other:"{{count}} মাস"},aboutXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"},xYears:{one:"১ বছর",other:"{{count}} বছর"},overXYears:{one:"১ বছরের বেশি",other:"{{count}} বছরের বেশি"},almostXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"}},Fl={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}} 'সময়'",long:"{{date}} {{time}} 'সময়'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ul={lastWeek:"'গত' eeee 'সময়' p",yesterday:"'গতকাল' 'সময়' p",today:"'আজ' 'সময়' p",tomorrow:"'আগামীকাল' 'সময়' p",nextWeek:"eeee 'সময়' p",other:"P"},Xl={ordinalNumber:Lo({matchPattern:/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},defaultParseWidth:"wide"}),quarter:No({matchPatterns:{narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},defaultMatchWidth:"wide",parsePatterns:{any:[/১/i,/২/i,/৩/i,/৪/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},defaultParseWidth:"any"})},ql={code:"bn",formatDistance:(e,t,n)=>{let r;const i=Ll[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",Wl(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" এর মধ্যে":r+" আগে":r},formatLong:Fl,formatRelative:(e,t,n,r)=>Ul[e],localize:Nl,match:Xl,options:{weekStartsOn:0,firstWeekContainsDate:1}},Bl={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 sedmicu",withPrepositionAgo:"oko 1 sedmicu",withPrepositionIn:"oko 1 sedmicu"},dual:"oko {{count}} sedmice",other:"oko {{count}} sedmice"},xWeeks:{one:{standalone:"1 sedmicu",withPrepositionAgo:"1 sedmicu",withPrepositionIn:"1 sedmicu"},dual:"{{count}} sedmice",other:"{{count}} sedmice"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Vl={date:jo({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Yl={lastWeek:e=>{switch(e.getDay()){case 0:return"'prošle nedjelje u' p";case 3:return"'prošle srijede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'sljedeće nedjelje u' p";case 3:return"'sljedeću srijedu u' p";case 6:return"'sljedeću subotu u' p";default:return"'sljedeći' EEEE 'u' p"}},other:"P"},Zl={ordinalNumber:(e,t)=>{const n=Number(e);return String(n)+"."},era:zo({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Prije Hrista","Poslije Hrista"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uveče",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uveče",night:"noću"}},defaultFormattingWidth:"wide"})},Gl={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})},Hl={code:"bs",formatDistance:(e,t,n)=>{let r;const i=Bl[e];return r="string"==typeof i?i:1===t?n?.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?i.dual.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"za "+r:"prije "+r:r},formatLong:Vl,formatRelative:(e,t,n,r)=>{const i=Yl[e];return"function"==typeof i?i(t):i},localize:Zl,match:Gl,options:{weekStartsOn:1,firstWeekContainsDate:4}},Kl={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},Jl={date:jo({formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},eu={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},tu={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},nu={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 3:return n+"r";case 2:return n+"n";case 4:return n+"t"}return n+"è"},era:zo({values:{narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},defaultFormattingWidth:"wide"})},ru={ordinalNumber:Lo({matchPattern:/^(\d+)(è|r|n|r|t)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},defaultParseWidth:"wide"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},defaultParseWidth:"wide"}),day:No({matchPatterns:{narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},defaultParseWidth:"any"})},iu={code:"ca",formatDistance:(e,t,n)=>{let r;const i=Kl[e];return r="string"==typeof i?i:1===t?i.one:11===t&&i.eleven?i.eleven:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"fa "+r:r},formatLong:Jl,formatRelative:(e,t,n,r)=>1!==t.getHours()?tu[e]:eu[e],localize:nu,match:ru,options:{weekStartsOn:1,firstWeekContainsDate:4}},ou={lessThanXSeconds:{one:"کەمتر لە یەک چرکە",other:"کەمتر لە {{count}} چرکە"},xSeconds:{one:"1 چرکە",other:"{{count}} چرکە"},halfAMinute:"نیو کاتژمێر",lessThanXMinutes:{one:"کەمتر لە یەک خولەک",other:"کەمتر لە {{count}} خولەک"},xMinutes:{one:"1 خولەک",other:"{{count}} خولەک"},aboutXHours:{one:"دەوروبەری 1 کاتژمێر",other:"دەوروبەری {{count}} کاتژمێر"},xHours:{one:"1 کاتژمێر",other:"{{count}} کاتژمێر"},xDays:{one:"1 ڕۆژ",other:"{{count}} ژۆژ"},aboutXWeeks:{one:"دەوروبەری 1 هەفتە",other:"دوروبەری {{count}} هەفتە"},xWeeks:{one:"1 هەفتە",other:"{{count}} هەفتە"},aboutXMonths:{one:"داوروبەری 1 مانگ",other:"دەوروبەری {{count}} مانگ"},xMonths:{one:"1 مانگ",other:"{{count}} مانگ"},aboutXYears:{one:"دەوروبەری 1 ساڵ",other:"دەوروبەری {{count}} ساڵ"},xYears:{one:"1 ساڵ",other:"{{count}} ساڵ"},overXYears:{one:"زیاتر لە ساڵێک",other:"زیاتر لە {{count}} ساڵ"},almostXYears:{one:"بەنزیکەیی ساڵێک ",other:"بەنزیکەیی {{count}} ساڵ"}},au={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'کاتژمێر' {{time}}",long:"{{date}} 'کاتژمێر' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},su={lastWeek:"'هەفتەی ڕابردوو' eeee 'کاتژمێر' p",yesterday:"'دوێنێ کاتژمێر' p",today:"'ئەمڕۆ کاتژمێر' p",tomorrow:"'بەیانی کاتژمێر' p",nextWeek:"eeee 'کاتژمێر' p",other:"P"},lu={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["پ","د"],abbreviated:["پ-ز","د-ز"],wide:["پێش زاین","دوای زاین"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["چ1م","چ2م","چ3م","چ4م"],wide:["چارەگی یەکەم","چارەگی دووەم","چارەگی سێیەم","چارەگی چوارەم"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ک-د","ش","ئا","ن","م","ح","ت","ئا","ئە","تش-ی","تش-د","ک-ی"],abbreviated:["کان-دوو","شوب","ئاد","نیس","مایس","حوز","تەم","ئاب","ئەل","تش-یەک","تش-دوو","کان-یەک"],wide:["کانوونی دووەم","شوبات","ئادار","نیسان","مایس","حوزەیران","تەمموز","ئاب","ئەیلول","تشرینی یەکەم","تشرینی دووەم","کانوونی یەکەم"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ی-ش","د-ش","س-ش","چ-ش","پ-ش","هە","ش"],short:["یە-شە","دوو-شە","سێ-شە","چو-شە","پێ-شە","هەی","شە"],abbreviated:["یەک-شەم","دوو-شەم","سێ-شەم","چوار-شەم","پێنج-شەم","هەینی","شەمە"],wide:["یەک شەمە","دوو شەمە","سێ شەمە","چوار شەمە","پێنج شەمە","هەینی","شەمە"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"پ",pm:"د",midnight:"ن-ش",noon:"ن",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"},abbreviated:{am:"پ-ن",pm:"د-ن",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"},wide:{am:"پێش نیوەڕۆ",pm:"دوای نیوەڕۆ",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"}},defaultWidth:"wide",formattingValues:{narrow:{am:"پ",pm:"د",midnight:"ن-ش",noon:"ن",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"},abbreviated:{am:"پ-ن",pm:"د-ن",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"},wide:{am:"پێش نیوەڕۆ",pm:"دوای نیوەڕۆ",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"}},defaultFormattingWidth:"wide"})},uu={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(پ|د)/i,abbreviated:/^(پ-ز|د.ز)/i,wide:/^(پێش زاین| دوای زاین)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^د/g,/^پ/g]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^م[1234]چ/i,wide:/^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/چارەگی یەکەم/,/چارەگی دووەم/,/چارەگی سيیەم/,/چارەگی چوارەم/],any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i,abbreviated:/^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i,wide:/^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ک-د/i,/^ش/i,/^ئا/i,/^ن/i,/^م/i,/^ح/i,/^ت/i,/^ئا/i,/^ئە/i,/^تش-ی/i,/^تش-د/i,/^ک-ی/i],any:[/^کان-دوو/i,/^شوب/i,/^ئاد/i,/^نیس/i,/^مایس/i,/^حوز/i,/^تەم/i,/^ئاب/i,/^ئەل/i,/^تش-یەک/i,/^تش-دوو/i,/^|کان-یەک/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ش|ی|د|س|چ|پ|هە)/i,short:/^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i,abbreviated:/^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i,wide:/^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i,abbreviated:/^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/,wide:/^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/,any:/^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^د/i,pm:/^پ/i,midnight:/^ن-ش/i,noon:/^ن/i,morning:/بەیانی/i,afternoon:/دواینیوەڕۆ/i,evening:/ئێوارە/i,night:/شەو/i}},defaultParseWidth:"any"})},cu={code:"ckb",formatDistance:(e,t,n)=>{let r;const i=ou[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"لە ماوەی "+r+"دا":r+"پێش ئێستا":r},formatLong:au,formatRelative:(e,t,n,r)=>su[e],localize:lu,match:uu,options:{weekStartsOn:0,firstWeekContainsDate:1}},du={lessThanXSeconds:{one:{regular:"méně než 1 sekunda",past:"před méně než 1 sekundou",future:"za méně než 1 sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"1 sekunda",past:"před 1 sekundou",future:"za 1 sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než 1 minuta",past:"před méně než 1 minutou",future:"za méně než 1 minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"1 minuta",past:"před 1 minutou",future:"za 1 minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně 1 hodina",past:"přibližně před 1 hodinou",future:"přibližně za 1 hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"1 hodina",past:"před 1 hodinou",future:"za 1 hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"1 den",past:"před 1 dnem",future:"za 1 den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně 1 týden",past:"přibližně před 1 týdnem",future:"přibližně za 1 týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"1 týden",past:"před 1 týdnem",future:"za 1 týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně 1 měsíc",past:"přibližně před 1 měsícem",future:"přibližně za 1 měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"1 měsíc",past:"před 1 měsícem",future:"za 1 měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně 1 rok",past:"přibližně před 1 rokem",future:"přibližně za 1 rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"1 rok",past:"před 1 rokem",future:"za 1 rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než 1 rok",past:"před více než 1 rokem",future:"za více než 1 rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro 1 rok",past:"skoro před 1 rokem",future:"skoro za 1 rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},fu={date:jo({formats:{full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},hu=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],pu={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:e=>{const t=e.getDay();return"'v "+hu[t]+" o' p"},other:"P"},mu={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},defaultWidth:"wide",formattingValues:{narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},defaultFormattingWidth:"wide"})},gu={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p[řr]/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},defaultParseWidth:"any"})},vu={code:"cs",formatDistance:(e,t,n)=>{let r;const i=du[e];r="other"===i.type?i.other:1===t?i.one:t>1&&t<5?i.few:i.many;const o=!0===n?.addSuffix,a=n?.comparison;let s;return s=o&&-1===a?r.past:o&&1===a?r.future:r.regular,s.replace("{{count}}",String(t))},formatLong:fu,formatRelative:(e,t)=>{const n=pu[e];return"function"==typeof n?n(t):n},localize:mu,match:gu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Ou={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},yu={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},bu={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},wu={ordinalNumber:(e,t)=>{const n=Number(e);if(n<20)switch(n){case 0:case 7:case 8:case 9:case 10:case 12:case 15:case 18:return n+"fed";case 1:return n+"af";case 2:return n+"ail";case 3:case 4:return n+"ydd";case 5:case 6:return n+"ed";case 11:case 13:case 14:case 16:case 17:case 19:return n+"eg"}else if(n>=50&&n<=60||80===n||n>=100)return n+"fed";return n+"ain"},era:zo({values:{narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar ôl Crist"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},defaultWidth:"wide",formattingValues:{narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},defaultFormattingWidth:"wide"})},ku={ordinalNumber:Lo({matchPattern:/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},defaultParseWidth:"any"})},xu={code:"cy",formatDistance:(e,t,n)=>{let r;const i=Ou[e];return r="string"==typeof i?i:1===t?i.one:2===t&&i.two?i.two:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"mewn "+r:r+" yn ôl":r},formatLong:yu,formatRelative:(e,t,n,r)=>bu[e],localize:wu,match:ku,options:{weekStartsOn:0,firstWeekContainsDate:1}},_u={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},Su={date:jo({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Pu={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},Eu={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},Cu={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})},Tu={code:"da",formatDistance:(e,t,n)=>{let r;const i=_u[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},formatLong:Su,formatRelative:(e,t,n,r)=>Pu[e],localize:Eu,match:Cu,options:{weekStartsOn:1,firstWeekContainsDate:4}},$u={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},Qu=(e,t,n)=>{let r;const i=n?.addSuffix?$u[e].withPreposition:$u[e].standalone;return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},Ru={date:jo({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Au={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},ju=(e,t,n,r)=>Au[e],Du={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Mu={narrow:Du.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Du.wide},Iu={ordinalNumber:e=>Number(e)+".",era:zo({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:Du,formattingValues:Mu,defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},zu={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:No({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},Wu={code:"de",formatDistance:Qu,formatLong:Ru,formatRelative:ju,localize:Iu,match:zu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Nu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Lu={narrow:Nu.narrow,abbreviated:["Jän.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Nu.wide},Fu={code:"de-AT",formatDistance:Qu,formatLong:Ru,formatRelative:ju,localize:{ordinalNumber:e=>Number(e)+".",era:zo({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:Nu,formattingValues:Lu,defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:zu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Uu={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},Xu={date:jo({formats:{full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qu={lastWeek:e=>6===e.getDay()?"'το προηγούμενο' eeee 'στις' p":"'την προηγούμενη' eeee 'στις' p",yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},Bu={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;let i;return i="year"===r||"month"===r?"ος":"week"===r||"dayOfYear"===r||"day"===r||"hour"===r||"date"===r?"η":"ο",n+i},era:zo({values:{narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},defaultWidth:"wide",formattingValues:{narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},defaultWidth:"wide"})},Vu={ordinalNumber:Lo({matchPattern:/^(\d+)(ος|η|ο)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^π/i,/^(μ|κ)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},defaultParseWidth:"any"})},Yu={code:"el",formatDistance:(e,t,n)=>{let r;const i=Uu[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"σε "+r:r+" πριν":r},formatLong:Xu,formatRelative:(e,t)=>{const n=qu[e];return"function"==typeof n?n(t):n},localize:Bu,match:Vu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Zu={code:"en-AU",formatDistance:Ao,formatLong:{date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},Gu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},Hu={code:"en-CA",formatDistance:(e,t,n)=>{let r;const i=Gu[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:{date:jo({formats:{full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ku={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ju={code:"en-GB",formatDistance:Ao,formatLong:Ku,formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},ec={code:"en-IE",formatDistance:Ao,formatLong:Ku,formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},tc={code:"en-IN",formatDistance:Ao,formatLong:{date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM, yyyy",medium:"d MMM, yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},nc={code:"en-NZ",formatDistance:Ao,formatLong:{date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},rc={code:"en-ZA",formatDistance:Ao,formatLong:{date:jo({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:0,firstWeekContainsDate:1}},ic={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preskaŭ 1 jaro",other:"preskaŭ {{count}} jaroj"}},oc={date:jo({formats:{full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},ac={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hieraŭ je' p",today:"'hodiaŭ je' p",tomorrow:"'morgaŭ je' p",nextWeek:"eeee 'je' p",other:"P"},sc={ordinalNumber:e=>Number(e)+"-a",era:zo({values:{narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["antaŭ Komuna Erao","Komuna Erao"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","aŭg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","M","Ĵ","V","S"],short:["di","lu","ma","me","ĵa","ve","sa"],abbreviated:["dim","lun","mar","mer","ĵaŭ","ven","sab"],wide:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"antaŭtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},defaultWidth:"wide"})},lc={ordinalNumber:Lo({matchPattern:/^(\d+)(-?a)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^[kp]/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:"any"})},uc={code:"eo",formatDistance:(e,t,n)=>{let r;const i=ic[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n?.comparison&&n.comparison>0?"post "+r:"antaŭ "+r:r},formatLong:oc,formatRelative:(e,t,n,r)=>ac[e],localize:sc,match:lc,options:{weekStartsOn:1,firstWeekContainsDate:4}},cc={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},dc={date:jo({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},fc={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},hc={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},pc={ordinalNumber:(e,t)=>Number(e)+"º",era:zo({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},mc={ordinalNumber:Lo({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},gc={code:"es",formatDistance:(e,t,n)=>{let r;const i=cc[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},formatLong:dc,formatRelative:(e,t,n,r)=>1!==t.getHours()?hc[e]:fc[e],localize:pc,match:mc,options:{weekStartsOn:1,firstWeekContainsDate:1}},vc={lessThanXSeconds:{standalone:{one:"vähem kui üks sekund",other:"vähem kui {{count}} sekundit"},withPreposition:{one:"vähem kui ühe sekundi",other:"vähem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"üks sekund",other:"{{count}} sekundit"},withPreposition:{one:"ühe sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"vähem kui üks minut",other:"vähem kui {{count}} minutit"},withPreposition:{one:"vähem kui ühe minuti",other:"vähem kui {{count}} minuti"}},xMinutes:{standalone:{one:"üks minut",other:"{{count}} minutit"},withPreposition:{one:"ühe minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes üks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes ühe tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"üks tund",other:"{{count}} tundi"},withPreposition:{one:"ühe tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"üks päev",other:"{{count}} päeva"},withPreposition:{one:"ühe päeva",other:"{{count}} päeva"}},aboutXWeeks:{standalone:{one:"umbes üks nädal",other:"umbes {{count}} nädalat"},withPreposition:{one:"umbes ühe nädala",other:"umbes {{count}} nädala"}},xWeeks:{standalone:{one:"üks nädal",other:"{{count}} nädalat"},withPreposition:{one:"ühe nädala",other:"{{count}} nädala"}},aboutXMonths:{standalone:{one:"umbes üks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes ühe kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"üks kuu",other:"{{count}} kuud"},withPreposition:{one:"ühe kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes üks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes ühe aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"üks aasta",other:"{{count}} aastat"},withPreposition:{one:"ühe aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui üks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui ühe aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu üks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu ühe aasta",other:"peaaegu {{count}} aasta"}}},Oc={date:jo({formats:{full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},defaultWidth:"full"})},yc={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'täna kell' p",tomorrow:"'homme kell' p",nextWeek:"'järgmine' eeee 'kell' p",other:"P"},bc={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},wc={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["pühap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"]},kc={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise järgi"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:bc,defaultWidth:"wide",formattingValues:bc,defaultFormattingWidth:"wide"}),day:zo({values:wc,defaultWidth:"wide",formattingValues:wc,defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},abbreviated:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},wide:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},abbreviated:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},wide:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"}},defaultFormattingWidth:"wide"})},xc={ordinalNumber:Lo({matchPattern:/^\d+\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^(m|p)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},defaultParseWidth:"any"})},_c={code:"et",formatDistance:(e,t,n)=>{const r=n?.addSuffix?vc[e].withPreposition:vc[e].standalone;let i;return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?i+" pärast":i+" eest":i},formatLong:Oc,formatRelative:(e,t,n,r)=>yc[e],localize:kc,match:xc,options:{weekStartsOn:1,firstWeekContainsDate:4}},Sc={lessThanXSeconds:{one:"segundo bat baino gutxiago",other:"{{count}} segundo baino gutxiago"},xSeconds:{one:"1 segundo",other:"{{count}} segundo"},halfAMinute:"minutu erdi",lessThanXMinutes:{one:"minutu bat baino gutxiago",other:"{{count}} minutu baino gutxiago"},xMinutes:{one:"1 minutu",other:"{{count}} minutu"},aboutXHours:{one:"1 ordu gutxi gorabehera",other:"{{count}} ordu gutxi gorabehera"},xHours:{one:"1 ordu",other:"{{count}} ordu"},xDays:{one:"1 egun",other:"{{count}} egun"},aboutXWeeks:{one:"aste 1 inguru",other:"{{count}} aste inguru"},xWeeks:{one:"1 aste",other:"{{count}} astean"},aboutXMonths:{one:"1 hilabete gutxi gorabehera",other:"{{count}} hilabete gutxi gorabehera"},xMonths:{one:"1 hilabete",other:"{{count}} hilabete"},aboutXYears:{one:"1 urte gutxi gorabehera",other:"{{count}} urte gutxi gorabehera"},xYears:{one:"1 urte",other:"{{count}} urte"},overXYears:{one:"1 urte baino gehiago",other:"{{count}} urte baino gehiago"},almostXYears:{one:"ia 1 urte",other:"ia {{count}} urte"}},Pc={date:jo({formats:{full:"EEEE, y'ko' MMMM'ren' d'a' y'ren'",long:"y'ko' MMMM'ren' d'a'",medium:"y MMM d",short:"yy/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'tan' {{time}}",long:"{{date}} 'tan' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ec={lastWeek:"'joan den' eeee, LT",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},Cc={lastWeek:"'joan den' eeee, p",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},Tc={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["k.a.","k.o."],abbreviated:["k.a.","k.o."],wide:["kristo aurretik","kristo ondoren"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1H","2H","3H","4H"],wide:["1. hiruhilekoa","2. hiruhilekoa","3. hiruhilekoa","4. hiruhilekoa"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["u","o","m","a","m","e","u","a","i","u","a","a"],abbreviated:["urt","ots","mar","api","mai","eka","uzt","abu","ira","urr","aza","abe"],wide:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"]},defaultWidth:"wide"}),day:zo({values:{narrow:["i","a","a","a","o","o","l"],short:["ig","al","as","az","og","or","lr"],abbreviated:["iga","ast","ast","ast","ost","ost","lar"],wide:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"}},defaultFormattingWidth:"wide"})},$c={ordinalNumber:Lo({matchPattern:/^(\d+)(.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(k.a.|k.o.)/i,abbreviated:/^(k.a.|k.o.)/i,wide:/^(kristo aurretik|kristo ondoren)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^k.a./i,/^k.o./i],abbreviated:[/^(k.a.)/i,/^(k.o.)/i],wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i]},defaultParseWidth:"wide"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]H/i,wide:/^[1234](.)? hiruhilekoa/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[uomaei]/i,abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i,wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^u/i,/^o/i,/^m/i,/^a/i,/^m/i,/^e/i,/^u/i,/^a/i,/^i/i,/^u/i,/^a/i,/^a/i],any:[/^urt/i,/^ots/i,/^mar/i,/^api/i,/^mai/i,/^eka/i,/^uzt/i,/^abu/i,/^ira/i,/^urr/i,/^aza/i,/^abe/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[iaol]/i,short:/^(ig|al|as|az|og|or|lr)/i,abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i,wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^a/i,/^a/i,/^a/i,/^o/i,/^o/i,/^l/i],short:[/^ig/i,/^al/i,/^as/i,/^az/i,/^og/i,/^or/i,/^lr/i],abbreviated:[/^iga/i,/^ast/i,/^ast/i,/^ast/i,/^ost/i,/^ost/i,/^lar/i],wide:[/^igandea/i,/^astelehena/i,/^asteartea/i,/^asteazkena/i,/^osteguna/i,/^ostirala/i,/^larunbata/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i,any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a/i,pm:/^p/i,midnight:/^ge/i,noon:/^eg/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i},any:{am:/^a/i,pm:/^p/i,midnight:/^gauerdia/i,noon:/^eguerdia/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i}},defaultParseWidth:"any"})},Qc={code:"eu",formatDistance:(e,t,n)=>{let r;const i=Sc[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"duela "+r:r},formatLong:Pc,formatRelative:(e,t)=>1!==t.getHours()?Cc[e]:Ec[e],localize:Tc,match:$c,options:{weekStartsOn:1,firstWeekContainsDate:1}},Rc={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},Ac={date:jo({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jc={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},Dc={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultFormattingWidth:"wide"})},Mc={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:"any"})},Ic={code:"fa-IR",formatDistance:(e,t,n)=>{let r;const i=Rc[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"در "+r:r+" قبل":r},formatLong:Ac,formatRelative:(e,t,n,r)=>jc[e],localize:Dc,match:Mc,options:{weekStartsOn:6,firstWeekContainsDate:1}};function zc(e){return e.replace(/sekuntia?/,"sekunnin")}function Wc(e){return e.replace(/minuuttia?/,"minuutin")}function Nc(e){return e.replace(/tuntia?/,"tunnin")}function Lc(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function Fc(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function Uc(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}const Xc={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:zc},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:zc},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:e=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:Wc},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:Wc},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:Nc},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:Nc},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:function(e){return e.replace(/päivää?/,"päivän")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:Lc},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:Lc},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:Fc},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:Fc},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:Uc},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:Uc},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:Uc},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:Uc}},qc={date:jo({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Bc={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},Vc={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},Yc={narrow:Vc.narrow,abbreviated:Vc.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},Zc={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},Gc={narrow:Zc.narrow,short:Zc.short,abbreviated:Zc.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},Hc={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:Vc,defaultWidth:"wide",formattingValues:Yc,defaultFormattingWidth:"wide"}),day:zo({values:Zc,defaultWidth:"wide",formattingValues:Gc,defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},defaultWidth:"wide"})},Kc={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})},Jc={code:"fi",formatDistance:(e,t,n)=>{const r=Xc[e],i=1===t?r.one:r.other.replace("{{count}}",String(t));return n?.addSuffix?n.comparison&&n.comparison>0?r.futureTense(i)+" kuluttua":i+" sitten":i},formatLong:qc,formatRelative:(e,t,n,r)=>Bc[e],localize:Hc,match:Kc,options:{weekStartsOn:1,firstWeekContainsDate:4}},ed={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},td=(e,t,n)=>{let r;const i=ed[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},nd={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rd={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},id=(e,t,n,r)=>rd[e],od=["MMM","MMMM"],ad={preprocessor:(e,t)=>1===e.getDate()?t:t.some((e=>e.isToken&&od.includes(e.value)))?t.map((e=>e.isToken&&"do"===e.value?{isToken:!0,value:"d"}:e)):t,ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if(0===n)return"0";let i;return i=1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème",n+i},era:zo({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},sd={ordinalNumber:Lo({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:No({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},ld={code:"fr",formatDistance:td,formatLong:nd,formatRelative:id,localize:ad,match:sd,options:{weekStartsOn:1,firstWeekContainsDate:4}},ud={code:"fr-CA",formatDistance:td,formatLong:{date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:id,localize:ad,match:sd,options:{weekStartsOn:0,firstWeekContainsDate:1}},cd={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},dd={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"},fd={code:"fr-CH",formatDistance:td,formatLong:cd,formatRelative:(e,t,n,r)=>dd[e],localize:ad,match:sd,options:{weekStartsOn:1,firstWeekContainsDate:4}},hd={lessThanXSeconds:{one:"minder as 1 sekonde",other:"minder as {{count}} sekonden"},xSeconds:{one:"1 sekonde",other:"{{count}} sekonden"},halfAMinute:"oardel minút",lessThanXMinutes:{one:"minder as 1 minút",other:"minder as {{count}} minuten"},xMinutes:{one:"1 minút",other:"{{count}} minuten"},aboutXHours:{one:"sawat 1 oere",other:"sawat {{count}} oere"},xHours:{one:"1 oere",other:"{{count}} oere"},xDays:{one:"1 dei",other:"{{count}} dagen"},aboutXWeeks:{one:"sawat 1 wike",other:"sawat {{count}} wiken"},xWeeks:{one:"1 wike",other:"{{count}} wiken"},aboutXMonths:{one:"sawat 1 moanne",other:"sawat {{count}} moannen"},xMonths:{one:"1 moanne",other:"{{count}} moannen"},aboutXYears:{one:"sawat 1 jier",other:"sawat {{count}} jier"},xYears:{one:"1 jier",other:"{{count}} jier"},overXYears:{one:"mear as 1 jier",other:"mear as {{count}}s jier"},almostXYears:{one:"hast 1 jier",other:"hast {{count}} jier"}},pd={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},md={lastWeek:"'ôfrûne' eeee 'om' p",yesterday:"'juster om' p",today:"'hjoed om' p",tomorrow:"'moarn om' p",nextWeek:"eeee 'om' p",other:"P"},gd={ordinalNumber:(e,t)=>Number(e)+"e",era:zo({values:{narrow:["f.K.","n.K."],abbreviated:["f.Kr.","n.Kr."],wide:["foar Kristus","nei Kristus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e fearnsjier","2e fearnsjier","3e fearnsjier","4e fearnsjier"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mrt.","apr.","mai.","jun.","jul.","aug.","sep.","okt.","nov.","des."],wide:["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber"]},defaultWidth:"wide"}),day:zo({values:{narrow:["s","m","t","w","t","f","s"],short:["si","mo","ti","wo","to","fr","so"],abbreviated:["snein","moa","tii","woa","ton","fre","sneon"],wide:["snein","moandei","tiisdei","woansdei","tongersdei","freed","sneon"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"}},defaultWidth:"wide"})},vd={ordinalNumber:Lo({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([fn]\.? ?K\.?)/,abbreviated:/^([fn]\. ?Kr\.?)/,wide:/^((foar|nei) Kristus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/,/^n/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e fearnsjier/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i,wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^des/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtwf]/i,short:/^(si|mo|ti|wo|to|fr|so)/i,abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i,wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^sn/i,/^mo/i,/^ti/i,/^wo/i,/^to/i,/^fr/i,/^sn/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^middei/i,morning:/moarns/i,afternoon:/^middeis/i,evening:/jûns/i,night:/nachts/i}},defaultParseWidth:"any"})},Od={code:"fy",formatDistance:(e,t,n)=>{let r;const i=hd[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"oer "+r:r+" lyn":r},formatLong:pd,formatRelative:(e,t,n,r)=>md[e],localize:gd,match:vd,options:{weekStartsOn:1,firstWeekContainsDate:4}},yd={lessThanXSeconds:{one:"nas lugha na diog",other:"nas lugha na {{count}} diogan"},xSeconds:{one:"1 diog",two:"2 dhiog",twenty:"20 diog",other:"{{count}} diogan"},halfAMinute:"leth mhionaid",lessThanXMinutes:{one:"nas lugha na mionaid",other:"nas lugha na {{count}} mionaidean"},xMinutes:{one:"1 mionaid",two:"2 mhionaid",twenty:"20 mionaid",other:"{{count}} mionaidean"},aboutXHours:{one:"mu uair de thìde",other:"mu {{count}} uairean de thìde"},xHours:{one:"1 uair de thìde",two:"2 uair de thìde",twenty:"20 uair de thìde",other:"{{count}} uairean de thìde"},xDays:{one:"1 là",other:"{{count}} là"},aboutXWeeks:{one:"mu 1 seachdain",other:"mu {{count}} seachdainean"},xWeeks:{one:"1 seachdain",other:"{{count}} seachdainean"},aboutXMonths:{one:"mu mhìos",other:"mu {{count}} mìosan"},xMonths:{one:"1 mìos",other:"{{count}} mìosan"},aboutXYears:{one:"mu bhliadhna",other:"mu {{count}} bliadhnaichean"},xYears:{one:"1 bhliadhna",other:"{{count}} bliadhna"},overXYears:{one:"còrr is bliadhna",other:"còrr is {{count}} bliadhnaichean"},almostXYears:{one:"cha mhòr bliadhna",other:"cha mhòr {{count}} bliadhnaichean"}},bd={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'aig' {{time}}",long:"{{date}} 'aig' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},wd={lastWeek:"'mu dheireadh' eeee 'aig' p",yesterday:"'an-dè aig' p",today:"'an-diugh aig' p",tomorrow:"'a-màireach aig' p",nextWeek:"eeee 'aig' p",other:"P"},kd={ordinalNumber:e=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"d";case 2:return t+"na"}return 12===n?t+"na":t+"mh"},era:zo({values:{narrow:["R","A"],abbreviated:["RC","AD"],wide:["ro Chrìosta","anno domini"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["C1","C2","C3","C4"],wide:["a' chiad chairteal","an dàrna cairteal","an treas cairteal","an ceathramh cairteal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["F","G","M","G","C","Ò","I","L","S","D","S","D"],abbreviated:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],wide:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","C","A","H","S"],short:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],abbreviated:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],wide:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"}},defaultFormattingWidth:"wide"})},xd={ordinalNumber:Lo({matchPattern:/^(\d+)(d|na|tr|mh)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(r|a)/i,abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,wide:/^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^c[1234]/i,wide:/^[1234](cd|na|tr|mh)? cairteal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[fgmcòilsd]/i,abbreviated:/^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i,wide:/^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^f/i,/^g/i,/^m/i,/^g/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^s/i,/^d/i,/^s/i,/^d/i],any:[/^fa/i,/^ge/i,/^mà/i,/^gi/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^su/i,/^d/i,/^sa/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmcahs]/i,short:/^(dò|lu|mà|ci|ar|ha|sa)/i,abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i,wide:/^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i],any:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^m/i,pm:/^f/i,midnight:/^meadhan oidhche/i,noon:/^meadhan là/i,morning:/sa mhadainn/i,afternoon:/feasgar/i,evening:/feasgar/i,night:/air an oidhche/i}},defaultParseWidth:"any"})},_d={code:"gd",formatDistance:(e,t,n)=>{let r;const i=yd[e];return r="string"==typeof i?i:1===t?i.one:2===t&&i.two?i.two:20===t&&i.twenty?i.twenty:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"ann an "+r:"o chionn "+r:r},formatLong:bd,formatRelative:(e,t,n,r)=>wd[e],localize:kd,match:xd,options:{weekStartsOn:0,firstWeekContainsDate:1}},Sd={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"máis dun ano",other:"máis de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},Pd={date:jo({formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'ás' {{time}}",long:"{{date}} 'ás' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ed={lastWeek:"'o' eeee 'pasado á' LT",yesterday:"'onte á' p",today:"'hoxe á' p",tomorrow:"'mañá á' p",nextWeek:"eeee 'á' p",other:"P"},Cd={lastWeek:"'o' eeee 'pasado ás' p",yesterday:"'onte ás' p",today:"'hoxe ás' p",tomorrow:"'mañá ás' p",nextWeek:"eeee 'ás' p",other:"P"},Td={ordinalNumber:(e,t)=>Number(e)+"º",era:zo({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"]},defaultWidth:"wide"}),day:zo({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","mércores","xoves","venres","sábado"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañá",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"}},defaultFormattingWidth:"wide"})},$d={ordinalNumber:Lo({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},defaultParseWidth:"any"})},Qd={code:"gl",formatDistance:(e,t,n)=>{let r;const i=Sd[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hai "+r:r},formatLong:Pd,formatRelative:(e,t,n,r)=>1!==t.getHours()?Cd[e]:Ed[e],localize:Td,match:$d,options:{weekStartsOn:1,firstWeekContainsDate:1}},Rd={lessThanXSeconds:{one:"હમણાં",other:"​આશરે {{count}} સેકંડ"},xSeconds:{one:"1 સેકંડ",other:"{{count}} સેકંડ"},halfAMinute:"અડધી મિનિટ",lessThanXMinutes:{one:"આ મિનિટ",other:"​આશરે {{count}} મિનિટ"},xMinutes:{one:"1 મિનિટ",other:"{{count}} મિનિટ"},aboutXHours:{one:"​આશરે 1 કલાક",other:"​આશરે {{count}} કલાક"},xHours:{one:"1 કલાક",other:"{{count}} કલાક"},xDays:{one:"1 દિવસ",other:"{{count}} દિવસ"},aboutXWeeks:{one:"આશરે 1 અઠવાડિયું",other:"આશરે {{count}} અઠવાડિયા"},xWeeks:{one:"1 અઠવાડિયું",other:"{{count}} અઠવાડિયા"},aboutXMonths:{one:"આશરે 1 મહિનો",other:"આશરે {{count}} મહિના"},xMonths:{one:"1 મહિનો",other:"{{count}} મહિના"},aboutXYears:{one:"આશરે 1 વર્ષ",other:"આશરે {{count}} વર્ષ"},xYears:{one:"1 વર્ષ",other:"{{count}} વર્ષ"},overXYears:{one:"1 વર્ષથી વધુ",other:"{{count}} વર્ષથી વધુ"},almostXYears:{one:"લગભગ 1 વર્ષ",other:"લગભગ {{count}} વર્ષ"}},Ad={date:jo({formats:{full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},defaultWidth:"full"}),time:jo({formats:{full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},jd={lastWeek:"'પાછલા' eeee p",yesterday:"'ગઈકાલે' p",today:"'આજે' p",tomorrow:"'આવતીકાલે' p",nextWeek:"eeee p",other:"P"},Dd={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["ઈસપૂ","ઈસ"],abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."],wide:["ઈસવીસન પૂર્વે","ઈસવીસન"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1લો ત્રિમાસ","2જો ત્રિમાસ","3જો ત્રિમાસ","4થો ત્રિમાસ"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["જા","ફે","મા","એ","મે","જૂ","જુ","ઓ","સ","ઓ","ન","ડિ"],abbreviated:["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઓક્ટો","નવે","ડિસે"],wide:["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઇ","ઓગસ્ટ","સપ્ટેમ્બર","ઓક્ટોબર","નવેમ્બર","ડિસેમ્બર"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ર","સો","મં","બુ","ગુ","શુ","શ"],short:["ર","સો","મં","બુ","ગુ","શુ","શ"],abbreviated:["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],wide:["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બ.",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},defaultFormattingWidth:"wide"})},Md={ordinalNumber:Lo({matchPattern:/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ઈસપૂ/i,/^ઈસ/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},defaultParseWidth:"any"})},Id={code:"gu",formatDistance:(e,t,n)=>{let r;const i=Rd[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"માં":r+" પહેલાં":r},formatLong:Ad,formatRelative:(e,t,n,r)=>jd[e],localize:Dd,match:Md,options:{weekStartsOn:1,firstWeekContainsDate:4}},zd={lessThanXSeconds:{one:"פחות משנייה",two:"פחות משתי שניות",other:"פחות מ־{{count}} שניות"},xSeconds:{one:"שנייה",two:"שתי שניות",other:"{{count}} שניות"},halfAMinute:"חצי דקה",lessThanXMinutes:{one:"פחות מדקה",two:"פחות משתי דקות",other:"פחות מ־{{count}} דקות"},xMinutes:{one:"דקה",two:"שתי דקות",other:"{{count}} דקות"},aboutXHours:{one:"כשעה",two:"כשעתיים",other:"כ־{{count}} שעות"},xHours:{one:"שעה",two:"שעתיים",other:"{{count}} שעות"},xDays:{one:"יום",two:"יומיים",other:"{{count}} ימים"},aboutXWeeks:{one:"כשבוע",two:"כשבועיים",other:"כ־{{count}} שבועות"},xWeeks:{one:"שבוע",two:"שבועיים",other:"{{count}} שבועות"},aboutXMonths:{one:"כחודש",two:"כחודשיים",other:"כ־{{count}} חודשים"},xMonths:{one:"חודש",two:"חודשיים",other:"{{count}} חודשים"},aboutXYears:{one:"כשנה",two:"כשנתיים",other:"כ־{{count}} שנים"},xYears:{one:"שנה",two:"שנתיים",other:"{{count}} שנים"},overXYears:{one:"יותר משנה",two:"יותר משנתיים",other:"יותר מ־{{count}} שנים"},almostXYears:{one:"כמעט שנה",two:"כמעט שנתיים",other:"כמעט {{count}} שנים"}},Wd={date:jo({formats:{full:"EEEE, d בMMMM y",long:"d בMMMM y",medium:"d בMMM y",short:"d.M.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'בשעה' {{time}}",long:"{{date}} 'בשעה' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Nd={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"},Ld={ordinalNumber:(e,t)=>{const n=Number(e);if(n<=0||n>10)return String(n);const r=String(t?.unit),i=n-1;return["year","hour","minute","second"].indexOf(r)>=0?["ראשונה","שנייה","שלישית","רביעית","חמישית","שישית","שביעית","שמינית","תשיעית","עשירית"][i]:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שביעי","שמיני","תשיעי","עשירי"][i]},era:zo({values:{narrow:["לפנה״ס","לספירה"],abbreviated:["לפנה״ס","לספירה"],wide:["לפני הספירה","לספירה"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["רבעון 1","רבעון 2","רבעון 3","רבעון 4"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},defaultWidth:"wide"}),day:zo({values:{narrow:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],short:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],abbreviated:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"}},defaultWidth:"wide",formattingValues:{narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"בצהריים",evening:"בערב",night:"בלילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"}},defaultFormattingWidth:"wide"})},Fd=["רא","שנ","של","רב","ח","שי","שב","שמ","ת","ע"],Ud={ordinalNumber:Lo({matchPattern:/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,parsePattern:/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,valueCallback:e=>{const t=parseInt(e,10);return isNaN(t)?Fd.indexOf(e)+1:t}}),era:No({matchPatterns:{narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^לפ/i,/^לס/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},defaultMatchWidth:"wide",parsePatterns:{abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},defaultParseWidth:"any"})},Xd={code:"he",formatDistance:(e,t,n)=>{if("xDays"===e&&n?.addSuffix&&t<=2)return n.comparison&&n.comparison>0?1===t?"מחר":"מחרתיים":1===t?"אתמול":"שלשום";let r;const i=zd[e];return r="string"==typeof i?i:1===t?i.one:2===t?i.two:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"בעוד "+r:"לפני "+r:r},formatLong:Wd,formatRelative:(e,t,n,r)=>Nd[e],localize:Ld,match:Ud,options:{weekStartsOn:0,firstWeekContainsDate:1}},qd={locale:{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},number:{"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"}};function Bd(e){return e.toString().replace(/\d/g,(function(e){return qd.locale[e]}))}const Vd={ordinalNumber:(e,t)=>Bd(Number(e)),era:zo({values:{narrow:["ईसा-पूर्व","ईस्वी"],abbreviated:["ईसा-पूर्व","ईस्वी"],wide:["ईसा-पूर्व","ईसवी सन"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ति1","ति2","ति3","ति4"],wide:["पहली तिमाही","दूसरी तिमाही","तीसरी तिमाही","चौथी तिमाही"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ज","फ़","मा","अ","मई","जू","जु","अग","सि","अक्टू","न","दि"],abbreviated:["जन","फ़र","मार्च","अप्रैल","मई","जून","जुल","अग","सित","अक्टू","नव","दिस"],wide:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},defaultWidth:"wide"}),day:zo({values:{narrow:["र","सो","मं","बु","गु","शु","श"],short:["र","सो","मं","बु","गु","शु","श"],abbreviated:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],wide:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},defaultWidth:"wide",formattingValues:{narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},defaultFormattingWidth:"wide"})},Yd={lessThanXSeconds:{one:"१ सेकंड से कम",other:"{{count}} सेकंड से कम"},xSeconds:{one:"१ सेकंड",other:"{{count}} सेकंड"},halfAMinute:"आधा मिनट",lessThanXMinutes:{one:"१ मिनट से कम",other:"{{count}} मिनट से कम"},xMinutes:{one:"१ मिनट",other:"{{count}} मिनट"},aboutXHours:{one:"लगभग १ घंटा",other:"लगभग {{count}} घंटे"},xHours:{one:"१ घंटा",other:"{{count}} घंटे"},xDays:{one:"१ दिन",other:"{{count}} दिन"},aboutXWeeks:{one:"लगभग १ सप्ताह",other:"लगभग {{count}} सप्ताह"},xWeeks:{one:"१ सप्ताह",other:"{{count}} सप्ताह"},aboutXMonths:{one:"लगभग १ महीना",other:"लगभग {{count}} महीने"},xMonths:{one:"१ महीना",other:"{{count}} महीने"},aboutXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"},xYears:{one:"१ वर्ष",other:"{{count}} वर्ष"},overXYears:{one:"१ वर्ष से अधिक",other:"{{count}} वर्ष से अधिक"},almostXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"}},Zd={date:jo({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Gd={lastWeek:"'पिछले' eeee p",yesterday:"'कल' p",today:"'आज' p",tomorrow:"'कल' p",nextWeek:"eeee 'को' p",other:"P"},Hd={code:"hi",formatDistance:(e,t,n)=>{let r;const i=Yd[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",Bd(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"मे ":r+" पहले":r},formatLong:Zd,formatRelative:(e,t,n,r)=>Gd[e],localize:Vd,match:{ordinalNumber:Lo({matchPattern:/^[०१२३४५६७८९]+/i,parsePattern:/^[०१२३४५६७८९]+/i,valueCallback:function(e){const t=e.toString().replace(/[१२३४५६७८९०]/g,(function(e){return qd.number[e]}));return Number(t)}}),era:No({matchPatterns:{narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:4}},Kd={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Jd={date:jo({formats:{full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ef={lastWeek:e=>{switch(e.getDay()){case 0:return"'prošlu nedjelju u' p";case 3:return"'prošlu srijedu u' p";case 6:return"'prošlu subotu u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'jučer u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'iduću nedjelju u' p";case 3:return"'iduću srijedu u' p";case 6:return"'iduću subotu u' p";default:return"'prošli' EEEE 'u' p"}},other:"P"},tf={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sri","čet","pet","sub"],abbreviated:["ned","pon","uto","sri","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},defaultFormattingWidth:"wide"})},nf={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:"wide"}),day:No({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})},rf={code:"hr",formatDistance:(e,t,n)=>{let r;const i=Kd[e];return r="string"==typeof i?i:1===t?n?.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?i.dual.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"za "+r:"prije "+r:r},formatLong:Jd,formatRelative:(e,t,n,r)=>{const i=ef[e];return"function"==typeof i?i(t):i},localize:tf,match:nf,options:{weekStartsOn:1,firstWeekContainsDate:1}},of={lessThanXSeconds:{one:"mwens pase yon segond",other:"mwens pase {{count}} segond"},xSeconds:{one:"1 segond",other:"{{count}} segond"},halfAMinute:"30 segond",lessThanXMinutes:{one:"mwens pase yon minit",other:"mwens pase {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"anviwon inè",other:"anviwon {{count}} è"},xHours:{one:"1 lè",other:"{{count}} lè"},xDays:{one:"1 jou",other:"{{count}} jou"},aboutXWeeks:{one:"anviwon 1 semèn",other:"anviwon {{count}} semèn"},xWeeks:{one:"1 semèn",other:"{{count}} semèn"},aboutXMonths:{one:"anviwon 1 mwa",other:"anviwon {{count}} mwa"},xMonths:{one:"1 mwa",other:"{{count}} mwa"},aboutXYears:{one:"anviwon 1 an",other:"anviwon {{count}} an"},xYears:{one:"1 an",other:"{{count}} an"},overXYears:{one:"plis pase 1 an",other:"plis pase {{count}} an"},almostXYears:{one:"prèske 1 an",other:"prèske {{count}} an"}},af={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'nan lè' {{time}}",long:"{{date}} 'nan lè' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},sf={lastWeek:"eeee 'pase nan lè' p",yesterday:"'yè nan lè' p",today:"'jodi a' p",tomorrow:"'demen nan lè' p'",nextWeek:"eeee 'pwochen nan lè' p",other:"P"},lf={ordinalNumber:(e,t)=>{const n=Number(e);return 0===n?String(n):n+(1===n?"ye":"yèm")},era:zo({values:{narrow:["av. J.-K","ap. J.-K"],abbreviated:["av. J.-K","ap. J.-K"],wide:["anvan Jezi Kris","apre Jezi Kris"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1ye trim.","2yèm trim.","3yèm trim.","4yèm trim."],wide:["1ye trimès","2yèm trimès","3yèm trimès","4yèm trimès"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["janv.","fevr.","mas","avr.","me","jen","jiyè","out","sept.","okt.","nov.","des."],wide:["janvye","fevrye","mas","avril","me","jen","jiyè","out","septanm","oktòb","novanm","desanm"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","M","J","V","S"],short:["di","le","ma","mè","je","va","sa"],abbreviated:["dim.","len.","mad.","mèk.","jed.","van.","sam."],wide:["dimanch","lendi","madi","mèkredi","jedi","vandredi","samdi"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"swa",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"maten",afternoon:"aprèmidi",evening:"swa",night:"maten"},wide:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"nan maten",afternoon:"nan aprèmidi",evening:"nan aswè",night:"nan maten"}},defaultWidth:"wide"})},uf={ordinalNumber:Lo({matchPattern:/^(\d+)(ye|yèm)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,wide:/^(avan Jezi Kris|apre Jezi Kris)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](ye|yèm)? trimès/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i,wide:/^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^av/i,/^me/i,/^je/i,/^ji/i,/^ou/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|le|ma|me|je|va|sa)/i,abbreviated:/^(dim|len|mad|mèk|jed|van|sam)\.?/i,wide:/^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^le/i,/^ma/i,/^mè/i,/^je/i,/^va/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,any:/^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/sw/i,night:/nwit/i}},defaultParseWidth:"any"})},cf={code:"ht",formatDistance:(e,t,n)=>{let r;const i=of[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"nan "+r:"sa fè "+r:r},formatLong:af,formatRelative:(e,t,n,r)=>sf[e],localize:lf,match:uf,options:{weekStartsOn:1,firstWeekContainsDate:4}},df={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},ff={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},hf={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},pf={date:jo({formats:{full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},mf=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function gf(e){return t=>{const n=mf[t.getDay()];return`${e?"":"'múlt' "}'${n}' p'-kor'`}}const vf={lastWeek:gf(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:gf(!0),other:"P"},Of={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},defaultWidth:"wide",argumentCallback:e=>e-1,formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},defaultFormattingWidth:"wide"}),month:zo({values:{narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},defaultWidth:"wide"})},yf={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},defaultParseWidth:"any"})},bf={code:"hu",formatDistance:(e,t,n)=>{const r=e.match(/about|over|almost|lessthan/i),i=r?e.replace(r[0],""):e,o=!0===n?.addSuffix,a=i.toLowerCase(),s=o?hf[a][n?.comparison||0]:ff[a];let l="halfaminute"===a?s:t+s;if(r){const e=r[0].toLowerCase();l=df[e]+" "+l}return l},formatLong:pf,formatRelative:(e,t)=>{const n=vf[e];return"function"==typeof n?n(t):n},localize:Of,match:yf,options:{weekStartsOn:1,firstWeekContainsDate:4}},wf={lessThanXSeconds:{one:"ավելի քիչ քան 1 վայրկյան",other:"ավելի քիչ քան {{count}} վայրկյան"},xSeconds:{one:"1 վայրկյան",other:"{{count}} վայրկյան"},halfAMinute:"կես րոպե",lessThanXMinutes:{one:"ավելի քիչ քան 1 րոպե",other:"ավելի քիչ քան {{count}} րոպե"},xMinutes:{one:"1 րոպե",other:"{{count}} րոպե"},aboutXHours:{one:"մոտ 1 ժամ",other:"մոտ {{count}} ժամ"},xHours:{one:"1 ժամ",other:"{{count}} ժամ"},xDays:{one:"1 օր",other:"{{count}} օր"},aboutXWeeks:{one:"մոտ 1 շաբաթ",other:"մոտ {{count}} շաբաթ"},xWeeks:{one:"1 շաբաթ",other:"{{count}} շաբաթ"},aboutXMonths:{one:"մոտ 1 ամիս",other:"մոտ {{count}} ամիս"},xMonths:{one:"1 ամիս",other:"{{count}} ամիս"},aboutXYears:{one:"մոտ 1 տարի",other:"մոտ {{count}} տարի"},xYears:{one:"1 տարի",other:"{{count}} տարի"},overXYears:{one:"ավելի քան 1 տարի",other:"ավելի քան {{count}} տարի"},almostXYears:{one:"համարյա 1 տարի",other:"համարյա {{count}} տարի"}},kf={date:jo({formats:{full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'ժ․'{{time}}",long:"{{date}} 'ժ․'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},xf={lastWeek:"'նախորդ' eeee p'֊ին'",yesterday:"'երեկ' p'֊ին'",today:"'այսօր' p'֊ին'",tomorrow:"'վաղը' p'֊ին'",nextWeek:"'հաջորդ' eeee p'֊ին'",other:"P"},_f={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;return r<10&&r%10==1?n+"֊ին":n+"֊րդ"},era:zo({values:{narrow:["Ք","Մ"],abbreviated:["ՔԱ","ՄԹ"],wide:["Քրիստոսից առաջ","Մեր թվարկության"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Ք1","Ք2","Ք3","Ք4"],wide:["1֊ին քառորդ","2֊րդ քառորդ","3֊րդ քառորդ","4֊րդ քառորդ"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],abbreviated:["հուն","փետ","մար","ապր","մայ","հուն","հուլ","օգս","սեպ","հոկ","նոյ","դեկ"],wide:["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],short:["կր","եր","եք","չք","հգ","ուր","շբ"],abbreviated:["կիր","երկ","երք","չոր","հնգ","ուրբ","շաբ"],wide:["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"}},defaultFormattingWidth:"wide"})},Sf={ordinalNumber:Lo({matchPattern:/^(\d+)((-|֊)?(ին|րդ))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ք/i,/^մ/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},defaultParseWidth:"any"})},Pf={code:"hy",formatDistance:(e,t,n)=>{let r;const i=wf[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" հետո":r+" առաջ":r},formatLong:kf,formatRelative:(e,t,n,r)=>xf[e],localize:_f,match:Sf,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ef={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Cf={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Tf={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},$f={ordinalNumber:(e,t)=>"ke-"+Number(e),era:zo({values:{narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},defaultFormattingWidth:"wide"})},Qf={ordinalNumber:Lo({matchPattern:/^ke-(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^(m|e)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},defaultParseWidth:"any"})},Rf={code:"id",formatDistance:(e,t,n)=>{let r;const i=Ef[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+r:r+" yang lalu":r},formatLong:Cf,formatRelative:(e,t,n,r)=>Tf[e],localize:$f,match:Qf,options:{weekStartsOn:1,firstWeekContainsDate:1}},Af={lessThanXSeconds:{one:"minna en 1 sekúnda",other:"minna en {{count}} sekúndur"},xSeconds:{one:"1 sekúnda",other:"{{count}} sekúndur"},halfAMinute:"hálf mínúta",lessThanXMinutes:{one:"minna en 1 mínúta",other:"minna en {{count}} mínútur"},xMinutes:{one:"1 mínúta",other:"{{count}} mínútur"},aboutXHours:{one:"u.þ.b. 1 klukkustund",other:"u.þ.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.þ.b. 1 mánuður",other:"u.þ.b. {{count}} mánuðir"},xMonths:{one:"1 mánuður",other:"{{count}} mánuðir"},aboutXYears:{one:"u.þ.b. 1 ár",other:"u.þ.b. {{count}} ár"},xYears:{one:"1 ár",other:"{{count}} ár"},overXYears:{one:"meira en 1 ár",other:"meira en {{count}} ár"},almostXYears:{one:"næstum 1 ár",other:"næstum {{count}} ár"}},jf={date:jo({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Df={lastWeek:"'síðasta' dddd 'kl.' p",yesterday:"'í gær kl.' p",today:"'í dag kl.' p",tomorrow:"'á morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},Mf={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fjórðungur","2. fjórðungur","3. fjórðungur","4. fjórðungur"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","Á","S","Ó","N","D"],abbreviated:["jan.","feb.","mars","apríl","maí","júní","júlí","ágúst","sept.","okt.","nóv.","des."],wide:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","Þ","M","F","F","L"],short:["Su","Má","Þr","Mi","Fi","Fö","La"],abbreviated:["sun.","mán.","þri.","mið.","fim.","fös.","lau."],wide:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"f",pm:"e",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"f",pm:"e",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"}},defaultFormattingWidth:"wide"})},If={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+(\.)?/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},defaultParseWidth:"any"})},zf={code:"is",formatDistance:(e,t,n)=>{let r;const i=Af[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"í "+r:r+" síðan":r},formatLong:jf,formatRelative:(e,t,n,r)=>Df[e],localize:Mf,match:If,options:{weekStartsOn:1,firstWeekContainsDate:4}},Wf={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Nf=(e,t,n)=>{let r;const i=Wf[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},Lf={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ff=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Uf(e){return"'"+Ff[e]+" alle' p"}const Xf={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?Uf(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Ff[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?Uf(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Ff[e]+" prossimo alle' p"}(r)},other:"P"},qf=(e,t,n,r)=>{const i=Xf[e];return"function"==typeof i?i(t,n,r):i},Bf={ordinalNumber:(e,t)=>{const n=Number(e);return String(n)},era:zo({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},Vf={ordinalNumber:Lo({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},Yf={code:"it",formatDistance:Nf,formatLong:Lf,formatRelative:qf,localize:Bf,match:Vf,options:{weekStartsOn:1,firstWeekContainsDate:4}},Zf={code:"it-CH",formatDistance:Nf,formatLong:{date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},formatRelative:qf,localize:Bf,match:Vf,options:{weekStartsOn:1,firstWeekContainsDate:4}},Gf={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Hf={date:jo({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Kf={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Jf={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"year":return`${n}年`;case"quarter":return`第${n}四半期`;case"month":return`${n}月`;case"week":return`第${n}週`;case"date":return`${n}日`;case"hour":return`${n}時`;case"minute":return`${n}分`;case"second":return`${n}秒`;default:return`${n}`}},era:zo({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:zo({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},eh={ordinalNumber:Lo({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},th={code:"ja",formatDistance:(e,t,n)=>{let r;n=n||{};const i=Gf[e];return r="string"==typeof i?i:1===t?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+"後":r+"前":r},formatLong:Hf,formatRelative:(e,t,n,r)=>Kf[e],localize:Jf,match:eh,options:{weekStartsOn:0,firstWeekContainsDate:1}},nh={lessThanXSeconds:{one:"1びょうみまん",other:"{{count}}びょうみまん",oneWithSuffix:"やく1びょう",otherWithSuffix:"やく{{count}}びょう"},xSeconds:{one:"1びょう",other:"{{count}}びょう"},halfAMinute:"30びょう",lessThanXMinutes:{one:"1ぷんみまん",other:"{{count}}ふんみまん",oneWithSuffix:"やく1ぷん",otherWithSuffix:"やく{{count}}ふん"},xMinutes:{one:"1ぷん",other:"{{count}}ふん"},aboutXHours:{one:"やく1じかん",other:"やく{{count}}じかん"},xHours:{one:"1じかん",other:"{{count}}じかん"},xDays:{one:"1にち",other:"{{count}}にち"},aboutXWeeks:{one:"やく1しゅうかん",other:"やく{{count}}しゅうかん"},xWeeks:{one:"1しゅうかん",other:"{{count}}しゅうかん"},aboutXMonths:{one:"やく1かげつ",other:"やく{{count}}かげつ"},xMonths:{one:"1かげつ",other:"{{count}}かげつ"},aboutXYears:{one:"やく1ねん",other:"やく{{count}}ねん"},xYears:{one:"1ねん",other:"{{count}}ねん"},overXYears:{one:"1ねんいじょう",other:"{{count}}ねんいじょう"},almostXYears:{one:"1ねんちかく",other:"{{count}}ねんちかく"}},rh={date:jo({formats:{full:"yねんMがつdにちEEEE",long:"yねんMがつdにち",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"Hじmmふんssびょう zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ih={lastWeek:"せんしゅうのeeeeのp",yesterday:"きのうのp",today:"きょうのp",tomorrow:"あしたのp",nextWeek:"よくしゅうのeeeeのp",other:"P"},oh={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"year":return`${n}ねん`;case"quarter":return`だい${n}しはんき`;case"month":return`${n}がつ`;case"week":return`だい${n}しゅう`;case"date":return`${n}にち`;case"hour":return`${n}じ`;case"minute":return`${n}ふん`;case"second":return`${n}びょう`;default:return`${n}`}},era:zo({values:{narrow:["BC","AC"],abbreviated:["きげんぜん","せいれき"],wide:["きげんぜん","せいれき"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["だい1しはんき","だい2しはんき","だい3しはんき","だい4しはんき"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1がつ","2がつ","3がつ","4がつ","5がつ","6がつ","7がつ","8がつ","9がつ","10がつ","11がつ","12がつ"],wide:["1がつ","2がつ","3がつ","4がつ","5がつ","6がつ","7がつ","8がつ","9がつ","10がつ","11がつ","12がつ"]},defaultWidth:"wide"}),day:zo({values:{narrow:["にち","げつ","か","すい","もく","きん","ど"],short:["にち","げつ","か","すい","もく","きん","ど"],abbreviated:["にち","げつ","か","すい","もく","きん","ど"],wide:["にちようび","げつようび","かようび","すいようび","もくようび","きんようび","どようび"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},abbreviated:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},wide:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},abbreviated:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},wide:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"}},defaultFormattingWidth:"wide"})},ah={ordinalNumber:Lo({matchPattern:/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(きげん[前後]|せいれき)/i,wide:/^(きげん[前後]|せいれき)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(きげんぜん)/i,/^(せいれき|きげんご)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^だい[1234一二三四1234]しはんき/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])がつ/i,wide:/^([123456789]|1[012])がつ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(にち|げつ|か|すい|もく|きん|ど)/,short:/^(にち|げつ|か|すい|もく|きん|ど)/,abbreviated:/^(にち|げつ|か|すい|もく|きん|ど)/,wide:/^(にち|げつ|か|すい|もく|きん|ど)ようび/},defaultMatchWidth:"wide",parsePatterns:{any:[/^にち/,/^げつ/,/^か/,/^すい/,/^もく/,/^きん/,/^ど/]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|ごぜん)/i,pm:/^(P|ごご)/i,midnight:/^しんや|まよなか/i,noon:/^しょうご/i,morning:/^あさ/i,afternoon:/^ごご/i,evening:/^よる/i,night:/^しんや/i}},defaultParseWidth:"any"})},sh={code:"ja-Hira",formatDistance:(e,t,n)=>{let r;n=n||{};const i=nh[e];return r="string"==typeof i?i:1===t?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+"あと":r+"まえ":r},formatLong:rh,formatRelative:(e,t,n,r)=>ih[e],localize:oh,match:ah,options:{weekStartsOn:0,firstWeekContainsDate:1}},lh={lessThanXSeconds:{past:"{{count}} წამზე ნაკლები ხნის წინ",present:"{{count}} წამზე ნაკლები",future:"{{count}} წამზე ნაკლებში"},xSeconds:{past:"{{count}} წამის წინ",present:"{{count}} წამი",future:"{{count}} წამში"},halfAMinute:{past:"ნახევარი წუთის წინ",present:"ნახევარი წუთი",future:"ნახევარი წუთში"},lessThanXMinutes:{past:"{{count}} წუთზე ნაკლები ხნის წინ",present:"{{count}} წუთზე ნაკლები",future:"{{count}} წუთზე ნაკლებში"},xMinutes:{past:"{{count}} წუთის წინ",present:"{{count}} წუთი",future:"{{count}} წუთში"},aboutXHours:{past:"დაახლოებით {{count}} საათის წინ",present:"დაახლოებით {{count}} საათი",future:"დაახლოებით {{count}} საათში"},xHours:{past:"{{count}} საათის წინ",present:"{{count}} საათი",future:"{{count}} საათში"},xDays:{past:"{{count}} დღის წინ",present:"{{count}} დღე",future:"{{count}} დღეში"},aboutXWeeks:{past:"დაახლოებით {{count}} კვირას წინ",present:"დაახლოებით {{count}} კვირა",future:"დაახლოებით {{count}} კვირაში"},xWeeks:{past:"{{count}} კვირას კვირა",present:"{{count}} კვირა",future:"{{count}} კვირაში"},aboutXMonths:{past:"დაახლოებით {{count}} თვის წინ",present:"დაახლოებით {{count}} თვე",future:"დაახლოებით {{count}} თვეში"},xMonths:{past:"{{count}} თვის წინ",present:"{{count}} თვე",future:"{{count}} თვეში"},aboutXYears:{past:"დაახლოებით {{count}} წლის წინ",present:"დაახლოებით {{count}} წელი",future:"დაახლოებით {{count}} წელში"},xYears:{past:"{{count}} წლის წინ",present:"{{count}} წელი",future:"{{count}} წელში"},overXYears:{past:"{{count}} წელზე მეტი ხნის წინ",present:"{{count}} წელზე მეტი",future:"{{count}} წელზე მეტი ხნის შემდეგ"},almostXYears:{past:"თითქმის {{count}} წლის წინ",present:"თითქმის {{count}} წელი",future:"თითქმის {{count}} წელში"}},uh={date:jo({formats:{full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}'-ზე'",long:"{{date}} {{time}}'-ზე'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ch={lastWeek:"'წინა' eeee p'-ზე'",yesterday:"'გუშინ' p'-ზე'",today:"'დღეს' p'-ზე'",tomorrow:"'ხვალ' p'-ზე'",nextWeek:"'შემდეგი' eeee p'-ზე'",other:"P"},dh={ordinalNumber:e=>{const t=Number(e);return 1===t?t+"-ლი":t+"-ე"},era:zo({values:{narrow:["ჩ.წ-მდე","ჩ.წ"],abbreviated:["ჩვ.წ-მდე","ჩვ.წ"],wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ლი კვ","2-ე კვ","3-ე კვ","4-ე კვ"],wide:["1-ლი კვარტალი","2-ე კვარტალი","3-ე კვარტალი","4-ე კვარტალი"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ია","თე","მა","აპ","მს","ვნ","ვლ","აგ","სე","ოქ","ნო","დე"],abbreviated:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],wide:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},defaultWidth:"wide"}),day:zo({values:{narrow:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],short:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],abbreviated:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],wide:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"}},defaultFormattingWidth:"wide"})},fh={ordinalNumber:Lo({matchPattern:/^(\d+)(-ლი|-ე)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},defaultMatchWidth:"any",parsePatterns:{any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},defaultParseWidth:"any"})},hh={code:"ka",formatDistance:(e,t,n)=>{let r;const i=lh[e];return r="string"==typeof i?i:n?.addSuffix&&n.comparison&&n.comparison>0?i.future.replace("{{count}}",String(t)):n?.addSuffix?i.past.replace("{{count}}",String(t)):i.present.replace("{{count}}",String(t)),r},formatLong:uh,formatRelative:(e,t,n,r)=>ch[e],localize:dh,match:fh,options:{weekStartsOn:1,firstWeekContainsDate:1}},ph={lessThanXSeconds:{regular:{one:"1 секундтан аз",singularNominative:"{{count}} секундтан аз",singularGenitive:"{{count}} секундтан аз",pluralGenitive:"{{count}} секундтан аз"},future:{one:"бір секундтан кейін",singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},xSeconds:{regular:{singularNominative:"{{count}} секунд",singularGenitive:"{{count}} секунд",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунд бұрын",singularGenitive:"{{count}} секунд бұрын",pluralGenitive:"{{count}} секунд бұрын"},future:{singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},halfAMinute:e=>e?.addSuffix?e.comparison&&e.comparison>0?"жарты минут ішінде":"жарты минут бұрын":"жарты минут",lessThanXMinutes:{regular:{one:"1 минуттан аз",singularNominative:"{{count}} минуттан аз",singularGenitive:"{{count}} минуттан аз",pluralGenitive:"{{count}} минуттан аз"},future:{one:"минуттан кем ",singularNominative:"{{count}} минуттан кем",singularGenitive:"{{count}} минуттан кем",pluralGenitive:"{{count}} минуттан кем"}},xMinutes:{regular:{singularNominative:"{{count}} минут",singularGenitive:"{{count}} минут",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минут бұрын",singularGenitive:"{{count}} минут бұрын",pluralGenitive:"{{count}} минут бұрын"},future:{singularNominative:"{{count}} минуттан кейін",singularGenitive:"{{count}} минуттан кейін",pluralGenitive:"{{count}} минуттан кейін"}},aboutXHours:{regular:{singularNominative:"шамамен {{count}} сағат",singularGenitive:"шамамен {{count}} сағат",pluralGenitive:"шамамен {{count}} сағат"},future:{singularNominative:"шамамен {{count}} сағаттан кейін",singularGenitive:"шамамен {{count}} сағаттан кейін",pluralGenitive:"шамамен {{count}} сағаттан кейін"}},xHours:{regular:{singularNominative:"{{count}} сағат",singularGenitive:"{{count}} сағат",pluralGenitive:"{{count}} сағат"}},xDays:{regular:{singularNominative:"{{count}} күн",singularGenitive:"{{count}} күн",pluralGenitive:"{{count}} күн"},future:{singularNominative:"{{count}} күннен кейін",singularGenitive:"{{count}} күннен кейін",pluralGenitive:"{{count}} күннен кейін"}},aboutXWeeks:{type:"weeks",one:"шамамен 1 апта",other:"шамамен {{count}} апта"},xWeeks:{type:"weeks",one:"1 апта",other:"{{count}} апта"},aboutXMonths:{regular:{singularNominative:"шамамен {{count}} ай",singularGenitive:"шамамен {{count}} ай",pluralGenitive:"шамамен {{count}} ай"},future:{singularNominative:"шамамен {{count}} айдан кейін",singularGenitive:"шамамен {{count}} айдан кейін",pluralGenitive:"шамамен {{count}} айдан кейін"}},xMonths:{regular:{singularNominative:"{{count}} ай",singularGenitive:"{{count}} ай",pluralGenitive:"{{count}} ай"}},aboutXYears:{regular:{singularNominative:"шамамен {{count}} жыл",singularGenitive:"шамамен {{count}} жыл",pluralGenitive:"шамамен {{count}} жыл"},future:{singularNominative:"шамамен {{count}} жылдан кейін",singularGenitive:"шамамен {{count}} жылдан кейін",pluralGenitive:"шамамен {{count}} жылдан кейін"}},xYears:{regular:{singularNominative:"{{count}} жыл",singularGenitive:"{{count}} жыл",pluralGenitive:"{{count}} жыл"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}},overXYears:{regular:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"},future:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"}},almostXYears:{regular:{singularNominative:"{{count}} жылға жақын",singularGenitive:"{{count}} жылға жақын",pluralGenitive:"{{count}} жылға жақын"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}}};function mh(e,t){if(e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}const gh={date:jo({formats:{full:"EEEE, do MMMM y 'ж.'",long:"do MMMM y 'ж.'",medium:"d MMM y 'ж.'",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},vh=["жексенбіде","дүйсенбіде","сейсенбіде","сәрсенбіде","бейсенбіде","жұмада","сенбіде"];function Oh(e){return"'"+vh[e]+" сағат' p'-де'"}const yh={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?Oh(r):function(e){return"'өткен "+vh[e]+" сағат' p'-де'"}(r)},yesterday:"'кеше сағат' p'-де'",today:"'бүгін сағат' p'-де'",tomorrow:"'ертең сағат' p'-де'",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?Oh(r):function(e){return"'келесі "+vh[e]+" сағат' p'-де'"}(r)},other:"P"},bh={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},wh={ordinalNumber:(e,t)=>{const n=Number(e),r=n>=100?100:null;return n+(bh[n]||bh[n%10]||r&&bh[r]||"")},era:zo({values:{narrow:["б.з.д.","б.з."],abbreviated:["б.з.д.","б.з."],wide:["біздің заманымызға дейін","біздің заманымыз"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ші тоқ.","2-ші тоқ.","3-ші тоқ.","4-ші тоқ."],wide:["1-ші тоқсан","2-ші тоқсан","3-ші тоқсан","4-ші тоқсан"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},defaultWidth:"wide",formattingValues:{narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Ж","Д","С","С","Б","Ж","С"],short:["жс","дс","сс","ср","бс","жм","сб"],abbreviated:["жс","дс","сс","ср","бс","жм","сб"],wide:["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"}},defaultWidth:"any",formattingValues:{narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түс",morning:"таң",afternoon:"күн",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түсте",morning:"таңертең",afternoon:"күндіз",evening:"кеште",night:"түнде"}},defaultFormattingWidth:"wide"})},kh={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(ші|шы))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^б/i,/^з/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},defaultParseWidth:"any"})},xh={code:"kk",formatDistance:(e,t,n)=>{const r=ph[e];return"function"==typeof r?r(n):"weeks"===r.type?1===t?r.one:r.other.replace("{{count}}",String(t)):n?.addSuffix?n.comparison&&n.comparison>0?r.future?mh(r.future,t):mh(r.regular,t)+" кейін":r.past?mh(r.past,t):mh(r.regular,t)+" бұрын":mh(r.regular,t)},formatLong:gh,formatRelative:(e,t,n,r)=>{const i=yh[e];return"function"==typeof i?i(t,n,r):i},localize:wh,match:kh,options:{weekStartsOn:1,firstWeekContainsDate:1}},_h={lessThanXSeconds:"តិចជាង {{count}} វិនាទី",xSeconds:"{{count}} វិនាទី",halfAMinute:"កន្លះនាទី",lessThanXMinutes:"តិចជាង {{count}} នាទី",xMinutes:"{{count}} នាទី",aboutXHours:"ប្រហែល {{count}} ម៉ោង",xHours:"{{count}} ម៉ោង",xDays:"{{count}} ថ្ងៃ",aboutXWeeks:"ប្រហែល {{count}} សប្តាហ៍",xWeeks:"{{count}} សប្តាហ៍",aboutXMonths:"ប្រហែល {{count}} ខែ",xMonths:"{{count}} ខែ",aboutXYears:"ប្រហែល {{count}} ឆ្នាំ",xYears:"{{count}} ឆ្នាំ",overXYears:"ជាង {{count}} ឆ្នាំ",almostXYears:"ជិត {{count}} ឆ្នាំ"},Sh={date:jo({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a",long:"h:mm:ss a",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'ម៉ោង' {{time}}",long:"{{date}} 'ម៉ោង' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ph={lastWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p",yesterday:"'ម្សិលមិញនៅម៉ោង' p",today:"'ថ្ងៃនេះម៉ោង' p",tomorrow:"'ថ្ងៃស្អែកម៉ោង' p",nextWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p",other:"P"},Eh={ordinalNumber:(e,t)=>Number(e).toString(),era:zo({values:{narrow:["ម.គស","គស"],abbreviated:["មុនគ.ស","គ.ស"],wide:["មុនគ្រិស្តសករាជ","នៃគ្រិស្តសករាជ"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ត្រីមាសទី 1","ត្រីមាសទី 2","ត្រីមាសទី 3","ត្រីមាសទី 4"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ម.ក","ក.ម","មិ","ម.ស","ឧ.ស","ម.ថ","ក.ដ","សី","កញ","តុ","វិ","ធ"],abbreviated:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],wide:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"]},defaultWidth:"wide"}),day:zo({values:{narrow:["អា","ច","អ","ព","ព្រ","សុ","ស"],short:["អា","ច","អ","ព","ព្រ","សុ","ស"],abbreviated:["អា","ច","អ","ព","ព្រ","សុ","ស"],wide:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},abbreviated:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},wide:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},abbreviated:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},wide:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"}},defaultFormattingWidth:"wide"})},Ch={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(ម\.)?គស/i,abbreviated:/^(មុន)?គ\.ស/i,wide:/^(មុន|នៃ)គ្រិស្តសករាជ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(ម|មុន)គ\.?ស/i,/^(នៃ)?គ\.?ស/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^(ត្រីមាស)(ទី)?\s?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i,abbreviated:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i,wide:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ម\.ក/i,/^ក\.ម/i,/^មិ/i,/^ម\.ស/i,/^ឧ\.ស/i,/^ម\.ថ/i,/^ក\.ដ/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិ/i,/^ធ/i],any:[/^មក/i,/^កុ/i,/^មីន/i,/^មេ/i,/^ឧស/i,/^មិថ/i,/^កក/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិច/i,/^ធ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,short:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,abbreviated:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,wide:/^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^ស/i],any:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^សៅ/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i,any:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ព្រឹក/i,pm:/^ល្ងាច/i,midnight:/^ពេលកណ្ដាលអធ្រាត្រ/i,noon:/^ពេលថ្ងៃត្រង់/i,morning:/ពេលព្រឹក/i,afternoon:/ពេលរសៀល/i,evening:/ពេលល្ងាច/i,night:/ពេលយប់/i}},defaultParseWidth:"any"})},Th={code:"km",formatDistance:(e,t,n)=>{let r=_h[e];return"number"==typeof t&&(r=r.replace("{{count}}",t.toString())),n?.addSuffix?n.comparison&&n.comparison>0?"ក្នុងរយៈពេល "+r:r+"មុន":r},formatLong:Sh,formatRelative:(e,t,n,r)=>Ph[e],localize:Eh,match:Ch,options:{weekStartsOn:0,firstWeekContainsDate:1}},$h={lessThanXSeconds:{one:{default:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",future:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",past:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ"},other:{default:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",future:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",past:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ"}},xSeconds:{one:{default:"1 ಸೆಕೆಂಡ್",future:"1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ",past:"1 ಸೆಕೆಂಡ್ ಹಿಂದೆ"},other:{default:"{{count}} ಸೆಕೆಂಡುಗಳು",future:"{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ",past:"{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ"}},halfAMinute:{other:{default:"ಅರ್ಧ ನಿಮಿಷ",future:"ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ",past:"ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ"}},lessThanXMinutes:{one:{default:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",future:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",past:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ"},other:{default:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",future:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",past:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ"}},xMinutes:{one:{default:"1 ನಿಮಿಷ",future:"1 ನಿಮಿಷದಲ್ಲಿ",past:"1 ನಿಮಿಷದ ಹಿಂದೆ"},other:{default:"{{count}} ನಿಮಿಷಗಳು",future:"{{count}} ನಿಮಿಷಗಳಲ್ಲಿ",past:"{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ"}},aboutXHours:{one:{default:"ಸುಮಾರು 1 ಗಂಟೆ",future:"ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ",past:"ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳು",future:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ"}},xHours:{one:{default:"1 ಗಂಟೆ",future:"1 ಗಂಟೆಯಲ್ಲಿ",past:"1 ಗಂಟೆ ಹಿಂದೆ"},other:{default:"{{count}} ಗಂಟೆಗಳು",future:"{{count}} ಗಂಟೆಗಳಲ್ಲಿ",past:"{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ"}},xDays:{one:{default:"1 ದಿನ",future:"1 ದಿನದಲ್ಲಿ",past:"1 ದಿನದ ಹಿಂದೆ"},other:{default:"{{count}} ದಿನಗಳು",future:"{{count}} ದಿನಗಳಲ್ಲಿ",past:"{{count}} ದಿನಗಳ ಹಿಂದೆ"}},aboutXMonths:{one:{default:"ಸುಮಾರು 1 ತಿಂಗಳು",future:"ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ",past:"ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ತಿಂಗಳು",future:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}},xMonths:{one:{default:"1 ತಿಂಗಳು",future:"1 ತಿಂಗಳಲ್ಲಿ",past:"1 ತಿಂಗಳ ಹಿಂದೆ"},other:{default:"{{count}} ತಿಂಗಳು",future:"{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ",past:"{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}},aboutXYears:{one:{default:"ಸುಮಾರು 1 ವರ್ಷ",future:"ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ",past:"ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ವರ್ಷಗಳು",future:"ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ"}},xYears:{one:{default:"1 ವರ್ಷ",future:"1 ವರ್ಷದಲ್ಲಿ",past:"1 ವರ್ಷದ ಹಿಂದೆ"},other:{default:"{{count}} ವರ್ಷಗಳು",future:"{{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"{{count}} ವರ್ಷಗಳ ಹಿಂದೆ"}},overXYears:{one:{default:"1 ವರ್ಷದ ಮೇಲೆ",future:"1 ವರ್ಷದ ಮೇಲೆ",past:"1 ವರ್ಷದ ಮೇಲೆ"},other:{default:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ",future:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ",past:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ"}},almostXYears:{one:{default:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ",future:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ",past:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ"},other:{default:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ",future:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ"}}};function Qh(e,t){return t?.addSuffix?t.comparison&&t.comparison>0?e.future:e.past:e.default}const Rh={date:jo({formats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"d/M/yy"},defaultWidth:"full"}),time:jo({formats:{full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ah={lastWeek:"'ಕಳೆದ' eeee p 'ಕ್ಕೆ'",yesterday:"'ನಿನ್ನೆ' p 'ಕ್ಕೆ'",today:"'ಇಂದು' p 'ಕ್ಕೆ'",tomorrow:"'ನಾಳೆ' p 'ಕ್ಕೆ'",nextWeek:"eeee p 'ಕ್ಕೆ'",other:"P"},jh={ordinalNumber:(e,t)=>Number(e)+"ನೇ",era:zo({values:{narrow:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],abbreviated:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],wide:["ಕ್ರಿಸ್ತ ಪೂರ್ವ","ಕ್ರಿಸ್ತ ಶಕ"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ತ್ರೈ 1","ತ್ರೈ 2","ತ್ರೈ 3","ತ್ರೈ 4"],wide:["1ನೇ ತ್ರೈಮಾಸಿಕ","2ನೇ ತ್ರೈಮಾಸಿಕ","3ನೇ ತ್ರೈಮಾಸಿಕ","4ನೇ ತ್ರೈಮಾಸಿಕ"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ಜ","ಫೆ","ಮಾ","ಏ","ಮೇ","ಜೂ","ಜು","ಆ","ಸೆ","ಅ","ನ","ಡಿ"],abbreviated:["ಜನ","ಫೆಬ್ರ","ಮಾರ್ಚ್","ಏಪ್ರಿ","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗ","ಸೆಪ್ಟೆಂ","ಅಕ್ಟೋ","ನವೆಂ","ಡಿಸೆಂ"],wide:["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಏಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟೆಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ಭಾ","ಸೋ","ಮಂ","ಬು","ಗು","ಶು","ಶ"],short:["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],abbreviated:["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],wide:["ಭಾನುವಾರ","ಸೋಮವಾರ","ಮಂಗಳವಾರ","ಬುಧವಾರ","ಗುರುವಾರ","ಶುಕ್ರವಾರ","ಶನಿವಾರ"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾಹ್ನ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾಹ್ನ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},abbreviated:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},wide:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ಪೂ",pm:"ಅ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},abbreviated:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯ ರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},wide:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯ ರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"}},defaultFormattingWidth:"wide"})},Dh={ordinalNumber:Lo({matchPattern:/^(\d+)(ನೇ|ನೆ)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i,abbreviated:/^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i,wide:/^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ಪೂ/i,/^(ಶ|ಪ್ರ)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i,wide:/^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i,abbreviated:/^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i,wide:/^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ಜ$/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂ/i,/^ಜು$/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i],any:[/^ಜನ/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂನ್/i,/^ಜುಲೈ/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i,short:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,abbreviated:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,wide:/^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i],any:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i,any:/^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ಪೂ/i,pm:/^ಅ/i,midnight:/ಮಧ್ಯರಾತ್ರಿ/i,noon:/ಮಧ್ಯಾನ್ಹ/i,morning:/ಬೆಳಗ್ಗೆ/i,afternoon:/ಮಧ್ಯಾನ್ಹ/i,evening:/ಸಂಜೆ/i,night:/ರಾತ್ರಿ/i}},defaultParseWidth:"any"})},Mh={code:"kn",formatDistance:(e,t,n)=>{let r;const i=$h[e];return r=i.one&&1===t?Qh(i.one,n):Qh(i.other,n),r.replace("{{count}}",String(t))},formatLong:Rh,formatRelative:(e,t,n,r)=>Ah[e],localize:jh,match:Dh,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ih={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},zh={date:jo({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:jo({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Wh={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Nh={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:zo({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:zo({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},Lh={ordinalNumber:Lo({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},Fh={code:"ko",formatDistance:(e,t,n)=>{let r;const i=Ih[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},formatLong:zh,formatRelative:(e,t,n,r)=>Wh[e],localize:Nh,match:Lh,options:{weekStartsOn:0,firstWeekContainsDate:1}},Uh={lessThanXSeconds:{standalone:{one:"manner wéi eng Sekonn",other:"manner wéi {{count}} Sekonnen"},withPreposition:{one:"manner wéi enger Sekonn",other:"manner wéi {{count}} Sekonnen"}},xSeconds:{standalone:{one:"eng Sekonn",other:"{{count}} Sekonnen"},withPreposition:{one:"enger Sekonn",other:"{{count}} Sekonnen"}},halfAMinute:{standalone:"eng hallef Minutt",withPreposition:"enger hallwer Minutt"},lessThanXMinutes:{standalone:{one:"manner wéi eng Minutt",other:"manner wéi {{count}} Minutten"},withPreposition:{one:"manner wéi enger Minutt",other:"manner wéi {{count}} Minutten"}},xMinutes:{standalone:{one:"eng Minutt",other:"{{count}} Minutten"},withPreposition:{one:"enger Minutt",other:"{{count}} Minutten"}},aboutXHours:{standalone:{one:"ongeféier eng Stonn",other:"ongeféier {{count}} Stonnen"},withPreposition:{one:"ongeféier enger Stonn",other:"ongeféier {{count}} Stonnen"}},xHours:{standalone:{one:"eng Stonn",other:"{{count}} Stonnen"},withPreposition:{one:"enger Stonn",other:"{{count}} Stonnen"}},xDays:{standalone:{one:"een Dag",other:"{{count}} Deeg"},withPreposition:{one:"engem Dag",other:"{{count}} Deeg"}},aboutXWeeks:{standalone:{one:"ongeféier eng Woch",other:"ongeféier {{count}} Wochen"},withPreposition:{one:"ongeféier enger Woche",other:"ongeféier {{count}} Wochen"}},xWeeks:{standalone:{one:"eng Woch",other:"{{count}} Wochen"},withPreposition:{one:"enger Woch",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"ongeféier ee Mount",other:"ongeféier {{count}} Méint"},withPreposition:{one:"ongeféier engem Mount",other:"ongeféier {{count}} Méint"}},xMonths:{standalone:{one:"ee Mount",other:"{{count}} Méint"},withPreposition:{one:"engem Mount",other:"{{count}} Méint"}},aboutXYears:{standalone:{one:"ongeféier ee Joer",other:"ongeféier {{count}} Joer"},withPreposition:{one:"ongeféier engem Joer",other:"ongeféier {{count}} Joer"}},xYears:{standalone:{one:"ee Joer",other:"{{count}} Joer"},withPreposition:{one:"engem Joer",other:"{{count}} Joer"}},overXYears:{standalone:{one:"méi wéi ee Joer",other:"méi wéi {{count}} Joer"},withPreposition:{one:"méi wéi engem Joer",other:"méi wéi {{count}} Joer"}},almostXYears:{standalone:{one:"bal ee Joer",other:"bal {{count}} Joer"},withPreposition:{one:"bal engem Joer",other:"bal {{count}} Joer"}}},Xh=["d","h","n","t","z"],qh=["a,","e","i","o","u"],Bh=[0,1,2,3,8,9],Vh=[40,50,60,70];function Yh(e){const t=e.charAt(0).toLowerCase();if(-1!=qh.indexOf(t)||-1!=Xh.indexOf(t))return!0;const n=e.split(" ")[0],r=parseInt(n);return!isNaN(r)&&-1!=Bh.indexOf(r%10)&&-1==Vh.indexOf(parseInt(n.substring(0,2)))}const Zh={date:jo({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.yy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Gh={lastWeek:e=>{const t=e.getDay();let n="'läschte";return 2!==t&&4!==t||(n+="n"),n+="' eeee 'um' p",n},yesterday:"'gëschter um' p",today:"'haut um' p",tomorrow:"'moien um' p",nextWeek:"eeee 'um' p",other:"P"},Hh={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["viru Christus","no Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mé","Dë","Më","Do","Fr","Sa"],abbreviated:["So.","Mé.","Dë.","Më.","Do.","Fr.","Sa."],wide:["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"mo.",pm:"nomë.",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"},abbreviated:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"},wide:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"mo.",pm:"nom.",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"},abbreviated:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"},wide:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"}},defaultFormattingWidth:"wide"})},Kh={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i,wide:/^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mä/i,/^ab/i,/^me/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smdf]/i,short:/^(so|mé|dë|më|do|fr|sa)/i,abbreviated:/^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i,wide:/^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mé/i,/^dë/i,/^më/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,abbreviated:/^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,wide:/^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^m/i,pm:/^n/i,midnight:/^Mëtter/i,noon:/^mëttes/i,morning:/moies/i,afternoon:/nomëttes/i,evening:/owes/i,night:/nuets/i}},defaultParseWidth:"any"})},Jh={code:"lb",formatDistance:(e,t,n)=>{let r;const i=Uh[e],o=n?.addSuffix?i.withPreposition:i.standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"a"+(Yh(r)?"n":"")+" "+r:"viru"+(Yh(r)?"n":"")+" "+r:r},formatLong:Zh,formatRelative:(e,t,n,r)=>{const i=Gh[e];return"function"==typeof i?i(t):i},localize:Hh,match:Kh,options:{weekStartsOn:1,firstWeekContainsDate:4}},ep={xseconds_other:"sekundė_sekundžių_sekundes",xminutes_one:"minutė_minutės_minutę",xminutes_other:"minutės_minučių_minutes",xhours_one:"valanda_valandos_valandą",xhours_other:"valandos_valandų_valandas",xdays_one:"diena_dienos_dieną",xdays_other:"dienos_dienų_dienas",xweeks_one:"savaitė_savaitės_savaitę",xweeks_other:"savaitės_savaičių_savaites",xmonths_one:"mėnuo_mėnesio_mėnesį",xmonths_other:"mėnesiai_mėnesių_mėnesius",xyears_one:"metai_metų_metus",xyears_other:"metai_metų_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"mažiau nei"},tp=(e,t,n,r)=>t?r?"kelių sekundžių":"kelias sekundes":"kelios sekundės",np=(e,t,n,r)=>t?r?op(n)[1]:op(n)[2]:op(n)[0],rp=(e,t,n,r)=>{const i=e+" ";return 1===e?i+np(0,t,n,r):t?r?i+op(n)[1]:i+(ip(e)?op(n)[1]:op(n)[2]):i+(ip(e)?op(n)[1]:op(n)[0])};function ip(e){return e%10==0||e>10&&e<20}function op(e){return ep[e].split("_")}const ap={lessThanXSeconds:{one:tp,other:rp},xSeconds:{one:tp,other:rp},halfAMinute:"pusė minutės",lessThanXMinutes:{one:np,other:rp},xMinutes:{one:np,other:rp},aboutXHours:{one:np,other:rp},xHours:{one:np,other:rp},xDays:{one:np,other:rp},aboutXWeeks:{one:np,other:rp},xWeeks:{one:np,other:rp},aboutXMonths:{one:np,other:rp},xMonths:{one:np,other:rp},aboutXYears:{one:np,other:rp},xYears:{one:np,other:rp},overXYears:{one:np,other:rp},almostXYears:{one:np,other:rp}},sp={date:jo({formats:{full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},lp={lastWeek:"'Praėjusį' eeee p",yesterday:"'Vakar' p",today:"'Šiandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},up={ordinalNumber:(e,t)=>Number(e)+"-oji",era:zo({values:{narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prieš Kristų","po Kristaus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]},defaultWidth:"wide",formattingValues:{narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"]},defaultWidth:"wide",formattingValues:{narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienį","pirmadienį","antradienį","trečiadienį","ketvirtadienį","penktadienį","šeštadienį"]},defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},defaultWidth:"wide",formattingValues:{narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"}},defaultFormattingWidth:"wide"})},cp={ordinalNumber:Lo({matchPattern:/^(\d+)(-oji)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},defaultParseWidth:"any"})},dp={code:"lt",formatDistance:(e,t,n)=>{const r=e.match(/about|over|almost|lessthan/i),i=r?e.replace(r[0],""):e,o=void 0!==n?.comparison&&n.comparison>0;let a;const s=ap[e];if(a="string"==typeof s?s:1===t?s.one(t,!0===n?.addSuffix,i.toLowerCase()+"_one",o):s.other(t,!0===n?.addSuffix,i.toLowerCase()+"_other",o),r){const e=r[0].toLowerCase();a=ep[e]+" "+a}return n?.addSuffix?n.comparison&&n.comparison>0?"po "+a:"prieš "+a:a},formatLong:sp,formatRelative:(e,t,n,r)=>lp[e],localize:up,match:cp,options:{weekStartsOn:1,firstWeekContainsDate:4}};function fp(e){return(t,n)=>{if(1===t)return n?.addSuffix?e.one[0].replace("{{time}}",e.one[2]):e.one[0].replace("{{time}}",e.one[1]);{const r=t%10==1&&t%100!=11;return n?.addSuffix?e.other[0].replace("{{time}}",r?e.other[3]:e.other[4]).replace("{{count}}",String(t)):e.other[0].replace("{{time}}",r?e.other[1]:e.other[2]).replace("{{count}}",String(t))}}}const hp={lessThanXSeconds:fp({one:["mazāk par {{time}}","sekundi","sekundi"],other:["mazāk nekā {{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),xSeconds:fp({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),halfAMinute:(e,t)=>t?.addSuffix?"pusminūtes":"pusminūte",lessThanXMinutes:fp({one:["mazāk par {{time}}","minūti","minūti"],other:["mazāk nekā {{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),xMinutes:fp({one:["1 {{time}}","minūte","minūtes"],other:["{{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),aboutXHours:fp({one:["apmēram 1 {{time}}","stunda","stundas"],other:["apmēram {{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xHours:fp({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xDays:fp({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dienām"]}),aboutXWeeks:fp({one:["apmēram 1 {{time}}","nedēļa","nedēļas"],other:["apmēram {{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),xWeeks:fp({one:["1 {{time}}","nedēļa","nedēļas"],other:["{{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),aboutXMonths:fp({one:["apmēram 1 {{time}}","mēnesis","mēneša"],other:["apmēram {{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),xMonths:fp({one:["1 {{time}}","mēnesis","mēneša"],other:["{{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),aboutXYears:fp({one:["apmēram 1 {{time}}","gads","gada"],other:["apmēram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:fp({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:fp({one:["ilgāk par 1 {{time}}","gadu","gadu"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:fp({one:["gandrīz 1 {{time}}","gads","gada"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]})},pp={date:jo({formats:{full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},mp=["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"],gp={lastWeek:(e,t,n)=>fl(e,t,n)?"eeee 'plkst.' p":"'Pagājušā "+mp[e.getDay()]+" plkst.' p",yesterday:"'Vakar plkst.' p",today:"'Šodien plkst.' p",tomorrow:"'Rīt plkst.' p",nextWeek:(e,t,n)=>fl(e,t,n)?"eeee 'plkst.' p":"'Nākamajā "+mp[e.getDay()]+" plkst.' p",other:"P"},vp={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["p.m.ē","m.ē"],abbreviated:["p. m. ē.","m. ē."],wide:["pirms mūsu ēras","mūsu ērā"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","trešais ceturksnis","ceturtais ceturksnis"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmajā ceturksnī","otrajā ceturksnī","trešajā ceturksnī","ceturtajā ceturksnī"]},defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]},defaultWidth:"wide",formattingValues:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","martā","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"]},defaultWidth:"wide",formattingValues:{narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"]},defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"pēcpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"rīts",afternoon:"pēcpusdiena",evening:"vakars",night:"nakts"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"dienā",evening:"vakarā",night:"naktī"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"pēcpusd.",evening:"vakarā",night:"naktī"},wide:{am:"am",pm:"pm",midnight:"pusnaktī",noon:"pusdienlaikā",morning:"rītā",afternoon:"pēcpusdienā",evening:"vakarā",night:"naktī"}},defaultFormattingWidth:"wide"})},Op={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^m/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},defaultParseWidth:"wide",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:"any"})},yp={code:"lv",formatDistance:(e,t,n)=>{const r=hp[e](t,n);return n?.addSuffix?n.comparison&&n.comparison>0?"pēc "+r:"pirms "+r:r},formatLong:pp,formatRelative:(e,t,n,r)=>{const i=gp[e];return"function"==typeof i?i(t,n,r):i},localize:vp,match:Op,options:{weekStartsOn:1,firstWeekContainsDate:4}},bp={lessThanXSeconds:{one:"помалку од секунда",other:"помалку од {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половина минута",lessThanXMinutes:{one:"помалку од минута",other:"помалку од {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"околу 1 час",other:"околу {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дена"},aboutXWeeks:{one:"околу 1 недела",other:"околу {{count}} месеци"},xWeeks:{one:"1 недела",other:"{{count}} недели"},aboutXMonths:{one:"околу 1 месец",other:"околу {{count}} недели"},xMonths:{one:"1 месец",other:"{{count}} месеци"},aboutXYears:{one:"околу 1 година",other:"околу {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"повеќе од 1 година",other:"повеќе од {{count}} години"},almostXYears:{one:"безмалку 1 година",other:"безмалку {{count}} години"}},wp={date:jo({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},kp=["недела","понеделник","вторник","среда","четврток","петок","сабота"];function xp(e){const t=kp[e];switch(e){case 0:case 3:case 6:return"'ова "+t+" вo' p";case 1:case 2:case 4:case 5:return"'овој "+t+" вo' p"}}const _p={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?xp(r):function(e){const t=kp[e];switch(e){case 0:case 3:case 6:return"'минатата "+t+" во' p";case 1:case 2:case 4:case 5:return"'минатиот "+t+" во' p"}}(r)},yesterday:"'вчера во' p",today:"'денес во' p",tomorrow:"'утре во' p",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?xp(r):function(e){const t=kp[e];switch(e){case 0:case 3:case 6:return"'следната "+t+" вo' p";case 1:case 2:case 4:case 5:return"'следниот "+t+" вo' p"}}(r)},other:"P"},Sp={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"-ви";case 2:return n+"-ри";case 7:case 8:return n+"-ми"}return n+"-ти"},era:zo({values:{narrow:["пр.н.е.","н.е."],abbreviated:["пред н. е.","н. е."],wide:["пред нашата ера","нашата ера"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ви кв.","2-ри кв.","3-ти кв.","4-ти кв."],wide:["1-ви квартал","2-ри квартал","3-ти квартал","4-ти квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{abbreviated:["јан","фев","мар","апр","мај","јун","јул","авг","септ","окт","ноем","дек"],wide:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["не","по","вт","ср","че","пе","са"],abbreviated:["нед","пон","вто","сре","чет","пет","саб"],wide:["недела","понеделник","вторник","среда","четврток","петок","сабота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{wide:{am:"претпладне",pm:"попладне",midnight:"полноќ",noon:"напладне",morning:"наутро",afternoon:"попладне",evening:"навечер",night:"ноќе"}},defaultWidth:"wide"})},Pp={ordinalNumber:Lo({matchPattern:/^(\d+)(-?[врмт][и])?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(пред нашата ера|нашата ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?и?)? кв.?/i,wide:/^[1234](-?[врт]?и?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{abbreviated:/^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,wide:/^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ја/i,/^Ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(не|по|вт|ср|че|пе|са)/i,abbreviated:/^(нед|пон|вто|сре|чет|пет|саб)/i,wide:/^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[аб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/претпладне/i,pm:/попладне/i,midnight:/полноќ/i,noon:/напладне/i,morning:/наутро/i,afternoon:/попладне/i,evening:/навечер/i,night:/ноќе/i}},defaultParseWidth:"any"})},Ep={code:"mk",formatDistance:(e,t,n)=>{let r;const i=bp[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"за "+r:"пред "+r:r},formatLong:wp,formatRelative:(e,t,n,r)=>{const i=_p[e];return"function"==typeof i?i(t,n,r):i},localize:Sp,match:Pp,options:{weekStartsOn:1,firstWeekContainsDate:4}},Cp={lessThanXSeconds:{one:"секунд хүрэхгүй",other:"{{count}} секунд хүрэхгүй"},xSeconds:{one:"1 секунд",other:"{{count}} секунд"},halfAMinute:"хагас минут",lessThanXMinutes:{one:"минут хүрэхгүй",other:"{{count}} минут хүрэхгүй"},xMinutes:{one:"1 минут",other:"{{count}} минут"},aboutXHours:{one:"ойролцоогоор 1 цаг",other:"ойролцоогоор {{count}} цаг"},xHours:{one:"1 цаг",other:"{{count}} цаг"},xDays:{one:"1 өдөр",other:"{{count}} өдөр"},aboutXWeeks:{one:"ойролцоогоор 1 долоо хоног",other:"ойролцоогоор {{count}} долоо хоног"},xWeeks:{one:"1 долоо хоног",other:"{{count}} долоо хоног"},aboutXMonths:{one:"ойролцоогоор 1 сар",other:"ойролцоогоор {{count}} сар"},xMonths:{one:"1 сар",other:"{{count}} сар"},aboutXYears:{one:"ойролцоогоор 1 жил",other:"ойролцоогоор {{count}} жил"},xYears:{one:"1 жил",other:"{{count}} жил"},overXYears:{one:"1 жил гаран",other:"{{count}} жил гаран"},almostXYears:{one:"бараг 1 жил",other:"бараг {{count}} жил"}},Tp={date:jo({formats:{full:"y 'оны' MMMM'ын' d, EEEE 'гараг'",long:"y 'оны' MMMM'ын' d",medium:"y 'оны' MMM'ын' d",short:"y.MM.dd"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},$p={lastWeek:"'өнгөрсөн' eeee 'гарагийн' p 'цагт'",yesterday:"'өчигдөр' p 'цагт'",today:"'өнөөдөр' p 'цагт'",tomorrow:"'маргааш' p 'цагт'",nextWeek:"'ирэх' eeee 'гарагийн' p 'цагт'",other:"P"},Qp={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["НТӨ","НТ"],abbreviated:["НТӨ","НТ"],wide:["нийтийн тооллын өмнөх","нийтийн тооллын"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["I","II","III","IV"],abbreviated:["I улирал","II улирал","III улирал","IV улирал"],wide:["1-р улирал","2-р улирал","3-р улирал","4-р улирал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],wide:["Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургаадугаар сар","Долоодугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арваннэгдүгээр сар","Арван хоёрдугаар сар"]},defaultWidth:"wide",formattingValues:{narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],wide:["нэгдүгээр сар","хоёрдугаар сар","гуравдугаар сар","дөрөвдүгээр сар","тавдугаар сар","зургаадугаар сар","долоодугаар сар","наймдугаар сар","есдүгээр сар","аравдугаар сар","арваннэгдүгээр сар","арван хоёрдугаар сар"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","Д","М","Л","П","Б","Б"],short:["Ня","Да","Мя","Лх","Пү","Ба","Бя"],abbreviated:["Ням","Дав","Мяг","Лха","Пүр","Баа","Бям"],wide:["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"]},defaultWidth:"wide",formattingValues:{narrow:["Н","Д","М","Л","П","Б","Б"],short:["Ня","Да","Мя","Лх","Пү","Ба","Бя"],abbreviated:["Ням","Дав","Мяг","Лха","Пүр","Баа","Бям"],wide:["ням","даваа","мягмар","лхагва","пүрэв","баасан","бямба"]},defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"},abbreviated:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"},wide:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"}},defaultWidth:"wide"})},Rp={ordinalNumber:Lo({matchPattern:/\d+/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(нтө|нт)/i,abbreviated:/^(нтө|нт)/i,wide:/^(нийтийн тооллын өмнө|нийтийн тооллын)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(нтө|нийтийн тооллын өмнө)/i,/^(нт|нийтийн тооллын)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^(iv|iii|ii|i)/i,abbreviated:/^(iv|iii|ii|i) улирал/i,wide:/^[1-4]-р улирал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(i(\s|$)|1)/i,/^(ii(\s|$)|2)/i,/^(iii(\s|$)|3)/i,/^(iv(\s|$)|4)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i,abbreviated:/^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i,wide:/^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i$/i,/^ii$/i,/^iii$/i,/^iv$/i,/^v$/i,/^vi$/i,/^vii$/i,/^viii$/i,/^ix$/i,/^x$/i,/^xi$/i,/^xii$/i],any:[/^(1|нэгдүгээр)/i,/^(2|хоёрдугаар)/i,/^(3|гуравдугаар)/i,/^(4|дөрөвдүгээр)/i,/^(5|тавдугаар)/i,/^(6|зургаадугаар)/i,/^(7|долоодугаар)/i,/^(8|наймдугаар)/i,/^(9|есдүгээр)/i,/^(10|аравдугаар)/i,/^(11|арван нэгдүгээр)/i,/^(12|арван хоёрдугаар)/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[ндмлпбб]/i,short:/^(ня|да|мя|лх|пү|ба|бя)/i,abbreviated:/^(ням|дав|мяг|лха|пүр|баа|бям)/i,wide:/^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^д/i,/^м/i,/^л/i,/^п/i,/^б/i,/^б/i],any:[/^ня/i,/^да/i,/^мя/i,/^лх/i,/^пү/i,/^ба/i,/^бя/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i,any:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ү\.ө\./i,pm:/^ү\.х\./i,midnight:/^шөнө дунд/i,noon:/^үд дунд/i,morning:/өглөө/i,afternoon:/өдөр/i,evening:/орой/i,night:/шөнө/i}},defaultParseWidth:"any"})},Ap={code:"mn",formatDistance:(e,t,n)=>{let r;const i=Cp[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix){const e=r.split(" "),t=e.pop();switch(r=e.join(" "),t){case"секунд":r+=" секундийн";break;case"минут":r+=" минутын";break;case"цаг":r+=" цагийн";break;case"өдөр":r+=" өдрийн";break;case"сар":r+=" сарын";break;case"жил":r+=" жилийн";break;case"хоног":r+=" хоногийн";break;case"гаран":r+=" гараны";break;case"хүрэхгүй":r+=" хүрэхгүй хугацааны";break;default:r+=t+"-н"}return n.comparison&&n.comparison>0?r+" дараа":r+" өмнө"}return r},formatLong:Tp,formatRelative:(e,t,n,r)=>$p[e],localize:Qp,match:Rp,options:{weekStartsOn:1,firstWeekContainsDate:1}},jp={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Dp={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Mp={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},Ip={ordinalNumber:(e,t)=>"ke-"+Number(e),era:zo({values:{narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},defaultFormattingWidth:"wide"})},zp={ordinalNumber:Lo({matchPattern:/^ke-(\d+)?/i,parsePattern:/petama|\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^(m)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},defaultParseWidth:"any"})},Wp={code:"ms",formatDistance:(e,t,n)=>{let r;const i=jp[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"dalam masa "+r:r+" yang lalu":r},formatLong:Dp,formatRelative:(e,t,n,r)=>Mp[e],localize:Ip,match:zp,options:{weekStartsOn:1,firstWeekContainsDate:1}},Np={lessThanXSeconds:{one:"inqas minn sekonda",other:"inqas minn {{count}} sekondi"},xSeconds:{one:"sekonda",other:"{{count}} sekondi"},halfAMinute:"nofs minuta",lessThanXMinutes:{one:"inqas minn minuta",other:"inqas minn {{count}} minuti"},xMinutes:{one:"minuta",other:"{{count}} minuti"},aboutXHours:{one:"madwar siegħa",other:"madwar {{count}} siegħat"},xHours:{one:"siegħa",other:"{{count}} siegħat"},xDays:{one:"ġurnata",other:"{{count}} ġranet"},aboutXWeeks:{one:"madwar ġimgħa",other:"madwar {{count}} ġimgħat"},xWeeks:{one:"ġimgħa",other:"{{count}} ġimgħat"},aboutXMonths:{one:"madwar xahar",other:"madwar {{count}} xhur"},xMonths:{one:"xahar",other:"{{count}} xhur"},aboutXYears:{one:"madwar sena",two:"madwar sentejn",other:"madwar {{count}} snin"},xYears:{one:"sena",two:"sentejn",other:"{{count}} snin"},overXYears:{one:"aktar minn sena",two:"aktar minn sentejn",other:"aktar minn {{count}} snin"},almostXYears:{one:"kważi sena",two:"kważi sentejn",other:"kważi {{count}} snin"}},Lp={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Fp={lastWeek:"eeee 'li għadda' 'fil-'p",yesterday:"'Il-bieraħ fil-'p",today:"'Illum fil-'p",tomorrow:"'Għada fil-'p",nextWeek:"eeee 'fil-'p",other:"P"},Up={ordinalNumber:(e,t)=>Number(e)+"º",era:zo({values:{narrow:["Q","W"],abbreviated:["QK","WK"],wide:["qabel Kristu","wara Kristu"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kwart","2. kwart","3. kwart","4. kwart"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","Ġ","L","A","S","O","N","D"],abbreviated:["Jan","Fra","Mar","Apr","Mej","Ġun","Lul","Aww","Set","Ott","Nov","Diċ"],wide:["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Ħ","T","T","E","Ħ","Ġ","S"],short:["Ħa","Tn","Tl","Er","Ħa","Ġi","Si"],abbreviated:["Ħad","Tne","Tli","Erb","Ħam","Ġim","Sib"],wide:["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"},abbreviated:{am:"AM",pm:"PM",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"},abbreviated:{am:"AM",pm:"PM",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"}},defaultFormattingWidth:"wide"})},Xp={ordinalNumber:Lo({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(q|w)/i,abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,wide:/^(qabel kristu|before common era|wara kristu|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(q|b)/i,/^(w|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](\.)? kwart/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmaglsond]/i,abbreviated:/^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i,wide:/^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^ġ/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mej/i,/^ġ/i,/^l/i,/^aw/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[ħteġs]/i,short:/^(ħa|tn|tl|er|ħa|ġi|si)/i,abbreviated:/^(ħad|tne|tli|erb|ħam|ġim|sib)/i,wide:/^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ħ/i,/^t/i,/^t/i,/^e/i,/^ħ/i,/^ġ/i,/^s/i],any:[/^(il-)?ħad/i,/^(it-)?tn/i,/^(it-)?tl/i,/^(l-)?er/i,/^(il-)?ham/i,/^(il-)?ġi/i,/^(is-)?si/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^f'nofsillejl/i,noon:/^f'nofsinhar/i,morning:/għodwa/i,afternoon:/wara(\s.*)nofsinhar/i,evening:/filgħaxija/i,night:/lejl/i}},defaultParseWidth:"any"})},qp={code:"mt",formatDistance:(e,t,n)=>{let r;const i=Np[e];return r="string"==typeof i?i:1===t?i.one:2===t&&i.two?i.two:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"f'"+r:r+" ilu":r},formatLong:Lp,formatRelative:(e,t,n,r)=>Fp[e],localize:Up,match:Xp,options:{weekStartsOn:1,firstWeekContainsDate:4}},Bp={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},Vp={date:jo({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Yp={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Zp={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},defaultWidth:"wide"})},Gp={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},Hp={code:"nb",formatDistance:(e,t,n)=>{let r;const i=Bp[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},formatLong:Vp,formatRelative:(e,t,n,r)=>Yp[e],localize:Zp,match:Gp,options:{weekStartsOn:1,firstWeekContainsDate:4}},Kp={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Jp={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},em={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},tm={ordinalNumber:(e,t)=>Number(e)+"e",era:zo({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},nm={ordinalNumber:Lo({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})},rm={code:"nl",formatDistance:(e,t,n)=>{let r;const i=Kp[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},formatLong:Jp,formatRelative:(e,t,n,r)=>em[e],localize:tm,match:nm,options:{weekStartsOn:1,firstWeekContainsDate:4}},im={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},om={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},am={lastWeek:"'vorige' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},sm={ordinalNumber:(e,t)=>Number(e)+"e",era:zo({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},lm={ordinalNumber:Lo({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})},um={code:"nl-BE",formatDistance:(e,t,n)=>{let r;const i=im[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},formatLong:om,formatRelative:(e,t,n,r)=>am[e],localize:sm,match:lm,options:{weekStartsOn:1,firstWeekContainsDate:4}},cm={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},dm=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],fm={date:jo({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},hm={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},pm={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},defaultWidth:"wide"})},mm={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},gm={code:"nn",formatDistance:(e,t,n)=>{let r;const i=cm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t<13?dm[t]:String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" sidan":r},formatLong:fm,formatRelative:(e,t,n,r)=>hm[e],localize:pm,match:mm,options:{weekStartsOn:1,firstWeekContainsDate:4}},vm={lessThanXSeconds:{one:"mens d’una segonda",other:"mens de {{count}} segondas"},xSeconds:{one:"1 segonda",other:"{{count}} segondas"},halfAMinute:"30 segondas",lessThanXMinutes:{one:"mens d’una minuta",other:"mens de {{count}} minutas"},xMinutes:{one:"1 minuta",other:"{{count}} minutas"},aboutXHours:{one:"environ 1 ora",other:"environ {{count}} oras"},xHours:{one:"1 ora",other:"{{count}} oras"},xDays:{one:"1 jorn",other:"{{count}} jorns"},aboutXWeeks:{one:"environ 1 setmana",other:"environ {{count}} setmanas"},xWeeks:{one:"1 setmana",other:"{{count}} setmanas"},aboutXMonths:{one:"environ 1 mes",other:"environ {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"mai d’un an",other:"mai de {{count}} ans"},almostXYears:{one:"gaireben un an",other:"gaireben {{count}} ans"}},Om={date:jo({formats:{full:"EEEE d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'a' {{time}}",long:"{{date}} 'a' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ym={lastWeek:"eeee 'passat a' p",yesterday:"'ièr a' p",today:"'uèi a' p",tomorrow:"'deman a' p",nextWeek:"eeee 'a' p",other:"P"},bm={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;let i;switch(n){case 1:i="èr";break;case 2:i="nd";break;default:i="en"}return"year"!==r&&"week"!==r&&"hour"!==r&&"minute"!==r&&"second"!==r||(i+="a"),n+i},era:zo({values:{narrow:["ab. J.C.","apr. J.C."],abbreviated:["ab. J.C.","apr. J.C."],wide:["abans Jèsus-Crist","après Jèsus-Crist"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1èr trim.","2nd trim.","3en trim.","4en trim."],wide:["1èr trimèstre","2nd trimèstre","3en trimèstre","4en trimèstre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["GN","FB","MÇ","AB","MA","JN","JL","AG","ST","OC","NV","DC"],abbreviated:["gen.","febr.","març","abr.","mai","junh","jul.","ag.","set.","oct.","nov.","dec."],wide:["genièr","febrièr","març","abril","mai","junh","julhet","agost","setembre","octòbre","novembre","decembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],short:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],wide:["dimenge","diluns","dimars","dimècres","dijòus","divendres","dissabte"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"},wide:{am:"a.m.",pm:"p.m.",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"},abbreviated:{am:"AM",pm:"PM",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"}},defaultFormattingWidth:"wide"})},wm={ordinalNumber:Lo({matchPattern:/^(\d+)(èr|nd|en)?[a]?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(abans Jèsus-Crist|après Jèsus-Crist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ab/i,/^ap/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^T[1234]/i,abbreviated:/^[1234](èr|nd|en)? trim\.?/i,wide:/^[1234](èr|nd|en)? trimèstre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,abbreviated:/^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,wide:/^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^g/i,/^f/i,/^ma[r?]|MÇ/i,/^ab/i,/^ma[i?]/i,/^ju[n?]|JN/i,/^ju[l?]|JL/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^d[glmcjvs]\.?/i,short:/^d[glmcjvs]\.?/i,abbreviated:/^d[glmcjvs]\.?/i,wide:/^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],short:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],abbreviated:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],any:[/^dg|dime/i,/^dl|dil/i,/^dm|dima/i,/^dc|dimè/i,/^dj|dij/i,/^dv|div/i,/^ds|dis/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/(^a)|ante meridiem/i,pm:/(^p)|post meridiem/i,midnight:/^mièj/i,noon:/^mièg/i,morning:/matin/i,afternoon:/aprèp-miègjorn/i,evening:/vèspre|ser/i,night:/nuèch/i}},defaultParseWidth:"any"})},km={code:"oc",formatDistance:(e,t,n)=>{let r;const i=vm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"d’aquí "+r:"fa "+r:r},formatLong:Om,formatRelative:(e,t,n,r)=>ym[e],localize:bm,match:wm,options:{weekStartsOn:1,firstWeekContainsDate:4}},xm={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function _m(e,t,n){const r=function(e,t){if(1===t)return e.one;const n=t%100;if(n<=20&&n>10)return e.other;const r=n%10;return r>=2&&r<=4?e.twoFour:e.other}(e,t);return("string"==typeof r?r:r[n]).replace("{{count}}",String(t))}const Sm={date:jo({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Pm={masculine:"ostatni",feminine:"ostatnia"},Em={masculine:"ten",feminine:"ta"},Cm={masculine:"następny",feminine:"następna"},Tm={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function $m(e,t,n,r){let i;if(fl(t,n,r))i=Em;else if("lastWeek"===e)i=Pm;else{if("nextWeek"!==e)throw new Error(`Cannot determine adjectives for token ${e}`);i=Cm}const o=t.getDay();return`'${i[Tm[o]]}' eeee 'o' p`}const Qm={lastWeek:$m,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:$m,other:"P"},Rm={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},defaultWidth:"wide",formattingValues:{narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},defaultWidth:"wide",formattingValues:{narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},defaultFormattingWidth:"wide"})},Am={ordinalNumber:Lo({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:"any"})},jm={code:"pl",formatDistance:(e,t,n)=>{const r=xm[e];return n?.addSuffix?n.comparison&&n.comparison>0?"za "+_m(r,t,"future"):_m(r,t,"past")+" temu":_m(r,t,"regular")},formatLong:Sm,formatRelative:(e,t,n,r)=>{const i=Qm[e];return"function"==typeof i?i(e,t,n,r):i},localize:Rm,match:Am,options:{weekStartsOn:1,firstWeekContainsDate:4}},Dm={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Mm={date:jo({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Im={lastWeek:e=>{const t=e.getDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},zm={ordinalNumber:(e,t)=>Number(e)+"º",era:zo({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:zo({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},Wm={ordinalNumber:Lo({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},Nm={code:"pt",formatDistance:(e,t,n)=>{let r;const i=Dm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"daqui a "+r:"há "+r:r},formatLong:Mm,formatRelative:(e,t,n,r)=>{const i=Im[e];return"function"==typeof i?i(t):i},localize:zm,match:Wm,options:{weekStartsOn:1,firstWeekContainsDate:4}},Lm={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Fm={date:jo({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Um={lastWeek:e=>{const t=e.getDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Xm={ordinalNumber:(e,t)=>{const n=Number(e);return"week"===t?.unit?n+"ª":n+"º"},era:zo({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},qm={ordinalNumber:Lo({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},Bm={code:"pt-BR",formatDistance:(e,t,n)=>{let r;const i=Lm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"em "+r:"há "+r:r},formatLong:Fm,formatRelative:(e,t,n,r)=>{const i=Um[e];return"function"==typeof i?i(t):i},localize:Xm,match:qm,options:{weekStartsOn:0,firstWeekContainsDate:1}},Vm={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},Ym={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zm={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},Gm={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},defaultWidth:"wide"}),day:zo({values:{narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},defaultFormattingWidth:"wide"})},Hm={ordinalNumber:Lo({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:"any"})},Km={code:"ro",formatDistance:(e,t,n)=>{let r;const i=Vm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"în "+r:r+" în urmă":r},formatLong:Ym,formatRelative:(e,t,n,r)=>Zm[e],localize:Gm,match:Hm,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Jm(e,t){if(void 0!==e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function eg(e){return(t,n)=>n?.addSuffix?n.comparison&&n.comparison>0?e.future?Jm(e.future,t):"через "+Jm(e.regular,t):e.past?Jm(e.past,t):Jm(e.regular,t)+" назад":Jm(e.regular,t)}const tg={lessThanXSeconds:eg({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:eg({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t?.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:eg({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:eg({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:eg({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:eg({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:eg({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:eg({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:eg({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:eg({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:eg({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:eg({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:eg({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:eg({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:eg({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},ng={date:jo({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},rg=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function ig(e){const t=rg[e];return 2===e?"'во "+t+" в' p":"'в "+t+" в' p"}const og={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?ig(r):function(e){const t=rg[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?ig(r):function(e){const t=rg[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}(r)},other:"P"},ag={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;let i;return i="date"===r?"-е":"week"===r||"minute"===r||"second"===r?"-я":"-й",n+i},era:zo({values:{narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},defaultWidth:"wide",formattingValues:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},defaultFormattingWidth:"wide"})},sg={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},lg={code:"ru",formatDistance:(e,t,n)=>tg[e](t,n),formatLong:ng,formatRelative:(e,t,n,r)=>{const i=og[e];return"function"==typeof i?i(t,n,r):i},localize:ag,match:sg,options:{weekStartsOn:1,firstWeekContainsDate:1}},ug={lessThanXSeconds:{one:"unnit go ovtta sekundda",other:"unnit go {{count}} sekundda"},xSeconds:{one:"sekundda",other:"{{count}} sekundda"},halfAMinute:"bealle minuhta",lessThanXMinutes:{one:"unnit go bealle minuhta",other:"unnit go {{count}} minuhta"},xMinutes:{one:"minuhta",other:"{{count}} minuhta"},aboutXHours:{one:"sullii ovtta diimmu",other:"sullii {{count}} diimmu"},xHours:{one:"diimmu",other:"{{count}} diimmu"},xDays:{one:"beaivvi",other:"{{count}} beaivvi"},aboutXWeeks:{one:"sullii ovtta vahku",other:"sullii {{count}} vahku"},xWeeks:{one:"vahku",other:"{{count}} vahku"},aboutXMonths:{one:"sullii ovtta mánu",other:"sullii {{count}} mánu"},xMonths:{one:"mánu",other:"{{count}} mánu"},aboutXYears:{one:"sullii ovtta jagi",other:"sullii {{count}} jagi"},xYears:{one:"jagi",other:"{{count}} jagi"},overXYears:{one:"guhkit go jagi",other:"guhkit go {{count}} jagi"},almostXYears:{one:"measta jagi",other:"measta {{count}} jagi"}},cg={date:jo({formats:{full:"EEEE MMMM d. 'b.' y",long:"MMMM d. 'b.' y",medium:"MMM d. 'b.' y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"'dii.' HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'dii.' {{time}}",long:"{{date}} 'dii.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},dg={lastWeek:"'ovddit' eeee 'dii.' p",yesterday:"'ikte dii.' p",today:"'odne dii.' p",tomorrow:"'ihtin dii.' p",nextWeek:"EEEE 'dii.' p",other:"P"},fg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["o.Kr.","m.Kr."],abbreviated:["o.Kr.","m.Kr."],wide:["ovdal Kristusa","maŋŋel Kristusa"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartála","2. kvartála","3. kvartála","4. kvartála"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["O","G","N","C","M","G","S","B","Č","G","S","J"],abbreviated:["ođđa","guov","njuk","cuo","mies","geas","suoi","borg","čakč","golg","skáb","juov"],wide:["ođđajagemánnu","guovvamánnu","njukčamánnu","cuoŋománnu","miessemánnu","geassemánnu","suoidnemánnu","borgemánnu","čakčamánnu","golggotmánnu","skábmamánnu","juovlamánnu"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","V","M","G","D","B","L"],short:["sotn","vuos","maŋ","gask","duor","bear","láv"],abbreviated:["sotn","vuos","maŋ","gask","duor","bear","láv"],wide:["sotnabeaivi","vuossárga","maŋŋebárga","gaskavahkku","duorastat","bearjadat","lávvardat"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"gaskaidja",noon:"gaskabeaivi",morning:"iđđes",afternoon:"maŋŋel gaska.",evening:"eahkes",night:"ihkku"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"gaskaidja",noon:"gaskabeaivvi",morning:"iđđes",afternoon:"maŋŋel gaskabea.",evening:"eahkes",night:"ihkku"},wide:{am:"a.m.",pm:"p.m.",midnight:"gaskaidja",noon:"gaskabeavvi",morning:"iđđes",afternoon:"maŋŋel gaskabeaivvi",evening:"eahkes",night:"ihkku"}},defaultWidth:"wide"})},hg={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,abbreviated:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,wide:/^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^o/i,/^m/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartála/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[ogncmsbčj]/i,abbreviated:/^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i,wide:/^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^o/i,/^g/i,/^n/i,/^c/i,/^m/i,/^g/i,/^s/i,/^b/i,/^č/i,/^g/i,/^s/i,/^j/i],any:[/^o/i,/^gu/i,/^n/i,/^c/i,/^m/i,/^ge/i,/^su/i,/^b/i,/^č/i,/^go/i,/^sk/i,/^j/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[svmgdbl]/i,short:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,abbreviated:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,wide:/^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^v/i,/^m/i,/^g/i,/^d/i,/^b/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i,any:/^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^gaskai/i,noon:/^gaskab/i,morning:/iđđes/i,afternoon:/maŋŋel gaskabeaivvi/i,evening:/eahkes/i,night:/ihkku/i}},defaultParseWidth:"any"})},pg={code:"se",formatDistance:(e,t,n)=>{let r;const i=ug[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"geahčen "+r:r+" áigi":r},formatLong:cg,formatRelative:(e,t,n,r)=>dg[e],localize:fg,match:hg,options:{weekStartsOn:1,firstWeekContainsDate:4}};function mg(e,t,n){const r=function(e,t){return 1===t&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}(e,t);return r[n].replace("{{count}}",String(t))}function gg(e){let t="";return"almost"===e&&(t="takmer"),"about"===e&&(t="približne"),t.length>0?t+" ":""}function vg(e){let t="";return"lessThan"===e&&(t="menej než"),"over"===e&&(t="viac než"),t.length>0?t+" ":""}const Og={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},yg={date:jo({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},bg=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function wg(e){return 4===e?"'vo' eeee 'o' p":"'v "+bg[e]+" o' p"}const kg={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?wg(r):function(e){const t=bg[e];switch(e){case 0:case 3:case 6:return"'minulú "+t+" o' p";default:return"'minulý' eeee 'o' p"}}(r)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?wg(r):function(e){const t=bg[e];switch(e){case 0:case 4:case 6:return"'budúcu "+t+" o' p";default:return"'budúci' eeee 'o' p"}}(r)},other:"P"},xg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},defaultWidth:"wide",formattingValues:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},defaultFormattingWidth:"wide"})},_g={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})},Sg={code:"sk",formatDistance:(e,t,n)=>{const r=function(e){return["lessThan","about","over","almost"].filter((function(t){return!!e.match(new RegExp("^"+t))}))[0]}(e)||"",i=function(e){return e.charAt(0).toLowerCase()+e.slice(1)}(e.substring(r.length)),o=Og[i];return n?.addSuffix?n.comparison&&n.comparison>0?gg(r)+"o "+vg(r)+mg(o,t,"future"):gg(r)+"pred "+vg(r)+mg(o,t,"past"):gg(r)+vg(r)+mg(o,t,"present")},formatLong:yg,formatRelative:(e,t,n,r)=>{const i=kg[e];return"function"==typeof i?i(t,n,r):i},localize:xg,match:_g,options:{weekStartsOn:1,firstWeekContainsDate:4}},Pg={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}},Eg={date:jo({formats:{full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Cg={lastWeek:e=>{switch(e.getDay()){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},Tg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},defaultWidth:"wide",formattingValues:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},defaultFormattingWidth:"wide"})},$g={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|na[sš]em)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"wide"}),day:No({matchPatterns:{narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:"any"})},Qg={code:"sl",formatDistance:(e,t,n)=>{let r="",i="present";n?.addSuffix&&(n.comparison&&n.comparison>0?(i="future",r="čez "):(i="past",r="pred "));const o=Pg[e];if("string"==typeof o)r+=o;else{const e=function(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}(t);void 0!==o.one?r+=o[e].replace("{{count}}",String(t)):r+=o[i][e].replace("{{count}}",String(t))}return r},formatLong:Eg,formatRelative:(e,t,n,r)=>{const i=Cg[e];return"function"==typeof i?i(t):i},localize:Tg,match:$g,options:{weekStartsOn:1,firstWeekContainsDate:1}},Rg={lessThanXSeconds:{one:"më pak se një sekondë",other:"më pak se {{count}} sekonda"},xSeconds:{one:"1 sekondë",other:"{{count}} sekonda"},halfAMinute:"gjysëm minuti",lessThanXMinutes:{one:"më pak se një minute",other:"më pak se {{count}} minuta"},xMinutes:{one:"1 minutë",other:"{{count}} minuta"},aboutXHours:{one:"rreth 1 orë",other:"rreth {{count}} orë"},xHours:{one:"1 orë",other:"{{count}} orë"},xDays:{one:"1 ditë",other:"{{count}} ditë"},aboutXWeeks:{one:"rreth 1 javë",other:"rreth {{count}} javë"},xWeeks:{one:"1 javë",other:"{{count}} javë"},aboutXMonths:{one:"rreth 1 muaj",other:"rreth {{count}} muaj"},xMonths:{one:"1 muaj",other:"{{count}} muaj"},aboutXYears:{one:"rreth 1 vit",other:"rreth {{count}} vite"},xYears:{one:"1 vit",other:"{{count}} vite"},overXYears:{one:"mbi 1 vit",other:"mbi {{count}} vite"},almostXYears:{one:"pothuajse 1 vit",other:"pothuajse {{count}} vite"}},Ag={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'në' {{time}}",long:"{{date}} 'në' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jg={lastWeek:"'të' eeee 'e shkuar në' p",yesterday:"'dje në' p",today:"'sot në' p",tomorrow:"'nesër në' p",nextWeek:"eeee 'at' p",other:"P"},Dg={ordinalNumber:(e,t)=>{const n=Number(e);return"hour"===t?.unit?String(n):1===n?n+"-rë":4===n?n+"t":n+"-të"},era:zo({values:{narrow:["P","M"],abbreviated:["PK","MK"],wide:["Para Krishtit","Mbas Krishtit"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["4-mujori I","4-mujori II","4-mujori III","4-mujori IV"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","S","M","P","M","Q","K","G","S","T","N","D"],abbreviated:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],wide:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","H","M","M","E","P","S"],short:["Di","Hë","Ma","Më","En","Pr","Sh"],abbreviated:["Die","Hën","Mar","Mër","Enj","Pre","Sht"],wide:["Dielë","Hënë","Martë","Mërkurë","Enjte","Premte","Shtunë"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"mëngjes",afternoon:"dite",evening:"mbrëmje",night:"natë"},abbreviated:{am:"PD",pm:"MD",midnight:"mesnëtë",noon:"drek",morning:"mëngjes",afternoon:"mbasdite",evening:"mbrëmje",night:"natë"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesnëtë",noon:"drek",morning:"mëngjes",afternoon:"mbasdite",evening:"mbrëmje",night:"natë"}},defaultWidth:"wide",formattingValues:{narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"},abbreviated:{am:"PD",pm:"MD",midnight:"mesnatë",noon:"drek",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesnatë",noon:"drek",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"}},defaultFormattingWidth:"wide"})},Mg={ordinalNumber:Lo({matchPattern:/^(\d+)(-rë|-të|t|)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(p|m)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(para krishtit|mbas krishtit)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(p|m)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]-mujori (i{1,3}|iv)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jsmpqkftnd]/i,abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i,wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^s/i,/^m/i,/^p/i,/^m/i,/^q/i,/^k/i,/^g/i,/^s/i,/^t/i,/^n/i,/^d/i],any:[/^ja/i,/^shk/i,/^mar/i,/^pri/i,/^maj/i,/^qer/i,/^kor/i,/^gu/i,/^sht/i,/^tet/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dhmeps]/i,short:/^(di|hë|ma|më|en|pr|sh)/i,abbreviated:/^(die|hën|mar|mër|enj|pre|sht)/i,wide:/^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^h/i,/^m/i,/^m/i,/^e/i,/^p/i,/^s/i],any:[/^d/i,/^h/i,/^ma/i,/^më/i,/^e/i,/^p/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i,any:/^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^p/i,pm:/^m/i,midnight:/^me/i,noon:/^dr/i,morning:/mëngjes/i,afternoon:/mbasdite/i,evening:/mbrëmje/i,night:/natë/i}},defaultParseWidth:"any"})},Ig={code:"sq",formatDistance:(e,t,n)=>{let r;const i=Rg[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"në "+r:r+" më parë":r},formatLong:Ag,formatRelative:(e,t,n,r)=>jg[e],localize:Dg,match:Mg,options:{weekStartsOn:1,firstWeekContainsDate:1}},zg={lessThanXSeconds:{one:{standalone:"мање од 1 секунде",withPrepositionAgo:"мање од 1 секунде",withPrepositionIn:"мање од 1 секунду"},dual:"мање од {{count}} секунде",other:"мање од {{count}} секунди"},xSeconds:{one:{standalone:"1 секунда",withPrepositionAgo:"1 секунде",withPrepositionIn:"1 секунду"},dual:"{{count}} секунде",other:"{{count}} секунди"},halfAMinute:"пола минуте",lessThanXMinutes:{one:{standalone:"мање од 1 минуте",withPrepositionAgo:"мање од 1 минуте",withPrepositionIn:"мање од 1 минуту"},dual:"мање од {{count}} минуте",other:"мање од {{count}} минута"},xMinutes:{one:{standalone:"1 минута",withPrepositionAgo:"1 минуте",withPrepositionIn:"1 минуту"},dual:"{{count}} минуте",other:"{{count}} минута"},aboutXHours:{one:{standalone:"око 1 сат",withPrepositionAgo:"око 1 сат",withPrepositionIn:"око 1 сат"},dual:"око {{count}} сата",other:"око {{count}} сати"},xHours:{one:{standalone:"1 сат",withPrepositionAgo:"1 сат",withPrepositionIn:"1 сат"},dual:"{{count}} сата",other:"{{count}} сати"},xDays:{one:{standalone:"1 дан",withPrepositionAgo:"1 дан",withPrepositionIn:"1 дан"},dual:"{{count}} дана",other:"{{count}} дана"},aboutXWeeks:{one:{standalone:"око 1 недељу",withPrepositionAgo:"око 1 недељу",withPrepositionIn:"око 1 недељу"},dual:"око {{count}} недеље",other:"око {{count}} недеље"},xWeeks:{one:{standalone:"1 недељу",withPrepositionAgo:"1 недељу",withPrepositionIn:"1 недељу"},dual:"{{count}} недеље",other:"{{count}} недеље"},aboutXMonths:{one:{standalone:"око 1 месец",withPrepositionAgo:"око 1 месец",withPrepositionIn:"око 1 месец"},dual:"око {{count}} месеца",other:"око {{count}} месеци"},xMonths:{one:{standalone:"1 месец",withPrepositionAgo:"1 месец",withPrepositionIn:"1 месец"},dual:"{{count}} месеца",other:"{{count}} месеци"},aboutXYears:{one:{standalone:"око 1 годину",withPrepositionAgo:"око 1 годину",withPrepositionIn:"око 1 годину"},dual:"око {{count}} године",other:"око {{count}} година"},xYears:{one:{standalone:"1 година",withPrepositionAgo:"1 године",withPrepositionIn:"1 годину"},dual:"{{count}} године",other:"{{count}} година"},overXYears:{one:{standalone:"преко 1 годину",withPrepositionAgo:"преко 1 годину",withPrepositionIn:"преко 1 годину"},dual:"преко {{count}} године",other:"преко {{count}} година"},almostXYears:{one:{standalone:"готово 1 годину",withPrepositionAgo:"готово 1 годину",withPrepositionIn:"готово 1 годину"},dual:"готово {{count}} године",other:"готово {{count}} година"}},Wg={date:jo({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'у' {{time}}",long:"{{date}} 'у' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ng={lastWeek:e=>{switch(e.getDay()){case 0:return"'прошле недеље у' p";case 3:return"'прошле среде у' p";case 6:return"'прошле суботе у' p";default:return"'прошли' EEEE 'у' p"}},yesterday:"'јуче у' p",today:"'данас у' p",tomorrow:"'сутра у' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'следеће недеље у' p";case 3:return"'следећу среду у' p";case 6:return"'следећу суботу у' p";default:return"'следећи' EEEE 'у' p"}},other:"P"},Lg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["пр.н.е.","АД"],abbreviated:["пр. Хр.","по. Хр."],wide:["Пре Христа","После Христа"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. кв.","2. кв.","3. кв.","4. кв."],wide:["1. квартал","2. квартал","3. квартал","4. квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","П","У","С","Ч","П","С"],short:["нед","пон","уто","сре","чет","пет","суб"],abbreviated:["нед","пон","уто","сре","чет","пет","суб"],wide:["недеља","понедељак","уторак","среда","четвртак","петак","субота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},defaultWidth:"wide",formattingValues:{narrow:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},defaultFormattingWidth:"wide"})},Fg={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^пр/i,/^(по|нова)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},defaultParseWidth:"any"})},Ug={code:"sr",formatDistance:(e,t,n)=>{let r;const i=zg[e];return r="string"==typeof i?i:1===t?n?.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?i.dual.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"за "+r:"пре "+r:r},formatLong:Wg,formatRelative:(e,t,n,r)=>{const i=Ng[e];return"function"==typeof i?i(t):i},localize:Lg,match:Fg,options:{weekStartsOn:1,firstWeekContainsDate:1}},Xg={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},qg={date:jo({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Bg={lastWeek:e=>{switch(e.getDay()){case 0:return"'prošle nedelje u' p";case 3:return"'prošle srede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'sledeće nedelje u' p";case 3:return"'sledeću sredu u' p";case 6:return"'sledeću subotu u' p";default:return"'sledeći' EEEE 'u' p"}},other:"P"},Vg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},defaultFormattingWidth:"wide"})},Yg={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})},Zg={code:"sr-Latn",formatDistance:(e,t,n)=>{let r;const i=Xg[e];return r="string"==typeof i?i:1===t?n?.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?i.dual.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"za "+r:"pre "+r:r},formatLong:qg,formatRelative:(e,t,n,r)=>{const i=Bg[e];return"function"==typeof i?i(t):i},localize:Vg,match:Yg,options:{weekStartsOn:1,firstWeekContainsDate:1}},Gg={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},Hg=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],Kg={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Jg={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},ev={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 2:return n+":a"}return n+":e"},era:zo({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},defaultFormattingWidth:"wide"})},tv={ordinalNumber:Lo({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:"any"})},nv={code:"sv",formatDistance:(e,t,n)=>{let r;const i=Gg[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t<13?Hg[t]:String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" sedan":r},formatLong:Kg,formatRelative:(e,t,n,r)=>Jg[e],localize:ev,match:tv,options:{weekStartsOn:1,firstWeekContainsDate:4}},rv={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},iv={date:jo({formats:{full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},defaultWidth:"full"}),time:jo({formats:{full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ov={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},av={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},defaultWidth:"wide",formattingValues:{narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},defaultFormattingWidth:"wide"})},sv={ordinalNumber:Lo({matchPattern:/^(\d+)(வது)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},defaultParseWidth:"any"})},lv={code:"ta",formatDistance:(e,t,n)=>{const r=n?.addSuffix?n.comparison&&n.comparison>0?"in":"ago":"default",i=rv[e];return void 0===i.one?i[r]:1===t?i.one[r]:i.other[r].replace("{{count}}",String(t))},formatLong:iv,formatRelative:(e,t,n,r)=>ov[e],localize:av,match:sv,options:{weekStartsOn:1,firstWeekContainsDate:4}},uv={lessThanXSeconds:{standalone:{one:"సెకను కన్నా తక్కువ",other:"{{count}} సెకన్ల కన్నా తక్కువ"},withPreposition:{one:"సెకను",other:"{{count}} సెకన్ల"}},xSeconds:{standalone:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"},withPreposition:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"}},halfAMinute:{standalone:"అర నిమిషం",withPreposition:"అర నిమిషం"},lessThanXMinutes:{standalone:{one:"ఒక నిమిషం కన్నా తక్కువ",other:"{{count}} నిమిషాల కన్నా తక్కువ"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},xMinutes:{standalone:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాలు"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},aboutXHours:{standalone:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటలు"},withPreposition:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటల"}},xHours:{standalone:{one:"ఒక గంట",other:"{{count}} గంటలు"},withPreposition:{one:"ఒక గంట",other:"{{count}} గంటల"}},xDays:{standalone:{one:"ఒక రోజు",other:"{{count}} రోజులు"},withPreposition:{one:"ఒక రోజు",other:"{{count}} రోజుల"}},aboutXWeeks:{standalone:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలు"},withPreposition:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలల"}},xWeeks:{standalone:{one:"ఒక వారం",other:"{{count}} వారాలు"},withPreposition:{one:"ఒక వారం",other:"{{count}} వారాలల"}},aboutXMonths:{standalone:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలలు"},withPreposition:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలల"}},xMonths:{standalone:{one:"ఒక నెల",other:"{{count}} నెలలు"},withPreposition:{one:"ఒక నెల",other:"{{count}} నెలల"}},aboutXYears:{standalone:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాలు"},withPreposition:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాల"}},xYears:{standalone:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాలు"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},overXYears:{standalone:{one:"ఒక సంవత్సరం పైగా",other:"{{count}} సంవత్సరాలకు పైగా"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},almostXYears:{standalone:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాలు"},withPreposition:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాల"}}},cv={date:jo({formats:{full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}'కి'",long:"{{date}} {{time}}'కి'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},dv={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"},fv={ordinalNumber:(e,t)=>Number(e)+"వ",era:zo({values:{narrow:["క్రీ.పూ.","క్రీ.శ."],abbreviated:["క్రీ.పూ.","క్రీ.శ."],wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["త్రై1","త్రై2","త్రై3","త్రై4"],wide:["1వ త్రైమాసికం","2వ త్రైమాసికం","3వ త్రైమాసికం","4వ త్రైమాసికం"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],abbreviated:["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],wide:["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ఆ","సో","మ","బు","గు","శు","శ"],short:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],abbreviated:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],wide:["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},defaultWidth:"wide",formattingValues:{narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},defaultFormattingWidth:"wide"})},hv={ordinalNumber:Lo({matchPattern:/^(\d+)(వ)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(పూ|శ)/i,/^సా/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},defaultParseWidth:"any"})},pv={code:"te",formatDistance:(e,t,n)=>{let r;const i=n?.addSuffix?uv[e].withPreposition:uv[e].standalone;return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"లో":r+" క్రితం":r},formatLong:cv,formatRelative:(e,t,n,r)=>dv[e],localize:fv,match:hv,options:{weekStartsOn:0,firstWeekContainsDate:1}},mv={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},gv={date:jo({formats:{full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},defaultWidth:"medium"}),dateTime:jo({formats:{full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vv={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},Ov={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},defaultWidth:"wide"}),day:zo({values:{narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},defaultFormattingWidth:"wide"})},yv={ordinalNumber:Lo({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},defaultParseWidth:"any"})},bv={code:"th",formatDistance:(e,t,n)=>{let r;const i=mv[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"halfAMinute"===e?"ใน"+r:"ใน "+r:r+"ที่ผ่านมา":r},formatLong:gv,formatRelative:(e,t,n,r)=>vv[e],localize:Ov,match:yv,options:{weekStartsOn:0,firstWeekContainsDate:1}},wv={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},kv={date:jo({formats:{full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},xv={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},_v={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},defaultWidth:"wide"}),day:zo({values:{narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},defaultWidth:"wide",formattingValues:{narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},defaultFormattingWidth:"wide"})},Sv={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:"any"})},Pv={code:"tr",formatDistance:(e,t,n)=>{let r;const i=wv[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" önce":r},formatLong:kv,formatRelative:(e,t,n,r)=>xv[e],localize:_v,match:Sv,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ev={lessThanXSeconds:{one:"بىر سىكۇنت ئىچىدە",other:"سىكۇنت ئىچىدە {{count}}"},xSeconds:{one:"بىر سىكۇنت",other:"سىكۇنت {{count}}"},halfAMinute:"يىرىم مىنۇت",lessThanXMinutes:{one:"بىر مىنۇت ئىچىدە",other:"مىنۇت ئىچىدە {{count}}"},xMinutes:{one:"بىر مىنۇت",other:"مىنۇت {{count}}"},aboutXHours:{one:"تەخمىنەن بىر سائەت",other:"سائەت {{count}} تەخمىنەن"},xHours:{one:"بىر سائەت",other:"سائەت {{count}}"},xDays:{one:"بىر كۈن",other:"كۈن {{count}}"},aboutXWeeks:{one:"تەخمىنەن بىرھەپتە",other:"ھەپتە {{count}} تەخمىنەن"},xWeeks:{one:"بىرھەپتە",other:"ھەپتە {{count}}"},aboutXMonths:{one:"تەخمىنەن بىر ئاي",other:"ئاي {{count}} تەخمىنەن"},xMonths:{one:"بىر ئاي",other:"ئاي {{count}}"},aboutXYears:{one:"تەخمىنەن بىر يىل",other:"يىل {{count}} تەخمىنەن"},xYears:{one:"بىر يىل",other:"يىل {{count}}"},overXYears:{one:"بىر يىلدىن ئارتۇق",other:"يىلدىن ئارتۇق {{count}}"},almostXYears:{one:"ئاساسەن بىر يىل",other:"يىل {{count}} ئاساسەن"}},Cv={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'دە' {{time}}",long:"{{date}} 'دە' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Tv={lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p",yesterday:"'تۈنۈگۈن دە' p",today:"'بۈگۈن دە' p",tomorrow:"'ئەتە دە' p",nextWeek:"eeee 'دە' p",other:"P"},$v={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["ب","ك"],abbreviated:["ب","ك"],wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["بىرىنجى چارەك","ئىككىنجى چارەك","ئۈچىنجى چارەك","تۆتىنجى چارەك"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ي","ف","م","ا","م","ى","ى","ا","س","ۆ","ن","د"],abbreviated:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"],wide:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ي","د","س","چ","پ","ج","ش"],short:["ي","د","س","چ","پ","ج","ش"],abbreviated:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],wide:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"}},defaultFormattingWidth:"wide"})},Qv={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^بۇرۇن/i,/^كىيىن/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},defaultParseWidth:"any"})},Rv={code:"ug",formatDistance:(e,t,n)=>{let r;const i=Ev[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r:r+" بولدى":r},formatLong:Cv,formatRelative:(e,t,n,r)=>Tv[e],localize:$v,match:Qv,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Av(e,t){if(void 0!==e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function jv(e){return(t,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?Av(e.future,t):"за "+Av(e.regular,t):e.past?Av(e.past,t):Av(e.regular,t)+" тому":Av(e.regular,t)}const Dv={lessThanXSeconds:jv({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:jv({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини",lessThanXMinutes:jv({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:jv({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:jv({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:jv({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:jv({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:jv({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:jv({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:jv({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:jv({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:jv({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:jv({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:jv({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:jv({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},Mv={date:jo({formats:{full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Iv=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function zv(e){return"'у "+Iv[e]+" о' p"}const Wv={lastWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?zv(i):function(e){const t=Iv[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}(i)},yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?zv(i):function(e){const t=Iv[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}(i)},other:"P"},Nv={ordinalNumber:(e,t)=>{const n=String(t?.unit),r=Number(e);let i;return i="date"===n?3===r||23===r?"-є":"-е":"minute"===n||"second"===n||"hour"===n?"-а":"-й",r+i},era:zo({values:{narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},defaultFormattingWidth:"wide"})},Lv={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(е|й|є|а|я))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},Fv={code:"uk",formatDistance:(e,t,n)=>(n=n||{},Dv[e](t,n)),formatLong:Mv,formatRelative:(e,t,n,r)=>{const i=Wv[e];return"function"==typeof i?i(t,n,r):i},localize:Nv,match:Lv,options:{weekStartsOn:1,firstWeekContainsDate:1}},Uv={lessThanXSeconds:{one:"sekunddan kam",other:"{{count}} sekunddan kam"},xSeconds:{one:"1 sekund",other:"{{count}} sekund"},halfAMinute:"yarim minut",lessThanXMinutes:{one:"bir minutdan kam",other:"{{count}} minutdan kam"},xMinutes:{one:"1 minut",other:"{{count}} minut"},aboutXHours:{one:"tahminan 1 soat",other:"tahminan {{count}} soat"},xHours:{one:"1 soat",other:"{{count}} soat"},xDays:{one:"1 kun",other:"{{count}} kun"},aboutXWeeks:{one:"tahminan 1 hafta",other:"tahminan {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"tahminan 1 oy",other:"tahminan {{count}} oy"},xMonths:{one:"1 oy",other:"{{count}} oy"},aboutXYears:{one:"tahminan 1 yil",other:"tahminan {{count}} yil"},xYears:{one:"1 yil",other:"{{count}} yil"},overXYears:{one:"1 yildan ko'p",other:"{{count}} yildan ko'p"},almostXYears:{one:"deyarli 1 yil",other:"deyarli {{count}} yil"}},Xv={date:jo({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss zzzz",long:"h:mm:ss z",medium:"h:mm:ss",short:"h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},qv={lastWeek:"'oldingi' eeee p 'da'",yesterday:"'kecha' p 'da'",today:"'bugun' p 'da'",tomorrow:"'ertaga' p 'da'",nextWeek:"eeee p 'da'",other:"P"},Bv={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["M.A","M."],abbreviated:["M.A","M."],wide:["Miloddan Avvalgi","Milodiy"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["CH.1","CH.2","CH.3","CH.4"],wide:["1-chi chorak","2-chi chorak","3-chi chorak","4-chi chorak"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Y","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Y","D","S","CH","P","J","SH"],short:["Ya","Du","Se","Cho","Pa","Ju","Sha"],abbreviated:["Yak","Dush","Sesh","Chor","Pay","Jum","Shan"],wide:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},defaultFormattingWidth:"wide"})},Vv={ordinalNumber:Lo({matchPattern:/^(\d+)(chi)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(m\.a|m\.)/i,abbreviated:/^(m\.a\.?\s?m\.?)/i,wide:/^(miloddan avval|miloddan keyin)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](chi)? chorak/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[yfmasond]/i,abbreviated:/^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i,wide:/^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^y/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ya/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^iyun/i,/^iyul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[ydschj]/i,short:/^(ya|du|se|cho|pa|ju|sha)/i,abbreviated:/^(yak|dush|sesh|chor|pay|jum|shan)/i,wide:/^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^y/i,/^d/i,/^s/i,/^ch/i,/^p/i,/^j/i,/^sh/i],any:[/^ya/i,/^d/i,/^se/i,/^ch/i,/^p/i,/^j/i,/^sh/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i,any:/^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^y\.t/i,noon:/^pe/i,morning:/ertalab/i,afternoon:/tushdan keyin/i,evening:/kechqurun/i,night:/tun/i}},defaultParseWidth:"any"})},Yv={code:"uz",formatDistance:(e,t,n)=>{let r;const i=Uv[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" dan keyin":r+" oldin":r},formatLong:Xv,formatRelative:(e,t,n,r)=>qv[e],localize:Bv,match:Vv,options:{weekStartsOn:1,firstWeekContainsDate:1}},Zv={lessThanXSeconds:{one:"1 сониядан кам",other:"{{count}} сониядан кам"},xSeconds:{one:"1 сония",other:"{{count}} сония"},halfAMinute:"ярим дақиқа",lessThanXMinutes:{one:"1 дақиқадан кам",other:"{{count}} дақиқадан кам"},xMinutes:{one:"1 дақиқа",other:"{{count}} дақиқа"},aboutXHours:{one:"тахминан 1 соат",other:"тахминан {{count}} соат"},xHours:{one:"1 соат",other:"{{count}} соат"},xDays:{one:"1 кун",other:"{{count}} кун"},aboutXWeeks:{one:"тахминан 1 хафта",other:"тахминан {{count}} хафта"},xWeeks:{one:"1 хафта",other:"{{count}} хафта"},aboutXMonths:{one:"тахминан 1 ой",other:"тахминан {{count}} ой"},xMonths:{one:"1 ой",other:"{{count}} ой"},aboutXYears:{one:"тахминан 1 йил",other:"тахминан {{count}} йил"},xYears:{one:"1 йил",other:"{{count}} йил"},overXYears:{one:"1 йилдан кўп",other:"{{count}} йилдан кўп"},almostXYears:{one:"деярли 1 йил",other:"деярли {{count}} йил"}},Gv={date:jo({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},Hv={lastWeek:"'ўтган' eeee p 'да'",yesterday:"'кеча' p 'да'",today:"'бугун' p 'да'",tomorrow:"'эртага' p 'да'",nextWeek:"eeee p 'да'",other:"P"},Kv={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["М.А","М"],abbreviated:["М.А","М"],wide:["Милоддан Аввалги","Милодий"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-чор.","2-чор.","3-чор.","4-чор."],wide:["1-чорак","2-чорак","3-чорак","4-чорак"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],wide:["январ","феврал","март","апрел","май","июн","июл","август","сентабр","октабр","ноябр","декабр"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Я","Д","С","Ч","П","Ж","Ш"],short:["як","ду","се","чо","па","жу","ша"],abbreviated:["якш","душ","сеш","чор","пай","жум","шан"],wide:["якшанба","душанба","сешанба","чоршанба","пайшанба","жума","шанба"]},defaultWidth:"wide"}),dayPeriod:zo({values:{any:{am:"П.О.",pm:"П.К.",midnight:"ярим тун",noon:"пешин",morning:"эрталаб",afternoon:"пешиндан кейин",evening:"кечаси",night:"тун"}},defaultWidth:"any",formattingValues:{any:{am:"П.О.",pm:"П.К.",midnight:"ярим тун",noon:"пешин",morning:"эрталаб",afternoon:"пешиндан кейин",evening:"кечаси",night:"тун"}},defaultFormattingWidth:"any"})},Jv={ordinalNumber:Lo({matchPattern:/^(\d+)(чи)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(м\.а|м\.)/i,abbreviated:/^(м\.а|м\.)/i,wide:/^(милоддан аввал|милоддан кейин)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^м/i,/^а/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-чор./i,wide:/^[1234]-чорак/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[яфмамииасонд]/i,abbreviated:/^(янв|фев|мар|апр|май|июн|июл|авг|сен|окт|ноя|дек)/i,wide:/^(январ|феврал|март|апрел|май|июн|июл|август|сентабр|октабр|ноябр|декабр)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^д/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[ядсчпжш]/i,short:/^(як|ду|се|чо|па|жу|ша)/i,abbreviated:/^(якш|душ|сеш|чор|пай|жум|шан)/i,wide:/^(якшанба|душанба|сешанба|чоршанба|пайшанба|жума|шанба)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^д/i,/^с/i,/^ч/i,/^п/i,/^ж/i,/^ш/i],any:[/^як/i,/^ду/i,/^се/i,/^чор/i,/^пай/i,/^жу/i,/^шан/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(п\.о\.|п\.к\.|ярим тун|пешиндан кейин|(эрталаб|пешиндан кейин|кечаси|тун))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^п\.о\./i,pm:/^п\.к\./i,midnight:/^ярим тун/i,noon:/^пешиндан кейин/i,morning:/эрталаб/i,afternoon:/пешиндан кейин/i,evening:/кечаси/i,night:/тун/i}},defaultParseWidth:"any"})},eO={code:"uz-Cyrl",formatDistance:(e,t,n)=>{let r;const i=Zv[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"дан кейин":r+" олдин":r},formatLong:Gv,formatRelative:(e,t,n,r)=>Hv[e],localize:Kv,match:Jv,options:{weekStartsOn:1,firstWeekContainsDate:1}},tO={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},nO={date:jo({formats:{full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},rO={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},iO={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if("quarter"===r)switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if("day"===r)switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if("week"===r)return 1===n?"thứ nhất":"thứ "+n;if("dayOfYear"===r)return 1===n?"đầu tiên":"thứ "+n}return String(n)},era:zo({values:{narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},defaultWidth:"wide",formattingValues:{narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},defaultFormattingWidth:"wide"})},oO={ordinalNumber:Lo({matchPattern:/^(\d+)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^t/i,/^s/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},defaultParseWidth:"wide"}),day:No({matchPatterns:{narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},defaultParseWidth:"any"})},aO={code:"vi",formatDistance:(e,t,n)=>{let r;const i=tO[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" nữa":r+" trước":r},formatLong:nO,formatRelative:(e,t,n,r)=>rO[e],localize:iO,match:oO,options:{weekStartsOn:1,firstWeekContainsDate:1}},sO={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},lO={date:jo({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function uO(e,t,n){const r="eeee p";return fl(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}const cO={lastWeek:uO,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:uO,other:"PP p"},dO={ordinalNumber:(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:zo({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:zo({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},fO={ordinalNumber:Lo({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},hO={code:"zh-CN",formatDistance:(e,t,n)=>{let r;const i=sO[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r},formatLong:lO,formatRelative:(e,t,n,r)=>{const i=cO[e];return"function"==typeof i?i(t,n,r):i},localize:dO,match:fO,options:{weekStartsOn:1,firstWeekContainsDate:4}},pO={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},mO={date:jo({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},gO={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},vO={ordinalNumber:(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n+"日";case"hour":return n+"時";case"minute":return n+"分";case"second":return n+"秒";default:return"第 "+n}},era:zo({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:zo({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},defaultFormattingWidth:"wide"})},OO={ordinalNumber:Lo({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]季/i,wide:/^第[一二三四]季度/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},yO={code:"zh-HK",formatDistance:(e,t,n)=>{let r;const i=pO[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"內":r+"前":r},formatLong:mO,formatRelative:(e,t,n,r)=>gO[e],localize:vO,match:OO,options:{weekStartsOn:0,firstWeekContainsDate:1}},bO={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},wO={date:jo({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},kO={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},xO={ordinalNumber:(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n+"日";case"hour":return n+"時";case"minute":return n+"分";case"second":return n+"秒";default:return"第 "+n}},era:zo({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:zo({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultFormattingWidth:"wide"})},_O={ordinalNumber:Lo({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},SO={code:"zh-TW",formatDistance:(e,t,n)=>{let r;const i=bO[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"內":r+"前":r},formatLong:wO,formatRelative:(e,t,n,r)=>kO[e],localize:xO,match:_O,options:{weekStartsOn:1,firstWeekContainsDate:4}},PO="yyyy-MM-dd",EO="HH:mm:ss",CO="yyyy-MM-dd'T'HH:mm:ss",TO="XXX";function $O(e){var t,n;if(!e)return;const r=e.picker_utc?"":TO,i=null===(t=e.date_format)||void 0===t||t,o=null===(n=e.time_format)||void 0===n||n;let a=e.format,s=!1;var l;if(!1===o)a=null!==(l=e.format)&&void 0!==l?l:PO;else if(!1===i){var u;a=null!==(u=e.format)&&void 0!==u?u:EO,s=!e.format}else{var c;a=null!==(c=e.format)&&void 0!==c?c:CO,s=!e.format}const d=function(e,t,n){if("string"==typeof e||"string"==typeof t){const n=[];if("string"==typeof e&&Ne(e)?n.push(e):!1!==e&&n.push(PO),"string"==typeof t&&Ne(t)?n.push(t):!1!==t&&n.push(`${EO}`),n.length>0)return n.join(" ")}return!1===t?null!=n?n:PO:!1===e?null!=n?n:`${EO}`:null!=n?n:`${CO}`}(i,o,a);return{storageFormat:`${a}${s?r:""}`,dateFormat:i,timeFormat:o,displayFormat:d,timezoneExtra:r}}function QO(e){return(0,c.useMemo)((()=>$O(e)),[e])}var RO=__webpack_require__(24865),AO=__webpack_require__.n(RO),jO="delete",DO=5,MO=1<>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?LO(e)+t:t}function UO(){return!0}function XO(e,t,n){return(0===e&&!YO(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function qO(e,t){return VO(e,t,0)}function BO(e,t){return VO(e,t,t)}function VO(e,t,n){return void 0===e?n:YO(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function YO(e){return e<0||0===e&&1/e==-1/0}var ZO="@@__IMMUTABLE_ITERABLE__@@";function GO(e){return Boolean(e&&e[ZO])}var HO="@@__IMMUTABLE_KEYED__@@";function KO(e){return Boolean(e&&e[HO])}var JO="@@__IMMUTABLE_INDEXED__@@";function ey(e){return Boolean(e&&e[JO])}function ty(e){return KO(e)||ey(e)}var ny=function(e){return GO(e)?e:Cy(e)},ry=function(e){function t(e){return KO(e)?e:Ty(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ny),iy=function(e){function t(e){return ey(e)?e:$y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ny),oy=function(e){function t(e){return GO(e)&&!ty(e)?e:Qy(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ny);ny.Keyed=ry,ny.Indexed=iy,ny.Set=oy;var ay="@@__IMMUTABLE_SEQ__@@";function sy(e){return Boolean(e&&e[ay])}var ly="@@__IMMUTABLE_RECORD__@@";function uy(e){return Boolean(e&&e[ly])}function cy(e){return GO(e)||uy(e)}var dy="@@__IMMUTABLE_ORDERED__@@";function fy(e){return Boolean(e&&e[dy])}var hy=0,py=1,my=2,gy="function"==typeof Symbol&&Symbol.iterator,vy="@@iterator",Oy=gy||vy,yy=function(e){this.next=e};function by(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function wy(){return{value:void 0,done:!0}}function ky(e){return!!Array.isArray(e)||!!Sy(e)}function xy(e){return e&&"function"==typeof e.next}function _y(e){var t=Sy(e);return t&&t.call(e)}function Sy(e){var t=e&&(gy&&e[gy]||e[vy]);if("function"==typeof t)return t}yy.prototype.toString=function(){return"[Iterator]"},yy.KEYS=hy,yy.VALUES=py,yy.ENTRIES=my,yy.prototype.inspect=yy.prototype.toSource=function(){return this.toString()},yy.prototype[Oy]=function(){return this};const Py=Object.prototype.hasOwnProperty,Ey=function(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))};var Cy=function(e){function t(e){return null==e?My():cy(e)?e.toSeq():function(e){var t,n,r=Wy(e);if(r)return(n=Sy(t=e))&&n===t.entries?r.fromEntrySeq():function(e){var t=Sy(e);return t&&t===e.keys}(e)?r.toSetSeq():r;if("object"==typeof e)return new Ay(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new yy((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return by(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(ny),Ty=function(e){function t(e){return null==e?My().toKeyedSeq():GO(e)?KO(e)?e.toSeq():e.fromEntrySeq():uy(e)?e.toSeq():Iy(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Cy),$y=function(e){function t(e){return null==e?My():GO(e)?KO(e)?e.entrySeq():e.toIndexedSeq():uy(e)?e.toSeq().entrySeq():zy(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Cy),Qy=function(e){function t(e){return(GO(e)&&!ty(e)?e:$y(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Cy);Cy.isSeq=sy,Cy.Keyed=Ty,Cy.Set=Qy,Cy.Indexed=$y,Cy.prototype[ay]=!0;var Ry=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[FO(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new yy((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return by(e,o,n[o])}))},t}($y),Ay=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return Py.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new yy((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return by(e,a,n[a])}))},t}(Ty);Ay.prototype[dy]=!0;var jy,Dy=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=_y(this._collection),r=0;if(xy(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=_y(this._collection);if(!xy(n))return new yy(wy);var r=0;return new yy((function(){var t=n.next();return t.done?t:by(e,r++,t.value)}))},t}($y);function My(){return jy||(jy=new Ry([]))}function Iy(e){var t=Wy(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new Ay(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function zy(e){var t=Wy(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Wy(e){return Ey(e)?new Ry(e):ky(e)?new Dy(e):void 0}var Ny="@@__IMMUTABLE_MAP__@@";function Ly(e){return Boolean(e&&e[Ny])}function Fy(e){return Ly(e)&&fy(e)}function Uy(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function Xy(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(Uy(e)&&Uy(t)&&e.equals(t))}var qy="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function By(e){return e>>>1&1073741824|3221225471&e}var Vy=Object.prototype.valueOf;function Yy(e){if(null==e)return Zy(e);if("function"==typeof e.hashCode)return By(e.hashCode(e));var t,n,r,i=(t=e).valueOf!==Vy&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==i)return Zy(i);switch(typeof i){case"boolean":return i?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return By(t)}(i);case"string":return i.length>ob?function(e){var t=lb[e];return void 0===t&&(t=Gy(e),sb===ab&&(sb=0,lb={}),sb++,lb[e]=t),t}(i):Gy(i);case"object":case"function":return function(e){var t;if(tb&&void 0!==(t=eb.get(e)))return t;if(void 0!==(t=e[ib]))return t;if(!Ky){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ib]))return t;if(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e),void 0!==t)return t}if(t=Jy(),tb)eb.set(e,t);else{if(void 0!==Hy&&!1===Hy(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ky)Object.defineProperty(e,ib,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ib]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ib]=t}}return t}(i);case"symbol":return void 0!==(r=nb[n=i])||(r=Jy(),nb[n]=r),r;default:if("function"==typeof i.toString)return Gy(i.toString());throw new Error("Value type "+typeof i+" cannot be hashed.")}}function Zy(e){return null===e?1108378658:1108378659}function Gy(e){for(var t=0,n=0;n=0&&(u.get=function(t,n){return(t=FO(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===py||e.done?e:by(t,l-1,t===hy?void 0:e.value[1],e)}))},u}function Ob(e,t,n,r){var i=Eb(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return l++,i(e,r?o:l-1,a)})),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(my,o),l=!0,u=0;return new yy((function(){var e,o,c;do{if((e=s.next()).done)return r||i===py?e:by(i,u++,i===hy?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],l&&(l=t.call(n,c,o,a))}while(l);return i===my?e:by(i,o,c,e)}))},i}function yb(e,t,n){var r=Eb(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(l,u){l.__iterate((function(o,l){return(!t||u0}function xb(e,t,n,r){var i=Eb(e),o=new Ry(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(py,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=ny(e),_y(i?e.reverse():e)})),a=0,s=!1;return new yy((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:by(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function _b(e,t){return e===t?e:sy(e)?t:e.constructor(t)}function Sb(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Pb(e){return KO(e)?ry:ey(e)?iy:oy}function Eb(e){return Object.create((KO(e)?Ty:ey(e)?$y:Qy).prototype)}function Cb(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Cy.prototype.cacheResult.call(this)}function Tb(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return Zb(this,t,e)}function Zb(e,t,n){for(var r=[],i=0;i0;)t[n]=arguments[n+1];return Gb(this,t,e)}function ew(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Wb(this,e,Ow(),(function(e){return Hb(e,t)}))}function tw(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Wb(this,e,Ow(),(function(e){return Gb(e,t)}))}function nw(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function rw(){return this.__ownerID?this:this.__ensureOwner(new NO)}function iw(){return this.__ensureOwner()}function ow(){return this.__altered}var aw=function(e){function t(t){return null==t?Ow():Ly(t)&&!fy(t)?t:Ow().withMutations((function(n){var r=e(t);Rb(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ow().withMutations((function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return yw(this,e,t)},t.prototype.remove=function(e){return yw(this,e,zO)},t.prototype.deleteAll=function(e){var t=ny(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ow()},t.prototype.sort=function(e){return Xw(bb(this,e))},t.prototype.sortBy=function(e,t){return Xw(bb(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,e.call(t,i,o,n))}))}))},t.prototype.__iterator=function(e,t){return new pw(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?vw(this.size,this._root,e,this.__hash):0===this.size?Ow():(this.__ownerID=e,this.__altered=!1,this)},t}(ry);aw.isMap=Ly;var sw=aw.prototype;sw[Ny]=!0,sw[jO]=sw.remove,sw.removeAll=sw.deleteAll,sw.setIn=Fb,sw.removeIn=sw.deleteIn=Ub,sw.update=qb,sw.updateIn=Bb,sw.merge=sw.concat=Vb,sw.mergeWith=Yb,sw.mergeDeep=Kb,sw.mergeDeepWith=Jb,sw.mergeIn=ew,sw.mergeDeepIn=tw,sw.withMutations=nw,sw.wasAltered=ow,sw.asImmutable=iw,sw["@@transducer/init"]=sw.asMutable=rw,sw["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},sw["@@transducer/result"]=function(e){return e.asImmutable()};var lw=function(e,t){this.ownerID=e,this.entries=t};lw.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=Sw)return function(e,t,n,r){e||(e=new NO);for(var i=new fw(e,Yy(n),[n,r]),o=0;o>>e)&IO),o=this.bitmap;return 0==(o&i)?r:this.nodes[xw(o&i-1)].get(e+DO,t,n,r)},uw.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Yy(r));var s=(0===t?n:n>>>t)&IO,l=1<=Pw)return function(e,t,n,r,i){for(var o=0,a=new Array(MO),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new cw(e,o+1,a)}(e,f,u,s,p);if(c&&!p&&2===f.length&&ww(f[1^d]))return f[1^d];if(c&&p&&1===f.length&&ww(p))return p;var m=e&&e===this.ownerID,g=c?p?u:u^l:u|l,v=c?p?_w(f,d,p,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&IO,o=this.nodes[i];return o?o.get(e+DO,t,n,r):r},cw.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Yy(r));var s=(0===t?n:n>>>t)&IO,l=i===zO,u=this.nodes,c=u[s];if(l&&!c)return this;var d=bw(c,e,t+DO,n,r,i,o,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f>>n)&IO,s=(0===n?r:r>>>n)&IO,l=a===s?[kw(e,t,n+DO,r,i)]:(o=new fw(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function _w(e,t,n,r){var i=r?e:$b(e);return i[t]=n,i}var Sw=MO/4,Pw=MO/2,Ew=MO/4,Cw="@@__IMMUTABLE_LIST__@@";function Tw(e){return Boolean(e&&e[Cw])}var $w=function(e){function t(t){var n=Iw();if(null==t)return n;if(Tw(t))return t;var r=e(t),i=r.size;return 0===i?n:(Rb(i),i>0&&i=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?Lw(e,t).set(0,n):Lw(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};return t>=Fw(e._capacity)?r=zw(r,e.__ownerID,0,t,n,o):i=zw(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Mw(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=DO,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Iw()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Lw(n,0,t+e.length);for(var r=0;r>>t&IO;if(r>=this.array.length)return new Rw([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-DO,n))===a&&o)return this}if(o&&!i)return this;var s=Ww(this,e);if(!o)for(var l=0;l>>t&IO;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-DO,n))===o&&i===this.array.length-1)return this}var a=Ww(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Aw,jw={};function Dw(e,t){var n=e._origin,r=e._capacity,i=Fw(r),o=e._tail;return function e(a,s,l){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>MO&&(u=MO),function(){if(l===u)return jw;var e=t?--u:l++;return s&&s[e]}}(a,l):function(i,o,a){var s,l=i&&i.array,u=a>n?0:n-a>>o,c=1+(r-a>>o);return c>MO&&(c=MO),function(){for(;;){if(s){var n=s();if(n!==jw)return n;s=null}if(u===c)return jw;var r=t?--c:u++;s=e(l&&l[r],o-DO,a+(r<>>n&IO,l=e&&s0){var u=e&&e.array[s],c=zw(u,t,n-DO,r,i,o);return c===u?e:((a=Ww(e,t)).array[s]=c,a)}return l&&e.array[s]===i?e:(o&&WO(o),a=Ww(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ww(e,t){return t&&e&&t===e.ownerID?e:new Rw(e?e.array.slice():[],t)}function Nw(e,t){if(t>=Fw(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&IO],r-=DO;return n}}function Lw(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new NO,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new Rw(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=DO);c&&(a+=c,i+=c,s+=c,o+=c);for(var d=Fw(o),f=Fw(s);f>=1<d?new Rw([],r):h;if(h&&f>d&&aDO;g-=DO){var v=d>>>g&IO;m=m.array[v]=Ww(m.array[v],r)}m.array[d>>>DO&IO]=h}if(s=f)a-=f,s-=f,l=DO,u=null,p=p&&p.removeBefore(r,0,a);else if(a>i||f>>l&IO;if(O!==f>>>l&IO)break;O&&(c+=(1<i&&(u=u.removeBefore(r,l,a-c)),u&&f>>DO<=MO&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):qw(r,i)}Xw.isOrderedMap=Fy,Xw.prototype[dy]=!0,Xw.prototype[jO]=Xw.prototype.remove;var Yw="@@__IMMUTABLE_STACK__@@";function Zw(e){return Boolean(e&&e[Yw])}var Gw=function(e){function t(e){return null==e?ek():Zw(e)?e:ek().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=FO(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Jw(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Zw(t))return t;Rb(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Jw(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):ek()},t.prototype.slice=function(t,n){if(XO(t,n,this.size))return this;var r=qO(t,this.size);if(BO(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Jw(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Jw(this.size,this._head,e,this.__hash):0===this.size?ek():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Ry(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Ry(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new yy((function(){if(r){var t=r.value;return r=r.next,by(e,n++,t)}return{value:void 0,done:!0}}))},t}(iy);Gw.isStack=Zw;var Hw,Kw=Gw.prototype;function Jw(e,t,n,r){var i=Object.create(Kw);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function ek(){return Hw||(Hw=Jw(0))}Kw[Yw]=!0,Kw.shift=Kw.pop,Kw.unshift=Kw.push,Kw.unshiftAll=Kw.pushAll,Kw.withMutations=nw,Kw.wasAltered=ow,Kw.asImmutable=iw,Kw["@@transducer/init"]=Kw.asMutable=rw,Kw["@@transducer/step"]=function(e,t){return e.unshift(t)},Kw["@@transducer/result"]=function(e){return e.asImmutable()};var tk="@@__IMMUTABLE_SET__@@";function nk(e){return Boolean(e&&e[tk])}function rk(e){return nk(e)&&fy(e)}const ik=function(e,t){if(e===t)return!0;if(!GO(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||KO(e)!==KO(t)||ey(e)!==ey(t)||fy(e)!==fy(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!ty(e);if(fy(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&Xy(i[1],e)&&(n||Xy(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,s=t.__iterate((function(t,r){if(n?!e.has(t):i?!Xy(t,e.get(r,zO)):!Xy(e.get(r,zO),t))return a=!1,!1}));return a&&e.size===s},ok=function(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e};function ak(e){if(!e||"object"!=typeof e)return e;if(!GO(e)){if(!Db(e))return e;e=Cy(e)}if(KO(e)){var t={};return e.__iterate((function(e,n){t[n]=ak(e)})),t}var n=[];return e.__iterate((function(e){n.push(ak(e))})),n}var sk=function(e){function t(t){return null==t?fk():nk(t)&&!fy(t)?t:fk().withMutations((function(n){var r=e(t);Rb(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(ry(e).keySeq())},t.intersect=function(e){return(e=ny(e).toArray()).length?uk.intersect.apply(t(e.pop()),e):fk()},t.union=function(e){return(e=ny(e).toArray()).length?uk.union.apply(t(e.pop()),e):fk()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return ck(this,this._map.set(e,e))},t.prototype.remove=function(e){return ck(this,this._map.remove(e))},t.prototype.clear=function(){return ck(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=ck(this,this._map.mapEntries((function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]}),t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r=0&&t=0&&n>>-15,461845907),t=qy(t<<13|t>>>-13,5),t=qy((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=By((t=qy(t^t>>>13,3266489909))^t>>>16)}(i,r)}(this))}});var Ok=ny.prototype;Ok[ZO]=!0,Ok[Oy]=Ok.values,Ok.toJSON=Ok.toArray,Ok.__toStringMapper=Mb,Ok.inspect=Ok.toSource=function(){return this.toString()},Ok.chain=Ok.flatMap,Ok.contains=Ok.includes,ok(ry,{flip:function(){return _b(this,hb(this))},mapEntries:function(e,t){var n=this,r=0;return _b(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return _b(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var yk=ry.prototype;yk[HO]=!0,yk[Oy]=Ok.entries,yk.toJSON=vk,yk.__toStringMapper=function(e,t){return Mb(t)+": "+Mb(e)},ok(iy,{toKeyedSeq:function(){return new ub(this,!1)},filter:function(e,t){return _b(this,gb(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return _b(this,mb(this,!1))},slice:function(e,t){return _b(this,vb(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=qO(e,e<0?this.count():this.size);var r=this.slice(0,e);return _b(this,1===n?r:r.concat($b(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return _b(this,yb(this,e,!1))},get:function(e,t){return(e=FO(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=FO(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function Tk(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}wk.has=Ok.includes,wk.contains=wk.includes,wk.keys=wk.values,ok(Ty,yk),ok($y,bk),ok(Qy,wk);var $k=function(e){function t(e){return null==e?jk():rk(e)?e:jk().withMutations((function(t){var n=oy(e);Rb(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(ry(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(sk);$k.isOrderedSet=rk;var Qk,Rk=$k.prototype;function Ak(e,t){var n=Object.create(Rk);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function jk(){return Qk||(Qk=Ak(Bw()))}Rk[dy]=!0,Rk.zip=bk.zip,Rk.zipWith=bk.zipWith,Rk.zipAll=bk.zipAll,Rk.__empty=jk,Rk.__make=Ak;var Dk=function(e,t){var n;!function(e){if(uy(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(cy(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),l=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var u=0;unx(o,t,n,r,e)))}function ox(e,t,n){if(!n)return t;switch(e){case qk:return t.replace(`${n}/`,"");case Bk:return t.replace(`.${n}`,"");default:return t}}function ax(e,t,n,r){let i=r.find((e=>e.locale===n));i||(i=r[0],console.warn(`[StaticCMS] Could not locale entry for default locale '${n}'`));const o=r.filter((e=>e.locale!==i.locale)).reduce(((e,{locale:t,value:n})=>Lk(e,ex(t).join("."),n.data)),{}),a=ox(t,i.value.path,n),s=xP(e,a);return Uk(Uk(Uk({},i.value),{},{raw:""},o),{},{path:a,slug:s})}function sx(e,t,n){var r,i;const o=t&&null!==(r=null===(i=e.data)||void 0===i?void 0:i[t])&&void 0!==r?r:{},a=n.filter((e=>e!==t)).map((t=>{var n;return{locale:t,value:null===(n=e.data)||void 0===n?void 0:n[t]}})).filter((e=>e.value)).reduce(((e,t)=>Uk(Uk({},e),{},{[t.locale]:{data:t.value}})),{});return Uk(Uk({},e),{},{data:o,i18n:a,raw:""})}function lx(e,t,n){const r=Kk(e);if(!r)return[];const{structure:i,default_locale:o,locales:a}=r;if(i===Vk)return n.map((e=>sx(e,o,a)));const s=AO()(n.map((e=>({locale:rx(i,t,e.path),value:e}))),(({locale:e,value:t})=>ox(i,t.path,e)));return Object.values(s).reduce(((t,n)=>[...t,ax(e,i,o,n)]),[])}function ux(e,t,n,r,i){const o=Ee()(e,["entry","data",...i.split(".")]);var a;return t.i18n===Zk&&n.filter((e=>e!==r)).forEach((t=>{e=Lk(e,["entry",...tx(t,r),i].join("."),o)})),"fields"in t&&!Array.isArray(o)&&(null===(a=t.fields)||void 0===a||a.forEach((t=>{e=ux(e,t,n,r,`${i}.${t.name}`)}))),e}function cx(e,t,n){if("list"===e.widget)return!0===e.i18n?n:t;if("object"===e.widget){var r,i;const o=null!==(r=null==t?void 0:t[e.name])&&void 0!==r?r:null,a=null!==(i=null==n?void 0:n[e.name])&&void 0!==i?i:null;if(!(Array.isArray(o)||"object"!=typeof o||o instanceof Date||Array.isArray(a)||"object"!=typeof a||a instanceof Date))for(const t of e.fields)return cx(t,o,a)}return"translate"===e.i18n?null==n?void 0:n[e.name]:null==t?void 0:t[e.name]}function dx(e,t,n,r){if(!n||n===r)return t;let i=[];const o=yP(e,t.slug);return o?i=o.fields:"fields"in e&&(i=e.fields),Uk(Uk({},t),{},{data:i.reduce(((e,r)=>{var i,o;return e[r.name]=cx(r,t.data,null===(i=t.i18n)||void 0===i||null===(o=i[n])||void 0===o?void 0:o.data),e}),{})})}function fx(e){return Array.isArray(e)||"object"==typeof e&&!(e instanceof Date)?JSON.stringify(e):ze(e)?"":String(e)}function hx(e,t,n){const r=/\.\*$/.test(t.field);let i=t.field;r&&(i=i.replace(/\.\*$/,""));const o=Ee()(e.data,n?`${n}.${i}`:i);return"pattern"in t?Array.isArray(o)&&r?Boolean(o.find((e=>new RegExp(t.pattern).test(fx(e))))):new RegExp(t.pattern).test(fx(o)):Array.isArray(o)&&r?Array.isArray(t.value)?t.matchAll?Boolean(t.value.every((e=>o.find((t=>fx(t)===fx(e)))))):Boolean(o.find((e=>Boolean(t.value.find((t=>fx(t)===fx(e))))))):Boolean(o.find((e=>fx(e)===fx(t.value)))):Array.isArray(t.value)?t.matchAll?Boolean(t.value.every((e=>fx(o)===fx(e)))):Boolean(t.value.find((e=>fx(e)===fx(o)))):fx(o)===fx(t.value)}function px(e,t,n){return"field"in t?hx(e,t,n):new RegExp(t.pattern).test((0,Re.parse)(e.path).base)}function mx(e,t){const n=Qx(t);let r,i;if("fields"in e){var o;let t=null!==(o=e.fields)&&void 0!==o?o:[];for(;(r=n.shift())&&t;){var a,s;if(i=t.find((e=>e.name===r)),i)if("fields"in i)t=null!==(a=null===(s=i)||void 0===s?void 0:s.fields)&&void 0!==a?a:[];else if("types"in i){var l,u;t=null!==(l=null===(u=i)||void 0===u?void 0:u.types)&&void 0!==l?l:[]}}}return i}function gx(e,t){var n;return`${null!==(n=e.label)&&void 0!==n?n:e.name} ${!1===e.required?` (${t("editor.editorControl.field.optional")})`:""}`}function vx(e,t){if(!e)return null;if(0===t.length)return e;if(!("fields"in e)||!e.fields)return null;const n=t.slice(0,1)[0],r=t.slice(1);return vx(e.fields.find((e=>e.name===n)),r)}function Ox(e,t){return vx(Array.isArray(e)?{widget:"object",name:"root",fields:e}:e,(null!=t?t:"").split("."))}function yx(e,t,n,r){var i;if(n&&r){const n=ex(r);return Ee()(t,[...n,e.name])}return null===(i=t.data)||void 0===i?void 0:i[e.name]}function bx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wx(e){for(var t=1;te.toUpperCase()},{pattern:/^lower$/,transform:e=>e.toLowerCase()},{pattern:/^date\('(.+)'\)$/,transform:(e,t,n)=>{if(!n||"datetime"!==n.widget)return e;const{storageFormat:r}=$O(n),i=ls(e,r,new Date);return isNaN(i.getTime())?e:Ta(i,t[1])}},{pattern:/^default\('(.+)'\)$/,transform:(e,t)=>e||t[1]},{pattern:/^ternary\('(.*)',\s*'(.*)'\)$/,transform:(e,t)=>e?t[1]:t[2]},{pattern:/^truncate\(([0-9]+)(?:(?:,\s*['"])([^'"]*)(?:['"]))?\)$/,transform:(e,t)=>{const n=t[2]||"...",r=parseInt(t[1])+n.length;return fs()(e,{length:r,omission:n})}},{pattern:/^split\('(.+)',\s*'(.+)'\)$/,transform:(e,t)=>{if(!e||0===e.trim().length)return"";const n=e.split(t[1]);if(0===n.length)return"";let r=t[2];for(let e=0;e`${e.getUTCFullYear()}`,month:e=>Ex(e.getUTCMonth()+1),day:e=>Ex(e.getUTCDate()),hour:e=>Ex(e.getUTCHours()),minute:e=>Ex(e.getUTCMinutes()),second:e=>Ex(e.getUTCSeconds())};function Tx(e,t,n){var r;if(!t||!n||"datetime"!==n.widget)return;const i=null===(r=e.data)||void 0===r?void 0:r[t];if(i instanceof Date)return i;if("string"!=typeof i)return;const{storageFormat:o}=$O(n);return ls(i,o,new Date)}const $x="SLUG_MISSING_REQUIRED_DATE";function Qx(e){if(!e)return[];const t=[],n=e.split("");let r,i=[];for(;r=n.shift();)["[","]","."].includes(r)?(i.length>0&&t.push(i.join("")),i=[]):i.push(r);return i.length>0&&t.push(i.join("")),t}function Rx({data:e,path:t,paths:n=[]}){t.endsWith(".*")&&(t+=".");const r=t.split(".*.");if(1===r.length)n.push(t);else{const t=r[0],i=Ee()(e,t);Array.isArray(i)&&i.forEach(((i,o)=>{Rx({data:e,path:cs()(`${t}.${o}.${r.slice(1).join(".*.")}`,"."),paths:n})}))}return n}function Ax(e,t){if(!e.startsWith(_x))return;const n=e.slice(_x.length),r=Ee()(t,Qx(n));return"object"==typeof r&&null!==r?JSON.stringify(r):r}function jx(e,t,n="",r,i,o){if(""===e)return"";let a;const s=null!==t,l=e.replace(RegExp(Px,"g"),((e,s,l,u)=>{let c;const d=Ox(i,s),f=Ax(s,r);if(f)c=f;else{if(Cx[s]&&!t)return a=!0,"";c=Cx[s]?Cx[s](t):"slug"===s?n:Ee()(r,Qx(s),"")}if(o)return o(c,d);{const e=function(e){if(e){let t=null;const n=xx.find((n=>(t=e.match(n.pattern),!!t)));if(n)return(e,r)=>n.transform(e,t,r)}return null}(u);e&&(c=e(c,d))}return c}));if(s&&a){const e=new Error;throw e.name=$x,e}return l}function Dx(e){const t=RegExp(Px,"g"),n=RegExp(Sx,"g");return(e.match(t)||[]).map((e=>{const t=e.match(n);return t?t[0]:""}))}function Mx(e,t,n=""){if(!e)return t;const r=(0,Re.extname)(e),i=(0,Re.basename)(e,r),o=(0,Re.dirname)(e).replace(new RegExp(`^(/?)${n}/?`),"$1");return wx(wx({},t),{},{dirname:o,filename:i,extension:""===r?r:r.slice(1)})}var Ix=__webpack_require__(16134),zx=__webpack_require__.n(Ix);function Wx(){let e=zx()(1);return{acquire:function(t=15e3){return new Promise((n=>{const r=setTimeout((()=>{e=zx()(1),n(!1)}),t);e.take((()=>{clearTimeout(r),n(!0)}))}))},release:function(){try{e.leave()}catch(t){if(t instanceof Error&&"leave called too many times."!==t.message)throw t;console.warn("[StaticCMS] Leave called too many times."),e=zx()(1)}}}}const Nx=["url","params"];function Lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fx(e){for(var t=1;tn.abort()),6e4);return fetch(e,Fx(Fx({},t),{},{signal:n.signal})).then((e=>(clearTimeout(r),e))).catch((e=>{if(e instanceof DOMException&&("AbortError"===e.name||"DOMException"===e.name))throw new Error("Request timed out after 60 seconds");throw e}))}function qx(e){const[t,n]=e.split("?");return Fx({url:t},n?{params:(r=n,r.split("&").map((e=>e.split("="))).reduce(((e,[t,n])=>(e[t]=decodeURIComponent(n),e)),{}))}:{});var r}function Bx(e,t){return Fx(Fx({},qx(e)),t||{})}function Vx(e){return`${e.url}${e.params?`?${t=e.params,Object.entries(t).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}`:""}`;var t}const Yx=(Zx=e=>{const{input:t,init:n}=function(e){const{url:t,params:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rZx(function(e){return"string"==typeof e?qx(e):e}(e)));var Zx;const Gx=new RegExp("^(?:[a-z]+:)?//","i"),Hx=(e,t)=>Gx.test(t)?t:e&&t&&"/"!==t[0]&&"/"!==e[e.length-1]?`${e}/${t}`:`${e}${t}`,Kx=e=>(t,n)=>{if("string"==typeof n)return Bx(n,{[e]:t});let r=t;var i;return"headers"===e&&(r=Fx(Fx({},null!==(i=n.headers)&&void 0!==i?i:{}),t)),Fx(Fx({},n),{},{[e]:r})},Jx=Kx("method"),e_=Kx("body"),t_=Kx("headers"),n_=Kx("params"),r_=Kx("cache"),i_={fetchWithTimeout:Xx,fromURL:qx,toURL:Vx,fromFetchArguments:Bx,performRequest:Yx,getAbsoluteRoot:Hx,withRoot:e=>t=>Kx("url")(Hx(e,"string"==typeof t?t:t.url),t),withMethod:Jx,withBody:e_,withHeaders:t_,withParams:n_,withNoCache:e=>r_("no-cache",e)};function o_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t,n,r={}){super(e),o_(this,"message",void 0),o_(this,"status",void 0),o_(this,"api",void 0),o_(this,"meta",void 0),this.message=e,this.status=t,this.api=n,this.name="API_ERROR",this.meta=r}}function s_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),s_(this,"status",void 0),this.status=t}}class u_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),s_(this,"resetSeconds",void 0),this.resetSeconds=t<0?1:t>3600?3600:t}}async function c_(e,t,n=1){e.rateLimiter&&await e.rateLimiter.acquire();try{const n=await e.buildRequest(t),i=e.requestFunction||i_.performRequest,o=await i(n);if(429===o.status){const e=await o.text().catch((()=>"Too many requests"));throw new Error(e)}if(403===o.status){const e=await o.json().catch((()=>({message:""})));if(e.message.match("API rate limit exceeded")){var r;const t=new Date,n=o.headers.has("X-RateLimit-Reset")?parseInt(null!==(r=o.headers.get("X-RateLimit-Reset"))&&void 0!==r?r:"0"):t.getTime()/1e3+60;throw new u_(e.message,n)}o.json=()=>Promise.resolve(e)}return o}catch(r){if(r instanceof Error){if(n>5||"Can't refresh access token when using implicit auth"===r.message)throw r;if(r instanceof u_){if(!e.rateLimiter){const t=r.resetSeconds||n*n;console.info(`[StaticCMS] Pausing requests for ${t} ${1===n?"second":"seconds"} due to fetch failures:`,r.message),e.rateLimiter=Wx(),e.rateLimiter.acquire(),setTimeout((()=>{var t;null===(t=e.rateLimiter)||void 0===t||t.release(),e.rateLimiter=void 0,console.info("[StaticCMS] Done pausing requests")}),1e3*t)}return c_(e,t,n+1)}}throw r}}async function d_(e,t,n,r){const i=e?r?`gh.${e}`:`gh.${e}.blob`:null,o=i?await n.getItem(i):null;if(o)return o;const a=await t();return i&&await n.setItem(i,a),a}async function f_(e,t,n){const r=e?function(e){return`gh.${e}.meta`}(e):null,i=r&&await n.getItem(r);if(i)return i;const o=await t();return r&&await n.setItem(r,o),o}async function h_(e,t,n){const r=function(e){const t=e.split("/");t.pop();return t.reduce(((e,n,r)=>[...e,t.slice(0,r+1).join("/")]),[])}(e),i=await Promise.all(r.map((e=>t(e).then((e=>e.name)).catch((()=>""))))),o=i.filter(Boolean)[0];if(o)throw new a_(`Failed creating branch '${e}' since there is already a branch named '${o}'. Please delete the '${o}' branch and try again`,500,n)}const p_=["deploy"];function m_(e,t){return e.find((({context:e})=>function(e,t){return t?e===t:p_.some((t=>e.includes(t)))}(e,t)))}const g_="cms",v_="static-cms/",O_="Automatically generated by Static CMS",y_="Automatically generated. Merged on Static CMS.";function b_(e,t){return`${e}/${t}`}function w_(e){const t=e.indexOf("/");return{collection:e.slice(0,t),slug:e.slice(t+1)}}function k_(e){return null!=e?e:v_}function x_(e,t){return e.startsWith(k_(t))}function __(e,t){var n;return null!==(n=Me(e.slice(k_(t).length)))&&void 0!==n?n:De.DRAFT}function S_(e,t){return`${k_(t)}${e}`}function P_(e){return e.slice(`${g_}/`.length)}function E_(e){return`${g_}/${e}`}class C_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){super(e),function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"message",void 0),this.message=e,this.name="ACCESS_TOKEN_ERROR"}}function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $_(e){for(var t=1;t(R_.includes(n)&&(t[n]=e[n]),t)),{})}class j_{static create(...e){return new j_(...e)}constructor(...e){if(Q_(this,"store",void 0),Q_(this,"actions",void 0),Q_(this,"data",void 0),Q_(this,"meta",void 0),e[0]instanceof j_)return this.store=e[0].store,this.actions=e[0].actions,this.data=e[0].data,void(this.meta=e[0].meta);this.store=function(...e){var t;const{actions:n,data:r,meta:i}=1===e.length?null!==(t=e[0])&&void 0!==t?t:{actions:new Set,data:{},meta:{}}:{actions:e[0],data:e[1],meta:e[2]};return{actions:new Set([...n]),data:r,meta:A_(i)}}(...e),this.actions=this.store.actions,this.data=this.store.data,this.meta=this.store.meta}updateStore(e){return new j_(e(this.store))}hasAction(e){return function(e,t){return e.actions.has(t)}(this.store,e)}addAction(e){return this.updateStore((t=>$_($_({},t),{},{actions:new Set([...t.actions,e])})))}removeAction(e){return this.updateStore((t=>{const n=new Set([...t.actions]);return n.delete(e),$_($_({},t),{},{actions:n})}))}setActions(e){return this.updateStore((t=>$_($_({},t),{},{actions:new Set(e)})))}mergeActions(e){return this.updateStore((t=>$_($_({},t),{},{actions:new Set([...t.actions,...e])})))}getActionHandlers(e){return function(e,t){for(const n in e.actions)t(n)}(this.store,e)}setData(e){return this.updateStore((t=>$_($_({},t),{},{data:e})))}mergeData(e){return this.updateStore((t=>$_($_({},t),{},{data:$_($_({},t.data),e)})))}wrapData(e){return this.updateStore((t=>$_($_({},t),{},{data:$_($_({},e),{},{wrapped_cursor_data:t.data})})))}unwrapData(){return[this.store.data,this.updateStore((e=>$_($_({},e),{},{data:e.data.wrapped_cursor_data})))]}clearData(){return this.updateStore((e=>$_($_({},e),{},{data:{}})))}setMeta(e){return this.updateStore((t=>$_($_({},t),{},{meta:e})))}mergeMeta(e){return this.updateStore((t=>$_($_({},t),{},{meta:$_($_({},t.meta),e)})))}}const D_=Symbol("cursor key for compatibility with old backends");function M_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I_="EDITORIAL_WORKFLOW_ERROR";class z_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),M_(this,"message",void 0),M_(this,"notUnderEditorialWorkflow",void 0),this.message=e,this.notUnderEditorialWorkflow=t,this.name=I_}}var W_=__webpack_require__(49819),N_=__webpack_require__.n(W_),L_=__webpack_require__(48967),F_=__webpack_require__.n(L_);function U_(e,t){return((null==e?void 0:e.path)||"").endsWith(t.startsWith(".")?t:`.${t}`)}function X_(e,t){return n=>{try{return t(n)}catch(t){if(t instanceof Error)throw new Error(`Response cannot be parsed into the expected format (${e}): ${t.message}`);throw t}}}const q_={json:X_("json",(async e=>{const t=e.headers.get("Content-Type")||"";if(!t.startsWith("application/json")&&!t.startsWith("text/json"))throw new Error(`${t} is not a valid JSON Content-Type`);return e.json()})),text:X_("text",(async e=>e.text())),blob:X_("blob",(async e=>e.blob()))};async function B_(e,{expectingOk:t=!0,format:n="text",apiName:r=""}){let i;try{var o;const t=null!==(o=q_[n])&&void 0!==o&&o;if(!t)throw new Error(`${n} is not a supported response format.`);i=await t(e)}catch(t){throw new a_(t.message,e.status,r)}if(t&&!e.ok){var a;const t="json"===n,o=t?i.message||i.msg||(null===(a=i.error)||void 0===a?void 0:a.message):i;throw new a_(t&&o?o:i,e.status,r)}return i}function V_(e){return t=>B_(t,e)}function Y_(e){return e?uo()([e=>e.split(","),N_()((e=>e.trim().split(";"))),N_()((([e,t])=>[t.match(/rel="(.*?)"/)[1],e.trim().match(/<(.*?)>/)[1].replace(/\+/g,"%20")])),F_()])(e):{}}async function Z_(e,t={},n,r){let i=1,o=i_.fromFetchArguments(e,t);const a=[];for(;o&&i<30;){const e=await i_.performRequest(o),s=e.headers.get("Link"),l=s&&Y_(s)[n],{headers:u={}}=t;o=l&&i_.fromFetchArguments(r(l),{headers:u}),a.push(e),i++}return a}function G_(e){return e.split("/").length}var H_=__webpack_require__(38669);const K_=e=>new Promise((t=>{const n=new FileReader;n.onload=({target:e})=>t((0,H_.sha256)((null==e?void 0:e.result)||"")),n.onerror=()=>{n.abort(),t("")},n.readAsArrayBuffer(e)}));var J_=__webpack_require__(15066),eS=__webpack_require__.n(J_),tS=__webpack_require__(95530),nS=__webpack_require__.n(tS),rS=__webpack_require__(43925),iS=__webpack_require__.n(rS);const oS=["size","oid"];function aS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sS(e){for(var t=1;te.trim())),iS()((function(e){return""!==e}))]),fS=nS()([uS,dS,N_()(cS),eS(),e=>{let{size:t,oid:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r[e,hS(t)]]),mS=nS()([uS,N_()((function(e){return e.split("#")[0]})),dS,N_()(pS)]),gS=nS()([mS,iS()((([,e])=>"lfs"===e.filter&&"lfs"===e.diff&&"lfs"===e.merge)),N_()((([e])=>e))]);function vS({size:e,sha:t}){return`version https://git-lfs.github.com/spec/v1\noid sha256:${t}\nsize ${e}\n`}async function OS(e,t,n){const{name:r,size:i}=t,o=await K_(t);await e.uploadResource({sha:o,size:i},t);const a=vS({sha:o,size:i}),s=new Blob([a]),l=new File([s],r,{type:"text/plain"}),u=await K_(l);return{fileObj:l,size:s.size,sha:u,raw:a,path:n}}async function yS(e,t){return await Promise.all(t.map((async t=>{const{fileObj:n,path:r}=t,i=r.startsWith("/")?r.slice(1):r;if(!e.matchPath(i))return t;const o=await OS(e,n,r);return sS(sS({},t),o)})))}var bS=__webpack_require__(50449),wS=__webpack_require__.n(bS),kS=__webpack_require__(94774),xS=__webpack_require__.n(kS);const _S=new RegExp("^(?:(?:[a-z]+:)?//)|(?:mailto:)|(?:tel:)","i");function SS(e){return e.replace(/[\\/]+/g,"/")}function PS(e){return _S.test(e)}function ES(e,t=""){if(""===e)return e;const n=(e=SS(e)).split("/"),r=n[n.length-1];return""===r&&n.length>1?n[n.length-2]:t.length>0&&r.slice(-t.length)===t?r.slice(0,-t.length):r}function CS(e){const t=(e=SS(e)).split("/");if(""===(e=t.pop())&&t.length>0&&(e=t.pop()),".."===e)return"";const n=e.lastIndexOf(".");return-1===n||0===n?"":e.slice(n)}function TS(e){const t=CS(e);return""===t?t:t.slice(1)}function $S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QS(e){for(var t=1;t{o.push(new Promise((o=>i.take((async()=>{try{const[r,a]=await Promise.all([t(e.path,e.id,{parseText:!0}),n(e.path,e.id)]);o({file:QS(QS({},e),a),data:r}),i.leave()}catch(t){i.leave(),console.error(`failed to load file from ${r}: ${e.path}`),o({error:!0})}})))))})),Promise.all(o).then((e=>e.filter((e=>!e.error))))}async function DS(e,t,n,r){return jS(await e(),t,n,r)}async function MS(e,t,n,r){return jS(e,t,n,r)}async function IS(e){try{return await e()}catch(e){if(e instanceof Error&&"Not Found"===e.message)return Promise.resolve([]);throw e}}function zS(e,t){const n=e.match(/.svg$/)?{type:"image/svg+xml"}:{};return new File([t],e,n)}async function WS(e,t,n){let r;if(e.match(/.svg$/)){const i=await n(e,t,{parseText:!0});r=new Blob([i],{type:"image/svg+xml"})}else r=await n(e,t,{parseText:!1});return r}async function NS(e,t,n){const{path:r,id:i}=e;return new Promise(((e,o)=>n.take((()=>WS(r,i,t).then((e=>URL.createObjectURL(e))).then(e,o).finally((()=>n.leave()))))))}async function LS(e,t,n){try{return await e.acquire()||console.warn("[StaticCMS]",n),await t()}finally{e.release()}}const FS="git.local";function US({branch:e,folder:t,extension:n,depth:r}){return`${FS}.${e}.${t}.${n}.${r}`}async function XS({localForage:e,localTree:t,branch:n,folder:r,extension:i,depth:o}){await e.setItem(US({branch:n,folder:r,extension:i,depth:o}),t)}async function qS({listAllFiles:e,readFile:t,readFileMetadata:n,apiName:r,branch:i,localForage:o,folder:a,extension:s,depth:l,getDefaultBranch:u,isShaExistsInBranch:c,getDifferences:d,getFileId:f,filterFile:h,customFetch:p}){async function m(){const t=await e(a,s,l),n=await u();return await XS({localForage:o,localTree:{head:n.sha,files:t.map((e=>({id:e.id,path:e.path,name:ES(e.path)})))},branch:n.name,depth:l,extension:s,folder:a}),t}const g=await async function(){const e=await async function({localForage:e,branch:t,folder:n,extension:r,depth:i}){return await e.getItem(US({branch:t,folder:n,extension:r,depth:i}))}({localForage:o,branch:i,folder:a,extension:s,depth:l});if(e){const t=await u();if(!await c(t.name,e.head))return console.info(`[StaticCMS] Can't find local tree head '${e.head}' in branch '${t.name}', rebuilding local tree`),m();const n=await async function({branch:e,localTree:t,folder:n,getDifferences:r,filterFile:i,getFileId:o}){const a=(await r(e.sha,t.head)).filter((e=>{var t,r;return(null===(t=e.oldPath)||void 0===t?void 0:t.startsWith(n))||(null===(r=e.newPath)||void 0===r?void 0:r.startsWith(n))})).reduce(((e,t)=>("renamed"===t.status?(e.push({path:t.oldPath,name:ES(t.oldPath),deleted:!0}),e.push({path:t.newPath,name:ES(t.newPath),deleted:!1})):"deleted"===t.status?e.push({path:t.oldPath,name:ES(t.oldPath),deleted:!0}):e.push({path:t.newPath||t.oldPath,name:ES(t.newPath||t.oldPath),deleted:!1}),e)),[]).filter(i),s=await Promise.all(a.map((async e=>{if(e.deleted)return QS(QS({},e),{},{id:""});{const t=await o(e.path);return QS(QS({},e),{},{id:t})}})));return s}({branch:t,localTree:e,folder:a,extension:s,depth:l,getDifferences:d,getFileId:f,filterFile:h}).catch((e=>(console.info("[StaticCMS] Failed getting diff from local tree:",e),null)));if(!n)return console.info("[StaticCMS] Diff is null, rebuilding local tree"),m();if(0===n.length)return e.files;{const r=n.reduce(((e,t)=>(e[t.path]=t.deleted,e)),{}),i=wS()(xS()(n.filter((e=>!r[e.path])),e.files.filter((e=>!r[e.path])),(e=>e.path)),(e=>e.path));return await XS({localForage:o,localTree:{head:t.sha,files:i},branch:t.name,depth:l,extension:s,folder:a}),i}}return m()}();return p?await p(g):await jS(g,t,n,r)}function BS(e){return new Promise(((t,n)=>{const r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.src=e,i.onload=()=>{t()},i.onerror=e=>{n(e)},r.appendChild(i)}))}var VS=__webpack_require__(47948),YS=__webpack_require__.n(VS);!function(){const e="localForageTest";YS().setItem(e,{expires:Date.now()+3e5}).then((()=>{YS().removeItem(e)})).catch((e=>{if(22===e.code){const e="Unable to set localStorage key. Quota exceeded! Full disk?";console.warn("[StaticCMS]",e)}console.info(e)}))}();const ZS=YS();function GS(e){return t=>Promise.resolve(t).then(e)}const HS=Symbol("filterPromiseSymbol");function KS(e){return Promise.all(e.map((e=>e.catch((()=>HS))))).then((e=>e.filter((e=>e!==HS))))}function JS(e){return uo()(e.map((e=>function(e){return async t=>e(await t)}(e))))}var eP=__webpack_require__(15608),tP=__webpack_require__.n(eP);function nP(e,t=(()=>!1),n){const r=e.reduce(((e,n)=>{var r;const i=n.name;if(t(n)||Ie(e[i]))return e;const o="fields"in n&&n.fields,a="list"===n.widget,s=null!==(r="default"in n?n.default:null)&&void 0!==r?r:null;if(o){if(a&&Array.isArray(s))e[i]=s;else{const n=Array.isArray(o)?o:[o],r=a?[nP(n,t)]:nP(n,t);l=r,[[{}],{}].some((e=>tP()(l,e)))||(e[i]=r)}return e}var l;return null!==s&&(e[i]=s),e}),null!=n?n:{});return r}function rP(e,t){return nP(e,t)}function iP(e,t,n){const r=null==e?void 0:e.path;return Ne(r)?Co((0,Re.dirname)(r),n):Co(t&&"folder"in t?t.folder:"",Ae,n)}function oP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aP(e){for(var t=1;t(null==e?void 0:e.name)===t));return n}function uP(e,t){return Boolean(t&&e in t)}function cP(e,t,n,r){if(!t)return!1;if(uP(e,r)&&r[e])return!0;if("files"in t){const r=lP(t.files,n);if(r&&e in r)return!0}return e in t}function dP(e,t,n,r,i){let o=t[e];const a=aP({},n);if(e in a||(a[e]=`{{${e}}}`),"files"in a){o=YP(a[e],r,a,o,e,t.slug);const n=lP(a.files,null==r?void 0:r.slug);if(n){const s=aP({},n);if(s[e]||(s[e]=`{{${e}}}`),o=YP(s[e],r,a,o,e,t.slug),i){const n=fP(e,t,a,r,i,s.fields,o);null!==n&&(o=n)}}}else if(o=YP(a[e],r,a,o,e,t.slug),i){const n=fP(e,t,a,r,i,a.fields,o);null!==n&&(o=n)}return o}function fP(e,t,n,r,i,o,a){const s=o.filter((e=>e===i))[0];if(s&&uP(e,s))return YP(s[e]?s[e]:`{{${e}}}`,r,n,a,e,t.slug);for(const s of o){var l;const o=YP(uP(e,s)&&null!==(l=s[e])&&void 0!==l?l:"",r,n,a,e,t.slug);let u=null;if("fields"in s&&s.fields?u=fP(e,t,n,r,i,s.fields,o):"types"in s&&s.types&&(u=fP(e,t,n,r,i,s.types,o)),null!=u)return u}return null}function hP(e,t,n,r,i){var o,a;let s=YP(null!==(o=e.media_folder)&&void 0!==o?o:"",n,t,null!==(a=e.media_folder)&&void 0!==a?a:"","media_folder",e.slug);if(i)s=i;else if(cP("media_folder",t,null==n?void 0:n.slug,r)){const i=dP("media_folder",e,t,n,r);s=i.startsWith("/")?i.replace(/^[/]*/g,""):iP(n,t,i)}return go()(s,"/")}function pP(e,t,n,r,i,o){var a,s,l,u;if(PS(n))return n;let c=YP(null!==(a=e.public_folder)&&void 0!==a?a:"",r,t,null!==(s=e.public_folder)&&void 0!==s?s:"","public_folder",e.slug),d=YP(null!==(l=e.media_folder)&&void 0!==l?l:"",r,t,null!==(u=e.media_folder)&&void 0!==u?u:"","media_folder",e.slug);const f=cP("public_folder",t,null==r?void 0:r.slug,i),h=cP("media_folder",t,null==r?void 0:r.slug,i);return f&&(c=dP("public_folder",e,t,r,i)),h&&(d=dP("media_folder",e,t,r,i)),""===c&&""===d&&t&&"folder"in t&&(d=iP(r,t,d)),o&&(c=o.replace(d,c),d=o),n.startsWith(d)?n.replace(d,c):n.startsWith(go()(d,"/"))?n.replace(go()(d,"/"),c):n}function mP(e,t,n,r,i,o){if(PS(r))return r;let a=hP(e,t,n,i,o);if(!o){var s;let o=go()(null!==(s=e.public_folder)&&void 0!==s?s:a,"/"),l=go()((0,Re.dirname)(r),"/");"."===l&&(l=""),cP("public_folder",t,null==n?void 0:n.slug,i)&&(o=go()(dP("public_folder",e,t,n,i),"/")),l.startsWith(o)&&l!=a&&(a=hP(e,t,n,i,""===o&&l.startsWith(a)?l:l.replace(o,a)))}return r.startsWith(a)?r:Co(a,ES(r))}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vP(e){for(var t=1;t(null==e?void 0:e.name)===t)))||void 0===n?void 0:n[0]):null==r?void 0:r[0]}function bP(e){var t;return(e.extension||Ji[null!==(t=e.format)&&void 0!==t?t:"frontmatter"]).replace(/^\./,"")}function wP(e,t){if("fields"in e)return;const n=yP(e,t);return n&&n.label}function kP(e,t){if("fields"in e){const r=e.folder.replace(/\/$/,"");var n;return e.nested&&null!==(n=e.nested.path)&&void 0!==n&&n.index_file,`${r}/${t}.${bP(e)}`}const r=yP(e,t);return r&&r.file}function xP(e,t){var n;if("fields"in e){var r;const n=e.folder.replace(/\/$/,"");return null===(r=t.split(n+"/").pop())||void 0===r?void 0:r.replace(new RegExp(`\\.${bP(e)}$`),"")}const i=null===(n=e.files.filter((e=>(null==e?void 0:e.file)===t)))||void 0===n?void 0:n[0];return i&&i.name}function _P(e){var t;return"fields"in e&&(null===(t=e.delete)||void 0===t||t)}function SP(e,t){return"fields"in e?e.name:t}function PP(e,t){if(!e)return"";const n=e.summary;if(n)return VP(n,t,e);if("files"in e&&e.files){const n=wP(e,t.slug);if(n)return n}const r=t.data,i=jP(e,"title"),o=i&&Ee()(r,Qx(i));return o||"title"===i?o:Ee()(r,Qx("title"))}function EP(e,t){const n=!["proxy","test"].includes(t.backend.name);let r=$o.map((t=>{const r=jP(e,t);return n&&"author"===t&&!r?ro:r})).filter(Boolean);return n&&(r=[io,...r]),r}function CP(e){const t=e.reduce(((e,t)=>{if("media_folder"in t&&(e=[...e,t]),"fields"in t){var n;const r=null!==(n=t.fields)&&void 0!==n?n:[];e=[...e,...CP(r)]}else if("types"in t){var r;const n=null!==(r=t.types)&&void 0!==r?r:[];e=[...e,...CP(n)]}return e}),[]);return t}function TP(e,t){var n;if("files"in e)return null===(n=e.files)||void 0===n?void 0:n.find((e=>e.name===t))}function $P(e,t=""){var n;let r=null!==(n=null==e?void 0:e.map((e=>`${t}${e.name}`)))&&void 0!==n?n:[];return null==e||e.forEach(((e,t)=>{if("fields"in e){const n=e.fields;r=[...r,...$P(n,`${r[t]}.`)]}else if("types"in e){const n=e.types;r=[...r,...$P(n,`${r[t]}.`)]}})),r}function QP(e,t,n=(()=>!1)){return n()?e:e.map((e=>{const r=t(e);return n()?r:"fields"in r?(r.fields=QP(null!==(i=r.fields)&&void 0!==i?i:[],t,n),r):"types"in r?(r.types=QP(null!==(o=r.types)&&void 0!==o?o:[],t,n),r):r;var i,o}))}function RP(e,t,n){const r=mx(e,t);if(!r)return e;let i=!1;var o;return"fields"in e&&(e.fields=QP(null!==(o=e.fields)&&void 0!==o?o:[],(function(e){const t=e;return t===r?(i=!0,n(t)):t}),(()=>i))),e}function AP(e){var t;const n=e.identifier_field,r=n?[n,...To]:[...To],i=$P("fields"in e&&null!==(t=e.fields)&&void 0!==t?t:[]);return r.find((e=>i.find((t=>t.toLowerCase().trim()===e.toLowerCase().trim()))))}function jP(e,t){var n;if(!e)return;if("title"===t&&e.identifier_field)return AP(e);const r=Qo[t],i="fields"in e?null!==(n=e.fields)&&void 0!==n?n:[]:void 0;let o;if(!i||!r)return null;const a=i.filter((e=>{var t;return(null!==(t=e.widget)&&void 0!==t?t:"string")===r.type})).map((e=>null==e?void 0:e.name));if(o=a.filter((e=>-1!==r.synonyms.indexOf(e))),o&&o.length>0)return o[0];const s=i.filter((e=>{var t;return-1!==r.secondaryTypes.indexOf(null!==(t=e.widget)&&void 0!==t?t:"string")})).map((e=>null==e?void 0:e.name));return o=s.filter((e=>-1!==r.synonyms.indexOf(e))),o&&o.length>0?o[0]:r.fallbackToFirstField&&a.length>0?a[0]:(r.showError&&(l=`The Field ${t} is missing for the collection “${e.name}”`,u=`Static CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.name}”. Please check your site configuration.`,console.error(`%c ⛔ ${l}\n%c${u}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")),null);var l,u}function DP(e){if(!e)return{};const t={},n=jP(e,"title");n&&(t.title=n);const r=jP(e,"shortTitle");r&&(t.shortTitle=r);const i=jP(e,"author");i&&(t.author=i);const o=jP(e,"date");o&&(t.date=o);const a=jP(e,"description");a&&(t.description=a);const s=jP(e,"image");return s&&(t.image=s),t}function MP(e){return(0,c.useMemo)((()=>DP(e)),[e])}function IP(e,t){if(!e)return[];if("fields"in e)return e.fields;if(t){const n=TP(e,t);if(n)return n.fields}return[]}function zP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WP(e){for(var t=1;t{switch(t){case"slug":return n||"";case"path":return r||"";case"collection":return i?i.label_singular||i.label:"";case"author-login":return o||"";case"author-name":return a||"";default:return d=Ax(t,s),d||(console.warn(`[StaticCMS] Ignoring unknown variable “${t}” in commit message template.`),"")}}));return l?null===(u=c.openAuthoring)||void 0===u?void 0:u.replace(FP,((e,t)=>{switch(t){case"message":return f;case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})):f}function XP(e){return e.trim().toLocaleLowerCase().replace(/[']/g,"").replace(/[.]/g,"-")}function qP(e,t){return n=>t&&t.includes(n)?n:Eo(XP(String(n)),e)}function BP(e,t,n,r){if(!("fields"in e))return"";const i=e.slug||"{{slug}}",o=AP(e);if(!o)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const a=Ee()(t,Qx(o));if(We(a))return"";const s=qP(n),l=new Date,u=jx(i,l,a,t,r,s);return"path"in e?jx(XP(e.path),l,u,t,r,(e=>e===u?e:s(e))):u}function VP(e,t,n,r){var i;const o=IP(n,t.slug),a=BP(n,t.data,r,o);let s=t.data;const l=jP(n,"date"),u=Tx(t,l,Ox(o,l))||null;return s=null!==(i=Mx(t.path,s,"folder"in n?n.folder:""))&&void 0!==i?i:{},t.author&&!mx(n,ro)&&(s=Lk(s,ro,t.author)),t.updatedOn&&!mx(n,io)&&(s=Lk(s,io,t.updatedOn)),jx(e,u,a,s,o)}function YP(e,t,n,r,i,o){var a;if(!t||!t.data||!n)return e;let s=Lk(t.data,i,r);s=Mx(t.path,s,"folder"in n?n.folder:"");const l=IP(n,t.slug),u=jP(n,"date"),c=Tx(t,u,Ox(l,u))||null,d=qP(o,[r,null===(a=s)||void 0===a?void 0:a.dirname]);return jx(e,c,t.slug,s,l,d)}var ZP,GP,HP=function(){function e(e,t){for(var n=0;n1?n-1:0),i=1;i0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return HP(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i0&&void 0!==arguments[0]?arguments[0]:tE;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var l=t.lastIndexOf(i);t=t.slice(0,l)+(a?i:"")+" "+o+t.slice(l+1)}}return t}}},rE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};new eE(nE({separator:","}),rE,iE),new eE(nE({separator:",",conjunction:"and"}),rE,iE),new eE(nE({separator:",",conjunction:"or"}),rE,iE);const oE=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}};var aE=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};new eE(oE("\n"),(function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(aE):aE(e)?e:""}}}),nE,rE,iE);const sE=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}};new eE(oE("\n"),nE,rE,iE,sE(/&/g,"&"),sE(//g,">"),sE(/"/g,"""),sE(/'/g,"'"),sE(/`/g,"`"));const lE=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},uE=new eE(lE(/(?:\n(?:\s*))+/g," "),iE);new eE(lE(/(?:\n\s*)/g,""),iE),new eE(nE({separator:","}),lE(/(?:\s+)/g," "),iE),new eE(nE({separator:",",conjunction:"or"}),lE(/(?:\s+)/g," "),iE),new eE(nE({separator:",",conjunction:"and"}),lE(/(?:\s+)/g," "),iE),new eE(nE,rE,iE),new eE(nE,lE(/(?:\s+)/g," "),iE);const cE=new eE(rE,iE);new eE(rE("all"),iE);var dE=__webpack_require__(70709),fE=__webpack_require__.n(dE);function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pE(e){for(var t=1;t{switch(t){case"prePublish":case"postPublish":case"preSave":case"postSave":e[t]={all:[],collections:{},files:{}};break;case"change":e[t]={all:[],collections:{},files:{},collectionField:{},fileField:{}};break;default:e[t]=[]}return e}),{}),previewStyles:[],shortcodes:{},themes:[]},OE={registerPreviewTemplate:function(e,t){vE.templates[e]=t},getPreviewTemplate:bE,registerPreviewCard:function(e,t,n){vE.cards[e]={component:t,getHeight:n}},getPreviewCard:wE,registerFieldPreview:function(e,t,n){e in vE.fieldPreviews||(vE.fieldPreviews[e]={}),vE.fieldPreviews[e][t]=n},getFieldPreview:kE,registerWidget:xE,getWidget:_E,getWidgets:SE,resolveWidget:PE,registerWidgetValueSerializer:function(e,t){vE.widgetValueSerializers[e]=t},getWidgetValueSerializer:EE,registerBackend:CE,getBackend:TE,registerLocale:jE,getLocale:DE,registerEventListener:function(e){const{name:t,handler:n}=e;if($E(t),"change"===t){const r=e.collection,i=e.file,o=e.field;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].collectionField[r]={},vE.eventHandlers[t].files[r]={},vE.eventHandlers[t].fileField[r]={}),i?o?(i in vE.eventHandlers[t].fileField[r]||(vE.eventHandlers[t].fileField[r][i]={}),o in vE.eventHandlers[t].fileField[r][i]||(vE.eventHandlers[t].fileField[r][i][o]=[]),void vE.eventHandlers[t].fileField[r][i][o].push(n)):(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void vE.eventHandlers[t].files[r][i].push(n)):o?(o in vE.eventHandlers[t].collectionField[r]||(vE.eventHandlers[t].collectionField[r][o]=[]),void vE.eventHandlers[t].collectionField[r][o].push(n)):void vE.eventHandlers[t].collections[r].push(n)):void vE.eventHandlers[t].all.push(n)}if("preSave"===t){const r=e.collection,i=e.file;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].files[r]={}),i?(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void vE.eventHandlers[t].files[r][i].push(n)):void vE.eventHandlers[t].collections[r].push(n)):void vE.eventHandlers[t].all.push(n)}if("postSave"===t||"prePublish"===t||"postPublish"===t){const r=e.collection,i=e.file;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].files[r]={}),i?(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void vE.eventHandlers[t].files[r][i].push(n)):void vE.eventHandlers[t].collections[r].push(n)):void vE.eventHandlers[t].all.push(n)}vE.eventHandlers[t].push(n)},removeEventListener:function(e){const{name:t,handler:n}=e;if($E(t),"change"===t){const r=e.collection,i=e.file,o=e.field;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].collectionField[r]={},vE.eventHandlers[t].files[r]={},vE.eventHandlers[t].fileField[r]={}),i?o?(i in vE.eventHandlers[t].fileField[r]||(vE.eventHandlers[t].fileField[r][i]={}),o in vE.eventHandlers[t].fileField[r][i]||(vE.eventHandlers[t].fileField[r][i][o]=[]),void(vE.eventHandlers[t].fileField[r][i][o]=AE(vE.eventHandlers[t].fileField[r][i][o],n))):(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void(vE.eventHandlers[t].files[r][i]=AE(vE.eventHandlers[t].files[r][i],n))):o?(o in vE.eventHandlers[t].collectionField[r]||(vE.eventHandlers[t].collectionField[r][o]=[]),void(vE.eventHandlers[t].collectionField[r][o]=AE(vE.eventHandlers[t].collectionField[r][o],n))):void(vE.eventHandlers[t].collections[r]=AE(vE.eventHandlers[t].collections[r],n))):void(vE.eventHandlers[t].all=AE(vE.eventHandlers[t].all,n))}if("preSave"===t){const r=e.collection,i=e.file;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].files[r]={}),i?(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void(vE.eventHandlers[t].files[r][i]=AE(vE.eventHandlers[t].files[r][i],n))):void(vE.eventHandlers[t].collections[r]=AE(vE.eventHandlers[t].collections[r],n))):void(vE.eventHandlers[t].all=AE(vE.eventHandlers[t].all,n))}if("postSave"===t||"prePublish"===t||"postPublish"===t){const r=e.collection,i=e.file;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].files[r]={}),i?(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void(vE.eventHandlers[t].files[r][i]=AE(vE.eventHandlers[t].files[r][i],n))):void(vE.eventHandlers[t].collections[r]=AE(vE.eventHandlers[t].collections[r],n))):void(vE.eventHandlers[t].all=AE(vE.eventHandlers[t].all,n))}vE.eventHandlers[t]=AE(vE.eventHandlers[t],n)},getEventListeners:QE,invokeEvent:RE,registerIcon:function(e,t){vE.icons[e]=t},getIcon:ME,registerAdditionalLink:function(e){vE.additionalLinks[e.id]=e},getAdditionalLinks:IE,registerPreviewStyle:function(e,{raw:t=!1}={}){vE.previewStyles.push({value:e,raw:t})},getPreviewStyles:yE,registerShortcode:function(e,t){vE.shortcodes[e]?console.error(`Shortcode [${e}] already registered. Please choose a different name.`):vE.shortcodes[e]=t},getShortcode:zE,getShortcodes:WE,registerTheme:function(e){vE.themes.push(e)},getThemes:NE};function yE(){return vE.previewStyles}function bE(e){var t;return null!==(t=vE.templates[e])&&void 0!==t?t:null}function wE(e){var t;return null!==(t=vE.cards[e])&&void 0!==t?t:null}function kE(e,t){var n,r;return null!==(n=null===(r=vE.fieldPreviews[e])||void 0===r?void 0:r[t])&&void 0!==n?n:null}function xE(e,t,n,{schema:r,validator:i=(()=>!1),converters:o={deserialize:e=>e,serialize:e=>e},getValidValue:a=(e=>e),getDefaultValue:s}={}){if(Array.isArray(e))e.forEach((e=>{"object"!=typeof e?console.error(`Cannot register widget: ${e}`):xE(e)}));else if("string"==typeof e){var l;const u="string"==typeof t?null===(l=vE.widgets[t])||void 0===l?void 0:l.control:t;u&&(vE.widgets[e]={control:u,preview:n,validator:i,converters:o,getValidValue:a,getDefaultValue:s,schema:r})}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,options:{validator:i=(()=>!1),converters:o={deserialize:e=>e,serialize:e=>e},getValidValue:a=(e=>e),getDefaultValue:s,schema:l}={}}=e;if(vE.widgets[t]&&console.warn(uE` + deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);s(e,t),l(e,n)}};function s(e,t=e.schema){const{gen:n,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const l in t){const u=t[l];if(0===u.length)continue;const c=(0,o.propertyInData)(n,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),a.allErrors?n.if(c,(()=>{for(const t of u)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${c} && (${(0,o.checkMissingProp)(e,u,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const u in t)(0,i.alwaysValidSchema)(s,t[u])||(n.if((0,o.propertyInData)(n,r,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>n.var(l,!0))),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},34122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),l=a(o,"else");if(!s&&!l)return;const u=t.let("valid",!0),c=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(c,d("then",n),d("else",n))}else s?t.if(c,d("then")):t.if((0,r.not)(c),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},c);t.assign(u,c),e.mergeValidEvaluated(o,u),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(u,(()=>e.error(!0)))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},77869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69232),i=n(86025),o=n(47229),a=n(79429),s=n(25389),l=n(41261),u=n(78961),c=n(34223),d=n(10477),f=n(12658),h=n(19752),p=n(41666),m=n(59037),g=n(16415),v=n(34122),O=n(14666);t.default=function(e=!1){const t=[h.default,p.default,m.default,g.default,v.default,O.default,u.default,c.default,l.default,d.default,f.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},47229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(41783),i=n(30766),o=n(97562),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:l,it:u}=e;!function(e){const{opts:r,errSchemaPath:o}=u,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(u,e,r.strictTuples)}}(a),u.opts.unevaluated&&n.length&&!0!==u.items&&(u.items=i.mergeEvaluated.items(o,n.length,u.items));const c=o.name("valid"),d=o.const("len",r._`${s}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(u,t)||(o.if(r._`${d} > ${n}`,(()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},c))),e.ok(c))}))}t.validateTuple=s,t.default=a},79429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o=n(97562),a=n(69232),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(s?(0,a.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=s},19752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30766),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},59037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,l=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block((function(){s.forEach(((n,o)=>{let s;(0,i.alwaysValidSchema)(a,n)?t.var(c,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},c),o>0&&t.if(r._`${c} && ${l}`).assign(l,!1).assign(u,r._`[${u}, ${o}]`).else(),t.if(c,(()=>{t.assign(l,!0),t.assign(u,o),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(l,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},12658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97562),i=n(41783),o=n(30766),a=n(30766),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:u}=e,{opts:c}=u,d=(0,r.allSchemaProperties)(n),f=d.filter((e=>(0,o.alwaysValidSchema)(u,n[e])));if(0===d.length||f.length===d.length&&(!u.opts.unevaluated||!0===u.props))return;const h=c.strictSchema&&!c.allowMatchingProperties&&l.properties,p=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=(0,a.evaluatedPropsToName)(t,u.props));const{props:m}=u;function g(e){for(const t in h)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(n){t.forIn("key",s,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=f.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},p),u.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||u.allErrors||t.if((0,i.not)(p),(()=>t.break()))}))}))}!function(){for(const e of d)h&&g(e),u.allErrors?v(e):(t.var(p,!0),v(e),t.if(p))}()}};t.default=s},86025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(47229),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},10477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8085),i=n(97562),o=n(30766),a=n(34223),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:u}=e;"all"===u.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(u,a.default,"additionalProperties"));const c=(0,i.allSchemaProperties)(n);for(const e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,(0,o.toHash)(c),u.props));const d=c.filter((e=>!(0,o.alwaysValidSchema)(u,n[e])));if(0===d.length)return;const f=t.name("valid");for(const n of d)h(n)?p(n):(t.if((0,i.propertyInData)(t,l,n,u.opts.ownProperties)),p(n),u.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function h(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==n[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=s},78961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,n))return;const s=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(s)}};t.default=o},14666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30766),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},97562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(41783),i=n(30766),o=n(23417),a=n(30766);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function l(e,t,n){return r._`${s(e)}.call(${t}, ${n})`}function u(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(l(e,t,n))):o}function c(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(u(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(u(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=l,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${l(e,t,n)}`:o},t.noPropertyInData=u,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},u,c,d){const f=d?r._`${e}, ${t}, ${i}${a}`:t,h=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const p=r._`${f}, ${n.object(...h)}`;return c!==r.nil?r._`${u}.call(${c}, ${p})`:r._`${u}(${p})`};const d=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(n,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:r._`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l((()=>t.assign(e,!1))),e}return t.var(s,!0),l((()=>t.break())),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if((0,r.not)(s),a)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`),e.mergeValidEvaluated(a,l)||t.if((0,r.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},11118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},26030:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11118),i=n(49340),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},49340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(17907),i=n(97562),o=n(41783),a=n(23417),s=n(57153),l=n(30766),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:l,validateName:u,opts:f,self:h}=i,{root:p}=l;if(("#"===n||"#/"===n)&&a===p.baseId)return function(){if(l===p)return d(e,u,l,l.$async);const n=t.scopeValue("root",{ref:p});return d(e,o._`${n}.validate`,p,p.$async)}();const m=s.resolveRef.call(h,p,a,n);if(void 0===m)throw new r.default(i.opts.uriResolver,a,n);return m instanceof s.SchemaEnv?function(t){const n=c(e,t);d(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===f.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(m)}};function c(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:u}=e,{allErrors:c,schemaEnv:d,opts:f}=u,h=f.passContext?a.default.this:o.nil;function p(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(r&&!r.dynamicProps)void 0!==r.props&&(u.props=l.mergeEvaluated.props(s,r.props,u.props));else{const t=s.var("props",o._`${e}.evaluated.props`);u.props=l.mergeEvaluated.props(s,t,u.props,o.Name)}if(!0!==u.items)if(r&&!r.dynamicItems)void 0!==r.items&&(u.items=l.mergeEvaluated.items(s,r.items,u.items));else{const t=s.var("items",o._`${e}.evaluated.items`);u.items=l.mergeEvaluated.items(s,t,u.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(o._`await ${(0,i.callValidateCode)(e,t,h)}`),m(t),c||s.assign(n,!0)}),(e=>{s.if(o._`!(${e} instanceof ${u.ValidationError})`,(()=>s.throw(e))),p(e),c||s.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,h),(()=>m(t)),(()=>p(t)))}t.getValidate=c,t.callRef=d,t.default=u},29889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(66172),o=n(57153),a=n(17907),s=n(30766),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:l,parentSchema:u,it:c}=e,{oneOf:d}=u;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=l.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),p=t.const("tag",r._`${n}${(0,r.getProperty)(f)}`);function m(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${p} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(u);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:f}))),e.ok(h)}};t.default=l},66172:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(n||(t.DiscrError=n={}))},26615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(26030),i=n(45157),o=n(77869),a=n(74233),s=n(75990),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},48545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:l}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:f}=l;u.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:f.formats,code:u.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),l=n.let("fType"),c=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(l,r._`${a}.type || "string"`).assign(c,r._`${a}.validate`)),(()=>n.assign(l,r._`"string"`).assign(c,a))),e.fail$data((0,r.or)(!1===u.strictSchema?r.nil:r._`${s} && !${c}`,function(){const e=d.$async?r._`(${a}.async ? await ${c}(${i}) : ${c}(${i}))`:r._`${c}(${i})`,n=r._`(typeof ${c} == "function" ? ${e} : ${c}.test(${i}))`;return r._`${c} && ${c} !== true && ${l} === ${t} && !${n}`}()))}():function(){const o=f.formats[a];if(!o)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}f.logger.warn(e())}();if(!0===o)return;const[s,l,h]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):u.code.formats?r._`${u.code.formats}${(0,r.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${h}(${i})`}return"function"==typeof l?r._`${h}(${i})`:r._`${h}.test(${i})`}())}())}};t.default=i},74233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(48545).default];t.default=r},75990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},29916:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o=n(83932),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${s})`):e.fail(r._`${l} !== ${n}`)}};t.default=a},47880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o=n(83932),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:u}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const c=s.length>=u.opts.loopEnum;let d;const f=()=>null!=d?d:d=(0,i.useFunc)(t,o.default);let h;if(c||a)h=t.let("valid"),e.block$data(h,(function(){t.assign(h,!1),t.forOf("v",l,(e=>t.if(r._`${f()}(${n}, ${e})`,(()=>t.assign(h,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);h=(0,r.or)(...s.map(((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?r._`${f()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(h)}};t.default=a},45157:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(76741),i=n(53849),o=n(54010),a=n(17834),s=n(19354),l=n(22598),u=n(52367),c=n(38521),d=n(29916),f=n(47880),h=[r.default,i.default,o.default,a.default,s.default,l.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=h},52367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},54010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=n(30766),o=n(73485),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,u=!1===s.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${u} ${l} ${a}`)}};t.default=a},76741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},19354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},53849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(41783),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${l}))`)}};t.default=i},17834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97562),i=n(41783),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:a,it:s}=e,l=s.opts.unicodeRegExp?"u":"",u=n?i._`(new RegExp(${a}, ${l}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${u}.test(${t})`)}};t.default=o},22598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97562),i=n(41783),o=n(30766),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:u}=e,{opts:c}=u;if(!l&&0===n.length)return;const d=n.length>=c.loopRequired;if(u.allErrors?function(){if(d||l)e.block$data(i.nil,f);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||l){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,(()=>{t.assign(o,(0,r.propertyInData)(t,s,n,c.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),c.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(u,t,u.opts.strictRequired)}}function f(){t.forOf("prop",a,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,s,n,c.ownProperties),(()=>e.error()))}))}}};t.default=a},38521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28066),i=n(41783),o=n(30766),a=n(83932),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:u,schemaCode:c,it:d}=e;if(!s&&!l)return;const f=t.let("valid"),h=u.items?(0,r.getSchemaTypes)(u.items):[];function p(o,a){const s=t.name("item"),l=(0,r.checkDataTypes)(h,s,d.opts.strictNumbers,r.DataType.Wrong),u=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(s,i._`${n}[${o}]`),t.if(l,i._`continue`),h.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${u}[${s}] == "number"`,(()=>{t.assign(a,i._`${u}[${s}]`),e.error(),t.assign(f,!1).break()})).code(i._`${u}[${s}] = ${o}`)}))}function m(r,s){const l=(0,o.useFunc)(t,a.default),u=t.name("outer");t.label(u).for(i._`;${r}--;`,(()=>t.for(i._`${s} = ${r}; ${s}--;`,(()=>t.if(i._`${l}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(f,!1).break(u)}))))))}e.block$data(f,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(f,!0),t.if(i._`${r} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?p:m)(r,o)))}),i._`${c} === false`),e.ok(f)}};t.default=s},79218:(e,t,n)=>{"use strict";const r=n(17086),i=n(98329),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||G(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function O(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return k(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){F(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function D(e,t,n,r,i){F(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||R(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||A(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||A(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=K((function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=K((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=K((function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=K((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function F(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new W.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||X(t,e.length-(n+1))}(r,i,o)}function U(e,t){if("number"!=typeof e)throw new W.ERR_INVALID_ARG_TYPE(t,"number",e)}function X(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new W.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new W.ERR_BUFFER_OUT_OF_BOUNDS;throw new W.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}N("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),N("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),N("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=L(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=L(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function B(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}const H=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},37740:(e,t,n)=>{var r=n(48494);const{hasOwnProperty:i}=Object.prototype,o=(e,t={})=>{"string"==typeof t&&(t={section:t}),t.align=!0===t.align,t.newline=!0===t.newline,t.sort=!0===t.sort,t.whitespace=!0===t.whitespace||!0===t.align,t.platform=t.platform||void 0!==r&&r.platform,t.bracketedArray=!1!==t.bracketedArray;const n="win32"===t.platform?"\r\n":"\n",i=t.whitespace?" = ":"=",s=[],l=t.sort?Object.keys(e).sort():Object.keys(e);let c=0;t.align&&(c=u(l.filter((t=>null===e[t]||Array.isArray(e[t])||"object"!=typeof e[t])).map((t=>Array.isArray(e[t])?`${t}[]`:t)).concat([""]).reduce(((e,t)=>u(e).length>=u(t).length?e:t))).length);let d="";const f=t.bracketedArray?"[]":"";for(const t of l){const r=e[t];if(r&&Array.isArray(r))for(const e of r)d+=u(`${t}${f}`).padEnd(c," ")+i+u(e)+n;else r&&"object"==typeof r?s.push(t):d+=u(t).padEnd(c," ")+i+u(r)+n}t.section&&d.length&&(d="["+u(t.section)+"]"+(t.newline?n+n:n)+d);for(const r of s){const i=a(r,".").join("\\."),s=(t.section?t.section+".":"")+i,l=o(e[r],{...t,section:s});d.length&&l.length&&(d+=n),d+=l}return d};function a(e,t){var n=0,r=0,i=0,o=[];do{if(-1!==(i=e.indexOf(t,n))){if(n=i+t.length,i>0&&"\\"===e[i-1])continue;o.push(e.slice(r,i)),r=i+t.length}}while(-1!==i);return o.push(e.slice(r)),o}const s=(e,t={})=>{t.bracketedArray=!1!==t.bracketedArray;const n=Object.create(null);let r=n,o=null;const s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=e.split(/[\r\n]+/g),u={};for(const e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;const a=e.match(s);if(!a)continue;if(void 0!==a[1]){if(o=c(a[1]),"__proto__"===o){r=Object.create(null);continue}r=n[o]=n[o]||Object.create(null);continue}const l=c(a[2]);let d;t.bracketedArray?d=l.length>2&&"[]"===l.slice(-2):(u[l]=(u?.[l]||0)+1,d=u[l]>1);const f=d?l.slice(0,-2):l;if("__proto__"===f)continue;const h=!a[3]||c(a[4]),p="true"===h||"false"===h||"null"===h?JSON.parse(h):h;d&&(i.call(r,f)?Array.isArray(r[f])||(r[f]=[r[f]]):r[f]=[]),Array.isArray(r[f])?r[f].push(p):r[f]=p}const d=[];for(const e of Object.keys(n)){if(!i.call(n,e)||"object"!=typeof n[e]||Array.isArray(n[e]))continue;const t=a(e,".");r=n;const o=t.pop(),s=o.replace(/\\\./g,".");for(const e of t)"__proto__"!==e&&(i.call(r,e)&&"object"==typeof r[e]||(r[e]=Object.create(null)),r=r[e]);r===n&&s===o||(r[s]=n[e],d.push(e))}for(const e of d)delete n[e];return n},l=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),u=e=>"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&l(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),c=(e,t)=>{if(e=(e||"").trim(),!l(e)){let t=!1,n="";for(let r=0,i=e.length;r{},68906:()=>{},31783:()=>{},60449:()=>{},53260:()=>{},74854:()=>{},66602:()=>{},43013:(e,t,n)=>{"use strict";var r=n(65205),i=n(34537),o=r("%TypeError%"),a=n(14337),s=r("%Reflect.apply%",!0)||i("Function.prototype.apply");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!a(n))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,n)}},46314:(e,t,n)=>{"use strict";var r=n(65205)("%TypeError%"),i=n(45290),o=n(7506),a=n(95629);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+i(t));return e[t]}},15798:(e,t,n)=>{"use strict";var r=n(65205)("%TypeError%"),i=n(7506),o=n(95629);e.exports=function(e,t){if("Object"!==o(e))throw new r("Assertion failed: `O` must be an Object");if(!i(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},14337:(e,t,n)=>{"use strict";e.exports=n(42362)},49780:(e,t,n)=>{"use strict";e.exports=n(68416)},7506:e=>{"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},66435:(e,t,n)=>{"use strict";var r=n(65205)("%TypeError%"),i=n(46314),o=n(63533),a=n(95629);e.exports=function(e){if("Object"!==a(e))throw new r("Assertion failed: `obj` must be an Object");return o(i(e,"length"))}},46864:(e,t,n)=>{"use strict";e.exports=n(83401)},97511:(e,t,n)=>{"use strict";var r=n(65205),i=r("%Number%"),o=r("%RegExp%"),a=r("%TypeError%"),s=r("%parseInt%"),l=n(34537),u=n(33073),c=l("String.prototype.slice"),d=u(/^0b[01]+$/i),f=u(/^0o[0-7]+$/i),h=u(/^[-+]0x[0-9a-f]+$/i),p=u(new o("["+["…","​","￾"].join("")+"]","g")),m=n(55581),g=n(95629);e.exports=function e(t){if("String"!==g(t))throw new a("Assertion failed: `argument` is not a String");if(d(t))return i(s(c(t,2),2));if(f(t))return i(s(c(t,2),8));if(p(t)||h(t))return NaN;var n=m(t);return n!==t?e(n):i(t)}},87388:(e,t,n)=>{"use strict";var r=n(68969),i=n(80946),o=n(86288),a=n(98477),s=n(69777),l=n(35687);e.exports=function(e){var t=o(e);if(a(t)||0===t)return 0;if(!s(t))return t;var n=i(r(t));return 0===n?0:l(t)*n}},63533:(e,t,n)=>{"use strict";var r=n(50966),i=n(87388);e.exports=function(e){var t=i(e);return t<=0?0:t>r?r:t}},86288:(e,t,n)=>{"use strict";var r=n(65205),i=r("%TypeError%"),o=r("%Number%"),a=n(12533),s=n(61880),l=n(97511);e.exports=function(e){var t=a(e)?e:s(e,o);if("symbol"==typeof t)throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?l(t):o(t)}},34805:(e,t,n)=>{"use strict";var r=n(65205)("%Object%"),i=n(46864);e.exports=function(e){return i(e),r(e)}},61880:(e,t,n)=>{"use strict";var r=n(67255);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},38779:(e,t,n)=>{"use strict";var r=n(65205),i=r("%String%"),o=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new o("Cannot convert a Symbol value to a string");return i(e)}},95629:(e,t,n)=>{"use strict";var r=n(62310);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},68969:(e,t,n)=>{"use strict";var r=n(65205)("%Math.abs%");e.exports=function(e){return r(e)}},80946:(e,t,n)=>{"use strict";var r=n(95629),i=Math.floor;e.exports=function(e){return"BigInt"===r(e)?e:i(e)}},83401:(e,t,n)=>{"use strict";var r=n(65205)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},62310:e=>{"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},42362:(e,t,n)=>{"use strict";var r=n(65205)("%Array%"),i=!r.isArray&&n(34537)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===i(e)}},69777:(e,t,n)=>{"use strict";var r=n(98477);e.exports=function(e){return("number"==typeof e||"bigint"==typeof e)&&!r(e)&&e!==1/0&&e!==-1/0}},98477:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},12533:e=>{"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},50966:(e,t,n)=>{"use strict";var r=n(65205),i=r("%Math%"),o=r("%Number%");e.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},35687:e=>{"use strict";e.exports=function(e){return e>=0?1:-1}},17267:(e,t,n)=>{"use strict";const{normalizeIPv6:r,normalizeIPv4:i,removeDotSegments:o,recomposeAuthority:a,normalizeComponentEncoding:s}=n(30018),l=n(93369);function u(e,t,n,r){const i={};return r||(e=h(c(e,n),n),t=h(c(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=o(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=o(t.path||""),i.query=t.query):(t.path?("/"===t.path.charAt(0)?i.path=o(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=o(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function c(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},t),i=[],s=l[(r.scheme||n.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(n,r),void 0!==n.path&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==r.reference&&n.scheme&&i.push(n.scheme,":");const u=a(n,r);if(void 0!==u&&("suffix"!==r.reference&&i.push("//"),i.push(u),n.path&&"/"!==n.path.charAt(0)&&i.push("/")),void 0!==n.path){let e=n.path;r.absolutePath||s&&s.absolutePath||(e=o(e)),void 0===u&&(e=e.replace(/^\/\//u,"/%2F")),i.push(e)}return void 0!==n.query&&i.push("?",n.query),void 0!==n.fragment&&i.push("#",n.fragment),i.join("")}const d=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)))),f=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function h(e,t){const n=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=-1!==e.indexOf("%");let s=!1;"suffix"===n.reference&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const u=e.match(f);if(u){if(o.scheme=u[1],o.userinfo=u[3],o.host=u[4],o.port=parseInt(u[5],10),o.path=u[6]||"",o.query=u[7],o.fragment=u[8],isNaN(o.port)&&(o.port=u[5]),o.host){const e=i(o.host);if(!1===e.isIPV4){const t=r(e.host,{isIPV4:!1});o.host=t.host.toLowerCase(),s=t.isIPV6}else o.host=e.host,s=!0}void 0!==o.scheme||void 0!==o.userinfo||void 0!==o.host||void 0!==o.port||o.path||void 0!==o.query?void 0===o.scheme?o.reference="relative":void 0===o.fragment?o.reference="absolute":o.reference="uri":o.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==o.reference&&(o.error=o.error||"URI is not a "+n.reference+" reference.");const e=l[(n.scheme||o.scheme||"").toLowerCase()];if(!(n.unicodeSupport||e&&e.unicodeSupport)&&o.host&&(n.domainHost||e&&e.domainHost)&&!1===s&&function(e){let t=0;for(let n=0,r=e.length;n126||d[t])return!0;return!1}(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(e){o.error=o.error||"Host's domain name can not be converted to ASCII: "+e}(!e||e&&!e.skipNormalize)&&(a&&void 0!==o.scheme&&(o.scheme=unescape(o.scheme)),a&&void 0!==o.host&&(o.host=unescape(o.host)),void 0!==o.path&&o.path.length&&(o.path=escape(unescape(o.path))),void 0!==o.fragment&&o.fragment.length&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),e&&e.parse&&e.parse(o,n)}else o.error=o.error||"URI can not be parsed.";return o}const p={SCHEMES:l,normalize:function(e,t){return"string"==typeof e?e=c(h(e,t),t):"object"==typeof e&&(e=h(c(e,t),t)),e},resolve:function(e,t,n){const r=Object.assign({scheme:"null"},n);return c(u(h(e,r),h(t,r),r,!0),{...r,skipEscape:!0})},resolveComponents:u,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=c(s(h(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=c(s(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=c(s(h(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=c(s(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:c,parse:h};e.exports=p,e.exports.default=p,e.exports.fastUri=p},93369:e=>{"use strict";const t=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,n=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}function i(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function o(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const a={scheme:"http",domainHost:!0,parse:i,serialize:o},s={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=r(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(r(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}},l={http:a,https:{scheme:"https",domainHost:a.domainHost,parse:i,serialize:o},ws:s,wss:{scheme:"wss",domainHost:s.domainHost,parse:s.parse,serialize:s.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(n);if(r){const n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const i=`${n}:${t.nid||e.nid}`,o=l[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),i=`${n}:${t.nid||r}`,o=l[i];o&&(e=o.serialize(e,t));const a=e,s=e.nss;return a.path=`${r||t.nid}:${s}`,t.skipEscape=!0,a},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,n){const r=e;return r.uuid=r.nss,r.nss=void 0,n.tolerant||r.uuid&&t.test(r.uuid)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};e.exports=l},98857:e=>{"use strict";e.exports={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}},30018:(e,t,n)=>{"use strict";const{HEX:r}=n(98857);function i(e){if(l(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[n]=t;return n?{host:s(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function o(e,t=!1){let n="",i=!0;for(const t of e){if(void 0===r[t])return;"0"!==t&&!0===i&&(i=!1),i||(n+=t)}return t&&0===n.length&&(n="0"),n}function a(e,t={}){if(l(e,":")<2)return{host:e,isIPV6:!1};const n=function(e){let t=0;const n={error:!1,address:"",zone:""},r=[],i=[];let a=!1,s=!1,l=!1;function u(){if(i.length){if(!1===a){const e=o(i);if(void 0===e)return n.error=!0,!1;r.push(e)}i.length=0}return!0}for(let o=0;o7){n.error=!0;break}o-1>=0&&":"===e[o-1]&&(s=!0)}}return i.length&&(a?n.zone=i.join(""):l?r.push(i.join("")):r.push(o(i))),n.address=r.join(""),n}(e);if(n.error)return{host:e,isIPV6:!1};{let e=n.address,t=n.address;return n.zone&&(e+="%"+n.zone,t+="%25"+n.zone),{host:e,escapedHost:t,isIPV6:!0}}}function s(e,t){let n="",r=!0;const i=e.length;for(let o=0;o{"use strict";n.d(t,{B1:()=>_e,GA:()=>me,Gn:()=>re,Mb:()=>l,TK:()=>a,eC:()=>u,vQ:()=>ue,ys:()=>xe});var r=n(30638),i=n(87283),o=n(72107);class a{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,o.qz)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(f(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function s(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function l(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function u(e,t){return n=>{for(let t=(0,o.qz)(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class c{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function d(e){return e.selection.main.from}function f(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const h=r.q6.define(),p=new WeakMap;function m(e){if(!Array.isArray(e))return e;let t=p.get(e);return t||p.set(e,t=l(e)),t}const g=r.Py.define(),v=r.Py.define();class O{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&u<=57||u>=97&&u<=122?2:u>=65&&u<=90?1:0:(y=(0,r.bg)(u))!=y.toLowerCase()?1:y!=y.toUpperCase()?2:0;(!i||1==b&&g||0==O&&0!=b)&&(t[d]==u||n[d]==u&&(f=!0)?a[d++]=i:a.length&&(v=!1)),O=b,i+=(0,r.nZ)(u)}return d==l&&0==a[0]&&v?this.result((f?-200:0)-100,a,e):h==l&&0==p?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):h==l?this.ret(-900-e.length,[p,m]):d==l?this.result((f?-200:0)-100-700+(v?0:-1100),a,e):2!=t.length&&this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[],o=0;for(let e of t){let t=e+(this.astral?(0,r.nZ)((0,r.gm)(n,e)):1);o&&i[o-1]==e?i[o-1]=t:(i[o++]=e,i[o++]=t)}return this.ret(e-n.length,i)}}const y=r.r$.define({combine:e=>(0,r.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:w,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>b(e(n),t(n)),optionClass:(e,t)=>n=>b(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function b(e,t){return e?t?e+" "+t:e:t}function w(e,t,n,r,o,a){let s,l,u=e.textDirection==i.Nm.RTL,c=u,d=!1,f="top",h=t.left-o.left,p=o.right-t.right,m=r.right-r.left,g=r.bottom-r.top;if(c&&h=g||e>t.top?s=n.bottom-t.top:(f="bottom",s=t.bottom-n.top)}return{style:`${f}: ${s/((t.bottom-t.top)/a.offsetHeight)}px; max-width: ${l/((t.right-t.left)/a.offsetWidth)}px`,class:"cm-completionInfo-"+(d?u?"left-narrow":"right-narrow":c?"left":"right")}}function k(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class x{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,a=e.state.facet(y);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n){let r=document.createElement("span");r.className="cm-completionLabel";let i=e.displayLabel||e.label,o=0;for(let e=0;eo&&r.appendChild(document.createTextNode(i.slice(o,t)));let s=r.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(i.slice(t,a))),s.className="cm-completionMatchedText",o=a}return oe.position-t.position)).map((e=>e.render))}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=k(i.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(t=>{for(let n,r=t.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(n=/-(\d+)$/.exec(r.id))&&+n[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(y).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:v.of(null)})})),this.list=this.dom.appendChild(this.createListBox(i,r.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}mount(){this.updateSel()}update(e){var t,n,r;let i=e.state.field(this.stateField),o=e.startState.field(this.stateField);this.updateTooltipClass(e.state),i!=o&&(this.updateSel(),(null===(t=i.open)||void 0===t?void 0:t.disabled)!=(null===(n=o.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(null===(r=i.open)||void 0===r?void 0:r.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=k(t.options.length,t.selected,this.view.state.facet(y).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let o="string"==typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>(0,i.OO)(this.view.state,e,"completion info"))):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottomn.from||0==n.from)&&(i=e,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=e)}const u=r.appendChild(document.createElement("li"));u.id=t+"-"+o,u.setAttribute("role","option");let c=this.optionClass(a);c&&(u.className=c);for(let e of this.optionContent){let t=e(a,this.view.state,s);t&&u.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew x(n,e,t)}function S(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class P{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new P(this.options,T(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i){let o=function(e,t){let n=[],r=null,i=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some((t=>t.name==e))||r.push("string"==typeof t?{name:e}:t)}};for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(!1===r.result.filter)for(let t of r.result.options)i(new c(t,r.source,e?e(t):[],1e9-n.length));else{let n=new O(t.sliceDoc(r.from,r.to));for(let t of r.result.options)if(n.match(t.label)){let o=t.displayLabel?e?e(t,n.matched):[]:n.matched;i(new c(t,r.source,o,n.score+(t.boost||0)))}}}if(r){let e=Object.create(null),t=0,i=(e,t)=>{var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.namet.score-e.score||s(e.completion,t.completion)))){let t=e.completion;!a||a.label!=t.label||a.detail!=t.detail||null!=a.type&&null!=t.type&&a.type!=t.type||a.apply!=t.apply||a.boost!=t.boost?o.push(e):S(e.completion)>S(a)&&(o[o.length-1]=e),a=e.completion}return o}(e,t);if(!o.length)return r&&e.some((e=>1==e.state))?new P(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let a=t.facet(y).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:_(M,I),above:i.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new P(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class E{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new E($,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(y),r=(n.override||t.languageDataAt("autocomplete",d(t)).map(m)).map((t=>(this.active.find((e=>e.source==t))||new R(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n1==e.state))&&(i=null),!i&&r.every((e=>1!=e.state))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new R(e.source,0):e)));for(let t of e.effects)t.is(D)&&(i=i&&i.setSelected(t.value,this.id));return r==this.active&&i==this.open?this:new E(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:C}}const C={"aria-autocomplete":"list"};function T(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const $=[];function Q(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class R{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=Q(e),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new R(r.source,0));for(let t of e.effects)if(t.is(g))r=new R(r.source,1,t.value?d(e.state):-1);else if(t.is(v))r=new R(r.source,0);else if(t.is(j))for(let e of t.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new R(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(d(e.startState))?new R(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new R(this.source,this.state,e.mapPos(this.explicitPos))}}class A extends R{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=d(e.state);if((this.explicitPos<0?s<=i:so||"delete"==t&&d(e.startState)==this.from)return new R(this.source,"input"==t&&n.activateOnTyping?1:0);let l,u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):f(e,!0).test(i)}(this.result.validFor,e.state,i,o)?new A(this.source,u,this.result,i,o):this.result.update&&(l=this.result.update(this.result,i,o,new a(e.state,s,u>=0)))?new A(this.source,u,l,l.from,null!==(r=l.to)&&void 0!==r?r:d(e.state)):new R(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new R(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new A(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const j=r.Py.define({map:(e,t)=>e.map((e=>e.map(t)))}),D=r.Py.define(),M=r.QQ.define({create:()=>E.start(),update:(e,t)=>e.update(t),provide:e=>[i.hJ.from(e,(e=>e.tooltip)),i.tk.contentAttributes.from(e,(e=>e.attrs))]});function I(e,t){const n=t.completion.apply||t.completion.label;let i=e.state.field(M).active.find((e=>e.source==t.source));return i instanceof A&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:o}=e.selection,a=n-o.from,s=i-o.from;return Object.assign(Object.assign({},e.changeByRange((l=>l!=o&&n!=i&&e.sliceDoc(l.from+a,l.from+s)!=e.sliceDoc(n,i)?{range:l}:{changes:{from:l.from+a,to:i==o.from?l.to:l.from+s,insert:t},range:r.jT.cursor(l.from+a+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:h.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}function z(e,t="option"){return n=>{let r=n.state.field(M,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+a*(e?1:-1):e?0:s-1;return l<0?l="page"==t?0:s-1:l>=s&&(l="page"==t?s-1:0),n.dispatch({effects:D.of(l)}),!0}}class W{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const N=i.lg.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(M).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(M);if(!e.selectionSet&&!e.docChanged&&e.startState.field(M)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!Q(e)));for(let t=0;t50&&Date.now()-r.time>1e3){for(let e of r.context.abortListeners)try{e()}catch(e){(0,i.OO)(this.view.state,e)}r.context.abortListeners=null,this.running.splice(t--,1)}else r.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let t of e.transactions)"input"==Q(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(M);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,n=d(t),r=new a(t,n,e.explicitPos==n),o=new W(e,r);this.running.push(o),Promise.resolve(e.source(r)).then((e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:v.of(null)}),(0,i.OO)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(y);for(let r=0;re.source==i.active.source));if(o&&1==o.state)if(null==i.done){let e=new R(i.active.source,0);for(let t of i.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:j.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(M,!1);if(t&&t.tooltip&&this.view.state.facet(y).closeOnBlur){let n=t.open&&(0,i.gB)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:v.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:g.of(!1)})),20),this.composing=0}}}),L=i.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class F{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class U{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,r.gc.TrackDel),n=e.mapPos(this.to,1,r.gc.TrackDel);return null==t||null==n?null:new U(this.field,t,n)}}class X{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=a,s=/^\t*/.exec(i)[0].length;for(let t=0;tnew U(e.field,r[e.line]+e.from,r[e.line]+e.to)));return{text:n,ranges:s}}static parse(e){let t,n=[],r=[],i=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let e=t[1]?+t[1]:null,a=t[2]||t[3]||"",s=-1;for(let t=0;t=s&&e.field++}i.push(new F(s,r.length,t.index,t.index+a.length)),o=o.slice(0,t.index)+a+o.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(o);){o=o.slice(0,e.index)+e[1]+o.slice(e.index+e[0].length);for(let t of i)t.line==r.length&&t.from>e.index&&(t.from--,t.to--)}r.push(o)}return new X(r,i)}}let q=i.p.widget({widget:new class extends i.l9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),B=i.p.mark({class:"cm-snippetField"});class V{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.p.set(e.map((e=>(e.from==e.to?q:B).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new V(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Y=r.Py.define({map:(e,t)=>e&&e.map(t)}),Z=r.Py.define(),G=r.QQ.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Y))return n.value;if(n.is(Z)&&e)return new V(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.tk.decorations.from(e,(e=>e?e.deco:i.p.none))});function H(e,t){return r.jT.create(e.filter((e=>e.field==t)).map((e=>r.jT.range(e.from,e.to))))}function K(e){let t=X.parse(e);return(e,n,i,o)=>{let{text:a,ranges:s}=t.instantiate(e.state,i),l={changes:{from:i,to:o,insert:r.xv.of(a)},scrollIntoView:!0,annotations:n?h.of(n):void 0};if(s.length&&(l.selection=H(s,0)),s.length>1){let t=new V(s,0),n=l.effects=[Y.of(t)];void 0===e.state.field(G,!1)&&n.push(r.Py.appendConfig.of([G,ne,ie,L]))}e.dispatch(e.state.update(l))}}function J(e){return({state:t,dispatch:n})=>{let r=t.field(G,!1);if(!r||e<0&&0==r.active)return!1;let i=r.active+e,o=e>0&&!r.ranges.some((t=>t.field==i+e));return n(t.update({selection:H(r.ranges,i),effects:Y.of(o?null:new V(r.ranges,i)),scrollIntoView:!0})),!0}}const ee=[{key:"Tab",run:J(1),shift:J(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(G,!1)&&(t(e.update({effects:Y.of(null)})),!0)}],te=r.r$.define({combine:e=>e.length?e[0]:ee}),ne=r.Wl.highest(i.$f.compute([te],(e=>e.facet(te))));function re(e,t){return Object.assign(Object.assign({},t),{apply:K(e)})}const ie=i.tk.domEventHandlers({mousedown(e,t){let n,r=t.state.field(G,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find((e=>e.from<=n&&e.to>=n));return!(!i||i.field==r.active||(t.dispatch({selection:H(r.ranges,i.field),effects:Y.of(r.ranges.some((e=>e.field>i.field))?new V(r.ranges,i.field):null),scrollIntoView:!0}),0))}}),oe={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ae=r.Py.define({map(e,t){let n=t.mapPos(e,-1,r.gc.TrackAfter);return null==n?void 0:n}}),se=new class extends r.uU{};se.startSide=1,se.endSide=-1;const le=r.QQ.define({create:()=>r.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(i,-1)&&(e=r.Xs.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(ae)&&(e=e.update({add:[se.range(n.value,n.value+1)]}));return e}});function ue(){return[pe,le]}const ce="()[]{}<>";function de(e){for(let t=0;t<8;t+=2)if(ce.charCodeAt(t)==e)return ce.charAt(t+1);return(0,r.bg)(e<128?e:e+1)}function fe(e,t){return e.languageDataAt("closeBrackets",t)[0]||oe}const he="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),pe=i.tk.inputHandler.of(((e,t,n,i)=>{if((he?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,r.nZ)((0,r.gm)(i,0))||t!=o.from||n!=o.to)return!1;let a=function(e,t){let n=fe(e,e.selection.main.head),i=n.brackets||oe.brackets;for(let o of i){let a=de((0,r.gm)(o,0));if(t==o)return a==o?be(e,o,i.indexOf(o+o+o)>-1,n):Oe(e,o,a,n.before||oe.before);if(t==a&&ge(e,e.selection.main.from))return ye(e,0,a)}return null}(e.state,i);return!!a&&(e.dispatch(a),!0)})),me=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=fe(e,e.selection.main.head).brackets||oe.brackets,i=null,o=e.changeByRange((t=>{if(t.empty){let i=function(e,t){let n=e.sliceString(t-2,t);return(0,r.nZ)((0,r.gm)(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let o of n)if(o==i&&ve(e.doc,t.head)==de((0,r.gm)(o,0)))return{changes:{from:t.head-o.length,to:t.head+o.length},range:r.jT.cursor(t.head-o.length)}}return{range:i=t}}));return i||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function ge(e,t){let n=!1;return e.field(le).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function ve(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,r.nZ)((0,r.gm)(n,0)))}function Oe(e,t,n,i){let o=null,a=e.changeByRange((a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:ae.of(a.to+t.length),range:r.jT.range(a.anchor+t.length,a.head+t.length)};let s=ve(e.doc,a.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:ae.of(a.head+t.length),range:r.jT.cursor(a.head+t.length)}:{range:o=a}}));return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function ye(e,t,n){let i=null,o=e.changeByRange((t=>t.empty&&ve(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.jT.cursor(t.head+n.length)}:i={range:t}));return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function be(e,t,n,i){let a=i.stringPrefixes||oe.stringPrefixes,s=null,l=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:ae.of(i.to+t.length),range:r.jT.range(i.anchor+t.length,i.head+t.length)};let l,u=i.head,c=ve(e.doc,u);if(c==t){if(we(e,u))return{changes:{insert:t+t,from:u},effects:ae.of(u+t.length),range:r.jT.cursor(u+t.length)};if(ge(e,u)){let i=n&&e.sliceDoc(u,u+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:u,to:u+i.length,insert:i},range:r.jT.cursor(u+i.length)}}}else{if(n&&e.sliceDoc(u-2*t.length,u)==t+t&&(l=ke(e,u-2*t.length,a))>-1&&we(e,l))return{changes:{insert:t+t+t+t,from:u},effects:ae.of(u+t.length),range:r.jT.cursor(u+t.length)};if(e.charCategorizer(u)(c)!=r.D0.Word&&ke(e,u,a)>-1&&!function(e,t,n,r){let i=(0,o.qz)(e).resolveInner(t,-1),a=r.reduce(((e,t)=>Math.max(e,t.length)),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,u,t,a))return{changes:{insert:t+t,from:u},effects:ae.of(u+t.length),range:r.jT.cursor(u+t.length)}}return{range:s=i}}));return s?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function we(e,t){let n=(0,o.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function ke(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.D0.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&i(e.sliceDoc(n-1,n))!=r.D0.Word)return n}return-1}function xe(e={}){return[M,y.of(e),N,Se,L]}const _e=[{key:"Ctrl-Space",run:e=>!!e.state.field(M,!1)&&(e.dispatch({effects:g.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(M,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:v.of(null)}),0))}},{key:"ArrowDown",run:z(!0)},{key:"ArrowUp",run:z(!1)},{key:"PageDown",run:z(!0,"page")},{key:"PageUp",run:z(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(M,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(y).defaultKeymap?[_e]:[])))},23193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cpp:()=>m,cppLanguage:()=>p});var r=n(64963),i=n(7778);const o=new r.Jq((e=>{if(76==e.next||85==e.next?e.advance():117==e.next&&(e.advance(),56==e.next&&e.advance()),82!=e.next)return;if(e.advance(),34!=e.next)return;e.advance();let t="";for(;40!=e.next;){if(32==e.next||e.next<=13||41==e.next)return;t+=String.fromCharCode(e.next),e.advance()}for(e.advance();;){if(e.next<0)return e.acceptToken(1);if(41==e.next){let n=!0;for(let r=0;n&&r{if(62==e.next)62==e.peek(1)&&e.acceptToken(2,1);else{let t=!1,n=0;for(;;n++){if(e.next>=65&&e.next<=90)t=!0;else{if(e.next>=97&&e.next<=122)return;if(95!=e.next&&!(e.next>=48&&e.next<=57))break}e.advance()}t&&n>1&&e.acceptToken(3)}}),{extend:!0}),s=(0,i.Gv)({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":i.pJ.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":i.pJ.modifier,"if else switch for while do case default return break continue goto throw try catch":i.pJ.controlKeyword,"co_return co_yield co_await":i.pJ.controlKeyword,"new sizeof delete static_assert":i.pJ.operatorKeyword,"NULL nullptr":i.pJ.null,this:i.pJ.self,"True False":i.pJ.bool,"TypeSize PrimitiveType":i.pJ.standard(i.pJ.typeName),TypeIdentifier:i.pJ.typeName,FieldIdentifier:i.pJ.propertyName,"CallExpression/FieldExpression/FieldIdentifier":i.pJ.function(i.pJ.propertyName),"ModuleName/Identifier":i.pJ.namespace,PartitionName:i.pJ.labelName,StatementIdentifier:i.pJ.labelName,"Identifier DestructorName":i.pJ.variableName,"CallExpression/Identifier":i.pJ.function(i.pJ.variableName),"CallExpression/ScopedIdentifier/Identifier":i.pJ.function(i.pJ.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":i.pJ.function(i.pJ.definition(i.pJ.variableName)),NamespaceIdentifier:i.pJ.namespace,OperatorName:i.pJ.operator,ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,AssignOp:i.pJ.definitionOperator,UpdateOp:i.pJ.updateOperator,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Number:i.pJ.number,String:i.pJ.string,"RawString SystemLibString":i.pJ.special(i.pJ.string),CharLiteral:i.pJ.character,EscapeSequence:i.pJ.escape,"UserDefinedLiteral/Identifier":i.pJ.literal,PreProcArg:i.pJ.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":i.pJ.processingInstruction,MacroName:i.pJ.special(i.pJ.name),"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,"< >":i.pJ.angleBracket,". ->":i.pJ.derefOperator,", ;":i.pJ.separator}),l={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:784,true:784,FALSE:786,false:786,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},u={__proto__:null,"<":131},c={__proto__:null,">":135},d={__proto__:null,operator:388,new:576,delete:582},f=r.WQ.deserialize({version:14,states:"$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FjO-sQbO'#CwO.UQUO'#CwO0TQUO'#KZO0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JO'#JOO5XQVO'#GUO5fQUO'#JVOOQQ'#JV'#JVO8zQUO'#KmO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FhOOQR'#Fj'#FjOB{QUO'#FjOOQR'#LQ'#LQOOQR'#LP'#LPOETQVO'#KQOFxQUO'#LVOGVQUO'#KqOGkQUO'#LVOH]QUO'#LXOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#K|'#K|OOQR'#J_'#J_Q!QQVOOOHkQVO'#FOOIWQUO'#EhOI_QUOOOKZQVO'#HgOKkQUO'#HgONVQUO'#KqONaQUO'#KqOOQQ'#Kq'#KqO!!_QUO'#KqOOQQ'#Jq'#JqO!!lQUO'#HxOOQQ'#KZ'#KZO!&^QUO'#KZO!&zQUO'#KQO!(zQVO'#I]O!(zQVO'#I`OCQQUO'#KQOOQQ'#Ip'#IpOOQQ'#KQ'#KQO!,}QUO'#KZOOQR'#KY'#KYO!-UQUO'#DYO!/mQUO'#KnOOQQ'#Kn'#KnO!/tQUO'#KnO!/{QUO'#ETO!0QQUO'#EWO!0VQUO'#FRO8zQUO'#FPO!QQVO'#F^O!0[Q#vO'#F`O!0gQUO'#FkO!0oQUO'#FpO!0tQVO'#FrO!0oQUO'#FuO!3sQUO'#FvO!3xQVO'#FxO!4SQUO'#FzO!4XQUO'#F|O!4^QUO'#GOO!4cQVO'#GQO!(zQVO'#GSO!4jQUO'#GpO!4xQUO'#GYO!(zQVO'#FeO!6VQUO'#FeO!6[QVO'#G`O!6cQUO'#GaO!6nQUO'#GnO!6sQUO'#GrO!6xQUO'#GzO!7jQ&lO'#HiO!:mQUO'#GuO!:}QUO'#HXO!;YQUO'#HZO!;bQUO'#DWO!;bQUO'#HuO!;bQUO'#HvO!;yQUO'#HwO!<[QUO'#H|O!=PQUO'#H}O!>uQVO'#IbO!(zQVO'#IdO!?PQUO'#IgO!?WQVO'#IjP!@}{,UO'#CbP!6n{,UO'#CbP!AY{7[O'#CbP!6n{,UO'#CbP!A_{,UO'#CbP!AjOSO'#IzPOOO)CEn)CEnOOOO'#I|'#I|O!AtOWO,59OOOQR,59O,59OO!(zQVO,59UOOQQ,59W,59WO!(zQVO,5;ROOQR,5qOOQR'#IX'#IXOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[O!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!DOQVO,5>zOOQQ,5?W,5?WO!EqQVO'#ChO!IjQUO'#CyOOQQ,59c,59cOOQQ,59b,59bOOQQ,5<},5<}O!IwQ&lO,5=mO!?PQUO,5?RO!LkQVO,5?UO!LrQbO,59cO!L}QVO'#FYOOQQ,5?P,5?PO!M_QVO,59VO!MfO`O,5:bO!MkQbO'#D^O!M|QbO'#K^O!N[QbO,59wO!NdQbO'#CwO!NuQUO'#CwO!NzQUO'#KZO# UQUO'#CvOOQR-E<|-E<|O# aQUO,5AoO# hQVO'#EfO@XQVO'#EiOBUQUO,5;kOOQR,5l,5>lO#3gQUO'#CgO#4]QUO,5>pO#6OQUO'#IeOOQR'#I}'#I}O#6WQUO,5:xO#6tQUO,5:xO#7eQUO,5:xO#8YQUO'#CtO!0QQUO'#ClOOQQ'#JW'#JWO#6tQUO,5:xO#8bQUO,5;QO!4xQUO'#C}O#9kQUO,5;QO#9pQUO,5>QO#:|QUO'#C}O#;dQUO,5>{O#;iQUO'#KwO#}QUO'#L[O#?UQUO,5>UO#?ZQbO'#CwO#?fQUO'#GcO#?kQUO'#E^O#@[QUO,5;kO#@sQUO'#K}O#@{QUO,5;rOKkQUO'#HfOBUQUO'#HgO#AQQUO'#KqO!6nQUO'#HjO#AxQUO'#CtO!0tQVO,5PO$(WQUO'#E[O$(eQUO,5>ROOQQ,5>S,5>SO$,RQVO'#C{OOQQ-E=o-E=oOOQQ,5>d,5>dOOQQ,59`,59`O$,]QUO,5>wO$.]QUO,5>zO!6nQUO,59tO$.pQUO,5;qO$.}QUO,5<{O!0QQUO,5:oOOQQ,5:r,5:rO$/YQUO,5;mO$/_QUO'#KmOBUQUO,5;kOOQR,5;x,5;xO$0OQUO'#FbO$0^QUO'#FbO$0cQUO,5;zO$3|QVO'#FmO!0tQVO,5eQUO,5pQUO,5=[O$>uQUO,5=[O!4xQUO,5}QUO,5uQUO,5<{O$DQQUO,5<{O$D]QUO,5=YO!(zQVO,5=^O!(zQVO,5=fO#NeQUO,5=mOOQQ,5>T,5>TO$FbQUO,5>TO$FlQUO,5>TO$FqQUO,5>TO$FvQUO,5>TO!6nQUO,5>TO$HtQUO'#KZO$H{QUO,5=oO$IWQUO,5=aOKkQUO,5=oO$JQQUO,5=sOOQR,5=s,5=sO$JYQUO,5=sO$LeQVO'#H[OOQQ,5=u,5=uO!;]QUO,5=uO%#`QUO'#KjO%#gQUO'#K[O%#{QUO'#KjO%$VQUO'#DyO%$hQUO'#D|O%'eQUO'#K[OOQQ'#K['#K[O%)WQUO'#K[O%#gQUO'#K[O%)]QUO'#K[OOQQ,59r,59rOOQQ,5>a,5>aOOQQ,5>b,5>bO%)eQUO'#HzO%)mQUO,5>cOOQQ,5>c,5>cO%-XQUO,5>cO%-dQUO,5>hO%1OQVO,5>iO%1VQUO,5>|O# hQVO'#EfO%4]QUO,5>|OOQQ,5>|,5>|O%4|QUO,5?OO%7QQUO,5?RO!<[QUO,5?RO%8|QUO,5?UO%sQUO1G0mOOQQ1G0m1G0mO%@PQUO'#CoO%B`QbO'#CwO%BkQUO'#CrO%BpQUO'#CrO%BuQUO1G.tO#AxQUO'#CqOOQQ1G.t1G.tO%DxQUO1G4]O%FOQUO1G4^O%GqQUO1G4^O%IdQUO1G4^O%KVQUO1G4^O%LxQUO1G4^O%NkQUO1G4^O&!^QUO1G4^O&$PQUO1G4^O&%rQUO1G4^O&'eQUO1G4^O&)WQUO1G4^O&*yQUO'#KPO&,SQUO'#KPO&,[QUO,59SOOQQ,5=P,5=PO&.dQUO,5=PO&.nQUO,5=PO&.sQUO,5=PO&.xQUO,5=PO!6nQUO,5=PO#NeQUO1G3XO&/SQUO1G4mO!<[QUO1G4mO&1OQUO1G4pO&2qQVO1G4pOOQQ1G.}1G.}OOQQ1G.|1G.|OOQQ1G2i1G2iO!IwQ&lO1G3XO&2xQUO'#LOO@XQVO'#EiO&4RQUO'#F]OOQQ'#Ja'#JaO&4WQUO'#FZO&4cQUO'#LOO&4kQUO,5;tO&4pQUO1G.qOOQQ1G.q1G.qOOQR1G/|1G/|O&6cQ!dO'#JPO&6hQbO,59xO&8yQ!eO'#D`O&9QQ!dO'#JRO&9VQbO,5@xO&9VQbO,5@xOOQR1G/c1G/cO&9bQbO1G/cO&9gQ&lO'#GeO&:eQbO,59cOOQR1G7Z1G7ZO#@[QUO1G1VO&:pQUO1G1^OBUQUO1G1VO&=RQUO'#CyO#*wQbO,59cO&@tQUO1G6sOOQR-E<{-E<{O&BWQUO1G0dO#6WQUO1G0dOOQQ-E=U-E=UO#6tQUO1G0dOOQQ1G0l1G0lO&B{QUO,59iOOQQ1G3l1G3lO&CcQUO,59iO&CyQUO,59iO!M_QVO1G4gO!(zQVO'#JYO&DeQUO,5AcOOQQ1G0o1G0oO!(zQVO1G0oO!6nQUO'#JnO&DmQUO,5AvOOQQ1G3p1G3pOOQR1G1V1G1VO&HjQVO'#FOO!M_QVO,5;sOOQQ,5;s,5;sOBUQUO'#JcO&JfQUO,5AiO&JnQVO'#E[OOQR1G1^1G1^O&M]QUO'#L[OOQR1G1n1G1nOOQR-E=f-E=fOOQR1G7]1G7]O#DhQUO1G7]OGVQUO1G7]O#DhQUO1G7_OOQR1G7_1G7_O&MeQUO'#G}O&MmQUO'#LWOOQQ,5=h,5=hO&M{QUO,5=jO&NQQUO,5=kOOQR1G7`1G7`O#EfQVO1G7`O&NVQUO1G7`O' ]QVO,5=kOOQR1G1U1G1UO$.vQUO'#E]O'!RQUO'#E]OOQQ'#Ky'#KyO'!lQUO'#KxO'!wQUO,5;UO'#PQUO'#ElO'#dQUO'#ElO'#wQUO'#EtOOQQ'#J['#J[O'#|QUO,5;cO'$sQUO,5;cO'%nQUO,5;dO'&tQVO,5;dOOQQ,5;d,5;dO''OQVO,5;dO'&tQVO,5;dO''VQUO,5;bO'(SQUO,5;eO'(_QUO'#KpO'(gQUO,5:vO'(lQUO,5;fOOQQ1G0n1G0nOOQQ'#J]'#J]O''VQUO,5;bO!4xQUO'#E}OOQQ,5;b,5;bO')gQUO'#E`O'+aQUO'#E{OHrQUO1G0nO'+fQUO'#EbOOQQ'#JX'#JXO'-OQUO'#KrOOQQ'#Kr'#KrO'-xQUO1G0eO'.pQUO1G3kO'/vQVO1G3kOOQQ1G3k1G3kO'0QQVO1G3kO'0XQUO'#L_O'1eQUO'#KXO'1sQUO'#KWO'2OQUO,59gO'2WQUO1G/`O'2]QUO'#FPOOQR1G1]1G1]OOQR1G2g1G2gO$>uQUO1G2gO'2gQUO1G2gO'2rQUO1G0ZOOQR'#J`'#J`O'2wQVO1G1XO'8pQUO'#FTO'8uQUO1G1VO!6nQUO'#JdO'9TQUO,5;|O$0^QUO,5;|OOQQ'#Fc'#FcOOQQ,5;|,5;|O'9cQUO1G1fOOQR1G1f1G1fO'9kQUO,5}QUO1G2`OOQQ'#Cu'#CuO'CzQUO'#G[O'DuQUO'#G[O'DzQUO'#LRO'EYQUO'#G_OOQQ'#LS'#LSO'EhQUO1G2`O'EmQVO1G1kO'HOQVO'#GUOBUQUO'#FWOOQR'#Je'#JeO'EmQVO1G1kO'HYQUO'#FvOOQR1G2f1G2fO'H_QUO1G2gO'HdQUO'#JgO'2gQUO1G2gO!(zQVO1G2tO'HlQUO1G2xO'IuQUO1G3QO'J{QUO1G3XOOQQ1G3o1G3oO'KaQUO1G3oOOQR1G3Z1G3ZO'KfQUO'#KZO'2]QUO'#LTOGkQUO'#LVOOQR'#Gy'#GyO#DhQUO'#LXOOQR'#HQ'#HQO'KpQUO'#GvO'#wQUO'#GuOOQR1G2{1G2{O'LmQUO1G2{O'MdQUO1G3ZO'MoQUO1G3_O'MtQUO1G3_OOQR1G3_1G3_O'M|QUO'#H]OOQR'#H]'#H]O( VQUO'#H]O!(zQVO'#H`O!(zQVO'#H_OOQR'#LZ'#LZO( [QUO'#LZOOQR'#Jk'#JkO( aQVO,5=vOOQQ,5=v,5=vO( hQUO'#H^O( pQUO'#HZOOQQ1G3a1G3aO( zQUO,5@vOOQQ,5@v,5@vO%)WQUO,5@vO%)]QUO,5@vO%$VQUO,5:eO(%iQUO'#KkO(%wQUO'#KkOOQQ,5:e,5:eOOQQ'#JS'#JSO(&SQUO'#D}O(&^QUO'#KqOGkQUO'#LVO('YQUO'#D}OOQQ'#Hp'#HpOOQQ'#Hr'#HrOOQQ'#Hs'#HsOOQQ'#Kl'#KlOOQQ'#JU'#JUO('dQUO,5:hOOQQ,5:h,5:hO((aQUO'#LVO((nQUO'#HtO()UQUO,5@vO()]QUO'#H{O()hQUO'#L^O()pQUO,5>fO()uQUO'#L]OOQQ1G3}1G3}O(-lQUO1G3}O(-sQUO1G3}O(-zQUO1G4TO(/QQUO1G4TO(/VQUO,5A|O!6nQUO1G4hO!(zQVO'#IiOOQQ1G4m1G4mO(/[QUO1G4mO(1_QVO1G4pPOOO1G.h1G.hP!A_{,UO1G.hP(3_QUO'#LeP(3j{,UO1G.hP(3o{7[O1G.hPO{O-E=s-E=sPOOO,5A},5A}P(3w{,UO,5A}POOO1G5Q1G5QO!(zQVO7+$[O(3|QUO'#CyOOQQ,59^,59^O(4XQbO,59cO(4dQbO,59^OOQQ,59],59]OOQQ7+)w7+)wO!M_QVO'#JtO(4oQUO,5@kOOQQ1G.n1G.nOOQQ1G2k1G2kO(4wQUO1G2kO(4|QUO7+(sOOQQ7+*X7+*XO(7bQUO7+*XO(7iQUO7+*XO(1_QVO7+*[O#NeQUO7+(sO(7vQVO'#JbO(8ZQUO,5AjO(8cQUO,5;vOOQQ'#Co'#CoOOQQ,5;w,5;wO!(zQVO'#F[OOQQ-E=_-E=_O!M_QVO,5;uOOQQ1G1`1G1`OOQQ,5?k,5?kOOQQ-E<}-E<}OOQR'#Dg'#DgOOQR'#Di'#DiOOQR'#Dl'#DlO(9lQ!eO'#K_O(9sQMkO'#K_O(9zQ!eO'#K_OOQR'#K_'#K_OOQR'#JQ'#JQO(:RQ!eO,59zOOQQ,59z,59zO(:YQbO,5?mOOQQ-E=P-E=PO(:hQbO1G6dOOQR7+$}7+$}OOQR7+&q7+&qOOQR7+&x7+&xO'8uQUO7+&qO(:sQUO7+&OO#6WQUO7+&OO(;hQUO1G/TO(]QUO,5?tOOQQ-E=W-E=WO(?fQUO7+&ZOOQQ,5@Y,5@YOOQQ-E=l-E=lO(?kQUO'#LOO@XQVO'#EiO(@wQUO1G1_OOQQ1G1_1G1_O(BQQUO,5?}OOQQ,5?},5?}OOQQ-E=a-E=aO(BfQUO'#KpOOQR7+,w7+,wO#DhQUO7+,wOOQR7+,y7+,yO(BsQUO,5=iO#DsQUO'#JjO(CUQUO,5ArOOQR1G3U1G3UOOQR1G3V1G3VO(CdQUO7+,zOOQR7+,z7+,zO(E[QUO,5:wO(FyQUO'#EwO!(zQVO,5;VO(GlQUO,5:wO(GvQUO'#EpO(HXQUO'#EzOOQQ,5;Z,5;ZO#K]QVO'#ExO(HoQUO,5:wO(HvQUO'#EyO#GgQUO'#JZO(J`QUO,5AdOOQQ1G0p1G0pO(JkQUO,5;WO!<[QUO,5;^O(KUQUO,5;_O(KdQUO,5;WO(MvQUO,5;`OOQQ-E=Y-E=YO(NOQUO1G0}OOQQ1G1O1G1OO(NyQUO1G1OO)!PQVO1G1OO)!WQVO1G1OO)!bQUO1G0|OOQQ1G0|1G0|OOQQ1G1P1G1PO)#_QUO'#JoO)#iQUO,5A[OOQQ1G0b1G0bOOQQ-E=Z-E=ZO)#qQUO,5;iO!<[QUO,5;iO)$nQVO,5:zO)$uQUO,5;gO$ mQUO7+&YOOQQ7+&Y7+&YO!(zQVO'#EfO)$|QUO,5:|OOQQ'#Ks'#KsOOQQ-E=V-E=VOOQQ,5A^,5A^OOQQ'#Jl'#JlO)(qQUO7+&PPOQQ7+&P7+&POOQQ7+)V7+)VO))iQUO7+)VO)*oQVO7+)VOOQQ,5>m,5>mO$)YQVO'#JsO)*vQUO,5@rOOQQ1G/R1G/ROOQQ7+$z7+$zO)+RQUO7+(RO)+WQUO7+(ROOQR7+(R7+(RO$>uQUO7+(ROOQQ7+%u7+%uOOQR-E=^-E=^O!0VQUO,5;oOOQQ,5@O,5@OOOQQ-E=b-E=bO$0^QUO1G1hOOQQ1G1h1G1hOOQR7+'Q7+'QOOQR1G1s1G1sOBUQUO,5;rO)+tQUO,5hQUO,5}QUO7+(dO)?SQVO7+(dOOQQ7+(l7+(lOOQQ7+)Z7+)ZO)?[QUO'#KjO)?fQUO'#KjOOQR,5=b,5=bO)?sQUO,5=bO!;bQUO,5=bO!;bQUO,5=bO!;bQUO,5=bOOQR7+(g7+(gOOQR7+(u7+(uOOQR7+(y7+(yOOQR,5=w,5=wO)?xQUO,5=zO)AOQUO,5=yOOQR,5Au,5AuOOQR-E=i-E=iOOQQ1G3b1G3bO)BUQUO,5=xO)BZQVO'#EfOOQQ1G6b1G6bO%)WQUO1G6bO%)]QUO1G6bOOQQ1G0P1G0POOQQ-E=Q-E=QO)DrQUO,5AVO(%iQUO'#JTO)D}QUO,5AVO)D}QUO,5AVO)EVQUO,5:iO8zQUO,5:iOOQQ,5>],5>]O)EaQUO,5AqO)EhQUO'#EVO)FrQUO'#EVO)G]QUO,5:iO)GgQUO'#HlO)GgQUO'#HmOOQQ'#Ko'#KoO)HUQUO'#KoO!(zQVO'#HnOOQQ,5:i,5:iO)HvQUO,5:iO!M_QVO,5:iOOQQ-E=S-E=SOOQQ1G0S1G0SOOQQ,5>`,5>`O)H{QUO1G6bO!(zQVO,5>gO)LjQUO'#JrO)LuQUO,5AxOOQQ1G4Q1G4QO)L}QUO,5AwOOQQ,5Aw,5AwOOQQ7+)i7+)iO*!lQUO7+)iOOQQ7+)o7+)oO*'kQVO1G7hO*)mQUO7+*SO*)rQUO,5?TO**xQUO7+*[POOO7+$S7+$SP*,kQUO'#LfP*,sQUO,5BPP*,x{,UO7+$SPOOO1G7i1G7iO*,}QUO<XQUO7+&jO*?_QVO7+&jOOQQ7+&h7+&hOOQQ,5@Z,5@ZOOQQ-E=m-E=mO*@ZQUO1G1TO*@eQUO1G1TO*AOQUO1G0fOOQQ1G0f1G0fO*BUQUO'#K{O*B^QUO1G1ROOQQ<uQUO<VO)GgQUO'#JpO*NQQUO1G0TO*NcQVO1G0TOOQQ1G3u1G3uO*NjQUO,5>WO*NuQUO,5>XO+ dQUO,5>YO+!jQUO1G0TO%)]QUO7++|O+#pQUO1G4ROOQQ,5@^,5@^OOQQ-E=p-E=pOOQQ<n,5>nO+/iQUOANAXOOQRANAXANAXO+/nQUO7+'`OOQRAN@cAN@cO+0zQVOAN@nO+1RQUOAN@nO!0tQVOAN@nO+2[QUOAN@nO+2aQUOAN@}O+2lQUOAN@}O+3rQUOAN@}OOQRAN@nAN@nO!M_QVOAN@}OOQRANAOANAOO+3wQUO7+'|O)7VQUO7+'|OOQQ7+(O7+(OO+4YQUO7+(OO+5`QVO7+(OO+5gQVO7+'hO+5nQUOANAjOOQR7+(h7+(hOOQR7+)P7+)PO+5sQUO7+)PO+5xQUO7+)POOQQ<= h<= hO+6QQUO7+,]O+6YQUO1G5ZOOQQ1G5Z1G5ZO+6eQUO7+%oOOQQ7+%o7+%oO+6vQUO7+%oO*NcQVO7+%oOOQQ7+)a7+)aO+6{QUO7+%oO+8RQUO7+%oO!M_QVO7+%oO+8]QUO1G0]O*LkQUO1G0]O)EhQUO1G0]OOQQ1G0a1G0aO+8zQUO1G3qO+:QQVO1G3qOOQQ1G3q1G3qO+:[QVO1G3qO+:cQUO,5@[OOQQ-E=n-E=nOOQQ1G3r1G3rO%)WQUO<= hOOQQ7+*Z7+*ZPOQQ,5@b,5@bPOQQ-E=t-E=tOOQQ1G/}1G/}OOQQ,5?x,5?xOOQQ-E=[-E=[OOQRG26sG26sO+:zQUOG26YO!0tQVOG26YO+QQUO<uAN>uO+BpQUOAN>uO+CvQUOAN>uO!M_QVOAN>uO+C{QUO<nQUO'#KZO,?OQUO'#CyO,?^QbO,59cO,6VQUO7+&OO,OP>i>{?aFXMX!&]!,sP!3m!4b!5VP!5qPPPPPPPP!6[P!7tPP!9V!:oP!:uPPPPPP!:xP!:xPP!:xPPPPPPPPP!;U!>lP!>oPP!?]!@QPPPPP!@UP>l!AgPP>l!Cn!Eo!E}!Gd!ITP!I`P!Io!Io!MP#!`##v#'S#*^!Eo#*hPP!Eo#*o#*u#*h#*h#*xP#*|#+k#+k#+k#+k!ITP#,U#,g#.|P#/bP#0}P#1R#1Z#2O#2Z#4i#4q#4q#1RP#1RP#4x#5OP#5YPP#5u#6d#7U#5uP#7v#8SP#5uP#5uPP#5u#5uP#5uP#5uP#5uP#5uP#5uP#5uP#8V#5Y#8sP#9YP#9o#9o#9o#9o#9|#1RP#:d#?`#?}PPPPPPPP#@uP#ATP#ATP#Aa#Dn#9OPP#@}#EQP#Ee#Ep#Ev#Ev#@}#FlP#1R#1R#1R#1R#1RP!Io#GW#G_#G_#G_#Gc!Ly#Gm!Ly#Gq!E}!E}!E}#Gt#L^!E}>l>l>l$#V!@Q!@Q!@Q!@Q!@Q!@Q!6[!6[!6[$#jP$%V$%e!6[$%kPP!6[$'y$'|#@l$(P:t7j$+V$-Q$.q$0a7jPP7j$2T7jP7j7jP7jP$5Z7jP7jPP7j$5gPPPPPPPPP*[P$8o$8u$;^$=d$=j$>Q$>[$>g$>v$>|$@[$AZ$Ab$Ai$Ao$Aw$BR$BX$Bd$Bj$Bs$B{$CW$C^$Ch$Cn$Cx$DP$D`$Df$DlP$Dr$Dz$ER$Ea$F}$GT$GZ$Gb$GkPPPPPPPP$Gq$GuPPPPP$Nw$'y$Nz%$S%&[P%&i%&lPPPPPPPPPP%&x%'{%(R%(V%)|%+Z%+|%,T%.d%.jPPP%.t%/P%/S%/Y%0a%0d%0n%0x%0|%2Q%2s%2y#@uP%3d%3t%3w%4X%4e%4i%4o%4u$'y$'|$'|%4x%4{P%5V%5YR#cP'`mO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*q*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0h0{1Q1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fU%om%p7QQ&m!`Q(j#]d0P)}/|/}0O0R4}5O5P5S8QR7Q3Tb}Oaewx{!g&S*q&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0{1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fS%`f0h#d%jgnp|#O$g$|$}%S%d%h%i%w&s't'u(Q*Y*`*b*t+],l,v-_-p-w.f.m.o0]0y0z1O1S2_2j5a6g;W;X;Y;`;a;b;o;p;q;r;v;w;x;y MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:425,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,17,24,25,26,42,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"]],propSources:[s],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S;=`(u<%lO$e4e5xd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#X4Y#X#Y7W#Y#o4Y#o;'S$e;'S;=`(u<%lO$e4e7cd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#Y4Y#Y#Z8q#Z#o4Y#o;'S$e;'S;=`(u<%lO$e4e8|d)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#]4Y#]#^:[#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e:gd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#b4Y#b#c;u#c#o4Y#o;'S$e;'S;=`(u<%lO$e4e][)S,g)ZW(pQ%Z!b'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!?`^)ZW(pQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|!@[|!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!@gY)ZW!X-y(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!AbY!h,k)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!B__)ZW(pQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox}$e}!O!@[!O!_$e!_!`!8g!`!a!C^!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!CiY(x-y)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Dd^)ZW(pQ'f&j(w,gOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!E`!P!Q$e!Q![!GY![#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Ei[)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!F_!P#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!FjY)X,k)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]!Gen)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx!Icx!Q$e!Q![!GY![!g$e!g!h#$w!h!i#*Y!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#X$e#X#Y#$w#Y#Z#*Y#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2T!IjY(pQ'f&jOY(OZr(Ors%}s!Q(O!Q![!JY![#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O2T!Jcn(pQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Icx!Q(O!Q![!JY![!g(O!g!h!La!h!i##`!i!n(O!n!o##`!o!r(O!r!s!La!s!w(O!w!x##`!x#O(O#O#P&f#P#X(O#X#Y!La#Y#Z##`#Z#`(O#`#a##`#a#d(O#d#e!La#e#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ljl(pQ!i,g'f&jOY(OZr(Ors%}s{(O{|!Nb|}(O}!O!Nb!O!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ni^(pQ'f&jOY(OZr(Ors%}s!Q(O!Q![# e![!c(O!c!i# e!i#O(O#O#P&f#P#T(O#T#Z# e#Z;'S(O;'S;=`(o<%lO(O2T# nj(pQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Nbx!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T##id(pQ!i,g'f&jOY(OZr(Ors%}s!h(O!h!i##`!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#Y(O#Y#Z##`#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2]#%Sn)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|#'Q|}$e}!O#'Q!O!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#'Z`)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![#(]![!c$e!c!i#(]!i#O$e#O#P&f#P#T$e#T#Z#(]#Z;'S$e;'S;=`(u<%lO$e2]#(hj)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx!Nbx!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#*ef)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox!h$e!h!i#*Y!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#Y$e#Y#Z#*Y#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e7Z#,W`)ZW(pQ%Z!b![,g'f&jOY$eZr$ers%^sw$ewx(Oxz$ez{#-Y{!P$e!P!Q#:s!Q!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#-c])ZW(pQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y1e#._TOz#.[z{#.n{;'S#.[;'S;=`#/]<%lO#.[1e#.qVOz#.[z{#.n{!P#.[!P!Q#/W!Q;'S#.[;'S;=`#/]<%lO#.[1e#/]OT1e1e#/`P;=`<%l#.[7X#/jZ)ZW'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7P#0bX'f&jOY#0]YZ#.[Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1SZ'f&jOY#0]YZ#.[Zz#0]z{#0}{!P#0]!P!Q#1u!Q#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1|UT1e'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}7P#2eZ'f&jOY#0]YZ#0]Z]#0]]^#3W^z#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3]X'f&jOY#0]YZ#0]Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3{P;=`<%l#0]7X#4V])ZW'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{!P#/c!P!Q#5O!Q#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7X#5XW)ZWT1e'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^7X#5tP;=`<%l#/c7R#6OZ(pQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#6x](pQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{!P#5w!P!Q#7q!Q#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#7zW(pQT1e'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O7R#8gP;=`<%l#5w7Z#8s_)ZW(pQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{!P#-Y!P!Q#9r!Q#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y7Z#9}Y)ZW(pQT1e'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#:pP;=`<%l#-Y7Z#;OY)ZW(pQS1e'f&jOY#:sZr#:srs#;nsw#:swx#@{x#O#:s#O#P#[<%lO#b#P;'S#[<%lO#[<%lO#_P;=`<%l#i]S1e'f&jOY#b#P#b#[<%lO#[<%lO#b#P#b#[<%lO#t!R![$2V![!c$e!c!i$2V!i#O$e#O#P&f#P#T$e#T#Z$2V#Z;'S$e;'S;=`(u<%lO$e2]$?Pv)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx$4lx!O$e!O!P$ m!P!Q$e!Q![$2V![!c$e!c!g$2V!g!h$:p!h!i$2V!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#U$2V#U#V$2V#V#X$2V#X#Y$:p#Y#Z$2V#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j#l$e#l#m$0z#m;'S$e;'S;=`(u<%lO$e4e$Ar[(v-X)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox![$e![!]$Bh!]#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3s$BsYl-})ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]$CnY)W,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7V$Dk_p,g%]!b)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!^$Ej!^!_%+w!_!`%.U!`!a%0]!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej*[$Es])ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ejp$FoTO!`$Fl!`!a$GO!a;'S$Fl;'S;=`$GT<%lO$Flp$GTO$Wpp$GWP;=`<%l$Fl*Y$GbZ)ZW'f&jOY$GZYZ$FlZw$GZwx$HTx!`$GZ!`!a%(U!a#O$GZ#O#P$Ib#P;'S$GZ;'S;=`%(y<%lO$GZ*Q$HYX'f&jOY$HTYZ$FlZ!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q$IOU$WpY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}*Q$Ig['f&jOY$HTYZ$HTZ]$HT]^$J]^!`$HT!`!a$NO!a#O$HT#O#P%&n#P;'S$HT;'S;=`%'f;=`<%l%$z<%lO$HT*Q$JbX'f&jOY$HTYZ$J}Z!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT'[$KSX'f&jOY$J}YZ$FlZ!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$KvU$Wp'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}'[$L_Z'f&jOY$J}YZ$J}Z]$J}]^$MQ^!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MVX'f&jOY$J}YZ$J}Z!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MuP;=`<%l$J}*Q$M{P;=`<%l$HT*Q$NVW$Wp'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`$NtW'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`% eUY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%})`% |Y'f&jOY$NoYZ$NoZ]$No]^%!l^#O$No#O#P%#d#P;'S$No;'S;=`%$[;=`<%l%$z<%lO$No)`%!qX'f&jOY$NoYZ%}Z!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%#aP;=`<%l$No)`%#iZ'f&jOY$NoYZ%}Z]$No]^%!l^!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%$_XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$No<%lO%$z#t%$}WOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h<%lO%$z#t%%lOY#t#t%%oRO;'S%$z;'S;=`%%x;=`O%$z#t%%{XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l%$z<%lO%$z#t%&kP;=`<%l%$z*Q%&sZ'f&jOY$HTYZ$J}Z]$HT]^$J]^!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q%'iXOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$HT<%lO%$z*Y%(aW$WpY#t)ZW'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^*Y%(|P;=`<%l$GZ*S%)WZ(pQ'f&jOY%)PYZ$FlZr%)Prs$HTs!`%)P!`!a%)y!a#O%)P#O#P$Ib#P;'S%)P;'S;=`%*n<%lO%)P*S%*UW$WpY#t(pQ'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O*S%*qP;=`<%l%)P*[%+RY$WpY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e*[%+tP;=`<%l$Ej7V%,U^)ZW(pQ%[!b!f,g'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!_$Ej!_!`%-Q!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%-]]!g-y)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%.c]%]!b!b,g)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%/[!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%/mY%]!b!b,g$WpY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e)j%0hYY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%1c[)j!c)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`0Q!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%2f]%]!b)ZW(pQ!d,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`%3_!`!a%4[!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%3lY%]!b!b,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%4i[)ZW(pQ%[!b!f,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%5jY(uP)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z%6ib)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e7Z%8Qb)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e5P%9cW)ZW(o/]'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^2T%:UW(pQ)Y,g'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O3o%:yZ!V-y)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!}$e!}#O%;l#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%;wY)PP)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e4e%[Z]%=q]^%?Z^!Q%=q!Q![%?w![!w%=q!w!x%AX!x#O%=q#O#P%H_#P#i%=q#i#j%Ds#j#l%=q#l#m%IR#m;'S%=q;'S;=`%Kt<%lO%=q&t%=xUXY'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}4e%>e[XY(n.o'f&jOX%}XY-OYZ*[Z]%}]^-O^p%}pq-Oq#O%}#O#P,^#P;'S%};'S;=`'r<%lO%}4e%?bVXY'f&jOY%}YZ-OZ#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@OWXY'f&jOY%}Z!Q%}!Q![%@h![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@oWXY'f&jOY%}Z!Q%}!Q![%=q![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%A^['f&jOY%}Z!Q%}!Q![%BS![!c%}!c!i%BS!i#O%}#O#P&f#P#T%}#T#Z%BS#Z;'S%};'S;=`'r<%lO%}&t%BX['f&jOY%}Z!Q%}!Q![%B}![!c%}!c!i%B}!i#O%}#O#P&f#P#T%}#T#Z%B}#Z;'S%};'S;=`'r<%lO%}&t%CS['f&jOY%}Z!Q%}!Q![%Cx![!c%}!c!i%Cx!i#O%}#O#P&f#P#T%}#T#Z%Cx#Z;'S%};'S;=`'r<%lO%}&t%C}['f&jOY%}Z!Q%}!Q![%Ds![!c%}!c!i%Ds!i#O%}#O#P&f#P#T%}#T#Z%Ds#Z;'S%};'S;=`'r<%lO%}&t%Dx['f&jOY%}Z!Q%}!Q![%En![!c%}!c!i%En!i#O%}#O#P&f#P#T%}#T#Z%En#Z;'S%};'S;=`'r<%lO%}&t%Es['f&jOY%}Z!Q%}!Q![%Fi![!c%}!c!i%Fi!i#O%}#O#P&f#P#T%}#T#Z%Fi#Z;'S%};'S;=`'r<%lO%}&t%Fn['f&jOY%}Z!Q%}!Q![%Gd![!c%}!c!i%Gd!i#O%}#O#P&f#P#T%}#T#Z%Gd#Z;'S%};'S;=`'r<%lO%}&t%Gi['f&jOY%}Z!Q%}!Q![%=q![!c%}!c!i%=q!i#O%}#O#P&f#P#T%}#T#Z%=q#Z;'S%};'S;=`'r<%lO%}&t%HfXXY'f&jOY%}YZ%}Z]%}]^'W^#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%IW['f&jOY%}Z!Q%}!Q![%I|![!c%}!c!i%I|!i#O%}#O#P&f#P#T%}#T#Z%I|#Z;'S%};'S;=`'r<%lO%}&t%JR['f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KO[XY'f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KwP;=`<%l%=q2a%LVZ!W,V)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P#Q%Lx#Q;'S$e;'S;=`(u<%lO$e'Y%MTY)]d)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%NQ[)ZW(pQ%[!b'f&j!_,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z& Vd)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q!Y%6Y!Y!Z%7q!Z![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e2]&!pY!T,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o&#m^)ZW(pQ%[!b'f&j!^,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P#p$e#p#q&$i#q;'S$e;'S;=`(u<%lO$e3o&$vY)T,g%^!b)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e'V&%qY!Ua)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e(]&&nc)ZW(pQ%[!b'RP'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)ZW(pQ'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)ZW(pQdT'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[o,a,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,307]},dynamicPrecedences:{87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,365:3,417:1,418:3,419:1,420:1},specialized:[{term:356,get:e=>l[e]||-1},{term:32,get:e=>u[e]||-1},{term:66,get:e=>c[e]||-1},{term:363,get:e=>d[e]||-1}],tokenPrec:24891});var h=n(72107);const p=h.qp.define({name:"cpp",parser:f.configure({props:[h.uj.add({IfStatement:(0,h.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,h.tC)({except:/^\s*({|catch)\b/}),LabeledStatement:h.ze,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:(0,h.vw)({closing:"}"}),Statement:(0,h.tC)({except:/^{/})}),h.x0.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":h.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function m(){return new h.ri(p)}},59958:(e,t,n)=>{"use strict";n.r(t),n.d(t,{css:()=>Q,cssCompletionSource:()=>T,cssLanguage:()=>$,defineCSSCompletionSource:()=>C});var r=n(64963),i=n(7778);const o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function a(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const s=new r.Jq(((e,t)=>{for(let r=!1,i=0,o=0;;o++){let{next:s}=e;if(!(a(s)||45==s||95==s||r&&(n=s,n>=48&&n<=57))){r&&e.acceptToken(40==s?97:2==i&&t.canShift(2)?2:98);break}!r&&(45!=s||o>0)&&(r=!0),i===o&&45==s&&i++,e.advance()}var n})),l=new r.Jq((e=>{if(o.includes(e.peek(-1))){let{next:t}=e;(a(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(96)}})),u=new r.Jq((e=>{if(!o.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),a(t)){do{e.advance()}while(a(e.next));e.acceptToken(1)}}})),c=(0,i.Gv)({"AtKeyword import charset namespace keyframes media supports":i.pJ.definitionKeyword,"from to selector":i.pJ.keyword,NamespaceName:i.pJ.namespace,KeyframeName:i.pJ.labelName,KeyframeRangeName:i.pJ.operatorKeyword,TagName:i.pJ.tagName,ClassName:i.pJ.className,PseudoClassName:i.pJ.constant(i.pJ.className),IdName:i.pJ.labelName,"FeatureName PropertyName":i.pJ.propertyName,AttributeName:i.pJ.attributeName,NumberLiteral:i.pJ.number,KeywordQuery:i.pJ.keyword,UnaryQueryOp:i.pJ.operatorKeyword,"CallTag ValueName":i.pJ.atom,VariableName:i.pJ.variableName,Callee:i.pJ.operatorKeyword,Unit:i.pJ.unit,"UniversalSelector NestingSelector":i.pJ.definitionOperator,MatchOp:i.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":i.pJ.logicOperator,BinOp:i.pJ.arithmeticOperator,Important:i.pJ.modifier,Comment:i.pJ.blockComment,ColorLiteral:i.pJ.color,"ParenthesizedContent StringLiteral":i.pJ.string,":":i.pJ.punctuation,"PseudoOp #":i.pJ.derefOperator,"; ,":i.pJ.separator,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace}),d={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},f={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},h={__proto__:null,not:128,only:128},p=r.WQ.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[l,u,s,1,2,3,4,new r.RA("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:e=>d[e]||-1},{term:56,get:e=>f[e]||-1},{term:98,get:e=>h[e]||-1}],tokenPrec:1169});var m=n(72107),g=n(54163);let v=null;function O(){if(!v&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),n.has(r)||(t.push(r),n.add(r)));v=t.sort().map((e=>({type:"property",label:e})))}return v||[]}const y=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),b=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),w=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),k=/^(\w[\w-]*|-\w[\w-]*|)$/,x=/^-(-[\w-]*)?$/,_=new g.hr,S=["Declaration"];function P(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function E(e,t,n){if(t.to-t.from>4096){let r=_.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(g.vj.IncludeAnonymous);if(a.firstChild())do{for(let t of E(e,a.node,n))o.has(t.label)||(o.add(t.label),i.push(t))}while(a.nextSibling());return _.set(t,i),i}{let r=[],i=new Set;return t.cursor().iterate((t=>{var o;if(n(t)&&t.matchContext(S)&&":"==(null===(o=t.node.nextSibling)||void 0===o?void 0:o.name)){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:"variable"}))}})),r}}const C=e=>t=>{let{state:n,pos:r}=t,i=(0,m.qz)(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&"-"==n.doc.sliceString(i.from,i.to);if("PropertyName"==i.name||(o||"TagName"==i.name)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:O(),validFor:k};if("ValueName"==i.name)return{from:i.from,options:b,validFor:k};if("PseudoClassName"==i.name)return{from:i.from,options:y,validFor:k};if(e(i)||(t.explicit||o)&&function(e,t){var n;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let r=null===(n=e.parent)||void 0===n?void 0:n.firstChild;return"Callee"==(null==r?void 0:r.name)&&"var"==t.sliceString(r.from,r.to)}(i,n.doc))return{from:e(i)||o?i.from:r,options:E(n.doc,P(i),e),validFor:x};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:O(),validFor:k};return{from:i.from,options:w,validFor:k}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&":"==s.name&&"PseudoClassSelector"==a.name?{from:r,options:y,validFor:k}:s&&":"==s.name&&"Declaration"==a.name||"ArgList"==a.name?{from:r,options:b,validFor:k}:"Block"==a.name||"Styles"==a.name?{from:r,options:O(),validFor:k}:null},T=C((e=>"VariableName"==e.name)),$=m.qp.define({name:"css",parser:p.configure({props:[m.uj.add({Declaration:(0,m.tC)()}),m.x0.add({"Block KeyframeList":m.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Q(){return new m.ri($,$.data.of({autocomplete:T}))}},6407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoCloseTags:()=>be,html:()=>Oe,htmlCompletionSource:()=>de,htmlCompletionSourceWith:()=>fe,htmlLanguage:()=>ve,htmlPlain:()=>ge});var r=n(64963),i=n(7778),o=n(54163);const a=20,s=22,l=23,u=24,c=26,d=27,f=28,h=31,p=34,m=37,g={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},v={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},O={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function y(e){return 9==e||10==e||13==e||32==e}let b=null,w=null,k=0;function x(e,t){let n=e.pos+t;if(k==n&&w==e)return b;let r=e.peek(t);for(;y(r);)r=e.peek(++t);let i="";for(;45==(o=r)||46==o||58==o||o>=65&&o<=90||95==o||o>=97&&o<=122||o>=161;)i+=String.fromCharCode(r),r=e.peek(++t);var o;return w=e,k=n,b=i?i.toLowerCase():r==_||r==S?void 0:null}const _=63,S=33;function P(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;tE.indexOf(t)>-1?new P(x(r,1)||"",e):e,reduce:(e,t)=>t==a&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 6==i||36==i?new P(x(r,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),T=new r.Jq(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let n=47==e.next;n&&e.advance();let r=x(e,0);if(void 0===r)return;if(!r)return e.acceptToken(n?14:6);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(11);if(i&&v[i])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(13)}else{if("script"==r)return e.acceptToken(7);if("style"==r)return e.acceptToken(8);if("textarea"==r)return e.acceptToken(9);if(g.hasOwnProperty(r))return e.acceptToken(10);i&&O[i]&&O[i][r]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0}),$=new r.Jq((e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){n>3&&e.acceptToken(58,-2);break}t=0}e.advance()}})),Q=new r.Jq(((e,t)=>{if(47==e.next&&62==e.peek(1)){let n=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(n?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}));function R(e,t,n){let i=2+e.length;return new r.Jq((r=>{for(let o=0,a=0,s=0;;s++){if(r.next<0){s&&r.acceptToken(t);break}if(0==o&&60==r.next||1==o&&47==r.next||o>=2&&oa?r.acceptToken(t,-a):r.acceptToken(n,-(a-2));break}if((10==r.next||13==r.next)&&s){r.acceptToken(t,1);break}o=a=0}else a++;r.advance()}}))}const A=R("script",54,1),j=R("style",55,2),D=R("textarea",56,3),M=(0,i.Gv)({"Text RawText":i.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i.pJ.angleBracket,TagName:i.pJ.tagName,"MismatchedCloseTag/TagName":[i.pJ.tagName,i.pJ.invalid],AttributeName:i.pJ.attributeName,"AttributeValue UnquotedAttributeValue":i.pJ.attributeValue,Is:i.pJ.definitionOperator,"EntityReference CharacterReference":i.pJ.character,Comment:i.pJ.blockComment,ProcessingInst:i.pJ.processingInstruction,DoctypeDecl:i.pJ.documentMeta}),I=r.WQ.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:C,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[M],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let o=e.type.id;if(o==f)return N(e,t,n);if(o==h)return N(e,t,r);if(o==p)return N(e,t,i);if(o==a&&s.length){let n,r=e.node,i=r.firstChild,o=i&&W(i,t);if(o)for(let e of s)if(e.tag==o&&(!e.attrs||e.attrs(n||(n=z(r,t))))){let t=r.lastChild;return{parser:e.parser,overlay:[{from:i.to,to:t.type.id==m?t.from:r.to}]}}}if(u&&o==l){let n,r=e.node;if(n=r.firstChild){let e=u[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=W(r.parent,t))continue;let e=r.lastChild;if(e.type.id==c){let t=e.from+1,r=e.lastChild,i=e.to-(r&&r.isError?0:1);if(i>t)return{parser:n.parser,overlay:[{from:t,to:i}]}}else if(e.type.id==d)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}return null}))}var F=n(59958),U=n(59403),X=n(87283),q=n(30638),B=n(72107);const V=["_blank","_self","_top","_parent"],Y=["ascii","utf-8","utf-16","latin1","latin1"],Z=["get","post","put","delete"],G=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],H=["true","false"],K={},J={a:{attrs:{href:null,ping:null,type:null,media:null,target:V,hreflang:null}},abbr:K,address:K,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:K,aside:K,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:K,base:{attrs:{href:null,target:V}},bdi:K,bdo:K,blockquote:{attrs:{cite:null}},body:K,br:K,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:G,formmethod:Z,formnovalidate:["novalidate"],formtarget:V,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:K,center:K,cite:K,code:K,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:K,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:K,div:K,dl:K,dt:K,em:K,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:K,figure:K,footer:K,form:{attrs:{action:null,name:null,"accept-charset":Y,autocomplete:["on","off"],enctype:G,method:Z,novalidate:["novalidate"],target:V}},h1:K,h2:K,h3:K,h4:K,h5:K,h6:K,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:K,hgroup:K,hr:K,html:{attrs:{manifest:null}},i:K,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:G,formmethod:Z,formnovalidate:["novalidate"],formtarget:V,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:K,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:K,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:K,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Y,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:K,noscript:K,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:K,param:{attrs:{name:null,value:null}},pre:K,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:K,rt:K,ruby:K,samp:K,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Y}},section:K,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:K,source:{attrs:{src:null,type:null,media:null}},span:K,strong:K,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:K,summary:K,sup:K,table:K,tbody:K,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:K,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:K,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:K,time:{attrs:{datetime:null}},title:K,tr:K,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:K,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:K},ee={accesskey:null,class:null,contenteditable:H,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:H,autocorrect:H,autocapitalize:H,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":H,"aria-autocomplete":["inline","list","both","none"],"aria-busy":H,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":H,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":H,"aria-hidden":H,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":H,"aria-multiselectable":H,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":H,"aria-relevant":null,"aria-required":H,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},te="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e=>"on"+e));for(let e of te)ee[e]=null;class ne{constructor(e,t){this.tags=Object.assign(Object.assign({},J),e),this.globalAttrs=Object.assign(Object.assign({},ee),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function re(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function ie(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function oe(e,t,n){let r=n.tags[re(e,ie(t))];return(null==r?void 0:r.children)||n.allTags}function ae(e,t){let n=[];for(let r=ie(t);r&&!r.type.isTop;r=ie(r.parent)){let i=re(e,r);if(i&&"CloseTag"==r.lastChild.name)break;i&&n.indexOf(i)<0&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(i)}return n}ne.default=new ne;const se=/^[:\-\.\w\u00b7-\uffff]*$/;function le(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=ie(n,!0);return{from:r,to:i,options:oe(e.doc,a,t).map((e=>({label:e,type:"type"}))).concat(ae(e.doc,n).map(((e,t)=>({label:"/"+e,apply:"/"+e+o,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ue(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:ae(e.doc,t).map(((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t}))),validFor:se}}function ce(e,t){let{state:n,pos:r}=t,i=(0,B.qz)(n).resolveInner(r,-1),o=i.resolve(r);for(let e,t=r;o==i&&(e=i.childBefore(t));){let n=e.lastChild;if(!n||!n.type.isError||n.from({label:e,type:"property"}))),validFor:se}}(n,e,i,"AttributeName"==i.name?i.from:r,r):"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,n,r,i){var o;let a,s=null===(o=n.parent)||void 0===o?void 0:o.getChild("AttributeName"),l=[];if(s){let o=e.sliceDoc(s.from,s.to),u=t.globalAttrs[o];if(!u){let r=ie(n),i=r?t.tags[re(e.doc,r)]:null;u=(null==i?void 0:i.attrs)&&i.attrs[o]}if(u){let t=e.sliceDoc(r,i).toLowerCase(),n='"',o='"';/^['"]/.test(t)?(a='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",o=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),r++):a=/^[^\s<>='"]*$/;for(let e of u)l.push({label:e,apply:n+e+o,type:"constant"})}}return{from:r,to:i,options:l,validFor:a}}(n,e,i,"Is"==i.name?r:i.from,r):!t.explicit||"Element"!=o.name&&"Text"!=o.name&&"Document"!=o.name?null:function(e,t,n,r){let i=[],o=0;for(let r of oe(e.doc,n,t))i.push({label:"<"+r,type:"type"});for(let t of ae(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,e,i,r)}function de(e){return ce(ne.default,e)}function fe(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new ne(t,n):ne.default;return e=>ce(r,e)}const he=U.javascriptLanguage.parser.configure({top:"SingleExpression"}),pe=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:U.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:U.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:U.tsxLanguage.parser},{tag:"script",attrs:e=>"importmap"==e.type||"speculationrules"==e.type,parser:he},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:U.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:F.cssLanguage.parser}],me=[{name:"style",parser:F.cssLanguage.parser.configure({top:"Styles"})}].concat(te.map((e=>({name:e,parser:U.javascriptLanguage.parser})))),ge=B.qp.define({name:"html",parser:I.configure({props:[B.uj.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),ve=ge.configure({wrap:L(pe,me)});function Oe(e={}){let t,n="";!1===e.matchClosingTags&&(n="noMatch"),!0===e.selfClosingTags&&(n=(n?n+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=L((e.nestedLanguages||[]).concat(pe),(e.nestedAttributes||[]).concat(me)));let r=t?ge.configure({wrap:t,dialect:n}):n?ve.configure({dialect:n}):ve;return new B.ri(r,[ve.data.of({autocomplete:fe(e)}),!1!==e.autoCloseTags?be:[],(0,U.javascript)().support,(0,F.css)().support])}const ye=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),be=X.tk.inputHandler.of(((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!ve.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange((e=>{var t,n,i;let o,s=a.doc.sliceString(e.from-1,e.to)==r,{head:l}=e,u=(0,B.qz)(a).resolveInner(l-1,-1);if("TagName"!=u.name&&"StartTag"!=u.name||(u=u.parent),s&&">"==r&&"OpenTag"==u.name){if("CloseTag"!=(null===(n=null===(t=u.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=re(a.doc,u.parent,l))&&!ye.has(o))return{range:e,changes:{from:l,to:l+(">"===a.doc.sliceString(l,l+1)?1:0),insert:``}}}else if(s&&"/"==r&&"IncompleteCloseTag"==u.name){let e=u.parent;if(u.from==l-2&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(o=re(a.doc,e,l))&&!ye.has(o)){let e=l+(">"===a.doc.sliceString(l,l+1)?1:0),t=`${o}>`;return{range:q.jT.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))},7501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{java:()=>c,javaLanguage:()=>u});var r=n(64963),i=n(7778);const o=(0,i.Gv)({null:i.pJ.null,instanceof:i.pJ.operatorKeyword,this:i.pJ.self,"new super assert open to with void":i.pJ.keyword,"class interface extends implements enum var":i.pJ.definitionKeyword,"module package import":i.pJ.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":i.pJ.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":i.pJ.modifier,IntegerLiteral:i.pJ.integer,FloatingPointLiteral:i.pJ.float,"StringLiteral TextBlock":i.pJ.string,CharacterLiteral:i.pJ.character,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,BooleanLiteral:i.pJ.bool,PrimitiveType:i.pJ.standard(i.pJ.typeName),TypeName:i.pJ.typeName,Identifier:i.pJ.variableName,"MethodName/Identifier":i.pJ.function(i.pJ.variableName),Definition:i.pJ.definition(i.pJ.variableName),ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,AssignOp:i.pJ.definitionOperator,UpdateOp:i.pJ.updateOperator,Asterisk:i.pJ.punctuation,Label:i.pJ.labelName,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,".":i.pJ.derefOperator,", ;":i.pJ.separator}),a={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:236,open:265,module:267,requires:272,transitive:274,exports:276,to:278,opens:280,uses:282,provides:284,with:286,package:290,import:294,if:306,else:308,while:312,for:316,var:323,assert:330,switch:334,case:340,do:344,break:348,continue:352,return:356,throw:362,try:366,catch:370,finally:378},s=r.WQ.deserialize({version:14,states:"#!hQ]QPOOO&tQQO'#H[O(xQQO'#CbOOQO'#Cb'#CbO)PQPO'#CaO)XOSO'#CpOOQO'#Ha'#HaOOQO'#Cu'#CuO*tQPO'#D_O+_QQO'#HkOOQO'#Hk'#HkO-sQQO'#HfO-zQQO'#HfOOQO'#Hf'#HfOOQO'#He'#HeO0OQPO'#DUO0]QPO'#GlO3TQPO'#D_O3[QPO'#DzO)PQPO'#E[O3}QPO'#E[OOQO'#DV'#DVO5]QQO'#H_O7dQQO'#EeO7kQPO'#EdO7pQPO'#EfOOQO'#H`'#H`O5sQQO'#H`O8sQQO'#FgO8zQPO'#EwO9PQPO'#E|O9PQPO'#FOOOQO'#H_'#H_OOQO'#HW'#HWOOQO'#Gf'#GfOOQO'#HV'#HVO:aQPO'#FhOOQO'#HU'#HUOOQO'#Ge'#GeQ]QPOOOOQO'#Hq'#HqO:fQPO'#HqO:kQPO'#D{O:kQPO'#EVO:kQPO'#EQO:sQPO'#HnO;UQQO'#EfO)PQPO'#C`O;^QPO'#C`O)PQPO'#FbO;cQPO'#FdO;nQPO'#FjO;nQPO'#FmO:kQPO'#FrO;sQPO'#FoO9PQPO'#FvO;nQPO'#FxO]QPO'#F}O;xQPO'#GPOyOSO,59[OOQO,59[,59[OOQO'#Hg'#HgO?jQPO,59eO@lQPO,59yOOQO-E:d-E:dO)PQPO,58zOA`QPO,58zO)PQPO,5;|OAeQPO'#DQOAjQPO'#DQOOQO'#Gi'#GiOBjQQO,59jOOQO'#Dm'#DmODRQPO'#HsOD]QPO'#DlODkQPO'#HrODsQPO,5<^ODxQPO,59^OEcQPO'#CxOOQO,59c,59cOEjQPO,59bOGrQQO'#H[OJVQQO'#CbOJmQPO'#D_OKrQQO'#HkOLSQQO,59pOLZQPO'#DvOLiQPO'#HzOLqQPO,5:`OLvQPO,5:`OM^QPO,5;mOMiQPO'#IROMtQPO,5;dOMyQPO,5=WOOQO-E:j-E:jOOQO,5:f,5:fO! aQPO,5:fO! hQPO,5:vO! mQPO,5<^O)PQPO,5:vO:kQPO,5:gO:kQPO,5:qO:kQPO,5:lO:kQPO,5<^O!!^QPO,59qO9PQPO,5:}O!!eQPO,5;QO9PQPO,59TO!!sQPO'#DXOOQO,5;O,5;OOOQO'#El'#ElOOQO'#En'#EnO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;eOOQO,5;h,5;hOOQO,5],5>]O!%SQPO,5:gO!%bQPO,5:qO!%jQPO,5:lO!%uQPO,5>YOLZQPO,5>YO! {QPO,59UO!&QQQO,58zO!&YQQO,5;|O!&bQQO,5_O!.ZQPO,5:WO:kQPO'#GnO!.bQPO,5>^OOQO1G1x1G1xOOQO1G.x1G.xO!.{QPO'#CyO!/kQPO'#HkO!/uQPO'#CzO!0TQPO'#HjO!0]QPO,59dOOQO1G.|1G.|OEjQPO1G.|O!0sQPO,59eO!1QQQO'#H[O!1cQQO'#CbOOQO,5:b,5:bO:kQPO,5:cOOQO,5:a,5:aO!1tQQO,5:aOOQO1G/[1G/[O!1yQPO,5:bO!2[QPO'#GqO!2oQPO,5>fOOQO1G/z1G/zO!2wQPO'#DvO!3YQPO'#D_O!3aQPO1G/zO!!zQPO'#GoO!3fQPO1G1XO9PQPO1G1XO:kQPO'#GwO!3nQPO,5>mOOQO1G1O1G1OOOQO1G0Q1G0QO!3vQPO'#E]OOQO1G0b1G0bO!4gQPO1G1xO! hQPO1G0bO!%SQPO1G0RO!%bQPO1G0]O!%jQPO1G0WOOQO1G/]1G/]O!4lQQO1G.pO7kQPO1G0jO)PQPO1G0jO:sQPO'#HnO!6`QQO1G.pOOQO1G.p1G.pO!6eQQO1G0iOOQO1G0l1G0lO!6lQPO1G0lO!6wQQO1G.oO!7_QQO'#HoO!7lQPO,59sO!8{QQO1G0pO!:dQQO1G0pO!;rQQO1G0pO!UOOQO1G/O1G/OOOQO7+$h7+$hOOQO1G/{1G/{O#1TQQO1G/{OOQO1G/}1G/}O#1YQPO1G/{OOQO1G/|1G/|O:kQPO1G/}OOQO,5=],5=]OOQO-E:o-E:oOOQO7+%f7+%fOOQO,5=Z,5=ZOOQO-E:m-E:mO9PQPO7+&sOOQO7+&s7+&sOOQO,5=c,5=cOOQO-E:u-E:uO#1_QPO'#EUO#1mQPO'#EUOOQO'#Gu'#GuO#2UQPO,5:wOOQO,5:w,5:wOOQO7+'d7+'dOOQO7+%|7+%|OOQO7+%m7+%mO!AYQPO7+%mO!A_QPO7+%mO!AgQPO7+%mOOQO7+%w7+%wO!BVQPO7+%wOOQO7+%r7+%rO!CUQPO7+%rO!CZQPO7+%rOOQO7+&U7+&UOOQO'#Ee'#EeO7kQPO7+&UO7kQPO,5>YO#2uQPO7+$[OOQO7+&T7+&TOOQO7+&W7+&WO9PQPO'#GjO#3TQPO,5>ZOOQO1G/_1G/_O9PQPO7+&kO#3`QQO,59eO#4cQPO'#DrO! pQPO'#DrO#4nQPO'#HwO#4vQPO,5:]O#5aQQO'#HgO#5|QQO'#CuO! mQPO'#HvO#6lQPO'#DpO#6vQPO'#HvO#7XQPO'#DpO#7aQPO'#IPO#7fQPO'#E`OOQO'#Hp'#HpOOQO'#Gk'#GkO#7nQPO,59vOOQO,59v,59vO#7uQPO'#HqOOQO,5:h,5:hO#9]QPO'#H|OOQO'#EP'#EPOOQO,5:i,5:iO#9hQPO'#EYO:kQPO'#EYO#9yQPO'#H}O#:UQPO,5:sO! mQPO'#HvO!!zQPO'#HvO#:^QPO'#DpOOQO'#Gs'#GsO#:eQPO,5:oOOQO,5:o,5:oOOQO,5:n,5:nOOQO,5;S,5;SO#;_QQO,5;SO#;fQPO,5;SOOQO-E:t-E:tOOQO7+&X7+&XOOQO7+)`7+)`O#;mQQO7+)`OOQO'#Gz'#GzO#=ZQPO,5;rOOQO,5;r,5;rO#=bQPO'#FXO)PQPO'#FXO)PQPO'#FXO)PQPO'#FXO#=pQPO7+'UO#=uQPO7+'UOOQO7+'U7+'UO]QPO7+'[O#>QQPO1G1{O! mQPO1G1{O#>`QQO1G1wO!!sQPO1G1wO#>gQPO1G1wO#>nQQO7+'hOOQO'#G}'#G}O#>uQPO,5|QPO'#HqO9PQPO'#F{O#?UQPO7+'oO#?ZQPO,5=OO! mQPO,5=OO#?`QPO1G2iO#@iQPO1G2iOOQO1G2i1G2iOOQO-E:|-E:|OOQO7+'z7+'zO!2[QPO'#G^OpOOQO1G.n1G.nOOQO<X,5>XOOQO,5=S,5=SOOQO-E:f-E:fO#EjQPO7+%gOOQO7+%g7+%gOOQO7+%i7+%iOOQO<cOOQO1G/w1G/wO#IfQPO'#HsO#ImQPO,59xO#IrQPO,5>bO! mQPO,59xO#I}QPO,5:[O#7fQPO,5:zO! mQPO,5>bO!!zQPO,5>bO#7aQPO,5>kOOQO,5:[,5:[OLvQPO'#DtOOQO,5>k,5>kO#JVQPO'#EaOOQO,5:z,5:zO#MWQPO,5:zO!!zQPO'#DxOOQO-E:i-E:iOOQO1G/b1G/bOOQO,5:y,5:yO!!zQPO'#GrO#M]QPO,5>hOOQO,5:t,5:tO#MhQPO,5:tO#MvQPO,5:tO#NXQPO'#GtO#NoQPO,5>iO#NzQPO'#EZOOQO1G0_1G0_O$ RQPO1G0_O! mQPO,5:pOOQO-E:q-E:qOOQO1G0Z1G0ZOOQO1G0n1G0nO$ WQQO1G0nOOQO<oOOQO1G1Y1G1YO$%uQPO'#FTOOQO,5=e,5=eOOQO-E:w-E:wO$%zQPO'#GmO$&XQPO,5>aOOQO1G/u1G/uOOQO<sAN>sO!AYQPOAN>sOOQOAN>xAN>xOOQOAN?[AN?[O7kQPOAN?[O$&pQPO,5:_OOQO1G/x1G/xOOQO,5=[,5=[OOQO-E:n-E:nO$&{QPO,5>eOOQO1G/d1G/dOOQO1G3|1G3|O$'^QPO1G/dOOQO1G/v1G/vOOQO1G0f1G0fO#MWQPO1G0fO#7aQPO'#HyO$'cQPO1G3|O! mQPO1G3|OOQO1G4V1G4VOK^QPO'#DvOJmQPO'#D_OOQO,5:{,5:{O$'nQPO,5:{O$'nQPO,5:{O$'uQQO'#H_O$'|QQO'#H`O$(WQQO'#EbO$(cQPO'#EbOOQO,5:d,5:dOOQO,5=^,5=^OOQO-E:p-E:pOOQO1G0`1G0`O$(kQPO1G0`OOQO,5=`,5=`OOQO-E:r-E:rO$(yQPO,5:uOOQO7+%y7+%yOOQO7+&Y7+&YOOQO1G1_1G1_O$)QQQO1G1_OOQO-E:y-E:yO$)YQQO'#IWO$)TQPO1G1_O$ mQPO1G1_O)PQPO1G1_OOQOAN@[AN@[O$)eQQO<rO$,cQPO7+&yO$,hQQO'#IXOOQOAN@mAN@mO$,sQQOAN@mOOQOAN@iAN@iO$,zQPOAN@iO$-PQQO<sOOQOG26XG26XOOQOG26TG26TOOQO<bPPP>hP@|PPPAv2vPCoPPDjPEaEgPPPPPPPPPPPPFpGXPJ_JgJqKZKaKgMVMZMZMcPMrNx! k! uP!![NxP!!b!!l!!{!#TP!#r!#|!$SNx!$V!$]EaEa!$a!$k!$n2v!&Y2v2v!(RP.^P!(VP!(vPPPPPP.^P.^!)d.^PP.^P.^PP.^!*x!+SPP!+Y!+cPPPPPPPP&}P&}PP!+g!+g!+z!+gPP!+gP!+gP!,e!,hP!+g!-O!+gP!+gP!-R!-UP!+gP!+gP!+gP!+gP!+g!+gP!+gP!-YP!-`!-c!-iP!+g!-u!-x!.Q!.d!2a!2g!2m!3s!3y!4T!5X!5_!5e!5o!5u!5{!6R!6X!6_!6e!6k!6q!6w!6}!7T!7Z!7e!7k!7u!7{PPP!8R!+g!8vP!g!]!^!?w!^!_!@e!_!`!BO!`!a!Br!a!b!D`!b!c!EO!c!}!Kz!}#O!MW#O#P%Q#P#Q!Mt#Q#R!Nb#R#S4e#S#T%Q#T#o4e#o#p# U#p#q# r#q#r##[#r#s##x#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%QS%VV&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&WSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&WS%wZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%Q_)iY&WS%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XZ*^Y%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XV+TX#sP&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QU+wV#_Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT,aXOY,|YZ%lZr,|rs3Ys#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T-PXOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT-qX&WSOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT.cVcPOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZT.}V&WSOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT/iW&WSOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0UWOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0sOcPP0vTOY0RYZ0RZ;'S0R;'S;=`1V<%lO0RP1YP;=`<%l0RT1`XOY,|YZ%lZr,|rs1{s#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T2QUcPOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZT2gVOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT3PP;=`<%l-lT3VP;=`<%l,|T3_VcPOY&ZYZ%lZr&Zrs3ts;'S&Z;'S;=`'`<%lO&ZT3yR&USXY4SYZ4`pq4SP4VRXY4SYZ4`pq4SP4eO&VP_4la%}Z&WSOY%QYZ%lZr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o;'S%Q;'S;=`&s<%lO%QU5xX#gQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU6lV#]Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV7YZ&lR&WSOY%QYZ%lZr%Qrs%qsv%Qvw7{w!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU8SV#aQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT8nZ&WSOY9aYZ%lZr9ars:osw9awx%Qx#O9a#O#P;y#P;'S9a;'S;=`@z<%lO9aT9fX&WSOY%QYZ%lZr%Qrs%qsw%Qwx:Rx;'S%Q;'S;=`&s<%lO%QT:YVbP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT:rXOY&ZYZ%lZr&Zrs&ysw&Zwx;_x;'S&Z;'S;=`'`<%lO&ZT;dVbPOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT_YZ%lZr>_rs?Zsw>_wx;_x#O>_#O#P&Z#P;'S>_;'S;=`@t<%lO>_T>bZOY_YZ%lZr>_rs@Psw>_wx;_x#O>_#O#P&Z#P;'S>_;'S;=`@t<%lO>_P@SVOY@PZw@Pwx@ix#O@P#P;'S@P;'S;=`@n<%lO@PP@nObPP@qP;=`<%l@PT@wP;=`<%l>_T@}P;=`<%l9a_AXVZZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVAuVYR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVBeX$YP&WS#fQOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVCXZ#eR&WSOY%QYZ%lZr%Qrs%qs{%Q{|Cz|!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVDRV#qR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVDoVqR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVE][#eR&WSOY%QYZ%lZr%Qrs%qs}%Q}!OCz!O!_%Q!_!`6e!`!aFR!a;'S%Q;'S;=`&s<%lO%QVFYV&vR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_FvZWY&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PGi!P!Q%Q!Q![Hw![;'S%Q;'S;=`&s<%lO%QVGnX&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PHZ!P;'S%Q;'S;=`&s<%lO%QVHbV&oR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTIOc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hw![!f%Q!f!gJZ!g!hJw!h!iJZ!i#R%Q#R#SNq#S#W%Q#W#XJZ#X#YJw#Y#ZJZ#Z;'S%Q;'S;=`&s<%lO%QTJbV&WS`POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTJ|]&WSOY%QYZ%lZr%Qrs%qs{%Q{|Ku|}%Q}!OKu!O!Q%Q!Q![Lg![;'S%Q;'S;=`&s<%lO%QTKzX&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lg![;'S%Q;'S;=`&s<%lO%QTLnc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lg![!f%Q!f!gJZ!g!h%Q!h!iJZ!i#R%Q#R#SMy#S#W%Q#W#XJZ#X#Y%Q#Y#ZJZ#Z;'S%Q;'S;=`&s<%lO%QTNOZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lg![#R%Q#R#SMy#S;'S%Q;'S;=`&s<%lO%QTNvZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hw![#R%Q#R#SNq#S;'S%Q;'S;=`&s<%lO%Q_! p]&WS#fQOY%QYZ%lZr%Qrs%qsz%Qz{!!i{!P%Q!P!Q!)[!Q!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%Q_!!nX&WSOY!!iYZ!#ZZr!!irs!$vsz!!iz{!&U{;'S!!i;'S;=`!'j<%lO!!i_!#`T&WSOz!#oz{!$R{;'S!#o;'S;=`!$p<%lO!#oZ!#rTOz!#oz{!$R{;'S!#o;'S;=`!$p<%lO!#oZ!$UVOz!#oz{!$R{!P!#o!P!Q!$k!Q;'S!#o;'S;=`!$p<%lO!#oZ!$pOQZZ!$sP;=`<%l!#o_!$yXOY!%fYZ!#ZZr!%frs!'psz!%fz{!(`{;'S!%f;'S;=`!)U<%lO!%f_!%iXOY!!iYZ!#ZZr!!irs!$vsz!!iz{!&U{;'S!!i;'S;=`!'j<%lO!!i_!&ZZ&WSOY!!iYZ!#ZZr!!irs!$vsz!!iz{!&U{!P!!i!P!Q!&|!Q;'S!!i;'S;=`!'j<%lO!!i_!'TV&WSQZOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!'mP;=`<%l!!i_!'sXOY!%fYZ!#ZZr!%frs!#osz!%fz{!(`{;'S!%f;'S;=`!)U<%lO!%f_!(cZOY!!iYZ!#ZZr!!irs!$vsz!!iz{!&U{!P!!i!P!Q!&|!Q;'S!!i;'S;=`!'j<%lO!!i_!)XP;=`<%l!%f_!)cV&WSPZOY!)[YZ%lZr!)[rs!)xs;'S!)[;'S;=`!+O<%lO!)[_!)}VPZOY!*dYZ%lZr!*drs!+Us;'S!*d;'S;=`!,X<%lO!*d_!*iVPZOY!)[YZ%lZr!)[rs!)xs;'S!)[;'S;=`!+O<%lO!)[_!+RP;=`<%l!)[_!+ZVPZOY!*dYZ%lZr!*drs!+ps;'S!*d;'S;=`!,X<%lO!*dZ!+uSPZOY!+pZ;'S!+p;'S;=`!,R<%lO!+pZ!,UP;=`<%l!+p_!,[P;=`<%l!*dT!,fu&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.y!P!Q%Q!Q![!0V![!d%Q!d!e!3a!e!f%Q!f!gJZ!g!hJw!h!iJZ!i!n%Q!n!o!1{!o!q%Q!q!r!5_!r!z%Q!z!{!7V!{#R%Q#R#S!2i#S#U%Q#U#V!3a#V#W%Q#W#XJZ#X#YJw#Y#ZJZ#Z#`%Q#`#a!1{#a#c%Q#c#d!5_#d#l%Q#l#m!7V#m;'S%Q;'S;=`&s<%lO%QT!/Qa&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hw![!f%Q!f!gJZ!g!hJw!h!iJZ!i#W%Q#W#XJZ#X#YJw#Y#ZJZ#Z;'S%Q;'S;=`&s<%lO%QT!0^i&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.y!P!Q%Q!Q![!0V![!f%Q!f!gJZ!g!hJw!h!iJZ!i!n%Q!n!o!1{!o#R%Q#R#S!2i#S#W%Q#W#XJZ#X#YJw#Y#ZJZ#Z#`%Q#`#a!1{#a;'S%Q;'S;=`&s<%lO%QT!2SV&WS_POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT!2nZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!0V![#R%Q#R#S!2i#S;'S%Q;'S;=`&s<%lO%QT!3fY&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4U!R!S!4U!S;'S%Q;'S;=`&s<%lO%QT!4]`&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4U!R!S!4U!S!n%Q!n!o!1{!o#R%Q#R#S!3a#S#`%Q#`#a!1{#a;'S%Q;'S;=`&s<%lO%QT!5dX&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!6P!Y;'S%Q;'S;=`&s<%lO%QT!6W_&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!6P!Y!n%Q!n!o!1{!o#R%Q#R#S!5_#S#`%Q#`#a!1{#a;'S%Q;'S;=`&s<%lO%QT!7[_&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!P!8Z!P!Q%Q!Q![!:i![!c%Q!c!i!:i!i#T%Q#T#Z!:i#Z;'S%Q;'S;=`&s<%lO%QT!8`]&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9X![!c%Q!c!i!9X!i#T%Q#T#Z!9X#Z;'S%Q;'S;=`&s<%lO%QT!9^c&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9X![!c%Q!c!i!9X!i!r%Q!r!sJw!s#R%Q#R#S!8Z#S#T%Q#T#Z!9X#Z#d%Q#d#eJw#e;'S%Q;'S;=`&s<%lO%QT!:pi&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!<_!P!Q%Q!Q![!:i![!c%Q!c!i!:i!i!n%Q!n!o!1{!o!r%Q!r!sJw!s#R%Q#R#S!=i#S#T%Q#T#Z!:i#Z#`%Q#`#a!1{#a#d%Q#d#eJw#e;'S%Q;'S;=`&s<%lO%QT!nX#oR&WSOY%QYZ%lZr%Qrs%qs![%Q![!]!?Z!];'S%Q;'S;=`&s<%lO%QV!?bV&tR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!@OV!PR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!@lY&]Z&WSOY%QYZ%lZr%Qrs%qs!^%Q!^!_!A[!_!`+p!`;'S%Q;'S;=`&s<%lO%QU!AcX#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV!BVX!bR&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QV!ByY&[R&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`!a!Ci!a;'S%Q;'S;=`&s<%lO%QU!CpY#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`!a!A[!a;'S%Q;'S;=`&s<%lO%Q_!DiV&`X#nQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!EVX%{Z&WSOY%QYZ%lZr%Qrs%qs#]%Q#]#^!Er#^;'S%Q;'S;=`&s<%lO%QV!EwX&WSOY%QYZ%lZr%Qrs%qs#b%Q#b#c!Fd#c;'S%Q;'S;=`&s<%lO%QV!FiX&WSOY%QYZ%lZr%Qrs%qs#h%Q#h#i!GU#i;'S%Q;'S;=`&s<%lO%QV!GZX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!Gv#Y;'S%Q;'S;=`&s<%lO%QV!G{X&WSOY%QYZ%lZr%Qrs%qs#f%Q#f#g!Hh#g;'S%Q;'S;=`&s<%lO%QV!HmX&WSOY%QYZ%lZr%Qrs%qs#Y%Q#Y#Z!IY#Z;'S%Q;'S;=`&s<%lO%QV!I_X&WSOY%QYZ%lZr%Qrs%qs#T%Q#T#U!Iz#U;'S%Q;'S;=`&s<%lO%QV!JPX&WSOY%QYZ%lZr%Qrs%qs#V%Q#V#W!Jl#W;'S%Q;'S;=`&s<%lO%QV!JqX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!K^#Y;'S%Q;'S;=`&s<%lO%QV!KeV&rR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!LRa&PZ&WSOY%QYZ%lZr%Qrs%qst%Qtu!Kzu!Q%Q!Q![!Kz![!c%Q!c!}!Kz!}#R%Q#R#S!Kz#S#T%Q#T#o!Kz#o;'S%Q;'S;=`&s<%lO%Q_!M_VuZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!M{VsR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QU!NiX#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV# ]V}R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_# {Z&|X#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`#p%Q#p#q#!n#q;'S%Q;'S;=`&s<%lO%QU#!uV#dQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##cV|R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT#$PV#tP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q",tokenizers:[0,1,2,3],topRules:{Program:[0,3]},dynamicPrecedences:{27:1,230:-1,241:-1},specialized:[{term:229,get:e=>a[e]||-1}],tokenPrec:7067});var l=n(72107);const u=l.qp.define({name:"java",parser:s.configure({props:[l.uj.add({IfStatement:(0,l.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,l.tC)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:l.ze,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,l.vw)({closing:"}"}),BlockComment:()=>null,Statement:(0,l.tC)({except:/^{/})}),l.x0.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":l.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function c(){return new l.ri(u)}},59403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoCloseTags:()=>q,completionPath:()=>R,esLint:()=>B,javascript:()=>F,javascriptLanguage:()=>j,jsxLanguage:()=>I,localCompletionSource:()=>$,scopeCompletionSource:()=>A,snippets:()=>b,tsxLanguage:()=>z,typescriptLanguage:()=>M,typescriptSnippets:()=>w});var r=n(64963),i=n(7778);const o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],a=new r.IK({start:!1,shift:(e,t)=>3==t||4==t||307==t?e:308==t,strict:!1}),s=new r.Jq(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(305)}),{contextual:!0,fallback:!0}),l=new r.Jq(((e,t)=>{let n,{next:r}=e;o.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(304))}),{contextual:!0}),u=new r.Jq(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}),{contextual:!0}),c=(0,i.Gv)({"get set async static":i.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":i.pJ.controlKeyword,"in of await yield void typeof delete instanceof":i.pJ.operatorKeyword,"let var const function class extends":i.pJ.definitionKeyword,"import export from":i.pJ.moduleKeyword,"with debugger as new":i.pJ.keyword,TemplateString:i.pJ.special(i.pJ.string),super:i.pJ.atom,BooleanLiteral:i.pJ.bool,this:i.pJ.self,null:i.pJ.null,Star:i.pJ.modifier,VariableName:i.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i.pJ.function(i.pJ.variableName),VariableDefinition:i.pJ.definition(i.pJ.variableName),Label:i.pJ.labelName,PropertyName:i.pJ.propertyName,PrivatePropertyName:i.pJ.special(i.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":i.pJ.function(i.pJ.propertyName),"FunctionDeclaration/VariableDefinition":i.pJ.function(i.pJ.definition(i.pJ.variableName)),"ClassDeclaration/VariableDefinition":i.pJ.definition(i.pJ.className),PropertyDefinition:i.pJ.definition(i.pJ.propertyName),PrivatePropertyDefinition:i.pJ.definition(i.pJ.special(i.pJ.propertyName)),UpdateOp:i.pJ.updateOperator,"LineComment Hashbang":i.pJ.lineComment,BlockComment:i.pJ.blockComment,Number:i.pJ.number,String:i.pJ.string,Escape:i.pJ.escape,ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,RegExp:i.pJ.regexp,Equals:i.pJ.definitionOperator,Arrow:i.pJ.function(i.pJ.punctuation),": Spread":i.pJ.punctuation,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,"InterpolationStart InterpolationEnd":i.pJ.special(i.pJ.brace),".":i.pJ.derefOperator,", ;":i.pJ.separator,"@":i.pJ.meta,TypeName:i.pJ.typeName,TypeDefinition:i.pJ.definition(i.pJ.typeName),"type enum interface implements namespace module declare":i.pJ.definitionKeyword,"abstract global Privacy readonly override":i.pJ.modifier,"is keyof unique infer":i.pJ.operatorKeyword,JSXAttributeValue:i.pJ.attributeValue,JSXText:i.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":i.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i.pJ.attributeName,"JSXBuiltin/JSXIdentifier":i.pJ.standard(i.pJ.tagName)}),d={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},f={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},h={__proto__:null,"<":139},p=r.WQ.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AcQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AkQSO,5=sO!ApQSO,5=sO!AuQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BTQWO,5=`O!B]Q,UO,5=aO!BhQSO,5=cO!BmQ`O,5=fO!BuQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!BzQSO'#HRO9{Q,UO'#HTO!CPQSO'#HTOOQQ,5=i,5=iO!CUQSO'#HUO!C^QSO'#CmO!CcQSO,58}O!CmQSO,58}O!ErQUO,58}OOQQ,58},58}O!FSQ(C[O,58}O%[QUO,58}O!H_QUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!HuQSO,5=uO`QUO,5={O`QUO,5=}O!HzQSO,5>PO`QUO,5>RO!IPQSO,5>UO!IUQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!M`QSO,5>fOOQQ,5>h,5>hO!M`QSO,5>hOOQQ,5>j,5>jO!MeQWO'#DYO%[QUO'#JiO!NSQWO'#JiO!NqQWO'#DhO# SQWO'#DhO##eQUO'#DhO##lQSO'#JhO##tQSO,5:RO##yQSO'#EnO#$XQSO'#JvO#$aQSO,5;XO#$fQWO'#DhO#$sQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#$zQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%SQSO,5@TO#%XQ!LQO,5:pOOQO-E<_-E<_O#&_Q(C`O,5:{OChQWO,5:oO#&iQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#&vQ(C[O,5:{O#'RQ(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'aQ(C[O,5:{POOO'#IU'#IUP#'uO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(aQUO'#I[OOQO-ERQ(CjO1G0yO#?yQ(CjO1G0yO#ByQ$IUO'#CgO#DwQ$IUO1G1[O#EOQ$IUO'#JfO!,YQSO1G1bO#E`Q(CjO,5?SOOQ(CW-EeQSO1G3kO$.VQUO1G3mO$2ZQUO'#HlOOQQ1G3p1G3pO$2hQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$2pQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$6wQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$6|Q$IUO,5:SOOQO,5;Y,5;YO$7WQWO'#I]O$7nQSO,5@SOOQ(CY1G/m1G/mO$7vQWO'#IcO$8QQSO,5@bOOQ(CW1G0s1G0sO# SQWO,5:SOOQO'#I`'#I`O$8YQWO,5:nOOQ(CY,5:n,5:nO#$}QSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8aQ(C[O1G0gO$8lQ(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$8zQ(C[O1G0gOOQO1G0Z1G0ZO$9`Q(CjO1G0gPOOO-EvO$9|QSO1G5mO$:UQSO1G5zO$:^QbO1G5{O9TQSO,5>|O$:hQ(CjO1G5xO%[QUO1G5xO$:xQ(C[O1G5xO$;ZQSO1G5wO$;ZQSO1G5wO9TQSO1G5wO$;cQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$;wQSO,5?PO$$XQSO,5?POOQO-ExQ(CjO,5WOOQQ,5>W,5>WO%[QUO'#HmO%(ZQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%(`QWO1G5oO%(tQ$IUO1G0tO%)OQSO1G0tOOQO1G/n1G/nO%)ZQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9`Q(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%)eQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%)pQ(C[O7+&RO%*OQ(CjO7++dO%[QUO7++dO%*`QSO7++cO%*`QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%*hQSO1G4kOOQO7+%z7+%zO#$}QSO<xOOQO-E<[-E<[O%2^QbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%2hQSO1G5qOOQ(CY<XQ$IUO1G0yO%>`Q$IUO1G0yO%@WQ$IUO1G0yO%@kQ(CjO<XOOQQ,5>Z,5>ZO%NUQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO%NZQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&5rQSO<{AN>{O%[QUOAN?XOOQO<SQSO7++uO%LgQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&>[QSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#MzQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&>dQSOANBTOOQQ<iQSOLD,jO&>qQ$IUO7+'tO&@gQ$IUO7+'vO&B]Q,UOG26|OOQO<YOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#@sOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#CQO#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,gO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#CQO!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,gO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,gO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ hOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!^Oz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#PO#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$nOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+dO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#CQOm!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ hO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!^O#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#PO#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,gO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#CQO#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,gO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,gOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$I|Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$JoO(d$ZO~P#,gO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,gO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,gO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,gO!Y$|O~P#,gO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%$nOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O'v#mO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#CQO#Y5lO!W#bi!X#bi~O!W![i!X![i~P#CQO_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$I|O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$JoO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,gOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#CQOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%2}O#h9zO~P%2}OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5YOl9|O~P%5YOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%7eOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%7eOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:PO(k#|O~P%:POP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%<[O(l#}O~P%<[OP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO(TVO(k#|O(l#}O~O#w#gi#z#gi(d#gi!W#gi!X#gi~P%>gO_#xy!W#xy'm#xy'k#xy!T#xy!h#xyp#xy!Y#xy%b#xy!b#xy~P!7zOh;mOz)vO})wO(k)yO(l){O~OP#giY#gil#gi{#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(T#gi(d#gi!W#gi!X#gi~P%A_O!g#wOP(SXY(SXh(SXl(SXz(SX{(SX}(SX!f(SX!i(SX!m(SX#h(SX#i(SX#j(SX#k(SX#l(SX#m(SX#n(SX#o(SX#p(SX#r(SX#t(SX#v(SX#w(SX#z(SX(T(SX(d(SX(k(SX(l(SX!W(SX!X(SX~O#z#{i!W#{i!X#{i~P#CQO#z!oi!X!oi~P$$nO!X6`O~O!W'[a!X'[a~P#CQO!b#uO(d'gO!W']a!h']a~O!W/VO!h(qi~O!W/VO!b#uO!h(qi~Oe$vq!W$vq#Y$vq#z$vq~P!0kO!T'_a!W'_a~P#,gO!b6gO~O!W/_O!T(ri~P#,gO!W/_O!T(ri~O!T6kO~O!b#uO#p6pO~Ol6qO!b#uO(d'gO~O!T6sO~Oe$xq!W$xq#Y$xq#z$xq~P!0kO_$jy!W$jy'm$jy'k$jy!T$jy!h$jyp$jy!Y$jy%b$jy!b$jy~P!7zO!b5kO~O!W4WO!Y(sa~O_#]y!W#]y'm#]y'k#]y!T#]y!h#]yp#]y!Y#]y%b#]y!b#]y~P!7zOY6xO~O!W0bO!X(zi~O^7OO~O(W(tO!W'dX!X'dX~O!W4nO!X(wa~OjkO'v7VO~P.iO!X7YO~P%$nOm!nO}7ZO'xTO'{UO(W!mO(c!sO~O!Y0zO~O!Y0zO%b7]O~Oh7`O!Y0zO%b7]O~OY7eO!W'ga!X'ga~O!W1VO!X(xi~O!h7iO~O!h7jO~O!h7mO~O!h7mO~P%[O_7oO~O!b7pO~O!h7qO~O!W(ii!X(ii~P#CQO_%gO#Y7yO'm%gO~O!W(fy!h(fy_(fy'm(fy~P!7zO!W(`O!h(ey~O!Y'VO%b7|O~O#e$vqP$vqY$vq_$vql$vq{$vq!W$vq!f$vq!g$vq!i$vq!m$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#o$vq#p$vq#r$vq#t$vq#v$vq#w$vq'm$vq(T$vq(d$vq!h$vq!T$vq'k$vq#Y$vqp$vq!Y$vq%b$vq!b$vq~P#,gO#e$xqP$xqY$xq_$xql$xq{$xq!W$xq!f$xq!g$xq!i$xq!m$xq#h$xq#i$xq#j$xq#k$xq#l$xq#m$xq#n$xq#o$xq#p$xq#r$xq#t$xq#v$xq#w$xq'm$xq(T$xq(d$xq!h$xq!T$xq'k$xq#Y$xqp$xq!Y$xq%b$xq!b$xq~P#,gO!W'Ri!h'Ri~P!7zO#z#]q!W#]q!X#]q~P#CQOz/yO{/yO}/zOPwaYwahwalwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa#zwa(Twa(dwa(kwa(lwa!Wwa!Xwa~Oz)vO})wOP$maY$mah$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma#z$ma(T$ma(d$ma(k$ma(l$ma!W$ma!X$ma~Oz)vO})wOP$oaY$oah$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa#z$oa(T$oa(d$oa(k$oa(l$oa!W$oa!X$oa~OP$}aY$}al$}a{$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a#z$}a(T$}a(d$}a!W$}a!X$}a~P%A_O#z$iq!W$iq!X$iq~P#CQO#z$jq!W$jq!X$jq~P#CQO!X8WO~O#z8XO~P!0kO!b#uO!W']i!h']i~O!b#uO(d'gO!W']i!h']i~O!W/VO!h(qq~O!T'_i!W'_i~P#,gO!W/_O!T(rq~O!T8_O~P#,gO!T8_O~Oe(Ry!W(Ry~P!0kO!W'ba!Y'ba~P#,gO_%Uq!Y%Uq'm%Uq!W%Uq~P#,gOY8dO~O!W0bO!X(zq~O#Y8hO!W'da!X'da~O!W4nO!X(wi~P#CQOPZXYZXlZXzZX{ZX}ZX!TZX!WZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX~O!b%SX#p%SX~P&2_O!Y0zO%b8lO~O'xTO'{UO(W8qO~O!W1VO!X(xq~O!h8tO~O!h8uO~O!h8vO~O!h8vO~P%[O#Y8yO!W#by!X#by~O!W#by!X#by~P#CQO!Y'VO%b9OO~O#z#xy!W#xy!X#xy~P#CQOP$viY$vil$vi{$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi#z$vi(T$vi(d$vi!W$vi!X$vi~P%A_Oz)vO})wO(l){OP%YiY%Yih%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi#z%Yi(T%Yi(d%Yi(k%Yi!W%Yi!X%Yi~Oz)vO})wOP%[iY%[ih%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i#z%[i(T%[i(d%[i(k%[i(l%[i!W%[i!X%[i~O#z$jy!W$jy!X$jy~P#CQO#z#]y!W#]y!X#]y~P#CQO!b#uO!W']q!h']q~O!W/VO!h(qy~O!T'_q!W'_q~P#,gO!T9VO~P#,gO!W0bO!X(zy~O!W4nO!X(wq~O!Y0zO%b9^O~O!h9aO~O!Y'VO%b9fO~OP$vqY$vql$vq{$vq!f$vq!g$vq!i$vq!m$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#o$vq#p$vq#r$vq#t$vq#v$vq#w$vq#z$vq(T$vq(d$vq!W$vq!X$vq~P%A_OP$xqY$xql$xq{$xq!f$xq!g$xq!i$xq!m$xq#h$xq#i$xq#j$xq#k$xq#l$xq#m$xq#n$xq#o$xq#p$xq#r$xq#t$xq#v$xq#w$xq#z$xq(T$xq(d$xq!W$xq!X$xq~P%A_Oe%^!Z!W%^!Z#Y%^!Z#z%^!Z~P!0kO!W'dq!X'dq~P#CQO!W#b!Z!X#b!Z~P#CQO#e%^!ZP%^!ZY%^!Z_%^!Zl%^!Z{%^!Z!W%^!Z!f%^!Z!g%^!Z!i%^!Z!m%^!Z#h%^!Z#i%^!Z#j%^!Z#k%^!Z#l%^!Z#m%^!Z#n%^!Z#o%^!Z#p%^!Z#r%^!Z#t%^!Z#v%^!Z#w%^!Z'm%^!Z(T%^!Z(d%^!Z!h%^!Z!T%^!Z'k%^!Z#Y%^!Zp%^!Z!Y%^!Z%b%^!Z!b%^!Z~P#,gOP%^!ZY%^!Zl%^!Z{%^!Z!f%^!Z!g%^!Z!i%^!Z!m%^!Z#h%^!Z#i%^!Z#j%^!Z#k%^!Z#l%^!Z#m%^!Z#n%^!Z#o%^!Z#p%^!Z#r%^!Z#t%^!Z#v%^!Z#w%^!Z#z%^!Z(T%^!Z(d%^!Z!W%^!Z!X%^!Z~P%A_Op(XX~P1qO'w!lO~P!*SO!TdX!WdX#YdX~P&2_OPZXYZXlZXzZX{ZX}ZX!WZX!WdX!fZX!gZX!iZX!mZX#YZX#YdX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX~O!bdX!hZX!hdX(ddX~P&GuOP9qOQ9qOb;bOc!iOjkOl9qOmkOnkOtkOv9qOx9qO}WO!RkO!SkO!YXO!d9tO!iZO!l9qO!m9qO!n9qO!p9uO!r9xO!u!hO$R!kO$VfO'v)UO'xTO'{UO(TVO(c[O(p;`O~O!W:VO!X$la~Oj%SOl$tOm$sOn$sOt%TOv%UOx:]O}${O!Y$|O!d;gO!i$xO#d:cO$R%YO$n:_O$p:aO$s%ZO'v(lO'xTO'{UO(P%RO(T$uO~O#q)]O~P&LkO!XZX!XdX~P&GuO#e9yO~O!b#uO#e9yO~O#Y:ZO~O#p:OO~O#Y:eO!W(iX!X(iX~O#Y:ZO!W(gX!X(gX~O#e:fO~Oe:hO~P!0kO#e:mO~O#e:nO~O!b#uO#e:oO~O!b#uO#e:fO~O#z:pO~P#CQO#e:qO~O#e:rO~O#e:sO~O#e:tO~O#e:uO~O#e:vO~O#z:wO~P!0kO#z:xO~P!0kO$V~!g!}#O#Q#R#U#c#d#o(p$n$p$s%V%a%b%c%j%l%o%p%r%t~'qR$V(p#i!S'o'w#jm#h#klz'p(W'p'v$X$Z$X~",goto:"$'R)OPPPP)PPP)SP)eP*t.xPPPP5YPP5pP;l>sP?WP?WPPP?WP@xP?WP?WP?WP@|PPARPAlPFdPPPFhPPPPFhIiPPPIoJjPFhPLxPPPP! WFhPPPFhPFhP!#fFhP!&z!'|!(VP!(y!(}!(yPPPPP!,Y!'|PP!,v!-pP!0dFhFh!0i!3s!8Y!8Y!wP#@W#@_#@gPPPP#Du#Gl#NT#NW#NZ$ S$ V$ Y$ a$ iPP$ o$ s$!k$#j$#n$$SPP$$W$$^$$bP$$e$$i$$l$%b$%y$&b$&f$&i$&l$&r$&u$&y$&}R!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:a,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[c],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#d[e]||-1},{term:330,get:e=>f[e]||-1},{term:68,get:e=>h[e]||-1}],tokenPrec:12827});var m=n(72107),g=n(30638),v=n(87283),O=n(71170),y=n(54163);const b=[(0,O.Gn)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,O.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,O.Gn)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,O.Gn)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,O.Gn)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,O.Gn)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,O.Gn)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,O.Gn)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,O.Gn)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,O.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,O.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],w=b.concat([(0,O.Gn)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,O.Gn)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,O.Gn)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),k=new y.hr,x=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function _(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const S=["FunctionDeclaration"],P={FunctionDeclaration:_("function"),ClassDeclaration:_("class"),ClassExpression:()=>!0,EnumDeclaration:_("constant"),TypeAliasDeclaration:_("type"),NamespaceDeclaration:_("namespace"),VariableDefinition(e,t){e.matchContext(S)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function E(e,t){let n=k.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(y.vj.IncludeAnonymous).iterate((t=>{if(i)i=!1;else if(t.name){let e=P[t.name];if(e&&e(t,o)||x.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of E(e,t.node))r.push(n);return!1}})),k.set(t,r),r}const C=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,T=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function $(e){let t=(0,m.qz)(e.state).resolveInner(e.pos,-1);if(T.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&C.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)x.has(n.name)&&(r=r.concat(E(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:C}}function Q(e,t,n){var r;let i=[];for(;;){let o,a=t.firstChild;if("VariableName"==(null==a?void 0:a.name))return i.push(e(a)),{path:i.reverse(),name:n};if("MemberExpression"!=(null==a?void 0:a.name)||"PropertyName"!=(null===(r=o=a.lastChild)||void 0===r?void 0:r.name))return null;i.push(e(o)),t=a}}function R(e){let t=t=>e.state.doc.sliceString(t.from,t.to),n=(0,m.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==n.name?Q(t,n.parent,t(n)):"."!=n.name&&"?."!=n.name||"MemberExpression"!=n.parent.name?T.indexOf(n.name)>-1?null:"VariableName"==n.name||n.to-n.from<20&&C.test(t(n))?{path:[],name:t(n)}:"MemberExpression"==n.name?Q(t,n,""):e.explicit?{path:[],name:""}:null:Q(t,n.parent,"")}function A(e){let t=new Map;return n=>{let r=R(n);if(!r)return null;let i=e;for(let e of r.path)if(i=i[e],!i)return null;let o=t.get(i);return o||t.set(i,o=function(e,t){let n=[],r=new Set;for(let i=0;;i++){for(let o of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(o)||r.has(o))continue;let a;r.add(o);try{a=e[o]}catch(e){continue}n.push({label:o,type:"function"==typeof a?/^[A-Z]/.test(o)?"class":t?"function":"method":t?"variable":"property",boost:-i})}let o=Object.getPrototypeOf(e);if(!o)return n;e=o}}(i,!r.path.length)),{from:n.pos-r.name.length,options:o,validFor:C}}}const j=m.qp.define({name:"javascript",parser:p.configure({props:[m.uj.add({IfStatement:(0,m.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,m.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:m.ze,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,m.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,m.tC)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),m.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":m.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),D={test:e=>/^JSX/.test(e.name),facet:(0,m.kU)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},M=j.configure({dialect:"ts"},"typescript"),I=j.configure({dialect:"jsx",props:[m.KC.add((e=>e.isTop?[D]:void 0))]}),z=j.configure({dialect:"jsx ts",props:[m.KC.add((e=>e.isTop?[D]:void 0))]},"typescript");let W=e=>({label:e,type:"keyword"});const N="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(W),L=N.concat(["declare","implements","private","protected","public"].map(W));function F(e={}){let t=e.jsx?e.typescript?z:I:e.typescript?M:j,n=e.typescript?w.concat(L):b.concat(N);return new m.ri(t,[j.data.of({autocomplete:(0,O.eC)(T,(0,O.Mb)(n))}),j.data.of({autocomplete:$}),e.jsx?q:[]])}function U(e,t,n=e.length){for(let r=null==t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const X="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),q=v.tk.inputHandler.of(((e,t,n,r,i)=>{if((X?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!j.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange((e=>{var t;let n,{head:i}=e,o=(0,m.qz)(a).resolveInner(i-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),a.doc.sliceString(i-1,i)!=r||"JSXAttributeValue"==o.name&&o.to>i);else{if(">"==r&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:i,insert:""}};if("/"==r&&"JSXStartCloseTag"==o.name){let e=o.parent,r=e.parent;if(r&&e.from==i-2&&((n=U(a.doc,r.firstChild,i))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:g.jT.cursor(i+e.length,-1),changes:{from:i,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&!/^\/?>|^<\//.test(a.doc.sliceString(i,i+2))&&(n=U(a.doc,t,i)))return{range:e,changes:{from:i,insert:``}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));function B(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach(((e,n)=>{e.meta.docs.recommended&&(t.rules[n]=2)}))),n=>{let{state:r}=n,i=[];for(let{from:n,to:o}of j.findRegions(r)){let a=r.doc.lineAt(n),s={line:a.number-1,col:n-a.from,pos:n};for(let a of e.verify(r.sliceDoc(n,o),t))i.push(Y(a,r.doc,s))}return i}}function V(e,t,n,r){return n.line(e+r.line).from+t+(1==e?r.col-1:-1)}function Y(e,t,n){let r=V(e.line,e.column,t,n),i={from:r,to:null!=e.endLine&&1!=e.endColumn?V(e.endLine,e.endColumn,t,n):r,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:o}=e.fix,a=t[0]+n.pos-r,s=t[1]+n.pos-r;i.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+a,to:t+s,insert:o},scrollIntoView:!0})}}]}return i}},54623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{json:()=>c,jsonLanguage:()=>u,jsonParseLinter:()=>l});var r=n(64963),i=n(7778);const o=(0,i.Gv)({String:i.pJ.string,Number:i.pJ.number,"True False":i.pJ.bool,PropertyName:i.pJ.propertyName,Null:i.pJ.null,",":i.pJ.separator,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace}),a=r.WQ.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[o],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var s=n(72107);const l=()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(t){if(!(t instanceof SyntaxError))throw t;const n=function(e,t){let n;return(n=e.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=e.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0}(t,e.state.doc);return[{from:n,message:t.message,severity:"error",to:n}]}return[]},u=s.qp.define({name:"json",parser:a.configure({props:[s.uj.add({Object:(0,s.tC)({except:/^\s*\}/}),Array:(0,s.tC)({except:/^\s*\]/})}),s.x0.add({"Object Array":s.Dv})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new s.ri(u)}},83856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{commonmarkLanguage:()=>qe,deleteMarkupBackward:()=>et,insertNewlineContinueMarkup:()=>Ke,markdown:()=>rt,markdownKeymap:()=>tt,markdownLanguage:()=>Be});var r,i=n(30638),o=n(87283),a=n(72107),s=n(71170),l=n(54163),u=n(7778);class c{static create(e,t,n,r,i){return new c(e,t,n,r+(r<<8)+e+(t<<4)|0,i,[],[])}constructor(e,t,n,r,i,o,a){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=o,this.positions=a,this.hashProp=[[l.md.contextHash,r]]}addChild(e,t){e.prop(l.md.contextHash)!=this.hash&&(e=new l.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new l.mp(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new l.mp(l.Jq.none,e,t,n,this.hashProp)})}}!function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.URL=33]="URL",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel"}(r||(r={}));class d{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class f{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return g(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let i=(e.type==r.OrderedList?x:k)(n,t,!1);return i>0&&(e.type!=r.BulletList||b(n,t,!1)<0)&&n.text.charCodeAt(n.pos+i-1)==e.value}const p={[r.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(H(r.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(m(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[r.ListItem]:(e,t,n)=>!(n.indent-1||(n.moveBaseColumn(n.baseIndent+e.value),0)),[r.OrderedList]:h,[r.BulletList]:h,[r.Document]:()=>!0};function m(e){return 32==e||9==e||10==e||13==e}function g(e,t=0){for(;tn&&m(e.charCodeAt(t-1));)t--;return t}function O(e){if(96!=e.next&&126!=e.next)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||r<3?-1:1}function w(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function k(e,t,n){return 45!=e.next&&43!=e.next&&42!=e.next||e.pos!=e.text.length-1&&!m(e.text.charCodeAt(e.pos+1))||!(!n||w(t,r.BulletList)||e.skipSpace(e.pos+2)=48&&o<=57;){if(i++,i==e.text.length)return-1;o=e.text.charCodeAt(i)}return i==e.pos||i>e.pos+9||46!=o&&41!=o||ie.pos+1||49!=e.next)?-1:i+1-e.pos}function _(e){if(35!=e.next)return-1;let t=e.pos+1;for(;t6?-1:n}function S(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,C=/\?>/,T=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(i);if(a)return e.append(H(r.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(i);if(s)return e.append(H(r.ProcessingInstruction,n,n+1+s[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return l?e.append(H(r.HTMLTag,n,n+1+l[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),o=e.slice(r,r+1),a=re.test(i),s=re.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),f=c&&(42==t||!d||a),h=d&&(42==t||!c||s);return e.append(new ne(95==t?K:J,n,r,(f?1:0)|(h?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(H(r.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(H(r.HardBreak,n,t+1))}return-1},Link:(e,t,n)=>91==t?e.append(new ne(ee,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new ne(te,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return-1;for(let t=e.parts.length-1;t>=0;t--){let i=e.parts[t];if(i instanceof ne&&(i.type==ee||i.type==te)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let o=e.takeContent(t),a=e.parts[t]=oe(e,o,i.type==ee?r.Link:r.Image,i.from,n+1);if(i.type==ee)for(let n=0;nt?H(r.URL,t+n,o+n):o==e.length&&null}}function se(e,t,n){let i=e.charCodeAt(t);if(39!=i&&34!=i&&40!=i)return!1;let o=40==i?41:i;for(let i=t+1,a=!1;i=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new ne(e,t,n,(r?1:0)|(i?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t=e;a--){let e=this.parts[a];if(e instanceof ne&&1&e.side&&e.type==n.type&&!(i&&(1&n.side||2&e.side)&&(e.to-e.from+o)%3==0&&((e.to-e.from)%3||o%3))){r=e;break}}if(!r)continue;let s=n.type.resolve,l=[],u=r.from,c=n.to;if(i){let e=Math.min(2,r.to-r.from,o);u=r.to-e,c=n.from+e,s=1==e?"Emphasis":"StrongEmphasis"}r.type.mark&&l.push(this.elt(r.type.mark,u,r.to));for(let e=a+1;e=0;t--){let n=this.parts[t];if(n instanceof ne&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return g(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return"string"==typeof e?H(this.parser.getNodeType(e),t,n,r):new G(e,t)}}function ce(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(l.md.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=e.absoluteLineStart,a=o,s=e.block.children.length,u=a,c=s;for(;;){if(t.to-n>i){if(t.type.isAnonymous&&t.firstChild())continue;break}let o=he(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,o);else{let n=new l.mp(e.parser.nodeSet.types[r.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,o)}if(t.type.is("Block")&&(de.indexOf(t.type.id)<0?(a=t.to-n,s=e.block.children.length):(a=u,s=c,u=t.to-n,c=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>s;)e.block.children.pop(),e.block.positions.pop();return a-o}}function he(e,t){let n=e;for(let r=1;rA[e])),Object.keys(A).map((e=>I[e])),Object.keys(A),z,p,Object.keys(ie).map((e=>ie[e])),Object.keys(ie),[]);function ge(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let e=i?i.from:n;if(e>o&&r.push({from:o,to:e}),!i)break;o=i.to}return r}const ve={resolve:"Strikethrough",mark:"StrikethroughMark"},Oe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":u.pJ.strikethrough}},{name:"StrikethroughMark",style:u.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(126!=t||126!=e.char(n+1)||126==e.char(n+2))return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=re.test(r),l=re.test(i);return e.addDelimiter(ve,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function ye(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1),u=!u&&92==n}return s>-1&&(o++,r&&c()),o}function be(e,t){for(let n=t;nbe(t.content,0)?new ke:null,endLeaf(e,t,n){if(n.parsers.some((e=>e instanceof ke))||!be(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return we.test(r)&&ye(e,t.text,t.basePos)==ye(e,r,t.basePos)},before:"SetextHeading"}]};class _e{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const Se={defineNodes:[{name:"Task",block:!0,style:u.pJ.list},{name:"TaskMarker",style:u.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\][ \t]/.test(t.content)&&"ListItem"==e.parentType().name?new _e:null,after:"SetextHeading"}]},Pe=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Ee=/[\w-]+(\.\w+(\.\w+)?)(\/[^\s<]*)?/gy,Ce=/[\w.+-]+@[\w-]+\.[\w.-]+/gy,Te=/\/[a-zA-Z\d@.]+/gy;function $e(e,t,n,r){let i=0;for(let o=t;o$e(e,t,r,"("))r--;else{if(";"!=i||!(n=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))break;r=t+n.index}}return r}(e.text,r+i[0].length):i[3]?o=Qe(e.text,r):(o=Qe(e.text,r+i[0].length),o>-1&&"xmpp:"==i[0]&&(Te.lastIndex=o,i=Te.exec(e.text),i&&(o=i.index+i[0].length))),o<0?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)):-1}}]}];function Ae(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let i=o+1;i!e.is("Block")||e.is("Document")||null!=Le(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to}))),We.add(Le),a.uj.add({Document:()=>null}),a.pp.add({Document:ze})]});function Le(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function Fe(e,t){let n=e;for(;;){let e,r=n.nextSibling;if(!r||null!=(e=Le(r.type))&&e<=t)break;n=r}return n.to}const Ue=a.rs.of(((e,t,n)=>{for(let r=(0,a.qz)(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:t}}return null}));function Xe(e){return new a.SQ(ze,e,[Ue],"markdown")}const qe=Xe(Ne),Be=Xe(Ne.configure([Re,De,je,Me]));class Ve{constructor(e,t,n,r,i,o,a){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=o,this.item=a}blank(e,t=!0){let n=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;n.length0;e--)n+=" ";return n+(t?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+Ze(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function Ye(e,t){let n=[];for(let t=e;t&&"Document"!=t.name;t=t.parent)"ListItem"!=t.name&&"Blockquote"!=t.name&&"FencedCode"!=t.name||n.push(t);let r=[];for(let e=n.length-1;e>=0;e--){let i,o=n[e],a=t.lineAt(o.from),s=o.from-a.from;if("FencedCode"==o.name)r.push(new Ve(o,s,s,"","","",null));else if("Blockquote"==o.name&&(i=/^ *>( ?)/.exec(a.text.slice(s))))r.push(new Ve(o,s,s+i[0].length,"",i[1],">",null));else if("ListItem"==o.name&&"OrderedList"==o.parent.name&&(i=/^( *)\d+([.)])( *)/.exec(a.text.slice(s)))){let e=i[3],t=i[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new Ve(o.parent,s,s+t,i[1],e,i[2],o))}else if("ListItem"==o.name&&"BulletList"==o.parent.name&&(i=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(s)))){let e=i[4],t=i[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=i[2];i[3]&&(n+=i[3].replace(/[xX]/," ")),r.push(new Ve(o.parent,s,s+t,i[1],e,n,o))}}return r}function Ze(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function Ge(e,t,n,r=0){for(let i=-1,o=e;;){if("ListItem"==o.name){let e=Ze(o,t),a=+e[2];if(i>=0){if(a!=i+1)return;n.push({from:o.from+e[1].length,to:o.from+e[0].length,insert:String(i+2+r)})}i=a}let e=o.nextSibling;if(!e)break;o=e}}function He(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||"\t"!=t.facet(a.c))return e;let r="";for(let t=(0,i.IS)(e,4,n);t>0;)t>=4?(r+="\t",t-=4):(r+=" ",t--);return r+e.slice(n)}const Ke=({state:e,dispatch:t})=>{let n=(0,a.qz)(e),{doc:r}=e,o=null,s=e.changeByRange((t=>{if(!t.empty||!Be.isActiveAt(e,t.from))return o={range:t};let a=t.from,s=r.lineAt(a),l=Ye(n.resolveInner(a,-1),r);for(;l.length&&l[l.length-1].from>a-s.from;)l.pop();if(!l.length)return o={range:t};let u=l[l.length-1];if(u.to-u.spaceAfter.length>a-s.from)return o={range:t};let c=a>=u.to-u.spaceAfter.length&&!/\S/.test(s.text.slice(u.to));if(u.item&&c){if(u.node.firstChild.to>=a||s.from>0&&!/[^\s>]/.test(r.lineAt(s.from-1).text)){let e,t=l.length>1?l[l.length-2]:null,n="";t&&t.item?(e=s.from+t.from,n=t.marker(r,1)):e=s.from+(t?t.to:0);let o=[{from:e,to:a,insert:n}];return"OrderedList"==u.node.name&&Ge(u.item,r,o,-2),t&&"OrderedList"==t.node.name&&Ge(t.item,r,o),{range:i.jT.cursor(e+n.length),changes:o}}{let t="";for(let e=0,n=l.length-2;e<=n;e++)t+=l[e].blank(e\s*$/.exec(n.text);if(i&&i.index==u.from){let r=e.changes([{from:n.from+i.index,to:n.to},{from:s.from+u.from,to:s.to}]);return{range:t.map(r),changes:r}}}let d=[];"OrderedList"==u.node.name&&Ge(u.item,r,d);let f=u.item&&u.item.from]*/.exec(s.text)[0].length>=u.to)for(let e=0,t=l.length-1;e<=t;e++)h+=e!=t||f?l[e].blank(es.from&&/\s/.test(s.text.charAt(p-s.from-1));)p--;return h=e.lineBreak+He(h,e),d.push({from:p,to:a,insert:h}),{range:i.jT.cursor(p+h.length),changes:d}}));return!o&&(t(e.update(s,{scrollIntoView:!0,userEvent:"input"})),!0)};function Je(e){return"QuoteMark"==e.name||"ListMark"==e.name}const et=({state:e,dispatch:t})=>{let n=(0,a.qz)(e),r=null,o=e.changeByRange((t=>{let o=t.from,{doc:a}=e;if(t.empty&&Be.isActiveAt(e,t.from)){let t=a.lineAt(o),r=Ye(function(e,t){let n=e.resolveInner(t,-1),r=t;Je(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(Je(e))r=e.from;else{if("OrderedList"!=e.name&&"BulletList"!=e.name)break;n=e.lastChild,r=n.to}return n}(n,o),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(o-t.from>a&&!/\S/.test(t.text.slice(a,o-t.from)))return{range:i.jT.cursor(t.from+a),changes:{from:t.from+a,to:o}};if(o-t.from==a&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from{if(e&&m){let t=null;if(e=/\S*/.exec(e)[0],t="function"==typeof m?m(e):a.c6.matchLanguageName(m,e,!0),t instanceof a.c6)return t.support?t.support.language.parser:a.Be.getSkippingParser(t.load());if(t)return t.parser}return g?g.parser:null}):void 0;var m,g;f.push(function(e){let{codeParser:t,htmlParser:n}=e,i=(0,l.FE)(((e,i)=>{let o=e.type.id;if(!t||o!=r.CodeBlock&&o!=r.FencedCode){if(n&&(o==r.HTMLBlock||o==r.HTMLTag))return{parser:n,overlay:ge(e.node,e.from,e.to)}}else{let n="";if(o==r.FencedCode){let t=e.node.getChild(r.CodeInfo);t&&(n=i.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==r.CodeText}}return null}));return{wrap:i}}({codeParser:p,htmlParser:nt.language.parser})),s&&h.push(i.Wl.high(o.$f.of(tt)));let v=Xe(u.configure(f));return c&&h.push(v.data.of({autocomplete:it})),new a.ri(v,h)}function it(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=(0,a.qz)(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if("CodeBlock"==i.name||"FencedCode"==i.name||"ProcessingInstructionBlock"==i.name||"CommentBlock"==i.name||"Link"==i.name||"Image"==i.name)return null;i=i.parent}return{from:n-r[0].length,to:n,options:at(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let ot=null;function at(){if(ot)return ot;let e=(0,Ie.htmlCompletionSource)(new s.TK(i.yy.create({extensions:nt}),0,!0));return ot=e?e.options:[]}},48291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{php:()=>_,phpLanguage:()=>x});var r=n(64963),i=n(7778);const o={abstract:4,and:5,array:6,as:7,true:8,false:8,break:9,case:10,catch:11,clone:12,const:13,continue:14,declare:16,default:15,do:17,echo:18,else:19,elseif:20,enddeclare:21,endfor:22,endforeach:23,endif:24,endswitch:25,endwhile:26,enum:27,extends:28,final:29,finally:30,fn:31,for:32,foreach:33,from:34,function:35,global:36,goto:37,if:38,implements:39,include:40,include_once:41,instanceof:42,insteadof:43,interface:44,list:45,match:46,namespace:47,new:48,null:49,or:50,print:51,require:52,require_once:53,return:54,switch:55,throw:56,trait:57,try:58,unset:59,use:60,var:61,public:62,private:62,protected:62,while:63,xor:64,yield:65,__proto__:null};function a(e){let t=o[e.toLowerCase()];return null==t?-1:t}function s(e){return 9==e||10==e||13==e||32==e}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(e){return 95==e||e>=128||l(e)}function c(e){return e>=48&&e<=55||e>=97&&e<=102||e>=65&&e<=70}const d={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},f=new r.Jq((e=>{if(40==e.next){e.advance();let t=0;for(;s(e.peek(t));)t++;let n,r="";for(;l(n=e.peek(t));)r+=String.fromCharCode(n),t++;for(;s(e.peek(t));)t++;41==e.peek(t)&&d[r.toLowerCase()]&&e.acceptToken(1)}else if(60==e.next&&60==e.peek(1)&&60==e.peek(2)){for(let t=0;t<3;t++)e.advance();for(;32==e.next||9==e.next;)e.advance();let t=39==e.next;if(t&&e.advance(),!u(e.next))return;let n=String.fromCharCode(e.next);for(;e.advance(),u(e.next)||e.next>=48&&e.next<=55;)n+=String.fromCharCode(e.next);if(t){if(39!=e.next)return;e.advance()}if(10!=e.next&&13!=e.next)return;for(;;){let t=10==e.next||13==e.next;if(e.advance(),e.next<0)return;if(t){for(;32==e.next||9==e.next;)e.advance();let t=!0;for(let r=0;r{e.next<0&&e.acceptToken(266)})),p=new r.Jq(((e,t)=>{63==e.next&&t.canShift(265)&&62==e.peek(1)&&e.acceptToken(265)}));function m(e){let t=e.peek(1);if(110==t||114==t||116==t||118==t||101==t||102==t||92==t||36==t||34==t||123==t)return 2;if(t>=48&&t<=55){let t,n=2;for(;n<5&&(t=e.peek(n))>=48&&t<=55;)n++;return n}if(120==t&&c(e.peek(2)))return c(e.peek(3))?4:3;if(117==t&&123==e.peek(2))for(let t=3;;t++){let n=e.peek(t);if(125==n)return 2==t?0:t+1;if(!c(n))break}return 0}const g=new r.Jq(((e,t)=>{let n=!1;for(;!(34==e.next||e.next<0||36==e.next&&(u(e.peek(1))||123==e.peek(1))||123==e.next&&36==e.peek(1));n=!0){if(92==e.next){let t=m(e);if(t){if(n)break;return e.acceptToken(3,t)}}else if(!n&&(91==e.next||45==e.next&&62==e.peek(1)&&u(e.peek(2))||63==e.next&&45==e.peek(1)&&62==e.peek(2)&&u(e.peek(3)))&&t.canShift(264))break;e.advance()}n&&e.acceptToken(263)})),v=(0,i.Gv)({"Visibility abstract final static":i.pJ.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":i.pJ.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":i.pJ.controlKeyword,"and or xor yield unset clone instanceof insteadof":i.pJ.operatorKeyword,"function fn class trait implements extends const enum global interface use var":i.pJ.definitionKeyword,"include include_once require require_once namespace":i.pJ.moduleKeyword,"new from echo print array list as":i.pJ.keyword,null:i.pJ.null,Boolean:i.pJ.bool,VariableName:i.pJ.variableName,"NamespaceName/...":i.pJ.namespace,"NamedType/...":i.pJ.typeName,Name:i.pJ.name,"CallExpression/Name":i.pJ.function(i.pJ.variableName),"LabelStatement/Name":i.pJ.labelName,"MemberExpression/Name":i.pJ.propertyName,"MemberExpression/VariableName":i.pJ.special(i.pJ.propertyName),"ScopedExpression/ClassMemberName/Name":i.pJ.propertyName,"ScopedExpression/ClassMemberName/VariableName":i.pJ.special(i.pJ.propertyName),"CallExpression/MemberExpression/Name":i.pJ.function(i.pJ.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":i.pJ.function(i.pJ.propertyName),"MethodDeclaration/Name":i.pJ.function(i.pJ.definition(i.pJ.variableName)),"FunctionDefinition/Name":i.pJ.function(i.pJ.definition(i.pJ.variableName)),"ClassDeclaration/Name":i.pJ.definition(i.pJ.className),UpdateOp:i.pJ.updateOperator,ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,ControlOp:i.pJ.controlOperator,AssignOp:i.pJ.definitionOperator,"$ ConcatOp":i.pJ.operator,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Integer:i.pJ.integer,Float:i.pJ.float,String:i.pJ.string,ShellExpression:i.pJ.special(i.pJ.string),"=> ->":i.pJ.punctuation,"( )":i.pJ.paren,"#[ [ ]":i.pJ.squareBracket,"${ { }":i.pJ.brace,"-> ?->":i.pJ.derefOperator,", ; :: : \\":i.pJ.separator,"PhpOpen PhpClose":i.pJ.processingInstruction}),O={__proto__:null,static:311,STATIC:311,class:333,CLASS:333},y=r.WQ.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]Q`O'#FvO8eQaO'#FwO*kQaO'#GVO*kQaO'#GYO8}OrO'#G]OOQS'#Iq'#IqOOQS'#Ip'#IpOOQS'#IW'#IWO,zQ`O'#GdO,zQ`O'#GfO,zQ`O'#GkOhQaO'#GmO9UQ`O'#GnO9ZQ`O'#GqO9`Q`O'#GtO9eQeO'#GuO9eQeO'#GvO9eQeO'#GwO9oQ`O'#GxO9tQ`O'#GzO9yQaO'#G{OS,5>SOJ[QdO,5;gOOQO-E;f-E;fOL^Q`O,5;gOLcQpO,5;bO0aQ`O'#EyOLkQtO'#E}OOQS'#Ez'#EzOOQS'#Ib'#IbOM`QaO,5:wO*kQaO,5;nOOQS,5;p,5;pO*kQaO,5;pOMgQdO,5UQaO,5=hO!-eQ`O'#F}O!-jQdO'#IlO!&WQdO,5=iOOQ#u,5=j,5=jO!-uQ`O,5=lO!-xQ`O,5=mO!-}Q`O,5=nO!.YQdO,5=qOOQ#u,5=q,5=qO!.eQ`O,5=rO!.eQ`O,5=rO!.mQdO'#IwO!.{Q`O'#HXO!&WQdO,5=rO!/ZQ`O,5=rO!/fQdO'#IYO!&WQdO,5=vOOQ#u-E;_-E;_O!1RQ`O,5=kOOO#u,5:^,5:^O!1^O#|O,5:^OOO#u-E;^-E;^OOOO,5>p,5>pOOQ#y1G0S1G0SO!1fQ`O1G0XO*kQaO1G0XO!2xQ`O1G0pOOQS1G0p1G0pO!4[Q`O1G0pOOQS'#I_'#I_O*kQaO'#I_OOQS1G0q1G0qO!4cQ`O'#IaO!7lQ`O'#E}O!7yQaO'#EuOOQO'#Ia'#IaO!8TQ`O'#I`O!8]Q`O,5;_OOQS'#FQ'#FQOOQS1G1U1G1UO!8bQdO1G1]O!:dQdO1G1]O!wO#(fQaO'#HdO#(vQ`O,5>vOOQS1G0d1G0dO#)OQ`O1G0dO#)TQ`O'#I^O#*mQ`O'#I^O#*uQ`O,5;ROIbQaO,5;ROOQS1G0u1G0uPOQO'#E}'#E}O#+fQdO1G1RO0aQ`O'#HgO#-hQtO,5;cO#.YQaO1G0|OOQS,5;e,5;eO#0iQtO,5;gO#0vQdO1G0cO*kQaO1G0cO#2cQdO1G1YO#4OQdO1G1[OOQO,5<^,5<^O#4`Q`O'#HjO#4nQ`O,5?ROOQO1G1w1G1wO#4vQ`O,5?ZO!&WQdO1G3TO<_Q`O1G3TOOQ#u1G3U1G3UO#4{Q`O1G3YO!1RQ`O1G3VO#5WQ`O1G3VO#5]QpO'#FoO#5kQ`O'#FoO#5{Q`O'#FoO#6WQ`O'#FoO#6`Q`O'#FsO#6eQ`O'#FtOOQO'#If'#IfO#6lQ`O'#IeO#6tQ`O,5tOOQ#u1G3b1G3bOOQ#u1G3V1G3VO!-xQ`O1G3VO!1UQ`O1G3VOOO#u1G/x1G/xO*kQaO7+%sO#MuQdO7+%sOOQS7+&[7+&[O$ bQ`O,5>yO>UQaO,5;`O$ iQ`O,5;aO$#OQaO'#HfO$#YQ`O,5>zOOQS1G0y1G0yO$#bQ`O'#EYO$#gQ`O'#IXO$#oQ`O,5:sOOQS1G0e1G0eO$#tQ`O1G0eO$#yQ`O1G0iO9yQaO1G0iOOQO,5>O,5>OOOQO-E;b-E;bOOQS7+&O7+&OO>UQaO,5;SO$%`QaO'#HeO$%jQ`O,5>xOOQS1G0m1G0mO$%rQ`O1G0mOOQS,5>R,5>ROOQS-E;e-E;eO$%wQdO7+&hO$'yQtO1G1RO$(WQdO7+%}OOQS1G0i1G0iOOQO,5>U,5>UOOQO-E;h-E;hOOQ#u7+(o7+(oO!&WQdO7+(oOOQ#u7+(t7+(tO#KmQ`O7+(tO0aQ`O7+(tOOQ#u7+(q7+(qO!-xQ`O7+(qO!1UQ`O7+(qO!1RQ`O7+(qO$)sQ`O,5UQaO,5],5>]OOQS-E;o-E;oO$.iQdO7+'hO$.yQpO7+'hO$/RQdO'#IiOOQO,5dOOQ#u,5>d,5>dOOQ#u-E;v-E;vO$;lQaO7+(lO$cOOQS-E;u-E;uO!&WQdO7+(nO$=mQdO1G2TOOQS,5>[,5>[OOQS-E;n-E;nOOQ#u7+(r7+(rO$?nQ`O'#GQO$?uQ`O'#GQO$@ZQ`O'#HUOOQO'#Hy'#HyO$@`Q`O,5=oOOQ#u,5=o,5=oO$@gQpO7+(tOOQ#u7+(x7+(xO!&WQdO7+(xO$@rQdO,5>fOOQS-E;x-E;xO$AQQdO1G4}O$A]Q`O,5=tO$AbQ`O,5=tO$AmQ`O'#H{O$BRQ`O,5?dOOQS1G3_1G3_O#KrQ`O7+(xO$BZQdO,5=|OOQS-E;`-E;`O$CvQdO<Q,5>QOOQO-E;d-E;dO$8YQaO,5:tO$FxQaO'#HcO$GVQ`O,5>sOOQS1G0_1G0_OOQS7+&P7+&PO$G_Q`O7+&TO$HtQ`O1G0nO$JZQ`O,5>POOQO,5>P,5>POOQO-E;c-E;cOOQS7+&X7+&XOOQS7+&T7+&TOOQ#u<UQaO1G1uO$KsQ`O1G1uO$LOQ`O1G1yOOQO1G1y1G1yO$LTQ`O1G1uO$L]Q`O1G1uO$MrQ`O1G1zO>UQaO1G1zOOQO,5>V,5>VOOQO-E;i-E;iOOQS<`OOQ#u-E;r-E;rOhQaO<aOOQO-E;s-E;sO!&WQdO<g,5>gOOQO-E;y-E;yO!&WQdO<UQaO,5;TOOQ#uANAzANAzO#KmQ`OANAzOOQ#uANAwANAwO!-xQ`OANAwO%)vQ`O7+'aO>UQaO7+'aOOQO7+'e7+'eO%+]Q`O7+'aO%+hQ`O7+'eO>UQaO7+'fO%+mQ`O7+'fO%-SQ`O'#HlO%-bQ`O,5?SO%-bQ`O,5?SOOQO1G1{1G1{O$+qQpOAN@dOOQSAN@dAN@dO0aQ`OAN@dO%-jQtOANCgO%-xQ`OAN@dO*kQaOAN@nO%.QQdOAN@nO%.bQpOAN@nOOQS,5>X,5>XOOQS-E;k-E;kOOQO1G2U1G2UO!&WQdO1G2UO$/dQpO1G2UO<_Q`O1G2SO!.YQdO1G2WO!&WQdO1G2SOOQO1G2W1G2WOOQO1G2S1G2SO%.jQaO'#GSOOQO1G2X1G2XOOQSAN@oAN@oOOOQ<UQaO<W,5>WO%6wQ`O,5>WOOQO-E;j-E;jO%6|Q`O1G4nOOQSG26OG26OO$+qQpOG26OO0aQ`OG26OO%7UQdOG26YO*kQaOG26YOOQO7+'p7+'pO!&WQdO7+'pO!&WQdO7+'nOOQO7+'r7+'rOOQO7+'n7+'nO%7fQ`OLD+tO%8uQ`O'#E}O%9PQ`O'#IZO!&WQdO'#HrO%:|QaO,5^,5>^OOQP-E;p-E;pOOQO1G2Y1G2YOOQ#uLD,bLD,bOOQTG27RG27RO!&WQdOLD,xO!&WQdO<wO&EPQdO1G0cO#.YQaO1G0cO&F{QdO1G1YO&HwQdO1G1[O#.YQaO1G1|O#.YQaO7+%sO&JsQdO7+%sO&LoQdO7+%}O#.YQaO7+'hO&NkQdO7+'hO'!gQdO<lQdO,5>wO(@nQdO1G0cO'.QQaO1G0cO(BpQdO1G1YO(DrQdO1G1[O'.QQaO1G1|O'.QQaO7+%sO(FtQdO7+%sO(HvQdO7+%}O'.QQaO7+'hO(JxQdO7+'hO(LzQdO<wO*1sQaO'#HdO*2TQ`O,5>vO*2]QdO1G0cO9yQaO1G0cO*4XQdO1G1YO*6TQdO1G1[O9yQaO1G1|O>UQaO'#HwO*8PQ`O,5=[O*8XQaO'#HbO*8cQ`O,5>tO9yQaO7+%sO*8kQdO7+%sO*:gQ`O1G0iO>UQaO1G0iO*;|QdO7+%}O9yQaO7+'hO*=xQdO7+'hO*?tQ`O,5>cO*AZQ`O,5=|O*BpQdO<UQaO'#FeO>UQaO'#FfO>UQaO'#FgO>UQaO'#FhO>UQaO'#FhO>UQaO'#FkO+'XQaO'#FwO>UQaO'#GVO>UQaO'#GYO+'`QaO,5:mO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO+'gQ`O'#I]O$8YQaO'#EaO+)PQaOG26YO$8YQaO'#I]O+*{Q`O'#I[O++TQaO,5:wO>UQaO,5;nO>UQaO,5;pO++[Q`O,5UQaO1G0XO+9hQ`O1G1]O+;TQ`O1G1]O+]Q`O1G1]O+?xQ`O1G1]O+AeQ`O1G1]O+CQQ`O1G1]O+DmQ`O1G1]O+FYQ`O1G1]O+GuQ`O1G1]O+IbQ`O1G1]O+J}Q`O1G1]O+LjQ`O1G1]O+NVQ`O1G1]O, rQ`O1G1]O,#_Q`O1G0cO>UQaO1G0cO,$zQ`O1G1YO,&gQ`O1G1[O,(SQ`O1G1|O>UQaO1G1|O>UQaO7+%sO,([Q`O7+%sO,)wQ`O7+%}O>UQaO7+'hO,+dQ`O7+'hO,+lQ`O7+'hO,-XQpO7+'hO,-aQ`O<UQaO<UQaOAN@nO,0qQ`OAN@nO,2^QpOAN@nO,2fQ`OG26YO>UQaOG26YO,4RQ`OLD+tO,5nQaO,5:}O>UQaO1G0iO,5uQ`O'#I]O$8YQaO'#FeO$8YQaO'#FfO$8YQaO'#FgO$8YQaO'#FhO$8YQaO'#FhO+)PQaO'#FhO$8YQaO'#FkO,6SQaO'#FwO,6ZQaO'#FwO$8YQaO'#GVO+)PQaO'#GVO$8YQaO'#GYO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO,8YQ`O'#FlO>UQaO'#EaO>UQaO'#I]O,8bQaO,5:wO,8iQaO,5:wO$8YQaO,5;nO+)PQaO,5;nO$8YQaO,5;pO,:hQ`O,5wO-IcQ`O1G0cO-KOQ`O1G0cO$8YQaO1G0cO+)PQaO1G0cO-L_Q`O1G1YO-MzQ`O1G1YO. ZQ`O1G1[O$8YQaO1G1|O$8YQaO7+%sO+)PQaO7+%sO.!vQ`O7+%sO.$cQ`O7+%sO.%rQ`O7+%}O.'_Q`O7+%}O$8YQaO7+'hO.(nQ`O7+'hO.*ZQ`O<fQ`O,5>wO.@RQ`O1G1|O!%WQ`O1G1|O0aQ`O1G1|O0aQ`O7+'hO.@ZQ`O7+'hO.@cQpO7+'hO.@kQpO<UO#X&PO~P>UO!o&SO!s&RO#b&RO~OPgOQ|OU^OW}O[8lOo=yOs#hOx8jOy8jO}`O!O]O!Q8pO!R}O!T8oO!U8kO!V8kO!Y8rO!c8iO!s&VO!y[O#U&WO#W_O#bhO#daO#ebO#peO$T8nO$]8mO$^8nO$aqO$z8qO${!OO$}}O%O}O%V|O'g{O~O!x'SP~PAOO!s&[O#b&[O~OT#TOz#RO!S#UO!b#VO!o!{O!v!yO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO~O!x&nO~PCqO!x'VX!}'VX#O'VX#X'VX!n'VXV'VX!q'VX#u'VX#w'VXw'VX~P&sO!y$hO#S&oO~Oo$mOs$lO~O!o&pO~O!}&sO#S;dO#U;cO!x'OP~P9yOT6iOz6gO!S6jO!b6kO!o!{O!v8sO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}'PX#X'PX~O#O&tO~PGSO!}&wO#X'OX~O#X&yO~O!}'OO!x'QP~P9yO!n'PO~PCqO!m#oa!o#oa#S#oa#p#qX&s#oa!x#oa#O#oaw#oa~OT#oaz#oa!S#oa!b#oa!v#oa!y#oa#W#oa#`#oa#a#oa#s#oa#z#oa#{#oa#|#oa#}#oa$O#oa$Q#oa$R#oa$S#oa$T#oa$U#oa$V#oa$W#oa$z#oa!}#oa#X#oa!n#oaV#oa!q#oa#u#oa#w#oa~PIpO!s'RO~O!x'UO#l'SO~O!x'VX#l'VX#p#qX#S'VX#U'VX#b'VX!o'VX#O'VXw'VX!m'VX&s'VX~O#S'YO~P*kO!m$Xa&s$Xa!x$Xa!n$Xa~PCqO!m$Ya&s$Ya!x$Ya!n$Ya~PCqO!m$Za&s$Za!x$Za!n$Za~PCqO!m$[a&s$[a!x$[a!n$[a~PCqO!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO$z#dOT$[a!S$[a!b$[a!m$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a&s$[a!x$[a!n$[a~Oz#RO~PNyO!m$_a&s$_a!x$_a!n$_a~PCqO!y!}O!}$fX#X$fX~O!}'^O#X'ZX~O#X'`O~O!s$kO#S'aO~O]'cO~O!s'eO~O!s'fO~O$l'gO~O!`'mO#S'kO#U'lO#b'jO$drO!x'XP~P0aO!^'sO!oXO!q'rO~O!s'uO!y$hO~O!y$hO#S'wO~O!y$hO#S'yO~O#u'zO!m$sX!}$sX&s$sX~O!}'{O!m'bX&s'bX~O!m#cO&s#cO~O!q(PO#O(OO~O!m$ka&s$ka!x$ka!n$ka~PCqOl(ROw(SO!o(TO!y!}O~O!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO~OT$yaz$ya!S$ya!b$ya!m$ya!v$ya#S$ya#z$ya#{$ya#|$ya#}$ya$O$ya$Q$ya$R$ya$S$ya$T$ya$U$ya$V$ya$W$ya$z$ya&s$ya!x$ya!}$ya#O$ya#X$ya!n$ya!q$yaV$ya#u$ya#w$ya~P!'WO!m$|a&s$|a!x$|a!n$|a~PCqO#W([O#`(YO#a(YO&r(ZOR&gX!o&gX#b&gX#e&gX&q&gX'f&gX~O'f(_O~P8lO!q(`O~PhO!o(cO!q(dO~O!q(`O&s(gO~PhO!a(kO~O!m(lO~P9yOZ(wOn(xO~O!s(zO~OT6iOz6gO!S6jO!b6kO!v8sO!}({O#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'jX&s'jX~P!'WO#u)PO~O!})QO!m'`X&s'`X~Ol(RO!o(TO~Ow(SO!o)WO!q)ZO~O!m#cO!oXO&s#cO~O!o%pO!s#yO~OV)aO!})_O!m'kX&s'kX~O])cOs)cO!s#gO#peO~O!o%pO!s#gO#p)hO~OT6iOz6gO!S6jO!b6kO!v8sO!})iO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&|X&s&|X#O&|X~P!'WOl(ROw(SO!o(TO~O!i)oO&t)oO~OT8vOz8tO!S8wO!b8xO!q)pO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#X)rO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!n)rO~PCqOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x'TX!}'TX~P!'WOT'VXz'VX!S'VX!b'VX!o'VX!v'VX!y'VX#S'VX#W'VX#`'VX#a'VX#p#qX#s'VX#z'VX#{'VX#|'VX#}'VX$O'VX$Q'VX$R'VX$S'VX$T'VX$U'VX$V'VX$W'VX$z'VX~O!q)tO!x'VX!}'VX~P!5xO!x#iX!}#iX~P>UO!})vO!x'SX~O!x)xO~O$z#dOT#yiz#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi$W#yi&s#yi!x#yi!}#yi#O#yi#X#yi!n#yi!q#yiV#yi#u#yi#w#yi~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi&s#yi!x#yi!n#yi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!b#VO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi~P!'WOz#RO$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi~P!'WO_)yO~P9yO!x)|O~O#S*PO~P9yOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Ta#X#Ta#O#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}'Pa#X'Pa#O'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WO#S#oO#U#nO!}&WX#X&WX~P9yO!}&wO#X'Oa~O#X*SO~OT6iOz6gO!S6jO!b6kO!v8sO!}*UO#O*TO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x'QX~P!'WO!}*UO!x'QX~O!x*WO~O!m#oi!o#oi#S#oi#p#qX&s#oi!x#oi#O#oiw#oi~OT#oiz#oi!S#oi!b#oi!v#oi!y#oi#W#oi#`#oi#a#oi#s#oi#z#oi#{#oi#|#oi#}#oi$O#oi$Q#oi$R#oi$S#oi$T#oi$U#oi$V#oi$W#oi$z#oi!}#oi#X#oi!n#oiV#oi!q#oi#u#oi#w#oi~P#*zO#l'SO!x#ka#S#ka#U#ka#b#ka!o#ka#O#kaw#ka!m#ka&s#ka~OPgOQ|OU^OW}O[4OOo5xOs#hOx3zOy3zO}`O!O]O!Q2^O!R}O!T4UO!U3|O!V3|O!Y2`O!c3xO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4SO$]4QO$^4SO$aqO$z2_O${!OO$}}O%O}O%V|O'g{O~O#l#oa#U#oa#b#oa~PIpOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pi!S#Pi!b#Pi!m#Pi&s#Pi!x#Pi!n#Pi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#vi!S#vi!b#vi!m#vi&s#vi!x#vi!n#vi~P!'WO!m#xi&s#xi!x#xi!n#xi~PCqO!s#gO#peO!}&^X#X&^X~O!}'^O#X'Za~O!s'uO~Ow(SO!o)WO!q*fO~O!s*jO~O#S*lO#U*mO#b*kO#l'SO~O#S*lO#U*mO#b*kO$drO~P0aO#u*oO!x$cX!}$cX~O#U*mO#b*kO~O#b*pO~O#b*rO~P0aO!}*sO!x'XX~O!x*uO~O!y*wO~O!^*{O!oXO!q*zO~O!q*}O!o'ci!m'ci&s'ci~O!q+QO#O+PO~O#b$nO!m&eX!}&eX&s&eX~O!}'{O!m'ba&s'ba~OT$kiz$ki!S$ki!b$ki!m$ki!o$ki!v$ki!y$ki#S$ki#W$ki#`$ki#a$ki#s$ki#u#fa#w#fa#z$ki#{$ki#|$ki#}$ki$O$ki$Q$ki$R$ki$S$ki$T$ki$U$ki$V$ki$W$ki$z$ki&s$ki!x$ki!}$ki#O$ki#X$ki!n$ki!q$kiV$ki~OS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n+hO#b$nO$aqO$drO~P0aO!s+lO~O#W+nO#`+mO#a+mO~O!s+pO#b+pO$}+pO%T+oO~O!n+qO~PCqOc%XXd%XXh%XXj%XXf%XXg%XXe%XX~PhOc+uOd+sOP%WiQ%WiS%WiU%WiW%WiX%Wi[%Wi]%Wi^%Wi`%Wia%Wib%Wik%Wim%Wio%Wip%Wiq%Wis%Wit%Wiu%Wiv%Wix%Wiy%Wi|%Wi}%Wi!O%Wi!P%Wi!Q%Wi!R%Wi!T%Wi!U%Wi!V%Wi!W%Wi!X%Wi!Y%Wi!Z%Wi![%Wi!]%Wi!^%Wi!`%Wi!a%Wi!c%Wi!m%Wi!o%Wi!s%Wi!y%Wi#W%Wi#b%Wi#d%Wi#e%Wi#p%Wi$T%Wi$]%Wi$^%Wi$a%Wi$d%Wi$l%Wi$z%Wi${%Wi$}%Wi%O%Wi%V%Wi&p%Wi'g%Wi&t%Wi!n%Wih%Wij%Wif%Wig%WiY%Wi_%Wii%Wie%Wi~Oc+yOd+vOh+xO~OY+zO_+{O!n,OO~OY+zO_+{Oi%^X~Oi,QO~Oj,RO~O!m,TO~P9yO!m,VO~Of,WO~OT6iOV,XOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WOg,YO~O!y,ZO~OZ(wOn(xOP%liQ%liS%liU%liW%liX%li[%li]%li^%li`%lia%lib%lik%lim%lio%lip%liq%lis%lit%liu%liv%lix%liy%li|%li}%li!O%li!P%li!Q%li!R%li!T%li!U%li!V%li!W%li!X%li!Y%li!Z%li![%li!]%li!^%li!`%li!a%li!c%li!m%li!o%li!s%li!y%li#W%li#b%li#d%li#e%li#p%li$T%li$]%li$^%li$a%li$d%li$l%li$z%li${%li$}%li%O%li%V%li&p%li'g%li&t%li!n%lic%lid%lih%lij%lif%lig%liY%li_%lii%lie%li~O#u,_O~O!}({O!m%da&s%da~O!x,bO~O!s%dO!m&dX!}&dX&s&dX~O!})QO!m'`a&s'`a~OS+^OY,iOm+^Os$aO!^+dO!_+^O!`+^O$aqO$drO~O!n,lO~P#JwO!o)WO~O!o%pO!s'RO~O!s#gO#peO!m&nX!}&nX&s&nX~O!})_O!m'ka&s'ka~O!s,rO~OV,sO!n%|X!}%|X~O!},uO!n'lX~O!n,wO~O!m&UX!}&UX&s&UX#O&UX~P9yO!})iO!m&|a&s&|a#O&|a~Oz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq&s!uq!x!uq!n!uq~P!'WO!n,|O~PCqOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#ia!}#ia~P!'WO!x&YX!}&YX~PAOO!})vO!x'Sa~O#O-QO~O!}-RO!n&{X~O!n-TO~O!x-UO~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Vi#X#Vi~P!'WO!x&XX!}&XX~P9yO!}*UO!x'Qa~O!x-[O~OT#jqz#jq!S#jq!b#jq!m#jq!v#jq#S#jq#u#jq#w#jq#z#jq#{#jq#|#jq#}#jq$O#jq$Q#jq$R#jq$S#jq$T#jq$U#jq$V#jq$W#jq$z#jq&s#jq!x#jq!}#jq#O#jq#X#jq!n#jq!q#jqV#jq~P!'WO#l#oi#U#oi#b#oi~P#*zOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pq!S#Pq!b#Pq!m#Pq&s#Pq!x#Pq!n#Pq~P!'WO#u-dO!x$ca!}$ca~O#U-fO#b-eO~O#b-gO~O#S-hO#U-fO#b-eO#l'SO~O#b-jO#l'SO~O#u-kO!x$ha!}$ha~O!`'mO#S'kO#U'lO#b'jO$drO!x&_X!}&_X~P0aO!}*sO!x'Xa~O!oXO#l'SO~O#S-pO#b-oO!x'[P~O!oXO!q-rO~O!q-uO!o'cq!m'cq&s'cq~O!^-wO!oXO!q-rO~O!q-{O#O-zO~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m$si!}$si&s$si~P!'WO!m$jq&s$jq!x$jq!n$jq~PCqO#O-zO#l'SO~O!}-|Ow']X!o']X!m']X&s']X~O#b$nO#l'SO~OS+^O].ROm+^Os$aO!_+^O!`+^O#b$nO$aqO$drO~P0aOS+^O].ROm+^Os$aO!_+^O!`+^O#b$nO$aqO~P0aOS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n.ZO#b$nO$aqO$drO~P0aO!s.^O~O!s._O#b._O$}._O%T+oO~O$}.`O~O#X.aO~Oc%Xad%Xah%Xaj%Xaf%Xag%Xae%Xa~PhOc.dOd+sOP%WqQ%WqS%WqU%WqW%WqX%Wq[%Wq]%Wq^%Wq`%Wqa%Wqb%Wqk%Wqm%Wqo%Wqp%Wqq%Wqs%Wqt%Wqu%Wqv%Wqx%Wqy%Wq|%Wq}%Wq!O%Wq!P%Wq!Q%Wq!R%Wq!T%Wq!U%Wq!V%Wq!W%Wq!X%Wq!Y%Wq!Z%Wq![%Wq!]%Wq!^%Wq!`%Wq!a%Wq!c%Wq!m%Wq!o%Wq!s%Wq!y%Wq#W%Wq#b%Wq#d%Wq#e%Wq#p%Wq$T%Wq$]%Wq$^%Wq$a%Wq$d%Wq$l%Wq$z%Wq${%Wq$}%Wq%O%Wq%V%Wq&p%Wq'g%Wq&t%Wq!n%Wqh%Wqj%Wqf%Wqg%WqY%Wq_%Wqi%Wqe%Wq~Oc.iOd+vOh.hO~O!q(`O~OP6]OQ|OU^OW}O[:fOo>ROs#hOx:dOy:dO}`O!O]O!Q:kO!R}O!T:jO!U:eO!V:eO!Y:oO!c8gO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:hO$]:gO$^:hO$aqO$z:mO${!OO$}}O%O}O%V|O'g{O~O!m.lO!q.lO~OY+zO_+{O!n.nO~OY+zO_+{Oi%^a~O!x.rO~P>UO!m.tO~O!m.tO~P9yOQ|OW}O!R}O$}}O%O}O%V|O'g{O~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&ka!}&ka&s&ka~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m$qi!}$qi&s$qi~P!'WOS+^Om+^Os$aO!_+^O!`+^O$aqO$drO~OY/PO~P$?VOS+^Om+^Os$aO!_+^O!`+^O$aqO~O!s/QO~O!n/SO~P#JwOw(SO!o)WO#l'SO~OV/VO!m&na!}&na&s&na~O!})_O!m'ki&s'ki~O!s/XO~OV/YO!n%|a!}%|a~O]/[Os/[O!s#gO#peO!n&oX!}&oX~O!},uO!n'la~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&Ua!}&Ua&s&Ua#O&Ua~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy&s!uy!x!uy!n!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#hi!}#hi~P!'WO_)yO!n&VX!}&VX~P9yO!}-RO!n&{a~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Vq#X#Vq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#[i!}#[i~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#O/cO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x&Xa!}&Xa~P!'WO#u/iO!x$ci!}$ci~O#b/jO~O#U/lO#b/kO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$ci!}$ci~P!'WO#u/mO!x$hi!}$hi~O!}/oO!x'[X~O#b/qO~O!x/rO~O!oXO!q/uO~O#l'SO!o'cy!m'cy&s'cy~O!m$jy&s$jy!x$jy!n$jy~PCqO#O/xO#l'SO~O!s#gO#peOw&aX!o&aX!}&aX!m&aX&s&aX~O!}-|Ow']a!o']a!m']a&s']a~OU$PO]0QO!R$PO!s$OO!v#}O#b$nO#p2XO~P$?uO!m#cO!o0VO&s#cO~O#X0YO~Oh0_O~OT:tOz:pO!S:vO!b:xO!m0`O!q0`O!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO~P!'WOY%]a_%]a!n%]ai%]a~PhO!x0bO~O!x0bO~P>UO!m0dO~OT6iOz6gO!S6jO!b6kO!v8sO!x0fO#O0eO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WO!x0fO~O!x0gO#b0hO#l'SO~O!x0iO~O!s0jO~O!m#cO#u0lO&s#cO~O!s0mO~O!})_O!m'kq&s'kq~O!s0nO~OV0oO!n%}X!}%}X~OT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!n!|i!}!|i~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$cq!}$cq~P!'WO#u0vO!x$cq!}$cq~O#b0wO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$hq!}$hq~P!'WO#S0zO#b0yO!x&`X!}&`X~O!}/oO!x'[a~O#l'SO!o'c!R!m'c!R&s'c!R~O!oXO!q1PO~O!m$j!R&s$j!R!x$j!R!n$j!R~PCqO#O1RO#l'SO~OP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!n1^O!s1YO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOh1_O~OY%[i_%[i!n%[ii%[i~PhOY%]i_%]i!n%]ii%]i~PhO!x1bO~O!x1bO~P>UO!x1eO~O!m#cO#u1iO&s#cO~O$}1jO%V1jO~O!s1kO~OV1lO!n%}a!}%}a~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#]i!}#]i~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$cy!}$cy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$hy!}$hy~P!'WO#b1nO~O!}/oO!x'[i~O!m$j!Z&s$j!Z!x$j!Z!n$j!Z~PCqOT:uOz:qO!S:wO!b:yO!v=nO#S#QO#z:sO#{:{O#|:}O#};PO$O;RO$Q;VO$R;XO$S;ZO$T;]O$U;_O$V;aO$W;aO$z#dO~P!'WOV1uO{1tO~P!5xOV1uO{1tOT&}Xz&}X!S&}X!b&}X!o&}X!v&}X!y&}X#S&}X#W&}X#`&}X#a&}X#s&}X#u&}X#w&}X#z&}X#{&}X#|&}X#}&}X$O&}X$Q&}X$R&}X$S&}X$T&}X$U&}X$V&}X$W&}X$z&}X~OP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!n1xO!s1YO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOY%[q_%[q!n%[qi%[q~PhO!x1zO~O!x%gi~PCqOe1{O~O$}1|O%V1|O~O!s2OO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$c!R!}$c!R~P!'WO!m$j!c&s$j!c!x$j!c!n$j!c~PCqO!s2QO~O!`2SO!s2RO~O!s2VO!m$xi&s$xi~O!s'WO~O!s*]O~OT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$ka#u$ka#w$ka&s$ka!x$ka!n$ka!q$ka#X$ka!}$ka~P!'WO#S2]O~P*kO$l$tO~P#.YOT6iOz6gO!S6jO!b6kO!v8sO#O2[O#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'PX&s'PX!x'PX!n'PX~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#O3uO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}'PX#X'PX#u'PX#w'PX!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~P!'WO#S3dO~P#.YOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Xa#u$Xa#w$Xa&s$Xa!x$Xa!n$Xa!q$Xa#X$Xa!}$Xa~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Ya#u$Ya#w$Ya&s$Ya!x$Ya!n$Ya!q$Ya#X$Ya!}$Ya~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Za#u$Za#w$Za&s$Za!x$Za!n$Za!q$Za#X$Za!}$Za~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$[a#u$[a#w$[a&s$[a!x$[a!n$[a!q$[a#X$[a!}$[a~P!'WOz2aO#u$[a#w$[a!q$[a#X$[a!}$[a~PNyOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$_a#u$_a#w$_a&s$_a!x$_a!n$_a!q$_a#X$_a!}$_a~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$|a#u$|a#w$|a&s$|a!x$|a!n$|a!q$|a#X$|a!}$|a~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!S#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$T2nO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$S2mO$T2nO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m#Ta#u#Ta#w#Ta&s#Ta!x#Ta!n#Ta!q#Ta#X#Ta!}#Ta~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m'Pa#u'Pa#w'Pa&s'Pa!x'Pa!n'Pa!q'Pa#X'Pa!}'Pa~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#Pi!S#Pi!b#Pi!m#Pi#u#Pi#w#Pi&s#Pi!x#Pi!n#Pi!q#Pi#X#Pi!}#Pi~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#vi!S#vi!b#vi!m#vi#u#vi#w#vi&s#vi!x#vi!n#vi!q#vi#X#vi!}#vi~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m#xi#u#xi#w#xi&s#xi!x#xi!n#xi!q#xi#X#xi!}#xi~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq#u!uq#w!uq&s!uq!x!uq!n!uq!q!uq#X!uq!}!uq~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#Pq!S#Pq!b#Pq!m#Pq#u#Pq#w#Pq&s#Pq!x#Pq!n#Pq!q#Pq#X#Pq!}#Pq~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$jq#u$jq#w$jq&s$jq!x$jq!n$jq!q$jq#X$jq!}$jq~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy#u!uy#w!uy&s!uy!x!uy!n!uy!q!uy#X!uy!}!uy~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$jy#u$jy#w$jy&s$jy!x$jy!n$jy!q$jy#X$jy!}$jy~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!R#u$j!R#w$j!R&s$j!R!x$j!R!n$j!R!q$j!R#X$j!R!}$j!R~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!Z#u$j!Z#w$j!Z&s$j!Z!x$j!Z!n$j!Z!q$j!Z#X$j!Z!}$j!Z~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!c#u$j!c#w$j!c&s$j!c!x$j!c!n$j!c!q$j!c#X$j!c!}$j!c~P!'WOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S3vO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lO#u2uO#w2vO!q&zX#X&zX!}&zX~P0rOP6]OU^O[4POo8^Or2wOs#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S2tO#U2sO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!v#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX&s#xX!x#xX!n#xX!q#xX#X#xX!}#xX~P$;lOP6]OU^O[4POo8^Or4xOs#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S4uO#U4tO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OOT#xXz#xX!S#xX!b#xX!o#xX!v#xX!}#xX#O#xX#X#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!m#xX&s#xX!x#xX!n#xXV#xX!q#xX~P$;lO!q3PO~P>UO!q5}O#O3gO~OT8vOz8tO!S8wO!b8xO!q3hO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!q6OO#O3kO~O!q6PO#O3oO~O#O3oO#l'SO~O#O3pO#l'SO~O#O3sO#l'SO~OP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$l$tO$z4bO${!OO~P$;lOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S5eO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Xa#O$Xa#X$Xa#u$Xa#w$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Ya#O$Ya#X$Ya#u$Ya#w$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Za#O$Za#X$Za#u$Za#w$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$[a#O$[a#X$[a#u$[a#w$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz4dO!}$[a#O$[a#X$[a#u$[a#w$[aV$[a!q$[a~PNyOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$_a#O$_a#X$_a#u$_a#w$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$|a#O$|a#X$|a#u$|a#w$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!S#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$T4qO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$S4pO$T4qO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}#Ta#O#Ta#X#Ta#u#Ta#w#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}'Pa#O'Pa#X'Pa#u'Pa#w'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi#u#Pi#w#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi#u#vi#w#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}#xi#O#xi#X#xi#u#xi#w#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq#u!uq#w!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq#u#Pq#w#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$jq#O$jq#X$jq#u$jq#w$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy#u!uy#w!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$jy#O$jy#X$jy#u$jy#w$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!R#O$j!R#X$j!R#u$j!R#w$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!Z#O$j!Z#X$j!Z#u$j!Z#w$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!c#O$j!c#X$j!c#u$j!c#w$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S5wO~P#.YO!y$hO#S5{O~O!x4ZO#l'SO~O!y$hO#S5|O~OT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$ka#O$ka#X$ka#u$ka#w$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#O5vO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!m'PX#u'PX#w'PX&s'PX!x'PX!n'PX!q'PX#X'PX!}'PX~P!'WO#u4vO#w4wO!}&zX#O&zX#X&zXV&zX!q&zX~P0rO!q5QO~P>UO!q8bO#O5hO~OT8vOz8tO!S8wO!b8xO!q5iO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!q8cO#O5lO~O!q8dO#O5pO~O#O5pO#l'SO~O#O5qO#l'SO~O#O5tO#l'SO~O$l$tO~P9yOo5zOs$lO~O#S7oO~P9yOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Xa#O$Xa#X$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Ya#O$Ya#X$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Za#O$Za#X$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$[a#O$[a#X$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz6gO!}$[a#O$[a#X$[aV$[a!q$[a~PNyOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$_a#O$_a#X$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$ka#O$ka#X$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$|a#O$|a#X$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO!}7sO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x'jX~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO!}7uO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&|X~P!'WOz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6iOz6gO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!S#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6iOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$T6tO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$S6sO$T6tO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WO#S7zO~P>UO!m#Ta&s#Ta!x#Ta!n#Ta~PCqO!m'Pa&s'Pa!x'Pa!n'Pa~PCqO#S;dO#U;cO!x&WX!}&WX~P9yO!}7lO!x'Oa~Oz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#xi#O#xi#X#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WO!}7sO!x%da~O!x&UX!}&UX~P>UO!}7uO!x&|a~Oz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#Vi!}#Vi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$jq#O$jq#X$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&ka!}&ka~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&Ua!}&Ua~P!'WOz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#Vq!}#Vq~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$jy#O$jy#X$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!R#O$j!R#X$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!Z#O$j!Z#X$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!c#O$j!c#X$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S8[O~P9yO#O8ZO!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~PGSO!y$hO#S8`O~O!y$hO#S8aO~O#u6zO#w6{O!}&zX#O&zX#X&zXV&zX!q&zX~P0rOr6|O#S#oO#U#nO!}#xX#O#xX#X#xXV#xX!q#xX~P2yOr;iO#S9XO#U9VOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!n#xX!}#xX~P9yOr9WO#S9WO#U9WOT#xXz#xX!S#xX!b#xX!o#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX~P9yOr9]O#S;dO#U;cOT#xXz#xX!S#xX!b#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX#X#xX!x#xX!}#xX~P9yO$l$tO~P>UO!q7XO~P>UOT6iOz6gO!S6jO!b6kO!v8sO#O7iO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x'PX!}'PX~P!'WOP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lO!}7lO!x'OX~O#S9yO~P>UOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Xa#X$Xa!x$Xa!}$Xa~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Ya#X$Ya!x$Ya!}$Ya~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Za#X$Za!x$Za!}$Za~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$[a#X$[a!x$[a!}$[a~P!'WOz8tO$z#dOT$[a!S$[a!b$[a!q$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a#X$[a!x$[a!}$[a~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$_a#X$_a!x$_a!}$_a~P!'WO!q=dO#O7rO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$ka#X$ka!x$ka!}$ka~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$|a#X$|a!x$|a!}$|a~P!'WOT8vOz8tO!S8wO!b8xO!q7wO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#X#yi!x#yi!}#yi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8vOz8tO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!S#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8vOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8tO$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8tO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi#X#yi!x#yi!}#yi~P!'WOz8tO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi#X#yi!x#yi!}#yi~P!'WOz8tO$T9RO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$S9QO$T9RO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi#X#yi!x#yi!}#yi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#Pi!S#Pi!b#Pi!q#Pi#X#Pi!x#Pi!}#Pi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#vi!S#vi!b#vi!q#vi#X#vi!x#vi!}#vi~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q#xi#X#xi!x#xi!}#xi~P!'WO!q=eO#O7|O~Oz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT!uq!S!uq!b!uq!q!uq!v!uq#X!uq!x!uq!}!uq~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#Pq!S#Pq!b#Pq!q#Pq#X#Pq!x#Pq!}#Pq~P!'WO!q=iO#O8TO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$jq#X$jq!x$jq!}$jq~P!'WO#O8TO#l'SO~Oz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT!uy!S!uy!b!uy!q!uy!v!uy#X!uy!x!uy!}!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$jy#X$jy!x$jy!}$jy~P!'WO#O8UO#l'SO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!R#X$j!R!x$j!R!}$j!R~P!'WO#O8XO#l'SO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!Z#X$j!Z!x$j!Z!}$j!Z~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!c#X$j!c!x$j!c!}$j!c~P!'WO#S:bO~P>UO#O:aO!q'PX!x'PX~PGSO$l$tO~P$8YOP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$l$tO$z:nO${!OO~P$;lOo8_Os$lO~O#SSOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#SSOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#S=UO#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOT6iOz6gO!S6jO!b6kO!v8sO#O=SO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#O=RO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'PX!q'PX!n'PX!}'PX~P!'WOT&zXz&zX!S&zX!b&zX!o&zX!q&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX!}&zX~O#u9ZO#w9[O#X&zX!x&zX~P.8oO!y$hO#S=^O~O!q9hO~P>UO!y$hO#S=cO~O!q>OO#O9}O~OT8vOz8tO!S8wO!b8xO!q:OO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!m#Ta!q#Ta!n#Ta!}#Ta~P!'WOT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!m'Pa!q'Pa!n'Pa!}'Pa~P!'WO!q>PO#O:RO~O!q>QO#O:YO~O#O:YO#l'SO~O#O:ZO#l'SO~O#O:_O#l'SO~O#u;eO#w;gO!m&zX!n&zX~P.8oO#u;fO#w;hOT&zXz&zX!S&zX!b&zX!o&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX~O!q;tO~P>UO!q;uO~P>UO!q>XO#OYO#O9WO~OT8vOz8tO!S8wO!b8xO!qZO#O[O#O<{O~O#O<{O#l'SO~O#O9WO#l'SO~O#O<|O#l'SO~O#O=PO#l'SO~O!y$hO#S=|O~Oo=[Os$lO~O!y$hO#S=}O~O!y$hO#S>UO~O!y$hO#S>VO~O!y$hO#S>WO~Oo={Os$lO~Oo>TOs$lO~Oo>SOs$lO~O%O$U$}$d!d$V#b%V#e'g!s#d~",goto:"%&y'mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP'nP'uPP'{(OPPP(hP(OP(O*ZP*ZPP2W:j:mPP*Z:sBpPBsPBsPP:sCSCVCZ:s:sPPPC^PP:sK^!$S!$S:s!$WP!$W!$W!%UP!.]!7pP!?oP*ZP*Z*ZPPPPP!?rPPPPPPP*Z*Z*Z*ZPP*Z*ZP!E]!GRP!GV!Gy!GR!GR!HP*Z*ZP!HY!Hl!Ib!J`!Jd!J`!Jo!J}!J}!KV!KY!KY*ZPP*ZPP!K^#%[#%[#%`P#%fP(O#%j(O#&S#&V#&V#&](O#&`(O(O#&f#&i(O#&r#&u(O(O(O(O(O#&x(O(O(O(O(O(O(O(O(O#&{!KR(O(O#'_#'o#'r(O(OP#'u#'|#(S#(o#(y#)P#)Z#)b#)h#*d#4X#5T#5Z#5a#5k#5q#5w#6]#6c#6i#6o#6u#6{#7R#7]#7g#7m#7s#7}PPPPPPPP#8T#8X#8}#NO#NR#N]$(f$(r$)X$)_$)b$)e$)k$,X$5v$>_$>b$>h$>k$>n$>w$>{$?X$?k$Bk$CO$C{$K{PP%%y%%}%&Z%&p%&vQ!nQT!qV!rQUOR%x!mRVO}!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a|!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aQ%^!ZQ%g!aQ%l!eQ'd$dQ'q$iQ)[%kQ*y'tQ,](xU-n*v*x+OQ.W+cQ.{,[S/t-s-tQ0T.SS0}/s/wQ1V0RQ1o1OR2P1p0u!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[3ZfPVX[_bgjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#}$R$S$U$h$y$}%P%R%S%T%U%c%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)Z)_)c)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,u-Q-R-d-k-r-u-z-{-|.Q.b.d.l.t/[/c/i/m/u/x0V0`0a0d0e0i0v1P1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w5}6O6P6T6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8b8c8d8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[3scPVX[_bdegjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#{#}$R$S$U$h$y$}%P%R%S%T%U%c%m%n%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)Z)^)_)c)g)h)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,u,x-Q-R-d-k-r-u-z-{-|.Q.b.d.l.t/[/c/i/m/u/x0V0`0a0d0e0i0v1P1R1]1a2W2X2Y2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w5}6O6P6T6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8b8c8d8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[0phPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0`0a0d0e0i0v1R1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uRS=p>S>VS=s>T>UR=t>WT'n$h*s!csPVXt!S!j!r!s!w$h$}%P%S%U'i(T(`)W*s+]+g+r+u,g,k.b.d.l0`0a0i1aQ$^rR*`'^Q*x'sQ-t*{R/w-wQ(W$tQ)U%hQ)n%vQ*i'fQ+k(XR-c*jQ(V$tQ)Y%jQ)m%vQ*e'eS*h'f)nS+j(W(XS-b*i*jQ.]+kQ/T,mQ/e-`R/g-cQ(U$tQ)T%hQ)V%iQ)l%vU*g'f)m)nU+i(V(W(XQ,f)UU-a*h*i*jS.[+j+kS/f-b-cQ0X.]R0t/gT+e(T+g[%e!_$b'c+a.R0QR,d)Qb$ov(T+[+]+`+g.P.Q0PR+T'{S+e(T+gT,j)W,kR0W.XT1[0V1]0w|PVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X,_-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[R2Y2X|tPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aW$`t'i+],gS'i$h*sS+](T+gT,g)W,kQ'_$^R*a'_Q*t'oR-m*tQ/p-oS0{/p0|R0|/qQ-}+XR/|-}Q+g(TR.Y+gS+`(T+gS,h)W,kQ.Q+]W.T+`,h.Q/OR/O,gQ)R%eR,e)RQ'|$oR+U'|Q1]0VR1w1]Q${{R(^${Q+t(aR.c+tQ+w(bR.g+wQ+}(cQ,P(dT.m+},PQ(|%`S,a(|7tR7t7VQ(y%^R,^(yQ,k)WR/R,kQ)`%oS,q)`/WR/W,rQ,v)dR/^,vT!uV!rj!iPVX!j!r!s!w(`+r.l0`0a1aQ%Q!SQ(a$}W(h%P%S%U0iQ.e+uQ0Z.bR0[.d|ZPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aQ#f[U#m_#s&wQ#wbQ$VkQ$WlQ$XmQ$YnQ$ZoQ$[pQ$sx^$uy2_4b6e8q:m:nQ$vzQ%W!WQ%Y!XQ%[!YW%`!]%R(l,VU%s!g&p-RQ%|!yQ&O!zQ&Q!{S&U!})v^&^#R2a4d6g8t:p:qQ&_#SQ&`#TQ&a#UQ&b#VQ&c#WQ&d#XQ&e#YQ&f#ZQ&g#[Q&h#]Q&i#^Q&j#_Q&k#`Q&l#aQ&m#bQ&u#nQ&v#oS&{#t'OQ'X$RQ'Z$SQ'[$UQ(]$yQ(p%TQ)q%}Q)s&SQ)u&WQ*O&tS*['U4ZQ*^'Y^*_2[3u5v8Z:a=R=SQ+S'zQ+V(OQ,`({Q,c)PQ,y)iQ,{)pQ,})tQ-V*PQ-W*TQ-X*U^-]2]3v5w8[:b=T=UQ-i*oQ-x+PQ.k+zQ.w,XQ/`-QQ/h-dQ/n-kQ/y-zQ0r/cQ0u/iQ0x/mQ1Q/xU1X0V1]9WQ1d0eQ1m0vQ1q1RQ2Z2^Q2qjQ2r3yQ2x3zQ2y3|Q2z4OQ2{4QQ2|4SQ2}4UQ3O2`Q3Q2bQ3R2cQ3S2dQ3T2eQ3U2fQ3V2gQ3W2hQ3X2iQ3Y2jQ3Z2kQ3[2lQ3]2mQ3^2nQ3_2oQ3`2pQ3a2sQ3b2tQ3c2uQ3e2vQ3f2wQ3i3PQ3j3dQ3l3gQ3m3hQ3n3kQ3q3oQ3r3pQ3t3sQ4Y4WQ4y3{Q4z3}Q4{4PQ4|4RQ4}4TQ5O4VQ5P4cQ5R4eQ5S4fQ5T4gQ5U4hQ5V4iQ5W4jQ5X4kQ5Y4lQ5Z4mQ5[4nQ5]4oQ5^4pQ5_4qQ5`4rQ5a4sQ5b4tQ5c4uQ5d4vQ5f4wQ5g4xQ5j5QQ5k5eQ5m5hQ5n5iQ5o5lQ5r5pQ5s5qQ5u5tQ6Q4aQ6R3xQ6V6TQ6}6^Q7O6_Q7P6`Q7Q6aQ7R6bQ7S6cQ7T6dQ7U6fU7V,T.t0dQ7W%cQ7Y6hQ7Z6iQ7[6jQ7]6kQ7^6lQ7_6mQ7`6nQ7a6oQ7b6pQ7c6qQ7d6rQ7e6sQ7f6tQ7g6uQ7h6vQ7j6xQ7k6yQ7n6zQ7p6{Q7q6|Q7x7XQ7y7iQ7{7oQ7}7rQ8O7sQ8P7uQ8Q7wQ8R7zQ8S7|Q8V8TQ8W8UQ8Y8XQ8]8fU9U#k&s7lQ9^8jQ9_8kQ9`8lQ9a8mQ9b8nQ9c8oQ9e8pQ9f8rQ9g8sQ9i8uQ9j8vQ9k8wQ9l8xQ9m8yQ9n8zQ9o8{Q9p8|Q9q8}Q9r9OQ9s9PQ9t9QQ9u9RQ9v9SQ9w9TQ9x9ZQ9z9[Q9{9]Q:P9hQ:Q9yQ:T9}Q:V:OQ:W:RQ:[:YQ:^:ZQ:`:_Q:c8iQ;j:dQ;k:eQ;l:fQ;m:gQ;n:hQ;o:iQ;p:jQ;q:kQ;r:lQ;s:oQ;v:rQ;w:sQ;x:tQ;y:uQ;z:vQ;{:wQ;|:xQ;}:yQOQ=h>PQ=j>QQ=u>XQ=v>YQ=w>ZR=x>[0t!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[S$]r'^Q%k!eS%o!f%rQ)b%pU+X(R(S+dQ,p)_Q,t)cQ/Z,uQ/{-|R0p/[|vPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a#U#i[bklmnopxyz!W!X!Y!{#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b$R$S$U$y%}&S'Y(O)p+P-z/x0e1R2[2]6x6yd+^(T)W+]+`+g,g,h,k.Q/O!t6w'U2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3z3|4O4Q4S4U5v5w!x;b3u3v3x3y3{3}4P4R4T4V4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t$O=z_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-R6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6z6{6|7X7l7o7r7w7|8T8U8X8Z8[8f8g8h8i#|>]!y!z!}%c&W)t)v*T*o,T-d-k.t/c/i/m0d0v4W6T7i7s7u7z8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9Z9[9]9h9y9}:O:R:Y:Z:_:a:b;c;d=Z=m=n!v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[v],skippedNodes:[0],repeatNodeCount:29,tokenData:"!F|_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9W!e!}!7z!}#O!;^#O#P!;z#P#Q!V<%lO8VR9WV&wP%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9rV%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ:^O%VQQ:aRO;'S9m;'S;=`:j;=`O9mQ:oW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l9m<%lO9mQ;[P;=`<%l9mR;fV&wP%VQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRV<%l~8V~O8V~~%fR=OW&wPOY8VYZ9PZ!^8V!^!_;{!_;'S8V;'S;=`=h;=`<%l9m<%lO8VR=mW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l8V<%lO9mR>YP;=`<%l8VR>dV!yQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV?QV!xU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR?nY&wP$VQOY$zYZ%fZz$zz{@^{!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR@eW$WQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRAUY$TQ&wPOY$zYZ%fZ{$z{|At|!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRA{V$zQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRBiV!}Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_CXZ$TQ%TW&wPOY$zYZ%fZ}$z}!OAt!O!^$z!^!_%k!_!`6U!`!aCz!a;'S$z;'S;=`&W<%lO$zVDRV#`U&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVDo[&wP$UQOY$zYZ%fZ!O$z!O!PEe!P!Q$z!Q![Fs![!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVEjX&wPOY$zYZ%fZ!O$z!O!PFV!P!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVF^V#UU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRFz_&wP%OQOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#SJc#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zRHO]&wPOY$zYZ%fZ{$z{|Hw|}$z}!OHw!O!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRH|X&wPOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRIpZ&wP%OQOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_#R$z#R#SHw#S;'S$z;'S;=`&W<%lO$zRJhX&wPOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVK[[&wP$VQOY$zYZ%fZz$zz{LQ{!P$z!P!Q,o!Q!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVLVX&wPOYLQYZLrZzLQz{N_{!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQVLwT&wPOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMZTOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMmVOzMWz{Mj{!PMW!P!QNS!Q;'SMW;'S;=`NX<%lOMWUNXO!eUUN[P;=`<%lMWVNdZ&wPOYLQYZLrZzLQz{N_{!PLQ!P!Q! V!Q!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQV! ^V!eU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV! vZOYLQYZLrZzLQz{N_{!aLQ!a!bMW!b;'SLQ;'S;=`!!i<%l~LQ~OLQ~~%fV!!lP;=`<%lLQZ!!vm&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!d$z!d!e!&o!e!g$z!g!hGy!h!q$z!q!r!(a!r!z$z!z!{!){!{#R$z#R#S!%}#S#U$z#U#V!&o#V#X$z#X#YGy#Y#c$z#c#d!(a#d#l$z#l#m!){#m;'S$z;'S;=`&W<%lO$zZ!$xa&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#S!%}#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zZ!&SX&wPOY$zYZ%fZ!Q$z!Q![!$q![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!&tY&wPOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!'k[&wP$}YOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_#R$z#R#S!&o#S;'S$z;'S;=`&W<%lO$zZ!(fX&wPOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!)YZ&wP$}YOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_#R$z#R#S!(a#S;'S$z;'S;=`&W<%lO$zZ!*Q]&wPOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zZ!+Q_&wP$}YOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#R$z#R#S!){#S#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zR!,WX!qQ&wPOY$zYZ%fZ![$z![!]!,s!]!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!,zV#sQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!-hV!mU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!.S[$RQOY$zYZ%fZ!^$z!^!_!.x!_!`!/i!`!a*c!a!b!0]!b;'S$z;'S;=`&W<%l~$z~O$z~~%fR!/PW$SQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!/pX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a*c!a;'S$z;'S;=`&W<%lO$zP!0bR!iP!_!`!0k!r!s!0p#d#e!0pP!0pO!iPP!0sQ!j!k!0y#[#]!0yP!0|Q!r!s!0k#d#e!0kV!1ZX#uQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`)r!`!a!1v!a;'S$z;'S;=`&W<%lO$zV!1}V#OU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!2kX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`!3W!`!a!.x!a;'S$z;'S;=`&W<%lO$zR!3_V$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!3{[!vQ&wPOY$zYZ%fZ}$z}!O!4q!O!^$z!^!_%k!_!`$z!`!a!6P!a!b!6m!b;'S$z;'S;=`&W<%lO$zV!4vX&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a!5c!a;'S$z;'S;=`&W<%lO$zV!5jV#aU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!6WV!gU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!6tW#zQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!7eV$]Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_!8Ra&wP!s^OY$zYZ%fZ!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$z_!9_e&wP!s^OY$zYZ%fZr$zrs!:psw$zwx8Vx!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$zR!:wV&wP'gQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!;eV#WU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!mZ!^!=u!^!_!@u!_#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%lO!=uR!>rV&wPO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?[VO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?tRO;'S!?X;'S;=`!?};=`O!?XQ!@QWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!?X<%lO!?XQ!@oO${QQ!@rP;=`<%l!?XR!@x]OY!=uYZ!>mZ!a!=u!a!b!?X!b#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%l~!=u~O!=u~~%fR!AvW&wPOY!=uYZ!>mZ!^!=u!^!_!@u!_;'S!=u;'S;=`!B`;=`<%l!?X<%lO!=uR!BcWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!=u<%lO!?XR!CSV${Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!ClP;=`<%l!=uV!CvV!oU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!DfY#}Q#lS&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EU#q;'S$z;'S;=`&W<%lO$zR!E]V#{Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!EyV!nQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FgV$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[f,g,p,0,1,2,3,h],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get:(e,t)=>a(e)<<1,external:a},{term:81,get:e=>O[e]||-1}],tokenPrec:29354});var b=n(54163),w=n(6407),k=n(72107);const x=k.qp.define({name:"php",parser:y.configure({props:[k.uj.add({IfStatement:(0,k.tC)({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:(0,k.tC)({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},ColonBlock:e=>e.baseIndent+e.unit,"Block EnumBody DeclarationList":(0,k.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"String BlockComment":()=>null,Statement:(0,k.tC)({except:/^({|end(for|foreach|switch|while)\b)/})}),k.x0.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":k.Dv,ColonBlock:e=>({from:e.from+1,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function _(e={}){let t,n=[];if(null===e.baseLanguage);else if(e.baseLanguage)t=e.baseLanguage;else{let e=(0,w.html)({matchClosingTags:!1});n.push(e.support),t=e.language}return new k.ri(x.configure({wrap:t&&(0,b.FE)((e=>e.type.isTop?{parser:t.parser,overlay:e=>"Text"==e.name}:null)),top:e.plain?"Program":"Template"}),n)}},99213:(e,t,n)=>{"use strict";n.r(t),n.d(t,{globalCompletion:()=>M,localCompletionSource:()=>A,python:()=>W,pythonLanguage:()=>z});var r=n(64963),i=n(7778);const o=10,a=13,s=new Set([27,51,52,265,67,129,58,59,246,64,65,74,62,63,150,151,154]);function l(e){return e==o||e==a}const u=new r.Jq(((e,t)=>{let n;if(e.next<0)e.acceptToken(201);else if(t.context.depth<0)l(e.next)&&e.acceptToken(200,1);else if(((n=e.peek(-1))<0||l(n))&&t.canShift(199)){let t=0;for(;32==e.next||9==e.next;)e.advance(),t++;e.next!=o&&e.next!=a&&35!=e.next||e.acceptToken(199,-t)}else l(e.next)&&e.acceptToken(198,1)}),{contextual:!0}),c=new r.Jq(((e,t)=>{let n=t.context.depth;if(n<0)return;let r=e.peek(-1);if(r==o||r==a){let t=0,r=0;for(;;){if(32==e.next)t++;else{if(9!=e.next)break;t+=8-t%8}e.advance(),r++}t!=n&&e.next!=o&&e.next!=a&&35!=e.next&&(te.depth<0&&s.has(t)?e.parent:e,shift:(e,t,n,r)=>196==t?new d(e,function(e){let t=0;for(let n=0;ne.hash}),p=new r.Jq((e=>{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let n=e.peek(t);if(32!=n&&9!=n)return void(40!=n&&46!=n&&n!=o&&n!=a&&35!=n&&e.acceptToken(1))}}));function m(e,t,n,i,o){return new r.Jq((r=>{let a=r.pos;for(;!(r.next<0);)if(123==r.next){if(123!=r.peek(1)){if(r.pos==a)return void r.acceptToken(i,1);break}r.advance(2)}else if(92==r.next)r.advance(),r.next>=0&&r.advance();else{if(r.next==e&&(1==t||r.peek(1)==e&&r.peek(2)==e)){if(r.pos==a)return void r.acceptToken(o,t);break}r.advance()}r.pos>a&&r.acceptToken(n)}))}const g=m(39,1,202,2,203),v=m(34,1,204,3,205),O=m(39,3,206,4,207),y=m(34,3,208,5,209),b=(0,i.Gv)({'async "*" "**" FormatConversion FormatSpec':i.pJ.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":i.pJ.controlKeyword,"in not and or is del":i.pJ.operatorKeyword,"from def class global nonlocal lambda":i.pJ.definitionKeyword,import:i.pJ.moduleKeyword,"with as print":i.pJ.keyword,Boolean:i.pJ.bool,None:i.pJ.null,VariableName:i.pJ.variableName,"CallExpression/VariableName":i.pJ.function(i.pJ.variableName),"FunctionDefinition/VariableName":i.pJ.function(i.pJ.definition(i.pJ.variableName)),"ClassDefinition/VariableName":i.pJ.definition(i.pJ.className),PropertyName:i.pJ.propertyName,"CallExpression/MemberExpression/PropertyName":i.pJ.function(i.pJ.propertyName),Comment:i.pJ.lineComment,Number:i.pJ.number,String:i.pJ.string,FormatString:i.pJ.special(i.pJ.string),UpdateOp:i.pJ.updateOperator,"ArithOp!":i.pJ.arithmeticOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,AssignOp:i.pJ.definitionOperator,Ellipsis:i.pJ.punctuation,At:i.pJ.meta,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,".":i.pJ.derefOperator,", ;":i.pJ.separator}),w={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,elif:234,while:238,try:244,except:246,finally:248,with:252,def:256,class:266,match:277,case:283},k=r.WQ.deserialize({version:14,states:"#!OO`Q#yOOP$_OSOOO%hQ&nO'#H^OOQS'#Cq'#CqOOQS'#Cr'#CrO'WQ#xO'#CpO(yQ&nO'#H]OOQS'#H^'#H^OOQS'#DW'#DWOOQS'#H]'#H]O)gQ#xO'#DaO)zQ#xO'#DhO*[Q#xO'#DlOOQS'#Dw'#DwO*oO,UO'#DwO*wO7[O'#DwO+POWO'#DxO+[O`O'#DxO+gOpO'#DxO+rO!bO'#DxO-tQ&nO'#G}OOQS'#G}'#G}O'WQ#xO'#G|O/WQ&nO'#G|OOQS'#Ee'#EeO/oQ#xO'#EfOOQS'#G{'#G{O/yQ#xO'#GzOOQV'#Gz'#GzO0UQ#xO'#FXOOQS'#G`'#G`O0ZQ#xO'#FWOOQV'#IS'#ISOOQV'#Gy'#GyOOQV'#Fp'#FpQ`Q#yOOO'WQ#xO'#CsO0iQ#xO'#DPO0pQ#xO'#DTO1OQ#xO'#HbO1`Q&nO'#EYO'WQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1tQ#xO'#EcO2[Q#xO'#EgO0UQ#xO'#EiO2oQ&nO'#EiO0UQ#xO'#ElO/oQ#xO'#EoO/oQ#xO'#EsO/oQ#xO'#EvO2zQ#xO'#ExO3RQ#xO'#E}O3^Q#xO'#EyO/oQ#xO'#E}O0UQ#xO'#FPO0UQ#xO'#FUO3cQ#xO'#FZP3jO#xO'#GxPOOO)CBl)CBlOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO3uQ#xO'#DqOOQS,5:[,5:[O4YQ#xO'#HlOOQS,5:_,5:_O4gQMlO,5:_O4lQ&nO,59[O0iQ#xO,59dO0iQ#xO,59dO0iQ#xO,59dO7[Q#xO,59dO7aQ#xO,59dO7hQ#xO,59lO7oQ#xO'#H]O8uQ#xO'#H[OOQS'#H['#H[OOQS'#D^'#D^O9^Q#xO,59cO'WQ#xO,59cO9lQ#xO,59cOOQS,59{,59{O9qQ#xO,5:TO'WQ#xO,5:TOOQS,5:S,5:SO:PQ#xO,5:SO:UQ#xO,5:ZO'WQ#xO,5:ZO'WQ#xO,5:XOOQS,5:W,5:WO:gQ#xO,5:WO:lQ#xO,5:YOOOO'#Fx'#FxO:qO,UO,5:cOOQS,5:c,5:cOOOO'#Fy'#FyO:yO7[O,5:cO;RQ#xO'#DyOOOW'#Fz'#FzO;cOWO,5:dOOQS,5:d,5:dO;RQ#xO'#D}OOO`'#F}'#F}O;nO`O,5:dO;RQ#xO'#EOOOOp'#GO'#GOO;yOpO,5:dO;RQ#xO'#EPOOO!b'#GP'#GPOWOOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-ZQ&nO1G/OO!-bQ&nO1G/OO0iQ#xO1G/OO!-}Q#xO1G/WOOQS'#D]'#D]O/oQ#xO,59vOOQS1G.}1G.}O!.UQ#xO1G/gO!.fQ#xO1G/gO!.nQ#xO1G/hO'WQ#xO'#HdO!.sQ#xO'#HdO!.xQ&nO1G.}O!/YQ#xO,59kO!0`Q#xO,5>SO!0pQ#xO,5>SO!0xQ#xO1G/oO!0}Q&nO1G/oOOQS1G/n1G/nO!1_Q#xO,5=}O!2UQ#xO,5=}O/oQ#xO1G/sO!2sQ#xO1G/uO!2xQ&nO1G/uO!3YQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9v-E9vOOQS1G/}1G/}OOOO-E9w-E9wO!3jQ#xO'#HwO/oQ#xO'#HwO!3xQ#xO,5:eOOOW-E9x-E9xOOQS1G0O1G0OO!4TQ#xO,5:iOOO`-E9{-E9{O!4`Q#xO,5:jOOOp-E9|-E9|O!4kQ#xO,5:kOOO!b-E9}-E9}OOQS-E:O-E:OO!4vQ!LUO1G3SO!5gQ&nO1G3SO'WQ#xO,5jOOQS1G1_1G1_O!6gQ#xO1G1_OOQS'#DX'#DXO/oQ#xO,5=yOOQS,5=y,5=yO!6lQ#xO'#FqO!6wQ#xO,59qO!7PQ#xO1G/ZO!7ZQ&nO,5=}OOQS1G3h1G3hOOQS,5:p,5:pO!7zQ#xO'#G|OOQS,5PO!8{Q#xO,5>PO/oQ#xO1G0mO/oQ#xO1G0mO0UQ#xO1G0oOOQS-E:T-E:TO!9^Q#xO1G0oO!9iQ#xO1G0oO!9nQ#xO,5>mO!9|Q#xO,5>mO!:[Q#xO,5>iO!:rQ#xO,5>iO!;TQ#{O1G0yO!>cQ#{O1G0|O!AnQ#xO,5>oO!AxQ#xO,5>oO!BQQ&nO,5>oO/oQ#xO1G1OO!B[Q#xO1G1OO3^Q#xO1G1TO! RQ#xO1G1VOOQV,5;`,5;`O!BaQ#zO,5;`O!BfQ#{O1G1PO!EwQ#xO'#G]O3^Q#xO1G1PO3^Q#xO1G1PO!FUQ#xO,5>pO!FcQ#xO,5>pO0UQ#xO,5>pOOQV1G1T1G1TO!FkQ#xO'#FRO!F|QMlO1G1VOOQV1G1[1G1[O3^Q#xO1G1[O!GUQ#xO'#F]OOQV1G1a1G1aO! `Q&nO1G1aPOOO1G3O1G3OP!GZOSO1G3OOOQS,5>V,5>VOOQS'#Dr'#DrO/oQ#xO,5>VO!G`Q#xO,5>UO!GsQ#xO,5>UOOQS1G/w1G/wO!G{Q#xO,5>XO!H]Q#xO,5>XO!HeQ#xO,5>XO!HxQ#xO,5>XO!IYQ#xO,5>XOOQS1G3r1G3rOOQS7+$j7+$jO!7PQ#xO7+$rO!J{Q#xO1G/OO!KSQ#xO1G/OOOQS1G/b1G/bOOQS,5<_,5<_O'WQ#xO,5<_OOQS7+%R7+%RO!KZQ#xO7+%ROOQS-E9q-E9qOOQS7+%S7+%SO!KkQ#xO,5>OO'WQ#xO,5>OOOQS7+$i7+$iO!KpQ#xO7+%RO!KxQ#xO7+%SO!K}Q#xO1G3nOOQS7+%Z7+%ZO!L_Q#xO1G3nO!LgQ#xO7+%ZOOQS,5<^,5<^O'WQ#xO,5<^O!LlQ#xO1G3iOOQS-E9p-E9pO!McQ#xO7+%_OOQS7+%a7+%aO!MqQ#xO1G3iO!N`Q#xO7+%aO!NeQ#xO1G3oO!NuQ#xO1G3oO!N}Q#xO7+%_O# SQ#xO,5>cO# jQ#xO,5>cO# jQ#xO,5>cO# xO$ISO'#D{O#!TO#tO'#HxOOOW1G0P1G0PO#!YQ#xO1G0POOO`1G0T1G0TO#!bQ#xO1G0TOOOp1G0U1G0UO#!jQ#xO1G0UOOO!b1G0V1G0VO#!rQ#xO1G0VO#!zQ!LUO7+(nO##kQ&nO1G2XP#$UQ#xO'#GROOQS,5d,5>dOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#7{Q#xO1G3SO#8fQ#xO1G3SP'WQ#xO'#FtO/oQ#xO<lO#9YQ#xO,5>lO0UQ#xO,5>lO#9kQ#xO,5>kOOQS<rO#AdQ#xO,5>rOOQS,5>r,5>rO#AoQ#xO,5>qO#BQQ#xO,5>qOOQS1G1X1G1XOOQS,5;o,5;oO#BYQ#xO1G1cP#B_Q#xO'#FvO#BoQ#xO1G1}O#CSQ#xO1G1}O#CdQ#xO1G1}P#CoQ#xO'#FwO#C|Q#xO7+)_O#D^Q#xO7+)_O#D^Q#xO7+)_O#DfQ#xO7+)_O#DvQ#xO7+)UO7hQ#xO7+)UOOQSAN>XAN>XO#EaQ#xO<eAN>eO/oQ#xO1G1{O#EqQ&nO1G1{P#E{Q#xO'#FuOOQS1G2R1G2RP#FYQ#xO'#F{O#FgQ#xO7+)iO#F}Q#xO,5:hOOOO-E9z-E9zO#GYQ#xO7+(nOOQSAN?_AN?_O#GsQ#xO,5QOOQSANB[ANB[OOOO7+%n7+%nOOQS7+'x7+'xO$'{Q#xO<tO$*qQ#xO,5>tO0UQ#xO,5vO#MRQ#xO,5>vOOQS1G1o1G1oO$.iQ&nO,5wO$.wQ#xO,5>wOOQS1G1r1G1rOOQS7+'R7+'RP#MRQ#xO'#GfO$/PQ#xO1G4bO$/ZQ#xO1G4bO$/cQ#xO1G4bOOQS7+%V7+%VO$/qQ#xO1G1sO$0PQ&nO'#F`O$0WQ#xO,5=POOQS,5=P,5=PO$0fQ#xO1G4cOOQS-E:c-E:cO#MRQ#xO,5=OO$0mQ#xO,5=OO$0rQ#xO7+)|OOQS-E:b-E:bO$0|Q#xO7+)|O#MRQ#xO,5e>hPP'Z'ZPP?QPP'Z'ZPP'Z'Z'Z'Z'Z?U?{'ZP@OP@UD]GyPG}HZH_HcHg'ZPPPHkHq'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RPHwPIOIUPIOPIOIOPPPIOPKTPK^KdKjKTPIOKpPIOPKwK}PLRLgMUMoLRLRMuNSLRLRLRLRNhNnNqNvNy! T! Z! g! y!!P!!Z!!a!!}!#T!#Z!#a!#k!#q!#w!#}!$T!$Z!$m!$w!$}!%T!%Z!%e!%k!%q!%w!&R!&X!&c!&i!&r!&x!'X!'a!'k!'rPPPPPPPPPPPPPPPPP!'x!'{!(R!([!(f!(qPPPPPPPPPPPP!-e!.y!2s!6TPP!6]!6o!6x!7n!7e!7w!7}!8Q!8T!8W!8`!9PPPPPPPPPP!9S!9cPPPP!:R!:_!:k!:q!:z!:}!;T!;Z!;a!;dP!;l!;u!x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&m!b&eS&hW%k!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&m!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&m!b&eS&hWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&m!b&eS&hWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&m!b&eS&hWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&m!b&eS&csOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&m!b&eS&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&m!b&eS&csOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&m!b&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&m!b&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&m!b&hW&csOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&m!b&csOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&m!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&csOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&m!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&eS&hW&csOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&eS&csOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&m!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&m!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&m!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&hWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&hWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&hWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&m!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&eS&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&eSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&eSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&eS&hWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&m!b&eS&hW&b`%}sOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$w[e]||-1}],tokenPrec:7205});var x=n(72107),_=n(54163),S=n(71170);const P=new _.hr,E=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function C(e){return(t,n,r)=>{if(r)return!1;let i=t.node.getChild("VariableName");return i&&n(i,e),!0}}const T={FunctionDefinition:C("function"),ClassDefinition:C("class"),ForStatement(e,t,n){if(n)for(let n=e.node.firstChild;n;n=n.nextSibling)if("VariableName"==n.name)t(n,"variable");else if("in"==n.name)break},ImportStatement(e,t){var n,r;let{node:i}=e,o="from"==(null===(n=i.firstChild)||void 0===n?void 0:n.name);for(let e=i.getChild("import");e;e=e.nextSibling)"VariableName"==e.name&&"as"!=(null===(r=e.nextSibling)||void 0===r?void 0:r.name)&&t(e,o?"variable":"namespace")},AssignStatement(e,t){for(let n=e.node.firstChild;n;n=n.nextSibling)if("VariableName"==n.name)t(n,"variable");else if(":"==n.name||"AssignOp"==n.name)break},ParamList(e,t){for(let n=null,r=e.node.firstChild;r;r=r.nextSibling)"VariableName"!=r.name||n&&/\*|AssignOp/.test(n.name)||t(r,"variable"),n=r},CapturePattern:C("variable"),AsPattern:C("variable"),__proto__:null};function $(e,t){let n=P.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(_.vj.IncludeAnonymous).iterate((t=>{if(t.name){let e=T[t.name];if(e&&e(t,o,i)||!i&&E.has(t.name))return!1;i=!1}else if(t.to-t.from>8192){for(let n of $(e,t.node))r.push(n);return!1}})),P.set(t,r),r}const Q=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,R=["String","FormatString","Comment","PropertyName"];function A(e){let t=(0,x.qz)(e.state).resolveInner(e.pos,-1);if(R.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&Q.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)E.has(n.name)&&(r=r.concat($(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:Q}}const j=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map((e=>({label:e,type:"constant"}))).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map((e=>({label:e,type:"type"})))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map((e=>({label:e,type:"class"})))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map((e=>({label:e,type:"function"})))),D=[(0,S.Gn)("def ${name}(${params}):\n\t${}",{label:"def",detail:"function",type:"keyword"}),(0,S.Gn)("for ${name} in ${collection}:\n\t${}",{label:"for",detail:"loop",type:"keyword"}),(0,S.Gn)("while ${}:\n\t${}",{label:"while",detail:"loop",type:"keyword"}),(0,S.Gn)("try:\n\t${}\nexcept ${error}:\n\t${}",{label:"try",detail:"/ except block",type:"keyword"}),(0,S.Gn)("if ${}:\n\t\n",{label:"if",detail:"block",type:"keyword"}),(0,S.Gn)("if ${}:\n\t${}\nelse:\n\t${}",{label:"if",detail:"/ else block",type:"keyword"}),(0,S.Gn)("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}",{label:"class",detail:"definition",type:"keyword"}),(0,S.Gn)("import ${module}",{label:"import",detail:"statement",type:"keyword"}),(0,S.Gn)("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],M=(0,S.eC)(R,(0,S.Mb)(j.concat(D)));function I(e,t){let n=e.baseIndentFor(t),r=e.lineAt(e.pos,-1),i=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.ton?null:n+e.unit}const z=x.qp.define({name:"python",parser:k.configure({props:[x.uj.add({Body:e=>{var t;return null!==(t=I(e,e.node))&&void 0!==t?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except |finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,x.vw)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,x.vw)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,x.vw)({closing:"]"}),"String FormatString":()=>null,Script:e=>{if(e.pos+/\s*/.exec(e.textAfter)[0].length>=e.node.to){let t=null;for(let n=e.node,r=n.to;n=n.lastChild,n&&n.to==r;)"Body"==n.type.name&&(t=n);if(t){let n=I(e,t);if(null!=n)return n}}return e.continue()}}),x.x0.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":x.Dv,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function W(){return new x.ri(z,[z.data.of({autocomplete:A}),z.data.of({autocomplete:M})])}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{rust:()=>m,rustLanguage:()=>p});var r=n(64963),i=n(7778);function o(e){return e>=48&&e<=57}function a(e){return o(e)||95==e}const s=new r.Jq(((e,t)=>{if(o(e.next)){let t=!1;do{e.advance()}while(a(e.next));if(46==e.next)if(t=!0,e.advance(),o(e.next))do{e.advance()}while(a(e.next));else if(46==e.next||e.next>127||/\w/.test(String.fromCharCode(e.next)))return;if(101==e.next||69==e.next){if(t=!0,e.advance(),43!=e.next&&45!=e.next||e.advance(),!a(e.next))return;do{e.advance()}while(a(e.next))}if(102==e.next){let n=e.peek(1);if(!(51==n&&50==e.peek(2)||54==n&&52==e.peek(2)))return;e.advance(3),t=!0}t&&e.acceptToken(5)}else if(98==e.next||114==e.next){if(98==e.next&&e.advance(),114!=e.next)return;e.advance();let t=0;for(;35==e.next;)t++,e.advance();if(34!=e.next)return;e.advance();e:for(;;){if(e.next<0)return;let n=34==e.next;if(e.advance(),n){for(let n=0;n{124==e.next&&e.acceptToken(1,1)})),u=new r.Jq((e=>{60==e.next?e.acceptToken(2,1):62==e.next&&e.acceptToken(3,1)})),c=(0,i.Gv)({"const macro_rules struct union enum type fn impl trait let static":i.pJ.definitionKeyword,"mod use crate":i.pJ.moduleKeyword,"pub unsafe async mut extern default move":i.pJ.modifier,"for if else loop while match continue break return await":i.pJ.controlKeyword,"as in ref":i.pJ.operatorKeyword,"where _ crate super dyn":i.pJ.keyword,self:i.pJ.self,String:i.pJ.string,Char:i.pJ.character,RawString:i.pJ.special(i.pJ.string),Boolean:i.pJ.bool,Identifier:i.pJ.variableName,"CallExpression/Identifier":i.pJ.function(i.pJ.variableName),BoundIdentifier:i.pJ.definition(i.pJ.variableName),"FunctionItem/BoundIdentifier":i.pJ.function(i.pJ.definition(i.pJ.variableName)),LoopLabel:i.pJ.labelName,FieldIdentifier:i.pJ.propertyName,"CallExpression/FieldExpression/FieldIdentifier":i.pJ.function(i.pJ.propertyName),Lifetime:i.pJ.special(i.pJ.variableName),ScopeIdentifier:i.pJ.namespace,TypeIdentifier:i.pJ.typeName,"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier":i.pJ.macroName,"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier":i.pJ.macroName,'"!"':i.pJ.macroName,UpdateOp:i.pJ.updateOperator,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Integer:i.pJ.integer,Float:i.pJ.float,ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,"=":i.pJ.definitionOperator,".. ... => ->":i.pJ.punctuation,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,". DerefOp":i.pJ.derefOperator,"&":i.pJ.operator,", ; ::":i.pJ.separator,"Attribute/...":i.pJ.meta}),d={__proto__:null,self:28,super:32,crate:34,impl:46,true:72,false:72,pub:88,in:92,const:96,unsafe:104,async:108,move:110,if:114,let:118,ref:142,mut:144,_:198,else:200,match:204,as:248,return:252,await:262,break:270,continue:276,while:312,loop:316,for:320,macro_rules:327,mod:334,extern:342,struct:346,where:364,union:379,enum:382,type:390,default:395,fn:396,trait:412,use:420,static:438,dyn:476},f=r.WQ.deserialize({version:14,states:"$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#EmOOQV'#En'#EnO.YQ_O'#EkO0_Q_O'#EoO2gQWOOO4QQ_O'#FPO7hQWO'#J`OOQV'#FY'#FYO7{Q_O'#F^O:WQ_O'#FaOOQO'#F`'#F`O=sQ_O'#FcO=}Q_O'#FbO@VQWO'#FgOOQO'#J`'#J`OOQV'#Io'#IoOA]Q_O'#InOEPQWO'#InOOQV'#Fw'#FwOF[QWO'#JuOFcQWO'#F|OOQO'#IO'#IOOGrQWO'#GhOOQV'#Im'#ImOOQV'#Il'#IlOOQV'#Hj'#HjQGyQ_OOOKeQ_O'#DUOKlQYO'#CqOOQP'#I_'#I_OOQV'#Hg'#HgQ]Q_OOOLuQWO'#I`ONsQYO'#DXO!!eQWO'#JuO!!lQWO'#JuO!!vQ_O'#DfO!%]Q_O'#E}O!(sQ_O'#FWO!,ZQWO'#FZO!.^QXO'#FbO!.cQ_O'#EeO!!vQ_O'#FmO!0uQWO'#FoO!0zQWO'#FoO!1PQ^O'#FqO!1WQWO'#JuO!1_QWO'#FtO!1dQWO'#FxO!2WQWO'#JjO!2_QWO'#GOO!2_QWO'#G`O!2_QWO'#GbO!2_QWO'#GsOOQO'#Ju'#JuO!2dQWO'#GhO!2lQYO'#GpO!2_QWO'#GqO!3uQ^O'#GtO!3|QWO'#GuO!4hQWO'#HOP!4sOpO'#CcPOOO)CC})CC}OOOO'#Hi'#HiO!5OO`O,59iOOQV,59i,59iO!5ZQYO,5?aOOQO-E;i-E;iOOQO,5:[,5:[OOQP,59Z,59ZO)xQWO,5:[O)xQWO,5:[O!5oQWO,5?kO!5zQYO,5;qO!6PQYO,5;TO!6hQWO,59QO!7kQXO'#CnO!7xQXO'#I`O!9SQWO'#CoO,^QWO'#EiOOQV-E;n-E;nO!9eQWO'#FsOOQV,5WQWO,5:fOOQP,5:h,5:hO!1PQ^O,5:hO!1PQ^O,5:mO$>]QYO,5gQ_O'#HsO$>tQXO,5@QOOQV1G1i1G1iOOQP,5:e,5:eO$>|QXO,5]QYO,5=vO$LRQWO'#KRO$L^QWO,5=xOOQR,5=y,5=yO$LcQWO,5=zO$>]QYO,5>PO$>]QYO,5>POOQO1G.w1G.wO$>]QYO1G.wO$LnQYO,5=pO$LvQZO,59^OOQR,59^,59^O$>]QYO,5=wO% YQZO,5=}OOQR,5=},5=}O%#lQWO1G/_O!6PQYO1G/_O#FYQYO1G2vO%#qQWO1G2vO%$PQYO1G2vOOQV1G/i1G/iO%%YQWO,5:SO%%bQ_O1G/lO%*kQWO1G1^O%+RQWO1G1hOOQO1G1h1G1hO$>]QYO1G1hO%+iQ^O'#EgOOQV1G0k1G0kOOQV1G1s1G1sO!!vQ_O1G1sO!0zQWO1G1uO!1PQ^O1G1wO!.cQ_O1G1wOOQP,5:j,5:jO$>]QYO1G/^OOQO'#Cn'#CnO%+vQWO1G1zOOQV1G2O1G2OO%,OQWO'#CnO%,WQWO1G3TO%,]QWO1G3TO%,bQYO'#GQO%,sQWO'#G]O%-UQYO'#G_O%.hQYO'#GXOOQV1G2U1G2UO%/wQWO1G2UO%/|QWO1G2UO$ARQWO1G2UOOQV1G2f1G2fO%/wQWO1G2fO#CpQWO1G2fO%0UQWO'#GdOOQV1G2h1G2hO%0gQWO1G2hO#C{QWO1G2hO%0lQYO'#GSO$>]QYO1G2lO$AdQWO1G2lOOQV1G2y1G2yO%1xQWO1G2yO%3hQ^O'#GkO%3rQWO1G2nO#DfQWO1G2nO%4QQYO,5]QYO1G2vOOQV1G2w1G2wO%5tQWO1G2wO%5yQWO1G2wO#HXQWO1G2wOOQV1G2z1G2zO.YQ_O1G2zO$>]QYO1G2zO%6RQWO1G2zOOQO,5>l,5>lOOQO-E]QYO1G3UPOOO-E;d-E;dPOOO1G.i1G.iOOQO7+*g7+*gO%7VQYO'#IcO%7nQYO'#IfO%7yQYO'#IfO%8RQYO'#IfO%8^QYO,59eOOQO7+%b7+%bOOQP7+$a7+$aO%8cQ!fO'#JTOOQS'#EX'#EXOOQS'#EY'#EYOOQS'#EZ'#EZOOQS'#JT'#JTO%;UQWO'#EWOOQS'#E`'#E`OOQS'#JR'#JROOQS'#Hn'#HnO%;ZQ!fO,5:oOOQV,5:o,5:oOOQV'#JQ'#JQO%;bQ!fO,5:{OOQV,5:{,5:{O%;iQ!fO,5:|OOQV,5:|,5:|OOQV7+'e7+'eOOQV7+&Z7+&ZO%;pQ!fO,59TOOQO,59T,59TO%>YQWO7+$WO%>_QWO1G1yOOQV1G1y1G1yO!9SQWO1G.uO%>dQWO,5?}O%>nQ_O'#HqO%@|QWO,5?}OOQO1G1X1G1XOOQO7+&}7+&}O%AUQWO,5>^OOQO-E;p-E;pO%AcQWO7+'OO.YQ_O7+'OOOQO7+'O7+'OOOQO7+'P7+'PO%AjQWO7+'POOQO7+'W7+'WOOQP1G0V1G0VO%ArQXO1G/tO!M{QWO1G/tO%BsQXO1G0RO%CkQ^O'#HlO%C{QWO,5?eOOQP1G/u1G/uO%DWQWO1G/uO%D]QWO'#D_OOQO'#Dt'#DtO%DhQWO'#DtO%DmQWO'#I{OOQO'#Iz'#IzO%DuQWO,5:_O%DzQWO'#DtO%EPQWO'#DtOOQP1G0Q1G0QOOQP1G0S1G0SOOQP1G0X1G0XO%EXQXO1G1jO%EdQXO'#FeOOQP,5>_,5>_O!1PQ^O'#FeOOQP-E;q-E;qO$>]QYO1G1jOOQO7+'S7+'SOOQO,5]QYO7+$xOOQV7+'j7+'jO%FsQWO7+(oO%FxQWO7+(oOOQV7+'p7+'pO%/wQWO7+'pO%F}QWO7+'pO%GVQWO7+'pOOQV7+(Q7+(QO%/wQWO7+(QO#CpQWO7+(QOOQV7+(S7+(SO%0gQWO7+(SO#C{QWO7+(SO$>]QYO7+(WO%GeQWO7+(WO#HUQYO7+(cO%GjQWO7+(YO#DfQWO7+(YOOQV7+(c7+(cO%5tQWO7+(cO%5yQWO7+(cO#HXQWO7+(cOOQV7+(g7+(gO$>]QYO7+(pO%GxQWO7+(pO!1dQWO7+(pOOQV7+$v7+$vO%G}QWO7+$vO%HSQZO1G3ZO%JfQWO1G4jOOQO1G4j1G4jOOQR1G.}1G.}O#.WQWO1G.}O%JkQWO'#KQOOQO'#HW'#HWO%J|QWO'#HXO%KXQWO'#KQOOQO'#KP'#KPO%KaQWO,5=qO%KfQYO'#H[O%LrQWO'#GmO%L}QYO'#CtO%MXQWO'#GmO$>]QYO1G3ZOOQR1G3g1G3gO#7aQWO1G3ZO%M^QZO1G3bO$>]QYO1G3bO& mQYO'#IVO& }QWO,5@mOOQR1G3d1G3dOOQR1G3f1G3fO.YQ_O1G3fOOQR1G3k1G3kO&!VQYO7+$cO&!_QYO'#KOOOQQ'#J}'#J}O&!gQYO1G3[O&!lQZO1G3cOOQQ7+$y7+$yO&${QWO7+$yO&%QQWO7+(bOOQV7+(b7+(bO%5tQWO7+(bO$>]QYO7+(bO#FYQYO7+(bO&%YQWO7+(bO!.cQ_O1G/nO&%hQWO7+%WO$?[QWO7+'SO&%pQWO'#EhO&%{Q^O'#EhOOQU'#Ho'#HoO&%{Q^O,5;ROOQV,5;R,5;RO&&VQWO,5;RO&&[Q^O,5;RO!0zQWO7+'_OOQV7+'a7+'aO&&iQWO7+'cO&&qQWO7+'cO&&xQWO7+$xO&'TQ!fO7+'fO&'[Q!fO7+'fOOQV7+(o7+(oO!1dQWO7+(oO&'cQYO,5]QYO'#JrOOQO'#Jq'#JqO&*YQWO,5]QYO'#GUO&,SQYO'#JkOOQQ,5]QYO7+(YO&0SQYO'#HxO&0hQYO1G2WOOQQ1G2W1G2WOOQQ,5]QYO,5]QYO7+(fO&1dQWO'#IRO&1nQWO,5@hOOQO1G3Q1G3QOOQO1G2}1G2}OOQO1G3P1G3POOQO1G3R1G3ROOQO1G3S1G3SOOQO1G3O1G3OO&1vQWO7+(pO$>]QYO,59fO&2RQ^O'#ISO&2xQYO,5?QOOQR1G/P1G/PO&3QQ!bO,5:pO&3VQ!fO,5:rOOQS-E;l-E;lOOQV1G0Z1G0ZOOQV1G0g1G0gOOQV1G0h1G0hO&3^QWO'#JTOOQO1G.o1G.oOOQV<]O&3qQWO,5>]OOQO-E;o-E;oOOQO<WOOQO-E;j-E;jOOQP7+%a7+%aO!1PQ^O,5:`O&5cQWO'#HmO&5wQWO,5?gOOQP1G/y1G/yOOQO,5:`,5:`O&6PQWO,5:`O%DzQWO,5:`O$>]QYO,5`,5>`OOQO-E;r-E;rOOQV7+'l7+'lO&6yQWO<]QYO<]QYO<]QYO<]QYO7+(uOOQO7+*U7+*UOOQR7+$i7+$iO&8cQWO,5@lOOQO'#Gm'#GmO&8kQWO'#GmO&8vQYO'#IUO&8cQWO,5@lOOQR1G3]1G3]O&:cQYO,5=vO&;rQYO,5=XO&;|QWO,5=XOOQO,5=X,5=XOOQR7+(u7+(uO&eQZO7+(|O&@tQWO,5>qOOQO-E]QYO<]QYO,5]QYO,5@^O&D^QYO'#H|O&EsQWO,5@^OOQO1G2e1G2eO%,nQWO,5]QYO,5PO&I]QYO,5@VOOQV<]QYO,5=WO&KuQWO,5@cO&K}QWO,5@cO&MvQ^O'#IPO&KuQWO,5@cOOQO1G2q1G2qO&NTQWO,5=WO&N]QWO<oO&NvQYO,5>dO' UQYO,5>dOOQQ,5>d,5>dOOQQ-E;v-E;vOOQQ7+'r7+'rO' aQYO1G2]O$>]QYO1G2^OOQV<m,5>mOOQO-EnOOQQ,5>n,5>nO'!fQYO,5>nOOQQ-EX,5>XOOQO-E;k-E;kO!1PQ^O1G/zOOQO1G/z1G/zO'%oQWO1G/zO'%tQXO1G1kO$>]QYO1G1kO'&PQWO7+'[OOQVANA`ANA`O'&ZQWOANA`O$>]QYOANA`O'&cQWOANA`OOQVAN>OAN>OO.YQ_OAN>OO'&qQWOANAuOOQVAN@vAN@vO'&vQWOAN@vOOQVANAWANAWOOQVANAYANAYOOQVANA^ANA^O'&{QWOANA^OOQVANAiANAiO%5tQWOANAiO%5yQWOANAiO''TQWOANA`OOQVANAvANAvO.YQ_OANAvO''cQWOANAvO$>]QYOANAvOOQR<pOOQO'#HY'#HYO''vQWO'#HZOOQO,5>p,5>pOOQO-E]QYO<o,5>oOOQQ-E]QYOANAhO'(bQWO1G1rO')UQ^O1G0nO.YQ_O1G0nO'*zQWO,5;UO'+RQWO1G0nP'+WQWO'#ERP&%{Q^O'#HpOOQV7+&X7+&XO'+cQWO7+&XO&&qQWOAN@iO'+hQWOAN>OO!5oQWO,5a,5>aO'+oQWOAN@lO'+tQWOAN@lOOQS-E;s-E;sOOQVAN@lAN@lO'+|QWOAN@lOOQVANAuANAuO',UQWO1G5vO',^QWO1G2dO$>]QYO1G2dO&'|QWO,5>gOOQO,5>g,5>gOOQO-E;y-E;yO',iQWO1G5xO',qQWO1G5xO&(nQYO,5>hO',|QWO,5>hO$>]QYO,5>hOOQO-E;z-E;zO'-XQWO'#JnOOQO1G2a1G2aOOQO,5>f,5>fOOQO-E;x-E;xO&'cQYO,5iOOQO,5>i,5>iOOQO-E;{-E;{OOQQ,5>c,5>cOOQQ-E;u-E;uO'.pQWO1G2sO'/QQWO1G2rO'/]QWO1G5}O'/eQ^O,5>kOOQO'#Go'#GoOOQO,5>k,5>kO'/lQWO,5>kOOQO-E;}-E;}O$>]QYO1G2rO'/zQYO7+'xO'0VQWOANAlOOQVANAlANAlO.YQ_OANAlO'0^QWOANAvOOQS7+%x7+%xO'0eQWO7+%xO'0pQ!fO7+%xO'0}QWO7+%fO!1PQ^O7+%fO'1YQXO7+'VOOQVG26zG26zO'1eQWOG26zO'1sQWOG26zO$>]QYOG26zO'1{QWOG23jOOQVG27aG27aOOQVG26bG26bOOQVG26xG26xOOQVG27TG27TO%5tQWOG27TO'2SQWOG27bOOQVG27bG27bO.YQ_OG27bO'2ZQWOG27bOOQO1G4[1G4[OOQO7+(_7+(_OOQRANA{ANA{OOQVG27SG27SO%5tQWOG27SO&0uQWOG27SO'2fQ^O7+&YO'4PQWO7+'^O'4sQ^O7+&YO.YQ_O7+&YP.YQ_O,5;SP'6PQWO,5;SP'6UQWO,5;SOOQV<]QYO1G4SO%,nQWO'#HyO'7UQWO,5@YO'7dQWO7+(VO.YQ_O7+(VOOQO1G4T1G4TOOQO1G4V1G4VO'7nQWO1G4VO'7|QWO7+(^OOQVG27WG27WO'8XQWOG27WOOQS<e,5>eOOQO-E;w-E;wO'?rQWO<wD_DpPDvHQPPPPPPK`P! P! _PPPPP!!VP!$oP!$oPP!&oP!(rP!(w!)n!*f!*f!*f!(w!+]P!(w!.Q!.TPP!.ZP!(w!(w!(w!(wP!(w!(wP!(w!(w!.y!/dP!/dJ}J}J}PPPP!/d!.y!/sPP!$oP!0^!0a!0g!1h!1t!3t!3t!5r!7t!1t!1t!9p!;_!=O!>k!@U!Am!CS!De!1t!1tP!1tP!1t!1t!Et!1tP!Ge!1t!1tP!Ie!1tP!1t!7t!7t!1t!7t!1t!Kl!Mt!Mw!7t!1t!Mz!M}!M}!M}!NR!$oP!$oP!$oP! P! PP!N]! P! PP!Ni# }! PP! PP#!^##c##k#$Z#$_#$e#$e#$mP#&s#&s#&y#'o#'{! PP! PP#(]#(l! PP! PPP#(x#)W#)d#)|#)^! P! PP! P! P! PP#*S#*S#*Y#*`#*S#*S! P! PP#*m#*v#+Q#+Q#,x#.l#.x#.x#.{#.{5a5a5a5a5a5a5a5aP5a#/O#/U#/p#1{#2R#2b#6^#6d#6j#6|#7W#8w#9R#9b#9h#9n#9x#:S#:Y#:g#:m#:s#:}#;]#;g#=u#>R#>`#>f#>n#>u#?PPPPPPPP#?V#BaP#F^#Jx#Ls#Nr$&^P$&aPPP$)_$)h$)z$/U$1d$1m$3fP!(w$4`$7r$:i$>T$>^$>c$>fPPP$>i$A`$A|P$BaPPPPPPPPPP$BvP$EU$EX$E[$Eb$Ee$Eh$Ek$En$Et$HO$HR$HU$HX$H[$H_$Hb$He$Hh$Hk$Hn$Jt$Jw$Jz#*S$KW$K^$Ka$Kd$Kh$Kl$Ko$KrQ!tPT'V!s'Wi!SOlm!P!T$T$W$y%b)U*f/gQ'i#QR,n'l(OSOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%X%_%b&U&Y&[&b&u&z&|'P'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n+z,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1P1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:gS(z$v-oQ*p&eQ*t&hQ-k(yQ-y)ZW0Z+Q0Y4Z7UR4Y0[&w!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#r]Ofgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hb#[b#Q$y'l(b)S)U*Z-t!h$bo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m$b%k!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g!W:y!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:|%n$_%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g$e%l!Q!n$O$u%n%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g'hZOY[fgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r%_%b%i%j&U&Y&[&b&u'a'}(W(Y(d(e(f(j(o(p(r(|)i)p)q*f*i*k*l+Z+n,s,z-R-T-g-m.i.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:x$^%l!Q!n$O$u%n%o%p%q%y%{&P&p&r(q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ&j!hQ&k!iQ&l!jQ&m!kQ&s!oQ)[%QQ)]%RQ)^%SQ)_%TQ)b%WQ+`&oS,R']1ZQ.W)`S/r*u4TR4n0s+yTOY[bfgilmop!O!P!Q!T!Y!Z![!_!`!c!n!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$O$T$W$`$a$e$g$h$q$r$u$y%X%_%b%i%j%n%o%p%q%y%{&P&U&Y&[&b&o&p&r&u&z&|'P']'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(q(r(|)S)U)i)p)q)s)x)y*O*P*R*V*Z*[*^*e*f*i*k*l*n*w*x+U+V+Z+h+n+o+z+},q,s,z-R-T-g-i-m-t-v.U.`.i.p.t.x.y.}/Z/[/^/b/d/g/{/}0`0e0g0m0r0w0}1O1P1Y1Z1h1r1y1|2a2h2j2m2s2v3V3_3a3f3h3k3u3{3|4R4U4W4_4c4e4h4t4v4|5[5`5d5g5t5v6R6Y6]6a6p6v6x7S7^7c7g7m7r7{8W8X8g8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:xQ'[!xQ'h#PQ)l%gU)r%m*T*WR.f)kQ,T']R5P1Z#t%s!Q!n$O$u%p%q&P&p&r(q)x)y*O*R*V*[*^*e*n*w+V+h+o+}-i-v.U.`.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2v3V3u3{3|4U4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)x%oQ+_&oQ,U']n,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7kS.q)s2sQ/O*PQ/Q*SQ/q*uS0Q*x4RQ0a+U[0o+Z.j0g4h5y7^Q2v.pS4d0e2rQ4m0sQ5Q1ZQ6T3RQ6z4PQ7O4TQ7X4_R9Y8h&jVOfgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u']'}(W(Y(b(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1Z1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fU&g!g%P%[o,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7k$nsOfgilm!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y'}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9z9{:O:P:Q:R:S:T:U:V:W:X:Y:eS$tp9xS&O!W#bS&Q!X#cQ&`!bQ*_&RQ*a&VS*d&[:fQ*h&^Q,T']Q-j(wQ/i*jQ0p+[S2f.X0qQ3]/_Q3^/`Q3g/hQ3i/kQ5P1ZU5b2R2g4lU7o5c5e5rQ8]6dS8u7p7qS9_8v8wR9i9`i{Ob!O!P!T$y%_%b)S)U)i-thxOb!O!P!T$y%_%b)S)U)i-tW/v*v/t3w6qQ/}*wW0[+Q0Y4Z7UQ3{/{Q6x3|R8g6v!h$do!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ&d!dQ&f!fQ&n!mW&x!q%X&|1PQ'S!rQ)X$}Q)Y%OQ)a%VU)d%Y'T'UQ*s&hS+s&z'PS-Y(k1sQ-u)WQ-x)ZS.a)e)fS0x+c/sQ1S+zQ1W+{S1v-_-`Q2k.bQ3s/pQ5]1xR5h2V${sOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$zsOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR3]/_V&T!Y!`*i!i$lo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!k$^o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!i$co!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&e^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR(l$fQ-[(kR5Y1sQ(S#|S({$v-oS-Z(k1sQ-l(yW/u*v/t3w6qS1w-_-`Q3v/vR5^1xQ'e#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,o'mk,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ'f#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,p'mR*g&]X/c*f/d/g3f!}aOb!O!P!T#z$v$y%_%b'}(y)S)U)i)s*f*v*w+Q+Z,s-o-t.j/b/d/g/t/{0Y0g1h2s3f3w3|4Z4h5y6a6q6v7U7^Q3`/aQ6_3bQ8Y6`R9V8Z${rOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#nfOfglmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!T9u!Y!_!`*i*l/^3h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#rfOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!X9u!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$srOfglmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#U#oh#d$P$Q$V$s%^&W&X'q't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b}:P&S&]/k3[6d:[:]:c:d:h:j:k:l:m:n:o:p:q:r:v:w:{#W#ph#d$P$Q$V$s%^&W&X'q'r't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b!P:Q&S&]/k3[6d:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{#S#qh#d$P$Q$V$s%^&W&X'q'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b{:R&S&]/k3[6d:[:]:c:d:h:k:l:m:n:o:p:q:r:v:w:{#Q#rh#d$P$Q$V$s%^&W&X'q'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9by:S&S&]/k3[6d:[:]:c:d:h:l:m:n:o:p:q:r:v:w:{#O#sh#d$P$Q$V$s%^&W&X'q'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bw:T&S&]/k3[6d:[:]:c:d:h:m:n:o:p:q:r:v:w:{!|#th#d$P$Q$V$s%^&W&X'q'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bu:U&S&]/k3[6d:[:]:c:d:h:n:o:p:q:r:v:w:{!x#vh#d$P$Q$V$s%^&W&X'q'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bq:W&S&]/k3[6d:[:]:c:d:h:p:q:r:v:w:{!v#wh#d$P$Q$V$s%^&W&X'q'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bo:X&S&]/k3[6d:[:]:c:d:h:q:r:v:w:{$]#{h#`#d$P$Q$V$s%^&S&W&X&]'q'r's't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n/k0z1i1l1}3P3[4w5V5a6^6d6e7R7e7h7s7y8j8q8{9[9b:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{${jOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$v!aOfgilmp!O!P!T!Y!Z!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ&Y![Q&Z!]R:e9{#rpOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hQ&[!^!W9x!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:f:zR$moR-f(rR$wqT(}$v-oQ/f*fS3d/d/gR6c3fQ3m/mQ3p/nQ6i3nR6l3qQ$zwQ)V${Q*q&fQ+f&qQ+i&sQ-w)YW.Z)b+j+k+lS/X*]+gW2b.W.[.].^U3W/Y/]0yU5o2c2d2eS6W3X3ZS7w5p5qS8Q6V6XQ8y7xS8}8R8SR9c9O^|O!O!P!T%_%b)iX)R$y)S)U-tQ&r!nQ*^&PQ*|&jQ+P&kQ+T&lQ+W&mQ+]&nQ+l&sQ-})[Q.Q)]Q.T)^Q.V)_Q.Y)aQ.^)bQ2S-uQ2e.WR4U0VU+a&o*u4TR4o0sQ+Y&mQ+k&sS.])b+l^0v+_+`/q/r4m4n7OS2d.W.^S4Q0R0SR5q2eS0R*x4RQ0a+UR7X4_U+d&o*u4TR4p0sQ*z&jQ+O&kQ+S&lQ+g&qQ+j&sS-{)[*|S.P)]+PS.S)^+TU.[)b+k+lQ/Y*]Q0X*{Q0q+[Q2X-|Q2Y-}Q2].QQ2_.TU2c.W.].^Q2g.XS3Z/]0yS5c2R4lQ5j2ZS5p2d2eQ6X3XS7q5e5rQ7x5qQ8R6VQ8v7pQ9O8SR9`8wQ0T*xR6|4RQ*y&jQ*}&kU-z)[*z*|U.O)]+O+PS2W-{-}S2[.P.QQ4X0ZQ5i2YQ5k2]R7T4YQ/w*vQ3t/tQ6r3wR8d6qQ*{&jS-|)[*|Q2Z-}Q4X0ZR7T4YQ+R&lU.R)^+S+TS2^.S.TR5l2_Q0]+QQ4V0YQ7V4ZR8l7UQ+[&nS.X)a+]S2R-u.YR5e2SQ0i+ZQ4f0gQ7`4hR8m7^Q.m)sQ0i+ZQ2p.jQ4f0gQ5|2sQ7`4hQ7}5yR8m7^Q0i+ZR4f0gX'O!q%X&|1PX&{!q%X&|1PW'O!q%X&|1PS+u&z'PR1U+z_|O!O!P!T%_%b)iQ%a!PS)h%_%bR.d)i$^%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ*U%yR*X%{$c%n!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gW)t%m%x*T*WQ.e)jR2{.vR.m)sR5|2sQ'W!sR,O'WQ!TOQ$TlQ$WmQ%b!P[%|!T$T$W%b)U/gQ)U$yR/g*f$b%i!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g[)n%i)p.i:`:t:xQ)p%jQ.i)qQ:`%nQ:t:aR:x:uQ!vUR'Y!vS!OO!TU%]!O%_)iQ%_!PR)i%b#rYOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hh!yY!|#U$`'a'n(d,q-R9s9|:gQ!|[b#Ub#Q$y'l(b)S)U*Z-t!h$`o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ'a!}Q'n#ZQ(d$aQ,q'oQ-R(e!W9s!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ9|9tR:g9}Q-U(gR1p-UQ1t-[R5Z1tQ,c'bQ,f'cQ,h'dW1`,c,f,h5UR5U1_Q/d*fS3c/d3fR3f/gfbO!O!P!T$y%_%b)S)U)i-tp#Wb'}(y.j/b/t/{0Y0g1h5y6a6q6v7U7^Q'}#zS(y$v-oQ.j)sW/b*f/d/g3fQ/t*vQ/{*wQ0Y+QQ0g+ZQ1h,sQ5y2sQ6q3wQ6v3|Q7U4ZR7^4hQ,t(OQ1g,rT1j,t1gS(X$Q([Q(^$VU,x(X(^,}R,}(`Q(s$mR-h(sQ-p)OR2P-pQ3n/mQ3q/nT6j3n3qQ)S$yS-r)S-tR-t)UQ4`0aR7Y4``0t+^+_+`+a+d/q/r7OR4q0tQ8i6zR9Z8iQ4S0TR6}4SQ3x/wQ6n3tT6s3x6nQ3}/|Q6t3zU6y3}6t8eR8e6uQ4[0]Q7Q4VT7W4[7QhzOb!O!P!T$y%_%b)S)U)i-tQ$|xW%Zz$|%f)v$b%f!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR)v%nS4i0i0nS7]4f4gT7b4i7]W&z!q%X&|1PS+r&z+zR+z'PQ1Q+wR4z1QU1[,S,T,UR5R1[S3S/Q7OR6U3SQ2t.mQ5x2pT5}2t5xQ.z)zR3O.z^_O!O!P!T%_%b)iY#Xb$y)S)U-t$l#_fgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!h$io!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'j#Q'lQ-P(bR/V*Z&v!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!{Y[#U#Z9s9tW&{!q%X&|1P['`!|!}'n'o9|9}S(c$`$aS+t&z'PU,X'a,q:gS-Q(d(eQ1T+zR1n-RS%t!Q&oQ&q!nQ(V$OQ(w$uS)w%o.pQ)z%pQ)}%qS*]&P&rQ+e&pQ,S']Q-d(qQ.l)sU.w)x)y2vS/O*O*PQ/P*RQ/T*VQ/W*[Q/]*^Q/`*eQ/l*nQ/|*wS0S*x4RQ0a+UQ0c+VQ0y+hQ0{+oQ1X+}Q1{-iQ2T-vQ2`.UQ2i.`Q2z.tQ2|.xQ2}.yQ3X/ZQ3Y/[S3z/{/}Q4^0`Q4l0rQ4s0wQ4x1OQ4}1YQ5O1ZQ5_1yQ5n2aQ5r2hQ5u2jQ5w2mQ5{2sQ6V3VQ6o3uQ6u3{Q6w3|Q7P4UQ7X4_Q7[4eQ7d4tQ7n5`Q7p5dQ7|5vQ8P6RQ8S6YQ8c6pS8f6v6xQ8o7cQ8w7rR9X8g$^%m!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)j%nQ*T%yR*W%{$y%h!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x'pWOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$x%g!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x_&y!q%X&z&|'P+z1PR,V']$zrOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!j$]o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ,T']R5P1Z_}O!O!P!T%_%b)i^|O!O!P!T%_%b)iQ#YbX)R$y)S)U-tbhO!O!T3_6]8W8X9U9hS#`f9uQ#dgQ$PiQ$QlQ$VmQ$spW%^!P%_%b)iU&S!Y!`*iQ&W!ZQ&X![Q&]!_Q'q#eQ'r#oS's#p:QQ't#qQ'u#rQ'v#sQ'w#tQ'x#uQ'y#vQ'z#wQ'{#xQ'|#yQ(O#zQ(U#}Q([$TQ(`$WQ*b&YQ*c&[Q,r'}Q,w(WQ,y(YQ-n(|Q/k*lQ0z+nQ1i,sQ1l,zQ1}-mQ3P.}Q3[/^Q4w0}Q5V1hQ5a1|Q6^3aQ6d3hQ6e3kQ7R4WQ7e4vQ7h4|Q7s5gQ7y5tQ8j7SQ8q7gQ8{7{Q9[8kQ9b8|Q:[9wQ:]9xQ:c9zQ:d9{Q:h:OQ:i:PQ:j:RQ:k:SQ:l:TQ:m:UQ:n:VQ:o:WQ:p:XQ:q:YQ:r:ZQ:v:eQ:w:fR:{9v^tO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6[3_Q8V6]Q9R8WQ9T8XQ9g9UR9m9hQ&V!YQ&^!`R/h*iQ$joQ&a!cQ&t!pU(g$e$g(jS(n$h0eQ(u$qQ(v$rQ*`&UQ*m&bQ+p&uQ-S(fS-b(o4cQ-c(pQ-e(rW/a*f/d/g3fQ/j*kW0f+Z0g4h7^Q1o-TQ1z-gQ3b/bQ4k0mQ5X1rQ7l5[Q8Z6aR8t7m!h$_o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mR-P(b'qXOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$zqOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$fo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&d^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!zY[$`$a9s9t['_!|!}(d(e9|9}W)o%i%j:`:aU,W'a-R:gW.h)p)q:t:uT2o.i:xQ(i$eQ(m$gR-W(jV(h$e$g(jR-^(kR-](k$znOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$ko!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'g#O'pj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ,m'jQ.u)uR8_6f`,b'b'c'd,c,f,h1_5UQ1e,lX3l/m/n3n3qj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ7j5TR8s7k^uO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6Z3_Q8U6]Q9Q8WQ9S8XQ9f9UR9l9hR(Q#zR(P#zQ$SlR(]$TR$ooR$noR)Q$vR)P$vQ)O$vR2O-ohwOb!O!P!T$y%_%b)S)U)i-t$l!lz!Q!n$O$u$|%f%n%o%p%q%y%{&P&o&p&r'](q)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR${xR0b+UR0W*xR0U*xR6{4PR/y*vR/x*vR0P*wR0O*wR0_+QR0^+Q%XyObxz!O!P!Q!T!n$O$u$y$|%_%b%f%n%o%p%q%y%{&P&o&p&r'](q)S)U)i)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-t-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR0k+ZR0j+ZQ'R!qQ)c%XQ+w&|R4y1PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",nodeNames:"⚠ | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",maxTerm:359,nodeProps:[["group",-42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],["openedBy",9,"[",38,"{",47,"("],["closedBy",12,"]",39,"}",45,")"]],propSources:[c],skippedNodes:[0,6,7,240],repeatNodeCount:32,tokenData:"$%h_R!XOX$nXY5gYZ6iZ]$n]^5g^p$npq5gqr7Xrs9cst:Rtu;Tuv>vvwAQwxCbxy!+Tyz!,Vz{!-X{|!/_|}!0g}!O!1i!O!P!3v!P!Q!8[!Q!R!Bw!R![!Dr![!]#+q!]!^#-{!^!_#.}!_!`#1b!`!a#3o!a!b#6S!b!c#7U!c!}#8W!}#O#:T#O#P#;V#P#Q#Cb#Q#R#Dd#R#S#8W#S#T$n#T#U#8W#U#V#El#V#f#8W#f#g#Ic#g#o#8W#o#p$ S#p#q$!U#q#r$$f#r${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nU$u]'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU%uV'_Q'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&aV'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&yVOz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'`S'cVOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S'{UOz'`{!P'`!P!Q(_!Q;'S'`;'S;=`*m<%lO'`S(bUOz(t{!P(t!P!Q(_!Q;'S(t;'S;=`*a<%lO(tS(wVOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^S)eV'PS'OSOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^S)}UOz(tz{)z{!P(t!Q;'S(t;'S;=`*a<%lO(tS*dP;=`<%l(tS*jP;=`<%l)^S*pP;=`<%l'`S*vP;=`<%l&[S+OO'PSU+T]'_QOY+|YZ-xZr+|rs'`sz+|z{+O{!P+|!P!Q4y!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|U,R]'_QOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU-P]'_QOY+|YZ-xZr+|rs'`sz+|z{.d{!P+|!P!Q/Z!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|U-}V'_QOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[Q.iV'_QOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.dQ/TO'_QQ/WP;=`<%l.dU/`]'_QOY0XYZ3uZr0Xrs(tsz0Xz{.d{!P0X!P!Q/Z!Q#O0X#O#P(t#P;'S0X;'S;=`4a<%lO0XU0^]'_QOY1VYZ2XZr1Vrs)^sz1Vz{2w{!P1V!P!Q/Z!Q#O1V#O#P)^#P;'S1V;'S;=`4g<%lO1VU1`]'_Q'PS'OSOY1VYZ2XZr1Vrs)^sz1Vz{2w{!P1V!P!Q/Z!Q#O1V#O#P)^#P;'S1V;'S;=`4g<%lO1VU2bV'_Q'PS'OSOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^U2|]'_QOY0XYZ3uZr0Xrs(tsz0Xz{2w{!P0X!P!Q.d!Q#O0X#O#P(t#P;'S0X;'S;=`4a<%lO0XU3zV'_QOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^U4dP;=`<%l0XU4jP;=`<%l1VU4pP;=`<%l+|U4vP;=`<%l$nU5QV'_Q'PSOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.d_5p]'_Q&|X'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_6rV'_Q&|X'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_7b_ZX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`8a!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_8j]#PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_9lV']Q'OS'^XOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_:[]'QX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_;^i'_Q'vW'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!c$n!c!}<{!}#O$n#O#P&[#P#R$n#R#S<{#S#T$n#T#o<{#o${$n${$|<{$|4w$n4w5b<{5b5i$n5i6S<{6S;'S$n;'S;=`4s<%lO$n_=Uj'_Q_X'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![<{![!c$n!c!}<{!}#O$n#O#P&[#P#R$n#R#S<{#S#T$n#T#o<{#o${$n${$|<{$|4w$n4w5b<{5b5i$n5i6S<{6S;'S$n;'S;=`4s<%lO$n_?P_(TP'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_@X]#OX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_AZa!qX'_Q'OSOY$nYZ%nZr$nrs&[sv$nvwB`wz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Bi]'}X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Cik'_Q'OSOYE^YZGfZrE^rsHvswE^wxFdxzE^z{Ih{!PE^!P!QKl!Q!cE^!c!}Lp!}#OE^#O#P!!l#P#RE^#R#SLp#S#TE^#T#oLp#o${E^${$|Lp$|4wE^4w5bLp5b5iE^5i6SLp6S;'SE^;'S;=`!*}<%lOE^_Ee_'_Q'OSOY$nYZ%nZr$nrs&[sw$nwxFdxz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Fm]'_Q'OSsXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_GmX'_Q'OSOw&[wxHYxz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]HaV'OSsXOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]H{X'OSOw&[wxHYxz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_Im_'_QOY+|YZ-xZr+|rs'`sw+|wxJlxz+|z{+O{!P+|!P!Q4y!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_Js]'_QsXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Kq_'_QOY+|YZ-xZr+|rs'`sw+|wxJlxz+|z{.d{!P+|!P!Q/Z!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_Lyl'_Q'OS'ZXOY$nYZ%nZr$nrs&[sw$nwxFdxz$nz{+O{!P$n!P!Q,z!Q![Nq![!c$n!c!}Nq!}#O$n#O#P&[#P#R$n#R#SNq#S#T$n#T#oNq#o${$n${$|Nq$|4w$n4w5bNq5b5i$n5i6SNq6S;'S$n;'S;=`4s<%lO$n_Nzj'_Q'OS'ZXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![Nq![!c$n!c!}Nq!}#O$n#O#P&[#P#R$n#R#SNq#S#T$n#T#oNq#o${$n${$|Nq$|4w$n4w5bNq5b5i$n5i6SNq6S;'S$n;'S;=`4s<%lO$n]!!qZ'OSOzHvz{!#d{!PHv!P!Q!$n!Q#iHv#i#j!%Z#j#lHv#l#m!'V#m;'SHv;'S;=`!*w<%lOHv]!#gXOw'`wx!$Sxz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'`]!$XVsXOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]!$qWOw'`wx!$Sxz'`{!P'`!P!Q(_!Q;'S'`;'S;=`*m<%lO'`]!%`^'OSOz&[z{&v{!P&[!P!Q'x!Q![!&[![!c&[!c!i!&[!i#T&[#T#Z!&[#Z#o&[#o#p!({#p;'S&[;'S;=`*s<%lO&[]!&a['OSOz&[z{&v{!P&[!P!Q'x!Q![!'V![!c&[!c!i!'V!i#T&[#T#Z!'V#Z;'S&[;'S;=`*s<%lO&[]!'[['OSOz&[z{&v{!P&[!P!Q'x!Q![!(Q![!c&[!c!i!(Q!i#T&[#T#Z!(Q#Z;'S&[;'S;=`*s<%lO&[]!(V['OSOz&[z{&v{!P&[!P!Q'x!Q![Hv![!c&[!c!iHv!i#T&[#T#ZHv#Z;'S&[;'S;=`*s<%lO&[]!)Q['OSOz&[z{&v{!P&[!P!Q'x!Q![!)v![!c&[!c!i!)v!i#T&[#T#Z!)v#Z;'S&[;'S;=`*s<%lO&[]!){^'OSOz&[z{&v{!P&[!P!Q'x!Q![!)v![!c&[!c!i!)v!i#T&[#T#Z!)v#Z#q&[#q#rHv#r;'S&[;'S;=`*s<%lO&[]!*zP;=`<%lHv_!+QP;=`<%lE^_!+^]}X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!,`]!PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!-`_(QX'_QOY+|YZ-xZr+|rs'`sz+|z{+O{!P+|!P!Q4y!Q!_+|!_!`!._!`#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_!.f]#OX'_QOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!/h_(PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!0p]!eX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!1r`'gX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`!a!2t!a#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!2}]#QX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!4P^(OX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!O$n!O!P!4{!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!5U`!lX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!O$n!O!P!6W!P!Q,z!Q!_$n!_!`!7Y!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!6a]!tX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nV!7c]'qP'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!8c_'_Q'xXOY+|YZ-xZr+|rs'`sz+|z{!9b{!P+|!P!Q!:O!Q!_+|!_!`!._!`#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_!9iV&}]'_QOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.d_!:V]'_QUXOY!;OYZ3uZr!;Ors!>jsz!;Oz{!Aq{!P!;O!P!Q!:O!Q#O!;O#O#P!>j#P;'S!;O;'S;=`!Bk<%lO!;O_!;V]'_QUXOY!jYZ(tZz!>jz{!=x{!P!>j!P!Q!?|!Q;'S!>j;'S;=`!@e<%lO!>j]!>oXUXOY!=SYZ)^Zz!=Sz{!=x{!P!=S!P!Q!?[!Q;'S!=S;'S;=`!@k<%lO!=S]!?aXUXOY!>jYZ(tZz!>jz{!?|{!P!>j!P!Q!?[!Q;'S!>j;'S;=`!@e<%lO!>jX!@RSUXOY!?|Z;'S!?|;'S;=`!@_<%lO!?|X!@bP;=`<%l!?|]!@hP;=`<%l!>j]!@nP;=`<%l!=S_!@x]'_QUXOY!;OYZ3uZr!;Ors!>jsz!;Oz{!@q{!P!;O!P!Q!Aq!Q#O!;O#O#P!>j#P;'S!;O;'S;=`!Bk<%lO!;OZ!AxX'_QUXOY!AqYZ/OZr!Aqrs!?|s#O!Aq#O#P!?|#P;'S!Aq;'S;=`!Be<%lO!AqZ!BhP;=`<%l!Aq_!BnP;=`<%l!;O_!BtP;=`<%l!o![!c&[!c!i#>o!i#T&[#T#Z#>o#Z#o&[#o#p#A`#p;'S&[;'S;=`*s<%lO&[U#>t['OSOz&[z{&v{!P&[!P!Q'x!Q![#?j![!c&[!c!i#?j!i#T&[#T#Z#?j#Z;'S&[;'S;=`*s<%lO&[U#?o['OSOz&[z{&v{!P&[!P!Q'x!Q![#@e![!c&[!c!i#@e!i#T&[#T#Z#@e#Z;'S&[;'S;=`*s<%lO&[U#@j['OSOz&[z{&v{!P&[!P!Q'x!Q![#;}![!c&[!c!i#;}!i#T&[#T#Z#;}#Z;'S&[;'S;=`*s<%lO&[U#Ae['OSOz&[z{&v{!P&[!P!Q'x!Q![#BZ![!c&[!c!i#BZ!i#T&[#T#Z#BZ#Z;'S&[;'S;=`*s<%lO&[U#B`^'OSOz&[z{&v{!P&[!P!Q'x!Q![#BZ![!c&[!c!i#BZ!i#T&[#T#Z#BZ#Z#q&[#q#r#;}#r;'S&[;'S;=`*s<%lO&[U#C_P;=`<%l#;}_#Ck]XX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_#Dm_'{X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_#Ewl'_Q'OS!yW'TPOY$nYZ%nZr$nrs#Gosw$nwx#H]xz$nz{+O{!P$n!P!Q,z!Q![#8W![!c$n!c!}#8W!}#O$n#O#P&[#P#R$n#R#S#8W#S#T$n#T#o#8W#o${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$n]#GvV'OS'^XOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_#Hd_'_Q'OSOYE^YZGfZrE^rsHvswE^wxFdxzE^z{Ih{!PE^!P!QKl!Q#OE^#O#P!!l#P;'SE^;'S;=`!*}<%lOE^_#Ink'_Q'OS!yW'TPOY$nYZ%nZr$nrs&[st#Kctz$nz{+O{!P$n!P!Q,z!Q![#8W![!c$n!c!}#8W!}#O$n#O#P&[#P#R$n#R#S#8W#S#T$n#T#o#8W#o${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nV#Kji'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!c$n!c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$nV#Mbj'_Q'OS'TPOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![#MX![!c$n!c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$n_$ ]]wX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$!_a'rX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P#p$n#p#q$#d#q;'S$n;'S;=`4s<%lO$n_$#m]'|X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$$o]vX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n",tokenizers:[l,u,s,0,1,2,3],topRules:{SourceFile:[0,8]},specialized:[{term:281,get:e=>d[e]||-1}],tokenPrec:15596});var h=n(72107);const p=h.qp.define({name:"rust",parser:f.configure({props:[h.uj.add({IfExpression:(0,h.tC)({except:/^\s*({|else\b)/}),"String BlockComment":()=>null,AttributeItem:e=>e.continue(),"Statement MatchArm":(0,h.tC)()}),h.x0.add((e=>/(Block|edTokens|List)$/.test(e.name)?h.Dv:"BlockComment"==e.name?e=>({from:e.from+2,to:e.to-2}):void 0))]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});function m(){return new h.ri(p)}},46764:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Cassandra:()=>G,MSSQL:()=>Y,MariaSQL:()=>V,MySQL:()=>B,PLSQL:()=>H,PostgreSQL:()=>F,SQLDialect:()=>D,SQLite:()=>Z,StandardSQL:()=>L,keywordCompletion:()=>I,keywordCompletionSource:()=>M,schemaCompletion:()=>W,schemaCompletionSource:()=>z,sql:()=>N});var r=n(72107),i=n(7778),o=n(64963),a=n(71170);const s=20,l=21;function u(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function c(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r)return void e.advance();r=n&&!r&&92==e.next,e.advance()}}function d(e,t){for(;95==e.next||u(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function f(e,t){for(;48==e.next||49==e.next;)e.advance();t&&e.next==t&&e.advance()}function h(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),43!=e.next&&45!=e.next||e.advance();e.next>=48&&e.next<=57;)e.advance()}function p(e){for(;!(e.next<0||10==e.next);)e.advance()}function m(e,t){for(let n=0;n!=&|~^/",specialVar:"?",identifierQuotes:'"',words:v(y,O)};function w(e){return new o.Jq((t=>{var n;let{next:r}=t;if(t.advance(),m(r,g)){for(;m(t.next,g);)t.advance();t.acceptToken(36)}else if(36==r&&36==t.next&&e.doubleDollarQuotedStrings)!function(e){for(;;){if(e.next<0||e.peek(1)<0)return;if(36==e.next&&36==e.peek(1))return void e.advance(2);e.advance()}}(t),t.acceptToken(3);else if(39==r||34==r&&e.doubleQuotedStrings)c(t,r,e.backslashEscapes),t.acceptToken(3);else if(35==r&&e.hashComments||47==r&&47==t.next&&e.slashComments)p(t),t.acceptToken(1);else if(45!=r||45!=t.next||e.spaceAfterDashes&&32!=t.peek(1))if(47==r&&42==t.next){t.advance();for(let e=1;;){let n=t.next;if(t.next<0)break;if(t.advance(),42==n&&47==t.next){if(e--,t.advance(),!e)break}else 47==n&&42==t.next&&(e++,t.advance())}t.acceptToken(2)}else if(101!=r&&69!=r||39!=t.next)if(110!=r&&78!=r||39!=t.next||!e.charSetCasts)if(95==r&&e.charSetCasts)for(let n=0;;n++){if(39==t.next&&n>1){t.advance(),c(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!u(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(113==r||81==r)&&39==t.next&&t.peek(1)>0&&!m(t.peek(1),g)){let e=t.peek(1);t.advance(2),function(e,t){let n="[{<(".indexOf(String.fromCharCode(t)),r=n<0?t:"]}>)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==r&&39==e.peek(1))return void e.advance(2);e.advance()}}(t,e),t.acceptToken(3)}else if(40==r)t.acceptToken(7);else if(41==r)t.acceptToken(8);else if(123==r)t.acceptToken(9);else if(125==r)t.acceptToken(10);else if(91==r)t.acceptToken(11);else if(93==r)t.acceptToken(12);else if(59==r)t.acceptToken(13);else if(e.unquotedBitLiterals&&48==r&&98==t.next)t.advance(),f(t),t.acceptToken(22);else if(98!=r&&66!=r||39!=t.next&&34!=t.next){if(48==r&&(120==t.next||88==t.next)||(120==r||88==r)&&39==t.next){let e=39==t.next;for(t.advance();(i=t.next)>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==r&&t.next>=48&&t.next<=57)h(t,!0),t.acceptToken(4);else if(46==r)t.acceptToken(14);else if(r>=48&&r<=57)h(t,!1),t.acceptToken(4);else if(m(r,e.operatorChars)){for(;m(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(m(r,e.specialVar))t.next==r&&t.advance(),function(e){if(39==e.next||34==e.next||96==e.next){let t=e.next;e.advance(),c(e,t,!1)}else d(e)}(t),t.acceptToken(17);else if(m(r,e.identifierQuotes))c(t,r,!1),t.acceptToken(19);else if(58==r||44==r)t.acceptToken(16);else if(u(r)){let i=d(t,String.fromCharCode(r));t.acceptToken(46==t.next?18:null!==(n=e.words[i.toLowerCase()])&&void 0!==n?n:18)}}else{const n=t.next;t.advance(),e.treatBitsAsBytes?(c(t,n,e.backslashEscapes),t.acceptToken(23)):(f(t,n),t.acceptToken(22))}else t.advance(),c(t,39,e.backslashEscapes),t.acceptToken(3);else t.advance(),c(t,39,!0);else p(t),t.acceptToken(1);var i}))}const k=w(b),x=o.WQ.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,k],topRules:{Script:[0,25]},tokenPrec:0});function _(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function S(e,t){let n=e.sliceString(t.from,t.to),r=/^([`'"])(.*)\1$/.exec(n);return r?r[2]:n}function P(e){return e&&("Identifier"==e.name||"QuotedIdentifier"==e.name)}function E(e,t){if("CompositeIdentifier"==t.name){let n=[];for(let r=t.firstChild;r;r=r.nextSibling)P(r)&&n.push(S(e,r));return n}return[S(e,t)]}function C(e,t){for(let n=[];;){if(!t||"."!=t.name)return n;let r=_(t);if(!P(r))return n;n.unshift(S(e,r)),t=_(r)}}const T=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" ")),$=/^\w*$/,Q=/^[`'"]?\w*[`'"]?$/;class R{constructor(){this.list=[],this.children=void 0}child(e,t){let n=this.children||(this.children=Object.create(null));return n[e]||(e&&this.list.push(A(e,"type",t)),n[e]=new R)}addCompletions(e){for(let t of e){let e=this.list.findIndex((e=>e.label==t.label));e>-1?this.list[e]=t:this.list.push(t)}}}function A(e,t,n){return/[^\w\xb5-\uffff]/.test(e)?{label:e,type:t,apply:n+e+n}:{label:e,type:t}}let j=x.configure({props:[r.uj.add({Statement:(0,r.tC)()}),r.x0.add({Statement:e=>({from:e.firstChild.to,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,i.Gv)({Keyword:i.pJ.keyword,Type:i.pJ.typeName,Builtin:i.pJ.standard(i.pJ.name),Bits:i.pJ.number,Bytes:i.pJ.string,Bool:i.pJ.bool,Null:i.pJ.null,Number:i.pJ.number,String:i.pJ.string,Identifier:i.pJ.name,QuotedIdentifier:i.pJ.special(i.pJ.string),SpecialVar:i.pJ.special(i.pJ.name),LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Operator:i.pJ.operator,"Semi Punctuation":i.pJ.punctuation,"( )":i.pJ.paren,"{ }":i.pJ.brace,"[ ]":i.pJ.squareBracket})]});class D{constructor(e,t,n){this.dialect=e,this.language=t,this.spec=n}get extension(){return this.language.extension}static define(e){let t=function(e,t,n,r){let i={};for(let t in b)i[t]=(e.hasOwnProperty(t)?e:b)[t];return t&&(i.words=v(t,n||"",r)),i}(e,e.keywords,e.types,e.builtin),n=r.qp.define({name:"sql",parser:j.configure({tokenizers:[{from:k,to:w(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new D(t,n,e)}}function M(e,t=!1){return function(e,t){let n=Object.keys(e).map((n=>({label:t?n.toUpperCase():n,type:e[n]==l?"type":e[n]==s?"keyword":"variable",boost:-1})));return(0,a.eC)(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],(0,a.Mb)(n))}(e.dialect.words,t)}function I(e,t=!1){return e.language.data.of({autocomplete:M(e,t)})}function z(e){return e.schema?function(e,t,n,i,o,a){var s;let l=new R,u=(null===(s=null==a?void 0:a.spec.identifierQuotes)||void 0===s?void 0:s[0])||'"',c=l.child(o||"",u);for(let t in e){let n=t.replace(/\\?\./g,(e=>"."==e?"\0":e)).split("\0"),r=1==n.length?c:l;for(let e of n)r=r.child(e.replace(/\\\./g,"."),u);for(let n of e[t])n&&r.list.push("string"==typeof n?A(n,"property",u):n)}return t&&c.addCompletions(t),n&&l.addCompletions(n),l.addCompletions(c.list),i&&l.addCompletions(c.child(i,u).list),e=>{let{parents:t,from:n,quoted:o,empty:a,aliases:s}=function(e,t){let n=(0,r.qz)(e).resolveInner(t,-1),i=function(e,t){let n;for(let e=t;!n;e=e.parent){if(!e)return null;"Statement"==e.name&&(n=e)}let r=null;for(let t=n.firstChild,i=!1,o=null;t;t=t.nextSibling){let n="Keyword"==t.name?e.sliceString(t.from,t.to).toLowerCase():null,a=null;if(i)if("as"==n&&o&&P(t.nextSibling))a=S(e,t.nextSibling);else{if(n&&T.has(n))break;o&&P(t)&&(a=S(e,t))}else i="from"==n;a&&(r||(r=Object.create(null)),r[a]=E(e,o)),o=/Identifier$/.test(t.name)?t:null}return r}(e.doc,n);return"Identifier"==n.name||"QuotedIdentifier"==n.name||"Keyword"==n.name?{from:n.from,quoted:"QuotedIdentifier"==n.name?e.doc.sliceString(n.from,n.from+1):null,parents:C(e.doc,_(n)),aliases:i}:"."==n.name?{from:t,quoted:null,parents:C(e.doc,n),aliases:i}:{from:t,quoted:null,parents:[],empty:!0,aliases:i}}(e.state,e.pos);if(a&&!e.explicit)return null;s&&1==t.length&&(t=s[t[0]]||t);let d=l;for(let e of t){for(;!d.children||!d.children[e];)if(d==l)d=c;else{if(d!=c||!i)return null;d=d.child(i,u)}d=d.child(e,u)}let f=o&&e.state.sliceDoc(e.pos,e.pos+1)==o,h=d.list;return d==l&&s&&(h=h.concat(Object.keys(s).map((e=>({label:e,type:"constant"}))))),{from:n,to:f?e.pos+1:void 0,options:(p=o,m=h,p?m.map((e=>Object.assign(Object.assign({},e),{label:p+e.label+p,apply:void 0}))):m),validFor:o?Q:$};var p,m}}(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||L):()=>null}function W(e){return e.schema?(e.dialect||L).language.data.of({autocomplete:z(e)}):[]}function N(e={}){let t=e.dialect||L;return new r.ri(t.language,[W(e),I(t,!!e.upperCaseKeywords)])}const L=D.define({}),F=D.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:y+"a abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom c cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion g generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull k key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower m mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner p parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time t table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:O+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),U="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",X=O+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",q="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",B=D.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:y+"group_concat "+U,types:X,builtin:q}),V=D.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:y+"always generated groupby_concat hard persistent shutdown soft virtual "+U,types:X,builtin:q}),Y=D.define({keywords:y+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:O+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"}),Z=D.define({keywords:y+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:O+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),G=D.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:O+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),H=D.define({keywords:y+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:O+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0})},967:(e,t,n)=>{"use strict";n.r(t),n.d(t,{wast:()=>u,wastLanguage:()=>l});var r=n(72107),i=n(7778),o=n(64963);const a={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},s=o.WQ.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"/Q~R^XY}YZ}]^}pq}rs!Stu!qxy&Vyz'S{|'X}!O'X!Q!R'b!R![)_!]!^,{#T#o-^~!SO_~~!VTOr!Srs!fs#O!S#O#P!k#P~!S~!kOZ~~!nPO~!S~!tiqr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~$hiV~qr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~&[PT~!]!^&_~&bRO!]&_!]!^&k!^~&_~&nTOy&_yz&}z!]&_!]!^&k!^~&_~'SOQ~~'XOS~~'[Q!Q!R'b!R![)_~'gUY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j#l#m)y~(ORY~!Q![(X!g!h(j#X#Y(j~(^SY~!Q![(X!g!h(j#R#S)X#X#Y(j~(mR{|(v}!O(v!Q![(|~(yP!Q![(|~)RQY~!Q![(|#R#S(v~)[P!Q![(X~)dTY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j~)vP!Q![)_~)|R!Q![*V!c!i*V#T#Z*V~*[VY~!O!P*q!Q![*V!c!i*V!r!s+n#R#S)y#T#Z*V#d#e+n~*vTY~!Q![+V!c!i+V!r!s+n#T#Z+V#d#e+n~+[UY~!Q![+V!c!i+V!r!s+n#R#S,o#T#Z+V#d#e+n~+qT{|,Q}!O,Q!Q![,^!c!i,^#T#Z,^~,TR!Q![,^!c!i,^#T#Z,^~,cSY~!Q![,^!c!i,^#R#S,Q#T#Z,^~,rR!Q![+V!c!i+V#T#Z+V~-OP!]!^-R~-WQP~OY-RZ~-R~-ciX~qr-^st-^tu-^uv-^vw-^wx-^z{-^{|-^}!O-^!O!P-^!P!Q-^!Q![-^![!]-^!^!_-^!_!`-^!`!a-^!a!b-^!b!c-^!c!}-^#Q#R-^#R#S-^#S#T-^#T#o-^#p#q-^#r#s-^",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:e=>a[e]||-1}],tokenPrec:0}),l=r.qp.define({name:"wast",parser:s.configure({props:[r.uj.add({App:(0,r.vw)({closing:")",align:!1})}),r.x0.add({App:r.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,i.Gv)({Keyword:i.pJ.keyword,Type:i.pJ.typeName,Number:i.pJ.number,String:i.pJ.string,Identifier:i.pJ.variableName,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,"( )":i.pJ.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function u(){return new r.ri(l)}},47152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{completeFromSchema:()=>E,xml:()=>T,xmlLanguage:()=>C});var r=n(64963),i=n(7778);function o(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let a=null,s=null,l=0;function u(e,t){let n=e.pos+t;if(s==e&&l==n)return a;for(;9==(r=e.peek(t))||10==r||13==r||32==r;)t++;var r;let i="";for(;;){let n=e.peek(t);if(!o(n))break;i+=String.fromCharCode(n),t++}return s=e,l=n,a=i||null}function c(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t1==t?new c(u(r,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 1==i||13==i?new c(u(r,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),f=new r.Jq(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let n=u(e,0);if(!n)return e.acceptToken(5);if(t.context&&n==t.context.name)return e.acceptToken(2);for(let r=t.context;r;r=r.parent)if(r.name==n)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{contextual:!0});function h(e,t){return new r.Jq((n=>{for(let r=0,i=0;;i++){if(n.next<0){i&&n.acceptToken(e);break}if(n.next==t.charCodeAt(r)){if(r++,r==t.length){i>=t.length&&n.acceptToken(e,1-t.length);break}}else r=n.next==t.charCodeAt(0)?1:0;n.advance()}}))}const p=h(35,"--\x3e"),m=h(36,"?>"),g=h(37,"]]>"),v=(0,i.Gv)({Text:i.pJ.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":i.pJ.angleBracket,TagName:i.pJ.tagName,"MismatchedCloseTag/Tagname":[i.pJ.tagName,i.pJ.invalid],AttributeName:i.pJ.attributeName,AttributeValue:i.pJ.attributeValue,Is:i.pJ.definitionOperator,"EntityReference CharacterReference":i.pJ.character,Comment:i.pJ.blockComment,ProcessingInst:i.pJ.processingInstruction,DoctypeDecl:i.pJ.documentMeta,Cdata:i.pJ.special(i.pJ.string)}),O=r.WQ.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<`#X;'S%y;'S;=`&_<%lO%yX>eV{WOr%ysv%yw#T%y#T#U>z#U;'S%y;'S;=`&_<%lO%yX?PV{WOr%ysv%yw#h%y#h#i?f#i;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#T%y#T#U",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const _=/^[:\-\.\w\u00b7-\uffff]*$/;function S(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function P(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function E(e,t){let n=[],r=[],i=Object.create(null);for(let e of t){let t=S(e);n.push(t),e.global&&r.push(t),e.values&&(i[e.name]=e.values.map(P))}let o=[],a=[],s=Object.create(null);for(let t of e){let e=r,l=i;t.attributes&&(e=e.concat(t.attributes.map((e=>"string"==typeof e?n.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(l==i&&(l=Object.create(l)),l[e.name]=e.values.map(P)),S(e))))));let u=new x(t,e,l);s[u.name]=u,o.push(u),t.top&&a.push(u)}a.length||(a=o);for(let t=0;t{var t;let{doc:n}=e.state,l=function(e,t){var n;let r=(0,y.qz)(e).resolveInner(t,-1),i=null;for(let e=r;!i&&e.parent;e=e.parent)"OpenTag"!=e.name&&"CloseTag"!=e.name&&"SelfClosingTag"!=e.name&&"MismatchedCloseTag"!=e.name||(i=e);if(i&&(i.to>t||i.lastChild.type.isError)){let e=i.parent;if("TagName"==r.name)return"CloseTag"==i.name||"MismatchedCloseTag"==i.name?{type:"closeTag",from:r.from,context:e}:{type:"openTag",from:r.from,context:k(e)};if("AttributeName"==r.name)return{type:"attrName",from:r.from,context:i};if("AttributeValue"==r.name)return{type:"attrValue",from:r.from,context:i};let n=r==i||"Attribute"==r.name?r.childBefore(t):r;return"StartTag"==(null==n?void 0:n.name)?{type:"openTag",from:t,context:k(e)}:"StartCloseTag"==(null==n?void 0:n.name)&&n.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null==n?void 0:n.name)?{type:"attrValue",from:t,context:i}:n?{type:"attrName",from:t,context:i}:null}if("StartCloseTag"==r.name)return{type:"closeTag",from:t,context:r.parent};for(;r.parent&&r.to==t&&!(null===(n=r.lastChild)||void 0===n?void 0:n.type.isError);)r=r.parent;return"Element"==r.name||"Text"==r.name||"Document"==r.name?{type:"tag",from:t,context:"Element"==r.name?r:k(r)}:null}(e.state,e.pos);if(!l||"tag"==l.type&&!e.explicit)return null;let{type:u,from:c,context:d}=l;if("openTag"==u){let e=a,t=w(n,d);if(t){let n=s[t];e=(null==n?void 0:n.children)||o}return{from:c,options:e.map((e=>e.completion)),validFor:_}}if("closeTag"==u){let r=w(n,d);return r?{from:c,to:e.pos+(">"==n.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=s[r])||void 0===t?void 0:t.closeNameCompletion)||{label:r+">",type:"type"}],validFor:_}:null}if("attrName"==u){let e=s[b(n,d)];return{from:c,options:(null==e?void 0:e.attrs)||r,validFor:_}}if("attrValue"==u){let t=function(e,t,n){let r=t&&t.getChildren("Attribute").find((e=>e.from<=n&&e.to>=n)),i=r&&r.getChild("AttributeName");return i?e.sliceString(i.from,i.to):""}(n,d,c);if(!t)return null;let r=s[b(n,d)],o=((null==r?void 0:r.attrValues)||i)[t];return o&&o.length?{from:c,to:e.pos+('"'==n.sliceString(e.pos,e.pos+1)?1:0),options:o,validFor:/^"[^"]*"?$/}:null}if("tag"==u){let t=w(n,d),r=s[t],i=[],l=d&&d.lastChild;!t||l&&"CloseTag"==l.name&&b(n,l)==t||i.push(r?r.closeCompletion:{label:"",type:"type",boost:2});let u=i.concat(((null==r?void 0:r.children)||(d?o:a)).map((e=>e.openCompletion)));if(d&&(null==r?void 0:r.text.length)){let t=d.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(u=u.concat(r.text))}return{from:c,options:u,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const C=y.qp.define({name:"xml",parser:O.configure({props:[y.uj.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),y.x0.add({Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),y.a0.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function T(e={}){return new y.ri(C,C.data.of({autocomplete:E(e.elements||[],e.attributes||[])}))}},72107:(e,t,n)=>{"use strict";n.d(t,{Be:()=>O,Dv:()=>V,Gn:()=>R,K0:()=>Q,KC:()=>d,Qf:()=>ge,R_:()=>xe,SQ:()=>f,SS:()=>$,Um:()=>Me,a0:()=>Ae,c:()=>C,c6:()=>P,e7:()=>oe,il:()=>Fe,kU:()=>c,mi:()=>pe,n$:()=>Re,nF:()=>be,nY:()=>X,pp:()=>u,qp:()=>p,qz:()=>m,ri:()=>S,rs:()=>q,tC:()=>F,uj:()=>A,vw:()=>W,x0:()=>B,y1:()=>T,ze:()=>L});var r,i=n(54163),o=n(30638),a=n(87283),s=n(7778),l=n(93662);const u=new i.md;function c(e){return o.r$.define({combine:e?t=>t.concat(e):void 0})}const d=new i.md;class f{constructor(e,t,n=[],r=""){this.data=e,this.name=r,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[_.of(this),o.yy.languageData.of(((e,t,n)=>{let r=h(e,t,n),i=r.type.prop(u);if(!i)return[];let o=e.facet(i),a=r.type.prop(d);if(a){let i=r.resolve(t-r.from,n);for(let t of a)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o}))].concat(n)}isActiveAt(e,t,n=-1){return h(e,t,n).type.prop(u)==this.data}findRegions(e){let t=e.facet(_);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(u)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(i.md.mounted);if(o){if(o.tree.prop(u)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}),e.name)}configure(e,t){return new p(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(f.state,!1);return t?t.tree:i.mp.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let v=null;class O{constructor(e,t,n=[],r,i,o,a,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new O(e,t,[],i.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.mp.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=v;v=this;try{return e()}finally{v=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=y(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=i.i9.applyChanges(n,t),r=i.mp.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=y(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i._b{createParse(t,n,r){let o=r[0].from,a=r[r.length-1].to;return{parsedPos:o,advance(){let t=v;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new i.mp(i.Jq.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return v}}function y(e,t,n){return i.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class b{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new b(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=O.create(e.facet(_).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new b(n)}}f.state=o.QQ.define({create:b.init,update(e,t){for(let e of t.effects)if(e.is(f.setState))return e.value;return t.startState.facet(_)!=t.state.facet(_)?b.init(t.state):e.apply(t)}});let w=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(w=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const k="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,x=a.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(f.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(f.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=w(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work((()=>k&&k()||Date.now()>o),r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:f.setState.of(new b(i.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,a.OO)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),_=o.r$.define({combine:e=>e.length?e[0]:null,enables:e=>[f.state,x,a.tk.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class S{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class P{constructor(e,t,n,r,i,o=void 0){this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((e=>this.support=e),(e=>{throw this.loading=null,e})))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new P(e.name,(e.alias||[]).concat(e.name).map((e=>e.toLowerCase())),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let n of e)if(n.filename&&n.filename.test(t))return n;let n=/\.([^.]+)$/.exec(t);if(n)for(let t of e)if(t.extensions.indexOf(n[1])>-1)return t;return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let n of e)if(n.alias.some((e=>e==t)))return n;if(n)for(let n of e)for(let e of n.alias){let r=t.indexOf(e);if(r>-1&&(e.length>2||!/\w/.test(t[r-1])&&!/\w/.test(t[r+e.length])))return n}return null}}const E=o.r$.define(),C=o.r$.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function T(e){let t=e.facet(C);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function $(e,t){let n="",r=e.tabSize,i=e.facet(C)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let e=0;e=t?function(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t!=r.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return j(r,e,n)}(e,n,t):null}class R{constructor(e,t={}){this.state=e,this.options=t,this.unit=T(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,o.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const A=new i.md;function j(e,t,n){for(let r=e;r;r=r.next){let e=D(r.node);if(e)return e(I.create(t,n,r))}return 0}function D(e){let t=e.type.prop(A);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(i.md.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>N(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?M:null}function M(){return 0}class I extends R{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new I(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(z(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return j(this.context.next,this.base,this.pos)}}function z(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function W({closing:e,align:t=!0,units:n=1}){return r=>N(r,t,n,e)}function N(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.frome.baseIndent;function F({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const U=200;function X(){return o.yy.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+U)return e;let o=n.sliceString(i.from,r);if(!t.some((e=>e.test(o))))return e;let{state:a}=e,s=-1,l=[];for(let{head:e}of a.selection.ranges){let t=a.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=Q(a,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=$(a,n);r!=i&&l.push({from:t.from,to:t.from+r.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const q=o.r$.define(),B=new i.md;function V(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(i&&a.from=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function G(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const H=o.Py.define({map:G}),K=o.Py.define({map:G});function J(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const ee=o.QQ.define({create:()=>a.p.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(H)&&!ne(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(se),i=r?a.p.replace({widget:new de(r(t.state,n.value))}):ce;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(K)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{er&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>a.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>e)&&(i={from:e,to:t})})),i}function ne(e,t,n){let r=!1;return e.between(t,t,((e,i)=>{e==t&&i==n&&(r=!0)})),r}function re(e,t){return e.field(ee,!1)?t:t.concat(o.Py.appendConfig.of(le()))}function ie(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return a.tk.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const oe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of J(e)){let n=Z(e.state,t.from,t.to);if(n)return e.dispatch({effects:re(e.state,[H.of(n),ie(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(ee,!1))return!1;let t=[];for(let n of J(e)){let r=te(e.state,n.from,n.to);r&&t.push(K.of(r),ie(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(ee,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(K.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],ae={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},se=o.r$.define({combine:e=>(0,o.BO)(e,ae)});function le(e){let t=[ee,me];return e&&t.push(se.of(e)),t}function ue(e,t){let{state:n}=e,r=n.facet(se),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=te(e.state,n.from,n.to);r&&e.dispatch({effects:K.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const ce=a.p.replace({widget:new class extends a.l9{toDOM(e){return ue(e,null)}}});class de extends a.l9{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ue(e,this.value)}}const fe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class he extends a.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function pe(e={}){let t=Object.assign(Object.assign({},fe),e),n=new he(t,!0),r=new he(t,!1),i=a.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(_)!=e.state.facet(_)||e.startState.field(ee,!1)!=e.state.field(ee,!1)||m(e.startState)!=m(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.f_;for(let i of e.viewportLineBlocks){let o=te(e.state,i.from,i.to)?r:Z(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:s}=t;return[i,(0,a.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||o.Xs.empty},initialSpacer:()=>new he(t,!1),domEventHandlers:Object.assign(Object.assign({},s),{click:(e,t,n)=>{if(s.click&&s.click(e,t,n))return!0;let r=te(e.state,t.from,t.to);if(r)return e.dispatch({effects:K.of(r)}),!0;let i=Z(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:H.of(i)}),!0)}})}),le()]}const me=a.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ge{constructor(e,t){let n;function r(e){let t=l.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof f?e=>e.prop(u)==o.data:o?e=>e==o:void 0,this.style=(0,s.QR)(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new l.V(n):null,this.themeType=t.themeType}static define(e,t){return new ge(e,t||{})}}const ve=o.r$.define(),Oe=o.r$.define({combine:e=>e.length?[e[0]]:null});function ye(e){let t=e.facet(ve);return t.length?t:e.facet(Oe)}function be(e,t){let n,r=[ke];return e instanceof ge&&(e.module&&r.push(a.tk.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(Oe.of(e)):n?r.push(ve.computeN([a.tk.darkTheme],(t=>t.facet(a.tk.darkTheme)==("dark"==n)?[e]:[]))):r.push(ve.of(e)),r}class we{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,ye(e.state))}update(e){let t=m(e.state),n=ye(e.state),r=n!=ye(e.startState);t.length{n.add(e,t,this.markCache[r]||(this.markCache[r]=a.p.mark({class:r})))}),r,i);return n.finish()}}const ke=o.Wl.high(a.lg.fromClass(we,{decorations:e=>e.decorations})),xe=ge.define([{tag:s.pJ.meta,color:"#404740"},{tag:s.pJ.link,textDecoration:"underline"},{tag:s.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:s.pJ.emphasis,fontStyle:"italic"},{tag:s.pJ.strong,fontWeight:"bold"},{tag:s.pJ.strikethrough,textDecoration:"line-through"},{tag:s.pJ.keyword,color:"#708"},{tag:[s.pJ.atom,s.pJ.bool,s.pJ.url,s.pJ.contentSeparator,s.pJ.labelName],color:"#219"},{tag:[s.pJ.literal,s.pJ.inserted],color:"#164"},{tag:[s.pJ.string,s.pJ.deleted],color:"#a11"},{tag:[s.pJ.regexp,s.pJ.escape,s.pJ.special(s.pJ.string)],color:"#e40"},{tag:s.pJ.definition(s.pJ.variableName),color:"#00f"},{tag:s.pJ.local(s.pJ.variableName),color:"#30a"},{tag:[s.pJ.typeName,s.pJ.namespace],color:"#085"},{tag:s.pJ.className,color:"#167"},{tag:[s.pJ.special(s.pJ.variableName),s.pJ.macroName],color:"#256"},{tag:s.pJ.definition(s.pJ.propertyName),color:"#00c"},{tag:s.pJ.comment,color:"#940"},{tag:s.pJ.invalid,color:"#f00"}]),_e=a.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Se=1e4,Pe="()[]{}",Ee=o.r$.define({combine:e=>(0,o.BO)(e,{afterCursor:!0,brackets:Pe,maxScanDistance:Se,renderMatch:$e})}),Ce=a.p.mark({class:"cm-matchingBracket"}),Te=a.p.mark({class:"cm-nonmatchingBracket"});function $e(e){let t=[],n=e.matched?Ce:Te;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Qe=[o.QQ.define({create:()=>a.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Ee);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=Me(t.state,e.head,-1,r)||e.head>0&&Me(t.state,e.head-1,1,r)||r.afterCursor&&(Me(t.state,e.head,1,r)||e.heada.tk.decorations.from(e)}),_e];function Re(e={}){return[Ee.of(e),Qe]}const Ae=new i.md;function je(e,t,n){let r=e.prop(t<0?i.md.openedBy:i.md.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function De(e){let t=e.type.prop(Ae);return t?t(e.node):e}function Me(e,t,n,r={}){let i=r.maxScanDistance||Se,o=r.brackets||Pe,a=m(e),s=a.resolveInner(t,n);for(let e=s;e;e=e.parent){let r=je(e.type,n,o);if(r&&e.from0?t>=i.from&&ti.from&&t<=i.to))return Ie(0,0,n,e,i,r,o)}}return function(e,t,n,r,i,o,a){let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!c.next().done&&e<=o;){let o=c.value;n<0&&(e+=o.length);let s=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=a.indexOf(o[e]);if(!(t<0||r.resolveInner(s+e,1).type!=i))if(t%2==0==n>0)d++;else{if(1==d)return{start:u,end:{from:s+e,to:s+e+1},matched:t>>1==l>>1};d--}}n>0&&(e+=o.length)}return c.done?{start:u,matched:!1}:null}(e,t,n,a,s.type,i,o)}function Ie(e,t,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=null==s?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do{if(n<0?c.to<=r.from:c.from>=r.to){if(0==u&&o.indexOf(c.type.name)>-1&&c.from=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosn?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function Ne(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}const Le=new WeakMap;class Fe extends f{constructor(e){let t,n=c(e.languageData),r={name:(o=e).name||"",token:o.token,blankLine:o.blankLine||(()=>{}),startState:o.startState||(()=>!0),copyState:o.copyState||Ne,indent:o.indent||(()=>null),languageData:o.languageData||{},tokenTable:o.tokenTable||Ve};var o;super(n,new class extends i._b{createParse(e,n,r){return new qe(t,e,n,r)}},[E.of(((e,t)=>this.getIndent(e,t)))],e.name),this.topNode=function(e){let t=i.Jq.define({id:Ye.length,name:"Document",props:[u.add((()=>e))],top:!0});return Ye.push(t),t}(n),t=this,this.streamParser=r,this.stateAfter=new i.md({perNode:!0}),this.tokenTable=e.tokenTable?new Ke(r.tokenTable):Je}static define(e){return new Fe(e)}getIndent(e,t){let n,r=m(e.state),i=r.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let{overrideIndentation:o}=e.options;o&&(n=Le.get(e.state),null!=n&&n1e4)return null;for(;a=r&&n+t.length<=o&&t.prop(e.stateAfter);if(a)return{state:e.streamParser.copyState(a),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let s=t.children[a],l=n+t.positions[a],u=s instanceof i.mp&&l=t.length)return t;o||t.type!=e.topNode||(o=!0);for(let a=t.children.length-1;a>=0;a--){let s,l=t.positions[a],u=t.children[a];if(ln&&Ue(e,r.tree,0-r.offset,n,o);if(a&&(t=Xe(e,r.tree,n+r.offset,a.pos+r.offset,!1)))return{state:a.state,tree:t}}return{state:e.streamParser.startState(r?T(r):4),tree:i.mp.empty}}(e,n,a,null==o?void 0:o.state);this.state=s,this.parsedPos=this.chunkStart=a+l.length;for(let e=0;e=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let e=this.rangeIndex;;){let r=this.ranges[e].to;if(r>=n)break;if(t=t.slice(0,r-(n-t.length)),e++,e==this.ranges.length)break;let i=this.ranges[e].from,o=this.lineAfter(i);t+=o,n=i+o.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;t+=this.ranges[++this.rangeIndex].from-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){t+=i=this.skipGapsTo(t,i,1);let e=this.chunk.length;n+=i=this.skipGapsTo(n,i,-1),r+=this.chunk.length-e}return this.chunk.push(e,t,n,r),i}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new We(t,e?e.state.tabSize:4,e?T(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let e=Be(i.token,o,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+o.start,this.parsedPos+o.pos,4,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return r}throw new Error("Stream parser failed to advance stream.")}const Ve=Object.create(null),Ye=[i.Jq.none],Ze=new i.Lj(Ye),Ge=[],He=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])He[e]=tt(Ve,t);class Ke{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),He)}resolve(e){return e?this.table[e]||(this.table[e]=tt(this.extra,e)):0}}const Je=new Ke(Ve);function et(e,t){Ge.indexOf(e)>-1||(Ge.push(e),console.warn(t))}function tt(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||s.pJ[r];t?"function"==typeof t?n?n=t(n):et(r,`Modifier ${r} used at start of tag`):n?et(r,`Tag ${r} used as modifier`):n=t:et(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),o=i.Jq.define({id:Ye.length,name:r,props:[(0,s.Gv)({[r]:n})]});return Ye.push(o),o.id}},24631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{apl:()=>u});var r={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},i=/[\.\/⌿⍀¨⍣]/,o=/⍬/,a=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,s=/←/,l=/[⍝#].*$/;const u={name:"apl",startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(e,t){var n,u,c;return e.eatSpace()?null:'"'===(n=e.next())||"'"===n?(e.eatWhile((u=n,c=!1,function(e){return c=e,e!==u||"\\"===c})),e.next(),t.prev=!0,"string"):/[\[{\(]/.test(n)?(t.prev=!1,null):/[\]}\)]/.test(n)?(t.prev=!0,null):o.test(n)?(t.prev=!1,"atom"):/[¯\d]/.test(n)?(t.func?(t.func=!1,t.prev=!1):t.prev=!0,e.eatWhile(/[\w\.]/),"number"):i.test(n)||s.test(n)?"operator":a.test(n)?(t.func=!0,t.prev=!1,r[n]?"variableName.function.standard":"variableName.function"):l.test(n)?(e.skipToEnd(),"comment"):"∘"===n&&"."===e.peek()?(e.next(),"variableName.function"):(e.eatWhile(/[\w\$_]/),t.prev=!0,"keyword")}}},66396:(e,t,n)=>{"use strict";function r(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}n.r(t),n.d(t,{asciiArmor:()=>i});const i={name:"asciiarmor",token:function(e,t){var n;if("top"==t.state)return e.sol()&&(n=e.match(/^-----BEGIN (.*)?-----\s*$/))?(t.state="headers",t.type=n[1],"tag"):r(e);if("headers"==t.state){if(e.sol()&&e.match(/^\w+:/))return t.state="header","atom";var i=r(e);return i&&(t.state="body"),i}return"header"==t.state?(e.skipToEnd(),t.state="headers","string"):"body"==t.state?e.sol()&&(n=e.match(/^-----END (.*)?-----\s*$/))?n[1]!=t.type?"error":(t.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==t.state?r(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}}},88522:(e,t,n)=>{"use strict";n.r(t),n.d(t,{asterisk:()=>a});var r=["exten","same","include","ignorepat","switch"],i=["#include","#exec"],o=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];const a={name:"asterisk",startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,t){var n="";return e.eatSpace()?null:t.extenStart?(e.eatWhile(/[^\s]/),n=e.current(),/^=>?$/.test(n)?(t.extenExten=!0,t.extenStart=!1,"strong"):(t.extenStart=!1,e.skipToEnd(),"error")):t.extenExten?(t.extenExten=!1,t.extenPriority=!0,e.eatWhile(/[^,]/),t.extenInclude&&(e.skipToEnd(),t.extenPriority=!1,t.extenInclude=!1),t.extenSame&&(t.extenPriority=!1,t.extenSame=!1,t.extenApplication=!0),"tag"):t.extenPriority?(t.extenPriority=!1,t.extenApplication=!0,e.next(),t.extenSame?null:(e.eatWhile(/[^,]/),"number")):t.extenApplication?(e.eatWhile(/,/),","===(n=e.current())?null:(e.eatWhile(/\w/),n=e.current().toLowerCase(),t.extenApplication=!1,-1!==o.indexOf(n)?"def":null)):function(e,t){var n="",o=e.next();if(t.blockComment)return"-"==o&&e.match("-;",!0)?t.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),t.blockComment=!1):e.skipToEnd(),"comment";if(";"==o)return e.match("--",!0)&&!e.match("-",!1)?(t.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if("["==o)return e.skipTo("]"),e.eat("]"),"header";if('"'==o)return e.skipTo('"'),"string";if("'"==o)return e.skipTo("'"),"string.special";if("#"==o&&(e.eatWhile(/\w/),n=e.current(),-1!==i.indexOf(n)))return e.skipToEnd(),"strong";if("$"==o&&"{"==e.peek())return e.skipTo("}"),e.eat("}"),"variableName.special";if(e.eatWhile(/\w/),n=e.current(),-1!==r.indexOf(n)){switch(t.extenStart=!0,n){case"same":t.extenSame=!0;break;case"include":case"switch":case"ignorepat":t.extenInclude=!0}return"atom"}}(e,t)},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}}},12860:(e,t,n)=>{"use strict";n.r(t),n.d(t,{brainfuck:()=>i});var r="><+-.,[]".split("");const i={name:"brainfuck",startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,t){if(e.eatSpace())return null;e.sol()&&(t.commentLine=!1);var n=e.next().toString();return-1===r.indexOf(n)?(t.commentLine=!0,e.eol()&&(t.commentLine=!1),"comment"):!0===t.commentLine?(e.eol()&&(t.commentLine=!1),"comment"):"]"===n||"["===n?("["===n?t.left++:t.right++,"bracket"):"+"===n||"-"===n?"keyword":"<"===n||">"===n?"atom":"."===n||","===n?"def":void(e.eol()&&(t.commentLine=!1))}}},48231:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function i(e,t,n,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(o=e.context.indented),e.context=new r(o,t,n,i,null,e.context)}function o(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function a(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function s(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function l(e){var t,n,l=e.statementIndentUnit,u=e.dontAlignCalls,d=e.keywords||{},f=e.types||{},h=e.builtin||{},p=e.blockKeywords||{},m=e.defKeywords||{},g=e.atoms||{},v=e.hooks||{},O=e.multiLineStrings,y=!1!==e.indentStatements,b=!1!==e.indentSwitch,w=e.namespaceSeparator,k=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,x=e.numberStart||/[\d\.]/,_=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,S=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,P=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,E=e.isReservedIdentifier||!1;function C(e,r){var i,o=e.next();if(v[o]){var a=v[o](e,r);if(!1!==a)return a}if('"'==o||"'"==o)return r.tokenize=(i=o,function(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if(n==i&&!r){o=!0;break}r=!r&&"\\"==n}return(o||!r&&!O)&&(t.tokenize=null),"string"}),r.tokenize(e,r);if(x.test(o)){if(e.backUp(1),e.match(_))return"number";e.next()}if(k.test(o))return t=o,null;if("/"==o){if(e.eat("*"))return r.tokenize=T,T(e,r);if(e.eat("/"))return e.skipToEnd(),"comment"}if(S.test(o)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(S););return"operator"}if(e.eatWhile(P),w)for(;e.match(w);)e.eatWhile(P);var s=e.current();return c(d,s)?(c(p,s)&&(t="newstatement"),c(m,s)&&(n=!0),"keyword"):c(f,s)?"type":c(h,s)||E&&E(s)?(c(p,s)&&(t="newstatement"),"builtin"):c(g,s)?"atom":"variable"}function T(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function $(t,n){e.typeFirstDefinitions&&t.eol()&&s(n.context)&&(n.typeAtEndOfLine=a(t,n,t.pos))}return{name:e.name,startState:function(e){return{tokenize:null,context:new r(-e,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(r,l){var u=l.context;if(r.sol()&&(null==u.align&&(u.align=!1),l.indented=r.indentation(),l.startOfLine=!0),r.eatSpace())return $(r,l),null;t=n=null;var c=(l.tokenize||C)(r,l);if("comment"==c||"meta"==c)return c;if(null==u.align&&(u.align=!0),";"==t||":"==t||","==t&&r.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==l.context.type;)o(l);else if("{"==t)i(l,r.column(),"}");else if("["==t)i(l,r.column(),"]");else if("("==t)i(l,r.column(),")");else if("}"==t){for(;"statement"==u.type;)u=o(l);for("}"==u.type&&(u=o(l));"statement"==u.type;)u=o(l)}else t==u.type?o(l):y&&(("}"==u.type||"top"==u.type)&&";"!=t||"statement"==u.type&&"newstatement"==t)&&i(l,r.column(),"statement",r.current());if("variable"==c&&("def"==l.prevToken||e.typeFirstDefinitions&&a(r,l,r.start)&&s(l.context)&&r.match(/^\s*\(/,!1))&&(c="def"),v.token){var d=v.token(r,l,c);void 0!==d&&(c=d)}return"def"==c&&!1===e.styleDefs&&(c="variable"),l.startOfLine=!1,l.prevToken=n?"def":c||t,$(r,l),c},indent:function(t,n,r){if(t.tokenize!=C&&null!=t.tokenize||t.typeAtEndOfLine&&s(t.context))return null;var i=t.context,o=n&&n.charAt(0),a=o==i.type;if("statement"==i.type&&"}"==o&&(i=i.prev),e.dontIndentStatements)for(;"statement"==i.type&&e.dontIndentStatements.test(i.info);)i=i.prev;if(v.indent){var c=v.indent(t,i,n,r.unit);if("number"==typeof c)return c}var d=i.prev&&"switch"==i.prev.info;if(e.allmanIndentation&&/[{(]/.test(o)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return"statement"==i.type?i.indented+("{"==o?0:l||r.unit):!i.align||u&&")"==i.type?")"!=i.type||a?i.indented+(a?0:r.unit)+(a||!d||/^(?:case|default)\b/.test(n)?0:r.unit):i.indented+(l||r.unit):i.column+(a?0:1)},languageData:{indentOnInput:b?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(d).concat(Object.keys(f)).concat(Object.keys(h)).concat(Object.keys(g)),...e.languageData}}}function u(e){for(var t={},n=e.split(" "),r=0;rT,ceylon:()=>X,clike:()=>l,cpp:()=>$,csharp:()=>R,dart:()=>G,java:()=>Q,kotlin:()=>M,nesC:()=>z,objectiveC:()=>W,objectiveCpp:()=>N,scala:()=>D,shader:()=>I,squirrel:()=>L});var d="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",f="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",h="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",p="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",m=u("int long char short double float unsigned signed void bool"),g=u("SEL instancetype id Class Protocol BOOL");function v(e){return c(m,e)||/.+_t$/.test(e)}function O(e){return v(e)||c(g,e)}var y="case do else for if switch while struct enum union",b="struct enum union";function w(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=w;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function k(e,t){return"type"==t.prevToken&&"type"}function x(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function _(e){return e.eatWhile(/[\w\.']/),"number"}function S(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=C,C(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function P(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function E(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function C(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}const T=l({name:"c",keywords:u(d),types:v,blockKeywords:u(y),defKeywords:u(b),typeFirstDefinitions:!0,atoms:u("NULL true false"),isReservedIdentifier:x,hooks:{"#":w,"*":k}}),$=l({name:"cpp",keywords:u(d+" "+f),types:v,blockKeywords:u(y+" class try catch"),defKeywords:u(b+" class namespace"),typeFirstDefinitions:!0,atoms:u("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:x,hooks:{"#":w,"*":k,u:S,U:S,L:S,R:S,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&P(e.current()))return"def"}},namespaceSeparator:"::"}),Q=l({name:"java",keywords:u("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:u("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:u("catch class do else finally for if switch try while"),defKeywords:u("class interface enum @interface"),typeFirstDefinitions:!0,atoms:u("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match(/""$/)&&(t.tokenize=A,t.tokenize(e,t))}}}),R=l({name:"csharp",keywords:u("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:u("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:u("catch class do else finally for foreach if struct switch try while"),defKeywords:u("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:u("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=E,E(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}});function A(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function j(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=j(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=j(e+1),n.tokenize(t,n)}return"comment"}}const D=l({name:"scala",keywords:u("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:u("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:u("catch class enum do else finally for forSome if match switch try while"),defKeywords:u("class enum def object package trait type val var"),atoms:u("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=A,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"character":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,t){var n=t.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(t.context=new r(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=j(1),t.tokenize(e,t))}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),M=l({name:"kotlin",keywords:u("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:u("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:u("catch class do else finally for if where try while enum"),defKeywords:u("class val var object interface fun"),atoms:u("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=j(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),I=l({name:"shader",keywords:u("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:u("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:u("for while do if else struct"),builtin:u("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:u("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":w}}),z=l({name:"nesc",keywords:u(d+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:v,blockKeywords:u(y),atoms:u("null true false"),hooks:{"#":w}}),W=l({name:"objectivec",keywords:u(d+" "+h),types:O,builtin:u(p),blockKeywords:u(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:u(b+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:u("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":w,"*":k}}),N=l({name:"objectivecpp",keywords:u(d+" "+h+" "+f),types:O,builtin:u(p),blockKeywords:u(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:u(b+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:u("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":w,"*":k,u:S,U:S,L:S,R:S,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&P(e.current()))return"def"}},namespaceSeparator:"::"}),L=l({name:"squirrel",keywords:u("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:v,blockKeywords:u("case catch class else for foreach if switch try while"),defKeywords:u("function local class"),typeFirstDefinitions:!0,atoms:u("true false null"),hooks:{"#":w}});var F=null;function U(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){F=U(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}const X=l({name:"ceylon",keywords:u("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:u("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:u("class dynamic function interface module object package value"),builtin:u("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:u("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=U(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!F||!e.match("`"))&&(t.tokenize=F,F=null,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string.special":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variableName.special"}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function q(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function B(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function V(e,t,n,r){var i=!1;if(t.eat(e)){if(!t.eat(e))return"string";i=!0}function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek())return q(n),n.tokenize=Y,"string";var a=t.next();if(a==e&&!o&&(!i||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==a}return"string"}return n.tokenize=o,o(t,n)}function Y(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=Z,null}function Z(e,t){return e.eatWhile(/[\w_]/),t.tokenize=B(t),"variable"}const G=l({name:"dart",keywords:u("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),blockKeywords:u("try catch finally do else for if switch while"),builtin:u("void bool num int double dynamic var String Null Never"),atoms:u("true false null"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return V("'",e,t,!1)},'"':function(e,t){return V('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&V(e.next(),e,t,!0)},"}":function(e,t){return function(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=B(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=j(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"type"}}})},23463:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clojure:()=>y});var r=["false","nil","true"],i=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],o=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],a=v(r),s=v(i),l=v(o),u=v(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),c=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,d=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,f=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,h=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function p(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(d))return[null,"number"];if(e.match(f))return[null,"string.special"];if(e.eat(/^"/))return(t.tokenize=m)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(h),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=g)(e,t):O(r,a)||":"===r.charAt(0)?["symbol","atom"]:O(r,s)||O(r,l)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!O(e,c)})),[null,"error"])}function m(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=p;break}r=!r&&"\\"===n}return[null,"string"]}function g(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=p;break}return["space","comment"]}function v(e){for(var t={},n=0;n{"use strict";n.r(t),n.d(t,{cmake:()=>o});var r=/({)?[a-zA-Z0-9_]+(})?/;function i(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}const o={name:"cmake",startState:function(){return{inDefinition:!1,inInclude:!1,continueString:!1,pending:!1}},token:function(e,t){return e.eatSpace()?null:function(e,t){var n=e.next();return"$"===n?e.match(r)?"variableName.special":"variable":t.continueString?(e.backUp(1),i(e,t)):e.match(/(\s+)?\w+\(/)||e.match(/(\s+)?\w+\ \(/)?(e.backUp(1),"def"):"#"==n?(e.skipToEnd(),"comment"):"'"==n||'"'==n?(t.pending=n,i(e,t)):"("==n||")"==n?"bracket":n.match(/[0-9]/)?"number":(e.eatWhile(/[\w-]/),null)}(e,t)}}},10021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cobol:()=>c});var r="string",i="atom";function o(e){for(var t={},n=e.split(" "),r=0;r >= "),u={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};const c={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=6),e.eatSpace())return null;var n=null;if("string"===t.mode){for(var o=!1;null!=(o=e.next());)if(('"'==o||"'"==o)&&!e.match(/['"]/,!1)){t.mode=!1;break}n=r}else{var c=e.next(),d=e.column();if(d>=0&&d<=5)n="def";else if(d>=72&&d<=79)e.skipToEnd(),n="header";else if("*"==c&&6==d)e.skipToEnd(),n="comment";else if('"'==c||"'"==c)t.mode="string",n=r;else if("'"!=c||u.digit_or_colon.test(e.peek()))if("."==c)n="link";else if(function(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(u.hex),!0):("+"!=e&&"-"!=e||!u.digit.test(t.peek())||(t.eat(u.sign),e=t.next()),!!u.digit.test(e)&&(t.eat(e),t.eatWhile(u.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(u.digit)),t.eat(u.exponent)&&(t.eat(u.sign),t.eatWhile(u.digit)),!0))}(c,e))n="number";else{if(e.current().match(u.symbol))for(;d<71&&void 0!==e.eat(u.symbol);)d++;n=s&&s.propertyIsEnumerable(e.current().toUpperCase())?"keyword":l&&l.propertyIsEnumerable(e.current().toUpperCase())?"builtin":a&&a.propertyIsEnumerable(e.current().toUpperCase())?i:null}else n=i}return n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}}},73182:(e,t,n)=>{"use strict";n.r(t),n.d(t,{coffeeScript:()=>b});var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var o=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,s=/^[_A-Za-z$][_A-Za-z$0-9]*/,l=/^@[_A-Za-z$][_A-Za-z$0-9]*/,u=i(["and","or","not","is","isnt","in","instanceof","typeof"]),c=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],d=i(c.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));c=i(c);var f=/^('{3}|\"{3}|['\"])/,h=/^(\/{3}|\/)/,p=i(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function m(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var n=t.scope.offset;if(e.eatSpace()){var i=e.indentation();return i>n&&"coffee"==t.scope.type?"indent":i0&&y(e,t)}if(e.eatSpace())return null;var c=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=v,t.tokenize(e,t);if("#"===c)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var m=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(m=!0),e.match(/^-?\d+\.\d*/)&&(m=!0),e.match(/^-?\.\d+/)&&(m=!0),m)return"."==e.peek()&&e.backUp(1),"number";var O=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(O=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(O=!0),e.match(/^-?0(?![\dx])/i)&&(O=!0),O)return"number"}if(e.match(f))return t.tokenize=g(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(h)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=g(e.current(),!0,"string.special"),t.tokenize(e,t);e.backUp(1)}return e.match(o)||e.match(u)?"operator":e.match(a)?"punctuation":e.match(p)?"atom":e.match(l)||t.prop&&e.match(s)?"property":e.match(d)?"keyword":e.match(s)?"variable":(e.next(),r)}function g(e,t,n){return function(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\/\\]/),r.eat("\\")){if(r.next(),t&&r.eol())return n}else{if(r.match(e))return i.tokenize=m,n;r.eat(/['"\/]/)}return t&&(i.tokenize=m),n}}function v(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=m;break}e.eatWhile("#")}return"comment"}function O(e,t,n="coffee"){for(var r=0,i=!1,o=null,a=t.scope;a;a=a.prev)if("coffee"===a.type||"}"==a.type){r=a.offset+e.indentUnit;break}"coffee"!==n?(i=null,o=e.column()+e.current().length):t.scope.align&&(t.scope.align=!1),t.scope={offset:r,type:n,prev:t.scope,align:i,alignOffset:o}}function y(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}const b={name:"coffeescript",startState:function(){return{tokenize:m,scope:{offset:0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var i=function(e,t){var n=t.tokenize(e,t),i=e.current();"return"===i&&(t.dedent=!0),(("->"===i||"=>"===i)&&e.eol()||"indent"===n)&&O(e,t);var o="[({".indexOf(i);if(-1!==o&&O(e,t,"])}".slice(o,o+1)),c.exec(i)&&O(e,t),"then"==i&&y(e,t),"dedent"===n&&y(e,t))return r;if(-1!==(o="])}".indexOf(i))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),"indent"==n||"dedent"==n?null:n}(e,t);return i&&"comment"!=i&&(n&&(n.align=!0),t.prop="punctuation"==i&&"."==e.current()),i},indent:function(e,t){if(e.tokenize!=m)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},languageData:{commentTokens:{line:"#"}}}},31402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{commonLisp:()=>f});var r,i=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,o=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,s=/[^\s'`,@()\[\]";]/;function l(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!s.test(t)){e.backUp(1);break}return e.current()}function u(e,t){if(e.eatSpace())return r="ws",null;if(e.match(a))return"number";var n;if("\\"==(n=e.next())&&(n=e.next()),'"'==n)return(t.tokenize=c)(e,t);if("("==n)return r="open","bracket";if(")"==n||"]"==n)return r="close","bracket";if(";"==n)return e.skipToEnd(),r="ws","comment";if(/['`,@]/.test(n))return null;if("|"==n)return e.skipTo("|")?(e.next(),"variableName"):(e.skipToEnd(),"error");if("#"==n)return"("==(n=e.next())?(r="open","bracket"):/[+\-=\.']/.test(n)||/\d/.test(n)&&e.match(/^\d*#/)?null:"|"==n?(t.tokenize=d)(e,t):":"==n?(l(e),"meta"):"\\"==n?(e.next(),l(e),"string.special"):"error";var s=l(e);return"."==s?null:(r="symbol","nil"==s||"t"==s||":"==s.charAt(0)?"atom":"open"==t.lastType&&(i.test(s)||o.test(s))?"keyword":"&"==s.charAt(0)?"variableName.special":"variableName")}function c(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=u;break}r=!r&&"\\"==n}return"string"}function d(e,t){for(var n,i;n=e.next();){if("#"==n&&"|"==i){t.tokenize=u;break}i=n}return r="ws","comment"}const f={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:u}},token:function(e,t){e.sol()&&"number"!=typeof t.ctx.indentTo&&(t.ctx.indentTo=t.ctx.start+1),r=null;var n=t.tokenize(e,t);return"ws"!=r&&(null==t.ctx.indentTo?"symbol"==r&&o.test(e.current())?t.ctx.indentTo=t.ctx.start+e.indentUnit:t.ctx.indentTo="next":"next"==t.ctx.indentTo&&(t.ctx.indentTo=e.column()),t.lastType=r),"open"==r?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:"close"==r&&(t.ctx=t.ctx.prev||t.ctx),n},indent:function(e){var t=e.ctx.indentTo;return"number"==typeof t?t:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}}},69802:(e,t,n)=>{"use strict";function r(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function i(e,t,n){return n.tokenize.push(e),e(t,n)}n.r(t),n.d(t,{crystal:()=>E});var o=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,a=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,s=/^(?:\[\][?=]?)/,l=/^(?:\.(?:\.{2})?|->|[?:])/,u=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,c=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,d=r(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),f=r(["true","false","nil","self"]),h=r(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),p=r(["if","unless","case","while","until","begin","then"]),m=["end","else","elsif","rescue","ensure"],g=r(m),v=["\\)","\\}","\\]"],O=new RegExp("^(?:"+v.join("|")+")$"),y={def:_,fun:_,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(u)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:S,module:S,struct:S,lib:S,enum:S,union:S},b={"[":"]","{":"}","(":")","<":">"};function w(e,t){if(e.eatSpace())return null;if("\\"!=t.lastToken&&e.match("{%",!1))return i(x("%","%"),e,t);if("\\"!=t.lastToken&&e.match("{{",!1))return i(x("{","}"),e,t);if("#"==e.peek())return e.skipToEnd(),"comment";var n;if(e.match(u))return e.eat(/[?!]/),n=e.current(),e.eat(":")?"atom":"."==t.lastToken?"property":d.test(n)?(h.test(n)?"fun"==n&&t.blocks.indexOf("lib")>=0||"def"==n&&"abstract"==t.lastToken||(t.blocks.push(n),t.currentIndent+=1):"operator"!=t.lastStyle&&t.lastStyle||!p.test(n)?"end"==n&&(t.blocks.pop(),t.currentIndent-=1):(t.blocks.push(n),t.currentIndent+=1),y.hasOwnProperty(n)&&t.tokenize.push(y[n]),"keyword"):f.test(n)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?i(k("[","]","meta"),e,t):(e.eat("@"),e.match(u)||e.match(c),"propertyName");if(e.match(c))return"tag";if(e.eat(":"))return e.eat('"')?i(P('"',"atom",!1),e,t):e.match(u)||e.match(c)||e.match(o)||e.match(a)||e.match(s)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return i(P('"',"string",!0),e,t);if("%"==e.peek()){var r,m="string",g=!0;if(e.match("%r"))m="string.special",r=e.next();else if(e.match("%w"))g=!1,r=e.next();else if(e.match("%q"))g=!1,r=e.next();else if(r=e.match(/^%([^\w\s=])/))r=r[1];else{if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(e.eat("%"))return"operator"}return b.hasOwnProperty(r)&&(r=b[r]),i(P(r,m,g),e,t)}return(n=e.match(/^<<-('?)([A-Z]\w*)\1/))?i(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match("{%",!1))return r.tokenize.push(x("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(x("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(k("#{","}","meta")),"string";i=t&&"\\"==n.next()}return"string"}}(n[2],!n[1]),e,t):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F_]+/):e.eat("o")?e.match(/^[0-7_]+/):e.eat("b")&&e.match(/^[01_]+/),"number"):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):e.match(o)?(e.eat("="),"operator"):e.match(a)||e.match(l)?"operator":(n=e.match(/[({[]/,!1))?i(k(n=n[0],b[n],null),e,t):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function k(e,t,n,r){return function(i,o){if(!r&&i.match(e))return o.tokenize[o.tokenize.length-1]=k(e,t,n,!0),o.currentIndent+=1,n;var a=w(i,o);return i.current()===t&&(o.tokenize.pop(),o.currentIndent-=1,a=n),a}}function x(e,t,n){return function(r,i){return!n&&r.match("{"+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=x(e,t,!0),"meta"):r.match(t+"}")?(i.currentIndent-=1,i.tokenize.pop(),"meta"):w(r,i)}}function _(e,t){return e.eatSpace()?null:(e.match(u)?e.eat(/[!?]/):e.match(o)||e.match(a)||e.match(s),t.tokenize.pop(),"def")}function S(e,t){return e.eatSpace()?null:(e.match(c),t.tokenize.pop(),"def")}function P(e,t,n){return function(r,i){for(var o=!1;r.peek();)if(o)r.next(),o=!1;else{if(r.match("{%",!1))return i.tokenize.push(x("%","%")),t;if(r.match("{{",!1))return i.tokenize.push(x("{","}")),t;if(n&&r.match("#{",!1))return i.tokenize.push(k("#{","}","meta")),t;var a=r.next();if(a==e)return i.tokenize.pop(),t;o=n&&"\\"==a}return t}}const E={name:"crystal",startState:function(){return{tokenize:[w],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(e,t,n){return t=t.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),g.test(t)||O.test(t)?n.unit*(e.currentIndent-1):n.unit*e.currentIndent},languageData:{indentOnInput:r(v.concat(m),!0),commentTokens:{line:"#"}}}},41525:(e,t,n)=>{"use strict";function r(e){var t,n,r=(e={...P,...e}).inline,i=e.tokenHooks,o=e.documentTypes||{},a=e.mediaTypes||{},s=e.mediaFeatures||{},l=e.mediaValueKeywords||{},u=e.propertyKeywords||{},c=e.nonStandardPropertyKeywords||{},d=e.fontProperties||{},f=e.counterDescriptors||{},h=e.colorKeywords||{},p=e.valueKeywords||{},m=e.allowNested,g=e.lineComment,v=!0===e.supportsAtComponent,O=!1!==e.highlightNonStandardPropertyKeywords;function y(e,n){return t=n,e}function b(e,t){var n=e.next();if(i[n]){var r=i[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),y("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?y(null,"compare"):'"'==n||"'"==n?(t.tokenize=w(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),y("atom","hash")):"!"==n?(e.match(/^\s*\w*/),y("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),y("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?y(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?y("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?y(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=k),y("variableName.function","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),y("property","word")):y(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),y("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?y("def","variable-definition"):y("variableName","variable")):e.match(/^\w+-/)?y("meta","meta"):void 0}function w(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),y("string","string")}}function k(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=w(")"),y(null,"(")}function x(e,t,n){this.type=e,this.indent=t,this.prev=n}function S(e,t,n,r){return e.context=new x(n,t.indentation()+(!1===r?0:t.indentUnit),e.context),n}function E(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function C(e,t,n){return Q[n.context.type](e,t,n)}function T(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return C(e,t,n)}function $(e){var t=e.current().toLowerCase();n=p.hasOwnProperty(t)?"atom":h.hasOwnProperty(t)?"keyword":"variable"}var Q={top:function(e,t,r){if("{"==e)return S(r,t,"block");if("}"==e&&r.context.prev)return E(r);if(v&&/@component/i.test(e))return S(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return S(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return S(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return S(r,t,"at");if("hash"==e)n="builtin";else if("word"==e)n="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return S(r,t,"interpolation");if(":"==e)return"pseudo";if(m&&"("==e)return S(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var i=t.current().toLowerCase();return u.hasOwnProperty(i)?(n="property","maybeprop"):c.hasOwnProperty(i)?(n=O?"string.special":"property","maybeprop"):m?(n=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n="error","maybeprop")}return"meta"==e?"block":m||"hash"!=e&&"qualifier"!=e?Q.top(e,t,r):(n="error","block")},maybeprop:function(e,t,n){return":"==e?S(n,t,"prop"):C(e,t,n)},prop:function(e,t,r){if(";"==e)return E(r);if("{"==e&&m)return S(r,t,"propBlock");if("}"==e||"{"==e)return T(e,t,r);if("("==e)return S(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)$(t);else if("interpolation"==e)return S(r,t,"interpolation")}else n="error";return"prop"},propBlock:function(e,t,r){return"}"==e?E(r):"word"==e?(n="property","maybeprop"):r.context.type},parens:function(e,t,n){return"{"==e||"}"==e?T(e,t,n):")"==e?E(n):"("==e?S(n,t,"parens"):"interpolation"==e?S(n,t,"interpolation"):("word"==e&&$(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(n="variableName.constant",r.context.type):C(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&o.hasOwnProperty(t.current())?(n="tag",r.context.type):Q.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return S(r,t,"atBlock_parens");if("}"==e||";"==e)return T(e,t,r);if("{"==e)return E(r)&&S(r,t,m?"block":"top");if("interpolation"==e)return S(r,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();n="only"==i||"not"==i||"and"==i||"or"==i?"keyword":a.hasOwnProperty(i)?"attribute":s.hasOwnProperty(i)?"property":l.hasOwnProperty(i)?"keyword":u.hasOwnProperty(i)?"property":c.hasOwnProperty(i)?O?"string.special":"property":p.hasOwnProperty(i)?"atom":h.hasOwnProperty(i)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?T(e,t,r):"{"==e?E(r)&&S(r,t,m?"block":"top",!1):("word"==e&&(n="error"),r.context.type)},atBlock_parens:function(e,t,n){return")"==e?E(n):"{"==e||"}"==e?T(e,t,n,2):Q.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,r){return"{"==e?S(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(n="variable","restricted_atBlock_before"):C(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,E(r)):"word"==e?(n="@font-face"==r.stateArg&&!d.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!f.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(n="variable","keyframes"):"{"==e?S(r,t,"top"):C(e,t,r)},at:function(e,t,r){return";"==e?E(r):"{"==e||"}"==e?T(e,t,r):("word"==e?n="tag":"hash"==e&&(n="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?E(r):"{"==e||";"==e?T(e,t,r):("word"==e?n="variable":"variable"!=e&&"("!=e&&")"!=e&&(n="error"),"interpolation")}};return{name:e.name,startState:function(){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new x(r?"block":"top",0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var i=(r.tokenize||b)(e,r);return i&&"object"==typeof i&&(t=i[1],i=i[0]),n=i,"comment"!=t&&(r.state=Q[r.state](t,e,r)),n},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=i&&")"!=i||(r=r.prev),r.prev&&("}"!=i||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=i||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=i||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-n.unit)):o=(r=r.prev).indent),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:g,block:{open:"/*",close:"*/"}},autocomplete:_}}}function i(e){for(var t={},n=0;nE,gss:()=>Q,keywords:()=>S,less:()=>$,mkCSS:()=>r,sCSS:()=>T});var o=["domain","regexp","url","url-prefix"],a=i(o),s=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],l=i(s),u=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],c=i(u),d=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],f=i(d),h=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=i(h),m=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],g=i(m),v=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],O=i(v),y=i(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),b=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],w=i(b),k=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=i(k),_=o.concat(s).concat(u).concat(d).concat(h).concat(m).concat(b).concat(k);const S={properties:h,colors:b,fonts:v,values:k,all:_},P={documentTypes:a,mediaTypes:l,mediaFeatures:c,mediaValueKeywords:f,propertyKeywords:p,nonStandardPropertyKeywords:g,fontProperties:O,counterDescriptors:y,colorKeywords:w,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=C,C(e,t))}}},E=r({name:"css"});function C(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}const T=r({name:"scss",mediaTypes:l,mediaFeatures:c,mediaValueKeywords:f,propertyKeywords:p,nonStandardPropertyKeywords:g,colorKeywords:w,valueKeywords:x,fontProperties:O,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=C,C(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["def","variable-definition"]:["variableName.special","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}}}),$=r({name:"less",mediaTypes:l,mediaFeatures:c,mediaValueKeywords:f,propertyKeywords:p,nonStandardPropertyKeywords:g,colorKeywords:w,valueKeywords:x,fontProperties:O,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=C,C(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["def","variable-definition"]:["variableName","variable"])},"&":function(){return["atom","atom"]}}}),Q=r({name:"gss",documentTypes:a,mediaTypes:l,mediaFeatures:c,propertyKeywords:p,nonStandardPropertyKeywords:g,fontProperties:O,counterDescriptors:y,colorKeywords:w,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=C,C(e,t))}}})},67065:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cypher:()=>h});var r,i=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")},o=function(e){r=null;var t=e.next();if('"'===t)return e.match(/^.*?"/),"string";if("'"===t)return e.match(/^.*?'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return r=t,"punctuation";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(f.test(t))return e.eatWhile(f),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return l.test(n)?"builtin":u.test(n)?"def":c.test(n)||d.test(n)?"keyword":"variable"},a=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},s=function(e){return e.indent=e.context.indent,e.context=e.context.prev},l=i(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),u=i(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),c=i(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),d=i(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;const h={name:"cypher",startState:function(){return{tokenize:o,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===r)a(t,")",e.column());else if("["===r)a(t,"]",e.column());else if("{"===r)a(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"===t.context.type;)s(t);t.context&&r===t.context.type&&s(t)}else"."===r&&t.context&&"pattern"===t.context.type?s(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?a(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?null:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0}}},61632:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rw});var i="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";const o={keywords:r("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+i),blockKeywords:r(i),builtin:r("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:r("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}};var a,s=o.statementIndentUnit,l=o.keywords,u=o.builtin,c=o.blockKeywords,d=o.atoms,f=o.hooks,h=o.multiLineStrings,p=/[+\-*&%=<>!?|\/]/;function m(e,t){var n,r=e.next();if(f[r]){var i=f[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r||"`"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!h)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return a=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("+"))return t.tokenize=v,v(e,t);if(e.eat("*"))return t.tokenize=g,g(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(p.test(r))return e.eatWhile(p),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return l.propertyIsEnumerable(o)?(c.propertyIsEnumerable(o)&&(a="newstatement"),"keyword"):u.propertyIsEnumerable(o)?(c.propertyIsEnumerable(o)&&(a="newstatement"),"builtin"):d.propertyIsEnumerable(o)?"atom":"variable"}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function O(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function y(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new O(r,t,n,null,e.context)}function b(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const w={name:"d",startState:function(e){return{tokenize:null,context:new O(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;a=null;var r=(t.tokenize||m)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=a&&":"!=a&&","!=a||"statement"!=n.type)if("{"==a)y(t,e.column(),"}");else if("["==a)y(t,e.column(),"]");else if("("==a)y(t,e.column(),")");else if("}"==a){for(;"statement"==n.type;)n=b(t);for("}"==n.type&&(n=b(t));"statement"==n.type;)n=b(t)}else a==n.type?b(t):(("}"==n.type||"top"==n.type)&&";"!=a||"statement"==n.type&&"newstatement"==a)&&y(t,e.column(),"statement");else b(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=m&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:s||n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},37155:(e,t,n)=>{"use strict";n.r(t),n.d(t,{diff:()=>i});var r={"+":"inserted","-":"deleted","@":"meta"};const i={name:"diff",token:function(e){var t=e.string.search(/[\t ]+?$/);if(!e.sol()||0===t)return e.skipToEnd(),("error "+(r[e.string.charAt(0)]||"")).replace(/ $/,"");var n=r[e.peek()]||e.skipToEnd();return-1===t?e.skipToEnd():e.pos=t,n}}},95812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dockerFile:()=>h});var r=n(68343),i="from",o=new RegExp("^(\\s*)\\b("+i+")\\b","i"),a=["run","cmd","entrypoint","shell"],s=new RegExp("^(\\s*)("+a.join("|")+")(\\s+\\[)","i"),l="expose",u=new RegExp("^(\\s*)("+l+")(\\s+)","i"),c="("+[i,l].concat(a).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")",d=new RegExp("^(\\s*)"+c+"(\\s*)(#.*)?$","i"),f=new RegExp("^(\\s*)"+c+"(\\s+)","i");const h=(0,r.Q)({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:o,token:[null,"keyword"],sol:!0,next:"from"},{regex:d,token:[null,"keyword",null,"error"],sol:!0},{regex:s,token:[null,"keyword",null],sol:!0,next:"array"},{regex:u,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:f,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}})},16398:(e,t,n)=>{"use strict";var r;function i(e,t){return r=t,e}function o(e,t){var n,r=e.next();if("<"!=r||!e.eat("!")){if("<"==r&&e.eat("?"))return t.tokenize=("meta","?>",function(e,t){for(;!e.eol();){if(e.match("?>")){t.tokenize=o;break}e.next()}return"meta"}),i("meta",r);if("#"==r&&e.eatWhile(/[\w]/))return i("atom","tag");if("|"==r)return i("keyword","separator");if(r.match(/[\(\)\[\]\-\.,\+\?>]/))return i(null,r);if(r.match(/[\[\]]/))return i("rule",r);if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,a=!1;null!=(r=e.next());){if(r==n&&!a){t.tokenize=o;break}a=!a&&"\\"==r}return i("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var s=e.current();return null!==s.substr(s.length-1,s.length).match(/\?|\+/)&&e.backUp(1),i("tag","tag")}return"%"==r||"*"==r?i("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),i(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=a,a(e,t)):e.eatWhile(/[\w]/)?i("keyword","doindent"):void 0}function a(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=o;break}r="-"==n?r+1:0}return i("comment","comment")}n.r(t),n.d(t,{dtd:()=>s});const s={name:"dtd",startState:function(){return{tokenize:o,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t),i=t.stack[t.stack.length-1];return"["==e.current()||"doindent"===r||"["==r?t.stack.push("rule"):"endtag"===r?t.stack[t.stack.length-1]="endtag":"]"==e.current()||"]"==r||">"==r&&"rule"==i?t.stack.pop():"["==r&&t.stack.push("["),n},indent:function(e,t,n){var i=e.stack.length;return"]"===t.charAt(0)?i--:">"===t.substr(t.length-1,t.length)&&("<"===t.substr(0,1)||"doindent"==r&&t.length>1||("doindent"==r?i--:">"==r&&t.length>1||"tag"==r&&">"!==t||("tag"==r&&"rule"==e.stack[e.stack.length-1]?i--:"tag"==r?i++:">"===t&&"rule"==e.stack[e.stack.length-1]&&">"===r?i--:">"===t&&"rule"==e.stack[e.stack.length-1]||("<"!==t.substr(0,1)&&">"===t.substr(0,1)?i-=1:">"===t||(i-=1)))),null!=r&&"]"!=r||i--),e.baseIndent+i*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}}},46528:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;nO});var o={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};o.otherDefinition=o.unnamedDefinition.concat(o.namedDefinition).concat(o.otherParameterizedDefinition),o.definition=o.typeParameterizedDefinition.concat(o.otherDefinition),o.parameterizedDefinition=o.typeParameterizedDefinition.concat(o.otherParameterizedDefinition),o.simpleDefinition=o.constantSimpleDefinition.concat(o.variableSimpleDefinition).concat(o.otherSimpleDefinition),o.keyword=o.statement.concat(o.separator).concat(o.other);var a="[-_a-zA-Z?!*@<>$%]+",s=new RegExp("^"+a),l={symbolKeyword:a+":",symbolClass:"<"+a+">",symbolGlobal:"\\*"+a+"\\*",symbolConstant:"\\$"+a},u={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var c in l)l.hasOwnProperty(c)&&(l[c]=new RegExp("^"+l[c]));l.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var d={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},f={},h={};function p(e,t,n){return t.tokenize=n,n(e,t)}function m(e,t){var n=e.peek();if("'"==n||'"'==n)return e.next(),p(e,t,v(n,"string"));if("/"==n){if(e.next(),e.eat("*"))return p(e,t,g);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==n)return e.next(),'"'==(n=e.peek())?(e.next(),p(e,t,v('"',"string"))):"b"==n?(e.next(),e.eatWhile(/[01]/),"number"):"x"==n?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==n?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==n?(e.next(),"punctuation"):"["==n||"("==n?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==n)return e.next(),"="==(n=e.peek())?(e.next(),"="==(n=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==n){if(e.next(),"="==(n=e.peek()))return e.next(),"operator";if(":"==n)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(n))return e.next(),"bracket";if(-1!=".,".indexOf(n))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var r in l)if(l.hasOwnProperty(r)){var o=l[r];if(o instanceof Array&&i(o,(function(t){return e.match(t)}))||e.match(o))return u[r]}return/[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),f.hasOwnProperty(e.current())?h[e.current()]:e.current().match(s)?"variable":(e.next(),"variableName.standard"))}function g(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if("/"==n&&r){if(!(o>0)){t.tokenize=m;break}o--}else"*"==n&&i&&o++;r="*"==n,i="/"==n}return"comment"}function v(e,t){return function(n,r){for(var i,o=!1,a=!1;null!=(i=n.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return!a&&o||(r.tokenize=m),t}}r(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){r(o[e],(function(t){f[t]=e,h[t]=d[e]}))}));const O={name:"dylan",startState:function(){return{tokenize:m,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}}},24140:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ebnf:()=>r});const r={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'==e.peek()||"'"==e.peek()?(t.stringType=e.peek(),e.next(),t.stack.unshift(1)):e.match("/*")?(t.stack.unshift(0),t.commentType=0):e.match("(*")&&(t.stack.unshift(0),t.commentType=1)),t.stack[0]){case 1:for(;1===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string";case 0:for(;0===t.stack[0]&&!e.eol();)0===t.commentType&&e.match("*/")||1===t.commentType&&e.match("*)")?(t.stack.shift(),t.commentType=null):e.match(/^.[^\*]*/);return"comment";case 2:for(;2===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift(2),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(n))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":-1!=["[","]","(",")"].indexOf(e.peek())?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}},54176:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;ry});var i,o=r("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),a=r("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),s=r("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),l=r("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),u=r("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),c=r("catch class do else finally for if switch try while"),d=r("true false null"),f={"#":function(e,t){return!!t.startOfLine&&(e.skipToEnd(),"meta")}},h=/[+\-*&%=<>!?|\/]/;function p(e,t){var n,r=e.next();if(f[r]){var g=f[r](e,t);if(!1!==g)return g}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=m,m(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(h.test(r))return e.eatWhile(h),"operator";e.eatWhile(/[\w\$_]/);var v=e.current().toLowerCase();if(o.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"keyword";if(a.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"variable";if(s.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"modifier";if(l.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"type";if(u.propertyIsEnumerable(v))return c.propertyIsEnumerable(v)&&(i="newstatement"),"builtin";for(var O=v.length-1;O>=0&&(!isNaN(v[O])||"_"==v[O]);)--O;if(O>0){var y=v.substr(0,O+1);if(l.propertyIsEnumerable(y))return c.propertyIsEnumerable(y)&&(i="newstatement"),"type"}return d.propertyIsEnumerable(v)?"atom":null}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){return e.context=new g(e.indented,t,n,null,e.context)}function O(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const y={name:"ecl",startState:function(e){return{tokenize:null,context:new g(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;i=null;var r=(t.tokenize||p)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("{"==i)v(t,e.column(),"}");else if("["==i)v(t,e.column(),"]");else if("("==i)v(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=O(t);for("}"==n.type&&(n=O(t));"statement"==n.type;)n=O(t)}else i==n.type?O(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&v(t,e.column(),"statement");else O(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=p&&null!=e.tokenize)return 0;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/}}},36653:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0,r=e.length;ns});var i=r(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),o=r([":=","and then","and","or","<<",">>"]);function a(e,t){if(e.eatSpace())return null;var n,r=e.next();return'"'==r||"'"==r?function(e,t,n){return n.tokenize.push(e),e(t,n)}((n=r,"string",function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize.pop();break}i=!i&&"%"==r}return"string"}),e,t):"-"==r&&e.eat("-")?(e.skipToEnd(),"comment"):":"==r&&e.eat("=")?"operator":/[0-9]/.test(r)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"variable"):/[a-zA-Z_0-9]/.test(r)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"variable"):/[=+\-\/*^%<>~]/.test(r)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}const s={name:"eiffel",startState:function(){return{tokenize:[a]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t);if("variable"==n){var r=e.current();n=i.propertyIsEnumerable(e.current())?"keyword":o.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(r)?"tag":/^0[bB][0-1]+$/g.test(r)||/^0[cC][0-7]+$/g.test(r)||/^0[xX][a-fA-F0-9]+$/g.test(r)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(r)||/^[0-9]+$/g.test(r)?"number":"variable"}return n},languageData:{commentTokens:{line:"--"}}}},63488:(e,t,n)=>{"use strict";function r(e,t,n){return t(n),n(e,t)}n.r(t),n.d(t,{elm:()=>y});var i=/[a-z]/,o=/[A-Z]/,a=/[a-zA-Z0-9_]/,s=/[0-9]/,l=/[0-9A-Fa-f]/,u=/[-&*+.\\/<>=?^|:]/,c=/[(),[\]{}]/,d=/[ \v\f]/;function f(){return function(e,t){if(e.eatWhile(d))return null;var n=e.next();if(c.test(n))return"{"===n&&e.eat("-")?r(e,t,h(1)):"["===n&&e.match("glsl|")?r(e,t,v):"builtin";if("'"===n)return r(e,t,g);if('"'===n)return e.eat('"')?e.eat('"')?r(e,t,p):"string":r(e,t,m);if(o.test(n))return e.eatWhile(a),"type";if(i.test(n)){var f=1===e.pos;return e.eatWhile(a),f?"def":"variable"}if(s.test(n)){if("0"===n){if(e.eat(/[xX]/))return e.eatWhile(l),"number"}else e.eatWhile(s);return e.eat(".")&&e.eatWhile(s),e.eat(/[eE]/)&&(e.eat(/[-+]/),e.eatWhile(s)),"number"}return u.test(n)?"-"===n&&e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(u),"keyword"):"_"===n?"keyword":"error"}}function h(e){return 0==e?f():function(t,n){for(;!t.eol();){var r=t.next();if("{"==r&&t.eat("-"))++e;else if("-"==r&&t.eat("}")&&0==--e)return n(f()),"comment"}return n(h(e)),"comment"}}function p(e,t){for(;!e.eol();)if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(f()),"string";return"string"}function m(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(f()),"string"):(e.skipToEnd(),t(f()),"error")}function g(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(f()),"string"):(e.skipToEnd(),t(f()),"error")}function v(e,t){for(;!e.eol();)if("|"===e.next()&&e.eat("]"))return t(f()),"string";return"string"}var O={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const y={name:"elm",startState:function(){return{f:f()}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return O.hasOwnProperty(r)?"keyword":n},languageData:{commentTokens:{line:"--"}}}},58984:(e,t,n)=>{"use strict";n.r(t),n.d(t,{erlang:()=>R});var r=["-type","-spec","-export_type","-opaque"],i=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],o=/[\->,;]/,a=["->",";",","],s=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],l=/[\+\-\*\/<>=\|:!]/,u=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],c=/[<\(\[\{]/,d=["<<","(","[","{"],f=/[>\)\]\}]/,h=["}","]",")",">>"],p=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],m=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],g=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,v=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function O(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function y(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;01&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return C(e,{g:["{"]});case"]":return C(e,{i:["["]});case")":return C(e,{i:["("]});case">>":return C(e,{i:["<<"]});case"end":return C(e,{i:["begin","case","fun","if","receive","try"]});case",":return C(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return C(e,{r:["when"],m:["try","if","case","receive"]});case";":return C(e,{E:["case","fun","if","receive","try","when"]});case"catch":return C(e,{e:["try"]});case"of":return C(e,{e:["case"]});case"after":return C(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return S(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"macroName";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function S(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function P(e){return S(e,0,0,e)}function E(e,t){var n=e.tokenStack.length,r=t||1;return!(n({tokenStack:[],in_string:!1,in_atom:!1}),token:function(e,t){if(t.in_string)return t.in_string=!b(e),_(t,e,"string");if(t.in_atom)return t.in_atom=!w(e),_(t,e,"atom");if(e.eatSpace())return _(t,e,"whitespace");if(!E(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return x(e.current(),r)?_(t,e,"type"):_(t,e,"attribute");var n=e.next();if("%"==n)return e.skipToEnd(),_(t,e,"comment");if(":"==n)return _(t,e,"colon");if("?"==n)return e.eatSpace(),e.eatWhile(g),_(t,e,"macro");if("#"==n)return e.eatSpace(),e.eatWhile(g),_(t,e,"record");if("$"==n)return"\\"!=e.next()||e.match(v)?_(t,e,"number"):_(t,e,"error");if("."==n)return _(t,e,"dot");if("'"==n){if(!(t.in_atom=!w(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),_(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return _(t,e,"function")}return _(t,e,"atom")}if('"'==n)return t.in_string=!b(e),_(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(n))return e.eatWhile(g),_(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(n)){if(e.eatWhile(g),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),_(t,e,"fun");var k=e.current();return x(k,i)?_(t,e,"keyword"):x(k,s)?_(t,e,"operator"):e.match(/\s*\(/,!1)?!x(k,m)||":"==E(t).token&&"erlang"!=E(t,2).token?x(k,p)?_(t,e,"guard"):_(t,e,"function"):_(t,e,"builtin"):":"==function(e){var t=e.match(/^\s*([^\s%])/,!1);return t?t[1]:""}(e)?_(t,e,"erlang"==k?"builtin":"function"):x(k,["true","false"])?_(t,e,"boolean"):_(t,e,"atom")}var S=/[0-9]/;return S.test(n)?(e.eatWhile(S),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(S)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(S)||e.backUp(2):e.eatWhile(S)||e.backUp(1)):e.backUp(1)),_(t,e,"number")):O(e,c,d)?_(t,e,"open_paren"):O(e,f,h)?_(t,e,"close_paren"):y(e,o,a)?_(t,e,"separator"):y(e,l,u)?_(t,e,"operator"):_(t,e,null)},indent:function(e,t,n){var r,i,o=Q(i=t.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/))&&0===i.index?i[0]:"",a=E(e,1),s=E(e,2);return e.in_string||e.in_atom?null:s?"when"==a.token?a.column+n.unit:"when"===o&&"function"===s.type?s.indent+n.unit:"("===o&&"fun"===a.token?a.column+3:"catch"===o&&(r=T(e,["try"]))?r.column:x(o,["end","after","of"])?(r=T(e,["begin","case","fun","if","receive","try"]))?r.column:null:x(o,h)?(r=T(e,d))?r.column:null:x(a.token,[",","|","||"])||x(o,[",","|","||"])?(r=function(e){var t=e.tokenStack.slice(0,-1),n=$(t,"type",["open_paren"]);return!!Q(t[n])&&t[n]}(e))?r.column+r.token.length:n.unit:"->"==a.token?x(s.token,["receive","case","if","try"])?s.column+n.unit+n.unit:s.column+n.unit:x(a.token,d)?a.column+a.token.length:(r=function(e){var t=e.tokenStack,n=$(t,"type",["open_paren","separator","keyword"]),r=$(t,"type",["operator"]);return Q(n)&&Q(r)&&n{"use strict";n.r(t),n.d(t,{factor:()=>r});const r=(0,n(68343).Q)({start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}})},42753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fcl:()=>d});var r={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},i={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},o={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},a={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},s=/[+\-*&^%:=<>!|\/]/;function l(e,t){var n=e.next();if(/[\d\.]/.test(n))return"."==n?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==n?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==n||"("==n){if(e.eat("*"))return t.tokenize=u,u(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(s.test(n))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var l=e.current().toLowerCase();return r.propertyIsEnumerable(l)||i.propertyIsEnumerable(l)||o.propertyIsEnumerable(l)?"keyword":a.propertyIsEnumerable(l)?"atom":"variable"}function u(e,t){for(var n,r=!1;n=e.next();){if(("/"==n||")"==n)&&r){t.tokenize=l;break}r="*"==n}return"comment"}function c(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}const d={name:"fcl",startState:function(e){return{tokenize:null,context:new c(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var r=(t.tokenize||l)(e,t);if("comment"==r)return r;null==n.align&&(n.align=!0);var a=e.current().toLowerCase();return i.propertyIsEnumerable(a)?function(e,t,n){e.context=new c(e.indented,t,"end_block",null,e.context)}(t,e.column()):o.propertyIsEnumerable(a)&&function(e){e.context.prev&&("end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev)}(t),t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=l&&null!=e.tokenize)return 0;var r=e.context,i=o.propertyIsEnumerable(t);return r.align?r.column+(i?0:1):r.indented+(i?0:n.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}}},90313:(e,t,n)=>{"use strict";function r(e){var t=[];return e.split(" ").forEach((function(e){t.push({name:e})})),t}n.r(t),n.d(t,{forth:()=>s});var i=r("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),o=r("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function a(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].name===t.toUpperCase())return e[n]}const s={name:"forth",startState:function(){return{state:"",base:10,coreWordList:i,immediateWordList:o,wordList:[]}},token:function(e,t){var n;if(e.eatSpace())return null;if(""===t.state){if(e.match(/^(\]|:NONAME)(\s|$)/i))return t.state=" compilation","builtin";if(n=e.match(/^(\:)\s+(\S+)(\s|$)+/))return t.wordList.push({name:n[2].toUpperCase()}),t.state=" compilation","def";if(n=e.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return t.wordList.push({name:n[2].toUpperCase()}),"def";if(n=e.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"}else{if(e.match(/^(\;|\[)(\s)/))return t.state="",e.backUp(1),"builtin";if(e.match(/^(\;|\[)($)/))return t.state="","builtin";if(e.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(n=e.match(/^(\S+)(\s+|$)/))?void 0!==a(t.wordList,n[1])?"variable":"\\"===n[1]?(e.skipToEnd(),"comment"):void 0!==a(t.coreWordList,n[1])?"builtin":void 0!==a(t.immediateWordList,n[1])?"keyword":"("===n[1]?(e.eatWhile((function(e){return")"!==e})),e.eat(")"),"comment"):".("===n[1]?(e.eatWhile((function(e){return")"!==e})),e.eat(")"),"string"):'S"'===n[1]||'."'===n[1]||'C"'===n[1]?(e.eatWhile((function(e){return'"'!==e})),e.eat('"'),"string"):n[1]-68719476735?"number":"atom":void 0}}},78968:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0;nc});var i=r(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),o=r(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),a=r(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),s=/[+\-*&=<>\/\:]/,l=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function u(e,t){if(e.match(l))return"operator";var n,r=e.next();if("!"==r)return e.skipToEnd(),"comment";if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\),]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if(s.test(r))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_]/);var u=e.current().toLowerCase();return i.hasOwnProperty(u)?"keyword":o.hasOwnProperty(u)||a.hasOwnProperty(u)?"builtin":"variable"}const c={name:"fortran",startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||u)(e,t)}}},78923:(e,t,n)=>{"use strict";function r(e){var t=[],n="",r={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},i={};function o(e,t){for(var n,r=!1;null!=(n=e.next());){if("/"===n&&r){t.tokenize=null;break}r="*"===n}return"comment"}return"x86"===e?(n="#",i.al="variable",i.ah="variable",i.ax="variable",i.eax="variableName.special",i.rax="variableName.special",i.bl="variable",i.bh="variable",i.bx="variable",i.ebx="variableName.special",i.rbx="variableName.special",i.cl="variable",i.ch="variable",i.cx="variable",i.ecx="variableName.special",i.rcx="variableName.special",i.dl="variable",i.dh="variable",i.dx="variable",i.edx="variableName.special",i.rdx="variableName.special",i.si="variable",i.esi="variableName.special",i.rsi="variableName.special",i.di="variable",i.edi="variableName.special",i.rdi="variableName.special",i.sp="variable",i.esp="variableName.special",i.rsp="variableName.special",i.bp="variable",i.ebp="variableName.special",i.rbp="variableName.special",i.ip="variable",i.eip="variableName.special",i.rip="variableName.special",i.cs="keyword",i.ds="keyword",i.ss="keyword",i.es="keyword",i.fs="keyword",i.gs="keyword"):"arm"!==e&&"armv6"!==e||(n="@",r.syntax="builtin",i.r0="variable",i.r1="variable",i.r2="variable",i.r3="variable",i.r4="variable",i.r5="variable",i.r6="variable",i.r7="variable",i.r8="variable",i.r9="variable",i.r10="variable",i.r11="variable",i.r12="variable",i.sp="variableName.special",i.lr="variableName.special",i.pc="variableName.special",i.r13=i.sp,i.r14=i.lr,i.r15=i.pc,t.push((function(e,t){if("#"===e)return t.eatWhile(/\w/),"number"}))),{name:"gas",startState:function(){return{tokenize:null}},token:function(e,a){if(a.tokenize)return a.tokenize(e,a);if(e.eatSpace())return null;var s,l,u=e.next();if("/"===u&&e.eat("*"))return a.tokenize=o,o(e,a);if(u===n)return e.skipToEnd(),"comment";if('"'===u)return function(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'===n&&!r)return!1;r=!r&&"\\"===n}}(e),"string";if("."===u)return e.eatWhile(/\w/),l=e.current().toLowerCase(),(s=r[l])||null;if("="===u)return e.eatWhile(/\w/),"tag";if("{"===u)return"bracket";if("}"===u)return"bracket";if(/\d/.test(u))return"0"===u&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(u))return e.eatWhile(/\w/),e.eat(":")?"tag":(l=e.current().toLowerCase(),(s=i[l])||null);for(var c=0;ci,gasArm:()=>o});const i=r("x86"),o=r("arm")},8952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{gherkin:()=>r});const r={name:"gherkin",startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}},60574:(e,t,n)=>{"use strict";n.r(t),n.d(t,{go:()=>d});var r,i={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},o={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var n,u=e.next();if('"'==u||"'"==u||"`"==u)return t.tokenize=(n=u,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"`"!=n&&"\\"==r}return(o||!i&&"`"!=n)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(u))return"."==u?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==u?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(u))return r=u,null;if("/"==u){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(u))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var c=e.current();return i.propertyIsEnumerable(c)?("case"!=c&&"default"!=c||(r="case"),"keyword"):o.propertyIsEnumerable(c)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function c(e,t,n){return e.context=new u(e.indented,t,n,null,e.context)}const d={name:"go",startState:function(e){return{tokenize:null,context:new u(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==n.type&&(n.type="}")),e.eatSpace())return null;r=null;var i=(t.tokenize||s)(e,t);return"comment"==i||(null==n.align&&(n.align=!0),"{"==r?c(t,e.column(),"}"):"["==r?c(t,e.column(),"]"):"("==r?c(t,e.column(),")"):"case"==r?n.type="case":("}"==r&&"}"==n.type||r==n.type)&&function(e){if(e.context.prev){var t=e.context.type;")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}(t),t.startOfLine=!1),i},indent:function(e,t,n){if(e.tokenize!=s&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(t))return r.indented;var o=i==r.type;return r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s([{}]|case |default\s*:)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},9259:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rO});var i,o=r("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),a=r("catch class def do else enum finally for if interface switch trait try while"),s=r("return break continue"),l=r("null true false this");function u(e,t){var n=e.next();if('"'==n||"'"==n)return c(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return i=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(h),h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(p(t.lastToken,!1))return c(n,e,t)}if("-"==n&&e.eat(">"))return i="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return i="proplabel","property";var r=e.current();return l.propertyIsEnumerable(r)?"atom":o.propertyIsEnumerable(r)?(a.propertyIsEnumerable(r)?i="newstatement":s.propertyIsEnumerable(r)&&(i="standalone"),"keyword"):"variable"}function c(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,o=!1,a=!r;null!=(i=t.next());){if(i==e&&!o){if(!r)break;if(t.match(e+e)){a=!0;break}}if('"'==e&&"$"==i&&!o){if(t.eat("{"))return n.tokenize.push(d()),"string";if(t.match(/^\w/,!1))return n.tokenize.push(f),"string"}o=!o&&"\\"==i}return a&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function d(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return u(t,n)}return t.isBase=!0,t}function f(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return n?"."==n[0]?null:"variable":(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t))}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function p(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function m(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function g(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function v(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}u.isBase=!0;const O={name:"groovy",startState:function(e){return{tokenize:[u],context:new m(-e,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||p(t.lastToken,!0)||(v(t),n=t.context)),e.eatSpace())return null;i=null;var r=t.tokenize[t.tokenize.length-1](e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("->"==i&&"statement"==n.type&&"}"==n.prev.type)v(t),t.context.align=!1;else if("{"==i)g(t,e.column(),"}");else if("["==i)g(t,e.column(),"]");else if("("==i)g(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=v(t);for("}"==n.type&&(n=v(t));"statement"==n.type;)n=v(t)}else i==n.type?v(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&g(t,e.column(),"statement");else v(t);return t.startOfLine=!1,t.lastToken=i||r,r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;"statement"!=i.type||p(e.lastToken,!0)||(i=i.prev);var o=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:n.unit):i.align?i.column+(o?0:1):i.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}},39498:(e,t,n)=>{"use strict";function r(e,t,n){return t(n),n(e,t)}n.r(t),n.d(t,{haskell:()=>O});var i=/[a-z_]/,o=/[A-Z]/,a=/\d/,s=/[0-9A-Fa-f]/,l=/[0-7]/,u=/[a-z_A-Z0-9'\xa1-\uffff]/,c=/[-!#$%&*+.\/<=>?@\\^|~:]/,d=/[(),;[\]`{}]/,f=/[ \t\v\f]/;function h(e,t){if(e.eatWhile(f))return null;var n=e.next();if(d.test(n)){if("{"==n&&e.eat("-")){var h="comment";return e.eat("#")&&(h="meta"),r(e,t,p(h,1))}return null}if("'"==n)return e.eat("\\"),e.next(),e.eat("'")?"string":"error";if('"'==n)return r(e,t,m);if(o.test(n))return e.eatWhile(u),e.eat(".")?"qualifier":"type";if(i.test(n))return e.eatWhile(u),"variable";if(a.test(n)){if("0"==n){if(e.eat(/[xX]/))return e.eatWhile(s),"integer";if(e.eat(/[oO]/))return e.eatWhile(l),"number"}return e.eatWhile(a),h="number",e.match(/^\.\d+/)&&(h="number"),e.eat(/[eE]/)&&(h="number",e.eat(/[-+]/),e.eatWhile(a)),h}return"."==n&&e.eat(".")?"keyword":c.test(n)?"-"==n&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(c))?(e.skipToEnd(),"comment"):(e.eatWhile(c),"variable"):"error"}function p(e,t){return 0==t?h:function(n,r){for(var i=t;!n.eol();){var o=n.next();if("{"==o&&n.eat("-"))++i;else if("-"==o&&n.eat("}")&&0==--i)return r(h),e}return r(p(e,i)),e}}function m(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(h),"string";if("\\"==n){if(e.eol()||e.eat(f))return t(g),"string";e.eat("&")||e.next()}}return t(h),"error"}function g(e,t){return e.eat("\\")?r(e,t,m):(e.next(),t(h),"error")}var v=function(){var e={};function t(t){return function(){for(var n=0;n","@","~","=>"),t("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),t("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),t("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3"),e}();const O={name:"haskell",startState:function(){return{f:h}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return v.hasOwnProperty(r)?v[r]:n},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}}},64114:(e,t,n)=>{"use strict";function r(e){return{type:e,style:"keyword"}}n.r(t),n.d(t,{haxe:()=>ie,hxml:()=>oe});var i,o=r("keyword a"),a=r("keyword b"),s=r("keyword c"),l=r("operator"),u={type:"atom",style:"atom"},c={type:"attribute",style:"attribute"},d=r("typedef"),f={if:o,while:o,else:a,do:a,try:a,return:s,break:s,continue:s,new:s,throw:s,var:r("var"),inline:c,static:c,using:r("import"),public:c,private:c,cast:r("cast"),import:r("import"),macro:r("macro"),function:r("function"),catch:r("catch"),untyped:r("untyped"),callback:r("cb"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,never:r("property_access"),trace:r("trace"),class:d,abstract:d,enum:d,interface:d,typedef:d,extends:d,implements:d,dynamic:d,true:u,false:u,null:u},h=/[+\-*&%=<>!?|]/;function p(e,t,n){return t.tokenize=n,n(e,t)}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function g(e,t,n){return d=e,i=n,t}function v(e,t){var n=e.next();if('"'==n||"'"==n)return p(e,t,(r=n,function(e,t){return m(e,r)&&(t.tokenize=v),g("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),g("number","number");if(/\d/.test(n)||"-"==n&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),g("number","number");if(t.reAllowed&&"~"==n&&e.eat(/\//))return m(e,"/"),e.eatWhile(/[gimsu]/),g("regexp","string.special");if("/"==n)return e.eat("*")?p(e,t,O):e.eat("/")?(e.skipToEnd(),g("comment","comment")):(e.eatWhile(h),g("operator",null,e.current()));if("#"==n)return e.skipToEnd(),g("conditional","meta");if("@"==n)return e.eat(/:/),e.eatWhile(/[\w_]/),g("metadata","meta");if(h.test(n))return e.eatWhile(h),g("operator",null,e.current());if(/[A-Z]/.test(n))return e.eatWhile(/[\w_<>]/),g("type","type",i=e.current());e.eatWhile(/[\w_]/);var r,i=e.current(),o=f.propertyIsEnumerable(i)&&f[i];return o&&t.kwAllowed?g(o.type,o.style,i):g("variable","variable",i)}function O(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return g("comment","comment")}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function b(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function k(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r=0;e--)_.cc.push(arguments[e])}function P(){return S.apply(null,arguments),!0}function E(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function C(e){var t=_.state;if(t.context){if(_.marked="def",E(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(E(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var T={name:"this",next:null};function $(){_.state.context||(_.state.localVars=T),_.state.context={prev:_.state.context,vars:_.state.localVars}}function Q(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}function R(e,t){var n=function(){var n=_.state;n.lexical=new b(n.indented,_.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function A(){var e=_.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function j(e){return function t(n){return n==e?P():";"==e?S():P(t)}}function D(e){return"@"==e?P(N):"var"==e?P(R("vardef"),Z,j(";"),A):"keyword a"==e?P(R("form"),M,D,A):"keyword b"==e?P(R("form"),D,A):"{"==e?P(R("}"),$,Y,A,Q):";"==e?P():"attribute"==e?P(W):"function"==e?P(J):"for"==e?P(R("form"),j("("),R(")"),H,j(")"),A,D,A):"variable"==e?P(R("stat"),X):"switch"==e?P(R("form"),M,R("}","switch"),j("{"),Y,A,A):"case"==e?P(M,j(":")):"default"==e?P(j(":")):"catch"==e?P(R("form"),$,j("("),re,j(")"),D,A,Q):"import"==e?P(F,j(";")):"typedef"==e?P(U):S(R("stat"),M,j(";"),A)}function M(e){return y.hasOwnProperty(e)||"type"==e?P(z):"function"==e?P(J):"keyword c"==e?P(I):"("==e?P(R(")"),I,j(")"),A,z):"operator"==e?P(M):"["==e?P(R("]"),V(I,"]"),A,z):"{"==e?P(R("}"),V(B,"}"),A,z):P()}function I(e){return e.match(/[;\}\)\],]/)?S():S(M)}function z(e,t){return"operator"==e&&/\+\+|--/.test(t)?P(z):"operator"==e||":"==e?P(M):";"!=e?"("==e?P(R(")"),V(M,")"),A,z):"."==e?P(q,z):"["==e?P(R("]"),M,j("]"),A,z):void 0:void 0}function W(e){return"attribute"==e?P(W):"function"==e?P(J):"var"==e?P(Z):void 0}function N(e){return":"==e||"variable"==e?P(N):"("==e?P(R(")"),V(L,")"),A,D):void 0}function L(e){if("variable"==e)return P()}function F(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(x(t),P()):"variable"==e||"property"==e||"."==e||"*"==t?P(F):void 0}function U(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(x(t),P()):"type"==e&&/[A-Z]/.test(t.charAt(0))?P():void 0}function X(e){return":"==e?P(A,D):S(z,j(";"),A)}function q(e){if("variable"==e)return _.marked="property",P()}function B(e){if("variable"==e&&(_.marked="property"),y.hasOwnProperty(e))return P(j(":"),M)}function V(e,t){function n(r){return","==r?P(e,n):r==t?P():P(j(t))}return function(r){return r==t?P():S(e,n)}}function Y(e){return"}"==e?P():S(D,Y)}function Z(e,t){return"variable"==e?(C(t),P(ee,G)):P()}function G(e,t){return"="==t?P(M,G):","==e?P(Z):void 0}function H(e,t){return"variable"==e?(C(t),P(K,M)):S()}function K(e,t){if("in"==t)return P()}function J(e,t){return"variable"==e||"type"==e?(C(t),P(J)):"new"==t?P(J):"("==e?P(R(")"),$,V(re,")"),A,ee,D,Q):void 0}function ee(e){if(":"==e)return P(te)}function te(e){return"type"==e||"variable"==e?P():"{"==e?P(R("}"),V(ne,"}"),A):void 0}function ne(e){if("variable"==e)return P(ee)}function re(e,t){if("variable"==e)return C(t),P(ee)}Q.lex=!0,A.lex=!0;const ie={name:"haxe",startState:function(e){return{tokenize:v,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new b(-e,0,"block",!1),importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:null,indented:0}},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==d?n:(t.reAllowed=!("operator"!=d&&"keyword c"!=d&&!d.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=d,function(e,t,n,r,i){var o=e.cc;for(_.state=e,_.stream=i,_.marked=null,_.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():D)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return _.marked?_.marked:"variable"==n&&w(e,r)?"variableName.local":"variable"==n&&k(e,r)?"variableName.special":t}}(t,n,d,i,e))},indent:function(e,t,n){if(e.tokenize!=v)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var o=i.type,a=r==o;return"vardef"==o?i.indented+4:"form"==o&&"{"==r?i.indented:"stat"==o||"form"==o?i.indented+n.unit:"switch"!=i.info||a?i.align?i.column+(a?0:1):i.indented+(a?0:n.unit):i.indented+(/^(?:case|default)\b/.test(t)?n.unit:2*n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},oe={name:"hxml",startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}return n=e.peek(),0==t.inString&&"'"==n&&(t.inString=!0,e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},languageData:{commentTokens:{line:"#"}}}},96427:(e,t,n)=>{"use strict";function r(e,t){return e.skipToEnd(),t.cur=u,"error"}function i(e,t){return e.match(/^HTTP\/\d\.\d/)?(t.cur=o,"keyword"):e.match(/^[A-Z]+/)&&/[ \t]/.test(e.peek())?(t.cur=s,"keyword"):r(e,t)}function o(e,t){var n=e.match(/^\d+/);if(!n)return r(e,t);t.cur=a;var i=Number(n[0]);return i>=100&&i<400?"atom":"error"}function a(e,t){return e.skipToEnd(),t.cur=u,null}function s(e,t){return e.eatWhile(/\S/),t.cur=l,"string.special"}function l(e,t){return e.match(/^HTTP\/\d\.\d$/)?(t.cur=u,"keyword"):r(e,t)}function u(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function c(e){return e.skipToEnd(),null}n.r(t),n.d(t,{http:()=>d});const d={name:"http",token:function(e,t){var n=t.cur;return n!=u&&n!=c&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=c},startState:function(){return{cur:i}}}},78074:(e,t,n)=>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}n.r(t),n.d(t,{idl:()=>d});var i=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],o=r(i),a=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],s=r(a),l=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i"),u=/[+\-*&=<>\/@#~$]/,c=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");const d={name:"idl",token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(s)?"keyword":e.match(o)?"builtin":e.match(l)?"variable":e.match(u)||e.match(c)?"operator":(e.next(),null)}(e)},languageData:{autocomplete:i.concat(a)}}},53398:(e,t,n)=>{"use strict";n.r(t),n.d(t,{jinja2:()=>u});var r=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],i=/^[+\-*&%=<>!?|~^]/,o=/^[:\[\(\{]/,a=["true","false"],s=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function l(e,t){var n=e.peek();if(t.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),t.incomment=!1):e.skipToEnd(),"comment";if(t.intag){if(t.operator){if(t.operator=!1,e.match(a))return"atom";if(e.match(s))return"number"}if(t.sign){if(t.sign=!1,e.match(a))return"atom";if(e.match(s))return"number"}if(t.instring)return n==t.instring&&(t.instring=!1),e.next(),"string";if("'"==n||'"'==n)return t.instring=n,e.next(),"string";if(t.inbraces>0&&")"==n)e.next(),t.inbraces--;else if("("==n)e.next(),t.inbraces++;else if(t.inbrackets>0&&"]"==n)e.next(),t.inbrackets--;else if("["==n)e.next(),t.inbrackets++;else{if(!t.lineTag&&(e.match(t.intag+"}")||e.eat("-")&&e.match(t.intag+"}")))return t.intag=!1,"tag";if(e.match(i))return t.operator=!0,"operator";if(e.match(o))t.sign=!0;else{if(1==e.column()&&t.lineTag&&e.match(r))return"keyword";if(e.eat(" ")||e.sol()){if(e.match(r))return"keyword";if(e.match(a))return"atom";if(e.match(s))return"number";e.sol()&&e.next()}else e.next()}}return"variable"}if(e.eat("{")){if(e.eat("#"))return t.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),t.incomment=!1):e.skipToEnd(),"comment";if(n=e.eat(/\{|%/))return t.intag=n,t.inbraces=0,t.inbrackets=0,"{"==n&&(t.intag="}"),e.eat("-"),"tag"}else if(e.eat("#")){if("#"==e.peek())return e.skipToEnd(),"comment";if(!e.eol())return t.intag=!0,t.lineTag=!0,t.inbraces=0,t.inbrackets=0,"tag"}e.next()}r=new RegExp("(("+r.join(")|(")+"))\\b"),a=new RegExp("(("+a.join(")|(")+"))\\b");const u={name:"jinja2",startState:function(){return{tokenize:l,inbrackets:0,inbraces:0}},token:function(e,t){var n=t.tokenize(e,t);return e.eol()&&t.lineTag&&!t.instring&&0==t.inbraces&&0==t.inbrackets&&(t.intag=!1,t.lineTag=!1),n},languageData:{commentTokens:{block:{open:"{#",close:"#}",line:"##"}}}}},41254:(e,t,n)=>{"use strict";function r(e,t,n){return void 0===n&&(n=""),void 0===t&&(t="\\b"),new RegExp("^"+n+"(("+e.join(")|(")+"))"+t)}n.r(t),n.d(t,{julia:()=>P});var i=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],o=r(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),a=/^[;,()[\]{}]/,s=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,l=r(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),u=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],c=["true","false","nothing","NaN","Inf"],d=r(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),f=r(["end","else","elseif","catch","finally"]),h=r(u),p=r(c),m=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,g=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,v=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,O=r(i,"","@"),y=r(i,"",":");function b(e){return e.nestedArrays>0}function w(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function k(e,t){if(e.match("#=",!1))return t.tokenize=_,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r,i,l=e.peek();if("#"===l)return e.skipToEnd(),"comment";if("["===l&&(t.scopes.push("["),t.nestedArrays++),"("===l&&(t.scopes.push("("),t.nestedGenerators++),b(t)&&"]"===l){for(;t.scopes.length&&"["!==w(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===l){for(;t.scopes.length&&"("!==w(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(b(t)){if("end"==t.lastToken&&e.match(":"))return"operator";if(e.match("end"))return"number"}if((r=e.match(d,!1))&&t.scopes.push(r[0]),e.match(f,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=x,t.tokenize(e,t);if(!n&&(e.match(g)||e.match(y)))return"builtin";if(e.match(o))return"operator";if(e.match(/^\.?\d/,!1)){var u=RegExp(/^im\b/),c=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(c=!0),e.match(/^0x[0-9a-f_]+/i)&&(c=!0),e.match(/^0b[01_]+/i)&&(c=!0),e.match(/^0o[0-7_]+/i)&&(c=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(c=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(c=!0),c)return e.match(u),t.leavingExpr=!0,"number"}if(e.match("'"))return t.tokenize=S,t.tokenize(e,t);if(e.match(v))return t.tokenize=('"""'===(i=e.current()).substr(-3)?i='"""':'"'===i.substr(-1)&&(i='"'),function(e,t){if(e.eat("\\"))e.next();else{if(e.match(i))return t.tokenize=k,t.leavingExpr=!0,"string";e.eat(/[`"]/)}return e.eatWhile(/[^\\`"]/),"string"}),t.tokenize(e,t);if(e.match(m)||e.match(O))return"meta";if(e.match(a))return null;if(e.match(h))return"keyword";if(e.match(p))return"builtin";var P=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(s)?P?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function x(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?t.nestedParameters++:e.match("}")&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=k),"builtin"}function _(e,t){return e.match("#=")&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=k)),"comment"}function S(e,t){var n,r=!1;if(e.match(l))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i))((i=parseInt(n[1],16))<=55295||i>=57344)&&(r=!0,e.next());else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i;(i=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=k,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(t.tokenize=k),"error")}const P={name:"julia",startState:function(){return{tokenize:k,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,t,n){var r=0;return("]"===t||")"===t||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t))&&(r=-1),(e.scopes.length+r)*n.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:u.concat(c)}}},94813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{liveScript:()=>p});var r=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=l[n];if(r.splice){for(var i=0;i|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+i+")?))\\s*$"),a="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",s={token:"string",regex:".+"},l={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+a},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+a},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+a},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+a},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+a},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+a},{token:"variableName",regex:i+"\\s*:(?![:=])"},{token:"variableName",regex:i},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:i,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},s],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},s],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},s],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},s],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},s],words:[{token:"string",regex:".*?\\]>",next:"key"},s]};for(var u in l){var c=l[u];if(c.splice)for(var d=0,f=c.length;d{"use strict";function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{lua:()=>f});var i=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),o=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),a=r(["function","if","repeat","do","\\(","{"]),s=r(["end","until","\\)","}"]),l=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function u(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function c(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=d(u(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=c),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=d(u(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function d(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=c;break}o=null}return t}}const f={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:c}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(o.test(r)?n="keyword":i.test(r)&&(n="builtin")),"comment"!=n&&"string"!=n&&(a.test(r)?++t.indentDepth:s.test(r)&&--t.indentDepth),n},indent:function(e,t,n){var r=l.test(t);return e.basecol+n.unit*(e.indentDepth-(r?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}}},53756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mathematica:()=>f});var r="[a-zA-Z\\$][a-zA-Z0-9\\$]*",i="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",o="(?:`(?:`?"+i+")?)",a=new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+o+"?(?:\\*\\^[+-]?\\d+)?))"),s=new RegExp("(?:"+i+o+"?(?:\\*\\^[+-]?\\d+)?)"),l=new RegExp("(?:`?)(?:"+r+")(?:`(?:"+r+"))*(?:`?)");function u(e,t){var n;return'"'===(n=e.next())?(t.tokenize=c,t.tokenize(e,t)):"("===n&&e.eat("*")?(t.commentLevel++,t.tokenize=d,t.tokenize(e,t)):(e.backUp(1),e.match(a,!0,!1)||e.match(s,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string.special":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variableName.special":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"character":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variableName.constant":e.match(l,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function c(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=u),"string"}function d(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=u),"comment"}const f={name:"mathematica",startState:function(){return{tokenize:u,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}}},20214:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mbox:()=>p});var r=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],i=["Date","Subject","Comments","Keywords","Resent-Date"],o=/^[ \t]/,a=/^From /,s=new RegExp("^("+r.join("|")+"): "),l=new RegExp("^("+i.join("|")+"): "),u=/^[^:]+:/,c=/^[^ ]+@[^ ]+/,d=/^.*?(?=[^ ]+?@[^ ]+)/,f=/^<.*?>/,h=/^.*?(?=<.*>)/;const p={name:"mbox",startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:function(e,t){if(e.sol()){if(t.inSeparator=!1,t.inHeader&&e.match(o))return null;if(t.inHeader=!1,t.header=null,e.match(a))return t.inHeaders=!0,t.inSeparator=!0,"atom";var n,r=!1;return(n=e.match(l))||(r=!0)&&(n=e.match(s))?(t.inHeaders=!0,t.inHeader=!0,t.emailPermitted=r,t.header=n[1],"atom"):t.inHeaders&&(n=e.match(u))?(t.inHeader=!0,t.emailPermitted=!0,t.header=n[1],"atom"):(t.inHeaders=!1,e.skipToEnd(),null)}if(t.inSeparator)return e.match(c)?"link":(e.match(d)||e.skipToEnd(),"atom");if(t.inHeader){var i=function(e){return"Subject"===e?"header":"string"}(t.header);if(t.emailPermitted){if(e.match(f))return i+" link";if(e.match(h))return i}return e.skipToEnd(),i}return e.skipToEnd(),null},blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1},languageData:{autocomplete:r.concat(i)}}},86794:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rf});var i=r("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),o=r("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),a=r("if elseif else and not or eq ne in ni for foreach while switch"),s=/[+\-*&%=<>!?^\/\|]/;function l(e,t,n){return t.tokenize=n,n(e,t)}function u(e,t){var n=t.beforeParams;t.beforeParams=!1;var r=e.next();if(/[\[\]{}\(\),\.]/.test(r))return"("==r&&n?t.inParams=!0:")"==r&&(t.inParams=!1),null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("\\"==r)return e.eat("\\"),e.eat(/./),"number";if("/"==r&&e.eat("*"))return l(e,t,c);if(";"==r&&e.match(/ *\( *\(/))return l(e,t,d);if(";"!=r||t.inParams){if('"'==r)return e.eat(/"/),"keyword";if("$"==r)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),i&&i.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(t.beforeParams=!0,"builtin");if("%"==r)return e.eatWhile(/[^,\s()]/),t.beforeParams=!0,"string";if(s.test(r))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_{}]/);var u=e.current().toLowerCase();return o&&o.propertyIsEnumerable(u)?"keyword":a&&a.propertyIsEnumerable(u)?(t.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function c(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=u;break}r="*"==n}return"comment"}function d(e,t){for(var n,r=0;n=e.next();){if(";"==n&&2==r){t.tokenize=u;break}")"==n?r++:" "!=n&&(r=0)}return"meta"}const f={name:"mirc",startState:function(){return{tokenize:u,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},39038:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rO});var i=r("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),o=r("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),a=r("Real Boolean Integer String"),s=[].concat(Object.keys(i),Object.keys(o),Object.keys(a)),l=/[;=\(:\),{}.*<>+\-\/^\[\]]/,u=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,c=/[0-9]/,d=/[_a-zA-Z]/;function f(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function h(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function p(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function m(e,t){for(e.eatWhile(c);e.eat(c)||e.eat(d););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"builtin":a.propertyIsEnumerable(n)?"atom":"variable"}function g(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function v(e,t){return e.eatWhile(c),e.eat(".")&&e.eatWhile(c),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(c)),t.tokenize=null,t.sol=!1,"number"}const O={name:"modelica",startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=f;else if("/"==n&&e.eat("*"))t.tokenize=h;else{if(u.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(l.test(n))return t.tokenize=null,"operator";if(d.test(n))t.tokenize=m;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=g;else if('"'==n)t.tokenize=p;else{if(!c.test(n))return t.tokenize=null,"error";t.tokenize=v}}return t.tokenize(e,t)},indent:function(e,t,n){if(null!=e.tokenize)return null;var r=e.level;return/(algorithm)/.test(t)&&r--,/(equation)/.test(t)&&r--,/(initial algorithm)/.test(t)&&r--,/(initial equation)/.test(t)&&r--,/(end)/.test(t)&&r--,r>0?n.unit*r:0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:s}}},94782:(e,t,n)=>{"use strict";function r(e){return{name:"mscgen",startState:u,copyState:c,token:(t=e,function(e,n){if(e.match(l(t.brackets),!0,!0))return"bracket";if(!n.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return n.inComment=!0,"comment";if(e.match(l(t.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(n.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?n.inComment=!1:e.skipToEnd(),"comment";if(!n.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return n.inString=!0,"string";if(n.inString)return e.match(/[^\"]*\"/,!0,!0)?n.inString=!1:e.skipToEnd(),"string";if(t.keywords&&e.match(s(t.keywords),!0,!0))return"keyword";if(e.match(s(t.options),!0,!0))return"keyword";if(e.match(s(t.arcsWords),!0,!0))return"keyword";if(e.match(l(t.arcsOthers),!0,!0))return"keyword";if(t.operators&&e.match(l(t.operators),!0,!0))return"operator";if(t.constants&&e.match(l(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&t.attributes&&e.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(null!==t.attributes&&e.match(s(t.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return e.next(),null}),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}};var t}n.r(t),n.d(t,{mscgen:()=>i,msgenny:()=>o,xu:()=>a});const i=r({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),o=r({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),a=r({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function s(e){return new RegExp("^\\b("+e.join("|")+")\\b","i")}function l(e){return new RegExp("^(?:"+e.join("|")+")","i")}function u(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function c(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}},26850:(e,t,n)=>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}n.r(t),n.d(t,{mumps:()=>d});var i=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),o=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),a=new RegExp("^[\\.,:]"),s=new RegExp("[()]"),l=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),u=r(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),c=r(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);const d={name:"mumps",startState:function(){return{label:!1,commandMode:0}},token:function(e,t){var n=function(e,t){e.sol()&&(t.label=!0,t.commandMode=0);var n=e.peek();return" "==n||"\t"==n?(t.label=!1,0==t.commandMode?t.commandMode=1:(t.commandMode<0||2==t.commandMode)&&(t.commandMode=0)):"."!=n&&t.commandMode>0&&(t.commandMode=":"==n?-1:2),"("!==n&&"\t"!==n||(t.label=!1),";"===n?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==n?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(o)||e.match(i)?"operator":e.match(a)?null:s.test(n)?(e.next(),"bracket"):t.commandMode>0&&e.match(c)?"controlKeyword":e.match(u)?"builtin":e.match(l)?"variable":"$"===n||"^"===n?(e.next(),"builtin"):"@"===n?(e.next(),"string.special"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,t);return t.label?"tag":n}}},32290:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rf});var i,o=r("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),a=r("http mail events server types location upstream charset_map limit_except if geo map"),s=r("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files");function l(e,t){return i=t,e}function u(e,t){e.eatWhile(/[\w\$_]/);var n=e.current();if(o.propertyIsEnumerable(n))return"keyword";if(a.propertyIsEnumerable(n))return"controlKeyword";if(s.propertyIsEnumerable(n))return"controlKeyword";var r,i=e.next();return"@"==i?(e.eatWhile(/[\w\\\-]/),l("meta",e.current())):"/"==i&&e.eat("*")?(t.tokenize=c,c(e,t)):"<"==i&&e.eat("!")?(t.tokenize=d,d(e,t)):"="!=i?"~"!=i&&"|"!=i||!e.eat("=")?'"'==i||"'"==i?(t.tokenize=(r=i,function(e,t){for(var n,i=!1;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=u),l("string","string")}),t.tokenize(e,t)):"#"==i?(e.skipToEnd(),l("comment","comment")):"!"==i?(e.match(/^\s*\w*/),l("keyword","important")):/\d/.test(i)?(e.eatWhile(/[\w.%]/),l("number","unit")):/[,.+>*\/]/.test(i)?l(null,"select-op"):/[;{}:\[\]]/.test(i)?l(null,i):(e.eatWhile(/[\w\\\-]/),l("variable","variable")):l(null,"compare"):void l(null,"compare")}function c(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=u;break}r="*"==n}return l("comment","comment")}function d(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=u;break}r="-"==n?r+1:0}return l("comment","comment")}const f={name:"nginx",startState:function(){return{tokenize:u,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;i=null;var n=t.tokenize(e,t),r=t.stack[t.stack.length-1];return"hash"==i&&"rule"==r?n="atom":"variable"==n&&("rule"==r?n="number":r&&"@media{"!=r||(n="tag")),"rule"==r&&/^[\{\};]$/.test(i)&&t.stack.pop(),"{"==i?"@media"==r?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==i?t.stack.pop():"@media"==i?t.stack.push("@media"):"{"==r&&"comment"!=i&&t.stack.push("rule"),n},indent:function(e,t,n){var r=e.stack.length;return/^\}/.test(t)&&(r-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+r*n.unit},languageData:{indentOnInput:/^\s*\}$/}}},93204:(e,t,n)=>{"use strict";n.r(t),n.d(t,{nsis:()=>r});const r=(0,n(68343).Q)({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}})},84895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ntriples:()=>i});function r(e,t){var n,r=e.location;n=0==r&&"<"==t?1:0==r&&"_"==t?2:3==r&&"<"==t?4:5==r&&"<"==t?6:5==r&&"_"==t?7:5==r&&'"'==t?8:1==r&&">"==t||2==r&&" "==t?3:4==r&&">"==t?5:6==r&&">"==t||7==r&&" "==t||8==r&&'"'==t||9==r&&" "==t||10==r&&">"==t?11:8==r&&"@"==t?9:8==r&&"^"==t?10:" "!=t||0!=r&&3!=r&&5!=r&&11!=r?11==r&&"."==t?0:12:r,e.location=n}const i={name:"ntriples",startState:function(){return{location:0,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,t){var n=e.next();if("<"==n){r(t,n);var i="";return e.eatWhile((function(e){return"#"!=e&&">"!=e&&(i+=e,!0)})),t.uris.push(i),e.match("#",!1)||(e.next(),r(t,">")),"variable"}if("#"==n){var o="";return e.eatWhile((function(e){return">"!=e&&" "!=e&&(o+=e,!0)})),t.anchors.push(o),"url"}if(">"==n)return r(t,">"),"variable";if("_"==n){r(t,n);var a="";return e.eatWhile((function(e){return" "!=e&&(a+=e,!0)})),t.bnodes.push(a),e.next(),r(t," "),"builtin"}if('"'==n)return r(t,n),e.eatWhile((function(e){return'"'!=e})),e.next(),"@"!=e.peek()&&"^"!=e.peek()&&r(t,'"'),"string";if("@"==n){r(t,"@");var s="";return e.eatWhile((function(e){return" "!=e&&(s+=e,!0)})),t.langs.push(s),e.next(),r(t," "),"string.special"}if("^"==n){e.next(),r(t,"^");var l="";return e.eatWhile((function(e){return">"!=e&&(l+=e,!0)})),t.types.push(l),e.next(),r(t,">"),"variable"}" "==n&&r(t,n),"."==n&&r(t,n)}}},21798:(e,t,n)=>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{octave:()=>g});var i=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),o=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),a=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),s=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=new RegExp("^((>>=)|(<<=))"),u=new RegExp("^[\\]\\)]"),c=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),d=r(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),f=r(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function h(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=m,m(e,t)):(e.next(),t.tokenize=m,"operator")}function p(e,t){return e.match(/^.*%}/)?(t.tokenize=m,"comment"):(e.skipToEnd(),"comment")}function m(e,t){if(e.eatSpace())return null;if(e.match("%{"))return t.tokenize=p,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=m,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(r(["nan","NaN","inf","Inf"])))return"number";var n=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return n?n[1]?"string":"error":e.match(f)?"keyword":e.match(d)?"builtin":e.match(c)?"variable":e.match(i)||e.match(a)?"operator":e.match(o)||e.match(s)||e.match(l)?null:e.match(u)?(t.tokenize=h,null):(e.next(),"error")}const g={name:"octave",startState:function(){return{tokenize:m}},token:function(e,t){var n=t.tokenize(e,t);return"number"!==n&&"variable"!==n||(t.tokenize=h),n},languageData:{commentTokens:{line:"%"}}}},93816:(e,t,n)=>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{oz:()=>y});var i=/[\^@!\|<>#~\.\*\-\+\\/,=]/,o=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,a=/(:::)|(\.\.\.)|(=<:)|(>=:)/,s=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],l=["end"],u=r(["true","false","nil","unit"]),c=r(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),d=r(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),f=r(s),h=r(l);function p(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(a)||e.match(o))return"operator";if(e.match(u))return"atom";var n=e.match(d);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=v:"class"==n[0]?t.tokenize=m:"meth"==n[0]&&(t.tokenize=g),"keyword";if(e.match(f)||e.match(c))return"keyword";if(e.match(h))return t.currentIndent--,"keyword";var r,s=e.next();if('"'==s||"'"==s)return t.tokenize=(r=s,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return!o&&i||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[~\d]/.test(s)){if("~"==s){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==s&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==s?(e.skipToEnd(),"comment"):"/"==s&&e.eat("*")?(t.tokenize=O,O(e,t)):i.test(s)?"operator":(e.eatWhile(/\w/),"variable")}function m(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"type")}function g(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"def")}function v(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=p,"def"):(t.tokenize=p,null)}function O(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}const y={name:"oz",startState:function(){return{tokenize:p,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(h)||r.match(f)||r.match(/(\[])/)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{indentOnInut:(b=s.concat(l),new RegExp("[\\[\\]]|("+b.join("|")+")$")),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}};var b},68948:(e,t,n)=>{"use strict";n.r(t),n.d(t,{pascal:()=>u});var r=function(e){for(var t={},n="absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write".split(" "),r=0;r!?|\/]/;function a(e,t){var n,a=e.next();if("#"==a&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==a||"'"==a)return t.tokenize=(n=a,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=null),"string"}),t.tokenize(e,t);if("("==a&&e.eat("*"))return t.tokenize=s,s(e,t);if("{"==a)return t.tokenize=l,l(e,t);if(/[\[\]\(\),;\:\.]/.test(a))return null;if(/\d/.test(a))return e.eatWhile(/[\w\.]/),"number";if("/"==a&&e.eat("/"))return e.skipToEnd(),"comment";if(o.test(a))return e.eatWhile(o),"operator";e.eatWhile(/[\w\$_]/);var u=e.current();return r.propertyIsEnumerable(u)?"keyword":i.propertyIsEnumerable(u)?"atom":"variable"}function s(e,t){for(var n,r=!1;n=e.next();){if(")"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function l(e,t){for(var n;n=e.next();)if("}"==n){t.tokenize=null;break}return"comment"}const u={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||a)(e,t)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}}},26375:(e,t,n)=>{"use strict";function r(e,t){return e.string.charAt(e.pos+(t||0))}function i(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function o(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t=(n=e.string.length-1)?e.pos=n:e.pos=r}n.r(t),n.d(t,{perl:()=>h});var s={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},l="string.special",u=/[goseximacplud]/;function c(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=f,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function d(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=f),e.skipToEnd(),"string"},t.tokenize(e,t)}function f(e,t){if(e.eatSpace())return null;if(t.chain)return c(e,t,t.chain,t.style,t.tail);if(e.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=[_a-zA-Z])/))return e.eatWhile(/\w/),d(e,t,e.current().substr(2));if(e.sol()&&e.match(/^\=item(?!\w)/))return d(e,t,"=cut");var n=e.next();if('"'==n||"'"==n){if(i(e,3)=="<<"+n){var f=e.pos;e.eatWhile(/\w/);var h=e.current().substr(1);if(h&&e.eat(n))return d(e,t,h);e.pos=f}return c(e,t,[n],"string")}if(!("q"!=n||(p=r(e,-2))&&/\w/.test(p)))if("x"==(p=r(e,0))){if("("==(p=r(e,1)))return a(e,2),c(e,t,[")"],l,u);if("["==p)return a(e,2),c(e,t,["]"],l,u);if("{"==p)return a(e,2),c(e,t,["}"],l,u);if("<"==p)return a(e,2),c(e,t,[">"],l,u);if(/[\^'"!~\/]/.test(p))return a(e,1),c(e,t,[e.eat(p)],l,u)}else if("q"==p){if("("==(p=r(e,1)))return a(e,2),c(e,t,[")"],"string");if("["==p)return a(e,2),c(e,t,["]"],"string");if("{"==p)return a(e,2),c(e,t,["}"],"string");if("<"==p)return a(e,2),c(e,t,[">"],"string");if(/[\^'"!~\/]/.test(p))return a(e,1),c(e,t,[e.eat(p)],"string")}else if("w"==p){if("("==(p=r(e,1)))return a(e,2),c(e,t,[")"],"bracket");if("["==p)return a(e,2),c(e,t,["]"],"bracket");if("{"==p)return a(e,2),c(e,t,["}"],"bracket");if("<"==p)return a(e,2),c(e,t,[">"],"bracket");if(/[\^'"!~\/]/.test(p))return a(e,1),c(e,t,[e.eat(p)],"bracket")}else if("r"==p){if("("==(p=r(e,1)))return a(e,2),c(e,t,[")"],l,u);if("["==p)return a(e,2),c(e,t,["]"],l,u);if("{"==p)return a(e,2),c(e,t,["}"],l,u);if("<"==p)return a(e,2),c(e,t,[">"],l,u);if(/[\^'"!~\/]/.test(p))return a(e,1),c(e,t,[e.eat(p)],l,u)}else if(/[\^'"!~\/(\[{<]/.test(p)){if("("==p)return a(e,1),c(e,t,[")"],"string");if("["==p)return a(e,1),c(e,t,["]"],"string");if("{"==p)return a(e,1),c(e,t,["}"],"string");if("<"==p)return a(e,1),c(e,t,[">"],"string");if(/[\^'"!~\/]/.test(p))return c(e,t,[e.eat(p)],"string")}if("m"==n&&(!(p=r(e,-2))||!/\w/.test(p))&&(p=e.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(p))return c(e,t,[p],l,u);if("("==p)return c(e,t,[")"],l,u);if("["==p)return c(e,t,["]"],l,u);if("{"==p)return c(e,t,["}"],l,u);if("<"==p)return c(e,t,[">"],l,u)}if("s"==n&&!(p=/[\/>\]})\w]/.test(r(e,-2)))&&(p=e.eat(/[(\[{<\^'"!~\/]/)))return c(e,t,"["==p?["]","]"]:"{"==p?["}","}"]:"<"==p?[">",">"]:"("==p?[")",")"]:[p,p],l,u);if("y"==n&&!(p=/[\/>\]})\w]/.test(r(e,-2)))&&(p=e.eat(/[(\[{<\^'"!~\/]/)))return c(e,t,"["==p?["]","]"]:"{"==p?["}","}"]:"<"==p?[">",">"]:"("==p?[")",")"]:[p,p],l,u);if("t"==n&&!(p=/[\/>\]})\w]/.test(r(e,-2)))&&(p=e.eat("r"))&&(p=e.eat(/[(\[{<\^'"!~\/]/)))return c(e,t,"["==p?["]","]"]:"{"==p?["}","}"]:"<"==p?[">",">"]:"("==p?[")",")"]:[p,p],l,u);if("`"==n)return c(e,t,[n],"builtin");if("/"==n)return/~\s*$/.test(i(e))?c(e,t,[n],l,u):"operator";if("$"==n){if(f=e.pos,e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"builtin";e.pos=f}if(/[$@%]/.test(n)){if(f=e.pos,e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(r(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var p=e.current();if(s[p])return"builtin"}e.pos=f}if(/[$@%&]/.test(n)&&(e.eatWhile(/[\w$]/)||e.eat("{")&&e.eatWhile(/[\w$]/)&&e.eat("}")))return p=e.current(),s[p]?"builtin":"variable";if("#"==n&&"$"!=r(e,-2))return e.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(n)){if(f=e.pos,e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),s[e.current()])return"operator";e.pos=f}if("_"==n&&1==e.pos){if("_END__"==o(e,6))return c(e,t,["\0"],"comment");if("_DATA__"==o(e,7))return c(e,t,["\0"],"builtin");if("_C__"==o(e,7))return c(e,t,["\0"],"string")}if(/\w/.test(n)){if(f=e.pos,"{"==r(e,-2)&&("}"==r(e,0)||e.eatWhile(/\w/)&&"}"==r(e,0)))return"string";e.pos=f}if(/[A-Z]/.test(n)){var m=r(e,-2);if(f=e.pos,e.eatWhile(/[A-Z_]/),!/[\da-z]/.test(r(e,0)))return(p=s[e.current()])?(p[1]&&(p=p[0]),":"!=m?1==p?"keyword":2==p?"def":3==p?"atom":4==p?"operator":5==p?"builtin":"meta":"meta"):"meta";e.pos=f}return/[a-zA-Z_]/.test(n)?(m=r(e,-2),e.eatWhile(/\w/),(p=s[e.current()])?(p[1]&&(p=p[0]),":"!=m?1==p?"keyword":2==p?"def":3==p?"atom":4==p?"operator":5==p?"builtin":"meta":"meta"):"meta"):null}const h={name:"perl",startState:function(){return{tokenize:f,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||f)(e,t)},languageData:{commentTokens:{line:"#"},wordChars:"$"}}},53410:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rp});var i="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",o="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",a="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ",s=r(i),l=r(o),u=r(a),c=/[*+\-%<>=&?:\/!|]/;function d(e,t,n){return t.tokenize=n,n(e,t)}function f(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=h;break}r="*"==n}return"comment"}function h(e,t){var n,r=e.next();return'"'==r||"'"==r?d(e,t,(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=h),"error"})):/[\[\]{}\(\),;\.]/.test(r)?null:/\d/.test(r)?(e.eatWhile(/[\w\.]/),"number"):"/"==r?e.eat("*")?d(e,t,f):(e.eatWhile(c),"operator"):"-"==r?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(c),"operator"):c.test(r)?(e.eatWhile(c),"operator"):(e.eatWhile(/[\w\$_]/),l&&l.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":s&&s.propertyIsEnumerable(e.current().toUpperCase())?"builtin":u&&u.propertyIsEnumerable(e.current().toUpperCase())?"type":"variable")}const p={name:"pig",startState:function(){return{tokenize:h,startOfLine:!0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{autocomplete:(i+a+o).split(" ")}}},69144:(e,t,n)=>{"use strict";function r(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;ik});var i="(?=[^A-Za-z\\d\\-_]|$)",o=/[\w\-:]/,a=r([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:i}),s=r(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),l=r([s,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),u=r([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),c=r([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),d={keyword:a,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:l,builtin:r([/[A-Z]:|%|\?/i,u,c],{suffix:i}),punctuation:/[\[\]{},;`\\\.]|@[({]/,variable:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function f(e,t){var n=t.returnStack[t.returnStack.length-1];if(n&&n.shouldReturnFrom(t))return t.tokenize=n.tokenize,t.returnStack.pop(),t.tokenize(e,t);if(e.eatSpace())return null;if(e.eat("("))return t.bracketNesting+=1,"punctuation";if(e.eat(")"))return t.bracketNesting-=1,"punctuation";for(var r in d)if(e.match(d[r]))return r;var i=e.next();if("'"===i)return function(e,t){for(var n;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=f,"string";return"error"}(e,t);if("$"===i)return y(e,t);if('"'===i)return h(e,t);if("<"===i&&e.eat("#"))return t.tokenize=O,O(e,t);if("#"===i)return e.skipToEnd(),"comment";if("@"===i){var a=e.eat(/["']/);if(a&&e.eol())return t.tokenize=w,t.startQuote=a[0],w(e,t);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(o))return y(e,t)}return"error"}function h(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=p,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=f,"string"}else e.next()}return"error"}function p(e,t){return v(e,t,h)}function m(e,t){return t.tokenize=w,t.startQuote='"',w(e,t)}function g(e,t){return v(e,t,m)}function v(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=f,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=y,t.tokenize(e,t)}function O(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=f;break}r="#"===n}return"comment"}function y(e,t){var n=e.peek();return e.eat("{")?(t.tokenize=b,b(e,t)):null!=n&&n.match(o)?(e.eatWhile(o),t.tokenize=f,"variable"):(t.tokenize=f,"error")}function b(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=f;break}return"variable"}function w(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=f;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=g,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}const k={name:"powershell",startState:function(){return{returnStack:[],bracketNesting:0,tokenize:f}},token:function(e,t){return t.tokenize(e,t)},languageData:{commentTokens:{line:"#",block:{open:"<#",close:"#>"}}}}},15859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{properties:()=>r});const r={name:"properties",token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}},68478:(e,t,n)=>{"use strict";n.r(t),n.d(t,{protobuf:()=>a});var r=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],i=new RegExp("^(("+r.join(")|(")+"))\\b","i"),o=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");const a={name:"protobuf",token:function(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(i)?"keyword":e.match(o)?"variable":(e.next(),null)},languageData:{autocomplete:r}}},91782:(e,t,n)=>{"use strict";n.r(t),n.d(t,{puppet:()=>s});var r={},i=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function o(e,t){for(var n=t.split(" "),i=0;i.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),l=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),u=e.next();if("$"===u)return e.match(i)?t.continueString?"variableName.special":"variable":"error";if(t.continueString)return e.backUp(1),a(e,t);if(t.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),t.inDefinition=!1}return t.inInclude?(e.match(/(\s+)?\S+(\s+)?/),t.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):o?(e.match(/(\s+)?\w+/),"tag"):n&&r.hasOwnProperty(n)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(t.inDefinition=!0),"include"==n&&(t.inInclude=!0),r[n]):/(^|\s+)[A-Z][\w:_]+/.test(n)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):l?(e.match(/(\s+)?[@]{1,2}/),"atom"):"#"==u?(e.skipToEnd(),"comment"):"'"==u||'"'==u?(t.pending=u,a(e,t)):"{"==u||"}"==u?"bracket":"/"==u?(e.match(/^[^\/]*\//),"string.special"):u.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):"="==u?(">"==e.peek()&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}(e,t)}}},61164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{q:()=>h});var r,i=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),o=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function a(e,t){var n=e.sol(),l=e.next();if(r=null,n){if("/"==l)return(t.tokenize=s)(e,t);if("\\"==l)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(t.tokenize=u)(e):t.tokenize=a,"comment"):(t.tokenize=a,"builtin")}if(/\s/.test(l))return"/"==e.peek()?(e.skipToEnd(),"comment"):"null";if('"'==l)return(t.tokenize=c)(e,t);if("`"==l)return e.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==l&&/\d/.test(e.peek())||/\d/.test(l)){var d=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?d="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(d="number"),!d||(l=e.peek())&&!o.test(l)?(e.next(),"error"):d}return/[A-Za-z]|\./.test(l)?(e.eatWhile(/[A-Za-z._\d]/),i.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(l)||/[{}\(\[\]\)]/.test(l)?null:"error"}function s(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=l)(e,t):t.tokenize=a,"comment"}function l(e,t){var n=e.sol()&&"\\"==e.peek();return e.skipToEnd(),n&&/^\\\s*$/.test(e.current())&&(t.tokenize=a),"comment"}function u(e){return e.skipToEnd(),"comment"}function c(e,t){for(var n,r=!1,i=!1;n=e.next();){if('"'==n&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=a),"string"}function d(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function f(e){e.indent=e.context.indent,e.context=e.context.prev}const h={name:"q",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,t){e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation());var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)d(t,")",e.column());else if("["==r)d(t,"]",e.column());else if("{"==r)d(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)f(t);t.context&&r==t.context.type&&f(t)}else"."==r&&t.context&&"pattern"==t.context.type?f(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?d(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0}}},95098:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0;nv});var i,o=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],a=["list","quote","bquote","eval","return","call","parse","deparse"],s=["if","else","repeat","while","function","for","in","next","break"],l=r(o),u=r(a),c=r(s),d=r(["if","else","repeat","while","function","for"]),f=/[+\-*\/^<>=!&|~$:]/;function h(e,t){i=null;var n,r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=(n=r,function(e,t){if(e.eat("\\")){var r=e.next();return"x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string.special"}for(var i;null!=(i=e.next());){if(i==n){t.tokenize=h;break}if("\\"==i){e.backUp(1);break}}return"string"}),"string";if("`"==r)return e.match(/[^`]+`/),"string.special";if("."==r&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var o=e.current();return l.propertyIsEnumerable(o)?"atom":c.propertyIsEnumerable(o)?(d.propertyIsEnumerable(o)&&!e.match(/\s*if(\s+|$)/,!1)&&(i="block"),"keyword"):u.propertyIsEnumerable(o)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"variableName.special"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)||"="==r&&t.ctx.argList?"operator":f.test(r)?("$"==r||e.eatWhile(f),"operator"):/[\(\){}\[\];]/.test(r)?(i=r,";"==r?"punctuation":null):null}function p(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function m(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function g(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}const v={name:"r",startState:function(e){return{tokenize:h,ctx:{type:"top",indent:-e,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(0==(3&t.ctx.flags)&&(t.ctx.flags|=2),4&t.ctx.flags&&g(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"!=n&&0==(2&t.ctx.flags)&&m(t,1),";"!=i&&"{"!=i&&"}"!=i||"block"!=t.ctx.type||g(t),"{"==i?p(t,"}",e):"("==i?(p(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==i?p(t,"]",e):"block"==i?p(t,"block",e):i==t.ctx.type?g(t):"block"==t.ctx.type&&"comment"!=n&&m(t,4),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,t,n){if(e.tokenize!=h)return 0;var r=t&&t.charAt(0),i=e.ctx,o=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:n.unit):1&i.flags?i.column+(o?0:1):i.indent+(o?0:n.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:o.concat(a,s)}}},11197:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0,r=e.length;nv});var i,o=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],a=r(o),s=r(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),l=r(["end","until"]),u={"[":"]","{":"}","(":")"},c={"]":"[","}":"{",")":"("};function d(e,t,n){return n.tokenize.push(e),e(t,n)}function f(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(g),"comment";if(e.eatSpace())return null;var n,r,o,a=e.next();if("`"==a||"'"==a||'"'==a)return d(m(a,"string",'"'==a||"`"==a),e,t);if("/"==a)return function(e){for(var t,n=e.pos,r=0,i=!1,o=!1;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?d(m(a,"string.special",!0),e,t):"operator";if("%"==a){var s="string",l=!0;e.eat("s")?s="atom":e.eat(/[WQ]/)?s="string":e.eat(/[r]/)?s="string.special":e.eat(/[wxq]/)&&(s="string",l=!1);var c=e.eat(/[^\w\s=]/);return c?(u.propertyIsEnumerable(c)&&(c=u[c]),d(m(c,s,l,!0),e,t)):"operator"}if("#"==a)return e.skipToEnd(),"comment";if("<"==a&&(n=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return d((r=n[2],o=n[1],function(e,t){return o&&e.eatSpace(),e.match(r)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==a)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(a))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==a){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==a)return e.eat("'")?d(m("'","atom",!1),e,t):e.eat('"')?d(m('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==a&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"propertyName";if("$"==a)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variableName.special";if(/[a-zA-Z_\xa1-\uffff]/.test(a))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"variable";if("|"!=a||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(a))return i=a,null;if("-"==a&&e.eat(">"))return"operator";if(/[=+\-\/*:\.^%<>~|]/.test(a)){var f=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=a||f||(i="."),"operator"}return null}return i="|",null}function h(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=h(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=h(e+1));return f(t,n)}}function p(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,f(t,n))}}function m(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(h());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(p());break}}s=!s&&"\\"==a}return t}}function g(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}const v={name:"ruby",startState:function(e){return{tokenize:[f],indented:0,context:{type:"top",indented:-e},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){i=null,e.sol()&&(t.indented=e.indentation());var n,r=t.tokenize[t.tokenize.length-1](e,t),o=i;if("variable"==r){var u=e.current();"keyword"==(r="."==t.lastTok?"property":a.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(u)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(o=u,s.propertyIsEnumerable(u)?n="indent":l.propertyIsEnumerable(u)?n="dedent":"if"!=u&&"unless"!=u||e.column()!=e.indentation()?"do"==u&&t.context.indented{"use strict";n.r(t),n.d(t,{sas:()=>l});var r={},i={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},o=/(<=|>=|!=|<>)/,a=/[=\(:\),{}.*<>+\-\/^\[\]]/;function s(e,t,n){if(n)for(var i=t.split(" "),o=0;o{"use strict";n.r(t),n.d(t,{scheme:()=>x});var r="comment",i="string",o="symbol",a="atom",s="number",l="bracket";function u(e){for(var t={},n=e.split(" "),r=0;rinteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),d=u("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function f(e,t,n){this.indent=e,this.type=t,this.prev=n}function h(e,t,n){e.indentStack=new f(t,n,e.indentStack)}var p=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),m=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),g=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),v=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function O(e){return e.match(p)}function y(e){return e.match(m)}function b(e,t){return!0===t&&e.backUp(1),e.match(v)}function w(e){return e.match(g)}function k(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t.token&&!r){t.state.mode=!1;break}r=!r&&"\\"==n}}const x={name:"scheme",startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=e.indentation()),e.eatSpace())return null;var n=null;switch(t.mode){case"string":k(e,{token:'"',state:t}),n=i;break;case"symbol":k(e,{token:"|",state:t}),n=o;break;case"comment":for(var u,f=!1;null!=(u=e.next());){if("#"==u&&f){t.mode=!1;break}f="|"==u}n=r;break;case"s-expr-comment":if(t.mode=!1,"("!=e.peek()&&"["!=e.peek()){e.eatWhile(/[^\s\(\)\[\]]/),n=r;break}t.sExprComment=0;default:var p=e.next();if('"'==p)t.mode="string",n=i;else if("'"==p)"("==e.peek()||"["==e.peek()?("number"!=typeof t.sExprQuote&&(t.sExprQuote=0),n=a):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=a);else if("|"==p)t.mode="symbol",n=o;else if("#"==p)if(e.eat("|"))t.mode="comment",n=r;else if(e.eat(/[tf]/i))n=a;else if(e.eat(";"))t.mode="s-expr-comment",n=r;else{var m=null,g=!1,v=!0;e.eat(/[ei]/i)?g=!0:e.backUp(1),e.match(/^#b/i)?m=O:e.match(/^#o/i)?m=y:e.match(/^#x/i)?m=w:e.match(/^#d/i)?m=b:e.match(/^[-+0-9.]/,!1)?(v=!1,m=b):g||e.eat("#"),null!=m&&(v&&!g&&e.match(/^#[ei]/i),m(e)&&(n=s))}else if(/^[-+0-9.]/.test(p)&&b(e,!0))n=s;else if(";"==p)e.skipToEnd(),n=r;else if("("==p||"["==p){for(var x,_="",S=e.column();null!=(x=e.eat(/[^\s\(\[\;\)\]]/));)_+=x;_.length>0&&d.propertyIsEnumerable(_)?h(t,S+2,p):(e.eatSpace(),e.eol()||";"==e.peek()?h(t,S+1,p):h(t,S+e.current().length,p)),e.backUp(e.current().length-1),"number"==typeof t.sExprComment&&t.sExprComment++,"number"==typeof t.sExprQuote&&t.sExprQuote++,n=l}else")"==p||"]"==p?(n=l,null!=t.indentStack&&t.indentStack.type==(")"==p?"(":"[")&&(function(e){e.indentStack=e.indentStack.prev}(t),"number"==typeof t.sExprComment&&0==--t.sExprComment&&(n=r,t.sExprComment=!1),"number"==typeof t.sExprQuote&&0==--t.sExprQuote&&(n=a,t.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=c&&c.propertyIsEnumerable(e.current())?"builtin":"variable")}return"number"==typeof t.sExprComment?r:"number"==typeof t.sExprQuote?a:n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"}}}},24347:(e,t,n)=>{"use strict";n.r(t),n.d(t,{shell:()=>h});var r={};function i(e,t){for(var n=0;n1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=u(n,"("==n?"quote":"{"==n?"def":"string"),f(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function f(e,t){return(t.tokens[0]||l)(e,t)}const h={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return f(e,t)},languageData:{autocomplete:o.concat(a,s),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}},64674:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;ru});var i=r("if elsif else stop require"),o=r("true false not");function a(e,t){var n,r=e.next();if("/"==r&&e.eat("*"))return t.tokenize=l,l(e,t);if("#"===r)return e.skipToEnd(),"comment";if('"'==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=a),"string"}),t.tokenize(e,t);if("("==r)return t._indent.push("("),t._indent.push("{"),null;if("{"===r)return t._indent.push("{"),null;if(")"==r&&(t._indent.pop(),t._indent.pop()),"}"===r)return t._indent.pop(),null;if(","==r)return null;if(";"==r)return null;if(/[{}\(\),;]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==r)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var u=e.current();return"text"==u&&e.eat(":")?(t.tokenize=s,"string"):i.propertyIsEnumerable(u)?"keyword":o.propertyIsEnumerable(u)?"atom":null}function s(e,t){return t._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(t._multiLineString=!1,t.tokenize=a),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function l(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=a;break}r="*"==n}return"comment"}const u={name:"sieve",startState:function(e){return{tokenize:a,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||a)(e,t)},indent:function(e,t,n){var r=e._indent.length;return t&&"}"==t[0]&&r--,r<0&&(r=0),r*n.unit},languageData:{indentOnInput:/^\s*\}$/}}},68343:(e,t,n)=>{"use strict";function r(e){i(e,"start");var t={},n=e.languageData||{},r=!1;for(var l in e)if(l!=n&&e.hasOwnProperty(l))for(var u=t[l]=[],c=e[l],d=0;d2&&a.token&&"string"!=typeof a.token){n.pending=[];for(var u=2;u-1)return null;var i=n.indent.length-1,o=e[n.state];e:for(;;){for(var a=0;ar})},2075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{smalltalk:()=>h});var r=/[+\-\/\\*~<>=@%|&?!.,:;^]/,i=/true|false|nil|self|super|thisContext/,o=function(e,t){this.next=e,this.parent=t},a=function(e,t,n){this.name=e,this.context=t,this.eos=n},s=function(){this.context=new o(l,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};s.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var l=function(e,t,n){var s=new a(null,t,!1),l=e.next();return'"'===l?s=u(e,new o(u,t)):"'"===l?s=c(e,new o(c,t)):"#"===l?"'"===e.peek()?(e.next(),s=d(e,new o(d,t))):e.eatWhile(/[^\s.{}\[\]()]/)?s.name="string.special":s.name="meta":"$"===l?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),s.name="string.special"):"|"===l&&n.expectVariable?s.context=new o(f,t):/[\[\]{}()]/.test(l)?(s.name="bracket",s.eos=/[\[{(]/.test(l),"["===l?n.indentation++:"]"===l&&(n.indentation=Math.max(0,n.indentation-1))):r.test(l)?(e.eatWhile(r),s.name="operator",s.eos=";"!==l):/\d/.test(l)?(e.eatWhile(/[\w\d]/),s.name="number"):/[\w_]/.test(l)?(e.eatWhile(/[\w\d_]/),s.name=n.expectVariable?i.test(e.current())?"keyword":"variable":null):s.eos=n.expectVariable,s},u=function(e,t){return e.eatWhile(/[^"]/),new a("comment",e.eat('"')?t.parent:t,!0)},c=function(e,t){return e.eatWhile(/[^']/),new a("string",e.eat("'")?t.parent:t,!1)},d=function(e,t){return e.eatWhile(/[^']/),new a("string.special",e.eat("'")?t.parent:t,!1)},f=function(e,t){var n=new a(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};const h={name:"smalltalk",startState:function(){return new s},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var r=e.context.next===l&&t&&"]"===t.charAt(0)?-1:e.userIndentationDelta;return(e.indentation+r)*n.unit},languageData:{indentOnInput:/^\s*\]$/}}},97919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{solr:()=>s});var r=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,i=/[\|\!\+\-\*\?\~\^\&]/,o=/^(OR|AND|NOT|TO)$/i;function a(e,t){var n,s,l=e.next();return'"'==l?t.tokenize=(s=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=s||r);)r=!r&&"\\"==n;return r||(t.tokenize=a),"string"}):i.test(l)?t.tokenize=(n=l,function(e,t){return"|"==n?e.eat(/\|/):"&"==n&&e.eat(/\&/),t.tokenize=a,"operator"}):r.test(l)&&(t.tokenize=function(e){return function(t,n){for(var i=e;(e=t.peek())&&null!=e.match(r);)i+=t.next();return n.tokenize=a,o.test(i)?"operator":function(e){return parseFloat(e).toString()===e}(i)?"number":":"==t.peek()?"propertyName":"string"}}(l)),t.tokenize!=a?t.tokenize(e,t):null}const s={name:"solr",startState:function(){return{tokenize:a}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},27629:(e,t,n)=>{"use strict";var r;function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{sparql:()=>m});var o=i(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),a=i(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),s=/[*+\-<>=&|\^\/!\?]/,l="[A-Za-z_\\-0-9]",u=new RegExp("[A-Za-z]"),c=new RegExp("(("+l+"|\\.)*("+l+"))?:");function d(e,t){var n,i=e.next();if(r=null,"$"==i||"?"==i)return"?"==i&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variableName.local");if("<"==i&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=d;break}i=!i&&"\\"==r}return"string"}),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(i))return r=i,"bracket";if("#"==i)return e.skipToEnd(),"comment";if(s.test(i))return"operator";if(":"==i)return f(e),"atom";if("@"==i)return e.eatWhile(/[a-z\d\-]/i),"meta";if(u.test(i)&&e.match(c))return f(e),"atom";e.eatWhile(/[_\w\d]/);var l=e.current();return o.test(l)?"builtin":a.test(l)?"keyword":"variable"}function f(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function h(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function p(e){e.indent=e.context.indent,e.context=e.context.prev}const m={name:"sparql",startState:function(){return{tokenize:d,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)h(t,")",e.column());else if("["==r)h(t,"]",e.column());else if("{"==r)h(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)p(t);t.context&&r==t.context.type&&(p(t),"}"==r&&t.context&&"pattern"==t.context.type&&p(t))}else"."==r&&t.context&&"pattern"==t.context.type?p(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?h(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"#"}}}},1013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{spreadsheet:()=>r});const r={name:"spreadsheet",startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string.special":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable":-1!=["[","]","(",")","{","}"].indexOf(n)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}},66996:(e,t,n)=>{"use strict";function r(e){function t(e,t){e.cmdState.push(t)}function n(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function r(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var i={};function o(e,t){e.f=t}function a(e,r){var a;if(e.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var u=e.current().slice(1);return t(r,a=new(a=i.hasOwnProperty(u)?i[u]:i.DEFAULT)),o(r,l),a.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return o(r,(function(e,t){return s(e,t,"\\]")})),"keyword";if(e.match("\\("))return o(r,(function(e,t){return s(e,t,"\\)")})),"keyword";if(e.match("$$"))return o(r,(function(e,t){return s(e,t,"$$")})),"keyword";if(e.match("$"))return o(r,(function(e,t){return s(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(a=n(r))?(a.closeBracket(c),o(r,l),"bracket"):"error":"{"==c||"["==c?(t(r,a=new(a=i.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),a=function(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(r),"begin"==a.name&&(a.argument=e.current()),a.styleIdentifier())}function s(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return o(t,a),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variableName.special";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function l(e,t){var r=e.peek();return"{"==r||"["==r?(n(t).openBracket(r),e.eat(r),o(t,a),"bracket"):/[ \t\r]/.test(r)?(e.eat(r),null):(o(t,a),function(e){var t=e.cmdState.pop();t&&t.closeBracket()}(t),a(e,t))}return i.importmodule=r("importmodule","tag",["string","builtin"]),i.documentclass=r("documentclass","tag",["","atom"]),i.usepackage=r("usepackage","tag",["atom"]),i.begin=r("begin","tag",["atom"]),i.end=r("end","tag",["atom"]),i.label=r("label","tag",["atom"]),i.ref=r("ref","tag",["atom"]),i.eqref=r("eqref","tag",["atom"]),i.cite=r("cite","tag",["atom"]),i.bibitem=r("bibitem","tag",["atom"]),i.Bibitem=r("Bibitem","tag",["atom"]),i.RBibitem=r("RBibitem","tag",["atom"]),i.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{name:"stex",startState:function(){return{cmdState:[],f:e?function(e,t){return s(e,t)}:a}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=a,e.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}n.r(t),n.d(t,{stex:()=>i,stexMath:()=>o});const i=r(!1),o=r(!0)},11273:(e,t,n)=>{"use strict";n.r(t),n.d(t,{stylus:()=>oe});var r=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],i=["domain","regexp","url-prefix","url"],o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],s=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],l=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],u=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],c=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],d=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],f=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],h=["for","if","else","unless","from","to"],p=["null","true","false","href","title","type","not-allowed","readonly","disabled"],m=r.concat(i,o,a,s,l,c,d,u,f,h,p,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function g(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function v(e){for(var t={},n=0;n]=?|\?:|\~)/,j=g(f),D=v(h),M=new RegExp(/^\-(moz|ms|o|webkit)-/i),I=v(p),z="",W={};function N(e,t){if(z=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=z?z[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),O=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=L,L(e,t);if('"'==O||"'"==O)return e.next(),t.tokenize=F(O),t.tokenize(e,t);if("@"==O)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==O){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(M)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==O?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==O&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(T)?("("==e.peek()&&(t.tokenize=U),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variableName.special","reference"]):e.match(/^&{1}\s*$/)?["variableName.special","reference"]:e.match(j)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!Y(e.current())?(e.match("."),["variable","variable-name"]):["variable","word"]:e.match(A)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(O)?(e.next(),[null,O]):(e.next(),[null,null])}function L(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function F(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function U(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=F(")"),[null,"("]}function X(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function q(e,t,n,r){return r=r>=0?r:t.indentUnit,e.context=new X(n,t.indentation()+r,e.context),n}function B(e,t,n){var r=e.context.indent-t.indentUnit;return n=n||!1,e.context=e.context.prev,n&&(e.context.indent=r),e.context.type}function V(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return W[n.context.type](e,t,n)}(e,t,n)}function Y(e){return e.toLowerCase()in k}function Z(e){return(e=e.toLowerCase())in _||e in R}function G(e){return e.toLowerCase()in D}function H(e){return e.toLowerCase().match(M)}function K(e){var t=e.toLowerCase(),n="variable";return Y(e)?n="tag":G(e)?n="block-keyword":Z(e)?n="property":t in P||t in I?n="atom":"return"==t||t in E?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function J(e,t){return re(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function ee(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function te(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function ne(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function re(e){return e.eol()||e.match(/^\s*$/,!1)}function ie(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}W.block=function(e,t,n){if("comment"==e&&ne(t)||","==e&&re(t)||"mixin"==e)return q(n,t,"block",0);if(ee(e,t))return q(n,t,"interpolation");if(re(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!Y(ie(t)))return q(n,t,"block",0);if(J(e,t))return q(n,t,"block");if("}"==e&&re(t))return q(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||G(ie(t))?q(n,t,"variableName"):q(n,t,"variableName",0);if("="==e)return re(t)||G(ie(t))?q(n,t,"block"):q(n,t,"block",0);if("*"==e&&(re(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return w="tag",q(n,t,"block");if(te(e,t))return q(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return q(n,t,re(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return q(n,t,"keyframes");if(/@extends?/.test(e))return q(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&Z(t.current().slice(1))?(w="variable","block"):/(@import|@require|@charset)/.test(e)?q(n,t,"block",0):q(n,t,"block");if("reference"==e&&re(t))return q(n,t,"block");if("("==e)return q(n,t,"parens");if("vendor-prefixes"==e)return q(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(w=K(r)))return ne(t)?q(n,t,"block",0):(w="atom","block");if("tag"==w){if(/embed|menu|pre|progress|sub|table/.test(r)&&Z(ie(t)))return w="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return w="atom","block";if(x.test(r)&&(ne(t)&&t.string.match(/=/)||!ne(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!Y(ie(t))))return w="variable",G(ie(t))?"block":q(n,t,"block",0);if(re(t))return q(n,t,"block")}if("block-keyword"==w)return w="keyword",t.current(/(if|unless)/)&&!ne(t)?"block":q(n,t,"block");if("return"==r)return q(n,t,"block",0);if("variable"==w&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return q(n,t,"block")}return n.context.type},W.parens=function(e,t,n){if("("==e)return q(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?B(n,t):t.string.match(/^[a-z][\w-]*\(/i)&&re(t)||G(ie(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ie(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&Y(ie(t))?q(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?q(n,t,"block",0):re(t)?q(n,t,"block"):q(n,t,"block",0);if(e&&"@"==e.charAt(0)&&Z(t.current().slice(1))&&(w="variable"),"word"==e){var r=t.current();"tag"==(w=K(r))&&x.test(r)&&(w="variable"),"property"!=w&&"to"!=r||(w="atom")}return"variable-name"==e?q(n,t,"variableName"):te(e,t)?q(n,t,"pseudo"):n.context.type},W.vendorPrefixes=function(e,t,n){return"word"==e?(w="property",q(n,t,"block",0)):B(n,t)},W.pseudo=function(e,t,n){return Z(ie(t.string))?V(e,t,n):(t.match(/^[a-z-]+/),w="variableName.special",re(t)?q(n,t,"block"):B(n,t))},W.atBlock=function(e,t,n){if("("==e)return q(n,t,"atBlock_parens");if(J(e,t))return q(n,t,"block");if(ee(e,t))return q(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(w=/^(only|not|and|or)$/.test(r)?"keyword":C.hasOwnProperty(r)?"tag":Q.hasOwnProperty(r)?"attribute":$.hasOwnProperty(r)?"property":S.hasOwnProperty(r)?"string.special":K(t.current()))&&re(t))return q(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(w="keyword"),n.context.type},W.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return re(t)?q(n,t,"block"):q(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return w=K(r),/^(max|min)/.test(r)&&(w="property"),"tag"==w&&(w=x.test(r)?"variable":"atom"),n.context.type}return W.atBlock(e,t,n)},W.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&ne(t)||"]"==e||"hash"==e||"qualifier"==e||Y(t.current()))?V(e,t,n):"{"==e?q(n,t,"keyframes"):"}"==e?ne(t)?B(n,t,!0):q(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?q(n,t,"keyframes"):"word"==e&&"block-keyword"==(w=K(t.current()))?(w="keyword",q(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?q(n,t,re(t)?"block":"atBlock"):"mixin"==e?q(n,t,"block",0):n.context.type},W.interpolation=function(e,t,n){return"{"==e&&B(n,t)&&q(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&Y(ie(t))?q(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?q(n,t,"block",0):q(n,t,"block"):"variable-name"==e?q(n,t,"variableName",0):("word"==e&&"tag"==(w=K(t.current()))&&(w="atom"),n.context.type)},W.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?B(n,t):"word"==e?(w=K(t.current()),"extend"):B(n,t)},W.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(w="variable"),"variableName"):V(e,t,n)};const oe={name:"stylus",startState:function(){return{tokenize:null,state:"block",context:new X("block",0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((y=(t.tokenize||N)(e,t))&&"object"==typeof y&&(b=y[1],y=y[0]),w=y,t.state=W[t.state](b,e,t),w)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=ie(t),s=n.lineIndent(n.pos),l=e.context.prev?e.context.prev.line.firstWord:"",u=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-n.unit:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||G(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||Y(a)?o=/\,\s*$/.test(l)?u:e.sol()||!/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)&&!Y(l)?s:s<=u?u:u+n.unit:/,\s*$/.test(t)||!H(a)&&!Z(a)||(o=G(l)?s<=u?u:u+n.unit:/^\{/.test(l)?s<=u?s:u+n.unit:H(l)||Z(l)?s>=u?u:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||Y(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?u+n.unit:s)),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:m}}},1763:(e,t,n)=>{"use strict";function r(e){for(var t={},n=0;nS});var i=r(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),o=r(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),a=r(["true","false","nil","self","super","_"]),s=r(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),l="+-/*%=|&<>~^?!",u=":;,.(){}[]",c=/^\-?0b[01][01_]*/,d=/^\-?0o[0-7][0-7_]*/,f=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,h=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,p=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,m=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,g=/^\#[A-Za-z]+/,v=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function O(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var r,O=e.peek();if("/"==O){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(w),w(e,t)}if(e.match(g))return"builtin";if(e.match(v))return"attribute";if(e.match(c))return"number";if(e.match(d))return"number";if(e.match(f))return"number";if(e.match(h))return"number";if(e.match(m))return"property";if(l.indexOf(O)>-1)return e.next(),"operator";if(u.indexOf(O)>-1)return e.next(),e.match(".."),"punctuation";if(r=e.match(/("""|"|')/)){var y=b.bind(null,r[0]);return t.tokenize.push(y),y(e,t)}if(e.match(p)){var k=e.current();return s.hasOwnProperty(k)?"type":a.hasOwnProperty(k)?"atom":i.hasOwnProperty(k)?(o.hasOwnProperty(k)&&(t.prev="define"),"keyword"):"define"==n?"def":"variable"}return e.next(),null}function y(){var e=0;return function(t,n,r){var i=O(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function b(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(y()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function w(e,t){for(var n;n=e.next();)if("/"===n&&e.eat("*"))t.tokenize.push(w);else if("*"===n&&e.eat("/")){t.tokenize.pop();break}return"comment"}function k(e,t,n){this.prev=e,this.align=t,this.indented=n}function x(e,t){var n=t.match(/^\s*($|\/[\/\*]|[)}\]])/,!1)?null:t.column()+1;e.context=new k(e.context,n,e.indented)}function _(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}const S={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||O)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?_:x)(t,e)}return r},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}},41680:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rd});var i=r("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),o=r("if elseif else and not or eq ne in ni for foreach while switch"),a=/[+\-*&%=<>!?^\/\|]/;function s(e,t,n){return t.tokenize=n,n(e,t)}function l(e,t){var n=t.beforeParams;t.beforeParams=!1;var r,d=e.next();if('"'!=d&&"'"!=d||!t.inParams){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&n?t.inParams=!0:")"==d&&(t.inParams=!1),null;if(/\d/.test(d))return e.eatWhile(/[\w\.]/),"number";if("#"==d)return e.eat("*")?s(e,t,u):"#"==d&&e.match(/ *\[ *\[/)?s(e,t,c):(e.skipToEnd(),"comment");if('"'==d)return e.skipTo(/"/),"comment";if("$"==d)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),t.beforeParams=!0,"builtin";if(a.test(d))return e.eatWhile(a),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var f=e.current().toLowerCase();return i&&i.propertyIsEnumerable(f)?"keyword":o&&o.propertyIsEnumerable(f)?(t.beforeParams=!0,"keyword"):null}return s(e,t,(r=d,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return o&&(t.tokenize=l),"string"}))}function u(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=l;break}r="*"==n}return"comment"}function c(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=l;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const d={name:"tcl",startState:function(){return{tokenize:l,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"#"}}}},95883:(e,t,n)=>{"use strict";n.r(t),n.d(t,{textile:()=>d});var r={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function i(e,t,n){if("_"===n)return e.eat("_")?o(e,t,"italic",/__/,2):o(e,t,"em",/_/,1);if("*"===n)return e.eat("*")?o(e,t,"bold",/\*\*/,2):o(e,t,"strong",/\*/,1);if("["===n)return e.match(/\d+\]/)&&(t.footCite=!0),a(t);if("("===n&&e.match(/^(r|tm|c)\)/))return r.specialChar;if("<"===n&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return r.html;if("?"===n&&e.eat("?"))return o(e,t,"cite",/\?\?/,2);if("="===n&&e.eat("="))return o(e,t,"notextile",/==/,2);if("-"===n&&!e.eat("-"))return o(e,t,"deletion",/-/,1);if("+"===n)return o(e,t,"addition",/\+/,1);if("~"===n)return o(e,t,"sub",/~/,1);if("^"===n)return o(e,t,"sup",/\^/,1);if("%"===n)return o(e,t,"span",/%/,1);if("@"===n)return o(e,t,"code",/@/,1);if("!"===n){var i=o(e,t,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),i}return a(t)}function o(e,t,n,r,i){var o=e.pos>i?e.string.charAt(e.pos-i-1):null,s=e.peek();if(t[n]){if((!s||/\W/.test(s))&&o&&/\S/.test(o)){var l=a(t);return t[n]=!1,l}}else(!o||/\W/.test(o))&&s&&/\S/.test(s)&&e.match(new RegExp("^.*\\S"+r.source+"(?:\\W|$)"),!1)&&(t[n]=!0,t.mode=c.attributes);return a(t)}function a(e){var t=s(e);if(t)return t;var n=[];return e.layoutType&&n.push(r[e.layoutType]),n=n.concat(function(e){for(var t=[],n=1;n]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,u("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,u("allAttributes")),"+\\.");case"type":return l.makeRe("^",u("allTypes"));case"typeLayout":return l.makeRe("^",u("allTypes"),u("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",u("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[e])}},makeRe:function(){for(var e="",t=0;t{"use strict";n.r(t),n.d(t,{tiddlyWiki:()=>P});var r={},i={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},o=/[\w_\-]/i,a=/^\-\-\-\-+$/,s=/^\/\*\*\*$/,l=/^\*\*\*\/$/,u=/^<<<$/,c=/^\/\/\{\{\{$/,d=/^\/\/\}\}\}$/,f=/^$/,h=/^$/,p=/^\{\{\{$/,m=/^\}\}\}$/,g=/.*?\}\}\}/;function v(e,t,n){return t.tokenize=n,n(e,t)}function O(e,t){var n=e.sol(),i=e.peek();if(t.block=!1,n&&/[<\/\*{}\-]/.test(i)){if(e.match(p))return t.block=!0,v(e,t,w);if(e.match(u))return"quote";if(e.match(s)||e.match(l))return"comment";if(e.match(c)||e.match(d)||e.match(f)||e.match(h))return"comment";if(e.match(a))return"contentSeparator"}if(e.next(),n&&/[\/\*!#;:>|]/.test(i)){if("!"==i)return e.skipToEnd(),"header";if("*"==i)return e.eatWhile("*"),"comment";if("#"==i)return e.eatWhile("#"),"comment";if(";"==i)return e.eatWhile(";"),"comment";if(":"==i)return e.eatWhile(":"),"comment";if(">"==i)return e.eatWhile(">"),"quote";if("|"==i)return"header"}if("{"==i&&e.match("{{"))return v(e,t,w);if(/[hf]/i.test(i)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==i)return"string";if("~"==i)return"brace";if(/[\[\]]/.test(i)&&e.match(i))return"brace";if("@"==i)return e.eatWhile(o),"link";if(/\d/.test(i))return e.eatWhile(/\d/),"number";if("/"==i){if(e.eat("%"))return v(e,t,y);if(e.eat("/"))return v(e,t,k)}if("_"==i&&e.eat("_"))return v(e,t,x);if("-"==i&&e.eat("-")){if(" "!=e.peek())return v(e,t,_);if(" "==e.peek())return"brace"}return"'"==i&&e.eat("'")?v(e,t,b):"<"==i&&e.eat("<")?v(e,t,S):(e.eatWhile(/[\w\$_]/),r.propertyIsEnumerable(e.current())?"keyword":null)}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=O;break}r="%"==n}return"comment"}function b(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=O;break}r="'"==n}return"strong"}function w(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(g)||n&&e.sol()&&e.match(m)?(t.tokenize=O,"comment"):(e.next(),"comment")}function k(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=O;break}r="/"==n}return"emphasis"}function x(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=O;break}r="_"==n}return"link"}function _(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=O;break}r="-"==n}return"deleted"}function S(e,t){if("<<"==e.current())return"meta";var n=e.next();return n?">"==n&&">"==e.peek()?(e.next(),t.tokenize=O,"meta"):(e.eatWhile(/[\w\$_]/),i.propertyIsEnumerable(e.current())?"keyword":null):(t.tokenize=O,null)}const P={name:"tiddlywiki",startState:function(){return{tokenize:O}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},21351:(e,t,n)=>{"use strict";function r(e,t,n){return function(r,i){for(;!r.eol();){if(r.match(t)){i.tokenize=o;break}r.next()}return n&&(i.tokenize=n),e}}function i(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=o,e}}function o(e,t){function n(n){return t.tokenize=n,n(e,t)}var a=e.sol(),s=e.next();switch(s){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),t.tokenize=c,"tag";case"_":if(e.eat("_"))return n(r("strong","__",o));break;case"'":if(e.eat("'"))return n(r("em","''",o));break;case"(":if(e.eat("("))return n(r("link","))",o));break;case"[":return n(r("url","]",o));case"|":if(e.eat("|"))return n(r("comment","||"));break;case"-":if(e.eat("="))return n(r("header string","=-",o));if(e.eat("-"))return n(r("error tw-deleted","--",o));break;case"=":if(e.match("=="))return n(r("tw-underline","===",o));break;case":":if(e.eat(":"))return n(r("comment","::"));break;case"^":return n(r("tw-box","^"));case"~":if(e.match("np~"))return n(r("meta","~/np~"))}if(a)switch(s){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),n(i("header string"));case"*":case"#":case"+":return n(i("tw-listitem bracket"))}return null}var a,s,l,u;function c(e,t){var n,r=e.next(),i=e.peek();return"}"==r?(t.tokenize=o,"tag"):"("==r||")"==r?"bracket":"="==r?(s="equals",">"==i&&(e.next(),i=e.peek()),/[\'\"]/.test(i)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=c;break}}return"string"}),"operator"):/[\'\"]/.test(r)?(t.tokenize=(n=r,function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=c;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function d(){for(var e=arguments.length-1;e>=0;e--)l.cc.push(arguments[e])}function f(){return d.apply(null,arguments),!0}function h(e,t){var n=l.context&&l.context.noIndent;l.context={prev:l.context,pluginName:e,indent:l.indented,startOfLine:t,noIndent:n}}function p(){l.context&&(l.context=l.context.prev)}function m(e){if("openPlugin"==e)return l.pluginName=a,f(g,(n=l.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?f():"endPlugin"==e?(h(l.pluginName,n),f()):f()}));if("closePlugin"==e){var t=!1;return l.context?(t=l.context.pluginName!=a,p()):t=!0,t&&(u="error"),f(function(e){return function(t){return e&&(u="error"),"endPlugin"==t?f():d()}}(t))}return"string"==e?(l.context&&"!cdata"==l.context.name||h("!cdata"),l.tokenize==o&&p(),f()):f();var n}function g(e){return"keyword"==e?(u="attribute",f(g)):"equals"==e?f(v,g):d()}function v(e){return"keyword"==e?(u="string",f()):"string"==e?f(O):d()}function O(e){return"string"==e?f(O):d()}n.r(t),n.d(t,{tiki:()=>y});const y={name:"tiki",startState:function(){return{tokenize:o,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;u=s=a=null;var n=t.tokenize(e,t);if((n||s)&&"comment"!=n)for(l=t;!(t.cc.pop()||m)(s||n););return t.startOfLine=!1,u||n},indent:function(e,t,n){var r=e.context;if(r&&r.noIndent)return 0;for(r&&/^{\//.test(t)&&(r=r.prev);r&&!r.startOfLine;)r=r.prev;return r?r.indent+n.unit:0}}},68212:(e,t,n)=>{"use strict";n.r(t),n.d(t,{toml:()=>r});const r={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile((function(e){return"="!=e&&" "!=e}))?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"},languageData:{commentTokens:{line:"#"}}}},89349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{troff:()=>a});var r={};function i(e){if(e.eatSpace())return null;var t=e.sol(),n=e.next();if("\\"===n)return e.match("fB")||e.match("fR")||e.match("fI")||e.match("u")||e.match("d")||e.match("%")||e.match("&")?"string":e.match("m[")?(e.skipTo("]"),e.next(),"string"):e.match("s+")||e.match("s-")?(e.eatWhile(/[\d-]/),"string"):e.match("(")||e.match("*(")?(e.eatWhile(/[\w-]/),"string"):"string";if(t&&("."===n||"'"===n)&&e.eat("\\")&&e.eat('"'))return e.skipToEnd(),"comment";if(t&&"."===n){if(e.match("B ")||e.match("I ")||e.match("R "))return"attribute";if(e.match("TH ")||e.match("SH ")||e.match("SS ")||e.match("HP "))return e.skipToEnd(),"quote";if(e.match(/[A-Z]/)&&e.match(/[A-Z]/)||e.match(/[a-z]/)&&e.match(/[a-z]/))return"attribute"}e.eatWhile(/[\w-]/);var i=e.current();return r.hasOwnProperty(i)?r[i]:null}function o(e,t){return(t.tokens[0]||i)(e,t)}const a={name:"troff",startState:function(){return{tokens:[]}},token:function(e,t){return o(e,t)}}},82668:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;r$});const i={name:"ttcn",keywords:r("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:r("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:r("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:r("read running start stop timeout"),portOps:r("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:r("create connect disconnect done kill killed map unmap"),verdictOps:r("getverdict setverdict"),sutOps:r("action"),functionOps:r("apply derefers refers"),verdictConsts:r("error fail inconc none pass"),booleanConsts:r("true false"),otherConsts:r("null NULL omit"),visibilityModifiers:r("private public friend"),templateMatch:r("complement ifpresent subset superset permutation"),multiLineStrings:!0};var o=[];function a(e){if(e)for(var t in e)e.hasOwnProperty(t)&&o.push(t)}a(i.keywords),a(i.builtin),a(i.timerOps),a(i.portOps);var s,l=i.keywords||{},u=i.builtin||{},c=i.timerOps||{},d=i.portOps||{},f=i.configOps||{},h=i.verdictOps||{},p=i.sutOps||{},m=i.functionOps||{},g=i.verdictConsts||{},v=i.booleanConsts||{},O=i.otherConsts||{},y=i.types||{},b=i.visibilityModifiers||{},w=i.templateMatch||{},k=i.multiLineStrings,x=!1!==i.indentStatements,_=/[+\-*&@=<>!\/]/;function S(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==r}return(o||!i&&!k)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(r))return s=r,"punctuation";if("#"==r)return e.skipToEnd(),"atom";if("%"==r)return e.eatWhile(/\b/),"atom";if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=P,P(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(_.test(r))return"@"==r&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(_),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();return l.propertyIsEnumerable(i)?"keyword":u.propertyIsEnumerable(i)?"builtin":c.propertyIsEnumerable(i)||f.propertyIsEnumerable(i)||h.propertyIsEnumerable(i)||d.propertyIsEnumerable(i)||p.propertyIsEnumerable(i)||m.propertyIsEnumerable(i)?"def":g.propertyIsEnumerable(i)||v.propertyIsEnumerable(i)||O.propertyIsEnumerable(i)?"string":y.propertyIsEnumerable(i)?"typeName.standard":b.propertyIsEnumerable(i)?"modifier":w.propertyIsEnumerable(i)?"atom":"variable"}function P(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function E(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function C(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new E(r,t,n,null,e.context)}function T(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const $={name:"ttcn",startState:function(){return{tokenize:null,context:new E(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;s=null;var r=(t.tokenize||S)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=s&&":"!=s&&","!=s||"statement"!=n.type)if("{"==s)C(t,e.column(),"}");else if("["==s)C(t,e.column(),"]");else if("("==s)C(t,e.column(),")");else if("}"==s){for(;"statement"==n.type;)n=T(t);for("}"==n.type&&(n=T(t));"statement"==n.type;)n=T(t)}else s==n.type?T(t):x&&(("}"==n.type||"top"==n.type)&&";"!=s||"statement"==n.type&&"newstatement"==s)&&C(t,e.column(),"statement");else T(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:o}}},68774:(e,t,n)=>{"use strict";var r;function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{turtle:()=>c}),i([]);var o=i(["@prefix","@base","a"]),a=/[*+\-<>=&|]/;function s(e,t){var n,i=e.next();if(r=null,"<"!=i||e.match(/^[\s\u00a0=]/,!1)){if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=s;break}i=!i&&"\\"==r}return"string"}),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(i))return r=i,null;if("#"==i)return e.skipToEnd(),"comment";if(a.test(i))return e.eatWhile(a),null;if(":"==i)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variableName.special";var l=e.current();return o.test(l)?"meta":i>="A"&&i<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function l(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function u(e){e.indent=e.context.indent,e.context=e.context.prev}const c={name:"turtle",startState:function(){return{tokenize:s,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)l(t,")",e.column());else if("["==r)l(t,"]",e.column());else if("{"==r)l(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)u(t);t.context&&r==t.context.type&&u(t)}else"."==r&&t.context&&"pattern"==t.context.type?u(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?l(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"#"}}}},152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{vb:()=>C});var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var o=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),a=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),s=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),l=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),u=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),c=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),d=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],f=["else","elseif","case","catch","finally"],h=["next","loop"],p=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],m=i(p),g=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],v=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],O=i(g),y=i(v),b=i(d),w=i(f),k=i(h),x=i(["end"]),_=i(["do"]);function S(e,t){t.currentIndent++}function P(e,t){t.currentIndent--}function E(e,t){if(e.eatSpace())return null;var n,i,d;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var f=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(f=!0),f)return e.eat(/J/i),"number";var h=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?h=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),h=!0):e.match(/^0(?![\dx])/i)&&(h=!0),h)return e.eat(/L/i),"number"}return e.match('"')?(t.tokenize=(n=e.current(),i=1==n.length,d="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(n))return t.tokenize=E,d;e.eat(/['"]/)}return i&&(t.tokenize=E),d}),t.tokenize(e,t)):e.match(u)||e.match(l)?null:e.match(s)||e.match(o)||e.match(m)?"operator":e.match(a)?null:e.match(_)?(S(0,t),t.doInCurrentLine=!0,"keyword"):e.match(b)?(t.doInCurrentLine?t.doInCurrentLine=!1:S(0,t),"keyword"):e.match(w)?"keyword":e.match(x)?(P(0,t),P(0,t),"keyword"):e.match(k)?(P(0,t),"keyword"):e.match(y)||e.match(O)?"keyword":e.match(c)?"variable":(e.next(),r)}const C={name:"vb",startState:function(){return{tokenize:E,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),i=e.current();if("."===i)return"variable"===(n=t.tokenize(e,t))?"variable":r;var o="[({".indexOf(i);return-1!==o&&S(0,t),-1!==(o="])}".indexOf(i))&&P(0,t)?r:n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(k)||r.match(x)||r.match(w)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:d.concat(f).concat(h).concat(p).concat(g).concat(v)}}},20530:(e,t,n)=>{"use strict";function r(e){var t="error";function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),i=new RegExp("^((<>)|(<=)|(>=))"),o=new RegExp("^[\\.,]"),a=new RegExp("^[\\(\\)]"),s=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),l=n(["and","or","not","xor","is","mod","eqv","imp"]),u=["WScript","err","debug","RegExp"],c=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);u=u.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(u=u.concat(["server","response","request","session","application"]),c=c.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var d=n(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),f=n(["true","false","nothing","empty","null"]),h=n(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),p=n(u),m=n(c),g=n(["class","sub","select","while","if","function","property","with","for"]),v=n(["else","elseif","case"]),O=n(["next","loop","wend"]),y=n(["end"]),b=n(["do"]),w=n(["on error resume next","exit"]),k=n(["rem"]);function x(e,t){t.currentIndent++}function _(e,t){t.currentIndent--}function S(e,n){if(e.eatSpace())return null;var u,c,P;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(k))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var E=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(E=!0),E)return e.eat(/J/i),"number";var C=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?C=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),C=!0):e.match(/^0(?![\dx])/i)&&(C=!0),C)return e.eat(/L/i),"number"}return e.match('"')?(n.tokenize=(u=e.current(),c=1==u.length,P="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(u))return t.tokenize=S,P;e.eat(/['"]/)}return c&&(t.tokenize=S),P}),n.tokenize(e,n)):e.match(i)||e.match(r)||e.match(l)?"operator":e.match(o)?null:e.match(a)?"bracket":e.match(w)?(n.doInCurrentLine=!0,"keyword"):e.match(b)?(x(0,n),n.doInCurrentLine=!0,"keyword"):e.match(g)?(n.doInCurrentLine?n.doInCurrentLine=!1:x(0,n),"keyword"):e.match(v)?"keyword":e.match(y)?(_(0,n),_(0,n),"keyword"):e.match(O)?(n.doInCurrentLine?n.doInCurrentLine=!1:_(0,n),"keyword"):e.match(d)?"keyword":e.match(f)?"atom":e.match(m)?"variableName.special":e.match(h)||e.match(p)?"builtin":e.match(s)?"variable":(e.next(),t)}return{name:"vbscript",startState:function(){return{tokenize:S,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=function(e,n){var r=n.tokenize(e,n),i=e.current();return"."===i?(r=n.tokenize(e,n),i=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?t:("builtin"!==r&&"keyword"!==r||(r="variable"),c.indexOf(i.substr(1))>-1&&(r="keyword"),r)):r}(e,n);return n.lastToken={style:r,content:e.current()},null===r&&(r=null),r},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(O)||r.match(y)||r.match(v)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit}}}n.r(t),n.d(t,{vbScript:()=>i,vbScriptASP:()=>o});const i=r({}),o=r({isASP:!0})},50889:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(" "),r=0;rh});var i=r("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),o=r("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),a=r("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),s=/[+\-*&%=<>!?:\/|]/;function l(e,t,n){return t.tokenize=n,n(e,t)}function u(e,t){var n=t.beforeParams;t.beforeParams=!1;var r=e.next();if("'"==r&&!t.inString&&t.inParams)return t.lastTokenWasBuiltin=!1,l(e,t,c(r));if('"'!=r){if(/[\[\]{}\(\),;\.]/.test(r))return"("==r&&n?t.inParams=!0:")"==r&&(t.inParams=!1,t.lastTokenWasBuiltin=!0),null;if(/\d/.test(r))return t.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==r&&e.eat("*"))return t.lastTokenWasBuiltin=!1,l(e,t,d);if("#"==r&&e.match(/ *\[ *\[/))return t.lastTokenWasBuiltin=!1,l(e,t,f);if("#"==r&&e.eat("#"))return t.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==r)return e.eat("!"),e.eatWhile(/[\w\d\$_\.{}-]/),a&&a.propertyIsEnumerable(e.current())?"keyword":(t.lastTokenWasBuiltin=!0,t.beforeParams=!0,"builtin");if(s.test(r))return t.lastTokenWasBuiltin=!1,e.eatWhile(s),"operator";e.eatWhile(/[\w\$_{}@]/);var u=e.current();return i&&i.propertyIsEnumerable(u)?"keyword":o&&o.propertyIsEnumerable(u)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!o||!o.propertyIsEnumerable(u.toLowerCase()))?(t.beforeParams=!0,t.lastTokenWasBuiltin=!1,"keyword"):t.inString?(t.lastTokenWasBuiltin=!1,"string"):e.pos>u.length&&"."==e.string.charAt(e.pos-u.length-1)&&t.lastTokenWasBuiltin?"builtin":(t.lastTokenWasBuiltin=!1,null)}return t.lastTokenWasBuiltin=!1,t.inString?(t.inString=!1,"string"):t.inParams?l(e,t,c(r)):void 0}function c(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}if('"'==e&&"$"==t.peek()&&!i){n.inString=!0,o=!0;break}i=!i&&"\\"==r}return o&&(n.tokenize=u),"string"}}function d(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=u;break}r="*"==n}return"comment"}function f(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=u;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const h={name:"velocity",startState:function(){return{tokenize:u,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}}},23074:(e,t,n)=>{"use strict";function r(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,r=e.noIndentKeywords||[],i=e.multiLineStrings,o=e.hooks||{};function a(e){for(var t={},n=e.split(" "),r=0;r=0)return a}var s=e.context,l=r&&r.charAt(0);"statement"==s.type&&"}"==l&&(s=s.prev);var u=!1,c=r.match(O);return c&&(u=$(c[0],s.type)),"statement"==s.type?s.indented+("{"==l?0:t||i.unit):y.test(s.type)&&s.align&&!n?s.column+(u?0:1):")"!=s.type||u?s.indented+(u?0:i.unit):s.indented+(t||i.unit)},languageData:{indentOnInput:function(){var e=[];for(var t in w)if(w[t]){var n=w[t].split(";");for(var r in n)e.push(n[r])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}n.r(t),n.d(t,{tlv:()=>c,verilog:()=>i});const i=r({});var o={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"},a={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},s=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,l=/^[! ] */,u=/^\/[\/\*]/;const c=r({hooks:{electricInput:!1,token:function(e,t){var n,r=void 0;if(e.sol()&&!t.tlvInBlockComment){"\\"==e.peek()&&(r="def",e.skipToEnd(),e.string.match(/\\SV/)?t.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(t.tlvCodeActive=!0)),t.tlvCodeActive&&0==e.pos&&0==t.indented&&(n=e.match(l,!1))&&(t.indented=n[0].length);var i=t.indented,c=i/3;if(c<=t.tlvIndentationStyle.length){var d=e.string.length==i,f=3*c;if(f0||(t.tlvIndentationStyle[c]=a[p],c++))}if(!d)for(;t.tlvIndentationStyle.length>c;)t.tlvIndentationStyle.pop()}t.tlvNextIndent=i}if(t.tlvCodeActive)if(void 0!==r);else if(t.tlvInBlockComment)e.match(/^.*?\*\//)?t.tlvInBlockComment=!1:e.skipToEnd(),r="comment";else if((n=e.match(u))&&!t.tlvInBlockComment)"//"==n[0]?e.skipToEnd():t.tlvInBlockComment=!0,r="comment";else if(n=e.match(s)){var m=n[1],g=n[2];o.hasOwnProperty(m)&&(g.length>0||e.eol())?r=o[m]:e.backUp(e.current().length-1)}else e.match(/^\t+/)?r="invalid":e.match(/^[\[\]{}\(\);\:]+/)?r="meta":(n=e.match(/^[mM]4([\+_])?[\w\d_]*/))?r="+"==n[1]?"keyword.special":"keyword":e.match(/^ +/)?e.eol()&&(r="error"):e.match(/^[\w\d_]+/)?r="number":e.next();else e.match(/^[mM]4([\w\d_]*)/)&&(r="keyword");return r},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}})},14119:(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.split(","),r=0;rm});var o,a=r("null"),s={"`":i,$:i},l=r("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),u=r("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),c=/[&|~>{"use strict";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{webIDL:()=>x});var i=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],o=r(i),a=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],s=r(a),l=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],u=r(l),c=["true","false","Infinity","NaN","null"],d=r(c),f=r(["callback","dictionary","enum","interface"]),h=r(["typedef"]),p=/^[:<=>?]/,m=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,g=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,v=/^_?[A-Za-z][0-9A-Z_a-z-]*/,O=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,y=/^"[^"]*"/,b=/^\/\*.*?\*\//,w=/^\/\*.*/,k=/^.*?\*\//;const x={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(k)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(b))return"comment";if(e.match(w))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(m)||e.match(g)))return"number";if(e.match(y))return"string";if(t.startDef&&e.match(v))return"def";if(t.endDef&&e.match(O))return t.endDef=!1,"def";if(e.match(u))return"keyword";if(e.match(s)){var n=t.lastToken,r=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===r||"="===r?"builtin":"type"}return e.match(o)?"builtin":e.match(d)?"atom":e.match(v)?"variable":e.match(p)?"operator":(e.next(),null)}(e,t);if(n){var r=e.current();t.lastToken=r,"keyword"===n?(t.startDef=f.test(r),t.endDef=t.endDef||h.test(r)):t.startDef=!1}return n},languageData:{autocomplete:i.concat(a).concat(l).concat(c)}}},83365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{xQuery:()=>O});var r=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},o=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],a=0,s=o.length;a",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(a=0,s=u.length;a\"\'\/?]/);)w+=b;return i(e,t,function(e,t){return function(n,r){return n.eatSpace(),t&&n.eat(">")?(v(r),r.tokenize=o,"tag"):(n.eat("/")||g(r,{type:"tag",name:e,tokenize:o}),n.eat(">")?(r.tokenize=o,"tag"):(r.tokenize=u,"tag"))}}(w,y))}if("{"==n)return g(t,{type:"codeblock"}),null;if("}"==n)return v(t),null;if(h(t))return">"==n?"tag":"/"==n&&e.eat(">")?(v(t),"tag"):"variable";if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===n&&e.eat(":"))return g(t,{type:"comment"}),i(e,t,a);if(O||'"'!==n&&"'"!==n){if("$"===n)return i(e,t,l);if(":"===n&&e.eat("="))return"keyword";if("("===n)return g(t,{type:"paren"}),null;if(")"===n)return v(t),null;if("["===n)return g(t,{type:"bracket"}),null;if("]"===n)return v(t),null;var k=r.propertyIsEnumerable(n)&&r[n];if(O&&'"'===n)for(;'"'!==e.next(););if(O&&"'"===n)for(;"'"!==e.next(););k||e.eatWhile(/[\w\$_-]/);var x=e.eat(":");!e.eat(":")&&x&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(p=!0);var _=e.current();return k=r.propertyIsEnumerable(_)&&r[_],p&&!k&&(k={type:"function_call",style:"def"}),function(e){return m(e,"xmlconstructor")}(t)?(v(t),"variable"):("element"!=_&&"attribute"!=_&&"axis_specifier"!=k.type||g(t,{type:"xmlconstructor"}),k?k.style:"variable")}return i(e,t,s(n))}function a(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if(")"==n&&r){if(!(o>0)){v(t);break}o--}else":"==n&&i&&o++;r=":"==n,i="("==n}return"comment"}function s(e,t){return function(n,r){var i;if(function(e){return m(e,"string")}(r)&&n.current()==e)return v(r),t&&(r.tokenize=t),"string";if(g(r,{type:"string",name:e,tokenize:s(e,t)}),n.match("{",!1)&&p(r))return r.tokenize=o,"string";for(;i=n.next();){if(i==e){v(r),t&&(r.tokenize=t);break}if(n.match("{",!1)&&p(r))return r.tokenize=o,"string"}return"string"}}function l(e,t){var n=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(n),e.match(":=",!1)||e.eat(":");return e.eatWhile(n),t.tokenize=o,"variable"}function u(e,t){var n=e.next();return"/"==n&&e.eat(">")?(p(t)&&v(t),h(t)&&v(t),"tag"):">"==n?(p(t)&&v(t),"tag"):"="==n?null:'"'==n||"'"==n?i(e,t,s(n,u)):(p(t)||g(t,{type:"attribute",tokenize:u}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(v(t),t.tokenize=o),"attribute")}function c(e,t){for(var n;n=e.next();)if("-"==n&&e.match("->",!0))return t.tokenize=o,"comment"}function d(e,t){for(var n;n=e.next();)if("]"==n&&e.match("]",!0))return t.tokenize=o,"comment"}function f(e,t){for(var n;n=e.next();)if("?"==n&&e.match(">",!0))return t.tokenize=o,"processingInstruction"}function h(e){return m(e,"tag")}function p(e){return m(e,"attribute")}function m(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function g(e,t){e.stack.push(t)}function v(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||o}const O={name:"xquery",startState:function(){return{tokenize:o,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}}},5717:(e,t,n)=>{"use strict";n.r(t),n.d(t,{yacas:()=>h});var r=function(e){for(var t={},n="Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While".split(" "),r=0;r|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function c(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=u),"string"}function d(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=u;break}n=r}return"comment"}function f(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}const h={name:"yacas",startState:function(){return{tokenize:u,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(e,t,n){if(e.tokenize!==u&&null!==e.tokenize)return null;var r=0;return"]"!==t&&"];"!==t&&"}"!==t&&"};"!==t&&");"!==t||(r=-1),(e.scopes.length+r)*n.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},55273:(e,t,n)=>{"use strict";n.r(t),n.d(t,{yaml:()=>i});var r=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");const i={name:"yaml",token:function(e,t){var n=e.peek(),i=t.escaped;if(t.escaped=!1,"#"==n&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol)return e.skipToEnd(),"string";if(t.literal&&(t.literal=!1),e.sol()){if(t.keyCol=0,t.pair=!1,t.pairStart=!1,e.match("---"))return"def";if(e.match("..."))return"def";if(e.match(/^\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==n?t.inlinePairs++:"}"==n?t.inlinePairs--:"["==n?t.inlineList++:t.inlineList--,"meta";if(t.inlineList>0&&!i&&","==n)return e.next(),"meta";if(t.inlinePairs>0&&!i&&","==n)return t.keyCol=0,t.pair=!1,t.pairStart=!1,e.next(),"meta";if(t.pairStart){if(e.match(/^\s*(\||\>)\s*/))return t.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(0==t.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(t.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(r))return"keyword"}return!t.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(t.pair=!0,t.keyCol=e.indentation(),"atom"):t.pair&&e.match(/^:\s*/)?(t.pairStart=!0,"meta"):(t.pairStart=!1,t.escaped="\\"==n,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}}},835:(e,t,n)=>{"use strict";function r(e){var t,n;e?(t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,n=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,n=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var r=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,i=/^(n?[zc]|p[oe]?|m)\b/i,o=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(s,l){if(s.column()||(l.context=0),s.eatSpace())return null;var u;if(s.eatWhile(/\w/)){if(e&&s.eat(".")&&s.eatWhile(/\w/),u=s.current(),!s.indentation())return s.match(a)?"number":null;if((1==l.context||4==l.context)&&r.test(u))return l.context=4,"variable";if(2==l.context&&i.test(u))return l.context=4,"variableName.special";if(t.test(u))return l.context=1,"keyword";if(n.test(u))return l.context=2,"keyword";if(4==l.context&&a.test(u))return"number";if(o.test(u))return"error"}else{if(s.eat(";"))return s.skipToEnd(),"comment";if(s.eat('"')){for(;(u=s.next())&&'"'!=u;)"\\"==u&&s.next();return"string"}if(s.eat("'")){if(s.match(/\\?.'/))return"number"}else if(s.eat(".")||s.sol()&&s.eat("#")){if(l.context=5,s.eatWhile(/\w/))return"def"}else if(s.eat("$")){if(s.eatWhile(/[\da-f]/i))return"number"}else if(s.eat("%")){if(s.eatWhile(/[01]/))return"number"}else s.next()}return null}}}n.r(t),n.d(t,{ez80:()=>o,z80:()=>i});const i=r(!1),o=r(!0)},30638:(e,t,n)=>{"use strict";n.d(t,{BO:()=>ke,D0:()=>Oe,Gz:()=>Ne,IS:()=>We,Py:()=>ce,QQ:()=>q,Wl:()=>V,Xs:()=>Ee,YW:()=>de,as:()=>E,bg:()=>k,cp:()=>g,f_:()=>Ce,gc:()=>S,gm:()=>w,jT:()=>D,n0:()=>P,nZ:()=>x,q6:()=>se,r$:()=>z,uU:()=>xe,xv:()=>r,yy:()=>we});class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),o.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),o.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new l(this),i=new l(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new u(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new i(e):o.from(i.split(e,[])):r.empty}}class i extends r{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new d(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new i(s(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=a(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new i(t,e.length+o.length));else{let e=t.length>>1;n.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof i))return super.replace(e,t,n);let r=a(this.text,a(n.text,s(this.text,0,e)),t),l=this.length+n.length-(t-e);return r.length<=32?new i(r,l):o.from(i.split(r,[]),l)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}}class o extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(e,t,n){if(n.lines=i&&t<=s){let l=a.replace(e-i,t-i,n),u=this.lines-a.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let i=this.children.slice();return i[r]=l,new o(i,this.length-(t-e)+n.length)}return super.replace(i,s,l)}i=s+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let n=0,[r,i,a,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==a||i==s)return n;let o=this.children[r],l=e.children[i];if(o!=l)return n+o.scanIdentical(l,t);n+=o.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new i(n,t)}let r=Math.max(32,n>>5),a=r<<1,s=r>>1,l=[],u=0,c=-1,d=[];function f(e){let t;if(e.lines>a&&e instanceof o)for(let t of e.children)f(t);else e.lines>s&&(u>s||!u)?(h(),l.push(e)):e instanceof i&&u&&(t=d[d.length-1])instanceof i&&e.lines+t.lines<=32?(u+=e.lines,c+=e.length+1,d[d.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)):(u+e.lines>r&&h(),u+=e.lines,c+=e.length+1,d.push(e))}function h(){0!=u&&(l.push(1==d.length?d[0]:o.from(d,c)),c=-1,u=d.length=0)}for(let t of e)f(t);return h(),1==l.length?l[0]:new o(l,t)}}function a(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],a=o>>1,s=r instanceof i?r.text.length:r.children.length;if(a==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof i){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let o=r.children[a+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof i?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class u{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this});class d{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let f="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;ee)return f[t-1]<=e;return!1}function p(e){return e>=127462&&e<=127487}const m=8205;function g(e,t,n=!0,r=!0){return(n?v:O)(e,t,r)}function v(e,t,n){if(t==e.length)return t;t&&y(e.charCodeAt(t))&&b(e.charCodeAt(t-1))&&t--;let r=w(e,t);for(t+=x(r);t=0&&p(w(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function O(e,t,n){for(;t>0;){let r=v(e,t-2,n);if(r=56320&&e<57344}function b(e){return e>=55296&&e<56320}function w(e,t){let n=e.charCodeAt(t);if(!b(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return y(r)?r-56320+(n-55296<<10)+65536:n}function k(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function x(e){return e<65536?1:2}const _=/\r\n?|\n/;var S=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(S||(S={}));class P{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=a}else{if(n!=S.Simple&&l>=e&&(n==S.TrackDel&&re||n==S.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new P(e)}static create(e){return new P(e)}}class E extends P{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return $(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e,t=!1){return Q(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,o=0;i=0){t[i]=s,t[i+1]=a;let l=i>>1;for(;n.length0&&T(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let i=[],o=[],a=0,s=null;function l(e=!1){if(!e&&!i.length)return;as||e<0||s>t)throw new RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let d=c?"string"==typeof c?r.of(c.split(n||_)):c:r.empty,f=d.length;if(e==s&&0==f)return;ea&&C(i,e-a,-1),C(i,s-e,f),T(o,i,d),a=s}}(e),l(!s),s}static empty(e){return new E(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;it&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function T(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)l=e.sections[s++],u=e.sections[s++];t(o,c,a,d,f),o=c,a=d}}}function Q(e,t,n,r=!1){let i=[],o=r?[]:null,a=new A(e),s=new A(t);for(let e=-1;;)if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);C(i,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(s.len=0&&e=0)){if(a.done&&s.done)return o?E.createSet(i,o):P.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=a.len;for(;n;)if(-1==s.ins){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else{if(!(0==s.ins&&s.lent||a.ins>=0&&a.len>t)&&(e||r.length>n),o.forward2(t),a.forward(t)}}else C(r,0,a.ins,e),i&&T(i,r,a.text),a.next()}}class A{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class j{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new j(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return D.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return D.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return D.range(e.anchor,e.head)}static create(e,t,n){return new j(e,t,n)}}class D{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:D.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new D(e.ranges.map((e=>j.fromJSON(e))),e.main)}static single(e,t=e){return new D([D.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;re?4:0)|i)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;nr.head?D.range(a,o):D.range(o,a))}}return new D(e,t)}}function M(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let I=0;class z{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=I++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}static define(e={}){return new z(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:W),!!e.static,e.enables)}of(e){return new N([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new N(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new N(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function W(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class N{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=I++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,u=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:0==(1&(null!==(t=e[n.id])&&void 0!==t?t:1))&&u.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||F(e,u)){let t=n(e);if(a?!L(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[i];if(null!=l){let i=J(t,l);if(this.dependencies.every((n=>n instanceof z?t.facet(n)===e.facet(n):!(n instanceof q)||t.field(n,!1)==e.field(n,!1)))||(a?L(s=n(e),i,r):r(s=n(e),i)))return e.values[o]=i,0}else s=n(e);return e.values[o]=s,1}}}}function L(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(X).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,X.of({field:this,create:e})]}get extension(){return this}}function B(e){return t=>new Y(t,e)}const V={highest:B(0),high:B(1),default:B(2),low:B(3),lowest:B(4)};class Y{constructor(e,t){this.inner=e,this.prec=t}}class Z{of(e){return new G(this,e)}reconfigure(e){return Z.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class G{constructor(e,t){this.compartment=e,this.inner=t}}class H{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;return function e(o,a){let s=i.get(o);if(null!=s){if(s<=a)return;let e=r[s].indexOf(o);e>-1&&r[s].splice(e,1),o instanceof G&&n.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let t of o)e(t,a);else if(o instanceof G){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(o.compartment)||o.inner;n.set(o.compartment,r),e(r,a)}else if(o instanceof Y)e(o.inner,o.prec);else if(o instanceof q)r[a].push(o),o.provides&&e(o.provides,a);else if(o instanceof N)r[a].push(o),o.facet.extensions&&e(o.facet.extensions,2);else{let t=o.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,a)}}(e,2),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))n instanceof q?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let a=Object.create(null),s=[],l=[];for(let e of r)a[e.id]=l.length<<1,l.push((t=>e.slot(t)));let u=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,o=u&&u[e]||[];if(t.every((e=>0==e.type)))if(a[r.id]=s.length<<1|1,W(o,t))s.push(n.facet(r));else{let e=r.combine(t.map((e=>e.value)));s.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(a[e.id]=s.length<<1|1,s.push(e.value)):(a[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));a[r.id]=l.length<<1,l.push((e=>U(e,r,t)))}}let c=l.map((e=>e(a)));return new H(e,o,c,a,s,i)}}function K(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function J(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ee=z.define(),te=z.define({combine:e=>e.some((e=>e)),static:!0}),ne=z.define({combine:e=>e.length?e[0]:void 0,static:!0}),re=z.define(),ie=z.define(),oe=z.define(),ae=z.define({combine:e=>!!e.length&&e[0]});class se{constructor(e,t){this.type=e,this.value=t}static define(){return new le}}class le{of(e){return new se(this,e)}}class ue{constructor(e){this.map=e}of(e){return new ce(this,e)}}class ce{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ce(this.type,t)}is(e){return this.type==e}static define(e={}){return new ue(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}ce.reconfigure=ce.define(),ce.appendConfig=ce.define();class de{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&M(n,t.newLength),i.some((e=>e.type==de.time))||(this.annotations=i.concat(de.time.of(Date.now())))}static create(e,t,n,r,i,o){return new de(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(de.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function fe(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=he(r,pe(t,o,e.changes.newLength),!0))}return r==e?e:de.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(re)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:fe(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=E.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=de.create(t,r,e.selection&&e.selection.map(i),ce.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(ie);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof de?i:Array.isArray(i)&&1==i.length&&i[0]instanceof de?i[0]:me(t,ve(i),!1)}return e}(i):i)}de.time=se.define(),de.userEvent=se.define(),de.addToHistory=se.define(),de.remote=se.define();const ge=[];function ve(e){return null==e?ge:Array.isArray(e)?e:[e]}var Oe=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Oe||(Oe={}));const ye=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let be;try{be=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class we{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;ei.set(t,e))),n=null),i.set(t.value.compartment,t.value.extension)):t.is(ce.reconfigure)?(n=null,r=t.value):t.is(ce.appendConfig)&&(n=null,r=ve(r).concat(t.value));n?t=e.startState.values.slice():(n=H.resolve(r,i,this),t=new we(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values),new we(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:D.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=ve(n.effects);for(let n=1;ni.spec.fromJSON(o,e))))}return we.create({doc:e.doc,selection:D.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=H.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(we.lineSeparator)||_)),i=e.selection?e.selection instanceof D?e.selection:D.single(e.selection.anchor,e.selection.head):D.single(0);return M(i,n.length),t.staticFacet(te)||(i=i.asSingle()),new we(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(we.tabSize)}get lineBreak(){return this.facet(we.lineSeparator)||"\n"}get readOnly(){return this.facet(ae)}phrase(e,...t){for(let t of this.facet(we.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(ee))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return Oe.Space;if(function(e){if(be)return be.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||ye.test(n)))return!0}return!1}(e))return Oe.Word;for(let n=0;n-1)return Oe.Word;return Oe.Other};var t}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=g(t,o,!1);if(i(t.slice(e,o))!=Oe.Word)break;o=e}for(;ae.length?e[0]:4}),we.lineSeparator=ne,we.readOnly=ae,we.phrases=z.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),we.languageData=ee,we.changeFilter=re,we.transactionFilter=ie,we.transactionExtender=oe,Z.reconfigure=ce.define();class xe{eq(e){return this==e}range(e,t=e){return _e.create(e,t,this)}}xe.prototype.startSide=xe.prototype.endSide=0,xe.prototype.point=!1,xe.prototype.mapMode=S.TrackDel;class _e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new _e(e,t,n)}}function Se(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Pe{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);iu||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(o<0&&(o=l),c.point&&(a=Math.max(a,u-l)),n.push(c),r.push(l-o),i.push(u-o))}return{mapped:n.length?new Pe(r,i,n,a):null,pos:o}}}class Ee{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Ee(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Se)),this.isEmpty)return t.length?Ee.of(t):this;let a=new $e(this,null,-1).goto(0),s=0,l=[],u=new Ce;for(;a.value||s=0){let e=t[s++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ia.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Qe.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Qe.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=Te(o,a,n),l=new Ae(o,s,i),u=new Ae(a,s,i);n.iterGaps(((e,t,n)=>je(l,e,u,t,n,r))),n.empty&&0==n.length&&je(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let a=Te(i,o),s=new Ae(i,a,0).goto(n),l=new Ae(o,a,0).goto(n);for(;;){if(s.to!=l.to||!De(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new Ae(e,null,i).goto(t),a=t,s=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFroma&&(r.span(a,e,o.active,s),s=o.openEnd(e));if(o.to>n)return s+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new Ce;for(let r of e instanceof _e?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Se);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}Ee.empty=new Ee([],[],null,-1),Ee.empty.nextLayer=Ee.empty;class Ce{finishChunk(e){this.chunks.push(new Pe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Ce)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ee.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ee.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Te(e,t,n){let r=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new $e(o,t,n,i));return 1==r.length?r[0]:new Qe(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Re(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Re(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Re(this.heap,0)}}}function Re(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class Ae{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Qe.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Me(this.active,e),Me(this.activeTo,e),Me(this.activeRank,e),this.minActive=ze(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Me(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function je(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&De(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,i,e.point,n.point):i>s&&!De(e.active,n.active)&&o.compareRange(s,i,e.active,n.active),r>a)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function De(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function ze(e,t){let n=-1,r=1e9;for(let i=0;i=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=g(e,r)}return!0===r?-1:e.length}},87283:(e,t,n)=>{"use strict";n.d(t,{p:()=>ce,Nm:()=>Ve,tk:()=>Yn,SJ:()=>yi,lg:()=>je,l9:()=>le,S2:()=>Zr,Uw:()=>vr,qr:()=>Er,Sd:()=>pi,gB:()=>di,v5:()=>xi,ZO:()=>Wr,HQ:()=>Li,AE:()=>Dr,bF:()=>ci,$f:()=>nr,Eu:()=>Ii,OO:()=>$e,W$:()=>Ur,Zs:()=>Br,$1:()=>or,mH:()=>Oi,hJ:()=>ii});for(var r=n(30638),i=n(93662),o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=0;u<10;u++)o[48+u]=o[96+u]=String(u);for(u=1;u<=24;u++)o[u+111]="F"+u;for(u=65;u<=90;u++)o[u]=String.fromCharCode(u+32),a[u]=String.fromCharCode(u);for(var c in o)a.hasOwnProperty(c)||(a[c]=o[c]);function d(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function f(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function h(e,t){if(!t.anchorNode)return!1;try{return f(e,t.anchorNode)}catch(e){return!1}}function p(e){return 3==e.nodeType?S(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function m(e,t,n,r){return!!n&&(v(e,t,n,r,-1)||v(e,t,n,r,1))}function g(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function v(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:O(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=g(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?O(e):0}}}function O(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function y(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function b(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class w{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?O(t):0),n,Math.min(e.focusOffset,n?O(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let k,x=null;function _(e){if(e.setActive)return e.setActive();if(x)return e.focus(x);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let e=0;eMath.max(1,e.scrollHeight-e.clientHeight-4)}class T{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new T(e.parentNode,g(e),t)}static after(e,t){return new T(e.parentNode,g(e)+1,t)}}const $=[];class Q{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,r=this.dom,i=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let e=Q.get(n);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(e,t),o.flags&=-8}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;n&&n!=o.dom;)n=R(n);else r.insertBefore(o.dom,n);i=o.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=R(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==O(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Q.get(n);)n=n.nextSibling;if(!n)return this.length;for(let e=0,t=0;;e++){let r=this.children[e];if(r.dom==n)return t;t+=r.length+r.breakAfter}}domBoundsAround(e,t,n=0){let r=-1,i=-1,o=-1,a=-1;for(let s=0,l=n,u=n;st)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=s,i=l),l>t&&n.dom.parentNode==this.dom){o=s,a=u;break}u=c,l=c+n.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=$){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function j(e,t,n,r,i,o,a,s,l){let{children:u}=e,c=u.length?u[t]:null,d=o.length?o[o.length-1]:null,f=d?d.breakAfter:a;if(!(t==r&&c&&!a&&!f&&o.length<2&&c.merge(n,i,o.length?d:null,0==n,s,l))){if(r0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n2);var V={mac:B||/Mac/.test(M.platform),windows:/Win/.test(M.platform),linux:/Linux|X11/.test(M.platform),ie:L,ie_version:W?I.documentMode||6:N?+N[1]:z?+z[1]:0,gecko:F,gecko_version:F?+(/Firefox\/(\d+)/.exec(M.userAgent)||[0,0])[1]:0,chrome:!!U,chrome_version:U?+U[1]:0,ios:B,android:/Android\b/.test(M.userAgent),webkit:X,safari:q,webkit_version:X?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=I.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Y extends Q{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof Y)||this.length-(t-e)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new Y(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new T(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;0==t&&n<0||t==r&&n>=0?V.chrome||V.gecko||(t?(i--,a=1):o=0)?0:s.length-1];return V.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,(e=>e.width))||l),a?y(l,a<0):l||null}(this.dom,e,t)}}class Z extends Q{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(E(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof Z&&n.mark.eq(this.mark))||e&&i<=0||te&&t.push(n=e&&(r=i),n=a,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new Z(this.mark,t,o)}domAtPos(e){return K(this,e)}coordsAt(e,t){return ee(this,e,t)}}class G extends Q{static create(e,t,n){return new G(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=G.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof G&&this.widget.compare(n.widget))||e>0&&i<=0||t0)?T.before(this.dom):T.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let t=o?r.length-1:0;i=r[t],!(e>0?0==t:t==r.length-1||i.top0?T.before(this.dom):T.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return r.xv.empty}get isHidden(){return!0}}function K(e,t){let n=e.dom,{children:r}=e,i=0;for(let e=0;ie&&t0;e--){let t=r[e-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let e=i;e0&&t instanceof Z&&i.length&&(r=i[i.length-1])instanceof Z&&r.mark.eq(t.mark)?J(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function ee(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(t,s){for(let l=0,u=0;l=s&&(c.children.length?e(c,s-u):(!o||o.isHidden&&n>0)&&(d>s||u==d&&c.getSide()>0)?(o=c,a=s-u):(u-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function ie(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function oe(e){let t=Object.create(null);for(let n=0;n0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){re(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){J(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=te(t,this.attrs||{})),n&&(this.attrs=te({class:n},this.attrs||{}))}domAtPos(e){return K(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(E(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ie(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&Q.get(r)instanceof Z;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=Q.get(r))||void 0===n?void 0:n.isEditable)||V.ios&&this.children.some((e=>e instanceof Y))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof Y)||/[^ -~]/.test(n.text))return null;let r=p(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=ee(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight=t){if(i instanceof ae)return i;if(o>t)break}r=o+i.breakAfter}return null}}class se extends Q{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof se&&this.widget.compare(n.widget))||e>0&&i<=0||t0)}}class le{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}destroy(e){}}var ue=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ue||(ue={}));class ce extends r.uU{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new de(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new he(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=pe(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new he(e,t,n,r,e.widget||null,!0)}static line(e){return new fe(e)}static set(e,t=!1){return r.Xs.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}ce.none=r.Xs.empty;class de extends ce{constructor(e){let{start:t,end:n}=pe(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof de&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&re(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}de.prototype.point=!1;class fe extends ce{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof fe&&this.spec.class==e.spec.class&&re(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}fe.prototype.mapMode=r.gc.TrackBefore,fe.prototype.point=!0;class he extends ce{constructor(e,t,n,i,o,a){super(t,n,o,e),this.block=i,this.isReplace=a,this.mapMode=i?t<=0?r.gc.TrackBefore:r.gc.TrackAfter:r.gc.TrackDel}get type(){return this.startSide!=this.endSide?ue.WidgetRange:this.startSide<=0?ue.WidgetBefore:ue.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof he&&((t=this.widget)==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function pe(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function me(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}he.prototype.point=!0;class ge{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof se&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ae),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(ve(new H(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof se||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(ve(new Y(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof he){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof he)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new se(n.widget||new Oe("div"),a,n));else{let o=G.create(n.widget||new Oe("span"),a,a?0:n.startSide),s=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e0),l=!o.isEditable&&(er.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||s||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),s&&(u.append(ve(new H(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(ve(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,o){let a=new ge(e,t,n,o);return a.openEnd=r.Xs.spans(i,t,n,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function ve(e,t){for(let n of t)e=new Z(n,[e],e.length);return e}class Oe extends le{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const ye=r.r$.define(),be=r.r$.define(),we=r.r$.define(),ke=r.r$.define(),xe=r.r$.define(),_e=r.r$.define(),Se=r.r$.define(),Pe=r.r$.define({combine:e=>e.some((e=>e))}),Ee=r.r$.define({combine:e=>e.some((e=>e))});class Ce{constructor(e,t="nearest",n="nearest",r=5,i=5){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i}map(e){return e.empty?this:new Ce(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const Te=r.Py.define({map:(e,t)=>e.map(t)});function $e(e,t,n){let r=e.facet(ke);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const Qe=r.r$.define({combine:e=>!e.length||e[0]});let Re=0;const Ae=r.r$.define();class je{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=i(this)}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new je(Re++,e,n,r,(e=>{let t=[Ae.of(e)];return o&&t.push(ze.of((t=>{let n=t.plugin(e);return n?o(n):ce.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return je.define((t=>new e(t)),t)}}class De{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if($e(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){$e(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){$e(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Me=r.r$.define(),Ie=r.r$.define(),ze=r.r$.define(),We=r.r$.define(),Ne=r.r$.define();function Le(e,t,n){let i=e.state.facet(Ne);if(!i.length)return i;let o=i.map((t=>t instanceof Function?t(e):t)),a=[];return r.Xs.spans(o,t,n,{point(){},span(e,t,n,r){let i=a;for(let o=n.length-1;o>=0;o--,r--){let a,s=n[o].spec.bidiIsolate;if(null!=s)if(r>0&&i.length&&(a=i[i.length-1]).to==e&&a.direction==s)a.to=t,i=a.inner;else{let n={from:e,to:t,direction:s,inner:[]};i.push(n),i=n.inner}}}}),a}const Fe=r.r$.define();function Ue(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(Fe)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const Xe=r.r$.define();class qe{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new qe(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAu)break;i+=2}if(!s)return n;new qe(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),o=s.toA,a=s.toB}}}class Be{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.as.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new qe(e,t,n,r)))),this.changedRanges=i}static create(e,t,n){return new Be(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Ve=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Ve||(Ve={}));const Ye=Ve.LTR,Ze=Ve.RTL;function Ge(e){let t=[];for(let n=0;n=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.fromt:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function rt(e,t){if(e.length!=t.length)return!1;for(let n=0;nl&&a.push(new nt(l,p.from,f)),at(e,p.direction==Ye!=!(f%2)?r+1:r,i,p.inner,p.from,p.to,a),l=p.to),h=p.to}else{if(h==n||(t?it[h]!=s:it[h]==s))break;h++}d?ot(e,l,h,r+1,i,d,a):lt;){let n=!0,c=!1;if(!u||l>o[u-1].to){let e=it[l-1];e!=s&&(n=!1,c=16==e)}let d=n||1!=s?null:[],f=n?r:r+1,h=l;e:for(;;)if(u&&h==o[u-1].to){if(c)break e;let p=o[--u];if(!n)for(let e=p.from,n=u;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(it[e-1]==s)break e;break}e=o[--n].from}d?d.push(p):(p.to=0;e-=3)if(et[e+1]==-n){let t=et[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(it[a]=it[et[e]]=n),s=e;break}}else{if(189==et.length)break;et[s++]=a,et[s++]=t,et[s++]=l}else if(2==(r=it[a])||1==r){let e=r==i;l=e?0:1;for(let t=s-3;t>=0;t-=3){let n=et[t+2];if(2&n)break;if(e)et[t+2]|=2;else{if(4&n)break;et[t+2]|=4}}}}}(e,i,o,r,s),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=il;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),it[--t]=c;l=a}else o=a,l++}}}(i,o,r,s),ot(e,i,o,t,n,r,a)}function st(e){return[new nt(0,e,0)]}let lt="";function ut(e,t,n,i,o){var a;let s=i.head-e.from,l=-1;if(0==s){if(!o||!e.length)return null;t[0].level!=n&&(s=t[0].side(!1,n),l=0)}else if(s==e.length){if(o)return null;let e=t[t.length-1];e.level!=n&&(s=e.side(!0,n),l=t.length-1)}l<0&&(l=nt.find(t,s,null!==(a=i.bidiLevel)&&void 0!==a?a:-1,i.assoc));let u=t[l];s==u.side(o,n)&&(u=t[l+=o?1:-1],s=u.side(!o,n));let c=o==(u.dir==n),d=(0,r.cp)(e.text,s,c);if(lt=e.text.slice(Math.min(s,d),Math.max(s,d)),d!=u.side(o,n))return r.jT.cursor(d+e.from,c?-1:1,u.level);let f=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];return f||u.level==n?f&&f.level0&&n.length&&(n.every((({fromA:e,toA:t})=>tthis.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let n=!1;return t&&e.iterChangedRanges(((e,r)=>{et.from&&(n=!0)})),n}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let o=i>-1?function(e,t,n){let r=ft(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s))return null;if(e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc,u=new qe(l.mapPos(o),l.mapPos(a),o,a),c=[];for(let t=i.parentNode;;t=t.parentNode){let n=Q.get(t);if(n instanceof Z)c.push({node:t,deco:n.mark});else{if(n instanceof ae||"DIV"==t.nodeName&&t.parentNode==e.contentDOM)return{range:u,text:i,marks:c,line:t};if(t==e.contentDOM)return null;c.push({node:t,deco:new de({inclusive:!0,attributes:oe(t),tagName:t.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition;n=new qe(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(V.ie||V.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=function(e,t,n){let i=new pt;return r.Xs.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return n=qe.extendWithRanges(n,a),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=V.chrome||V.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let i=[];if(this.view.viewport.from||this.view.viewport.to=0?r[e]:null;if(!t)break;let o,a,s,l,{fromA:u,toA:c,fromB:d,toB:f}=t;if(n&&n.range.fromBd){let e=ge.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),t=ge.build(this.view.state.doc,n.range.toB,f,this.decorations,this.dynamicDecorationMap);a=e.breakAtStart,s=e.openStart,l=t.openEnd;let r=this.compositionView(n);t.breakAtStart?r.breakAfter=1:t.content.length&&r.merge(r.length,r.length,t.content[0],!1,t.openStart,0)&&(r.breakAfter=t.content[0].breakAfter,t.content.shift()),e.content.length&&r.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),o=e.content.concat(r).concat(t.content)}else({content:o,breakAtStart:a,openStart:s,openEnd:l}=ge.build(this.view.state.doc,d,f,this.decorations,this.dynamicDecorationMap));let{i:h,off:p}=i.findPos(c,1),{i:m,off:g}=i.findPos(u,-1);j(this,m,g,h,p,o,a,s,l)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new Y(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new Z(n,[t],t.length);let n=new ae;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=Q.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let i=e.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],t(i>=0?e.marks[i].node:e.text,r)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,i=!r&&h(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||t||i))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(a.anchor)),l=a.empty?s:this.moveToLine(this.domAtPos(a.head));if(V.gecko&&a.empty&&!this.hasComposition&&1==(u=s).node.nodeType&&u.node.firstChild&&(0==u.offset||"false"==u.node.childNodes[u.offset-1].contentEditable)&&(u.offset==u.node.childNodes.length||"false"==u.node.childNodes[u.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),s=l=new T(e,0),o=!0}var u;let c=this.view.observer.selectionRange;!o&&c.focusNode&&m(s.node,s.offset,c.anchorNode,c.anchorOffset)&&m(l.node,l.offset,c.focusNode,c.focusOffset)||(this.view.observer.ignore((()=>{V.android&&V.chrome&&this.dom.contains(c.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=d(this.view.root);if(e)if(a.empty){if(V.gecko){let e=(t=s.node,r=s.offset,1!=t.nodeType?0:(r&&"false"==t.childNodes[r-1].contentEditable?1:0)|(ra.head&&([s,l]=[l,s]),t.setEnd(l.node,l.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}var t,r;i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(s,l)),this.impreciseAnchor=s.precise?null:new T(c.anchorNode,c.anchorOffset),this.impreciseHead=l.precise?null:new T(c.focusNode,c.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=d(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=ae.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,i)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!t&&r=0;r--){let e=Q.get(n.childNodes[r]);e instanceof ae&&(t=e.domAtPos(e.length))}return t?new T(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=Q.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;o--){let a=this.children[o],s=i-a.breakAfter,l=s-a.length;if(se||a.covers(1))&&(!n||a instanceof ae&&!(n instanceof ae&&t>=0))&&(n=a,r=l),i=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof ae))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(n,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}n=t}if(!(i instanceof Y))return null;let o=(0,r.cp)(i.text,n);if(o==n)return null;let a=S(i.dom,n,o).getClientRects();return!a.length||a[0].top>=a[0].bottom?null:a[0]}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==Ve.LTR;for(let e=0,l=0;lr)break;if(e>=n){let n=u.dom.getBoundingClientRect();if(t.push(n.height),o){let t=u.dom.lastChild,r=t?p(t):[];if(r.length){let t=r[r.length-1],o=s?t.right-n.left:n.right-t.left;o>a&&(a=o,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Ve.RTL:Ve.LTR}measureTextSize(){for(let e of this.children)if(e instanceof ae){let t=e.measureTextSize();if(t)return t}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=p(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new A(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(ce.replace({widget:new dt(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return ce.set(e)}updateDeco(){let e=this.view.state.facet(ze).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;tn.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=Ue(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom};!function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(1==c.nodeType){let e,f=c==l.body,h=1,p=1;if(f)e=b(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();h=t.width/c.offsetWidth,p=t.height/c.offsetHeight,e={left:t.left,right:t.left+c.clientWidth*h,top:t.top,bottom:t.top+c.clientHeight*p}}let m=0,g=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+g+a)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+a,n<0&&t.top-g0&&t.right>e.right+m&&(m=t.right-e.right+m+o)):t.right>e.right&&(m=t.right-e.right+o,n<0&&t.left0))break;n=n.childNodes[r-1],r=O(n)}if(n>=0)for(let r=e,i=t;;){if(3==r.nodeType)return{node:r,offset:i};if(!(1==r.nodeType&&i=0))break;r=r.childNodes[i],i=0}return null}let pt=class{constructor(){this.changes=[]}compareRange(e,t){me(e,t,this.changes)}comparePoint(e,t){me(e,t,this.changes)}};function mt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function gt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function vt(e,t){return e.topt.top+1}function Ot(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function bt(e,t,n){let r,i,o,a,s,l,u,c,d=!1;for(let f=e.firstChild;f;f=f.nextSibling){let e=p(f);for(let h=0;hg||a==g&&o>m){r=f,i=p,o=m,a=g;let s=g?n0?h0)}0==m?n>p.bottom&&(!u||u.bottomp.top)&&(l=f,c=p):u&&vt(u,p)?u=yt(u,p.bottom):c&&vt(c,p)&&(c=Ot(c,p.top))}}if(u&&u.bottom>=n?(r=s,i=u):c&&c.top<=n&&(r=l,i=c),!r)return{node:e,offset:0};let f=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?wt(r,f,n):d&&"false"!=r.contentEditable?bt(r,f,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function wt(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c=(u.left+u.right)/2,r=n;if((V.chrome||V.gecko)&&S(e,s).getBoundingClientRect().left==u.right&&(r=!n),c<=0)return{node:e,offset:s+(r?1:0)};i=s+(r?1:0),o=c}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function kt(e,t,n,r=-1){var i,o;let a,s=e.contentDOM.getBoundingClientRect(),l=s.top+e.viewState.paddingTop,{docHeight:u}=e.viewState,{x:c,y:d}=t,f=d-l;if(f<0)return 0;if(f>u)return e.state.doc.length;for(let t=e.viewState.heightOracle.textHeight/2,i=!1;a=e.elementAtHeight(f),a.type!=ue.Text;)for(;f=r>0?a.bottom+t:a.top-t,!(f>=0&&f<=u);){if(i)return n?null:0;i=!0,r=-r}d=l+f;let h=a.from;if(he.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:xt(e,s,a,c,d);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(c,d);g&&!e.contentDOM.contains(g)&&(g=null),g||(c=Math.max(s.left+1,Math.min(s.right-1,c)),g=m.elementFromPoint(c,d),g&&!e.contentDOM.contains(g)&&(g=null));let v,O=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable))if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(c,d);e&&({offsetNode:v,offset:O}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(c,d);t&&(({startContainer:v,startOffset:O}=t),(!e.contentDOM.contains(v)||V.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return S(e,r-1,r).getBoundingClientRect().left>n}(v,O,c)||V.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return n-(1==e.nodeType?e.getBoundingClientRect():S(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(v,O,c))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=ae.find(e.docView,h);if(!t)return f>a.top+a.height/2?a.to:a.from;({node:v,offset:O}=bt(t.dom,c,d))}let y=e.docView.nearest(v);if(!y)return null;if(y.isWidget&&1==(null===(o=y.dom)||void 0===o?void 0:o.nodeType)){let e=y.dom.getBoundingClientRect();return t.y1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;a+=Math.floor((o-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+(0,r.Gz)(s,a,e.state.tabSize)}function _t(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==ue.Text))return e;return n}function St(e,t,n,i){let o=e.state.doc.lineAt(t.head),a=e.bidiSpans(o),s=e.textDirectionAt(o.from);for(let l=t,u=null;;){let t=ut(o,a,s,l,n),c=lt;if(!t){if(o.number==(n?e.state.doc.lines:1))return l;c="\n",o=e.state.doc.line(o.number+(n?1:-1)),a=e.bidiSpans(o),t=r.jT.cursor(n?o.from:o.to)}if(u){if(!u(c))return l}else{if(!i)return t;u=i(c)}l=t}}function Pt(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,((e,i,o)=>{if(t>e&&tt(e))),n.from,t.head>n.from?-1:1);return i==n.from?n:r.jT.cursor(i,i{if(t.target==e.scrollDOM&&t.clientY>e.contentDOM.getBoundingClientRect().bottom&&(this.runHandlers("mousedown",t),!t.defaultPrevented&&2==t.button)){let t=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout((()=>e.contentDOM.style.minHeight=t),200)}})),e.scrollDOM.addEventListener("drop",(t=>{t.target==e.scrollDOM&&t.clientY>e.contentDOM.getBoundingClientRect().bottom&&this.runHandlers("drop",t)})),this.notifiedFocused=e.hasFocus,V.safari&&e.contentDOM.addEventListener("input",(()=>null)),V.gecko&&function(e){tn.has(e)||(tn.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{})))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=Q.get(r))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=$t(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,o=n[e];o&&i!=!o.handlers.length&&(r.removeEventListener(e,this.handleEvent),o=null),o||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)"scroll"==e||t[e]||r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()t.keyCode==e.keyCode)))&&!e.ctrlKey||Rt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,P(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(V.safari&&!V.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Tt(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){$e(n.state,e)}}}function $t(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec;if(e&&e.domEventHandlers)for(let r in e.domEventHandlers){let i=e.domEventHandlers[r];i&&n(r).handlers.push(Tt(t.value,i))}if(e&&e.domEventObservers)for(let r in e.domEventObservers){let i=e.domEventObservers[r];i&&n(r).observers.push(Tt(t.value,i))}}for(let e in Mt)n(e).handlers.push(Mt[e]);for(let e in It)n(e).observers.push(It[e]);return t}const Qt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Rt="dthko",At=[16,17,18,20,91,92,224,225];function jt(e){return.7*Math.max(0,e)+8}class Dt{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(We).map((t=>t(e)));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.yy.allowMultipleSelections)&&function(e,t){let n=e.state.facet(ye);return n.length?n[0](t):V.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=d(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Zt(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,n,r;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(n=this.startEvent,r=e,Math.max(Math.abs(n.clientX-r.clientX),Math.abs(n.clientY-r.clientY))<10))return;this.select(this.lastEvent=e);let i=0,o=0,a=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=Ue(this.view);e.clientX-s.left<=a.left+6?i=-jt(a.left-e.clientX):e.clientX+s.right>=a.right-6&&(i=jt(e.clientX-a.right)),e.clientY-s.top<=a.top+6?o=-jt(a.top-e.clientY):e.clientY+s.bottom>=a.bottom-6&&(o=jt(e.clientY-a.bottom)),this.setScrollSpeed(i,o)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent)),20)}}const Mt=Object.create(null),It=Object.create(null),zt=V.ie&&V.ie_version<15||V.ios&&V.webkit_version<604;function Wt(e,t){let n,{state:i}=e,o=1,a=i.toText(t),s=a.lines==i.selection.ranges.length;if(null!=Ht&&i.selection.ranges.every((e=>e.empty))&&Ht==a.toString()){let e=-1;n=i.changeByRange((n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let u=i.toText((s?a.line(o++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:u},range:r.jT.cursor(n.from+u.length)}}))}else n=s?i.changeByRange((e=>{let t=a.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.jT.cursor(e.from+t.length)}})):i.replaceSelection(a);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function Nt(e,t,n,i){if(1==i)return r.jT.cursor(t,n);if(2==i)return function(e,t,n=1){let i=e.charCategorizer(t),o=e.doc.lineAt(t),a=t-o.from;if(0==o.length)return r.jT.cursor(t);0==a?n=1:a==o.length&&(n=-1);let s=a,l=a;n<0?s=(0,r.cp)(o.text,a,!1):l=(0,r.cp)(o.text,a);let u=i(o.text.slice(s,l));for(;s>0;){let e=(0,r.cp)(o.text,s,!1);if(i(o.text.slice(e,s))!=u)break;s=e}for(;l{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},Mt.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),It.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},It.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Mt.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(we))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=Xt(e,t),i=Zt(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,a,s){let l,u=Xt(e,t),c=Nt(e,u.pos,u.bias,i);if(n.pos!=u.pos&&!a){let t=Nt(e,n.pos,n.bias,i),o=Math.min(t.from,c.from),a=Math.max(t.to,c.to);c=o1&&(l=function(e,t){for(let n=0;n=t)return r.jT.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(o,u.pos))?l:s?o.addRange(c):r.jT.create([c])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Dt(e,t,n,r)),r&&e.observer.ignore((()=>_(e.contentDOM)));let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}return!1};let Lt=(e,t)=>e>=t.top&&e<=t.bottom,Ft=(e,t,n)=>Lt(t,n)&&e>=n.left&&e<=n.right;function Ut(e,t,n,r){let i=ae.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&Ft(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&Ft(n,r,s)?1:a&&Lt(r,a)?-1:1}function Xt(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Ut(e,n,t.clientX,t.clientY)}}const qt=V.ie&&V.ie_version<=11;let Bt=null,Vt=0,Yt=0;function Zt(e){if(!qt)return e.detail;let t=Bt,n=Yt;return Bt=e,Yt=Date.now(),Vt=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Vt+1)%3:1}function Gt(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{mouseSelection:o}=e.inputState,a=r&&o&&o.dragging&&function(e,t){let n=e.state.facet(be);return n.length?n[0](t):V.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.dragging.from,to:o.dragging.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"})}Mt.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;return r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},Mt.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&Gt(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return Gt(e,t,n,!0),!0}return!1},Mt.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=zt?null:t.clipboardData;return n?(Wt(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Wt(e,n.value)}),50)}(e),!1)};let Ht=null;Mt.copy=Mt.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;Ht=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=zt?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),!1)};const Kt=r.q6.define();function Jt(e,t){let n=[];for(let r of e.facet(Se)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Kt.of(!0)}):null}function en(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Jt(e.state,t);n?e.dispatch(n):e.update([])}}),10)}It.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),en(e)},It.blur=e=>{e.observer.clearSelectionRange(),en(e)},It.compositionstart=It.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},It.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,V.chrome&&V.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},It.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Mt.beforeinput=(e,t)=>{var n;let r;if(V.chrome&&V.android&&(r=Qt.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const tn=new Set,nn=["pre-wrap","normal","pre-line","break-spaces"];class rn{constructor(e){this.lineWrapping=e,this.doc=r.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return nn.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>ln&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return un.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:u,toB:c}=r[a],d=i.lineAt(s,sn.ByPosNoHeight,n.setDoc(t),0,0),f=d.to>=l?d:i.lineAt(l,sn.ByPosNoHeight,n,0,0);for(c+=f.to-l,l=f.to;a>0&&d.from<=r[a-1].toA;)s=r[a-1].fromA,u=r[a-1].fromB,a--,s2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class dn extends cn{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new an(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof dn||r instanceof fn&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof fn?r=new dn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):un.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class fn extends un{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(a=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),o=t.doc.lineAt(i),l=a+o.length*s,u=Math.max(n,e-l/2);return new an(o.from,o.length,u,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(i+r);return new an(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,i){if(t==sn.ByHeight)return this.blockAt(e,n,r,i);if(t==sn.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new an(t,r-t,0,0,0)}let{firstLine:o,perLine:a,perChar:s}=this.heightMetrics(n,i),l=n.doc.lineAt(e),u=a+l.length*s,c=l.number-o,d=r+a*c+s*(l.from-i-c);return new an(l.from,l.length,Math.max(r,Math.min(d,r+this.height-u)),u,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);for(let u=e,c=r;u<=t;){let t=n.doc.lineAt(u);if(u==e){let n=t.number-a;c+=s*n+l*(e-i-n)}let r=s+l*t.length;o(new an(t.from,t.length,c,r,0)),c+=r,u=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof fn?n[n.length-1]=new fn(e.length+r):n.push(null,new fn(r-1))}if(e>0){let t=n[0];t instanceof fn?n[0]=new fn(e+t.length):n.unshift(new fn(e-1),null)}return un.of(n)}decomposeLeft(e,t){t.push(new fn(e-1),null)}decomposeRight(e,t){t.push(null,new fn(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new fn(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==a?a=i:Math.abs(i-a)>=ln&&(a=-2);let s=new dn(t,i);s.outdated=!1,n.push(s),o+=t+1}o<=i&&n.push(null,new fn(i-o).updateHeight(e,o));let s=un.of(n);return(a<0||Math.abs(s.height-this.height)>=ln||Math.abs(a-this.heightMetrics(e,t).perLine)>=ln)&&(e.heightChanged=!0),s}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class hn extends un{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return ea))return l;let u=t==sn.ByPosNoHeight?sn.ByPosNoHeight:sn.ByPos;return s?l.join(this.right.lineAt(a,u,n,o,a)):this.left.lineAt(a,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,sn.ByPos,n,r,i);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&pn(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?un.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function pn(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof fn&&(r=e[t+1])instanceof fn&&e.splice(t-1,3,new fn(n.length+1+r.length))}class mn{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof dn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new dn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new dn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new fn(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof dn)return e;let t=new dn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof dn||this.isCovered?(this.writtenTon.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),a=Math.min(a,r.right),s=Math.max(s,r.top),l=t==e.parentNode?r.bottom:Math.min(l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function On(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class yn{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new rn(t),this.stateDeco=e.facet(ze).filter((e=>"function"!=typeof e)),this.heightMap=un.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle.setDoc(e.doc),[new qe(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ce.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new kn(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?Pn:new En(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:Cn(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ze).filter((e=>"function"!=typeof e));let i=e.changedRanges,o=qe.extendWithRanges(i,function(e,t,n){let i=new gn;return r.Xs.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.as.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let u=!e.changes.empty||2&e.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Ee)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Ve.RTL:Ve.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=t.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let e=s.width/t.offsetWidth,n=s.height/t.offsetHeight;(e>.995&&e<1.005||!isFinite(e)||Math.abs(s.width-t.offsetWidth)<1)&&(e=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(s.height-t.offsetHeight)<1)&&(n=1),this.scaleX==e&&this.scaleY==n||(this.scaleX=e,this.scaleY=n,u|=8,a=l=!0)}let d=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==d&&this.paddingBottom==f||(this.paddingTop=d,this.paddingBottom=f,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let h=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=C(e.scrollDOM);let p=(this.printing?On:vn)(t,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView&&(this.inView=v,v&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let O=s.width;if(this.contentDOMWidth==O&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(a=!0),a||i.lineWrapping&&Math.abs(O-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:s}=e.docView.measureTextSize();a=n>0&&i.refresh(o,n,r,s,O/r,t),a&&(e.docView.minWidth=0,u|=8)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),i.heightChanged=!1;for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(a?un.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle,[new qe(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new on(n.from,o))}i.heightChanged&&(u|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&u||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new kn(r.lineAt(o-1e3*n,sn.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),sn.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,sn.ByPos,i,0,0);n="center"==t.y?(a.top+a.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i>1,a=i<<1;if(this.defaultTextDirection!=Ve.LTR&&!n)return[];let s=[],l=(i,a,u,c)=>{if(a-ii&&ee.from>=u.from&&e.to<=u.to&&Math.abs(e.from-i)e.fromt))));if(!h){if(ae.from<=a&&e.to>=a))){let e=t.moveToLineBoundary(r.jT.cursor(a),!1,!0).head;e>i&&(a=e)}h=new yn(i,a,this.gapSize(u,i,a,c))}s.push(h)};for(let e of this.viewportLines){if(e.lengthe.from&&l(e.from,r,e,t),oe.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];r.Xs.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Cn(this.heightMap.lineAt(e,sn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Cn(this.heightMap.lineAt(this.scaler.fromDOM(e),sn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Cn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class kn{constructor(e,t){this.from=e,this.to=t}}function xn(e,t,n){let i=[],o=e,a=0;return r.Xs.spans(n,e,t,{span(){},point(e,t){e>o&&(i.push({from:o,to:e}),a+=e-o),o=t}},20),o=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function Sn(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const Pn={toDOM:e=>e,fromDOM:e=>e,scale:1};class En{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((({from:n,to:i})=>{let o=t.lineAt(n,sn.ByPos,e,0,0).top,a=t.lineAt(i,sn.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=o+(e.top-i)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tCn(e,t))):e._content)}const Tn=r.r$.define({combine:e=>e.join(" ")}),$n=r.r$.define({combine:e=>e.indexOf(!0)>-1}),Qn=i.V.newName(),Rn=i.V.newName(),An=i.V.newName(),jn={"&light":"."+Rn,"&dark":"."+An};function Dn(e,t,n){return new i.V(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const Mn=Dn("."+Qn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},jn),In="￿";class zn{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(r.yy.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=In}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==t)break;let o=Q.get(r),a=Q.get(i);(o&&a?o.breakAfter:(o?o.breakAfter:Nn(r))||Nn(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,a=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,a=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=o+a}}readNode(e){if(e.cmIgnore)return;let t=Q.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Wn(e,n.node,n.offset)?t:0))}}function Wn(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||a?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new Ln(n,r)),i==n&&o==r||t.push(new Ln(i,o))),t}(e),n=new zn(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.jT.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!f(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=a&&a.node==t.anchorNode&&a.offset==t.anchorOffset||!f(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=r.jT.single(i,n)}}}function Un(e,t){let n,{newSel:i}=t,o=e.state.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:s}=t.bounds,l=o.from,u=null;(8===a||V.android&&t.text.length0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;return"end"==r&&(n-=a+Math.max(0,o-Math.min(a,s))-o),a=a?o-n:0,s=o+(s-a),a=o):s=s?o-n:0,a=o+(a-s),s=o),{from:o,toA:a,toB:s}}(e.state.doc.sliceString(i,s,In),t.text,l-i,u);c&&(V.chrome&&13==a&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==In+In&&c.toB--,n={from:i+c.from,to:i+c.toA,insert:r.xv.of(t.text.slice(c.from,c.toB).split(In))})}else i&&(!e.hasFocus&&e.state.facet(Qe)||i.main.eq(o))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!o.empty&&i&&i.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(V.mac||V.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}):V.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}),n){if(V.ios&&e.inputState.flushIOSKey())return!0;if(V.android&&(n.from==o.from&&n.to==o.to&&1==n.insert.length&&2==n.insert.lines&&P(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&0==n.insert.length||8==a&&n.insert.lengtho.head)&&P(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&0==n.insert.length&&P(e.contentDOM,"Delete",46)))return!0;let t,s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>t||(t=function(e,t,n){let i,o=e.state,a=o.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=a.fromt.to?o.sliceDoc(t.to,a.to):"";i=o.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+r))}else{let s=o.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let u,c=e.state.sliceDoc(t.from,t.to),d=n&&ft(e,n.main.head);if(d){let e=t.insert.length-(t.to-t.from);u={from:d.from,to:d.to-e}}else u=e.state.doc.lineAt(a.head);let f=a.to-t.to,h=a.to-a.from;i=o.changeByRange((n=>{if(n.from==a.from&&n.to==a.to)return{changes:s,range:l||n.map(s)};let i=n.to-f,d=i-c.length;if(n.to-n.from!=h||e.state.sliceDoc(d,i)!=c||n.to>=u.from&&n.from<=u.to)return{range:n};let p=o.changes({from:d,to:i,insert:t.insert}),m=n.to-a.to;return{changes:p,range:l?r.jT.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):n.map(p)}}))}else i={changes:s,selection:l&&o.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),o.update(i,{userEvent:s,scrollIntoView:!0})}(e,n,i));return e.state.facet(_e).some((t=>t(e,n.from,n.to,s,l)))||e.dispatch(l()),!0}if(i&&!i.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}const Xn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},qn=V.ie&&V.ie_version<=11;class Bn{constructor(e){this.view=e,this.active=!1,this.selectionRange=new w,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(V.ie&&V.ie_version<=11||V.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),qn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)this.view.requestMeasure())),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Qe)?n.root.activeElement!=this.dom:!h(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(V.ie&&V.ie_version<=11||V.android&&V.chrome)&&!n.state.selection.main.empty&&r.focusNode&&m(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=V.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return m(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}(this.view)||d(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=h(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&P(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&h(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new Fn(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let n=this.view.state,r=Un(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=Vn(t,e.previousSibling||e.target.previousSibling,-1),r=Vn(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n,r;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Vn(e,t,n){for(;t;){let r=Q.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class Yn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new wn(e.state||r.yy.create(e)),this.plugins=this.state.facet(Ae).map((e=>new De(e)));for(let e of this.plugins)e.update(this);this.observer=new Bn(this),this.inputState=new Ct(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ct(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let t=1==e.length&&e[0]instanceof r.YW?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=!1,o=this.state;for(let t of e){if(t.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=t.state}if(this.destroyed)return void(this.viewState.state=o);let a=this.hasFocus,s=0,l=null;e.some((e=>e.annotation(Kt)))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=Jt(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(r.yy.phrases)!=this.state.facet(r.yy.phrases))return this.setState(o);t=Be.create(this,o,e),t.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(d&&(d=d.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;d=new Ce(e.empty?e:r.jT.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Te)&&(d=e.value)}this.viewState.update(t,d),this.bidiCache=Hn.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(Xe)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Tn)!=t.state.facet(Tn)&&(this.viewState.mustMeasureContent=!0),(n||i||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(xe))e(t);(l||c)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Un(this,c)&&u.force&&P(this.contentDOM,u.key,u.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new wn(e),this.plugins=e.facet(Ae).map((e=>new De(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new ct(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ae),n=e.state.facet(Ae);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new De(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(C(n))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&a||([this.measureRequests,s]=[s,this.measureRequests]);let l=s.map((e=>{try{return e.read(this)}catch(e){return $e(this.state,e),Gn}})),u=Be.create(this,this.state,[]),c=!1;u.flags|=a,t?t.flags|=a:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),c=this.docView.update(u));for(let e=0;e1||e<-1){r+=e,n.scrollTop=r/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(xe))e(t)}get themeClasses(){return Qn+" "+(this.state.facet($n)?An:Rn)+" "+this.state.facet(Tn)}updateAttrs(){let e=Kn(this,Me,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Qe)?"true":"false",class:"cm-content",style:`${V.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Kn(this,Ie,t);let n=this.observer.ignore((()=>{let n=ie(this.contentDOM,this.contentAttrs,t),r=ie(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(Yn.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(Xe);let e=this.state.facet(Yn.cspNonce);i.V.mount(this.root,this.styleModules.concat(Mn).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Et(this,e,St(this,e,t,n))}moveByGroup(e,t){return Et(this,e,St(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),o=i(n);return e=>{let t=i(e);return o==r.D0.Space&&(o=t),o==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,i){let o=_t(e,t.head),a=i&&o.type==ue.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(a){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(o.from),s=e.posAtCoords({x:n==(i==Ve.LTR)?t.right-1:t.left+1,y:(a.top+a.bottom)/2});if(null!=s)return r.jT.cursor(s,n?-1:1)}return r.jT.cursor(n?o.to:o.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return Et(this,e,function(e,t,n,i){let o=t.head,a=n?1:-1;if(o==(n?e.state.doc.length:0))return r.jT.cursor(o,t.assoc);let s,l=t.goalColumn,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o,t.assoc||-1),d=e.documentTop;if(c)null==l&&(l=c.left-u.left),s=a<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(o);null==l&&(l=Math.min(u.right-u.left,e.defaultCharacterWidth*(o-t.from))),s=(a<0?t.top:t.bottom)+d}let f=u.left+l,h=null!=i?i:e.viewState.heightOracle.textHeight>>1;for(let t=0;;t+=10){let n=s+(h+t)*a,i=kt(e,{x:f,y:n},!1,a);if(nu.bottom||(a<0?io)){let t=e.docView.coordsForChar(i),o=!t||n0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Pe)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Zn)return st(e.length);let t,n=this.textDirectionAt(e.from);for(let r of this.bidiCache)if(r.from==e.from&&r.dir==n&&(r.fresh||rt(r.isolates,t=Le(this,e.from,e.to))))return r.order;t||(t=Le(this,e.from,e.to));let r=function(e,t,n){if(!e)return[new nt(0,0,t==Ze?1:0)];if(t==Ye&&!n.length&&!tt.test(e))return st(e.length);if(n.length)for(;e.length>it.length;)it[it.length]=256;let r=[],i=t==Ye?0:1;return at(e,i,i,n,0,e.length,r),r}(e.text,n,t);return this.bidiCache.push(new Hn(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||V.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{_(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Te.of(new Ce("number"==typeof e?r.jT.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return je.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return je.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=i.V.newName(),r=[Tn.of(n),Xe.of(Dn(`.${n}`,e))];return t&&t.dark&&r.push($n.of(!0)),r}static baseTheme(e){return r.Wl.lowest(Xe.of(Dn("."+Qn,e,jn)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&Q.get(n)||Q.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}Yn.styleModule=Xe,Yn.inputHandler=_e,Yn.focusChangeEffect=Se,Yn.perLineTextDirection=Pe,Yn.exceptionSink=ke,Yn.updateListener=xe,Yn.editable=Qe,Yn.mouseSelectionStyle=we,Yn.dragMovesSelection=be,Yn.clickAddsSelectionRange=ye,Yn.decorations=ze,Yn.atomicRanges=We,Yn.bidiIsolatedRanges=Ne,Yn.scrollMargins=Fe,Yn.darkTheme=$n,Yn.cspNonce=r.r$.define({combine:e=>e.length?e[0]:""}),Yn.contentAttributes=Ie,Yn.editorAttributes=Me,Yn.lineWrapping=Yn.contentAttributes.of({class:"cm-lineWrapping"}),Yn.announce=r.Py.define();const Zn=4096,Gn={};class Hn{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],r=e.length?e[e.length-1].dir:Ve.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&te(o,n)}return n}const Jn=V.mac?"mac":V.windows?"win":V.linux?"linux":"key";function er(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const tr=r.Wl.default(Yn.domEventHandlers({keydown:(e,t)=>lr(ir(t.state),e,t,"editor")})),nr=r.r$.define({enables:tr}),rr=new WeakMap;function ir(e){let t=e.facet(nr),n=rr.get(t);return n||rr.set(t,n=function(e,t=Jn){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a,s)=>{var l,u;let c=n[e]||(n[e]=Object.create(null)),d=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let e=0;e{let r=ar={view:t,prefix:n,scope:e};return setTimeout((()=>{ar==r&&(ar=null)}),sr),!0}]})}let f=d.join(" ");i(f,!1);let h=c[f]||(c[f]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});o&&h.run.push(o),a&&(h.preventDefault=!0),s&&(h.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(r.any)}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault,r.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}function or(e,t,n){return lr(ir(e.state),t,e,n)}let ar=null;const sr=4e3;function lr(e,t,n,i){let u=function(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||l&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?a:o)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),c=(0,r.gm)(u,0),d=(0,r.nZ)(c)==u.length&&" "!=u,f="",h=!1,p=!1,m=!1;ar&&ar.view==n&&ar.scope==i&&(f=ar.prefix+" ",At.indexOf(t.keyCode)<0&&(p=!0,ar=null));let g,v,O=new Set,y=e=>{if(e){for(let r of e.run)if(!O.has(r)&&(O.add(r),r(n,t)))return e.stopPropagation&&(m=!0),!0;e.preventDefault&&(e.stopPropagation&&(m=!0),p=!0)}return!1},b=e[i];return b&&(y(b[f+er(u,t,!d)])?h=!0:d&&(t.altKey||t.metaKey||t.ctrlKey)&&!(V.windows&&t.ctrlKey&&t.altKey)&&(g=o[t.keyCode])&&g!=u?(y(b[f+er(g,t,!0)])||t.shiftKey&&(v=a[t.keyCode])!=u&&v!=g&&y(b[f+er(v,t,!1)]))&&(h=!0):d&&t.shiftKey&&y(b[f+er(u,t,!0)])&&(h=!0),!h&&y(b._any)&&(h=!0)),p&&(h=!0),h&&m&&t.stopPropagation(),h}class ur{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=cr(e);return[new ur(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==Ve.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=cr(e),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),f=s.right-(c?parseInt(c.paddingRight):0),h=_t(e,r),p=_t(e,i),m=h.type==ue.Text?h:null,g=p.type==ue.Text?p:null;if(m&&(e.lineWrapping||h.widgetLineBreaks)&&(m=dr(e,r,m)),g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=dr(e,i,g)),m&&g&&m.from==g.from)return O(y(n.from,n.to,m));{let t=m?y(n.from,null,m):b(h,!1),r=g?y(null,n.to,g):b(p,!0),i=[];return(m||h).to<(g||p).from-(m&&g?1:0)||h.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2u&&r.from=o)break;s>i&&l(Math.max(e,i),null==t&&e<=u,Math.min(s,o),null==n&&s>=c,a.dir)}if(i=r.to+1,i>=o)break}return 0==s.length&&l(u,null==t,c,null==n,e.textDirection),{top:i,bottom:a,horizontal:s}}function b(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function cr(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Ve.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function dr(e,t,n){let i=r.jT.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(i,!0,!0).from),type:ue.Text}}class fr{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(hr)!=e.state.facet(hr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,n=e.facet(hr);for(;t{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r}))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const hr=r.r$.define();function pr(e){return[je.define((t=>new fr(t,e))),hr.of(e)]}const mr=!V.ios,gr=r.r$.define({combine:e=>(0,r.BO)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function vr(e={}){return[gr.of(e),yr,wr,xr,Ee.of(!0)]}function Or(e){return e.startState.facet(gr)!=e.state.facet(gr)}const yr=pr({above:!0,markers(e){let{state:t}=e,n=t.facet(gr),i=[];for(let o of t.selection.ranges){let a=o==t.selection.main;if(o.empty?!a||mr:n.drawRangeCursor){let t=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:r.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let r of ur.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=Or(e);return n&&br(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){br(t.state,e)},class:"cm-cursorLayer"});function br(e,t){t.style.animationDuration=e.facet(gr).cursorBlinkRate+"ms"}const wr=pr({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:ur.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||Or(e),class:"cm-selectionLayer"}),kr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};mr&&(kr[".cm-line"].caretColor="transparent !important");const xr=r.Wl.highest(Yn.theme(kr)),_r=r.Py.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Sr=r.QQ.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(_r)?t.value:e),e))}),Pr=je.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(Sr);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Sr)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Sr),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Sr)!=e&&this.view.dispatch({effects:_r.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Er(){return[Sr,Pr]}function Cr(e,t,n,r,i){t.lastIndex=0;for(let o,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}class Tr{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new r.f_,n=t.add.bind(t);for(let{from:t,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))Cr(e.state.doc,this.regexp,t,r,((t,r)=>this.addMatch(r,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges(((t,i,o,a)=>{a>e.view.viewport.from&&o1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),a=Math.min(i.to,r);if(a>o){let n=e.state.doc.lineAt(o),r=n.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){s=o;break}for(;ac.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=s-n.from;(u=this.regexp.exec(n.text))&&u.indexthis.addMatch(n,e,t,d)));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>el,add:c})}}return t}}const $r=null!=/x/.unicode?"gu":"g",Qr=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",$r),Rr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ar=null;const jr=r.r$.define({combine(e){let t=(0,r.BO)(e,{render:null,specialChars:Qr,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Ar&&"undefined"!=typeof document&&document.body){let t=document.body.style;Ar=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Ar||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,$r)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,$r)),t}});function Dr(e={}){return[jr.of(e),Mr||(Mr=je.fromClass(class{constructor(e){this.view=e,this.decorations=ce.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(jr)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Tr({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:o}=n.state,a=(0,r.gm)(t[0],0);if(9==a){let e=o.lineAt(i),t=n.state.tabSize,a=(0,r.IS)(e.text,t,i-e.from);return ce.replace({widget:new zr((t-a%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=ce.replace({widget:new Ir(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(jr);e.startState.facet(jr)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Mr=null;class Ir extends le{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"␤":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(Rr[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class zr extends le{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Wr(){return Lr}const Nr=ce.line({class:"cm-activeLine"}),Lr=je.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(Nr.range(i.from)),t=i.from)}return ce.set(n)}},{decorations:e=>e.decorations});class Fr extends le{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?p(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=y(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function Ur(e){return je.fromClass(class{constructor(t){this.view=t,this.placeholder=e?ce.set([ce.widget({widget:new Fr(e),side:1}).range(0)]):ce.none}get decorations(){return this.view.state.doc.length?ce.none:this.placeholder}},{decorations:e=>e.decorations})}const Xr=2e3;function qr(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(n),o=n-i.from,a=o>Xr?-1:o==i.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):(0,r.IS)(i.text,e.state.tabSize,n-i.from);return{line:i.number,col:a,off:o}}function Br(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return Yn.mouseSelectionStyle.of(((e,n)=>t(n)?function(e,t){let n=qr(e,t),i=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(e.changes)}},get(t,o,a){let s=qr(e,t);if(!s)return i;let l=function(e,t,n){let i=Math.min(t.line,n.line),o=Math.max(t.line,n.line),a=[];if(t.off>Xr||n.off>Xr||t.col<0||n.col<0){let s=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=i;t<=o;t++){let n=e.doc.line(t);n.length<=l&&a.push(r.jT.range(n.from+s,n.to+l))}}else{let s=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=i;t<=o;t++){let n=e.doc.line(t),i=(0,r.Gz)(n.text,s,e.tabSize,!0);if(i<0)a.push(r.jT.cursor(n.to));else{let t=(0,r.Gz)(n.text,l,e.tabSize);a.push(r.jT.range(n.from+i,n.from+t))}}}return a}(e.state,n,s);return l.length?a?r.jT.create(l.concat(i.ranges)):r.jT.create(l):i}}:null}(e,n):null))}const Vr={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Yr={style:"cursor: crosshair"};function Zr(e={}){let[t,n]=Vr[e.key||"Alt"],r=je.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,Yn.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?Yr:null}))]}const Gr="-10000px";class Hr{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e){var t;let n=e.state.facet(this.facet),r=n.filter((e=>e));if(n===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[];for(let t=0;t{var t,n,r;return{position:V.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||Kr}}}),ei=new WeakMap,ti=je.fromClass(class{constructor(e){this.view=e,this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Jr);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Hr(e,ii,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(Jr);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=Gr,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{offsetParent:e}=this.manager.tooltipViews[0].dom;r=!(!e||e==this.container.ownerDocument.body)}if(r||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(Jr).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1){c.style.top=Gr;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,p=h?7:0,m=f.right-f.left,g=null!==(t=ei.get(u))&&void 0!==t?t:f.bottom-f.top,v=u.offset||ri,O=this.view.textDirection==Ve.LTR,y=f.width>r.right-r.left?O?r.left:r.right-f.width:O?Math.min(d.left-(h?14:0)+v.x,r.right-m):Math.max(r.left,d.left-m+(h?14:0)-v.x),b=!!l.above;!l.strictSide&&(b?d.top-(f.bottom-f.top)-v.yr.bottom)&&b==r.bottom-d.bottom>d.top-r.top&&(b=!b);let w=(b?d.top-r.top:r.bottom-d.bottom)-p;if(wy&&e.topk&&(k=b?e.top-g-2-p:e.bottom+p+2);if("absolute"==this.position?(c.style.top=(k-e.parent.top)/o+"px",c.style.left=(y-e.parent.left)/i+"px"):(c.style.top=k/o+"px",c.style.left=y/i+"px"),h){let e=d.left+(O?v.x:-v.x)-(y+14-7);h.style.left=e/i+"px"}!0!==u.overlap&&a.push({left:y,top:k,right:x,bottom:k+g}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Gr}},{eventObservers:{scroll(){this.maybeMeasure()}}}),ni=Yn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ri={x:0,y:0},ii=r.r$.define({enables:[ti,ni]}),oi=r.r$.define();class ai{static create(e){return new ai(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Hr(e,oi,(e=>this.createHostedView(e)))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}}const si=ii.compute([oi],(e=>{let t=e.facet(oi).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.filter((e=>null!=e.end)).map((e=>e.end))),create:ai.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class li{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find((e=>e.from<=r&&e.to>=r)),a=o&&o.dir==Ve.RTL?-1:1;i=t.x{this.pending==t&&(this.pending=null,n&&e.dispatch({effects:this.setHover.of(n)}))}),(t=>$e(e.state,t,"hover tooltip")))}else o&&e.dispatch({effects:this.setHover.of(o)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!ui(this.lastMove.target)||this.pending){let{pos:r}=n||this.pending,i=null!==(t=null==n?void 0:n.end)&&void 0!==t?t:r;(r==i?this.view.posAtCoords(this.lastMove)==r:function(e,t,n,r,i,o){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.righti||Math.min(a.bottom,s)=t&&l<=n}(this.view,r,i,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!ui(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function ui(e){for(let t=e;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}function ci(e,t={}){let n=r.Py.define(),i=r.QQ.define({create:()=>null,update(e,i){if(e&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,e)))return null;if(e&&i.docChanged){let t=i.changes.mapPos(e.pos,-1,r.gc.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=i.changes.mapPos(e.end)),e=n}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(fi)&&(e=null);return e},provide:e=>oi.from(e)});return[i,je.define((r=>new li(r,e,i,n,t.hoverTime||300))),si]}function di(e,t){let n=e.plugin(ti);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const fi=r.Py.define(),hi=r.r$.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function pi(e,t){let n=e.plugin(mi),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const mi=je.fromClass(class{constructor(e){this.input=e.state.facet(Oi),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(hi);this.top=new gi(e,!0,t.topContainer),this.bottom=new gi(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(hi);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new gi(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new gi(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Oi);if(n!=this.input){let t=n.filter((e=>e)),r=[],i=[],o=[],a=[];for(let n of t){let t,s=this.specs.indexOf(n);s<0?(t=n(e.view),a.push(t)):(t=this.panels[s],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of a)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Yn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class gi{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=vi(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=vi(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function vi(e){let t=e.nextSibling;return e.remove(),t}const Oi=r.r$.define({enables:mi});class yi extends r.uU{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}yi.prototype.elementClass="",yi.prototype.toDOM=void 0,yi.prototype.mapMode=r.gc.TrackBefore,yi.prototype.startSide=yi.prototype.endSide=-1,yi.prototype.point=!0;const bi=r.r$.define(),wi={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>r.Xs.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},ki=r.r$.define();function xi(e){return[Si(),ki.of(Object.assign(Object.assign({},wi),e))]}const _i=r.r$.define({combine:e=>e.some((e=>e))});function Si(e){let t=[Pi];return e&&!1===e.fixed&&t.push(_i.of(!0)),t}const Pi=je.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(ki).map((t=>new $i(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(_i),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(_i)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=r.Xs.iter(this.view.state.facet(bi),this.view.viewport.from),i=[],o=this.gutters.map((e=>new Ti(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(e.type)){let t=!0;for(let r of e.type)if(r.type==ue.Text&&t){Ci(n,i,r.from);for(let e of o)e.line(this.view,r,i);t=!1}else if(r.widget)for(let e of o)e.widget(this.view,r)}else if(e.type==ue.Text){Ci(n,i,e.from);for(let t of o)t.line(this.view,e,i)}else if(e.widget)for(let t of o)t.widget(this.view,e);for(let e of o)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(ki),n=e.state.facet(ki),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.Xs.eq(e.startState.facet(bi),e.state.facet(bi),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new $i(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Yn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Ve.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function Ei(e){return Array.isArray(e)?e:[e]}function Ci(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Ti{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.Xs.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new Qi(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];Ci(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class $i{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let a=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()}));this.markers=Ei(t.markers(e)),t.initialSpacer&&(this.spacer=new Qi(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ei(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.Xs.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Qi{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n(0,r.BO)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class ji extends yi{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Di(e,t){return e.state.facet(Ai).formatNumber(t,e.state)}const Mi=ki.compute([Ai],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Ri),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new ji(Di(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Ai)!=e.state.facet(Ai),initialSpacer:e=>new ji(Di(e,zi(e.state.doc.lines))),updateSpacer(e,t){let n=Di(t.view,zi(t.view.state.doc.lines));return n==e.number?e:new ji(n)},domEventHandlers:e.facet(Ai).domEventHandlers})));function Ii(e={}){return[Ai.of(e),Si(),Mi]}function zi(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(Wi.range(i)))}return r.Xs.of(t)}));function Li(){return Ni}},90845:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Store:()=>r,clear:()=>c,close:()=>f,del:()=>u,get:()=>a,keys:()=>d,set:()=>s,update:()=>l});class r{constructor(e="keyval-store",t="keyval"){this.storeName=t,this._dbName=e,this._storeName=t,this._init()}_init(){this._dbp||(this._dbp=new Promise(((e,t)=>{const n=indexedDB.open(this._dbName);n.onerror=()=>t(n.error),n.onsuccess=()=>e(n.result),n.onupgradeneeded=()=>{n.result.createObjectStore(this._storeName)}})))}_withIDBStore(e,t){return this._init(),this._dbp.then((n=>new Promise(((r,i)=>{const o=n.transaction(this.storeName,e);o.oncomplete=()=>r(),o.onabort=o.onerror=()=>i(o.error),t(o.objectStore(this.storeName))}))))}_close(){return this._init(),this._dbp.then((e=>{e.close(),this._dbp=void 0}))}}let i;function o(){return i||(i=new r),i}function a(e,t=o()){let n;return t._withIDBStore("readwrite",(t=>{n=t.get(e)})).then((()=>n.result))}function s(e,t,n=o()){return n._withIDBStore("readwrite",(n=>{n.put(t,e)}))}function l(e,t,n=o()){return n._withIDBStore("readwrite",(n=>{const r=n.get(e);r.onsuccess=()=>{n.put(t(r.result),e)}}))}function u(e,t=o()){return t._withIDBStore("readwrite",(t=>{t.delete(e)}))}function c(e=o()){return e._withIDBStore("readwrite",(e=>{e.clear()}))}function d(e=o()){const t=[];return e._withIDBStore("readwrite",(e=>{(e.openKeyCursor||e.openCursor).call(e).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}})).then((()=>t))}function f(e=o()){return e._close()}},54163:(e,t,n)=>{"use strict";n.d(t,{FE:()=>M,Jq:()=>u,L3:()=>r,Lj:()=>c,_b:()=>j,hr:()=>R,i9:()=>A,md:()=>a,mp:()=>p,vj:()=>h});const r=1024;let i=0;class o{constructor(e,t){this.from=e,this.to=t}}class a{constructor(e={}){this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=u.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}a.closedBy=new a({deserialize:e=>e.split(" ")}),a.openedBy=new a({deserialize:e=>e.split(" ")}),a.group=new a({deserialize:e=>e.split(" ")}),a.contextHash=new a({perNode:!0}),a.lookAhead=new a({perNode:!0}),a.mounted=new a({perNode:!0});class s{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[a.mounted.id]}}const l=Object.create(null);class u{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new u(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(a.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(a.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class c{constructor(e){this.types=e;for(let t=0;t=t){let a=new b(o.tree,o.overlay[0].from+e.from,0,null);(i||(i=[r])).push(O(a,t,n,!1))}}return i?S(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,a=(o&h.IncludeAnonymous)>0;for(let e=this.cursor(o|h.IncludeAnonymous);;){let o=!1;if(e.from<=i&&e.to>=r&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;o=!0}for(;o&&n&&(a||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;o=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Q(u.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new p(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new p(u.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:o=r,reused:s=[],minRepeatType:l=i.types.length}=e,u=Array.isArray(n)?new m(n,n.length):n,c=i.types,d=0,f=0;function h(e,t,n,r,m){let{id:b,start:w,end:k,size:x}=u,_=f;for(;x<0;){if(u.next(),-1==x){let t=s[b];return n.push(t),void r.push(w-e)}if(-3==x)return void(d=b);if(-4==x)return void(f=b);throw new RangeError(`Unrecognized record size: ${x}`)}let S,P,E=c[b],C=w-e;if(k-w<=o&&(P=function(e,t){let n=u.fork(),r=0,i=0,a=0,s=n.end-o,c={size:0,start:0,skip:0};e:for(let o=n.pos-e;n.pos>o;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=i,c.skip=a,a+=4,r+=4,n.next();continue}let u=n.pos-e;if(e<0||u=l?4:0,f=n.start;for(n.next();n.pos>u;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=l&&(d+=4);n.next()}i=f,r+=e,a+=d}return(t<0||r==e)&&(c.size=r,c.start=i,c.skip=a),c.size>4?c:void 0}(u.pos-t,m))){let t=new Uint16Array(P.size-P.skip),n=u.pos-P.size,r=t.length;for(;u.pos>n;)r=y(P.start,t,r);S=new g(t,k-P.start,i),C=P.start-e}else{let e=u.pos-x;u.next();let t=[],n=[],r=b>=l?b:-1,i=0,s=k;for(;u.pos>e;)r>=0&&u.id==r&&u.size>=0?(u.end<=s-o&&(v(t,n,w,i,u.end,s,r,_),i=t.length,s=u.end),u.next()):h(w,e,t,n,r);if(r>=0&&i>0&&i-1&&i>0){let e=function(e){return(t,n,r)=>{let i,o,s=0,l=t.length-1;if(l>=0&&(i=t[l])instanceof p){if(!l&&i.type==e&&i.length==r)return i;(o=i.prop(a.lookAhead))&&(s=n[l]+i.length+o)}return O(e,t,n,r,s)}}(E);S=Q(E,t,n,0,t.length,0,k-w,e,e)}else S=O(E,t,n,k-w,_-k)}n.push(S),r.push(C)}function v(e,t,n,r,o,a,s,l){let u=[],c=[];for(;e.length>r;)u.push(e.pop()),c.push(t.pop()+n-o);e.push(O(i.types[s],u,c,a-o,l-a)),t.push(o-n)}function O(e,t,n,r,i=0,o){if(d){let e=[a.contextHash,d];o=o?[e].concat(o):[e]}if(i>25){let e=[a.lookAhead,i];o=o?[e].concat(o):[e]}return new p(e,t,n,r,o)}function y(e,t,n){let{id:r,start:i,end:o,size:a}=u;if(u.next(),a>=0&&r4){let r=u.pos-(a-4);for(;u.pos>r;)n=y(e,t,n)}t[--n]=s,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==a?d=r:-4==a&&(f=r);return n}let b=[],w=[];for(;u.pos>0;)h(e.start||0,e.bufferStart||0,b,w,-1);let k=null!==(t=e.length)&&void 0!==t?t:b.length?w[0]+b[0].length:0;return new p(c[e.topID],b.reverse(),w.reverse(),k)}(e)}}p.empty=new p(u.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return u.none}toString(){let e=[];for(let t=0;t0));s=o[s+3]);return a}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let a=e,s=0;a=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function O(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?a.length:-1;e!=u;e+=t){let u=a[e],c=l[e]+o.from;if(v(r,n,c,c+u.length))if(u instanceof g){if(i&h.ExcludeBuffers)continue;let a=u.findChild(0,u.buffer.length,t,n-c,r);if(a>-1)return new _(new x(o,u,e,c),null,a)}else if(i&h.IncludeAnonymous||!u.type.isAnonymous||C(u)){let a;if(!(i&h.IgnoreMounts)&&(a=s.get(u))&&!a.overlay)return new b(a.tree,c,e,o);let l=new b(u,c,e,o);return i&h.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?u.children.length-1:0,t,n,r)}}if(i&h.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&h.IgnoreOverlays)&&(r=s.get(this._tree))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e=n:i>n))return new b(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function w(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function k(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class x{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class _ extends y{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new _(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&h.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new _(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new _(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new _(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new p(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function S(e){if(!e.length)return null;if(1==e.length)return e[0];let t=0,n=e[0];for(let r=1;rn.from||i.to0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&h.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||C(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let e=n;e=0;i--){if(i<0)return k(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function C(e){return e.children.some((e=>e instanceof g||!e.type.isAnonymous||C(e)))}const T=new WeakMap;function $(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=T.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof p)){n=1;break}n+=$(e,r)}T.set(t,n)}return n}function Q(e,t,n,r,i,o,a,s,l){let u=0;for(let n=r;n=c)break;p+=t}if(u==i+1){if(p>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}d.push(n[i])}else{let t=r[u-1]+n[u-1].length-h;d.push(Q(e,n,r,i,u,h,t,null,l))}f.push(h+s-o)}}(t,n,r,i,0),(s||l)(d,f,a)}class R{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof _?this.setBuffer(e.context.buffer,e.index,t):e instanceof b&&this.map.set(e.tree,t)}get(e){return e instanceof _?this.getBuffer(e.context.buffer,e.index):e instanceof b?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class A{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new A(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let a=0,s=0,l=0;;a++){let u=a=n)for(;o&&o.from=t.from||c<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new A(e,n,t.tree,t.offset+l,a>0,!!u)}if(t&&r.push(t),o.to>c)break;o=inew o(e.from,e.to))):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class D{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function M(e){return(t,n,r,i)=>new N(t,e,n,r,i)}class I{constructor(e,t,n,r,i){if(this.parser=e,this.parse=t,this.overlay=n,this.target=r,this.ranges=i,!i.length||i.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(i))}}class z{constructor(e,t,n,r,i,o,a){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=i,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const W=new a({perNode:!0});class N{constructor(e,t,n,r,i){this.nest=t,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new p(e.type,e.children,e.positions,e.length,e.propValues.concat([[W,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[a.mounted.id]=new s(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;te.frag.from<=r.from&&e.frag.to>=r.to&&e.mount.overlay));if(e)for(let n of e.mount.overlay){let i=n.from+e.pos,o=n.to+e.pos;i>=r.from&&o<=r.to&&!t.ranges.some((e=>e.fromi))&&t.ranges.push({from:i,to:o})}}l=!1}else if(n&&(a=L(n.ranges,r.from,r.to)))l=2!=a;else if(!r.type.isAnonymous&&r.fromnew o(e.from-r.from,e.to-r.from))):null,r.tree,e)),i.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):l=!1}}else t&&(s=t.predicate(r))&&(!0===s&&(s=new o(r.from,r.to)),s.fromnew o(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function L(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function F(e,t,n,r,i,o){if(t=t.to);r++);let a=i.children[r],s=a.buffer;i.children[r]=function e(n,r,i,l,u){let c=n;for(;s[c+2]+o<=t.from;)c=s[c+3];let d=[],f=[];F(a,n,c,d,f,l);let h=s[c+1],m=s[c+2],g=h+o==t.from&&m+o==t.to&&s[c]==t.type.id;return d.push(g?t.toTree():e(c+4,s[c+3],a.set.types[s[c]],h,m-h)),f.push(h-l),F(a,s[c+3],r,d,f,l),new p(i,d,f,u)}(0,s.length,u.none,0,a.length);for(let r=0;r<=n;r++)e.childAfter(t.from)}class X{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(h.IncludeAnonymous|h.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from=e&&t.enter(n,1,h.IgnoreOverlays|h.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof p))break;t=t.children[0]}return!1}}class q{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(W))&&void 0!==t?t:n.to,this.inner=new X(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(W))&&void 0!==e?e:t.to,this.inner=new X(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(n=e.tree)||void 0===n?void 0:n.prop(a.mounted);if(i&&i.parser==t)for(let t=this.fragI;t=e.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:e.from-n.offset,mount:i})}}}return r}}function B(e,t){let n=null,r=t;for(let i=1,a=0;i=l)break;e.to<=s||(n||(r=n=t.slice()),e.froml&&n.splice(a+1,0,new o(l,e.to))):e.to>l?n[a--]=new o(l,e.to):n.splice(a--,1))}}return r}function V(e,t,n,r){let i=0,a=0,s=!1,l=!1,u=-1e9,c=[];for(;;){let d=i==e.length?1e9:s?e[i].to:e[i].from,f=a==t.length?1e9:l?t[a].to:t[a].from;if(s!=l){let e=Math.max(u,n),t=Math.min(d,f,r);enew o(e.from+r,e.to+r))),l,u);for(let t=0,r=l;;t++){let o=t==s.length,l=o?u:s[t].from;if(l>r&&n.push(new A(r,l,i.tree,-e,a.from>=r||a.openStart,a.to<=l||a.openEnd)),o)break;r=s[t].to}}else n.push(new A(l,u,i.tree,-e,a.from>=e||a.openStart,a.to<=s||a.openEnd))}return n}},7778:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>l,QR:()=>d,Vp:()=>o,bW:()=>f,pJ:()=>T});var r=n(54163);let i=0;class o{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=i++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new o([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new s;return t=>t.modified.indexOf(e)>-1?t:s.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let a=0;class s{constructor(){this.instances=[],this.id=a++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every(((e,t)=>e==i[t])));var r,i}));if(n)return n;let r=[],i=new o(r,e,t);for(let e of t)e.instances.push(i);let a=function(e){let t=[[]];for(let n=0;nt.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of a)r.push(s.get(t,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){i=0;break}if("/"!=a)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+e);let l=new c(r,i,a>0?n.slice(0,a):null);t[s]=l.sort(t[s])}}return u.add(t)}const u=new r.md;class c{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function f(e,t,n,r=0,i=e.length){let o=new h(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}c.empty=new c([],2,null);class h{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,o){let{type:a,from:s,to:l}=e;if(s>=n||l<=t)return;a.isTop&&(o=this.highlighters.filter((e=>!e.scope||e.scope(a))));let d=i,f=function(e){let t=e.type.prop(u);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||c.empty,h=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(o,f.tags);if(h&&(d&&(d+=" "),d+=h,1==f.mode&&(i+=(i?" ":"")+h)),this.startSpan(Math.max(t,s),d),f.opaque)return;let p=e.tree&&e.tree.prop(r.md.mounted);if(p&&p.overlay){let r=e.node.enter(p.overlay[0].from+s,1),a=this.highlighters.filter((e=>!e.scope||e.scope(p.tree.type))),u=e.firstChild();for(let c=0,f=s;;c++){let h=c=m)&&e.nextSibling()););if(!h||m>n)break;f=h.to+s,f>t&&(this.highlightRange(r.cursor(),Math.max(t,h.from+s),Math.min(n,f),"",a),this.startSpan(Math.min(n,f),d))}u&&e.parent()}else if(e.firstChild()){p&&(i="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,o),this.startSpan(Math.min(n,e.to),d)}}while(e.nextSibling());e.parent()}}}const p=o.define,m=p(),g=p(),v=p(g),O=p(g),y=p(),b=p(y),w=p(y),k=p(),x=p(k),_=p(),S=p(),P=p(),E=p(P),C=p(),T={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:v,tagName:p(v),propertyName:O,attributeName:p(O),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:y,string:b,docString:p(b),character:p(b),attributeValue:p(b),number:w,integer:p(w),float:p(w),bool:p(y),regexp:p(y),escape:p(y),color:p(y),url:p(y),keyword:_,self:p(_),null:p(_),atom:p(_),unit:p(_),modifier:p(_),operatorKeyword:p(_),controlKeyword:p(_),definitionKeyword:p(_),moduleKeyword:p(_),operator:S,derefOperator:p(S),arithmeticOperator:p(S),logicOperator:p(S),bitwiseOperator:p(S),compareOperator:p(S),updateOperator:p(S),definitionOperator:p(S),typeOperator:p(S),controlOperator:p(S),punctuation:P,separator:p(P),bracket:E,angleBracket:p(E),squareBracket:p(E),paren:p(E),brace:p(E),content:k,heading:x,heading1:p(x),heading2:p(x),heading3:p(x),heading4:p(x),heading5:p(x),heading6:p(x),contentSeparator:p(k),list:p(k),quote:p(k),emphasis:p(k),strong:p(k),link:p(k),monospace:p(k),strikethrough:p(k),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:C,documentMeta:p(C),annotation:p(C),processingInstruction:p(C),definition:o.defineModifier(),constant:o.defineModifier(),function:o.defineModifier(),standard:o.defineModifier(),local:o.defineModifier(),special:o.defineModifier()};d([{tag:T.link,class:"tok-link"},{tag:T.heading,class:"tok-heading"},{tag:T.emphasis,class:"tok-emphasis"},{tag:T.strong,class:"tok-strong"},{tag:T.keyword,class:"tok-keyword"},{tag:T.atom,class:"tok-atom"},{tag:T.bool,class:"tok-bool"},{tag:T.url,class:"tok-url"},{tag:T.labelName,class:"tok-labelName"},{tag:T.inserted,class:"tok-inserted"},{tag:T.deleted,class:"tok-deleted"},{tag:T.literal,class:"tok-literal"},{tag:T.string,class:"tok-string"},{tag:T.number,class:"tok-number"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"tok-string2"},{tag:T.variableName,class:"tok-variableName"},{tag:T.local(T.variableName),class:"tok-variableName tok-local"},{tag:T.definition(T.variableName),class:"tok-variableName tok-definition"},{tag:T.special(T.variableName),class:"tok-variableName2"},{tag:T.definition(T.propertyName),class:"tok-propertyName tok-definition"},{tag:T.typeName,class:"tok-typeName"},{tag:T.namespace,class:"tok-namespace"},{tag:T.className,class:"tok-className"},{tag:T.macroName,class:"tok-macroName"},{tag:T.propertyName,class:"tok-propertyName"},{tag:T.operator,class:"tok-operator"},{tag:T.comment,class:"tok-comment"},{tag:T.meta,class:"tok-meta"},{tag:T.invalid,class:"tok-invalid"},{tag:T.punctuation,class:"tok-punctuation"}])},64963:(e,t,n)=>{"use strict";n.d(t,{IK:()=>C,Jq:()=>m,RA:()=>p,WQ:()=>T});var r=n(54163),i=n(48494);class o{constructor(e,t,n,r,i,o,a,s,l,u=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=a,this.bufferBase=s,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new o(e,[],t,n,n,0,[],0,r?new a(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,o=i.dynamicPrecedence(r);if(o&&(this.score+=o),0==n)return this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(r,s)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t)return void(e.buffer[r-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let i=e,{parser:o}=this.p;(r>this.pos||t<=o.maxNode)&&(this.pos=r,o.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new s(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i1&t&&e==r))||n.push(t[e],r)}t=n}let n=[];for(let e=0;e>19,r=65535&t,i=this.stack.length-3*n;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class a{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class s{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class l{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new l(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new l(this.stack,this.pos,this.index)}}function u(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class c{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const d=new c;class f{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=d,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;in.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r=this.chunk2Pos&&tr.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=d,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class h{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;g(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}h.prototype.contextual=h.prototype.fallback=h.prototype.extend=!1;class p{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?u(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(g(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}p.prototype.contextual=h.prototype.fallback=h.prototype.extend=!1;class m{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function g(e,t,n,r,i,o){let a=0,s=1<0){let n=e[r];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||O(n,t.token.value,i,o))){t.acceptToken(n);break}}let r=t.next,u=0,c=e[a+2];if(!(t.next<0&&c>u&&65535==e[n+3*c-3]&&65535==e[n+3*c-3])){for(;u>1,o=n+i+(i<<1),s=e[o],l=e[o+1]||65536;if(r=l)){a=e[o+2],t.advance();continue e}u=i+1}}break}a=e[n+3*c-1]}}function v(e,t,n){for(let r,i=t;65535!=(r=e[i]);i++)if(r==n)return i-t;return-1}function O(e,t,n,r){let i=v(n,r,t);return i<0||v(n,r,e)t)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}class k{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?w(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?w(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(o instanceof r.mp){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+o.length}}}class x{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new c))}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0;for(let r=0;ru.end+25&&(s=Math.max(u.lookAhead,s)),0!=u.value)){let r=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(n=u,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||(n=new c,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new c,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r=0&&n.p.parser.dialect.allows(i>>1)){0==(1&i)?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t4*e.bufferLength?new k(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;or)i.push(a);else{if(this.advanceStack(a,i,n))continue;{e||(e=[],t=[]),e.push(a);let n=this.tokens.getMainToken(a);t.push(n.value,n.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return y&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort(((e,t)=>t.score-e.score));i.length>e;)i.pop();i.some((e=>e.reducePos>r))&&this.recovering--}else if(i.length>1){e:for(let e=0;e500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(n--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let e=1;e ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let s=this.fragments.nodeAt(i);s;){let i=this.parser.nodeSet.types[s.type.id]==s.type?o.getGoto(e.state,s.type.id):-1;if(i>-1&&s.length&&(!t||(s.prop(r.md.contextHash)||0)==n))return e.useNode(s,i),y&&console.log(a+this.stackID(e)+` (via reuse of ${o.getName(s.type.id)})`),!0;if(!(s instanceof r.mp)||0==s.children.length||s.positions[0]>0)break;let l=s.children[0];if(!(l instanceof r.mp&&0==s.positions[0]))break;s=l}}let s=o.stateSlot(e.state,4);if(s>0)return e.reduce(s),y&&console.log(a+this.stackID(e)+` (via always-reduce ${o.getName(65535&s)})`),!0;if(e.stack.length>=9e3)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let r=0;ri?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return S(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let o=0;o ":"";if(a.deadEnd){if(i)continue;if(i=!0,a.restart(),y&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))continue}let c=a.split(),d=u;for(let e=0;c.forceReduce()&&e<10&&(y&&console.log(d+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));e++)y&&(d=this.stackID(c)+" -> ");for(let e of a.recoverByInsert(s))y&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>a.pos?(l==a.pos&&(l++,s=0),a.recoverByDelete(s,l),y&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(s)})`),S(a,n)):(!r||r.scoree;class C{constructor(e){this.start=e.start,this.shift=e.shift||E,this.reduce=e.reduce||E,this.reuse=e.reuse||E,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class T extends r._b{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;ne.topRules[t][1])),i=[];for(let e=0;e=0)o(r,e,t[n++]);else{let i=t[n+-r];for(let a=-r;a>0;a--)o(t[n++],e,i);n++}}}this.nodeSet=new r.Lj(t.map(((t,o)=>r.Jq.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:i[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=r.L3;let a=u(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e"number"==typeof e?new h(a,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new _(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],o=1&t,a=r[i++];if(o&&n)return a;for(let n=i+(t>>1);i0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==r;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=$(this.data,n+2)}r=t($(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=$(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(T.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,r)=>{let i=e.specializers.find((e=>e.from==n.external));if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=Q(o),o}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;ee.external(n,r)<<1|t}return e.get}},93662:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});const r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class a{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,a){let s=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let a=t[n];if(/&/.test(n))i(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),a,o);else if(a&&"object"==typeof a){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,s,u)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+a+";")}(s.length||u)&&o.push((!n||l||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new l(e,o),r.mount(Array.isArray(t)?t:[t])}}let s=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=s.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[i]=t;this.sheet=new r.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],s.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let r=e.head||e;r.insertBefore(this.styleTag,r.firstChild)}this.modules=[],e[i]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,o),t)for(let e=0;e{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},72081:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>r[t]=()=>e[t]));return r.default=()=>e,__webpack_require__.d(n,r),n},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,n)=>(__webpack_require__.f[n](e,t),t)),[])),__webpack_require__.u=e=>e+".static-cms-app.js",__webpack_require__.miniCssF=e=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="StaticCmsApp:",__webpack_require__.l=(e,t,n,r)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s{i.onerror=i.onload=null,clearTimeout(c);var r=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},c=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={179:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,l=0;if(o.some((t=>0!==e[t]))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);s&&s(__webpack_require__)}for(t&&t(n);l{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{APIError:()=>a_,AccessTokenError:()=>C_,BackendClass:()=>pAt,BalloonToolbar:()=>Jwt,BitbucketBackend:()=>O7,BlockquoteElement:()=>ykt,BoldToolbarButton:()=>ewt,BooleanControl:()=>Lfe,BooleanSchema:()=>Ffe,BooleanWidget:()=>Ufe,CURSOR_COMPATIBILITY_SYMBOL:()=>D_,CodeBlockElement:()=>_kt,CodeBlockFrame:()=>wkt,CodeControl:()=>Sye,CodePreview:()=>Eye,CodeSchema:()=>Cye,CodeSettingsButton:()=>YOe,CodeSettingsPane:()=>Oye,CodeWidget:()=>Tye,ColorButton:()=>lkt,ColorControl:()=>aEe,ColorInput:()=>ukt,ColorPicker:()=>pkt,ColorPreview:()=>lEe,ColorStringWidget:()=>dEe,Colors:()=>ckt,Cursor:()=>j_,CursorOverlayContainer:()=>Hxt,CustomColors:()=>dkt,DEFAULT_TYPE_KEY:()=>BK,DateTimeControl:()=>BWe,DateTimePreview:()=>YWe,DateTimeWidget:()=>HWe,DecreaseIndentToolbarButton:()=>bwt,DeleteColumnToolbarButton:()=>swt,DeleteRowToolbarButton:()=>uwt,DeleteTableToolbarButton:()=>dwt,ELEMENT_LI:()=>u_t,ELEMENT_LIC:()=>c_t,ELEMENT_OL:()=>l_t,ELEMENT_SHORTCODE:()=>$bt,ELEMENT_UL:()=>s_t,EditorialWorkflowError:()=>z_,FilePreview:()=>eNe,FileSchema:()=>tNe,FileWidget:()=>MNe,FontTypeSelect:()=>Owt,GitGatewayBackend:()=>Tte,GitHubBackend:()=>zee,GitLabBackend:()=>Kee,GitProxyBackendGenerator:()=>soe,GiteaBackend:()=>Lte,Heading1:()=>Ekt,Heading2:()=>$kt,Heading3:()=>Akt,Heading4:()=>Mkt,Heading5:()=>Wkt,Heading6:()=>Fkt,HrElement:()=>Xkt,ImagePreview:()=>WNe,ImageSchema:()=>NNe,ImageToolbarButton:()=>_wt,ImageWidget:()=>FNe,ImplicitAuthenticator:()=>oz,IncreaseIndentToolbarButton:()=>owt,InsertColumnToolbarButton:()=>kwt,InsertRowToolbarButton:()=>Cwt,ItalicToolbarButton:()=>Rwt,KeyValueControl:()=>VNe,KeyValuePreview:()=>ZNe,KeyValueWidget:()=>eLe,LIST_TYPES:()=>vCt,LinkToolbarButton:()=>Pwt,ListControl:()=>yLe,ListItem:()=>fLe,ListItemContentElement:()=>Jkt,ListItemElement:()=>txt,ListPreview:()=>kLe,ListSchema:()=>xLe,ListWidget:()=>_Le,MapPreview:()=>PLe,MapSchema:()=>ELe,MapWidget:()=>mGe,MarkNodeTypes:()=>mCt,MarkdownControl:()=>iQt,MarkdownPreview:()=>J$t,MarkdownSchema:()=>tQt,MarkdownWidget:()=>oQt,MediaPopover:()=>vkt,NetlifyAuthenticator:()=>KI,NodeTypes:()=>gCt,NumberControl:()=>sQt,NumberPreview:()=>uQt,NumberWidget:()=>fQt,ObjectControl:()=>mQt,ObjectPreview:()=>vQt,ObjectSchema:()=>OQt,ObjectWidget:()=>yQt,OrderedListElement:()=>rxt,OrderedListToolbarButton:()=>Iwt,Paragraph:()=>sxt,PkceAuthenticator:()=>uz,PlateEditor:()=>S_t,ProxyBackend:()=>Yte,RelationControl:()=>AQt,RelationPreview:()=>DQt,RelationSummary:()=>LJ,RelationWidget:()=>zQt,SelectControl:()=>FQt,SelectPreview:()=>qQt,SelectWidget:()=>VQt,ShortcodeToolbarButton:()=>Nwt,StrikethroughToolbarButton:()=>Fwt,StringControl:()=>GQt,StringPreview:()=>KQt,StringWidget:()=>JQt,TYPES_KEY:()=>XK,TYPE_KEY:()=>qK,TableCellElement:()=>fxt,TableElement:()=>gxt,TableHeaderCellElement:()=>pxt,TableRowElement:()=>Oxt,TestBackend:()=>une,TextControl:()=>nRt,TextPreview:()=>iRt,TextWidget:()=>oRt,Toolbar:()=>wxt,UUIDControl:()=>cRt,UUIDPreview:()=>fRt,UUIDWidget:()=>hRt,UnorderedListElement:()=>oxt,UnorderedListToolbarButton:()=>Xwt,VOID_ELEMENTS:()=>pCt,alignPlugin:()=>Pxt,allEntriesByFolder:()=>qS,asyncLock:()=>Wx,autoformatBlocks:()=>Qxt,autoformatLists:()=>Axt,autoformatMarks:()=>jxt,autoformatPlugin:()=>Mxt,autoformatRules:()=>Dxt,basename:()=>ES,blobToFileObj:()=>zS,classes:()=>gye,colorSchema:()=>uEe,colorValidator:()=>cEe,createCodeBlockPlugin:()=>Wxt,createListPlugin:()=>d_t,createMdEditor:()=>Wbt,createMdPlateEditor:()=>Nbt,createMdPluginFactory:()=>Lbt,createMdPlugins:()=>Fbt,createPointerFile:()=>vS,createShortcodePlugin:()=>v_t,createTablePlugin:()=>b_t,cursorStore:()=>qxt,dateTimeGetDefaultValue:()=>ZWe,dateTimeSchema:()=>GWe,default:()=>yAt,deserializeHtmlCodeBlock:()=>zxt,deserializeMarkdown:()=>CCt,dragOverCursorPlugin:()=>Kxt,editableProps:()=>Sxt,entriesByFiles:()=>MS,entriesByFolder:()=>DS,exitBreakPlugin:()=>e_t,fileExtension:()=>TS,fileExtensionWithSeparator:()=>CS,filterByExtension:()=>U_,flattenListItemParagraphs:()=>B$t,flowAsync:()=>JS,format:()=>Cxt,formatList:()=>Txt,formatText:()=>$xt,generateContentKey:()=>b_,getAllResponses:()=>Z_,getBlobSHA:()=>K_,getErrorMessageForTypedFieldAndValue:()=>GK,getLargeMediaFilteredMediaFiles:()=>yS,getLargeMediaPatternsFromGitAttributesFile:()=>gS,getMdEditor:()=>Qbt,getMediaAsBlob:()=>WS,getMediaDisplayURL:()=>NS,getPathDepth:()=>G_,getPointerFileForMediaFileObj:()=>OS,getTimezoneOffset:()=>XWe,getTypedFieldForValue:()=>VK,getValidFileValue:()=>ANe,indentPlugin:()=>nQt,insertBreakList:()=>o_t,insertListItem:()=>i_t,isAbsolutePath:()=>PS,keyValueConverters:()=>HNe,keyValueSchema:()=>KNe,keyValueValidator:()=>JNe,loadScript:()=>BS,localForage:()=>ZS,localToUTC:()=>FWe,locales:()=>loe,markdownToSlate:()=>QCt,numberSchema:()=>cQt,numberValidator:()=>dQt,onlySuccessfulPromises:()=>KS,parseContentKey:()=>w_,parseLinkHeader:()=>Y_,parsePointerFile:()=>fS,parseResponse:()=>B_,preFormat:()=>Ext,readFile:()=>d_,readFileMetadata:()=>f_,relationSchema:()=>MQt,relationValidator:()=>IQt,requestWithBackoff:()=>c_,resetBlockTypePlugin:()=>g_t,resolveFieldKeyType:()=>ZK,resolveFunctionForTypedField:()=>YK,responseParser:()=>V_,runWithLock:()=>LS,selectOnBackspacePlugin:()=>rQt,selectSchema:()=>WQt,selectValidator:()=>BQt,serializeMarkdown:()=>XCt,slateCompiler:()=>TCt,softBreakPlugin:()=>O_t,staticCursors:()=>Jxt,stringSchema:()=>YQt,stringTemplate:()=>r,textSchema:()=>eRt,then:()=>GS,throwOnConflictingBranches:()=>h_,toSlatePlugin:()=>$Ct,trailingBlockPlugin:()=>w_t,unsentRequest:()=>i_,useCurrentBackend:()=>Nz,useData:()=>cz,useEntries:()=>yz,useFolderSupport:()=>bz,useGetMediaAsset:()=>_z,useHasChildErrors:()=>wz,useIsMediaAsset:()=>xz,useMarkdownToSlate:()=>RCt,useMdEditorRef:()=>Rbt,useMdEditorState:()=>Abt,useMdPlateActions:()=>Ibt,useMdPlateEditorRef:()=>jbt,useMdPlateEditorState:()=>Dbt,useMdPlateSelectors:()=>Mbt,useMdPlateStates:()=>zbt,useMdx:()=>G$t,useMediaAsset:()=>Sz,useMediaFiles:()=>Tz,useMediaInsert:()=>$z,useMediaPersist:()=>zz,useTheme:()=>f4,useTranslate:()=>LD,useUUID:()=>Wz,utcToLocal:()=>UWe,uuidSchema:()=>aRt,validations:()=>i,withFileControl:()=>jNe,withImageElement:()=>qkt,withLinkElement:()=>Kkt,withList:()=>a_t,withMapControl:()=>hGe,withShortcodeElement:()=>uxt,withTable:()=>y_t});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{BOM:()=>ii,DOCUMENT:()=>oi,FLOW_END:()=>ai,SCALAR:()=>si,createScalarToken:()=>Br,isCollection:()=>li,isScalar:()=>ui,prettyToken:()=>ci,resolveAsScalar:()=>qr,setScalarValue:()=>Vr,stringify:()=>Gr,tokenType:()=>di,visit:()=>ni});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{Alias:()=>Ct,CST:()=>e,Composer:()=>Xr,Document:()=>gr,Lexer:()=>Oi,LineCounter:()=>yi,Pair:()=>ln,Parser:()=>Pi,Scalar:()=>Qt,Schema:()=>mr,YAMLError:()=>Or,YAMLMap:()=>pn,YAMLParseError:()=>yr,YAMLSeq:()=>gn,YAMLWarning:()=>br,isAlias:()=>et,isCollection:()=>at,isDocument:()=>tt,isMap:()=>nt,isNode:()=>st,isPair:()=>rt,isScalar:()=>it,isSeq:()=>ot,parse:()=>$i,parseAllDocuments:()=>Ci,parseDocument:()=>Ti,stringify:()=>Qi,visit:()=>ft,visitAsync:()=>pt});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{af:()=>Os,ar:()=>_s,arDZ:()=>$s,arEG:()=>Ms,arMA:()=>Fs,arSA:()=>Ys,arTN:()=>el,az:()=>sl,be:()=>Ol,beTarask:()=>Cl,bg:()=>Il,bn:()=>ql,bs:()=>Hl,ca:()=>iu,ckb:()=>cu,cs:()=>vu,cy:()=>xu,da:()=>Tu,de:()=>Wu,deAT:()=>Fu,el:()=>Yu,enAU:()=>Zu,enCA:()=>Hu,enGB:()=>Ju,enIE:()=>ec,enIN:()=>tc,enNZ:()=>nc,enUS:()=>Uo,enZA:()=>rc,eo:()=>uc,es:()=>gc,et:()=>_c,eu:()=>Qc,faIR:()=>Ic,fi:()=>Jc,fr:()=>ld,frCA:()=>ud,frCH:()=>fd,fy:()=>Od,gd:()=>_d,gl:()=>Qd,gu:()=>Id,he:()=>Xd,hi:()=>Hd,hr:()=>rf,ht:()=>cf,hu:()=>bf,hy:()=>Pf,id:()=>Rf,is:()=>zf,it:()=>Yf,itCH:()=>Zf,ja:()=>th,jaHira:()=>sh,ka:()=>hh,kk:()=>xh,km:()=>Th,kn:()=>Mh,ko:()=>Fh,lb:()=>Jh,lt:()=>dp,lv:()=>yp,mk:()=>Ep,mn:()=>Ap,ms:()=>Wp,mt:()=>qp,nb:()=>Hp,nl:()=>rm,nlBE:()=>um,nn:()=>gm,oc:()=>km,pl:()=>jm,pt:()=>Nm,ptBR:()=>Bm,ro:()=>Km,ru:()=>lg,se:()=>pg,sk:()=>Sg,sl:()=>Qg,sq:()=>Ig,sr:()=>Ug,srLatn:()=>Zg,sv:()=>nv,ta:()=>lv,te:()=>pv,th:()=>bv,tr:()=>Pv,ug:()=>Rv,uk:()=>Fv,uz:()=>Yv,uzCyrl:()=>eO,vi:()=>aO,zhCN:()=>hO,zhHK:()=>yO,zhTW:()=>SO});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{SLUG_MISSING_REQUIRED_DATE:()=>$x,addFileTemplateFields:()=>Mx,compileStringTemplate:()=>jx,dateParsers:()=>Cx,expandPath:()=>Rx,extractTemplateVars:()=>Dx,getExplicitFieldReplacement:()=>Ax,keyToPathArray:()=>Qx,parseDateFromEntry:()=>Tx});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{validateMinMax:()=>UE});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{boolean:()=>Toe,booleanish:()=>$oe,commaOrSpaceSeparated:()=>Doe,commaSeparated:()=>joe,number:()=>Roe,overloadedBoolean:()=>Qoe,spaceSeparated:()=>Aoe});var a={};__webpack_require__.r(a),__webpack_require__.d(a,{attentionMarkers:()=>dle,contentInitial:()=>ole,disable:()=>fle,document:()=>ile,flow:()=>sle,flowInitial:()=>ale,insideSpan:()=>cle,string:()=>lle,text:()=>ule});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{FILE:()=>Byt,HTML:()=>Zyt,TEXT:()=>Yyt,URL:()=>Vyt});var l={};__webpack_require__.r(l),__webpack_require__.d(l,{MDXProvider:()=>YCt,useMDXComponents:()=>VCt});var u,c=__webpack_require__(66204),d=__webpack_require__.t(c,2);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var b;function w(e,t,n){void 0===n&&(n="/");let r=D(("string"==typeof t?y(t):t).pathname||"/",n);if(null==r)return null;let i=k(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let e=0;null==o&&e{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(p(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=W([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(p(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),k(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Q(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of x(e.path))i(e,t,n);else i(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=x(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(b||(b={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const _=/^:\w+$/,S=3,P=2,E=1,C=10,T=-2,$=e=>"*"===e;function Q(e,t){let n=e.split("/"),r=n.length;return n.some($)&&(r+=T),t&&(r+=P),n.filter((e=>!$(e))).reduce(((e,t)=>e+(_.test(t)?S:""===t?E:C)),r)}function R(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return m(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l||"",r),e}),{});return{params:l,pathname:o,pathnameBase:a,pattern:e}}function j(e){try{return decodeURI(e)}catch(t){return m(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function I(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function z(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=y(e):(i=f({},e),p(!i.pathname||!i.pathname.includes("?"),M("?","pathname","search",i)),p(!i.pathname||!i.pathname.includes("#"),M("#","pathname","hash",i)),p(!i.search||!i.search.includes("#"),M("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?y(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:L(r),hash:F(i)}}(i,o),u=s&&"/"!==s&&s.endsWith("/"),c=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}const W=e=>e.join("/").replace(/\/\/+/g,"/"),N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class U extends Error{}const X=["post","put","patch","delete"],q=(new Set(X),["get",...X]);function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let r=c.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,B({fromRouteId:t},i)))}),[e,t]);return r}():function(){J()||p(!1);let e=c.useContext(V),{basename:t,future:n,navigator:r}=c.useContext(Z),{matches:i}=c.useContext(H),{pathname:o}=ee(),a=JSON.stringify(I(i,n.v7_relativeSplatPath)),s=c.useRef(!1);te((()=>{s.current=!0}));let l=c.useCallback((function(n,i){if(void 0===i&&(i={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=z(n,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:W([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[t,r,a,o,e]);return l}()}function re(){let{matches:e}=c.useContext(H),t=e[e.length-1];return t?t.params:{}}function ie(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=c.useContext(Z),{matches:i}=c.useContext(H),{pathname:o}=ee(),a=JSON.stringify(I(i,r.v7_relativeSplatPath));return c.useMemo((()=>z(e,JSON.parse(a),o,"path"===n)),[e,a,o,n])}function oe(e,t,n,r){J()||p(!1);let{navigator:i}=c.useContext(Z),{matches:o}=c.useContext(H),a=o[o.length-1],s=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let d,f=ee();if(t){var h;let e="string"==typeof t?y(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||p(!1),d=e}else d=f;let m=d.pathname||"/",g=w(e,{pathname:"/"===l?m:m.slice(l.length)||"/"}),v=function(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(null==(o=n)||!o.errors)return null;e=n.matches}let a=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||p(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e=0?a.slice(0,u+1):[a[0]];break}}}return a.reduceRight(((e,r,i)=>{let o,d=!1,f=null,h=null;n&&(o=s&&r.route.id?s[r.route.id]:void 0,f=r.route.errorElement||se,l&&(u<0&&0===i?(function(e,t,n){!1||he[e]||(he[e]=!0)}("route-fallback"),d=!0,h=null):u===i&&(d=!0,h=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,i+1)),m=()=>{let t;return t=o?f:d?h:r.route.Component?c.createElement(r.route.Component,null):r.route.element?r.route.element:e,c.createElement(ue,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?c.createElement(le,{location:n.location,revalidation:n.revalidation,component:f,error:o,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:W([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:W([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);return t&&v?c.createElement(G.Provider,{value:{location:B({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:u.Pop}},v):v}function ae(){let e=function(){var e;let t=c.useContext(K),n=function(e){let t=c.useContext(Y);return t||p(!1),t}(de.UseRouteError),r=fe(de.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:r},n):null,null)}const se=c.createElement(ae,null);class le extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?c.createElement(H.Provider,{value:this.props.routeContext},c.createElement(K.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ue(e){let{routeContext:t,match:n,children:r}=e,i=c.useContext(V);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(H.Provider,{value:t},r)}var ce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ce||{}),de=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(de||{});function fe(e){let t=function(e){let t=c.useContext(H);return t||p(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||p(!1),n.route.id}const he={};function pe(e){let{to:t,replace:n,state:r,relative:i}=e;J()||p(!1);let{future:o,static:a}=c.useContext(Z),{matches:s}=c.useContext(H),{pathname:l}=ee(),u=ne(),d=z(t,I(s,o.v7_relativeSplatPath),l,"path"===i),f=JSON.stringify(d);return c.useEffect((()=>u(JSON.parse(f),{replace:n,state:r,relative:i})),[u,f,i,n,r]),null}function me(e){p(!1)}function ge(e){let{basename:t="/",children:n=null,location:r,navigationType:i=u.Pop,navigator:o,static:a=!1,future:s}=e;J()&&p(!1);let l=t.replace(/^\/*/,"/"),d=c.useMemo((()=>({basename:l,navigator:o,static:a,future:B({v7_relativeSplatPath:!1},s)})),[l,s,o,a]);"string"==typeof r&&(r=y(r));let{pathname:f="/",search:h="",hash:m="",state:g=null,key:v="default"}=r,O=c.useMemo((()=>{let e=D(f,l);return null==e?null:{location:{pathname:e,search:h,hash:m,state:g,key:v},navigationType:i}}),[l,f,h,m,g,v,i]);return null==O?null:c.createElement(Z.Provider,{value:d},c.createElement(G.Provider,{children:n,value:O}))}function ve(e){let{children:t,location:n}=e;return oe(ye(t),n)}d.startTransition,new Promise((()=>{}));class Oe extends c.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(" caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=AwaitRenderStatus.pending;if(n instanceof Promise)if(this.state.error){AwaitRenderStatus.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?void 0!==r._error?AwaitRenderStatus.error:void 0!==r._data?AwaitRenderStatus.success:AwaitRenderStatus.pending:(AwaitRenderStatus.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else AwaitRenderStatus.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(i===AwaitRenderStatus.error&&r._error instanceof U)throw neverSettledPromise;if(i===AwaitRenderStatus.error&&!t)throw r._error;if(i===AwaitRenderStatus.error)return c.createElement(AwaitContext.Provider,{value:r,children:t});if(i===AwaitRenderStatus.success)return c.createElement(AwaitContext.Provider,{value:r,children:e});throw r}}function ye(e,t){void 0===t&&(t=[]);let n=[];return c.Children.forEach(e,((e,r)=>{if(!c.isValidElement(e))return;let i=[...t,r];if(e.type===c.Fragment)return void n.push.apply(n,ye(e.props.children,i));e.type!==me&&p(!1),e.props.index&&e.props.children&&p(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ye(e.props.children,i)),n.push(o)})),n}var be=__webpack_require__(41003),we=__webpack_require__.n(be),ke=__webpack_require__(28611),xe=__webpack_require__.n(ke),_e=__webpack_require__(60567),Se=__webpack_require__.n(_e),Pe=__webpack_require__(9229),Ee=__webpack_require__.n(Pe),Ce=__webpack_require__(21663),Te=__webpack_require__.n(Ce),$e=__webpack_require__(70866),Qe=__webpack_require__.n($e),Re=__webpack_require__(77097);const Ae="DRAFT_MEDIA_FILES",je="editorial_workflow";let De=function(e){return e.DRAFT="draft",e.PENDING_REVIEW="pending_review",e.PENDING_PUBLISH="pending_publish",e}({});function Me(e){switch(e.toLowerCase()){case"draft":return De.DRAFT;case"pending_review":return De.PENDING_REVIEW;case"pending_publish":return De.PENDING_PUBLISH;default:return}}function Ie(e){return null!=e}function ze(e){return null==e}function We(e,t){return ze(e)||(t?""===e.trim():""===e)}function Ne(e){return Ie(e)&&""!==e}function Le(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function Fe(e){return e.replace(/_/g," ").replace(/\w\S*/g,Le)}De.DRAFT,De.PENDING_REVIEW,De.PENDING_PUBLISH;class Ue{constructor(){!function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name",void 0)}}const Xe=new class extends Ue{constructor(...e){super(...e),function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name","json")}fromFile(e){return We(e)?{}:JSON.parse(e)}toFile(e){return JSON.stringify(e,null,2)}};var qe=__webpack_require__(69493);const Be=new class extends Ue{constructor(...e){super(...e),function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name","toml")}fromFile(e){return qe.parse(e)}toFile(e){return qe.stringify(e)}},Ve=Symbol.for("yaml.alias"),Ye=Symbol.for("yaml.document"),Ze=Symbol.for("yaml.map"),Ge=Symbol.for("yaml.pair"),He=Symbol.for("yaml.scalar"),Ke=Symbol.for("yaml.seq"),Je=Symbol.for("yaml.node.type"),et=e=>!!e&&"object"==typeof e&&e[Je]===Ve,tt=e=>!!e&&"object"==typeof e&&e[Je]===Ye,nt=e=>!!e&&"object"==typeof e&&e[Je]===Ze,rt=e=>!!e&&"object"==typeof e&&e[Je]===Ge,it=e=>!!e&&"object"==typeof e&&e[Je]===He,ot=e=>!!e&&"object"==typeof e&&e[Je]===Ke;function at(e){if(e&&"object"==typeof e)switch(e[Je]){case Ze:case Ke:return!0}return!1}function st(e){if(e&&"object"==typeof e)switch(e[Je]){case Ve:case Ze:case He:case Ke:return!0}return!1}const lt=e=>(it(e)||at(e))&&!!e.anchor,ut=Symbol("break visit"),ct=Symbol("skip children"),dt=Symbol("remove node");function ft(e,t){const n=gt(t);tt(e)?ht(null,e.contents,n,Object.freeze([e]))===dt&&(e.contents=null):ht(null,e,n,Object.freeze([]))}function ht(e,t,n,r){const i=vt(e,t,n,r);if(st(i)||rt(i))return Ot(e,r,i),ht(e,i,n,r);if("symbol"!=typeof i)if(at(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,(e=>yt[e]));class wt{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},wt.defaultYaml,e),this.tags=Object.assign({},wt.defaultTags,t)}clone(){const e=new wt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new wt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:wt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},wt.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:wt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},wt.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+bt(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&st(e.contents)){const t={};ft(e.contents,((e,n)=>{st(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[i,o]of n)"!!"===i&&"tag:yaml.org,2002:"===o||e&&!r.some((e=>e.startsWith(o)))||t.push(`%TAG ${i} ${o}`);return t.join("\n")}}function kt(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function xt(e){const t=new Set;return ft(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function _t(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function St(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;tPt(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!lt(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}wt.defaultYaml={explicit:!1,version:"1.2"},wt.defaultTags={"!!":"tag:yaml.org,2002:"};class Et{constructor(e){Object.defineProperty(this,Je,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!tt(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},a=Pt(this,"",o);if("function"==typeof r)for(const{count:e,res:t}of o.anchors.values())r(t,e);return"function"==typeof i?St(i,{"":a},"",a):a}}class Ct extends Et{constructor(e){super(Ve),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return ft(e,{Node:(e,n)=>{if(n===this)return ft.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let a=n.get(o);if(a||(Pt(o,null,t),a=n.get(o)),!a||void 0===a.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=Tt(r,o,n)),a.count*a.aliasCount>i))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return a.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(kt(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function Tt(e,t,n){if(et(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(at(t)){let r=0;for(const i of t.items){const t=Tt(e,i,n);t>r&&(r=t)}return r}if(rt(t)){const r=Tt(e,t.key,n),i=Tt(e,t.value,n);return Math.max(r,i)}return 1}const $t=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Qt extends Et{constructor(e){super(He),this.value=e}toJSON(e,t){return t?.keep?this.value:Pt(this.value,e,t)}toString(){return String(this.value)}}Qt.BLOCK_FOLDED="BLOCK_FOLDED",Qt.BLOCK_LITERAL="BLOCK_LITERAL",Qt.PLAIN="PLAIN",Qt.QUOTE_DOUBLE="QUOTE_DOUBLE",Qt.QUOTE_SINGLE="QUOTE_SINGLE";const Rt="tag:yaml.org,2002:";function At(e,t,n){if(tt(e)&&(e=e.contents),st(e))return e;if(rt(e)){const t=n.schema[Ze].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:o,schema:a,sourceObjects:s}=n;let l;if(r&&e&&"object"==typeof e){if(l=s.get(e),l)return l.anchor||(l.anchor=i(e)),new Ct(l.anchor);l={anchor:null,node:null},s.set(e,l)}t?.startsWith("!!")&&(t=Rt+t.slice(2));let u=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,a.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new Qt(e);return l&&(l.node=t),t}u=e instanceof Map?a[Ze]:Symbol.iterator in Object(e)?a[Ke]:a[Ze]}o&&(o(u),delete n.onTagObj);const c=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new Qt(e);return t?c.tag=t:u.default||(c.tag=u.tag),l&&(l.node=c),c}function jt(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return At(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Dt=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class Mt extends Et{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>st(t)||rt(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Dt(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(at(i))i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,jt(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(at(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&it(i)?i.value:i:at(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!rt(t))return!1;const n=t.value;return null==n||e&&it(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!at(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(at(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,jt(this.schema,r,t))}}}}Mt.maxFlowStringSingleLineLength=60;const It=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function zt(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Wt=(e,t,n)=>e.endsWith("\n")?zt(n,t):n.includes("\n")?"\n"+zt(n,t):(e.endsWith(" ")?"":" ")+n,Nt="flow",Lt="block",Ft="quoted";function Ut(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:a,onOverflow:s}={}){if(!i||i<0)return e;const l=Math.max(1+o,1+i-t.length);if(e.length<=l)return e;const u=[],c={};let d,f,h=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?u.push(0):h=i-r);let p=!1,m=-1,g=-1,v=-1;n===Lt&&(m=Xt(e,m),-1!==m&&(h=m+l));for(let t;t=e[m+=1];){if(n===Ft&&"\\"===t){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if("\n"===t)n===Lt&&(m=Xt(e,m)),h=m+l,d=void 0;else{if(" "===t&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=m)}if(m>=h)if(d)u.push(d),h=d+l,d=void 0;else if(n===Ft){for(;" "===f||"\t"===f;)f=t,t=e[m+=1],p=!0;const n=m>v+1?m-2:g-1;if(c[n])return e;u.push(n),c[n]=!0,h=n+l,d=void 0}else p=!0}f=t}if(p&&s&&s(),0===u.length)return e;a&&a();let O=e.slice(0,u[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Bt=e=>/^(%|---|\.\.\.)/m.test(e);function Vt(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Bt(e)?" ":"");let a="",s=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(a+=n.slice(s,e)+"\\ ",e+=1,s=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{a+=n.slice(s,e);const t=n.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=n.substr(e,6)}e+=5,s=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(n=t+1,i-n<=r)return!1}return!0}(n,l,u.length));if(!n)return c?"|\n":">\n";let d,f;for(f=n.length;f>0;--f){const e=n[f-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let h=n.substring(f);const p=h.indexOf("\n");-1===p?d="-":n===h||p!==h.length-1?(d="+",o&&o()):d="",h&&(n=n.slice(0,-h.length),"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(Gt,`$&${u}`));let m,g=!1,v=-1;for(m=0;m")+(g?u?"2":"1":"")+d;return e&&(y+=" "+s(e.replace(/ ?[\r\n]+/g," ")),i&&i()),c?`${y}\n${u}${O}${n=n.replace(/\n+/g,`$&${u}`)}${h}`:`${y}\n${u}${Ut(`${O}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`)}${h}`,u,Lt,qt(r,!0))}`}function Kt(e,t,n,r){const{implicitKey:i,inFlow:o}=t,a="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:s}=e;s!==Qt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=Qt.QUOTE_DOUBLE);const l=e=>{switch(e){case Qt.BLOCK_FOLDED:case Qt.BLOCK_LITERAL:return i||o?Zt(a.value,t):Ht(a,t,n,r);case Qt.QUOTE_DOUBLE:return Vt(a.value,t);case Qt.QUOTE_SINGLE:return Yt(a.value,t);case Qt.PLAIN:return function(e,t,n,r){const{type:i,value:o}=e,{actualString:a,implicitKey:s,indent:l,indentStep:u,inFlow:c}=t;if(s&&o.includes("\n")||c&&/[[\]{},]/.test(o))return Zt(o,t);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return s||c||!o.includes("\n")?Zt(o,t):Ht(e,t,n,r);if(!s&&!c&&i!==Qt.PLAIN&&o.includes("\n"))return Ht(e,t,n,r);if(Bt(o)){if(""===l)return t.forceBlockIndent=!0,Ht(e,t,n,r);if(s&&l===u)return Zt(o,t)}const d=o.replace(/\n+/g,`$&\n${l}`);if(a){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return Zt(o,t)}return s?d:Ut(d,l,Nt,qt(t,!1))}(a,t,n,r);default:return null}};let u=l(s);if(null===u){const{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(u=l(r),null===u)throw new Error(`Unsupported default string type ${r}`)}return u}function Jt(e,t){const n=Object.assign({blockQuote:!0,commentString:It,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function en(e,t,n,r){if(rt(e))return e.toString(t,n,r);if(et(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const o=st(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,r;if(it(t)){r=t.value;const i=e.filter((e=>e.identify?.(r)));n=i.find((e=>e.format===t.format))??i.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,o));const a=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],o=(it(e)||at(e))&&e.anchor;o&&kt(o)&&(n.add(o),i.push(`&${o}`));const a=e.tag?e.tag:t.default?null:t.tag;return a&&i.push(r.directives.tagString(a)),i.join(" ")}(o,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const s="function"==typeof i.stringify?i.stringify(o,t,n,r):it(o)?Kt(o,t,n,r):o.toString(t,n,r);return a?it(o)||"{"===s[0]||"["===s[0]?`${a} ${s}`:`${a}\n${t.indent}${s}`:s}var tn=__webpack_require__(48494);function nn(e,t){"debug"!==e&&"warn"!==e||(void 0!==tn&&tn.emitWarning?tn.emitWarning(t):console.warn(t))}function rn(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&on(n))if(r=et(r)?r.resolve(e.doc):r,ot(r))for(const n of r.items)an(e,t,n);else if(Array.isArray(r))for(const n of r)an(e,t,n);else an(e,t,r);else{const i=Pt(n,"",e);if(t instanceof Map)t.set(i,Pt(r,i,e));else if(t instanceof Set)t.add(i);else{const o=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(st(e)&&n?.doc){const t=Jt(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),nn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),a=Pt(r,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}}return t}const on=e=>"<<"===e||it(e)&&"<<"===e.value&&(!e.type||e.type===Qt.PLAIN);function an(e,t,n){const r=e&&et(n)?n.resolve(e.doc):n;if(!nt(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function sn(e,t,n){const r=At(e,void 0,n),i=At(t,void 0,n);return new ln(r,i)}class ln{constructor(e,t=null){Object.defineProperty(this,Je,{value:Ge}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return st(t)&&(t=t.clone(e)),st(n)&&(n=n.clone(e)),new ln(t,n)}toJSON(e,t){return rn(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){const{allNullValues:o,doc:a,indent:s,indentStep:l,options:{commentString:u,indentSeq:c,simpleKeys:d}}=n;let f=st(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(at(e))throw new Error("With simple keys, collection cannot be used as a key value")}let h=!d&&(!e||f&&null==t&&!n.inFlow||at(e)||(it(e)?e.type===Qt.BLOCK_FOLDED||e.type===Qt.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(d||!o),indent:s+l});let p,m,g,v=!1,O=!1,y=en(e,n,(()=>v=!0),(()=>O=!0));if(!h&&!n.inFlow&&y.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(n.inFlow){if(o||null==t)return v&&r&&r(),""===y?"?":h?`? ${y}`:y}else if(o&&!d||null==t&&h)return y=`? ${y}`,f&&!v?y+=Wt(y,n.indent,u(f)):O&&i&&i(),y;v&&(f=null),h?(f&&(y+=Wt(y,n.indent,u(f))),y=`? ${y}\n${s}:`):(y=`${y}:`,f&&(y+=Wt(y,n.indent,u(f)))),st(t)?(p=!!t.spaceBefore,m=t.commentBefore,g=t.comment):(p=!1,m=null,g=null,t&&"object"==typeof t&&(t=a.createNode(t))),n.implicitKey=!1,h||f||!it(t)||(n.indentAtStart=y.length+1),O=!1,c||!(l.length>=2)||n.inFlow||h||!ot(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let b=!1;const w=en(t,n,(()=>b=!0),(()=>O=!0));let k=" ";if(f||p||m)k=p?"\n":"",m&&(k+=`\n${zt(u(m),n.indent)}`),""!==w||n.inFlow?k+=`\n${n.indent}`:"\n"===k&&(k="\n\n");else if(!h&&at(t)){const e=w[0],r=w.indexOf("\n"),i=-1!==r,o=n.inFlow??t.flow??0===t.items.length;if(i||!o){let t=!1;if(i&&("&"===e||"!"===e)){let n=w.indexOf(" ");"&"===e&&-1!==n&&na=null),(()=>d=!0));a&&(s+=Wt(s,o,u(a))),d&&a&&(d=!1),f.push(r+s)}let h;if(0===f.length)h=i.start+i.end;else{h=f[0];for(let e=1;eo=null));ef||a.includes("\n"))&&(d=!0),h.push(a),f=h.length}let p;const{start:m,end:g}=r;if(0===h.length)p=m+g;else{if(!d){const e=h.reduce(((e,t)=>e+t.length+2),2);d=e>Mt.maxFlowStringSingleLineLength}if(d){p=m;for(const e of h)p+=e?`\n${s}${a}${e}`:"\n";p+=`\n${a}${g}`}else p=`${m}${l}${h.join(" ")}${l}${g}`}return e&&(p+=Wt(p,a,u(e)),o&&o()),p}function fn({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const i=zt(t(r),e);n.push(i.trimStart())}}function hn(e,t){const n=it(t)?t.value:t;for(const r of e)if(rt(r)){if(r.key===t||r.key===n)return r;if(it(r.key)&&r.key.value===n)return r}}class pn extends Mt{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Ze,e),this.items=[]}static from(e,t,n){const{keepUndefined:r,replacer:i}=n,o=new this(e),a=(e,a)=>{if("function"==typeof i)a=i.call(t,e,a);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==a||r)&&o.items.push(sn(e,a,n))};if(t instanceof Map)for(const[e,n]of t)a(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))a(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=rt(e)?e:e&&"object"==typeof e&&"key"in e?new ln(e.key,e.value):new ln(e,e?.value);const r=hn(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);it(r.value)&&$t(n.value)?r.value.value=n.value:r.value=n.value}else if(i){const e=this.items.findIndex((e=>i(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=hn(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=hn(this.items,e),r=n?.value;return(!t&&it(r)?r.value:r)??void 0}has(e){return!!hn(this.items,e)}set(e,t){this.add(new ln(e,t),!0)}toJSON(e,t,n){const r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)rn(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!rt(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),un(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const mn={collection:"map",default:!0,nodeClass:pn,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(nt(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>pn.from(e,t,n)};class gn extends Mt{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ke,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=vn(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=vn(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&it(r)?r.value:r}has(e){const t=vn(e);return"number"==typeof t&&t=0?t:null}const On={collection:"seq",default:!0,nodeClass:gn,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(ot(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>gn.from(e,t,n)},yn={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>Kt(e,t=Object.assign({actualString:!0},t),n,r)},bn={identify:e=>null==e,createNode:()=>new Qt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Qt(null),stringify:({source:e},t)=>"string"==typeof e&&bn.test.test(e)?e:t.options.nullStr},wn={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Qt("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&wn.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function kn({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}const xn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:kn},_n={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():kn(e)}},Sn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Qt(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:kn},Pn=e=>"bigint"==typeof e||Number.isInteger(e),En=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Cn(e,t,n){const{value:r}=e;return Pn(r)&&r>=0?n+r.toString(t):kn(e)}const Tn={identify:e=>Pn(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>En(e,2,8,n),stringify:e=>Cn(e,8,"0o")},$n={identify:Pn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>En(e,0,10,n),stringify:kn},Qn={identify:e=>Pn(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>En(e,2,16,n),stringify:e=>Cn(e,16,"0x")},Rn=[mn,On,yn,bn,wn,Tn,$n,Qn,xn,_n,Sn];function An(e){return"bigint"==typeof e||Number.isInteger(e)}const jn=({value:e})=>JSON.stringify(e),Dn=[mn,On].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:jn},{identify:e=>null==e,createNode:()=>new Qt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:jn},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:jn},{identify:An,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>An(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:jn}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)});var Mn=__webpack_require__(18390).Buffer;const In={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Mn)return Mn.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");const e=r.items[0]||new ln(new Qt(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){const t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=rt(r)?r:new ln(r)}}else t("Expected a sequence for this tag");return e}function Wn(e,t,n){const{replacer:r}=n,i=new gn(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let a,s;if("function"==typeof r&&(e=r.call(t,String(o++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);a=e[0],s=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`);a=t[0],s=e[a]}else a=e;i.items.push(sn(a,s,n))}return i}const Nn={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:zn,createNode:Wn};class Ln extends gn{constructor(){super(),this.add=pn.prototype.add.bind(this),this.delete=pn.prototype.delete.bind(this),this.get=pn.prototype.get.bind(this),this.has=pn.prototype.has.bind(this),this.set=pn.prototype.set.bind(this),this.tag=Ln.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const e of this.items){let r,i;if(rt(e)?(r=Pt(e.key,"",t),i=Pt(e.value,r,t)):r=Pt(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(e,t,n){const r=Wn(e,t,n),i=new this;return i.items=r.items,i}}Ln.tag="tag:yaml.org,2002:omap";const Fn={collection:"seq",identify:e=>e instanceof Map,nodeClass:Ln,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=zn(e,t),r=[];for(const{key:e}of n.items)it(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new Ln,n)},createNode:(e,t,n)=>Ln.from(e,t,n)};function Un({value:e,source:t},n){return t&&(e?Xn:qn).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Xn={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Qt(!0),stringify:Un},qn={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Qt(!1),stringify:Un},Bn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:kn},Vn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():kn(e)}},Yn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Qt(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:kn},Zn=e=>"bigint"==typeof e||Number.isInteger(e);function Gn(e,t,n,{intAsBigInt:r}){const i=e[0];if("-"!==i&&"+"!==i||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===i?BigInt(-1)*t:t}const o=parseInt(e,n);return"-"===i?-1*o:o}function Hn(e,t,n){const{value:r}=e;if(Zn(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return kn(e)}const Kn={identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Gn(e,2,2,n),stringify:e=>Hn(e,2,"0b")},Jn={identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Gn(e,1,8,n),stringify:e=>Hn(e,8,"0")},er={identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Gn(e,0,10,n),stringify:kn},tr={identify:Zn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Gn(e,2,16,n),stringify:e=>Hn(e,16,"0x")};class nr extends pn{constructor(e){super(e),this.tag=nr.tag}add(e){let t;t=rt(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ln(e.key,null):new ln(e,null),hn(this.items,t.key)||this.items.push(t)}get(e,t){const n=hn(this.items,e);return!t&&rt(n)?it(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=hn(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ln(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(sn(e,null,n));return i}}nr.tag="tag:yaml.org,2002:set";const rr={collection:"map",identify:e=>e instanceof Set,nodeClass:nr,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>nr.from(e,t,n),resolve(e,t){if(nt(e)){if(e.hasAllNullValues(!0))return Object.assign(new nr,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function ir(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),o=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*i(60)+i(t)),i(0));return"-"===n?i(-1)*o:o}function or(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return kn(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const ar={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>ir(e,n),stringify:or},sr={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>ir(e,!1),stringify:or},lr={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(lr.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,o,a,s]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,r-1,i,o||0,a||0,s||0,l);const c=t[8];if(c&&"Z"!==c){let e=ir(c,!1);Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},ur=[mn,On,yn,bn,Xn,qn,Kn,Jn,er,tr,Bn,Vn,Yn,In,Fn,Nn,rr,ar,sr,lr],cr=new Map([["core",Rn],["failsafe",[mn,On,yn]],["json",Dn],["yaml11",ur],["yaml-1.1",ur]]),dr={binary:In,bool:wn,float:Sn,floatExp:_n,floatNaN:xn,floatTime:sr,int:$n,intHex:Qn,intOct:Tn,intTime:ar,map:mn,null:bn,omap:Fn,pairs:Nn,seq:On,set:rr,timestamp:lr},fr={"tag:yaml.org,2002:binary":In,"tag:yaml.org,2002:omap":Fn,"tag:yaml.org,2002:pairs":Nn,"tag:yaml.org,2002:set":rr,"tag:yaml.org,2002:timestamp":lr};function hr(e,t){let n=cr.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(cr.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=dr[e];if(t)return t;const n=Object.keys(dr).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}const pr=(e,t)=>e.keyt.key?1:0;class mr{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?hr(e,"compat"):e?hr(null,e):null,this.merge=!!n,this.name="string"==typeof i&&i||"core",this.knownTags=r?fr:{},this.tags=hr(t,this.name),this.toStringOptions=a??null,Object.defineProperty(this,Ze,{value:mn}),Object.defineProperty(this,He,{value:yn}),Object.defineProperty(this,Ke,{value:On}),this.sortMapEntries="function"==typeof o?o:!0===o?pr:null}clone(){const e=Object.create(mr.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class gr{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Je,{value:Ye});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new wt({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(gr.prototype,{[Je]:{value:Ye}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=st(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){vr(this.contents)&&this.contents.add(e)}addIn(e,t){vr(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=xt(this);e.anchor=!t||n.has(t)?_t(t||"a",n):t}return new Ct(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:a,keepUndefined:s,onTagObj:l,tag:u}=n??{},{onAnchor:c,setAnchors:d,sourceObjects:f}=function(e,t){const n=[],r=new Map;let i=null;return{onAnchor:r=>{n.push(r),i||(i=xt(e));const o=_t(t,i);return i.add(o),o},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!it(t.node)&&!at(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,o||"a"),h=At(e,u,{aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:c,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:f});return a&&at(h)&&(h.flow=!0),d(),h}createPair(e,t,n={}){const r=this.createNode(e,null,n),i=this.createNode(t,null,n);return new ln(r,i)}delete(e){return!!vr(this.contents)&&this.contents.delete(e)}deleteIn(e){return Dt(e)?null!=this.contents&&(this.contents=null,!0):!!vr(this.contents)&&this.contents.deleteIn(e)}get(e,t){return at(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Dt(e)?!t&&it(this.contents)?this.contents.value:this.contents:at(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!at(this.contents)&&this.contents.has(e)}hasIn(e){return Dt(e)?void 0!==this.contents:!!at(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=jt(this.schema,[e],t):vr(this.contents)&&this.contents.set(e,t)}setIn(e,t){Dt(e)?this.contents=t:null==this.contents?this.contents=jt(this.schema,Array.from(e),t):vr(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new wt({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new wt({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new mr(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},s=Pt(this.contents,t??"",a);if("function"==typeof i)for(const{count:e,res:t}of a.anchors.values())i(t,e);return"function"==typeof o?St(o,{"":s},"",s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){const n=[];let r=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=Jt(e,t),{commentString:o}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=o(e.commentBefore);n.unshift(zt(t,""))}let a=!1,s=null;if(e.contents){if(st(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const t=o(e.contents.commentBefore);n.push(zt(t,""))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}const t=s?void 0:()=>a=!0;let l=en(e.contents,i,(()=>s=null),t);s&&(l+=Wt(l,"",o(s))),"|"!==l[0]&&">"!==l[0]||"---"!==n[n.length-1]?n.push(l):n[n.length-1]=`--- ${l}`}else n.push(en(e.contents,i));if(e.directives?.docEnd)if(e.comment){const t=o(e.comment);t.includes("\n")?(n.push("..."),n.push(zt(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&a&&(t=t.replace(/^\n+/,"")),t&&(a&&!s||""===n[n.length-1]||n.push(""),n.push(zt(o(t),"")))}return n.join("\n")+"\n"}(this,e)}}function vr(e){if(at(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Or extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class yr extends Or{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class br extends Or{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const wr=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let o=i-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(o>=60&&a.length>80){const e=Math.min(o-39,a.length-79);a="…"+a.substring(e),o-=e-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,o))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),a=n+a}if(/[^ ]/.test(a)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-o)));const s=" ".repeat(o)+"^".repeat(e);n.message+=`:\n\n${a}\n${s}\n`}};function kr(e,{flow:t,indicator:n,next:r,offset:i,onError:o,startOnNewline:a}){let s=!1,l=a,u=a,c="",d="",f=!1,h=!1,p=!1,m=null,g=null,v=null,O=null,y=null;for(const r of e)switch(p&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),r.type){case"space":!t&&l&&"doc-start"!==n&&"\t"===r.source[0]&&o(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||o(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";c?c+=d+e:c=e,d="",l=!1;break}case"newline":l?c?c+=r.source:s=!0:d+=r.source,l=!0,f=!0,(m||g)&&(h=!0),u=!0;break;case"anchor":m&&o(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&o(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===y&&(y=r.offset),l=!1,u=!1,p=!0;break;case"tag":g&&o(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===y&&(y=r.offset),l=!1,u=!1,p=!0;break;case n:(m||g)&&o(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),O&&o(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),O=r,l=!1,u=!1;break;case"comma":if(t){v&&o(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),v=r,l=!1,u=!1;break}default:o(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),l=!1,u=!1}const b=e[e.length-1],w=b?b.offset+b.source.length:i;return p&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:v,found:O,spaceBefore:s,comment:c,hasNewline:f,hasNewlineAfterProp:h,anchor:m,tag:g,end:w,start:y??w}}function xr(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(xr(t.key)||xr(t.value))return!0}return!1;default:return!0}}function _r(e,t,n){if("flow-collection"===t?.type){const r=t.end[0];r.indent!==e||"]"!==r.source&&"}"!==r.source||!xr(t)||n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Sr(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const i="function"==typeof r?r:(t,n)=>t===n||it(t)&&it(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}const Pr="All mapping items must start at the same column";function Er(e,t,n,r){let i="";if(e){let o=!1,a="";for(const s of e){const{source:e,type:l}=s;switch(l){case"space":o=!0;break;case"comment":{n&&!o&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";i?i+=a+t:i=t,a="";break}case"newline":i&&(a+=e),o=!0;break;default:r(s,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}const Cr="Block collections are not allowed within flow collections",Tr=e=>e&&("block-map"===e.type||"block-seq"===e.type);function $r(e,t,n,r,i,o){const a="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,o){const a=new(o?.nodeClass??pn)(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset,l=null;for(const o of r.items){const{start:u,key:c,sep:d,value:f}=o,h=kr(u,{indicator:"explicit-key-ind",next:c??d?.[0],offset:s,onError:i,startOnNewline:!0}),p=!h.found;if(p){if(c&&("block-seq"===c.type?i(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&i(s,"BAD_INDENT",Pr)),!h.anchor&&!h.tag&&!d){l=h.end,h.comment&&(a.comment?a.comment+="\n"+h.comment:a.comment=h.comment);continue}(h.hasNewlineAfterProp||xr(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==r.indent&&i(s,"BAD_INDENT",Pr);const m=h.end,g=c?e(n,c,h,i):t(n,m,u,null,h,i);n.schema.compat&&_r(r.indent,c,i),Sr(n,a.items,g)&&i(m,"DUPLICATE_KEY","Map keys must be unique");const v=kr(d??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,startOnNewline:!c||"block-scalar"===c.type});if(s=v.end,v.found){p&&("block-map"!==f?.type||v.hasNewline||i(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&h.start0){const e=Er(h,p,n.options.strict,i);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[r.offset,p,e.offset]}else l.range=[r.offset,p,p];return l}(e,t,n,r,o),s=a.constructor;return"!"===i||i===s.tagName?(a.tag=s.tagName,a):(i&&(a.tag=i),a)}function Qr(e,t,n){const r=e.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],o=i[0];let a=0,s="",l=-1;for(let t=1;t=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;s=e}if(0===s){const t="+"===i.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let n=r+i.length;return e.source&&(n+=e.source.length),{value:t,type:o,comment:i.comment,range:[r,n,n]}}let l=e.indent+i.indent,u=e.offset+i.length,c=0;for(let e=0;el&&(l=t.length),u+=t.length+r.length+1}for(let e=a.length-1;e>=s;--e)a[e][0].length>l&&(s=e+1);let d="",f="",h=!1;for(let e=0;el||"\t"===r[0]?(" "===f?f="\n":h||"\n"!==f||(f="\n\n"),d+=f+t.slice(l)+r,f="\n",h=!0):""===r?"\n"===f?d+="\n":f="\n":(d+=f+r,f=" ",h=!1)}switch(i.chomp){case"-":break;case"+":for(let e=s;en(r+e,t,i);switch(i){case"scalar":s=Qt.PLAIN,l=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Ar(e)}(o,u);break;case"single-quoted-scalar":s=Qt.QUOTE_SINGLE,l=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),Ar(e.slice(1,-1)).replace(/''/g,"'")}(o,u);break;case"double-quoted-scalar":s=Qt.QUOTE_DOUBLE,l=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):i)}else n+=i}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(o,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+o.length,r+o.length]}}const c=r+o.length,d=Er(a,c,t,n);return{value:l,type:s,comment:d.comment,range:[r,c,d.offset]}}function Ar(e){let t,n;try{t=new RegExp("(.*?)(?r(n,"TAG_RESOLVE_FAILED",e))):null,u=n&&l?function(e,t,n,r,i){if("!"===n)return e[He];const o=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;o.push(t)}for(const e of o)if(e.test?.test(t))return e;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[He])}(e.schema,i,l,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,i){const o=t.tags.find((e=>e.default&&e.test?.test(n)))||t[He];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(n)))??t[He];o.tag!==a.tag&&i(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(o.tag)} or ${e.tagString(a.tag)}`,!0)}return o}(e,i,t,r):e.schema[He];let c;try{const o=u.resolve(i,(e=>r(n??t,"TAG_RESOLVE_FAILED",e)),e.options);c=it(o)?o:new Qt(o)}catch(e){const o=e instanceof Error?e.message:String(e);r(n??t,"TAG_RESOLVE_FAILED",o),c=new Qt(i)}return c.range=s,c.source=i,o&&(c.type=o),l&&(c.tag=l),u.format&&(c.format=u.format),a&&(c.comment=a),c}function zr(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===n?.type;)e+=n.source.length,n=t[++r];break}}return e}const Wr={composeNode:Nr,composeEmptyNode:Lr};function Nr(e,t,n,r){const{spaceBefore:i,comment:o,anchor:a,tag:s}=n;let l,u=!0;switch(t.type){case"alias":l=function({options:e},{offset:t,source:n,end:r},i){const o=new Ct(n.substring(1));""===o.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=t+n.length,s=Er(r,a,e.strict,i);return o.range=[t,a,s.offset],s.comment&&(o.comment=s.comment),o}(e,t,r),(a||s)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=Ir(e,t,s,r),a&&(l.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=function(e,t,n,r,i){const o=r?t.directives.tagName(r.source,(e=>i(r,"TAG_RESOLVE_FAILED",e))):null,a="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!r||!o||"!"===o||o===pn.tagName&&"map"===a||o===gn.tagName&&"seq"===a||!a)return $r(e,t,n,i,o);let s=t.schema.tags.find((e=>e.tag===o&&e.collection===a));if(!s){const l=t.schema.knownTags[o];if(!l||l.collection!==a)return l?.collection?i(r,"BAD_COLLECTION_TYPE",`${l.tag} used for ${a} collection, but expects ${l.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),$r(e,t,n,i,o);t.schema.tags.push(Object.assign({},l,{default:!1})),s=l}const l=$r(e,t,n,i,o,s),u=s.resolve?.(l,(e=>i(r,"TAG_RESOLVE_FAILED",e)),t.options)??l,c=st(u)?u:new Qt(u);return c.range=l.range,c.tag=o,s?.format&&(c.format=s.format),c}(Wr,e,t,s,r),a&&(l.anchor=a.source.substring(1));break;default:r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),l=Lr(e,t.offset,void 0,null,n,r),u=!1}return a&&""===l.anchor&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(l.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function Lr(e,t,n,r,{spaceBefore:i,comment:o,anchor:a,tag:s,end:l},u){const c=Ir(e,{type:"scalar",offset:zr(t,n,r),indent:-1,source:""},s,u);return a&&(c.anchor=a.source.substring(1),""===c.anchor&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),o&&(c.comment=o,c.range[2]=l),c}function Fr(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function Ur(e){let t="",n=!1,r=!1;for(let i=0;i{const i=Fr(e);r?this.warnings.push(new br(i,t,n)):this.errors.push(new yr(i,t,n))},this.directives=new wt({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=Ur(this.prelude);if(n){const i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(at(i)&&!i.flow&&i.items.length>0){let e=i.items[0];rt(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ur(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const i=Fr(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:r,value:i,end:o},a){const s=Object.assign({_directives:t},e),l=new gr(void 0,s),u={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},c=kr(r,{indicator:"doc-start",next:i??o?.[0],offset:n,onError:a,startOnNewline:!0});c.found&&(l.directives.docStart=!0,!i||"block-map"!==i.type&&"block-seq"!==i.type||c.hasNewline||a(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?Nr(u,i,c,a):Lr(u,c.end,r,null,c,a);const d=l.contents.range[2],f=Er(o,d,!1,a);return f.comment&&(l.comment=f.comment),l.range=[n,d,f.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new yr(Fr(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new yr(Fr(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=Er(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new yr(Fr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),n=new gr(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}function qr(e,t=!0,n){if(e){const r=(e,t,r)=>{const i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!n)throw new yr([i,i+1],t,r);n(i,t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Rr(e,t,r);case"block-scalar":return Qr(e,t,r)}}return null}function Br(e,t){const{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:o=-1,type:a="PLAIN"}=t,s=Kt({type:a,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(s[0]){case"|":case">":{const e=s.indexOf("\n"),t=s.substring(0,e),n=s.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:o,indent:r,source:t}];return Yr(i,l)||i.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:o,indent:r,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:o,indent:r,source:s,end:l};case"'":return{type:"single-quoted-scalar",offset:o,indent:r,source:s,end:l};default:return{type:"scalar",offset:o,indent:r,source:s,end:l}}}function Vr(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:o=!1,type:a}=n,s="indent"in e?e.indent:null;if(r&&"number"==typeof s&&(s+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");a=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const l=Kt({type:a,value:t},{implicitKey:i||null===s,indent:null!==s&&s>0?" ".repeat(s):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){const n=t.indexOf("\n"),r=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=r,e.source=i}else{const{offset:t}=e,n="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:t,indent:n,source:r}];Yr(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:n,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:o,source:i})}}(e,l);break;case'"':Zr(e,l,"double-quoted-scalar");break;case"'":Zr(e,l,"single-quoted-scalar");break;default:Zr(e,l,"scalar")}}function Yr(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function Zr(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let i=t.length;"block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length);for(const e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}const Gr=e=>"type"in e?Hr(e):Kr(e);function Hr(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Hr(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Kr(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Kr(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Kr(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function Kr({start:e,key:t,sep:n,value:r}){let i="";for(const t of e)i+=t.source;if(t&&(i+=Hr(t)),n)for(const e of n)i+=e.source;return r&&(i+=Hr(r)),i}const Jr=Symbol("break visit"),ei=Symbol("skip children"),ti=Symbol("remove item");function ni(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),ri(Object.freeze([]),e,t)}function ri(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},ni.parentCollection=(e,t)=>{const n=ni.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};const ii="\ufeff",oi="",ai="",si="",li=e=>!!e&&"items"in e,ui=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function ci(e){switch(e){case ii:return"";case oi:return"";case ai:return"";case si:return"";default:return JSON.stringify(e)}}function di(e){switch(e){case ii:return"byte-order-mark";case oi:return"doc-mode";case ai:return"flow-error-end";case si:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function fi(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const hi="0123456789ABCDEFabcdef".split(""),pi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),mi=",[]{}".split(""),gi=" ,[]{}\n\r\t".split(""),vi=e=>!e||gi.includes(e);class Oi{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&fi(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&ethis.indentValue&&!fi(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&fi(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(vi),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>fi(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const i=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>i))break;t=e}return yield si,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(fi(t)||e&&","===t)break;n=r}else if(fi(t)){let i=this.buffer[r+1];if("\r"===t&&("\n"===i?(r+=1,t="\n",i=this.buffer[r+1]):n=r),"#"===i||e&&mi.includes(i))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&mi.includes(t))break;n=r}return t||this.atEnd?(yield si,yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(vi))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(fi(t)||e&&mi.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!fi(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(pi.includes(t))t=this.buffer[++e];else{if("%"!==t||!hi.includes(this.buffer[e+1])||!hi.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class yi{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function Si(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||bi(t.start,"explicit-key-ind")||bi(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,ki(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Pi{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Oi,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=di(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&Si(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!bi(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===wi(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep;let r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||bi(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(bi(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(bi(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(ki(t.key)&&!bi(t.sep,"newline")){const e=_i(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(bi(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=_i(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):bi(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:r,key:i,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(i):(Object.assign(t,{key:i,sep:[]}),this.onKeyLine=!0))}default:{const i=this.startBlockValue(e);if(i)return n&&"block-seq"!==i.type&&bi(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(i)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||bi(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=_i(xi(t));Si(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=_i(xi(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=_i(xi(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function Ei(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new yi||null,prettyErrors:t}}function Ci(e,t={}){const{lineCounter:n,prettyErrors:r}=Ei(t),i=new Pi(n?.addNewLine),o=new Xr(t),a=Array.from(o.compose(i.parse(e)));if(r&&n)for(const t of a)t.errors.forEach(wr(e,n)),t.warnings.forEach(wr(e,n));return a.length>0?a:Object.assign([],{empty:!0},o.streamInfo())}function Ti(e,t={}){const{lineCounter:n,prettyErrors:r}=Ei(t),i=new Pi(n?.addNewLine),o=new Xr(t);let a=null;for(const t of o.compose(i.parse(e),!0,e.length))if(a){if("silent"!==a.options.logLevel){a.errors.push(new yr(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else a=t;return r&&n&&(a.errors.forEach(wr(e,n)),a.warnings.forEach(wr(e,n))),a}function $i(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const i=Ti(e,n);if(!i)return null;if(i.warnings.forEach((e=>nn(i.options.logLevel,e))),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function Qi(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){const e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=n??t??{};if(!e)return}return new gr(e,r,n).toString(n)}const Ri=t;function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ji(e){for(var t=1;t{if(Ie(e.key)){var r,i;const o=null!==(r=null===(i=e.key)||void 0===i?void 0:i.toString())&&void 0!==r?r:"",a=n?`${n}.${o}`:o;if(st(e.key)&&t[a]){const n=t[a].split("\\n").join("\n ");e.key.commentBefore=` ${n}`}nt(e.value)&&Mi(e.value.items,t,a)}}))}const Ii=new class extends Ue{constructor(...e){super(...e),Di(this,"name","yaml")}fromFile(e,t){var n,r,i,o,a,s,l,u;return e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3)),Ri.parse(e,ji(ji(ji(ji({},null!==(n=null===(r=t.yaml)||void 0===r?void 0:r.parseOptions)&&void 0!==n?n:{}),null!==(i=null===(o=t.yaml)||void 0===o?void 0:o.documentOptions)&&void 0!==i?i:{}),null!==(a=null===(s=t.yaml)||void 0===s?void 0:s.schemaOptions)&&void 0!==a?a:{}),null!==(l=null===(u=t.yaml)||void 0===u?void 0:u.toJsOptions)&&void 0!==l?l:{}))}toFile(e,t,n=[],r={}){var i,o,a,s,l,u,c,d,f,h,p;const m=new Ri.Document(ji(ji(ji(ji({aliasDuplicateObjects:!1},null!==(i=null===(o=t.yaml)||void 0===o?void 0:o.documentOptions)&&void 0!==i?i:{}),null!==(a=null===(s=t.yaml)||void 0===s?void 0:s.schemaOptions)&&void 0!==a?a:{}),null!==(l=null===(u=t.yaml)||void 0===u?void 0:u.parseOptions)&&void 0!==l?l:{}),null!==(c=null===(d=t.yaml)||void 0===d?void 0:d.createNodeOptions)&&void 0!==c?c:{})),g=m.createNode(e,ji({aliasDuplicateObjects:!1},null!==(f=null===(h=t.yaml)||void 0===h?void 0:h.createNodeOptions)&&void 0!==f?f:{}));return Mi(g.items,r),g.items.sort(function(e,t=(e=>e)){return(n,r)=>{const i=e.indexOf(t(n)),o=e.indexOf(t(r));return-1===i||-1===o?0:i>o?1:i{var t;return null===(t=e.key)||void 0===t?void 0:t.toString()}))),m.contents=g,m.toString(null===(p=t.yaml)||void 0===p?void 0:p.toStringOptions)}};var zi=__webpack_require__(32388),Wi=__webpack_require__.n(zi);const Ni=["body"];function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t({toml:{parse:e=>Be.fromFile(e),stringify:e=>Be.toFile(e)},json:{parse:e=>{let t=e.trim();return"{"!==t.slice(0,1)&&(t="{"+t+"}"),Xe.fromFile(t)},stringify:e=>{let t=Xe.toFile(e).trim();return"{"===t.slice(0,1)&&"}"===t.slice(-1)&&(t=t.slice(1,-1)),t}},yaml:{parse:t=>Ii.fromFile(t,e),stringify:(t,n)=>{const{sortedKeys:r,comments:i}=n||{};return Ii.toFile(t,e,r,i)}}});function Bi(e,t){if(!e)return;const n={yaml:{language:Xi.YAML,delimiters:"---"},toml:{language:Xi.TOML,delimiters:"+++"},json:{language:Xi.JSON,delimiters:["{","}"]}},{language:r,delimiters:i}=n[e];return{language:r,delimiters:t||i}}class Vi extends Ue{constructor(e,t){super(),Ui(this,"name","formatter"),Ui(this,"format",void 0),this.format=Bi(e,t)}fromFile(e,t){const n=this.format||function(e){const t=e.indexOf("\n"),n=e.slice(0,-1!==t?t:0).trim();if(!(n.length>3&&"---"===n.slice(0,3)))switch(n){case"---":return Bi(Xi.YAML);case"+++":return Bi(Xi.TOML);case"{":return Bi(Xi.JSON);default:console.warn("[StaticCMS] Unrecognized front-matter format.")}}(e),r=Wi()(e,Fi({engines:qi(t)},n));return Fi(Fi({},r.data),r.content.trim()&&{body:r.content})}toFile(e,t,n,r){const{body:i=""}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rn(e)?e:t}function So(e,t){const{replacement:n="",encoding:r="unicode"}=t||{};if(!fo()(e))throw new Error("The input slug must be a string.");if(!fo()(n))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(_o(r,n)).join("")}function Po(e,t){const{encoding:n="unicode",sanitize_replacement:r=""}=t||{};return _o(n,r)(e)}function Eo(e,t){if(!fo()(e))throw new Error("The input slug must be a string.");const{encoding:n,clean_accents:r,sanitize_replacement:i}=t||{},o=uo()([...r?[oo.Od]:[],po()(So,{replacement:i,encoding:n}),po()(Oo(),{replacement:i})])(e),a=new RegExp(`(?:${so()(i)})+`,"g"),s=new RegExp(`${so()(i)}$`),l=new RegExp(`^${so()(i)}`);return o.replace(a,i).replace(l,"").replace(s,"")}function Co(e,...t){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r0&&(i=i.replace(/^[\/]+/,"")),i=r0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}(go()(e,"/"),...t.map((e=>go()(e,"/"))))}const To=["title","path"],$o=["title","date","author","description"],Qo={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>c.createElement("h1",null,e),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>c.createElement("h2",null,e),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>c.createElement("strong",null,e),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo","cover_image","cover-image","coverimage"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}},Ro={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ao=(e,t,n)=>{let r;const i=Ro[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function jo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Do={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Mo={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Io=(e,t,n,r)=>Mo[e];function zo(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Wo={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:zo({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function No(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let t=0;t{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return a=n.valueCallback?n.valueCallback(a):a,{value:a,rest:t.slice(i.length)}}}const Fo={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Uo={code:"en-US",formatDistance:Ao,formatLong:Do,formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Xo={};function qo(){return Xo}Math.pow(10,8);const Bo=6048e5,Vo=864e5,Yo=6e4,Zo=36e5;function Go(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Ho(e){const t=Go(e);return t.setHours(0,0,0,0),t}function Ko(e){const t=Go(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Jo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ea(e){const t=Go(e),n=Jo(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ta(e){const t=Go(e);return function(e,t){const n=Ho(e),r=Ho(t),i=+n-Ko(n),o=+r-Ko(r);return Math.round((i-o)/Vo)}(t,ea(t))+1}function na(e,t){const n=qo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Go(e),o=i.getDay(),a=(o=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function oa(e){const t=Go(e),n=+ra(t)-+function(e){const t=ia(e),n=Jo(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ra(n)}(t);return Math.round(n/Bo)+1}function aa(e,t){const n=Go(e),r=n.getFullYear(),i=qo(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=Jo(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=na(a,t),l=Jo(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=na(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function sa(e,t){const n=Go(e),r=+na(n,t)-+function(e,t){const n=qo(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=aa(e,t),o=Jo(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),na(o,t)}(n,t);return Math.round(r/Bo)+1}function la(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const ua={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return la("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):la(n+1,2)},d:(e,t)=>la(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>la(e.getHours()%12||12,t.length),H:(e,t)=>la(e.getHours(),t.length),m:(e,t)=>la(e.getMinutes(),t.length),s:(e,t)=>la(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return la(Math.trunc(r*Math.pow(10,n-3)),t.length)}},ca={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return ua.y(e,t)},Y:function(e,t,n,r){const i=aa(e,r),o=i>0?i:1-i;return"YY"===t?la(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):la(o,t.length)},R:function(e,t){return la(ia(e),t.length)},u:function(e,t){return la(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return la(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return la(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ua.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return la(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=sa(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):la(i,t.length)},I:function(e,t,n){const r=oa(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):la(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):ua.d(e,t)},D:function(e,t,n){const r=ta(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):la(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return la(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return la(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return la(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return ua.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):ua.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):la(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):la(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ua.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ua.s(e,t)},S:function(e,t){return ua.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return fa(r);case"XXXX":case"XX":return ha(r);default:return ha(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return fa(r);case"xxxx":case"xx":return ha(r);default:return ha(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+da(r,":");default:return"GMT"+ha(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+da(r,":");default:return"GMT"+ha(r,":")}},t:function(e,t,n){return la(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return la(e.getTime(),t.length)}};function da(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+la(o,2)}function fa(e,t){return e%60==0?(e>0?"-":"+")+la(Math.abs(e)/60,2):ha(e,t)}function ha(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+la(Math.trunc(r/60),2)+t+la(r%60,2)}const pa=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ma=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ga={p:ma,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pa(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",pa(r,t)).replace("{{time}}",ma(i,t))}},va=/^D+$/,Oa=/^Y+$/,ya=["D","DD","YY","YYYY"];function ba(e){return va.test(e)}function wa(e){return Oa.test(e)}function ka(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ya.includes(e))throw new RangeError(r)}function xa(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=Go(e);return!isNaN(Number(n))}const _a=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pa=/^'([^]*?)'?$/,Ea=/''/g,Ca=/[a-zA-Z]/;function Ta(e,t,n){const r=qo(),i=n?.locale??r.locale??Uo,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Go(e);if(!xa(s))throw new RangeError("Invalid time value");let l=t.match(Sa).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,ga[t])(e,i.formatLong):e})).join("").match(_a).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:$a(e)};if(ca[t])return{isToken:!0,value:e};if(t.match(Ca))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;return(!n?.useAdditionalWeekYearTokens&&wa(o)||!n?.useAdditionalDayOfYearTokens&&ba(o))&&ka(o,t,String(e)),(0,ca[o[0]])(s,o,i.localize,u)})).join("")}function $a(e){const t=e.match(Pa);return t?t[1].replace(Ea,"'"):e}class Qa{subPriority=0;validate(e,t){return!0}}class Ra extends Qa{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class Aa extends Qa{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:Jo(e,function(e,t){const n=t instanceof Date?Jo(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,Date))}}class ja{run(e,t,n,r){const i=this.parse(e,t,n,r);return i?{setter:new Ra(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}const Da={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ma=/^([+-])(\d{2})(\d{2})?|Z/,Ia=/^([+-])(\d{2})(\d{2})|Z/,za=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wa=/^([+-])(\d{2}):(\d{2})|Z/,Na=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function La(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Fa(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ua(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*Zo+o*Yo+1e3*a),rest:t.slice(n[0].length)}}function Xa(e){return Fa(Da.anyDigitsSigned,e)}function qa(e,t){switch(e){case 1:return Fa(Da.singleDigit,t);case 2:return Fa(Da.twoDigits,t);case 3:return Fa(Da.threeDigits,t);case 4:return Fa(Da.fourDigits,t);default:return Fa(new RegExp("^\\d{1,"+e+"}"),t)}}function Ba(e,t){switch(e){case 1:return Fa(Da.singleDigitSigned,t);case 2:return Fa(Da.twoDigitsSigned,t);case 3:return Fa(Da.threeDigitsSigned,t);case 4:return Fa(Da.fourDigitsSigned,t);default:return Fa(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Va(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ya(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i}function Za(e){return e%400==0||e%4==0&&e%100!=0}const Ga=[31,28,31,30,31,30,31,31,30,31,30,31],Ha=[31,29,31,30,31,30,31,31,30,31,30,31];function Ka(e,t){const n=Go(e);return isNaN(t)?Jo(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Ja(e,t,n){const r=qo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Go(e),a=o.getDay(),s=7-i;return Ka(o,t<0||t>6?t-(a+s)%7:((t%7+7)%7+s)%7-(a+s)%7)}function es(e,t){const n=Go(e);return Ka(n,t-function(e){let t=Go(e).getDay();return 0===t&&(t=7),t}(n))}const ts={G:new class extends ja{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends ja{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return La(qa(4,e),r);case"yo":return La(n.ordinalNumber(e,{unit:"year"}),r);default:return La(qa(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=Ya(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},Y:new class extends ja{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return La(qa(4,e),r);case"Yo":return La(n.ordinalNumber(e,{unit:"year"}),r);default:return La(qa(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const i=aa(e,r);if(n.isTwoDigitYear){const t=Ya(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),na(e,r)}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),na(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends ja{priority=130;parse(e,t){return Ba("R"===t?4:t.length,e)}set(e,t,n){const r=Jo(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ra(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends ja{priority=130;parse(e,t){return Ba("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends ja{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return qa(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends ja{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return qa(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends ja{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return La(Fa(Da.month,e),r);case"MM":return La(qa(2,e),r);case"Mo":return La(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends ja{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return La(Fa(Da.month,e),r);case"LL":return La(qa(2,e),r);case"Lo":return La(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends ja{priority=100;parse(e,t,n){switch(t){case"w":return Fa(Da.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return qa(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return na(function(e,t,n){const r=Go(e),i=sa(r,n)-t;return r.setDate(r.getDate()-7*i),r}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends ja{priority=100;parse(e,t,n){switch(t){case"I":return Fa(Da.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return qa(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return ra(function(e,t){const n=Go(e),r=oa(n)-t;return n.setDate(n.getDate()-7*r),n}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends ja{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Fa(Da.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return qa(t.length,e)}}validate(e,t){const n=Za(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=Ha[r]:t>=1&&t<=Ga[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends ja{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Fa(Da.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return qa(t.length,e)}}validate(e,t){return Za(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends ja{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ja(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends ja{priority=90;parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return La(qa(t.length,e),i);case"eo":return La(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ja(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends ja{priority=90;parse(e,t,n,r){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return La(qa(t.length,e),i);case"co":return La(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=Ja(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends ja{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return qa(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return La(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return La(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return La(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return La(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=es(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends ja{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Va(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends ja{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Va(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends ja{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Va(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends ja{priority=70;parse(e,t,n){switch(t){case"h":return Fa(Da.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return qa(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends ja{priority=70;parse(e,t,n){switch(t){case"H":return Fa(Da.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return qa(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends ja{priority=70;parse(e,t,n){switch(t){case"K":return Fa(Da.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return qa(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends ja{priority=70;parse(e,t,n){switch(t){case"k":return Fa(Da.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return qa(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends ja{priority=60;parse(e,t,n){switch(t){case"m":return Fa(Da.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return qa(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends ja{priority=50;parse(e,t,n){switch(t){case"s":return Fa(Da.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return qa(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends ja{priority=30;parse(e,t){return La(qa(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends ja{priority=10;parse(e,t){switch(t){case"X":return Ua(Ma,e);case"XX":return Ua(Ia,e);case"XXXX":return Ua(za,e);case"XXXXX":return Ua(Na,e);default:return Ua(Wa,e)}}set(e,t,n){return t.timestampIsSet?e:Jo(e,e.getTime()-Ko(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends ja{priority=10;parse(e,t){switch(t){case"x":return Ua(Ma,e);case"xx":return Ua(Ia,e);case"xxxx":return Ua(za,e);case"xxxxx":return Ua(Na,e);default:return Ua(Wa,e)}}set(e,t,n){return t.timestampIsSet?e:Jo(e,e.getTime()-Ko(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends ja{priority=40;parse(e){return Xa(e)}set(e,t,n){return[Jo(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends ja{priority=20;parse(e){return Xa(e)}set(e,t,n){return[Jo(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},ns=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,is=/^'([^]*?)'?$/,os=/''/g,as=/\S/,ss=/[a-zA-Z]/;function ls(e,t,n,r){const i=Object.assign({},qo()),o=r?.locale??i.locale??Uo,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(""===t)return""===e?Go(n):Jo(n,NaN);const l={firstWeekContainsDate:a,weekStartsOn:s,locale:o},u=[new Aa],c=t.match(rs).map((e=>{const t=e[0];return t in ga?(0,ga[t])(e,o.formatLong):e})).join("").match(ns),d=[];for(let i of c){!r?.useAdditionalWeekYearTokens&&wa(i)&&ka(i,t,e),!r?.useAdditionalDayOfYearTokens&&ba(i)&&ka(i,t,e);const a=i[0],s=ts[a];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=d.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${i}\` at the same time`)}else if("*"===s.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${i}\` and any other token at the same time`);d.push({token:a,fullToken:i});const r=s.run(e,i,o.match,l);if(!r)return Jo(n,NaN);u.push(r.setter),e=r.rest}else{if(a.match(ss))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===i?i="'":"'"===a&&(i=i.match(is)[1].replace(os,"'")),0!==e.indexOf(i))return Jo(n,NaN);e=e.slice(i.length)}}if(e.length>0&&as.test(e))return Jo(n,NaN);const f=u.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>u.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let h=Go(n);if(isNaN(h.getTime()))return Jo(n,NaN);const p={};for(const e of f){if(!e.validate(h,l))return Jo(n,NaN);const t=e.set(h,p,l);Array.isArray(t)?(h=t[0],Object.assign(p,t[1])):h=t}return Jo(n,h)}var us=__webpack_require__(70492),cs=__webpack_require__.n(us),ds=__webpack_require__(64702),fs=__webpack_require__.n(ds);const hs={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},ps={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ms={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'môre om' p",nextWeek:"eeee 'om' p",other:"P"},gs={ordinalNumber:e=>{const t=Number(e),n=t%100;if(n<20)switch(n){case 1:case 8:return t+"ste";default:return t+"de"}return t+"ste"},era:zo({values:{narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},defaultFormattingWidth:"wide"})},vs={ordinalNumber:Lo({matchPattern:/^(\d+)(ste|de)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},defaultParseWidth:"any"})},Os={code:"af",formatDistance:(e,t,n)=>{let r;const i=hs[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"oor "+r:r+" gelede":r},formatLong:ps,formatRelative:(e,t,n,r)=>ms[e],localize:gs,match:vs,options:{weekStartsOn:0,firstWeekContainsDate:1}},ys={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من ثانيتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانيتان",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتان",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريبا",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتان",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومان",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريبا",two:"أسبوعين تقريبا",threeToTen:"{{count}} أسابيع تقريبا",other:"{{count}} أسبوعا تقريبا"},xWeeks:{one:"أسبوع واحد",two:"أسبوعان",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوعا"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريبا",threeToTen:"{{count}} أشهر تقريبا",other:"{{count}} شهرا تقريباً"},xMonths:{one:"شهر واحد",two:"شهران",threeToTen:"{{count}} أشهر",other:"{{count}} شهرا"},aboutXYears:{one:"سنة واحدة تقريباً",two:"سنتين تقريبا",threeToTen:"{{count}} سنوات تقريباً",other:"{{count}} سنة تقريباً"},xYears:{one:"سنة واحد",two:"سنتان",threeToTen:"{{count}} سنوات",other:"{{count}} سنة"},overXYears:{one:"أكثر من سنة",two:"أكثر من سنتين",threeToTen:"أكثر من {{count}} سنوات",other:"أكثر من {{count}} سنة"},almostXYears:{one:"ما يقارب سنة واحدة",two:"ما يقارب سنتين",threeToTen:"ما يقارب {{count}} سنوات",other:"ما يقارب {{count}} سنة"}},bs={date:jo({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'عند الساعة' {{time}}",long:"{{date}} 'عند الساعة' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ws={lastWeek:"eeee 'الماضي عند الساعة' p",yesterday:"'الأمس عند الساعة' p",today:"'اليوم عند الساعة' p",tomorrow:"'غدا عند الساعة' p",nextWeek:"eeee 'القادم عند الساعة' p",other:"P"},ks={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"},abbreviated:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"},wide:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"},abbreviated:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"},wide:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"}},defaultFormattingWidth:"wide"})},xs={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:"wide",parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[أيفمسند]/,abbreviated:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^يناير/i,/^فبراير/i,/^مارس/i,/^أبريل/i,/^مايو/i,/^يونيو/i,/^يوليو/i,/^أغسطس/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/,any:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/منتصف الليل/,noon:/الظهر/,afternoon:/بعد الظهر/,morning:/في الصباح/,evening:/في المساء/,night:/في الليل/}},defaultParseWidth:"any"})},_s={code:"ar",formatDistance:(e,t,n)=>{const r=ys[e];let i;return i="string"==typeof r?r:1===t?r.one:2===t?r.two:t<=10?r.threeToTen.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"خلال "+i:"منذ "+i:i},formatLong:bs,formatRelative:e=>ws[e],localize:ks,match:xs,options:{weekStartsOn:6,firstWeekContainsDate:1}},Ss={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},Ps={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Es={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},Cs={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],abbreviated:["جانـ","فيفـ","مارس","أفريل","مايـ","جوانـ","جويـ","أوت","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},Ts={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>Number(e)+1}),month:No({matchPatterns:{narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},$s={code:"ar-DZ",formatDistance:(e,t,n)=>{n=n||{};const r=Ss[e];let i;return i="string"==typeof r?r:1===t?r.one:2===t?r.two:t<=10?r.threeToTen.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?"في خلال "+i:"منذ "+i:i},formatLong:Ps,formatRelative:(e,t,n,r)=>Es[e],localize:Cs,match:Ts,options:{weekStartsOn:0,firstWeekContainsDate:1}},Qs={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من ثانيتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية",two:"ثانيتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نص دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقايق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة",two:"دقيقتين",threeToTen:"{{count}} دقايق",other:"{{count}} دقيقة"},aboutXHours:{one:"حوالي ساعة",two:"حوالي ساعتين",threeToTen:"حوالي {{count}} ساعات",other:"حوالي {{count}} ساعة"},xHours:{one:"ساعة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"حوالي أسبوع",two:"حوالي أسبوعين",threeToTen:"حوالي {{count}} أسابيع",other:"حوالي {{count}} أسبوع"},xWeeks:{one:"أسبوع",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"حوالي شهر",two:"حوالي شهرين",threeToTen:"حوالي {{count}} أشهر",other:"حوالي {{count}} شهر"},xMonths:{one:"شهر",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"حوالي سنة",two:"حوالي سنتين",threeToTen:"حوالي {{count}} سنين",other:"حوالي {{count}} سنة"},xYears:{one:"عام",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من سنة",two:"أكثر من سنتين",threeToTen:"أكثر من {{count}} سنين",other:"أكثر من {{count}} سنة"},almostXYears:{one:"عام تقريبًا",two:"عامين تقريبًا",threeToTen:"{{count}} أعوام تقريبًا",other:"{{count}} عام تقريبًا"}},Rs={date:jo({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"dd/MMM/y",short:"d/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'الساعة' {{time}}",long:"{{date}} 'الساعة' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},As={lastWeek:"eeee 'اللي جاي الساعة' p",yesterday:"'إمبارح الساعة' p",today:"'النهاردة الساعة' p",tomorrow:"'بكرة الساعة' p",nextWeek:"eeee 'الساعة' p",other:"P"},js={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م","ب.م"],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",morning:"في الصباح",noon:"ظهراً",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},Ds={ordinalNumber:Lo({matchPattern:/^(\d+)/,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(ق|ب)/g,abbreviated:/^(ق.م|ب.م)/g,wide:/^(قبل الميلاد|بعد الميلاد)/g},defaultMatchWidth:"wide",parsePatterns:{any:[/^ق/g,/^ب/g]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/,abbreviated:/^ر[1234]/,wide:/^الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{wide:[/الربع الأول/,/الربع الثاني/,/الربع الثالث/,/الربع الرابع/],any:[/1/,/2/,/3/,/4/]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ي|ف|م|أ|س|ن|د)/,abbreviated:/^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/,/^ف/,/^م/,/^أ/,/^م/,/^ي/,/^ي/,/^أ/,/^س/,/^أ/,/^ن/,/^د/],any:[/^ينا/,/^فبر/,/^مارس/,/^أبريل/,/^مايو/,/^يون/,/^يول/,/^أغس/,/^سبت/,/^أكت/,/^نوف/,/^ديس/]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ح|ن|ث|ر|خ|ج|س)/,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/,/^ن/,/^ث/,/^ر/,/^خ/,/^ج/,/^س/],any:[/أحد/,/اثنين/,/ثلاثاء/,/أربعاء/,/خميس/,/جمعة/,/سبت/]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/,abbreviated:/^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/,wide:/^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/,any:/^(ص|م|صباح|ظهر|مساء|ليل)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/^ن/,noon:/^ظ/,morning:/^ص/,afternoon:/^بعد/,evening:/^م/,night:/^ل/}},defaultParseWidth:"any"})},Ms={code:"ar-EG",formatDistance:(e,t,n)=>{let r;const i=Qs[e];return r="string"==typeof i?i:1===t?i.one:2===t?i.two:t<=10?i.threeToTen.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`في خلال ${r}`:`منذ ${r}`:r},formatLong:Rs,formatRelative:(e,t,n,r)=>As[e],localize:js,match:Ds,options:{weekStartsOn:0,firstWeekContainsDate:1}},Is={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},zs={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ws={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},Ns={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["ي","ف","م","أ","م","ي","ي","غ","ش","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","ماي","يونـ","يولـ","غشت","شتنـ","أكتـ","نونـ","دجنـ"],wide:["يناير","فبراير","مارس","أبريل","ماي","يونيو","يوليوز","غشت","شتنبر","أكتوبر","نونبر","دجنبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},Ls={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>Number(e)+1}),month:No({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^غ/i,/^ش/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^فب/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^غشت/i,/^ش/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الإثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^إث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Fs={code:"ar-MA",formatDistance:(e,t,n)=>{n=n||{};const r=Is[e];let i;return i="string"==typeof r?r:1===t?r.one:2===t?r.two:t<=10?r.threeToTen.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?"في خلال "+i:"منذ "+i:i},formatLong:zs,formatRelative:(e,t,n,r)=>Ws[e],localize:Ns,match:Ls,options:{weekStartsOn:1,firstWeekContainsDate:1}},Us={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},Xs={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qs={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},Bs={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},Vs={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Ys={code:"ar-SA",formatDistance:(e,t,n)=>{let r;const i=Us[e];return r="string"==typeof i?i:1===t?i.one:2===t?i.two:t<=10?i.threeToTen.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"في خلال "+r:"منذ "+r:r},formatLong:Xs,formatRelative:(e,t,n,r)=>qs[e],localize:Bs,match:Vs,options:{weekStartsOn:0,firstWeekContainsDate:1}},Zs={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من زوز ثواني",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية",two:"زوز ثواني",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نص دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقايق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة",two:"دقيقتين",threeToTen:"{{count}} دقايق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة تقريب",two:"ساعتين تقريب",threeToTen:"{{count}} سوايع تقريب",other:"{{count}} ساعة تقريب"},xHours:{one:"ساعة",two:"ساعتين",threeToTen:"{{count}} سوايع",other:"{{count}} ساعة"},xDays:{one:"نهار",two:"نهارين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"جمعة تقريب",two:"جمعتين تقريب",threeToTen:"{{count}} جماع تقريب",other:"{{count}} جمعة تقريب"},xWeeks:{one:"جمعة",two:"جمعتين",threeToTen:"{{count}} جماع",other:"{{count}} جمعة"},aboutXMonths:{one:"شهر تقريب",two:"شهرين تقريب",threeToTen:"{{count}} أشهرة تقريب",other:"{{count}} شهر تقريب"},xMonths:{one:"شهر",two:"شهرين",threeToTen:"{{count}} أشهرة",other:"{{count}} شهر"},aboutXYears:{one:"عام تقريب",two:"عامين تقريب",threeToTen:"{{count}} أعوام تقريب",other:"{{count}} عام تقريب"},xYears:{one:"عام",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام تقريب",two:"عامين تقريب",threeToTen:"{{count}} أعوام تقريب",other:"{{count}} عام تقريب"}},Gs={date:jo({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'مع' {{time}}",long:"{{date}} 'مع' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Hs={lastWeek:"eeee 'إلي فات مع' p",yesterday:"'البارح مع' p",today:"'اليوم مع' p",tomorrow:"'غدوة مع' p",nextWeek:"eeee 'الجمعة الجاية مع' p 'نهار'",other:"P"},Ks={ordinalNumber:e=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["د","ن","أ","س","أ","ج","ج","م","أ","م","ف","ج"],abbreviated:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"},abbreviated:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"},wide:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"},abbreviated:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"},wide:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"}},defaultFormattingWidth:"wide"})},Js={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:"wide",parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[جفمأسند]/,abbreviated:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جانفي/i,/^فيفري/i,/^مارس/i,/^أفريل/i,/^ماي/i,/^جوان/i,/^جويلية/i,/^أوت/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/,any:/^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^ع/,midnight:/نص الليل/,noon:/قايلة/,afternoon:/بعد القايلة/,morning:/صباح/,evening:/عشية/,night:/ليل/}},defaultParseWidth:"any"})},el={code:"ar-TN",formatDistance:(e,t,n)=>{const r=Zs[e];let i;return i="string"==typeof r?r:1===t?r.one:2===t?r.two:t<=10?r.threeToTen.replace("{{count}}",String(t)):r.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"في "+i:"عندو "+i:i},formatLong:Gs,formatRelative:e=>Hs[e],localize:Ks,match:Js,options:{weekStartsOn:1,firstWeekContainsDate:1}},tl={lessThanXSeconds:{one:"bir saniyədən az",other:"{{count}} bir saniyədən az"},xSeconds:{one:"1 saniyə",other:"{{count}} saniyə"},halfAMinute:"yarım dəqiqə",lessThanXMinutes:{one:"bir dəqiqədən az",other:"{{count}} bir dəqiqədən az"},xMinutes:{one:"bir dəqiqə",other:"{{count}} dəqiqə"},aboutXHours:{one:"təxminən 1 saat",other:"təxminən {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"təxminən 1 həftə",other:"təxminən {{count}} həftə"},xWeeks:{one:"1 həftə",other:"{{count}} həftə"},aboutXMonths:{one:"təxminən 1 ay",other:"təxminən {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"təxminən 1 il",other:"təxminən {{count}} il"},xYears:{one:"1 il",other:"{{count}} il"},overXYears:{one:"1 ildən çox",other:"{{count}} ildən çox"},almostXYears:{one:"demək olar ki 1 il",other:"demək olar ki {{count}} il"}},nl={date:jo({formats:{full:"EEEE, do MMMM y 'il'",long:"do MMMM y 'il'",medium:"d MMM y 'il'",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}} - 'də'",long:"{{date}} {{time}} - 'də'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rl={lastWeek:"'sonuncu' eeee p -'də'",yesterday:"'dünən' p -'də'",today:"'bugün' p -'də'",tomorrow:"'sabah' p -'də'",nextWeek:"eeee p -'də'",other:"P"},il={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},ol={ordinalNumber:(e,t)=>{const n=Number(e),r=(e=>{if(0===e)return e+"-ıncı";const t=e%10,n=e%100-t,r=e>=100?100:null;return il[t]?il[t]:il[n]?il[n]:null!==r?il[r]:""})(n);return n+r},era:zo({values:{narrow:["e.ə","b.e"],abbreviated:["e.ə","b.e"],wide:["eramızdan əvvəl","bizim era"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ci kvartal","2ci kvartal","3cü kvartal","4cü kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Y","F","M","A","M","İ","İ","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","İyun","İyul","Avq","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},defaultWidth:"wide"}),day:zo({values:{narrow:["B.","B.e","Ç.a","Ç.","C.a","C.","Ş."],short:["B.","B.e","Ç.a","Ç.","C.a","C.","Ş."],abbreviated:["Baz","Baz.e","Çər.a","Çər","Cüm.a","Cüm","Şə"],wide:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},abbreviated:{am:"AM",pm:"PM",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},wide:{am:"a.m.",pm:"p.m.",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},abbreviated:{am:"AM",pm:"PM",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},wide:{am:"a.m.",pm:"p.m.",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"}},defaultFormattingWidth:"wide"})},al={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(b|a)$/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i,wide:/^(bizim eradan əvvəl|bizim era)$/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b$/i,/^(a|c)$/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]$/i,abbreviated:/^K[1234]$/i,wide:/^[1234](ci)? kvartal$/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[(?-i)yfmaisond]$/i,abbreviated:/^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i,wide:/^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^[(?-i)y]$/i,/^[(?-i)f]$/i,/^[(?-i)m]$/i,/^[(?-i)a]$/i,/^[(?-i)m]$/i,/^[(?-i)i]$/i,/^[(?-i)i]$/i,/^[(?-i)a]$/i,/^[(?-i)s]$/i,/^[(?-i)o]$/i,/^[(?-i)n]$/i,/^[(?-i)d]$/i],abbreviated:[/^Yan$/i,/^Fev$/i,/^Mar$/i,/^Apr$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avg$/i,/^Sen$/i,/^Okt$/i,/^Noy$/i,/^Dek$/i],wide:[/^Yanvar$/i,/^Fevral$/i,/^Mart$/i,/^Aprel$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avgust$/i,/^Sentyabr$/i,/^Oktyabr$/i,/^Noyabr$/i,/^Dekabr$/i]},defaultParseWidth:"narrow"}),day:No({matchPatterns:{narrow:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,short:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,abbreviated:/^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i,wide:/^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i],abbreviated:[/^Baz$/i,/^Baz\.e$/i,/^Çər\.a$/i,/^Çər$/i,/^Cüm\.a$/i,/^Cüm$/i,/^Şə$/i],wide:[/^Bazar$/i,/^Bazar ertəsi$/i,/^Çərşənbə axşamı$/i,/^Çərşənbə$/i,/^Cümə axşamı$/i,/^Cümə$/i,/^Şənbə$/i],any:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i,any:/^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a$/i,pm:/^p$/i,midnight:/^gecəyarı$/i,noon:/^gün$/i,morning:/səhər$/i,afternoon:/gündüz$/i,evening:/axşam$/i,night:/gecə$/i}},defaultParseWidth:"any"})},sl={code:"az",formatDistance:(e,t,n)=>{let r;const i=tl[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" əvvəl":r},formatLong:nl,formatRelative:(e,t,n,r)=>rl[e],localize:ol,match:al,options:{weekStartsOn:1,firstWeekContainsDate:1}};function ll(e,t){if(void 0!==e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function ul(e){return(t,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?ll(e.future,t):"праз "+ll(e.regular,t):e.past?ll(e.past,t):ll(e.regular,t)+" таму":ll(e.regular,t)}const cl={lessThanXSeconds:ul({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:ul({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны",lessThanXMinutes:ul({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:ul({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:ul({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:ul({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:ul({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:ul({regular:{singularNominative:"каля {{count}} тыдні",singularGenitive:"каля {{count}} тыдняў",pluralGenitive:"каля {{count}} тыдняў"},future:{singularNominative:"прыблізна праз {{count}} тыдзень",singularGenitive:"прыблізна праз {{count}} тыдні",pluralGenitive:"прыблізна праз {{count}} тыдняў"}}),xWeeks:ul({regular:{singularNominative:"{{count}} тыдзень",singularGenitive:"{{count}} тыдні",pluralGenitive:"{{count}} тыдняў"}}),aboutXMonths:ul({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:ul({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:ul({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:ul({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:ul({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:ul({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},dl={date:jo({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})};function fl(e,t,n){return+na(e,n)==+na(t,n)}const hl=["нядзелю","панядзелак","аўторак","сераду","чацвер","пятніцу","суботу"];function pl(e){return"'у "+hl[e]+" а' p"}const ml={lastWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?pl(i):function(e){const t=hl[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}(i)},yesterday:"'учора а' p",today:"'сёння а' p",tomorrow:"'заўтра а' p",nextWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?pl(i):function(e){const t=hl[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}(i)},other:"P"},gl={ordinalNumber:(e,t)=>{const n=String(t?.unit),r=Number(e);let i;return i="date"===n?"-га":"hour"===n||"minute"===n||"second"===n?"-я":r%10!=2&&r%10!=3||r%100==12||r%100==13?"-ы":"-і",r+i},era:zo({values:{narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","май","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзень","люты","сакавік","красавік","май","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","мая","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чац","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},defaultFormattingWidth:"wide"})},vl={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},Ol={code:"be",formatDistance:(e,t,n)=>(n=n||{},cl[e](t,n)),formatLong:dl,formatRelative:(e,t,n,r)=>{const i=ml[e];return"function"==typeof i?i(t,n,r):i},localize:gl,match:vl,options:{weekStartsOn:1,firstWeekContainsDate:1}};function yl(e,t){if(void 0!==e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function bl(e){return(t,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?yl(e.future,t):"праз "+yl(e.regular,t):e.past?yl(e.past,t):yl(e.regular,t)+" таму":yl(e.regular,t)}const wl={lessThanXSeconds:bl({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:bl({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны",lessThanXMinutes:bl({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:bl({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:bl({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:bl({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:bl({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:bl({regular:{singularNominative:"каля {{count}} тыдні",singularGenitive:"каля {{count}} тыдняў",pluralGenitive:"каля {{count}} тыдняў"},future:{singularNominative:"прыблізна праз {{count}} тыдзень",singularGenitive:"прыблізна праз {{count}} тыдні",pluralGenitive:"прыблізна праз {{count}} тыдняў"}}),xWeeks:bl({regular:{singularNominative:"{{count}} тыдзень",singularGenitive:"{{count}} тыдні",pluralGenitive:"{{count}} тыдняў"}}),aboutXMonths:bl({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:bl({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:bl({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:bl({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:bl({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:bl({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},kl={date:jo({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},xl=["нядзелю","панядзелак","аўторак","сераду","чацьвер","пятніцу","суботу"];function _l(e){return"'у "+xl[e]+" а' p"}const Sl={lastWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?_l(i):function(e){const t=xl[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}(i)},yesterday:"'учора а' p",today:"'сёньня а' p",tomorrow:"'заўтра а' p",nextWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?_l(i):function(e){const t=xl[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}(i)},other:"P"},Pl={ordinalNumber:(e,t)=>{const n=String(t?.unit),r=Number(e);let i;return i="date"===n?"-га":"hour"===n||"minute"===n||"second"===n?"-я":r%10!=2&&r%10!=3||r%100==12||r%100==13?"-ы":"-і",r+i},era:zo({values:{narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["С","Л","С","К","Т","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","трав.","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","сьнеж."],wide:["студзень","люты","сакавік","красавік","травень","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","сьнежань"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","С","К","Т","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","трав.","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","сьнеж."],wide:["студзеня","лютага","сакавіка","красавіка","траўня","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","сьнежня"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чаць","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацьвер","пятніца","субота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},defaultFormattingWidth:"wide"})},El={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^тр/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},Cl={code:"be-tarask",formatDistance:(e,t,n)=>(n=n||{},wl[e](t,n)),formatLong:kl,formatRelative:(e,t,n,r)=>{const i=Sl[e];return"function"==typeof i?i(t,n,r):i},localize:Pl,match:El,options:{weekStartsOn:1,firstWeekContainsDate:1}},Tl={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},$l={date:jo({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},Ql=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function Rl(e){const t=Ql[e];return 2===e?"'във "+t+" в' p":"'в "+t+" в' p"}const Al={lastWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?Rl(i):function(e){const t=Ql[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}(i)},yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?Rl(i):function(e){const t=Ql[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}(i)},other:"P"};function jl(e,t,n,r,i){const o=function(e){return"quarter"===e}(t)?i:function(e){return"year"===e||"week"===e||"minute"===e||"second"===e}(t)?r:n;return e+"-"+o}const Dl={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if(0===n)return jl(0,r,"ев","ева","ево");if(n%1e3==0)return jl(n,r,"ен","на","но");if(n%100==0)return jl(n,r,"тен","тна","тно");const i=n%100;if(i>20||i<10)switch(i%10){case 1:return jl(n,r,"ви","ва","во");case 2:return jl(n,r,"ри","ра","ро");case 7:case 8:return jl(n,r,"ми","ма","мо")}return jl(n,r,"ти","та","то")},era:zo({values:{narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}},defaultWidth:"wide"})},Ml={ordinalNumber:Lo({matchPattern:/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},defaultParseWidth:"any"})},Il={code:"bg",formatDistance:(e,t,n)=>{let r;const i=Tl[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"след "+r:"преди "+r:r},formatLong:$l,formatRelative:(e,t,n,r)=>{const i=Al[e];return"function"==typeof i?i(t,n,r):i},localize:Dl,match:Ml,options:{weekStartsOn:1,firstWeekContainsDate:1}},zl={locale:{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},number:{"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"}};function Wl(e){return e.toString().replace(/\d/g,(function(e){return zl.locale[e]}))}const Nl={ordinalNumber:(e,t)=>{const n=Number(e),r=Wl(n),i=t?.unit;if("date"===i)return function(e,t){if(e>18&&e<=31)return t+"শে";switch(e){case 1:return t+"লা";case 2:case 3:return t+"রা";case 4:return t+"ঠা";default:return t+"ই"}}(n,r);if(n>10||0===n)return r+"তম";switch(n%10){case 2:case 3:return r+"য়";case 4:return r+"র্থ";case 6:return r+"ষ্ঠ";default:return r+"ম"}},era:zo({values:{narrow:["খ্রিঃপূঃ","খ্রিঃ"],abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"],wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["১","২","৩","৪"],abbreviated:["১ত্রৈ","২ত্রৈ","৩ত্রৈ","৪ত্রৈ"],wide:["১ম ত্রৈমাসিক","২য় ত্রৈমাসিক","৩য় ত্রৈমাসিক","৪র্থ ত্রৈমাসিক"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],abbreviated:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],wide:["জানুয়ারি","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]},defaultWidth:"wide"}),day:zo({values:{narrow:["র","সো","ম","বু","বৃ","শু","শ"],short:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],abbreviated:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],wide:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার ","শুক্রবার","শনিবার"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},defaultWidth:"wide",formattingValues:{narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},defaultFormattingWidth:"wide"})},Ll={lessThanXSeconds:{one:"প্রায় ১ সেকেন্ড",other:"প্রায় {{count}} সেকেন্ড"},xSeconds:{one:"১ সেকেন্ড",other:"{{count}} সেকেন্ড"},halfAMinute:"আধ মিনিট",lessThanXMinutes:{one:"প্রায় ১ মিনিট",other:"প্রায় {{count}} মিনিট"},xMinutes:{one:"১ মিনিট",other:"{{count}} মিনিট"},aboutXHours:{one:"প্রায় ১ ঘন্টা",other:"প্রায় {{count}} ঘন্টা"},xHours:{one:"১ ঘন্টা",other:"{{count}} ঘন্টা"},xDays:{one:"১ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"প্রায় ১ সপ্তাহ",other:"প্রায় {{count}} সপ্তাহ"},xWeeks:{one:"১ সপ্তাহ",other:"{{count}} সপ্তাহ"},aboutXMonths:{one:"প্রায় ১ মাস",other:"প্রায় {{count}} মাস"},xMonths:{one:"১ মাস",other:"{{count}} মাস"},aboutXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"},xYears:{one:"১ বছর",other:"{{count}} বছর"},overXYears:{one:"১ বছরের বেশি",other:"{{count}} বছরের বেশি"},almostXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"}},Fl={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}} 'সময়'",long:"{{date}} {{time}} 'সময়'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ul={lastWeek:"'গত' eeee 'সময়' p",yesterday:"'গতকাল' 'সময়' p",today:"'আজ' 'সময়' p",tomorrow:"'আগামীকাল' 'সময়' p",nextWeek:"eeee 'সময়' p",other:"P"},Xl={ordinalNumber:Lo({matchPattern:/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},defaultParseWidth:"wide"}),quarter:No({matchPatterns:{narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},defaultMatchWidth:"wide",parsePatterns:{any:[/১/i,/২/i,/৩/i,/৪/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},defaultParseWidth:"any"})},ql={code:"bn",formatDistance:(e,t,n)=>{let r;const i=Ll[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",Wl(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" এর মধ্যে":r+" আগে":r},formatLong:Fl,formatRelative:(e,t,n,r)=>Ul[e],localize:Nl,match:Xl,options:{weekStartsOn:0,firstWeekContainsDate:1}},Bl={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 sedmicu",withPrepositionAgo:"oko 1 sedmicu",withPrepositionIn:"oko 1 sedmicu"},dual:"oko {{count}} sedmice",other:"oko {{count}} sedmice"},xWeeks:{one:{standalone:"1 sedmicu",withPrepositionAgo:"1 sedmicu",withPrepositionIn:"1 sedmicu"},dual:"{{count}} sedmice",other:"{{count}} sedmice"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Vl={date:jo({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Yl={lastWeek:e=>{switch(e.getDay()){case 0:return"'prošle nedjelje u' p";case 3:return"'prošle srijede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'sljedeće nedjelje u' p";case 3:return"'sljedeću srijedu u' p";case 6:return"'sljedeću subotu u' p";default:return"'sljedeći' EEEE 'u' p"}},other:"P"},Zl={ordinalNumber:(e,t)=>{const n=Number(e);return String(n)+"."},era:zo({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Prije Hrista","Poslije Hrista"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uveče",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uveče",night:"noću"}},defaultFormattingWidth:"wide"})},Gl={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})},Hl={code:"bs",formatDistance:(e,t,n)=>{let r;const i=Bl[e];return r="string"==typeof i?i:1===t?n?.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?i.dual.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"za "+r:"prije "+r:r},formatLong:Vl,formatRelative:(e,t,n,r)=>{const i=Yl[e];return"function"==typeof i?i(t):i},localize:Zl,match:Gl,options:{weekStartsOn:1,firstWeekContainsDate:4}},Kl={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},Jl={date:jo({formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},eu={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},tu={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},nu={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 3:return n+"r";case 2:return n+"n";case 4:return n+"t"}return n+"è"},era:zo({values:{narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},defaultFormattingWidth:"wide"})},ru={ordinalNumber:Lo({matchPattern:/^(\d+)(è|r|n|r|t)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},defaultParseWidth:"wide"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},defaultParseWidth:"wide"}),day:No({matchPatterns:{narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},defaultParseWidth:"any"})},iu={code:"ca",formatDistance:(e,t,n)=>{let r;const i=Kl[e];return r="string"==typeof i?i:1===t?i.one:11===t&&i.eleven?i.eleven:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"fa "+r:r},formatLong:Jl,formatRelative:(e,t,n,r)=>1!==t.getHours()?tu[e]:eu[e],localize:nu,match:ru,options:{weekStartsOn:1,firstWeekContainsDate:4}},ou={lessThanXSeconds:{one:"کەمتر لە یەک چرکە",other:"کەمتر لە {{count}} چرکە"},xSeconds:{one:"1 چرکە",other:"{{count}} چرکە"},halfAMinute:"نیو کاتژمێر",lessThanXMinutes:{one:"کەمتر لە یەک خولەک",other:"کەمتر لە {{count}} خولەک"},xMinutes:{one:"1 خولەک",other:"{{count}} خولەک"},aboutXHours:{one:"دەوروبەری 1 کاتژمێر",other:"دەوروبەری {{count}} کاتژمێر"},xHours:{one:"1 کاتژمێر",other:"{{count}} کاتژمێر"},xDays:{one:"1 ڕۆژ",other:"{{count}} ژۆژ"},aboutXWeeks:{one:"دەوروبەری 1 هەفتە",other:"دوروبەری {{count}} هەفتە"},xWeeks:{one:"1 هەفتە",other:"{{count}} هەفتە"},aboutXMonths:{one:"داوروبەری 1 مانگ",other:"دەوروبەری {{count}} مانگ"},xMonths:{one:"1 مانگ",other:"{{count}} مانگ"},aboutXYears:{one:"دەوروبەری 1 ساڵ",other:"دەوروبەری {{count}} ساڵ"},xYears:{one:"1 ساڵ",other:"{{count}} ساڵ"},overXYears:{one:"زیاتر لە ساڵێک",other:"زیاتر لە {{count}} ساڵ"},almostXYears:{one:"بەنزیکەیی ساڵێک ",other:"بەنزیکەیی {{count}} ساڵ"}},au={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'کاتژمێر' {{time}}",long:"{{date}} 'کاتژمێر' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},su={lastWeek:"'هەفتەی ڕابردوو' eeee 'کاتژمێر' p",yesterday:"'دوێنێ کاتژمێر' p",today:"'ئەمڕۆ کاتژمێر' p",tomorrow:"'بەیانی کاتژمێر' p",nextWeek:"eeee 'کاتژمێر' p",other:"P"},lu={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["پ","د"],abbreviated:["پ-ز","د-ز"],wide:["پێش زاین","دوای زاین"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["چ1م","چ2م","چ3م","چ4م"],wide:["چارەگی یەکەم","چارەگی دووەم","چارەگی سێیەم","چارەگی چوارەم"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ک-د","ش","ئا","ن","م","ح","ت","ئا","ئە","تش-ی","تش-د","ک-ی"],abbreviated:["کان-دوو","شوب","ئاد","نیس","مایس","حوز","تەم","ئاب","ئەل","تش-یەک","تش-دوو","کان-یەک"],wide:["کانوونی دووەم","شوبات","ئادار","نیسان","مایس","حوزەیران","تەمموز","ئاب","ئەیلول","تشرینی یەکەم","تشرینی دووەم","کانوونی یەکەم"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ی-ش","د-ش","س-ش","چ-ش","پ-ش","هە","ش"],short:["یە-شە","دوو-شە","سێ-شە","چو-شە","پێ-شە","هەی","شە"],abbreviated:["یەک-شەم","دوو-شەم","سێ-شەم","چوار-شەم","پێنج-شەم","هەینی","شەمە"],wide:["یەک شەمە","دوو شەمە","سێ شەمە","چوار شەمە","پێنج شەمە","هەینی","شەمە"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"پ",pm:"د",midnight:"ن-ش",noon:"ن",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"},abbreviated:{am:"پ-ن",pm:"د-ن",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"},wide:{am:"پێش نیوەڕۆ",pm:"دوای نیوەڕۆ",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"}},defaultWidth:"wide",formattingValues:{narrow:{am:"پ",pm:"د",midnight:"ن-ش",noon:"ن",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"},abbreviated:{am:"پ-ن",pm:"د-ن",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"},wide:{am:"پێش نیوەڕۆ",pm:"دوای نیوەڕۆ",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"}},defaultFormattingWidth:"wide"})},uu={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(پ|د)/i,abbreviated:/^(پ-ز|د.ز)/i,wide:/^(پێش زاین| دوای زاین)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^د/g,/^پ/g]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^م[1234]چ/i,wide:/^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/چارەگی یەکەم/,/چارەگی دووەم/,/چارەگی سيیەم/,/چارەگی چوارەم/],any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i,abbreviated:/^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i,wide:/^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ک-د/i,/^ش/i,/^ئا/i,/^ن/i,/^م/i,/^ح/i,/^ت/i,/^ئا/i,/^ئە/i,/^تش-ی/i,/^تش-د/i,/^ک-ی/i],any:[/^کان-دوو/i,/^شوب/i,/^ئاد/i,/^نیس/i,/^مایس/i,/^حوز/i,/^تەم/i,/^ئاب/i,/^ئەل/i,/^تش-یەک/i,/^تش-دوو/i,/^|کان-یەک/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ش|ی|د|س|چ|پ|هە)/i,short:/^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i,abbreviated:/^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i,wide:/^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i,abbreviated:/^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/,wide:/^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/,any:/^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^د/i,pm:/^پ/i,midnight:/^ن-ش/i,noon:/^ن/i,morning:/بەیانی/i,afternoon:/دواینیوەڕۆ/i,evening:/ئێوارە/i,night:/شەو/i}},defaultParseWidth:"any"})},cu={code:"ckb",formatDistance:(e,t,n)=>{let r;const i=ou[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"لە ماوەی "+r+"دا":r+"پێش ئێستا":r},formatLong:au,formatRelative:(e,t,n,r)=>su[e],localize:lu,match:uu,options:{weekStartsOn:0,firstWeekContainsDate:1}},du={lessThanXSeconds:{one:{regular:"méně než 1 sekunda",past:"před méně než 1 sekundou",future:"za méně než 1 sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"1 sekunda",past:"před 1 sekundou",future:"za 1 sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než 1 minuta",past:"před méně než 1 minutou",future:"za méně než 1 minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"1 minuta",past:"před 1 minutou",future:"za 1 minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně 1 hodina",past:"přibližně před 1 hodinou",future:"přibližně za 1 hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"1 hodina",past:"před 1 hodinou",future:"za 1 hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"1 den",past:"před 1 dnem",future:"za 1 den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně 1 týden",past:"přibližně před 1 týdnem",future:"přibližně za 1 týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"1 týden",past:"před 1 týdnem",future:"za 1 týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně 1 měsíc",past:"přibližně před 1 měsícem",future:"přibližně za 1 měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"1 měsíc",past:"před 1 měsícem",future:"za 1 měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně 1 rok",past:"přibližně před 1 rokem",future:"přibližně za 1 rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"1 rok",past:"před 1 rokem",future:"za 1 rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než 1 rok",past:"před více než 1 rokem",future:"za více než 1 rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro 1 rok",past:"skoro před 1 rokem",future:"skoro za 1 rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},fu={date:jo({formats:{full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},hu=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],pu={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:e=>{const t=e.getDay();return"'v "+hu[t]+" o' p"},other:"P"},mu={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},defaultWidth:"wide",formattingValues:{narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},defaultFormattingWidth:"wide"})},gu={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p[řr]/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},defaultParseWidth:"any"})},vu={code:"cs",formatDistance:(e,t,n)=>{let r;const i=du[e];r="other"===i.type?i.other:1===t?i.one:t>1&&t<5?i.few:i.many;const o=!0===n?.addSuffix,a=n?.comparison;let s;return s=o&&-1===a?r.past:o&&1===a?r.future:r.regular,s.replace("{{count}}",String(t))},formatLong:fu,formatRelative:(e,t)=>{const n=pu[e];return"function"==typeof n?n(t):n},localize:mu,match:gu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Ou={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},yu={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},bu={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},wu={ordinalNumber:(e,t)=>{const n=Number(e);if(n<20)switch(n){case 0:case 7:case 8:case 9:case 10:case 12:case 15:case 18:return n+"fed";case 1:return n+"af";case 2:return n+"ail";case 3:case 4:return n+"ydd";case 5:case 6:return n+"ed";case 11:case 13:case 14:case 16:case 17:case 19:return n+"eg"}else if(n>=50&&n<=60||80===n||n>=100)return n+"fed";return n+"ain"},era:zo({values:{narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar ôl Crist"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},defaultWidth:"wide",formattingValues:{narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},defaultFormattingWidth:"wide"})},ku={ordinalNumber:Lo({matchPattern:/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},defaultParseWidth:"any"})},xu={code:"cy",formatDistance:(e,t,n)=>{let r;const i=Ou[e];return r="string"==typeof i?i:1===t?i.one:2===t&&i.two?i.two:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"mewn "+r:r+" yn ôl":r},formatLong:yu,formatRelative:(e,t,n,r)=>bu[e],localize:wu,match:ku,options:{weekStartsOn:0,firstWeekContainsDate:1}},_u={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},Su={date:jo({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Pu={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},Eu={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},Cu={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})},Tu={code:"da",formatDistance:(e,t,n)=>{let r;const i=_u[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},formatLong:Su,formatRelative:(e,t,n,r)=>Pu[e],localize:Eu,match:Cu,options:{weekStartsOn:1,firstWeekContainsDate:4}},$u={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},Qu=(e,t,n)=>{let r;const i=n?.addSuffix?$u[e].withPreposition:$u[e].standalone;return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},Ru={date:jo({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Au={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},ju=(e,t,n,r)=>Au[e],Du={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Mu={narrow:Du.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Du.wide},Iu={ordinalNumber:e=>Number(e)+".",era:zo({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:Du,formattingValues:Mu,defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},zu={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:No({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},Wu={code:"de",formatDistance:Qu,formatLong:Ru,formatRelative:ju,localize:Iu,match:zu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Nu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Lu={narrow:Nu.narrow,abbreviated:["Jän.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Nu.wide},Fu={code:"de-AT",formatDistance:Qu,formatLong:Ru,formatRelative:ju,localize:{ordinalNumber:e=>Number(e)+".",era:zo({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:Nu,formattingValues:Lu,defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:zu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Uu={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},Xu={date:jo({formats:{full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qu={lastWeek:e=>6===e.getDay()?"'το προηγούμενο' eeee 'στις' p":"'την προηγούμενη' eeee 'στις' p",yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},Bu={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;let i;return i="year"===r||"month"===r?"ος":"week"===r||"dayOfYear"===r||"day"===r||"hour"===r||"date"===r?"η":"ο",n+i},era:zo({values:{narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},defaultWidth:"wide",formattingValues:{narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},defaultWidth:"wide"})},Vu={ordinalNumber:Lo({matchPattern:/^(\d+)(ος|η|ο)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^π/i,/^(μ|κ)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},defaultParseWidth:"any"})},Yu={code:"el",formatDistance:(e,t,n)=>{let r;const i=Uu[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"σε "+r:r+" πριν":r},formatLong:Xu,formatRelative:(e,t)=>{const n=qu[e];return"function"==typeof n?n(t):n},localize:Bu,match:Vu,options:{weekStartsOn:1,firstWeekContainsDate:4}},Zu={code:"en-AU",formatDistance:Ao,formatLong:{date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},Gu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},Hu={code:"en-CA",formatDistance:(e,t,n)=>{let r;const i=Gu[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:{date:jo({formats:{full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ku={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ju={code:"en-GB",formatDistance:Ao,formatLong:Ku,formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},ec={code:"en-IE",formatDistance:Ao,formatLong:Ku,formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},tc={code:"en-IN",formatDistance:Ao,formatLong:{date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM, yyyy",medium:"d MMM, yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},nc={code:"en-NZ",formatDistance:Ao,formatLong:{date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:1,firstWeekContainsDate:4}},rc={code:"en-ZA",formatDistance:Ao,formatLong:{date:jo({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Io,localize:Wo,match:Fo,options:{weekStartsOn:0,firstWeekContainsDate:1}},ic={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preskaŭ 1 jaro",other:"preskaŭ {{count}} jaroj"}},oc={date:jo({formats:{full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},ac={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hieraŭ je' p",today:"'hodiaŭ je' p",tomorrow:"'morgaŭ je' p",nextWeek:"eeee 'je' p",other:"P"},sc={ordinalNumber:e=>Number(e)+"-a",era:zo({values:{narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["antaŭ Komuna Erao","Komuna Erao"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","aŭg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","M","Ĵ","V","S"],short:["di","lu","ma","me","ĵa","ve","sa"],abbreviated:["dim","lun","mar","mer","ĵaŭ","ven","sab"],wide:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"antaŭtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},defaultWidth:"wide"})},lc={ordinalNumber:Lo({matchPattern:/^(\d+)(-?a)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^[kp]/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:"any"})},uc={code:"eo",formatDistance:(e,t,n)=>{let r;const i=ic[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n?.comparison&&n.comparison>0?"post "+r:"antaŭ "+r:r},formatLong:oc,formatRelative:(e,t,n,r)=>ac[e],localize:sc,match:lc,options:{weekStartsOn:1,firstWeekContainsDate:4}},cc={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},dc={date:jo({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},fc={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},hc={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},pc={ordinalNumber:(e,t)=>Number(e)+"º",era:zo({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},mc={ordinalNumber:Lo({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},gc={code:"es",formatDistance:(e,t,n)=>{let r;const i=cc[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},formatLong:dc,formatRelative:(e,t,n,r)=>1!==t.getHours()?hc[e]:fc[e],localize:pc,match:mc,options:{weekStartsOn:1,firstWeekContainsDate:1}},vc={lessThanXSeconds:{standalone:{one:"vähem kui üks sekund",other:"vähem kui {{count}} sekundit"},withPreposition:{one:"vähem kui ühe sekundi",other:"vähem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"üks sekund",other:"{{count}} sekundit"},withPreposition:{one:"ühe sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"vähem kui üks minut",other:"vähem kui {{count}} minutit"},withPreposition:{one:"vähem kui ühe minuti",other:"vähem kui {{count}} minuti"}},xMinutes:{standalone:{one:"üks minut",other:"{{count}} minutit"},withPreposition:{one:"ühe minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes üks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes ühe tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"üks tund",other:"{{count}} tundi"},withPreposition:{one:"ühe tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"üks päev",other:"{{count}} päeva"},withPreposition:{one:"ühe päeva",other:"{{count}} päeva"}},aboutXWeeks:{standalone:{one:"umbes üks nädal",other:"umbes {{count}} nädalat"},withPreposition:{one:"umbes ühe nädala",other:"umbes {{count}} nädala"}},xWeeks:{standalone:{one:"üks nädal",other:"{{count}} nädalat"},withPreposition:{one:"ühe nädala",other:"{{count}} nädala"}},aboutXMonths:{standalone:{one:"umbes üks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes ühe kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"üks kuu",other:"{{count}} kuud"},withPreposition:{one:"ühe kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes üks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes ühe aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"üks aasta",other:"{{count}} aastat"},withPreposition:{one:"ühe aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui üks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui ühe aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu üks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu ühe aasta",other:"peaaegu {{count}} aasta"}}},Oc={date:jo({formats:{full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},defaultWidth:"full"})},yc={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'täna kell' p",tomorrow:"'homme kell' p",nextWeek:"'järgmine' eeee 'kell' p",other:"P"},bc={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},wc={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["pühap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"]},kc={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise järgi"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:bc,defaultWidth:"wide",formattingValues:bc,defaultFormattingWidth:"wide"}),day:zo({values:wc,defaultWidth:"wide",formattingValues:wc,defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},abbreviated:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},wide:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},abbreviated:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},wide:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"}},defaultFormattingWidth:"wide"})},xc={ordinalNumber:Lo({matchPattern:/^\d+\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^(m|p)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},defaultParseWidth:"any"})},_c={code:"et",formatDistance:(e,t,n)=>{const r=n?.addSuffix?vc[e].withPreposition:vc[e].standalone;let i;return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?i+" pärast":i+" eest":i},formatLong:Oc,formatRelative:(e,t,n,r)=>yc[e],localize:kc,match:xc,options:{weekStartsOn:1,firstWeekContainsDate:4}},Sc={lessThanXSeconds:{one:"segundo bat baino gutxiago",other:"{{count}} segundo baino gutxiago"},xSeconds:{one:"1 segundo",other:"{{count}} segundo"},halfAMinute:"minutu erdi",lessThanXMinutes:{one:"minutu bat baino gutxiago",other:"{{count}} minutu baino gutxiago"},xMinutes:{one:"1 minutu",other:"{{count}} minutu"},aboutXHours:{one:"1 ordu gutxi gorabehera",other:"{{count}} ordu gutxi gorabehera"},xHours:{one:"1 ordu",other:"{{count}} ordu"},xDays:{one:"1 egun",other:"{{count}} egun"},aboutXWeeks:{one:"aste 1 inguru",other:"{{count}} aste inguru"},xWeeks:{one:"1 aste",other:"{{count}} astean"},aboutXMonths:{one:"1 hilabete gutxi gorabehera",other:"{{count}} hilabete gutxi gorabehera"},xMonths:{one:"1 hilabete",other:"{{count}} hilabete"},aboutXYears:{one:"1 urte gutxi gorabehera",other:"{{count}} urte gutxi gorabehera"},xYears:{one:"1 urte",other:"{{count}} urte"},overXYears:{one:"1 urte baino gehiago",other:"{{count}} urte baino gehiago"},almostXYears:{one:"ia 1 urte",other:"ia {{count}} urte"}},Pc={date:jo({formats:{full:"EEEE, y'ko' MMMM'ren' d'a' y'ren'",long:"y'ko' MMMM'ren' d'a'",medium:"y MMM d",short:"yy/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'tan' {{time}}",long:"{{date}} 'tan' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ec={lastWeek:"'joan den' eeee, LT",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},Cc={lastWeek:"'joan den' eeee, p",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},Tc={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["k.a.","k.o."],abbreviated:["k.a.","k.o."],wide:["kristo aurretik","kristo ondoren"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1H","2H","3H","4H"],wide:["1. hiruhilekoa","2. hiruhilekoa","3. hiruhilekoa","4. hiruhilekoa"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["u","o","m","a","m","e","u","a","i","u","a","a"],abbreviated:["urt","ots","mar","api","mai","eka","uzt","abu","ira","urr","aza","abe"],wide:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"]},defaultWidth:"wide"}),day:zo({values:{narrow:["i","a","a","a","o","o","l"],short:["ig","al","as","az","og","or","lr"],abbreviated:["iga","ast","ast","ast","ost","ost","lar"],wide:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"}},defaultFormattingWidth:"wide"})},$c={ordinalNumber:Lo({matchPattern:/^(\d+)(.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(k.a.|k.o.)/i,abbreviated:/^(k.a.|k.o.)/i,wide:/^(kristo aurretik|kristo ondoren)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^k.a./i,/^k.o./i],abbreviated:[/^(k.a.)/i,/^(k.o.)/i],wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i]},defaultParseWidth:"wide"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]H/i,wide:/^[1234](.)? hiruhilekoa/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[uomaei]/i,abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i,wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^u/i,/^o/i,/^m/i,/^a/i,/^m/i,/^e/i,/^u/i,/^a/i,/^i/i,/^u/i,/^a/i,/^a/i],any:[/^urt/i,/^ots/i,/^mar/i,/^api/i,/^mai/i,/^eka/i,/^uzt/i,/^abu/i,/^ira/i,/^urr/i,/^aza/i,/^abe/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[iaol]/i,short:/^(ig|al|as|az|og|or|lr)/i,abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i,wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^a/i,/^a/i,/^a/i,/^o/i,/^o/i,/^l/i],short:[/^ig/i,/^al/i,/^as/i,/^az/i,/^og/i,/^or/i,/^lr/i],abbreviated:[/^iga/i,/^ast/i,/^ast/i,/^ast/i,/^ost/i,/^ost/i,/^lar/i],wide:[/^igandea/i,/^astelehena/i,/^asteartea/i,/^asteazkena/i,/^osteguna/i,/^ostirala/i,/^larunbata/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i,any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a/i,pm:/^p/i,midnight:/^ge/i,noon:/^eg/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i},any:{am:/^a/i,pm:/^p/i,midnight:/^gauerdia/i,noon:/^eguerdia/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i}},defaultParseWidth:"any"})},Qc={code:"eu",formatDistance:(e,t,n)=>{let r;const i=Sc[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"duela "+r:r},formatLong:Pc,formatRelative:(e,t)=>1!==t.getHours()?Cc[e]:Ec[e],localize:Tc,match:$c,options:{weekStartsOn:1,firstWeekContainsDate:1}},Rc={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},Ac={date:jo({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jc={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},Dc={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultFormattingWidth:"wide"})},Mc={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:"any"})},Ic={code:"fa-IR",formatDistance:(e,t,n)=>{let r;const i=Rc[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"در "+r:r+" قبل":r},formatLong:Ac,formatRelative:(e,t,n,r)=>jc[e],localize:Dc,match:Mc,options:{weekStartsOn:6,firstWeekContainsDate:1}};function zc(e){return e.replace(/sekuntia?/,"sekunnin")}function Wc(e){return e.replace(/minuuttia?/,"minuutin")}function Nc(e){return e.replace(/tuntia?/,"tunnin")}function Lc(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function Fc(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function Uc(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}const Xc={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:zc},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:zc},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:e=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:Wc},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:Wc},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:Nc},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:Nc},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:function(e){return e.replace(/päivää?/,"päivän")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:Lc},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:Lc},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:Fc},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:Fc},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:Uc},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:Uc},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:Uc},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:Uc}},qc={date:jo({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Bc={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},Vc={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},Yc={narrow:Vc.narrow,abbreviated:Vc.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},Zc={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},Gc={narrow:Zc.narrow,short:Zc.short,abbreviated:Zc.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},Hc={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:Vc,defaultWidth:"wide",formattingValues:Yc,defaultFormattingWidth:"wide"}),day:zo({values:Zc,defaultWidth:"wide",formattingValues:Gc,defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},defaultWidth:"wide"})},Kc={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})},Jc={code:"fi",formatDistance:(e,t,n)=>{const r=Xc[e],i=1===t?r.one:r.other.replace("{{count}}",String(t));return n?.addSuffix?n.comparison&&n.comparison>0?r.futureTense(i)+" kuluttua":i+" sitten":i},formatLong:qc,formatRelative:(e,t,n,r)=>Bc[e],localize:Hc,match:Kc,options:{weekStartsOn:1,firstWeekContainsDate:4}},ed={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},td=(e,t,n)=>{let r;const i=ed[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},nd={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rd={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},id=(e,t,n,r)=>rd[e],od=["MMM","MMMM"],ad={preprocessor:(e,t)=>1===e.getDate()?t:t.some((e=>e.isToken&&od.includes(e.value)))?t.map((e=>e.isToken&&"do"===e.value?{isToken:!0,value:"d"}:e)):t,ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if(0===n)return"0";let i;return i=1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème",n+i},era:zo({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},sd={ordinalNumber:Lo({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:No({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},ld={code:"fr",formatDistance:td,formatLong:nd,formatRelative:id,localize:ad,match:sd,options:{weekStartsOn:1,firstWeekContainsDate:4}},ud={code:"fr-CA",formatDistance:td,formatLong:{date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:id,localize:ad,match:sd,options:{weekStartsOn:0,firstWeekContainsDate:1}},cd={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},dd={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"},fd={code:"fr-CH",formatDistance:td,formatLong:cd,formatRelative:(e,t,n,r)=>dd[e],localize:ad,match:sd,options:{weekStartsOn:1,firstWeekContainsDate:4}},hd={lessThanXSeconds:{one:"minder as 1 sekonde",other:"minder as {{count}} sekonden"},xSeconds:{one:"1 sekonde",other:"{{count}} sekonden"},halfAMinute:"oardel minút",lessThanXMinutes:{one:"minder as 1 minút",other:"minder as {{count}} minuten"},xMinutes:{one:"1 minút",other:"{{count}} minuten"},aboutXHours:{one:"sawat 1 oere",other:"sawat {{count}} oere"},xHours:{one:"1 oere",other:"{{count}} oere"},xDays:{one:"1 dei",other:"{{count}} dagen"},aboutXWeeks:{one:"sawat 1 wike",other:"sawat {{count}} wiken"},xWeeks:{one:"1 wike",other:"{{count}} wiken"},aboutXMonths:{one:"sawat 1 moanne",other:"sawat {{count}} moannen"},xMonths:{one:"1 moanne",other:"{{count}} moannen"},aboutXYears:{one:"sawat 1 jier",other:"sawat {{count}} jier"},xYears:{one:"1 jier",other:"{{count}} jier"},overXYears:{one:"mear as 1 jier",other:"mear as {{count}}s jier"},almostXYears:{one:"hast 1 jier",other:"hast {{count}} jier"}},pd={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},md={lastWeek:"'ôfrûne' eeee 'om' p",yesterday:"'juster om' p",today:"'hjoed om' p",tomorrow:"'moarn om' p",nextWeek:"eeee 'om' p",other:"P"},gd={ordinalNumber:(e,t)=>Number(e)+"e",era:zo({values:{narrow:["f.K.","n.K."],abbreviated:["f.Kr.","n.Kr."],wide:["foar Kristus","nei Kristus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e fearnsjier","2e fearnsjier","3e fearnsjier","4e fearnsjier"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mrt.","apr.","mai.","jun.","jul.","aug.","sep.","okt.","nov.","des."],wide:["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber"]},defaultWidth:"wide"}),day:zo({values:{narrow:["s","m","t","w","t","f","s"],short:["si","mo","ti","wo","to","fr","so"],abbreviated:["snein","moa","tii","woa","ton","fre","sneon"],wide:["snein","moandei","tiisdei","woansdei","tongersdei","freed","sneon"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"}},defaultWidth:"wide"})},vd={ordinalNumber:Lo({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([fn]\.? ?K\.?)/,abbreviated:/^([fn]\. ?Kr\.?)/,wide:/^((foar|nei) Kristus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/,/^n/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e fearnsjier/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i,wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^des/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtwf]/i,short:/^(si|mo|ti|wo|to|fr|so)/i,abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i,wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^sn/i,/^mo/i,/^ti/i,/^wo/i,/^to/i,/^fr/i,/^sn/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^middei/i,morning:/moarns/i,afternoon:/^middeis/i,evening:/jûns/i,night:/nachts/i}},defaultParseWidth:"any"})},Od={code:"fy",formatDistance:(e,t,n)=>{let r;const i=hd[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"oer "+r:r+" lyn":r},formatLong:pd,formatRelative:(e,t,n,r)=>md[e],localize:gd,match:vd,options:{weekStartsOn:1,firstWeekContainsDate:4}},yd={lessThanXSeconds:{one:"nas lugha na diog",other:"nas lugha na {{count}} diogan"},xSeconds:{one:"1 diog",two:"2 dhiog",twenty:"20 diog",other:"{{count}} diogan"},halfAMinute:"leth mhionaid",lessThanXMinutes:{one:"nas lugha na mionaid",other:"nas lugha na {{count}} mionaidean"},xMinutes:{one:"1 mionaid",two:"2 mhionaid",twenty:"20 mionaid",other:"{{count}} mionaidean"},aboutXHours:{one:"mu uair de thìde",other:"mu {{count}} uairean de thìde"},xHours:{one:"1 uair de thìde",two:"2 uair de thìde",twenty:"20 uair de thìde",other:"{{count}} uairean de thìde"},xDays:{one:"1 là",other:"{{count}} là"},aboutXWeeks:{one:"mu 1 seachdain",other:"mu {{count}} seachdainean"},xWeeks:{one:"1 seachdain",other:"{{count}} seachdainean"},aboutXMonths:{one:"mu mhìos",other:"mu {{count}} mìosan"},xMonths:{one:"1 mìos",other:"{{count}} mìosan"},aboutXYears:{one:"mu bhliadhna",other:"mu {{count}} bliadhnaichean"},xYears:{one:"1 bhliadhna",other:"{{count}} bliadhna"},overXYears:{one:"còrr is bliadhna",other:"còrr is {{count}} bliadhnaichean"},almostXYears:{one:"cha mhòr bliadhna",other:"cha mhòr {{count}} bliadhnaichean"}},bd={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'aig' {{time}}",long:"{{date}} 'aig' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},wd={lastWeek:"'mu dheireadh' eeee 'aig' p",yesterday:"'an-dè aig' p",today:"'an-diugh aig' p",tomorrow:"'a-màireach aig' p",nextWeek:"eeee 'aig' p",other:"P"},kd={ordinalNumber:e=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"d";case 2:return t+"na"}return 12===n?t+"na":t+"mh"},era:zo({values:{narrow:["R","A"],abbreviated:["RC","AD"],wide:["ro Chrìosta","anno domini"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["C1","C2","C3","C4"],wide:["a' chiad chairteal","an dàrna cairteal","an treas cairteal","an ceathramh cairteal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["F","G","M","G","C","Ò","I","L","S","D","S","D"],abbreviated:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],wide:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","C","A","H","S"],short:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],abbreviated:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],wide:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"}},defaultFormattingWidth:"wide"})},xd={ordinalNumber:Lo({matchPattern:/^(\d+)(d|na|tr|mh)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(r|a)/i,abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,wide:/^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^c[1234]/i,wide:/^[1234](cd|na|tr|mh)? cairteal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[fgmcòilsd]/i,abbreviated:/^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i,wide:/^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^f/i,/^g/i,/^m/i,/^g/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^s/i,/^d/i,/^s/i,/^d/i],any:[/^fa/i,/^ge/i,/^mà/i,/^gi/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^su/i,/^d/i,/^sa/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmcahs]/i,short:/^(dò|lu|mà|ci|ar|ha|sa)/i,abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i,wide:/^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i],any:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^m/i,pm:/^f/i,midnight:/^meadhan oidhche/i,noon:/^meadhan là/i,morning:/sa mhadainn/i,afternoon:/feasgar/i,evening:/feasgar/i,night:/air an oidhche/i}},defaultParseWidth:"any"})},_d={code:"gd",formatDistance:(e,t,n)=>{let r;const i=yd[e];return r="string"==typeof i?i:1===t?i.one:2===t&&i.two?i.two:20===t&&i.twenty?i.twenty:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"ann an "+r:"o chionn "+r:r},formatLong:bd,formatRelative:(e,t,n,r)=>wd[e],localize:kd,match:xd,options:{weekStartsOn:0,firstWeekContainsDate:1}},Sd={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"máis dun ano",other:"máis de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},Pd={date:jo({formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'ás' {{time}}",long:"{{date}} 'ás' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ed={lastWeek:"'o' eeee 'pasado á' LT",yesterday:"'onte á' p",today:"'hoxe á' p",tomorrow:"'mañá á' p",nextWeek:"eeee 'á' p",other:"P"},Cd={lastWeek:"'o' eeee 'pasado ás' p",yesterday:"'onte ás' p",today:"'hoxe ás' p",tomorrow:"'mañá ás' p",nextWeek:"eeee 'ás' p",other:"P"},Td={ordinalNumber:(e,t)=>Number(e)+"º",era:zo({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"]},defaultWidth:"wide"}),day:zo({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","mércores","xoves","venres","sábado"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañá",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"}},defaultFormattingWidth:"wide"})},$d={ordinalNumber:Lo({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},defaultParseWidth:"any"})},Qd={code:"gl",formatDistance:(e,t,n)=>{let r;const i=Sd[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hai "+r:r},formatLong:Pd,formatRelative:(e,t,n,r)=>1!==t.getHours()?Cd[e]:Ed[e],localize:Td,match:$d,options:{weekStartsOn:1,firstWeekContainsDate:1}},Rd={lessThanXSeconds:{one:"હમણાં",other:"​આશરે {{count}} સેકંડ"},xSeconds:{one:"1 સેકંડ",other:"{{count}} સેકંડ"},halfAMinute:"અડધી મિનિટ",lessThanXMinutes:{one:"આ મિનિટ",other:"​આશરે {{count}} મિનિટ"},xMinutes:{one:"1 મિનિટ",other:"{{count}} મિનિટ"},aboutXHours:{one:"​આશરે 1 કલાક",other:"​આશરે {{count}} કલાક"},xHours:{one:"1 કલાક",other:"{{count}} કલાક"},xDays:{one:"1 દિવસ",other:"{{count}} દિવસ"},aboutXWeeks:{one:"આશરે 1 અઠવાડિયું",other:"આશરે {{count}} અઠવાડિયા"},xWeeks:{one:"1 અઠવાડિયું",other:"{{count}} અઠવાડિયા"},aboutXMonths:{one:"આશરે 1 મહિનો",other:"આશરે {{count}} મહિના"},xMonths:{one:"1 મહિનો",other:"{{count}} મહિના"},aboutXYears:{one:"આશરે 1 વર્ષ",other:"આશરે {{count}} વર્ષ"},xYears:{one:"1 વર્ષ",other:"{{count}} વર્ષ"},overXYears:{one:"1 વર્ષથી વધુ",other:"{{count}} વર્ષથી વધુ"},almostXYears:{one:"લગભગ 1 વર્ષ",other:"લગભગ {{count}} વર્ષ"}},Ad={date:jo({formats:{full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},defaultWidth:"full"}),time:jo({formats:{full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},jd={lastWeek:"'પાછલા' eeee p",yesterday:"'ગઈકાલે' p",today:"'આજે' p",tomorrow:"'આવતીકાલે' p",nextWeek:"eeee p",other:"P"},Dd={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["ઈસપૂ","ઈસ"],abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."],wide:["ઈસવીસન પૂર્વે","ઈસવીસન"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1લો ત્રિમાસ","2જો ત્રિમાસ","3જો ત્રિમાસ","4થો ત્રિમાસ"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["જા","ફે","મા","એ","મે","જૂ","જુ","ઓ","સ","ઓ","ન","ડિ"],abbreviated:["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઓક્ટો","નવે","ડિસે"],wide:["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઇ","ઓગસ્ટ","સપ્ટેમ્બર","ઓક્ટોબર","નવેમ્બર","ડિસેમ્બર"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ર","સો","મં","બુ","ગુ","શુ","શ"],short:["ર","સો","મં","બુ","ગુ","શુ","શ"],abbreviated:["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],wide:["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બ.",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},defaultFormattingWidth:"wide"})},Md={ordinalNumber:Lo({matchPattern:/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ઈસપૂ/i,/^ઈસ/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},defaultParseWidth:"any"})},Id={code:"gu",formatDistance:(e,t,n)=>{let r;const i=Rd[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"માં":r+" પહેલાં":r},formatLong:Ad,formatRelative:(e,t,n,r)=>jd[e],localize:Dd,match:Md,options:{weekStartsOn:1,firstWeekContainsDate:4}},zd={lessThanXSeconds:{one:"פחות משנייה",two:"פחות משתי שניות",other:"פחות מ־{{count}} שניות"},xSeconds:{one:"שנייה",two:"שתי שניות",other:"{{count}} שניות"},halfAMinute:"חצי דקה",lessThanXMinutes:{one:"פחות מדקה",two:"פחות משתי דקות",other:"פחות מ־{{count}} דקות"},xMinutes:{one:"דקה",two:"שתי דקות",other:"{{count}} דקות"},aboutXHours:{one:"כשעה",two:"כשעתיים",other:"כ־{{count}} שעות"},xHours:{one:"שעה",two:"שעתיים",other:"{{count}} שעות"},xDays:{one:"יום",two:"יומיים",other:"{{count}} ימים"},aboutXWeeks:{one:"כשבוע",two:"כשבועיים",other:"כ־{{count}} שבועות"},xWeeks:{one:"שבוע",two:"שבועיים",other:"{{count}} שבועות"},aboutXMonths:{one:"כחודש",two:"כחודשיים",other:"כ־{{count}} חודשים"},xMonths:{one:"חודש",two:"חודשיים",other:"{{count}} חודשים"},aboutXYears:{one:"כשנה",two:"כשנתיים",other:"כ־{{count}} שנים"},xYears:{one:"שנה",two:"שנתיים",other:"{{count}} שנים"},overXYears:{one:"יותר משנה",two:"יותר משנתיים",other:"יותר מ־{{count}} שנים"},almostXYears:{one:"כמעט שנה",two:"כמעט שנתיים",other:"כמעט {{count}} שנים"}},Wd={date:jo({formats:{full:"EEEE, d בMMMM y",long:"d בMMMM y",medium:"d בMMM y",short:"d.M.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'בשעה' {{time}}",long:"{{date}} 'בשעה' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Nd={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"},Ld={ordinalNumber:(e,t)=>{const n=Number(e);if(n<=0||n>10)return String(n);const r=String(t?.unit),i=n-1;return["year","hour","minute","second"].indexOf(r)>=0?["ראשונה","שנייה","שלישית","רביעית","חמישית","שישית","שביעית","שמינית","תשיעית","עשירית"][i]:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שביעי","שמיני","תשיעי","עשירי"][i]},era:zo({values:{narrow:["לפנה״ס","לספירה"],abbreviated:["לפנה״ס","לספירה"],wide:["לפני הספירה","לספירה"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["רבעון 1","רבעון 2","רבעון 3","רבעון 4"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},defaultWidth:"wide"}),day:zo({values:{narrow:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],short:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],abbreviated:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"}},defaultWidth:"wide",formattingValues:{narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"בצהריים",evening:"בערב",night:"בלילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"}},defaultFormattingWidth:"wide"})},Fd=["רא","שנ","של","רב","ח","שי","שב","שמ","ת","ע"],Ud={ordinalNumber:Lo({matchPattern:/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,parsePattern:/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,valueCallback:e=>{const t=parseInt(e,10);return isNaN(t)?Fd.indexOf(e)+1:t}}),era:No({matchPatterns:{narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^לפ/i,/^לס/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},defaultMatchWidth:"wide",parsePatterns:{abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},defaultParseWidth:"any"})},Xd={code:"he",formatDistance:(e,t,n)=>{if("xDays"===e&&n?.addSuffix&&t<=2)return n.comparison&&n.comparison>0?1===t?"מחר":"מחרתיים":1===t?"אתמול":"שלשום";let r;const i=zd[e];return r="string"==typeof i?i:1===t?i.one:2===t?i.two:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"בעוד "+r:"לפני "+r:r},formatLong:Wd,formatRelative:(e,t,n,r)=>Nd[e],localize:Ld,match:Ud,options:{weekStartsOn:0,firstWeekContainsDate:1}},qd={locale:{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},number:{"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"}};function Bd(e){return e.toString().replace(/\d/g,(function(e){return qd.locale[e]}))}const Vd={ordinalNumber:(e,t)=>Bd(Number(e)),era:zo({values:{narrow:["ईसा-पूर्व","ईस्वी"],abbreviated:["ईसा-पूर्व","ईस्वी"],wide:["ईसा-पूर्व","ईसवी सन"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ति1","ति2","ति3","ति4"],wide:["पहली तिमाही","दूसरी तिमाही","तीसरी तिमाही","चौथी तिमाही"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ज","फ़","मा","अ","मई","जू","जु","अग","सि","अक्टू","न","दि"],abbreviated:["जन","फ़र","मार्च","अप्रैल","मई","जून","जुल","अग","सित","अक्टू","नव","दिस"],wide:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},defaultWidth:"wide"}),day:zo({values:{narrow:["र","सो","मं","बु","गु","शु","श"],short:["र","सो","मं","बु","गु","शु","श"],abbreviated:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],wide:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},defaultWidth:"wide",formattingValues:{narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},defaultFormattingWidth:"wide"})},Yd={lessThanXSeconds:{one:"१ सेकंड से कम",other:"{{count}} सेकंड से कम"},xSeconds:{one:"१ सेकंड",other:"{{count}} सेकंड"},halfAMinute:"आधा मिनट",lessThanXMinutes:{one:"१ मिनट से कम",other:"{{count}} मिनट से कम"},xMinutes:{one:"१ मिनट",other:"{{count}} मिनट"},aboutXHours:{one:"लगभग १ घंटा",other:"लगभग {{count}} घंटे"},xHours:{one:"१ घंटा",other:"{{count}} घंटे"},xDays:{one:"१ दिन",other:"{{count}} दिन"},aboutXWeeks:{one:"लगभग १ सप्ताह",other:"लगभग {{count}} सप्ताह"},xWeeks:{one:"१ सप्ताह",other:"{{count}} सप्ताह"},aboutXMonths:{one:"लगभग १ महीना",other:"लगभग {{count}} महीने"},xMonths:{one:"१ महीना",other:"{{count}} महीने"},aboutXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"},xYears:{one:"१ वर्ष",other:"{{count}} वर्ष"},overXYears:{one:"१ वर्ष से अधिक",other:"{{count}} वर्ष से अधिक"},almostXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"}},Zd={date:jo({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Gd={lastWeek:"'पिछले' eeee p",yesterday:"'कल' p",today:"'आज' p",tomorrow:"'कल' p",nextWeek:"eeee 'को' p",other:"P"},Hd={code:"hi",formatDistance:(e,t,n)=>{let r;const i=Yd[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",Bd(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"मे ":r+" पहले":r},formatLong:Zd,formatRelative:(e,t,n,r)=>Gd[e],localize:Vd,match:{ordinalNumber:Lo({matchPattern:/^[०१२३४५६७८९]+/i,parsePattern:/^[०१२३४५६७८९]+/i,valueCallback:function(e){const t=e.toString().replace(/[१२३४५६७८९०]/g,(function(e){return qd.number[e]}));return Number(t)}}),era:No({matchPatterns:{narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:4}},Kd={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Jd={date:jo({formats:{full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ef={lastWeek:e=>{switch(e.getDay()){case 0:return"'prošlu nedjelju u' p";case 3:return"'prošlu srijedu u' p";case 6:return"'prošlu subotu u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'jučer u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'iduću nedjelju u' p";case 3:return"'iduću srijedu u' p";case 6:return"'iduću subotu u' p";default:return"'prošli' EEEE 'u' p"}},other:"P"},tf={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sri","čet","pet","sub"],abbreviated:["ned","pon","uto","sri","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},defaultFormattingWidth:"wide"})},nf={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:"wide"}),day:No({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})},rf={code:"hr",formatDistance:(e,t,n)=>{let r;const i=Kd[e];return r="string"==typeof i?i:1===t?n?.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?i.dual.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"za "+r:"prije "+r:r},formatLong:Jd,formatRelative:(e,t,n,r)=>{const i=ef[e];return"function"==typeof i?i(t):i},localize:tf,match:nf,options:{weekStartsOn:1,firstWeekContainsDate:1}},of={lessThanXSeconds:{one:"mwens pase yon segond",other:"mwens pase {{count}} segond"},xSeconds:{one:"1 segond",other:"{{count}} segond"},halfAMinute:"30 segond",lessThanXMinutes:{one:"mwens pase yon minit",other:"mwens pase {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"anviwon inè",other:"anviwon {{count}} è"},xHours:{one:"1 lè",other:"{{count}} lè"},xDays:{one:"1 jou",other:"{{count}} jou"},aboutXWeeks:{one:"anviwon 1 semèn",other:"anviwon {{count}} semèn"},xWeeks:{one:"1 semèn",other:"{{count}} semèn"},aboutXMonths:{one:"anviwon 1 mwa",other:"anviwon {{count}} mwa"},xMonths:{one:"1 mwa",other:"{{count}} mwa"},aboutXYears:{one:"anviwon 1 an",other:"anviwon {{count}} an"},xYears:{one:"1 an",other:"{{count}} an"},overXYears:{one:"plis pase 1 an",other:"plis pase {{count}} an"},almostXYears:{one:"prèske 1 an",other:"prèske {{count}} an"}},af={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'nan lè' {{time}}",long:"{{date}} 'nan lè' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},sf={lastWeek:"eeee 'pase nan lè' p",yesterday:"'yè nan lè' p",today:"'jodi a' p",tomorrow:"'demen nan lè' p'",nextWeek:"eeee 'pwochen nan lè' p",other:"P"},lf={ordinalNumber:(e,t)=>{const n=Number(e);return 0===n?String(n):n+(1===n?"ye":"yèm")},era:zo({values:{narrow:["av. J.-K","ap. J.-K"],abbreviated:["av. J.-K","ap. J.-K"],wide:["anvan Jezi Kris","apre Jezi Kris"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1ye trim.","2yèm trim.","3yèm trim.","4yèm trim."],wide:["1ye trimès","2yèm trimès","3yèm trimès","4yèm trimès"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["janv.","fevr.","mas","avr.","me","jen","jiyè","out","sept.","okt.","nov.","des."],wide:["janvye","fevrye","mas","avril","me","jen","jiyè","out","septanm","oktòb","novanm","desanm"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","M","J","V","S"],short:["di","le","ma","mè","je","va","sa"],abbreviated:["dim.","len.","mad.","mèk.","jed.","van.","sam."],wide:["dimanch","lendi","madi","mèkredi","jedi","vandredi","samdi"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"swa",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"maten",afternoon:"aprèmidi",evening:"swa",night:"maten"},wide:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"nan maten",afternoon:"nan aprèmidi",evening:"nan aswè",night:"nan maten"}},defaultWidth:"wide"})},uf={ordinalNumber:Lo({matchPattern:/^(\d+)(ye|yèm)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,wide:/^(avan Jezi Kris|apre Jezi Kris)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](ye|yèm)? trimès/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i,wide:/^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^av/i,/^me/i,/^je/i,/^ji/i,/^ou/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|le|ma|me|je|va|sa)/i,abbreviated:/^(dim|len|mad|mèk|jed|van|sam)\.?/i,wide:/^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^le/i,/^ma/i,/^mè/i,/^je/i,/^va/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,any:/^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/sw/i,night:/nwit/i}},defaultParseWidth:"any"})},cf={code:"ht",formatDistance:(e,t,n)=>{let r;const i=of[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"nan "+r:"sa fè "+r:r},formatLong:af,formatRelative:(e,t,n,r)=>sf[e],localize:lf,match:uf,options:{weekStartsOn:1,firstWeekContainsDate:4}},df={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},ff={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},hf={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},pf={date:jo({formats:{full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},mf=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function gf(e){return t=>{const n=mf[t.getDay()];return`${e?"":"'múlt' "}'${n}' p'-kor'`}}const vf={lastWeek:gf(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:gf(!0),other:"P"},Of={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},defaultWidth:"wide",argumentCallback:e=>e-1,formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},defaultFormattingWidth:"wide"}),month:zo({values:{narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},defaultWidth:"wide"})},yf={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},defaultParseWidth:"any"})},bf={code:"hu",formatDistance:(e,t,n)=>{const r=e.match(/about|over|almost|lessthan/i),i=r?e.replace(r[0],""):e,o=!0===n?.addSuffix,a=i.toLowerCase(),s=o?hf[a][n?.comparison||0]:ff[a];let l="halfaminute"===a?s:t+s;if(r){const e=r[0].toLowerCase();l=df[e]+" "+l}return l},formatLong:pf,formatRelative:(e,t)=>{const n=vf[e];return"function"==typeof n?n(t):n},localize:Of,match:yf,options:{weekStartsOn:1,firstWeekContainsDate:4}},wf={lessThanXSeconds:{one:"ավելի քիչ քան 1 վայրկյան",other:"ավելի քիչ քան {{count}} վայրկյան"},xSeconds:{one:"1 վայրկյան",other:"{{count}} վայրկյան"},halfAMinute:"կես րոպե",lessThanXMinutes:{one:"ավելի քիչ քան 1 րոպե",other:"ավելի քիչ քան {{count}} րոպե"},xMinutes:{one:"1 րոպե",other:"{{count}} րոպե"},aboutXHours:{one:"մոտ 1 ժամ",other:"մոտ {{count}} ժամ"},xHours:{one:"1 ժամ",other:"{{count}} ժամ"},xDays:{one:"1 օր",other:"{{count}} օր"},aboutXWeeks:{one:"մոտ 1 շաբաթ",other:"մոտ {{count}} շաբաթ"},xWeeks:{one:"1 շաբաթ",other:"{{count}} շաբաթ"},aboutXMonths:{one:"մոտ 1 ամիս",other:"մոտ {{count}} ամիս"},xMonths:{one:"1 ամիս",other:"{{count}} ամիս"},aboutXYears:{one:"մոտ 1 տարի",other:"մոտ {{count}} տարի"},xYears:{one:"1 տարի",other:"{{count}} տարի"},overXYears:{one:"ավելի քան 1 տարի",other:"ավելի քան {{count}} տարի"},almostXYears:{one:"համարյա 1 տարի",other:"համարյա {{count}} տարի"}},kf={date:jo({formats:{full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'ժ․'{{time}}",long:"{{date}} 'ժ․'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},xf={lastWeek:"'նախորդ' eeee p'֊ին'",yesterday:"'երեկ' p'֊ին'",today:"'այսօր' p'֊ին'",tomorrow:"'վաղը' p'֊ին'",nextWeek:"'հաջորդ' eeee p'֊ին'",other:"P"},_f={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;return r<10&&r%10==1?n+"֊ին":n+"֊րդ"},era:zo({values:{narrow:["Ք","Մ"],abbreviated:["ՔԱ","ՄԹ"],wide:["Քրիստոսից առաջ","Մեր թվարկության"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Ք1","Ք2","Ք3","Ք4"],wide:["1֊ին քառորդ","2֊րդ քառորդ","3֊րդ քառորդ","4֊րդ քառորդ"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],abbreviated:["հուն","փետ","մար","ապր","մայ","հուն","հուլ","օգս","սեպ","հոկ","նոյ","դեկ"],wide:["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],short:["կր","եր","եք","չք","հգ","ուր","շբ"],abbreviated:["կիր","երկ","երք","չոր","հնգ","ուրբ","շաբ"],wide:["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"}},defaultFormattingWidth:"wide"})},Sf={ordinalNumber:Lo({matchPattern:/^(\d+)((-|֊)?(ին|րդ))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ք/i,/^մ/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},defaultParseWidth:"any"})},Pf={code:"hy",formatDistance:(e,t,n)=>{let r;const i=wf[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" հետո":r+" առաջ":r},formatLong:kf,formatRelative:(e,t,n,r)=>xf[e],localize:_f,match:Sf,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ef={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Cf={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Tf={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},$f={ordinalNumber:(e,t)=>"ke-"+Number(e),era:zo({values:{narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},defaultFormattingWidth:"wide"})},Qf={ordinalNumber:Lo({matchPattern:/^ke-(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^(m|e)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},defaultParseWidth:"any"})},Rf={code:"id",formatDistance:(e,t,n)=>{let r;const i=Ef[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+r:r+" yang lalu":r},formatLong:Cf,formatRelative:(e,t,n,r)=>Tf[e],localize:$f,match:Qf,options:{weekStartsOn:1,firstWeekContainsDate:1}},Af={lessThanXSeconds:{one:"minna en 1 sekúnda",other:"minna en {{count}} sekúndur"},xSeconds:{one:"1 sekúnda",other:"{{count}} sekúndur"},halfAMinute:"hálf mínúta",lessThanXMinutes:{one:"minna en 1 mínúta",other:"minna en {{count}} mínútur"},xMinutes:{one:"1 mínúta",other:"{{count}} mínútur"},aboutXHours:{one:"u.þ.b. 1 klukkustund",other:"u.þ.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.þ.b. 1 mánuður",other:"u.þ.b. {{count}} mánuðir"},xMonths:{one:"1 mánuður",other:"{{count}} mánuðir"},aboutXYears:{one:"u.þ.b. 1 ár",other:"u.þ.b. {{count}} ár"},xYears:{one:"1 ár",other:"{{count}} ár"},overXYears:{one:"meira en 1 ár",other:"meira en {{count}} ár"},almostXYears:{one:"næstum 1 ár",other:"næstum {{count}} ár"}},jf={date:jo({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Df={lastWeek:"'síðasta' dddd 'kl.' p",yesterday:"'í gær kl.' p",today:"'í dag kl.' p",tomorrow:"'á morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},Mf={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fjórðungur","2. fjórðungur","3. fjórðungur","4. fjórðungur"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","Á","S","Ó","N","D"],abbreviated:["jan.","feb.","mars","apríl","maí","júní","júlí","ágúst","sept.","okt.","nóv.","des."],wide:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","Þ","M","F","F","L"],short:["Su","Má","Þr","Mi","Fi","Fö","La"],abbreviated:["sun.","mán.","þri.","mið.","fim.","fös.","lau."],wide:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"f",pm:"e",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"f",pm:"e",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"}},defaultFormattingWidth:"wide"})},If={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+(\.)?/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},defaultParseWidth:"any"})},zf={code:"is",formatDistance:(e,t,n)=>{let r;const i=Af[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"í "+r:r+" síðan":r},formatLong:jf,formatRelative:(e,t,n,r)=>Df[e],localize:Mf,match:If,options:{weekStartsOn:1,firstWeekContainsDate:4}},Wf={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Nf=(e,t,n)=>{let r;const i=Wf[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},Lf={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ff=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Uf(e){return"'"+Ff[e]+" alle' p"}const Xf={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?Uf(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Ff[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?Uf(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Ff[e]+" prossimo alle' p"}(r)},other:"P"},qf=(e,t,n,r)=>{const i=Xf[e];return"function"==typeof i?i(t,n,r):i},Bf={ordinalNumber:(e,t)=>{const n=Number(e);return String(n)},era:zo({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},Vf={ordinalNumber:Lo({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},Yf={code:"it",formatDistance:Nf,formatLong:Lf,formatRelative:qf,localize:Bf,match:Vf,options:{weekStartsOn:1,firstWeekContainsDate:4}},Zf={code:"it-CH",formatDistance:Nf,formatLong:{date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},formatRelative:qf,localize:Bf,match:Vf,options:{weekStartsOn:1,firstWeekContainsDate:4}},Gf={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Hf={date:jo({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Kf={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Jf={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"year":return`${n}年`;case"quarter":return`第${n}四半期`;case"month":return`${n}月`;case"week":return`第${n}週`;case"date":return`${n}日`;case"hour":return`${n}時`;case"minute":return`${n}分`;case"second":return`${n}秒`;default:return`${n}`}},era:zo({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:zo({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},eh={ordinalNumber:Lo({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},th={code:"ja",formatDistance:(e,t,n)=>{let r;n=n||{};const i=Gf[e];return r="string"==typeof i?i:1===t?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+"後":r+"前":r},formatLong:Hf,formatRelative:(e,t,n,r)=>Kf[e],localize:Jf,match:eh,options:{weekStartsOn:0,firstWeekContainsDate:1}},nh={lessThanXSeconds:{one:"1びょうみまん",other:"{{count}}びょうみまん",oneWithSuffix:"やく1びょう",otherWithSuffix:"やく{{count}}びょう"},xSeconds:{one:"1びょう",other:"{{count}}びょう"},halfAMinute:"30びょう",lessThanXMinutes:{one:"1ぷんみまん",other:"{{count}}ふんみまん",oneWithSuffix:"やく1ぷん",otherWithSuffix:"やく{{count}}ふん"},xMinutes:{one:"1ぷん",other:"{{count}}ふん"},aboutXHours:{one:"やく1じかん",other:"やく{{count}}じかん"},xHours:{one:"1じかん",other:"{{count}}じかん"},xDays:{one:"1にち",other:"{{count}}にち"},aboutXWeeks:{one:"やく1しゅうかん",other:"やく{{count}}しゅうかん"},xWeeks:{one:"1しゅうかん",other:"{{count}}しゅうかん"},aboutXMonths:{one:"やく1かげつ",other:"やく{{count}}かげつ"},xMonths:{one:"1かげつ",other:"{{count}}かげつ"},aboutXYears:{one:"やく1ねん",other:"やく{{count}}ねん"},xYears:{one:"1ねん",other:"{{count}}ねん"},overXYears:{one:"1ねんいじょう",other:"{{count}}ねんいじょう"},almostXYears:{one:"1ねんちかく",other:"{{count}}ねんちかく"}},rh={date:jo({formats:{full:"yねんMがつdにちEEEE",long:"yねんMがつdにち",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:jo({formats:{full:"Hじmmふんssびょう zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ih={lastWeek:"せんしゅうのeeeeのp",yesterday:"きのうのp",today:"きょうのp",tomorrow:"あしたのp",nextWeek:"よくしゅうのeeeeのp",other:"P"},oh={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"year":return`${n}ねん`;case"quarter":return`だい${n}しはんき`;case"month":return`${n}がつ`;case"week":return`だい${n}しゅう`;case"date":return`${n}にち`;case"hour":return`${n}じ`;case"minute":return`${n}ふん`;case"second":return`${n}びょう`;default:return`${n}`}},era:zo({values:{narrow:["BC","AC"],abbreviated:["きげんぜん","せいれき"],wide:["きげんぜん","せいれき"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["だい1しはんき","だい2しはんき","だい3しはんき","だい4しはんき"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1がつ","2がつ","3がつ","4がつ","5がつ","6がつ","7がつ","8がつ","9がつ","10がつ","11がつ","12がつ"],wide:["1がつ","2がつ","3がつ","4がつ","5がつ","6がつ","7がつ","8がつ","9がつ","10がつ","11がつ","12がつ"]},defaultWidth:"wide"}),day:zo({values:{narrow:["にち","げつ","か","すい","もく","きん","ど"],short:["にち","げつ","か","すい","もく","きん","ど"],abbreviated:["にち","げつ","か","すい","もく","きん","ど"],wide:["にちようび","げつようび","かようび","すいようび","もくようび","きんようび","どようび"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},abbreviated:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},wide:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},abbreviated:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},wide:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"}},defaultFormattingWidth:"wide"})},ah={ordinalNumber:Lo({matchPattern:/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(きげん[前後]|せいれき)/i,wide:/^(きげん[前後]|せいれき)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(きげんぜん)/i,/^(せいれき|きげんご)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^だい[1234一二三四1234]しはんき/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])がつ/i,wide:/^([123456789]|1[012])がつ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(にち|げつ|か|すい|もく|きん|ど)/,short:/^(にち|げつ|か|すい|もく|きん|ど)/,abbreviated:/^(にち|げつ|か|すい|もく|きん|ど)/,wide:/^(にち|げつ|か|すい|もく|きん|ど)ようび/},defaultMatchWidth:"wide",parsePatterns:{any:[/^にち/,/^げつ/,/^か/,/^すい/,/^もく/,/^きん/,/^ど/]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|ごぜん)/i,pm:/^(P|ごご)/i,midnight:/^しんや|まよなか/i,noon:/^しょうご/i,morning:/^あさ/i,afternoon:/^ごご/i,evening:/^よる/i,night:/^しんや/i}},defaultParseWidth:"any"})},sh={code:"ja-Hira",formatDistance:(e,t,n)=>{let r;n=n||{};const i=nh[e];return r="string"==typeof i?i:1===t?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+"あと":r+"まえ":r},formatLong:rh,formatRelative:(e,t,n,r)=>ih[e],localize:oh,match:ah,options:{weekStartsOn:0,firstWeekContainsDate:1}},lh={lessThanXSeconds:{past:"{{count}} წამზე ნაკლები ხნის წინ",present:"{{count}} წამზე ნაკლები",future:"{{count}} წამზე ნაკლებში"},xSeconds:{past:"{{count}} წამის წინ",present:"{{count}} წამი",future:"{{count}} წამში"},halfAMinute:{past:"ნახევარი წუთის წინ",present:"ნახევარი წუთი",future:"ნახევარი წუთში"},lessThanXMinutes:{past:"{{count}} წუთზე ნაკლები ხნის წინ",present:"{{count}} წუთზე ნაკლები",future:"{{count}} წუთზე ნაკლებში"},xMinutes:{past:"{{count}} წუთის წინ",present:"{{count}} წუთი",future:"{{count}} წუთში"},aboutXHours:{past:"დაახლოებით {{count}} საათის წინ",present:"დაახლოებით {{count}} საათი",future:"დაახლოებით {{count}} საათში"},xHours:{past:"{{count}} საათის წინ",present:"{{count}} საათი",future:"{{count}} საათში"},xDays:{past:"{{count}} დღის წინ",present:"{{count}} დღე",future:"{{count}} დღეში"},aboutXWeeks:{past:"დაახლოებით {{count}} კვირას წინ",present:"დაახლოებით {{count}} კვირა",future:"დაახლოებით {{count}} კვირაში"},xWeeks:{past:"{{count}} კვირას კვირა",present:"{{count}} კვირა",future:"{{count}} კვირაში"},aboutXMonths:{past:"დაახლოებით {{count}} თვის წინ",present:"დაახლოებით {{count}} თვე",future:"დაახლოებით {{count}} თვეში"},xMonths:{past:"{{count}} თვის წინ",present:"{{count}} თვე",future:"{{count}} თვეში"},aboutXYears:{past:"დაახლოებით {{count}} წლის წინ",present:"დაახლოებით {{count}} წელი",future:"დაახლოებით {{count}} წელში"},xYears:{past:"{{count}} წლის წინ",present:"{{count}} წელი",future:"{{count}} წელში"},overXYears:{past:"{{count}} წელზე მეტი ხნის წინ",present:"{{count}} წელზე მეტი",future:"{{count}} წელზე მეტი ხნის შემდეგ"},almostXYears:{past:"თითქმის {{count}} წლის წინ",present:"თითქმის {{count}} წელი",future:"თითქმის {{count}} წელში"}},uh={date:jo({formats:{full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}'-ზე'",long:"{{date}} {{time}}'-ზე'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ch={lastWeek:"'წინა' eeee p'-ზე'",yesterday:"'გუშინ' p'-ზე'",today:"'დღეს' p'-ზე'",tomorrow:"'ხვალ' p'-ზე'",nextWeek:"'შემდეგი' eeee p'-ზე'",other:"P"},dh={ordinalNumber:e=>{const t=Number(e);return 1===t?t+"-ლი":t+"-ე"},era:zo({values:{narrow:["ჩ.წ-მდე","ჩ.წ"],abbreviated:["ჩვ.წ-მდე","ჩვ.წ"],wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ლი კვ","2-ე კვ","3-ე კვ","4-ე კვ"],wide:["1-ლი კვარტალი","2-ე კვარტალი","3-ე კვარტალი","4-ე კვარტალი"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ია","თე","მა","აპ","მს","ვნ","ვლ","აგ","სე","ოქ","ნო","დე"],abbreviated:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],wide:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},defaultWidth:"wide"}),day:zo({values:{narrow:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],short:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],abbreviated:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],wide:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"}},defaultFormattingWidth:"wide"})},fh={ordinalNumber:Lo({matchPattern:/^(\d+)(-ლი|-ე)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},defaultMatchWidth:"any",parsePatterns:{any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},defaultParseWidth:"any"})},hh={code:"ka",formatDistance:(e,t,n)=>{let r;const i=lh[e];return r="string"==typeof i?i:n?.addSuffix&&n.comparison&&n.comparison>0?i.future.replace("{{count}}",String(t)):n?.addSuffix?i.past.replace("{{count}}",String(t)):i.present.replace("{{count}}",String(t)),r},formatLong:uh,formatRelative:(e,t,n,r)=>ch[e],localize:dh,match:fh,options:{weekStartsOn:1,firstWeekContainsDate:1}},ph={lessThanXSeconds:{regular:{one:"1 секундтан аз",singularNominative:"{{count}} секундтан аз",singularGenitive:"{{count}} секундтан аз",pluralGenitive:"{{count}} секундтан аз"},future:{one:"бір секундтан кейін",singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},xSeconds:{regular:{singularNominative:"{{count}} секунд",singularGenitive:"{{count}} секунд",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунд бұрын",singularGenitive:"{{count}} секунд бұрын",pluralGenitive:"{{count}} секунд бұрын"},future:{singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},halfAMinute:e=>e?.addSuffix?e.comparison&&e.comparison>0?"жарты минут ішінде":"жарты минут бұрын":"жарты минут",lessThanXMinutes:{regular:{one:"1 минуттан аз",singularNominative:"{{count}} минуттан аз",singularGenitive:"{{count}} минуттан аз",pluralGenitive:"{{count}} минуттан аз"},future:{one:"минуттан кем ",singularNominative:"{{count}} минуттан кем",singularGenitive:"{{count}} минуттан кем",pluralGenitive:"{{count}} минуттан кем"}},xMinutes:{regular:{singularNominative:"{{count}} минут",singularGenitive:"{{count}} минут",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минут бұрын",singularGenitive:"{{count}} минут бұрын",pluralGenitive:"{{count}} минут бұрын"},future:{singularNominative:"{{count}} минуттан кейін",singularGenitive:"{{count}} минуттан кейін",pluralGenitive:"{{count}} минуттан кейін"}},aboutXHours:{regular:{singularNominative:"шамамен {{count}} сағат",singularGenitive:"шамамен {{count}} сағат",pluralGenitive:"шамамен {{count}} сағат"},future:{singularNominative:"шамамен {{count}} сағаттан кейін",singularGenitive:"шамамен {{count}} сағаттан кейін",pluralGenitive:"шамамен {{count}} сағаттан кейін"}},xHours:{regular:{singularNominative:"{{count}} сағат",singularGenitive:"{{count}} сағат",pluralGenitive:"{{count}} сағат"}},xDays:{regular:{singularNominative:"{{count}} күн",singularGenitive:"{{count}} күн",pluralGenitive:"{{count}} күн"},future:{singularNominative:"{{count}} күннен кейін",singularGenitive:"{{count}} күннен кейін",pluralGenitive:"{{count}} күннен кейін"}},aboutXWeeks:{type:"weeks",one:"шамамен 1 апта",other:"шамамен {{count}} апта"},xWeeks:{type:"weeks",one:"1 апта",other:"{{count}} апта"},aboutXMonths:{regular:{singularNominative:"шамамен {{count}} ай",singularGenitive:"шамамен {{count}} ай",pluralGenitive:"шамамен {{count}} ай"},future:{singularNominative:"шамамен {{count}} айдан кейін",singularGenitive:"шамамен {{count}} айдан кейін",pluralGenitive:"шамамен {{count}} айдан кейін"}},xMonths:{regular:{singularNominative:"{{count}} ай",singularGenitive:"{{count}} ай",pluralGenitive:"{{count}} ай"}},aboutXYears:{regular:{singularNominative:"шамамен {{count}} жыл",singularGenitive:"шамамен {{count}} жыл",pluralGenitive:"шамамен {{count}} жыл"},future:{singularNominative:"шамамен {{count}} жылдан кейін",singularGenitive:"шамамен {{count}} жылдан кейін",pluralGenitive:"шамамен {{count}} жылдан кейін"}},xYears:{regular:{singularNominative:"{{count}} жыл",singularGenitive:"{{count}} жыл",pluralGenitive:"{{count}} жыл"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}},overXYears:{regular:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"},future:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"}},almostXYears:{regular:{singularNominative:"{{count}} жылға жақын",singularGenitive:"{{count}} жылға жақын",pluralGenitive:"{{count}} жылға жақын"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}}};function mh(e,t){if(e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}const gh={date:jo({formats:{full:"EEEE, do MMMM y 'ж.'",long:"do MMMM y 'ж.'",medium:"d MMM y 'ж.'",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},vh=["жексенбіде","дүйсенбіде","сейсенбіде","сәрсенбіде","бейсенбіде","жұмада","сенбіде"];function Oh(e){return"'"+vh[e]+" сағат' p'-де'"}const yh={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?Oh(r):function(e){return"'өткен "+vh[e]+" сағат' p'-де'"}(r)},yesterday:"'кеше сағат' p'-де'",today:"'бүгін сағат' p'-де'",tomorrow:"'ертең сағат' p'-де'",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?Oh(r):function(e){return"'келесі "+vh[e]+" сағат' p'-де'"}(r)},other:"P"},bh={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},wh={ordinalNumber:(e,t)=>{const n=Number(e),r=n>=100?100:null;return n+(bh[n]||bh[n%10]||r&&bh[r]||"")},era:zo({values:{narrow:["б.з.д.","б.з."],abbreviated:["б.з.д.","б.з."],wide:["біздің заманымызға дейін","біздің заманымыз"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ші тоқ.","2-ші тоқ.","3-ші тоқ.","4-ші тоқ."],wide:["1-ші тоқсан","2-ші тоқсан","3-ші тоқсан","4-ші тоқсан"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},defaultWidth:"wide",formattingValues:{narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Ж","Д","С","С","Б","Ж","С"],short:["жс","дс","сс","ср","бс","жм","сб"],abbreviated:["жс","дс","сс","ср","бс","жм","сб"],wide:["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"}},defaultWidth:"any",formattingValues:{narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түс",morning:"таң",afternoon:"күн",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түсте",morning:"таңертең",afternoon:"күндіз",evening:"кеште",night:"түнде"}},defaultFormattingWidth:"wide"})},kh={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(ші|шы))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^б/i,/^з/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},defaultParseWidth:"any"})},xh={code:"kk",formatDistance:(e,t,n)=>{const r=ph[e];return"function"==typeof r?r(n):"weeks"===r.type?1===t?r.one:r.other.replace("{{count}}",String(t)):n?.addSuffix?n.comparison&&n.comparison>0?r.future?mh(r.future,t):mh(r.regular,t)+" кейін":r.past?mh(r.past,t):mh(r.regular,t)+" бұрын":mh(r.regular,t)},formatLong:gh,formatRelative:(e,t,n,r)=>{const i=yh[e];return"function"==typeof i?i(t,n,r):i},localize:wh,match:kh,options:{weekStartsOn:1,firstWeekContainsDate:1}},_h={lessThanXSeconds:"តិចជាង {{count}} វិនាទី",xSeconds:"{{count}} វិនាទី",halfAMinute:"កន្លះនាទី",lessThanXMinutes:"តិចជាង {{count}} នាទី",xMinutes:"{{count}} នាទី",aboutXHours:"ប្រហែល {{count}} ម៉ោង",xHours:"{{count}} ម៉ោង",xDays:"{{count}} ថ្ងៃ",aboutXWeeks:"ប្រហែល {{count}} សប្តាហ៍",xWeeks:"{{count}} សប្តាហ៍",aboutXMonths:"ប្រហែល {{count}} ខែ",xMonths:"{{count}} ខែ",aboutXYears:"ប្រហែល {{count}} ឆ្នាំ",xYears:"{{count}} ឆ្នាំ",overXYears:"ជាង {{count}} ឆ្នាំ",almostXYears:"ជិត {{count}} ឆ្នាំ"},Sh={date:jo({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a",long:"h:mm:ss a",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'ម៉ោង' {{time}}",long:"{{date}} 'ម៉ោង' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ph={lastWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p",yesterday:"'ម្សិលមិញនៅម៉ោង' p",today:"'ថ្ងៃនេះម៉ោង' p",tomorrow:"'ថ្ងៃស្អែកម៉ោង' p",nextWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p",other:"P"},Eh={ordinalNumber:(e,t)=>Number(e).toString(),era:zo({values:{narrow:["ម.គស","គស"],abbreviated:["មុនគ.ស","គ.ស"],wide:["មុនគ្រិស្តសករាជ","នៃគ្រិស្តសករាជ"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ត្រីមាសទី 1","ត្រីមាសទី 2","ត្រីមាសទី 3","ត្រីមាសទី 4"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ម.ក","ក.ម","មិ","ម.ស","ឧ.ស","ម.ថ","ក.ដ","សី","កញ","តុ","វិ","ធ"],abbreviated:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],wide:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"]},defaultWidth:"wide"}),day:zo({values:{narrow:["អា","ច","អ","ព","ព្រ","សុ","ស"],short:["អា","ច","អ","ព","ព្រ","សុ","ស"],abbreviated:["អា","ច","អ","ព","ព្រ","សុ","ស"],wide:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},abbreviated:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},wide:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},abbreviated:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},wide:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"}},defaultFormattingWidth:"wide"})},Ch={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(ម\.)?គស/i,abbreviated:/^(មុន)?គ\.ស/i,wide:/^(មុន|នៃ)គ្រិស្តសករាជ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(ម|មុន)គ\.?ស/i,/^(នៃ)?គ\.?ស/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^(ត្រីមាស)(ទី)?\s?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i,abbreviated:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i,wide:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ម\.ក/i,/^ក\.ម/i,/^មិ/i,/^ម\.ស/i,/^ឧ\.ស/i,/^ម\.ថ/i,/^ក\.ដ/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិ/i,/^ធ/i],any:[/^មក/i,/^កុ/i,/^មីន/i,/^មេ/i,/^ឧស/i,/^មិថ/i,/^កក/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិច/i,/^ធ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,short:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,abbreviated:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,wide:/^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^ស/i],any:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^សៅ/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i,any:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ព្រឹក/i,pm:/^ល្ងាច/i,midnight:/^ពេលកណ្ដាលអធ្រាត្រ/i,noon:/^ពេលថ្ងៃត្រង់/i,morning:/ពេលព្រឹក/i,afternoon:/ពេលរសៀល/i,evening:/ពេលល្ងាច/i,night:/ពេលយប់/i}},defaultParseWidth:"any"})},Th={code:"km",formatDistance:(e,t,n)=>{let r=_h[e];return"number"==typeof t&&(r=r.replace("{{count}}",t.toString())),n?.addSuffix?n.comparison&&n.comparison>0?"ក្នុងរយៈពេល "+r:r+"មុន":r},formatLong:Sh,formatRelative:(e,t,n,r)=>Ph[e],localize:Eh,match:Ch,options:{weekStartsOn:0,firstWeekContainsDate:1}},$h={lessThanXSeconds:{one:{default:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",future:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",past:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ"},other:{default:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",future:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",past:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ"}},xSeconds:{one:{default:"1 ಸೆಕೆಂಡ್",future:"1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ",past:"1 ಸೆಕೆಂಡ್ ಹಿಂದೆ"},other:{default:"{{count}} ಸೆಕೆಂಡುಗಳು",future:"{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ",past:"{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ"}},halfAMinute:{other:{default:"ಅರ್ಧ ನಿಮಿಷ",future:"ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ",past:"ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ"}},lessThanXMinutes:{one:{default:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",future:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",past:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ"},other:{default:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",future:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",past:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ"}},xMinutes:{one:{default:"1 ನಿಮಿಷ",future:"1 ನಿಮಿಷದಲ್ಲಿ",past:"1 ನಿಮಿಷದ ಹಿಂದೆ"},other:{default:"{{count}} ನಿಮಿಷಗಳು",future:"{{count}} ನಿಮಿಷಗಳಲ್ಲಿ",past:"{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ"}},aboutXHours:{one:{default:"ಸುಮಾರು 1 ಗಂಟೆ",future:"ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ",past:"ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳು",future:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ"}},xHours:{one:{default:"1 ಗಂಟೆ",future:"1 ಗಂಟೆಯಲ್ಲಿ",past:"1 ಗಂಟೆ ಹಿಂದೆ"},other:{default:"{{count}} ಗಂಟೆಗಳು",future:"{{count}} ಗಂಟೆಗಳಲ್ಲಿ",past:"{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ"}},xDays:{one:{default:"1 ದಿನ",future:"1 ದಿನದಲ್ಲಿ",past:"1 ದಿನದ ಹಿಂದೆ"},other:{default:"{{count}} ದಿನಗಳು",future:"{{count}} ದಿನಗಳಲ್ಲಿ",past:"{{count}} ದಿನಗಳ ಹಿಂದೆ"}},aboutXMonths:{one:{default:"ಸುಮಾರು 1 ತಿಂಗಳು",future:"ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ",past:"ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ತಿಂಗಳು",future:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}},xMonths:{one:{default:"1 ತಿಂಗಳು",future:"1 ತಿಂಗಳಲ್ಲಿ",past:"1 ತಿಂಗಳ ಹಿಂದೆ"},other:{default:"{{count}} ತಿಂಗಳು",future:"{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ",past:"{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}},aboutXYears:{one:{default:"ಸುಮಾರು 1 ವರ್ಷ",future:"ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ",past:"ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ವರ್ಷಗಳು",future:"ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ"}},xYears:{one:{default:"1 ವರ್ಷ",future:"1 ವರ್ಷದಲ್ಲಿ",past:"1 ವರ್ಷದ ಹಿಂದೆ"},other:{default:"{{count}} ವರ್ಷಗಳು",future:"{{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"{{count}} ವರ್ಷಗಳ ಹಿಂದೆ"}},overXYears:{one:{default:"1 ವರ್ಷದ ಮೇಲೆ",future:"1 ವರ್ಷದ ಮೇಲೆ",past:"1 ವರ್ಷದ ಮೇಲೆ"},other:{default:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ",future:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ",past:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ"}},almostXYears:{one:{default:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ",future:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ",past:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ"},other:{default:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ",future:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ"}}};function Qh(e,t){return t?.addSuffix?t.comparison&&t.comparison>0?e.future:e.past:e.default}const Rh={date:jo({formats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"d/M/yy"},defaultWidth:"full"}),time:jo({formats:{full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ah={lastWeek:"'ಕಳೆದ' eeee p 'ಕ್ಕೆ'",yesterday:"'ನಿನ್ನೆ' p 'ಕ್ಕೆ'",today:"'ಇಂದು' p 'ಕ್ಕೆ'",tomorrow:"'ನಾಳೆ' p 'ಕ್ಕೆ'",nextWeek:"eeee p 'ಕ್ಕೆ'",other:"P"},jh={ordinalNumber:(e,t)=>Number(e)+"ನೇ",era:zo({values:{narrow:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],abbreviated:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],wide:["ಕ್ರಿಸ್ತ ಪೂರ್ವ","ಕ್ರಿಸ್ತ ಶಕ"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["ತ್ರೈ 1","ತ್ರೈ 2","ತ್ರೈ 3","ತ್ರೈ 4"],wide:["1ನೇ ತ್ರೈಮಾಸಿಕ","2ನೇ ತ್ರೈಮಾಸಿಕ","3ನೇ ತ್ರೈಮಾಸಿಕ","4ನೇ ತ್ರೈಮಾಸಿಕ"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ಜ","ಫೆ","ಮಾ","ಏ","ಮೇ","ಜೂ","ಜು","ಆ","ಸೆ","ಅ","ನ","ಡಿ"],abbreviated:["ಜನ","ಫೆಬ್ರ","ಮಾರ್ಚ್","ಏಪ್ರಿ","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗ","ಸೆಪ್ಟೆಂ","ಅಕ್ಟೋ","ನವೆಂ","ಡಿಸೆಂ"],wide:["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಏಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟೆಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ಭಾ","ಸೋ","ಮಂ","ಬು","ಗು","ಶು","ಶ"],short:["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],abbreviated:["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],wide:["ಭಾನುವಾರ","ಸೋಮವಾರ","ಮಂಗಳವಾರ","ಬುಧವಾರ","ಗುರುವಾರ","ಶುಕ್ರವಾರ","ಶನಿವಾರ"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾಹ್ನ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾಹ್ನ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},abbreviated:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},wide:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ಪೂ",pm:"ಅ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},abbreviated:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯ ರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},wide:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯ ರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"}},defaultFormattingWidth:"wide"})},Dh={ordinalNumber:Lo({matchPattern:/^(\d+)(ನೇ|ನೆ)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i,abbreviated:/^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i,wide:/^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ಪೂ/i,/^(ಶ|ಪ್ರ)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i,wide:/^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i,abbreviated:/^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i,wide:/^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ಜ$/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂ/i,/^ಜು$/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i],any:[/^ಜನ/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂನ್/i,/^ಜುಲೈ/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i,short:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,abbreviated:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,wide:/^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i],any:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i,any:/^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ಪೂ/i,pm:/^ಅ/i,midnight:/ಮಧ್ಯರಾತ್ರಿ/i,noon:/ಮಧ್ಯಾನ್ಹ/i,morning:/ಬೆಳಗ್ಗೆ/i,afternoon:/ಮಧ್ಯಾನ್ಹ/i,evening:/ಸಂಜೆ/i,night:/ರಾತ್ರಿ/i}},defaultParseWidth:"any"})},Mh={code:"kn",formatDistance:(e,t,n)=>{let r;const i=$h[e];return r=i.one&&1===t?Qh(i.one,n):Qh(i.other,n),r.replace("{{count}}",String(t))},formatLong:Rh,formatRelative:(e,t,n,r)=>Ah[e],localize:jh,match:Dh,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ih={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},zh={date:jo({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:jo({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Wh={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Nh={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:zo({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:zo({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},Lh={ordinalNumber:Lo({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},Fh={code:"ko",formatDistance:(e,t,n)=>{let r;const i=Ih[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},formatLong:zh,formatRelative:(e,t,n,r)=>Wh[e],localize:Nh,match:Lh,options:{weekStartsOn:0,firstWeekContainsDate:1}},Uh={lessThanXSeconds:{standalone:{one:"manner wéi eng Sekonn",other:"manner wéi {{count}} Sekonnen"},withPreposition:{one:"manner wéi enger Sekonn",other:"manner wéi {{count}} Sekonnen"}},xSeconds:{standalone:{one:"eng Sekonn",other:"{{count}} Sekonnen"},withPreposition:{one:"enger Sekonn",other:"{{count}} Sekonnen"}},halfAMinute:{standalone:"eng hallef Minutt",withPreposition:"enger hallwer Minutt"},lessThanXMinutes:{standalone:{one:"manner wéi eng Minutt",other:"manner wéi {{count}} Minutten"},withPreposition:{one:"manner wéi enger Minutt",other:"manner wéi {{count}} Minutten"}},xMinutes:{standalone:{one:"eng Minutt",other:"{{count}} Minutten"},withPreposition:{one:"enger Minutt",other:"{{count}} Minutten"}},aboutXHours:{standalone:{one:"ongeféier eng Stonn",other:"ongeféier {{count}} Stonnen"},withPreposition:{one:"ongeféier enger Stonn",other:"ongeféier {{count}} Stonnen"}},xHours:{standalone:{one:"eng Stonn",other:"{{count}} Stonnen"},withPreposition:{one:"enger Stonn",other:"{{count}} Stonnen"}},xDays:{standalone:{one:"een Dag",other:"{{count}} Deeg"},withPreposition:{one:"engem Dag",other:"{{count}} Deeg"}},aboutXWeeks:{standalone:{one:"ongeféier eng Woch",other:"ongeféier {{count}} Wochen"},withPreposition:{one:"ongeféier enger Woche",other:"ongeféier {{count}} Wochen"}},xWeeks:{standalone:{one:"eng Woch",other:"{{count}} Wochen"},withPreposition:{one:"enger Woch",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"ongeféier ee Mount",other:"ongeféier {{count}} Méint"},withPreposition:{one:"ongeféier engem Mount",other:"ongeféier {{count}} Méint"}},xMonths:{standalone:{one:"ee Mount",other:"{{count}} Méint"},withPreposition:{one:"engem Mount",other:"{{count}} Méint"}},aboutXYears:{standalone:{one:"ongeféier ee Joer",other:"ongeféier {{count}} Joer"},withPreposition:{one:"ongeféier engem Joer",other:"ongeféier {{count}} Joer"}},xYears:{standalone:{one:"ee Joer",other:"{{count}} Joer"},withPreposition:{one:"engem Joer",other:"{{count}} Joer"}},overXYears:{standalone:{one:"méi wéi ee Joer",other:"méi wéi {{count}} Joer"},withPreposition:{one:"méi wéi engem Joer",other:"méi wéi {{count}} Joer"}},almostXYears:{standalone:{one:"bal ee Joer",other:"bal {{count}} Joer"},withPreposition:{one:"bal engem Joer",other:"bal {{count}} Joer"}}},Xh=["d","h","n","t","z"],qh=["a,","e","i","o","u"],Bh=[0,1,2,3,8,9],Vh=[40,50,60,70];function Yh(e){const t=e.charAt(0).toLowerCase();if(-1!=qh.indexOf(t)||-1!=Xh.indexOf(t))return!0;const n=e.split(" ")[0],r=parseInt(n);return!isNaN(r)&&-1!=Bh.indexOf(r%10)&&-1==Vh.indexOf(parseInt(n.substring(0,2)))}const Zh={date:jo({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.yy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Gh={lastWeek:e=>{const t=e.getDay();let n="'läschte";return 2!==t&&4!==t||(n+="n"),n+="' eeee 'um' p",n},yesterday:"'gëschter um' p",today:"'haut um' p",tomorrow:"'moien um' p",nextWeek:"eeee 'um' p",other:"P"},Hh={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["viru Christus","no Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mé","Dë","Më","Do","Fr","Sa"],abbreviated:["So.","Mé.","Dë.","Më.","Do.","Fr.","Sa."],wide:["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"mo.",pm:"nomë.",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"},abbreviated:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"},wide:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"mo.",pm:"nom.",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"},abbreviated:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"},wide:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"}},defaultFormattingWidth:"wide"})},Kh={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i,wide:/^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mä/i,/^ab/i,/^me/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smdf]/i,short:/^(so|mé|dë|më|do|fr|sa)/i,abbreviated:/^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i,wide:/^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mé/i,/^dë/i,/^më/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,abbreviated:/^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,wide:/^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^m/i,pm:/^n/i,midnight:/^Mëtter/i,noon:/^mëttes/i,morning:/moies/i,afternoon:/nomëttes/i,evening:/owes/i,night:/nuets/i}},defaultParseWidth:"any"})},Jh={code:"lb",formatDistance:(e,t,n)=>{let r;const i=Uh[e],o=n?.addSuffix?i.withPreposition:i.standalone;return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"a"+(Yh(r)?"n":"")+" "+r:"viru"+(Yh(r)?"n":"")+" "+r:r},formatLong:Zh,formatRelative:(e,t,n,r)=>{const i=Gh[e];return"function"==typeof i?i(t):i},localize:Hh,match:Kh,options:{weekStartsOn:1,firstWeekContainsDate:4}},ep={xseconds_other:"sekundė_sekundžių_sekundes",xminutes_one:"minutė_minutės_minutę",xminutes_other:"minutės_minučių_minutes",xhours_one:"valanda_valandos_valandą",xhours_other:"valandos_valandų_valandas",xdays_one:"diena_dienos_dieną",xdays_other:"dienos_dienų_dienas",xweeks_one:"savaitė_savaitės_savaitę",xweeks_other:"savaitės_savaičių_savaites",xmonths_one:"mėnuo_mėnesio_mėnesį",xmonths_other:"mėnesiai_mėnesių_mėnesius",xyears_one:"metai_metų_metus",xyears_other:"metai_metų_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"mažiau nei"},tp=(e,t,n,r)=>t?r?"kelių sekundžių":"kelias sekundes":"kelios sekundės",np=(e,t,n,r)=>t?r?op(n)[1]:op(n)[2]:op(n)[0],rp=(e,t,n,r)=>{const i=e+" ";return 1===e?i+np(0,t,n,r):t?r?i+op(n)[1]:i+(ip(e)?op(n)[1]:op(n)[2]):i+(ip(e)?op(n)[1]:op(n)[0])};function ip(e){return e%10==0||e>10&&e<20}function op(e){return ep[e].split("_")}const ap={lessThanXSeconds:{one:tp,other:rp},xSeconds:{one:tp,other:rp},halfAMinute:"pusė minutės",lessThanXMinutes:{one:np,other:rp},xMinutes:{one:np,other:rp},aboutXHours:{one:np,other:rp},xHours:{one:np,other:rp},xDays:{one:np,other:rp},aboutXWeeks:{one:np,other:rp},xWeeks:{one:np,other:rp},aboutXMonths:{one:np,other:rp},xMonths:{one:np,other:rp},aboutXYears:{one:np,other:rp},xYears:{one:np,other:rp},overXYears:{one:np,other:rp},almostXYears:{one:np,other:rp}},sp={date:jo({formats:{full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},lp={lastWeek:"'Praėjusį' eeee p",yesterday:"'Vakar' p",today:"'Šiandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},up={ordinalNumber:(e,t)=>Number(e)+"-oji",era:zo({values:{narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prieš Kristų","po Kristaus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]},defaultWidth:"wide",formattingValues:{narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"]},defaultWidth:"wide",formattingValues:{narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienį","pirmadienį","antradienį","trečiadienį","ketvirtadienį","penktadienį","šeštadienį"]},defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},defaultWidth:"wide",formattingValues:{narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"}},defaultFormattingWidth:"wide"})},cp={ordinalNumber:Lo({matchPattern:/^(\d+)(-oji)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},defaultParseWidth:"any"})},dp={code:"lt",formatDistance:(e,t,n)=>{const r=e.match(/about|over|almost|lessthan/i),i=r?e.replace(r[0],""):e,o=void 0!==n?.comparison&&n.comparison>0;let a;const s=ap[e];if(a="string"==typeof s?s:1===t?s.one(t,!0===n?.addSuffix,i.toLowerCase()+"_one",o):s.other(t,!0===n?.addSuffix,i.toLowerCase()+"_other",o),r){const e=r[0].toLowerCase();a=ep[e]+" "+a}return n?.addSuffix?n.comparison&&n.comparison>0?"po "+a:"prieš "+a:a},formatLong:sp,formatRelative:(e,t,n,r)=>lp[e],localize:up,match:cp,options:{weekStartsOn:1,firstWeekContainsDate:4}};function fp(e){return(t,n)=>{if(1===t)return n?.addSuffix?e.one[0].replace("{{time}}",e.one[2]):e.one[0].replace("{{time}}",e.one[1]);{const r=t%10==1&&t%100!=11;return n?.addSuffix?e.other[0].replace("{{time}}",r?e.other[3]:e.other[4]).replace("{{count}}",String(t)):e.other[0].replace("{{time}}",r?e.other[1]:e.other[2]).replace("{{count}}",String(t))}}}const hp={lessThanXSeconds:fp({one:["mazāk par {{time}}","sekundi","sekundi"],other:["mazāk nekā {{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),xSeconds:fp({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),halfAMinute:(e,t)=>t?.addSuffix?"pusminūtes":"pusminūte",lessThanXMinutes:fp({one:["mazāk par {{time}}","minūti","minūti"],other:["mazāk nekā {{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),xMinutes:fp({one:["1 {{time}}","minūte","minūtes"],other:["{{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),aboutXHours:fp({one:["apmēram 1 {{time}}","stunda","stundas"],other:["apmēram {{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xHours:fp({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xDays:fp({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dienām"]}),aboutXWeeks:fp({one:["apmēram 1 {{time}}","nedēļa","nedēļas"],other:["apmēram {{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),xWeeks:fp({one:["1 {{time}}","nedēļa","nedēļas"],other:["{{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),aboutXMonths:fp({one:["apmēram 1 {{time}}","mēnesis","mēneša"],other:["apmēram {{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),xMonths:fp({one:["1 {{time}}","mēnesis","mēneša"],other:["{{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),aboutXYears:fp({one:["apmēram 1 {{time}}","gads","gada"],other:["apmēram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:fp({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:fp({one:["ilgāk par 1 {{time}}","gadu","gadu"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:fp({one:["gandrīz 1 {{time}}","gads","gada"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]})},pp={date:jo({formats:{full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},mp=["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"],gp={lastWeek:(e,t,n)=>fl(e,t,n)?"eeee 'plkst.' p":"'Pagājušā "+mp[e.getDay()]+" plkst.' p",yesterday:"'Vakar plkst.' p",today:"'Šodien plkst.' p",tomorrow:"'Rīt plkst.' p",nextWeek:(e,t,n)=>fl(e,t,n)?"eeee 'plkst.' p":"'Nākamajā "+mp[e.getDay()]+" plkst.' p",other:"P"},vp={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["p.m.ē","m.ē"],abbreviated:["p. m. ē.","m. ē."],wide:["pirms mūsu ēras","mūsu ērā"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","trešais ceturksnis","ceturtais ceturksnis"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmajā ceturksnī","otrajā ceturksnī","trešajā ceturksnī","ceturtajā ceturksnī"]},defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]},defaultWidth:"wide",formattingValues:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","martā","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"]},defaultWidth:"wide",formattingValues:{narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"]},defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"pēcpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"rīts",afternoon:"pēcpusdiena",evening:"vakars",night:"nakts"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"dienā",evening:"vakarā",night:"naktī"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"pēcpusd.",evening:"vakarā",night:"naktī"},wide:{am:"am",pm:"pm",midnight:"pusnaktī",noon:"pusdienlaikā",morning:"rītā",afternoon:"pēcpusdienā",evening:"vakarā",night:"naktī"}},defaultFormattingWidth:"wide"})},Op={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^m/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},defaultParseWidth:"wide",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:"any"})},yp={code:"lv",formatDistance:(e,t,n)=>{const r=hp[e](t,n);return n?.addSuffix?n.comparison&&n.comparison>0?"pēc "+r:"pirms "+r:r},formatLong:pp,formatRelative:(e,t,n,r)=>{const i=gp[e];return"function"==typeof i?i(t,n,r):i},localize:vp,match:Op,options:{weekStartsOn:1,firstWeekContainsDate:4}},bp={lessThanXSeconds:{one:"помалку од секунда",other:"помалку од {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половина минута",lessThanXMinutes:{one:"помалку од минута",other:"помалку од {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"околу 1 час",other:"околу {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дена"},aboutXWeeks:{one:"околу 1 недела",other:"околу {{count}} месеци"},xWeeks:{one:"1 недела",other:"{{count}} недели"},aboutXMonths:{one:"околу 1 месец",other:"околу {{count}} недели"},xMonths:{one:"1 месец",other:"{{count}} месеци"},aboutXYears:{one:"околу 1 година",other:"околу {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"повеќе од 1 година",other:"повеќе од {{count}} години"},almostXYears:{one:"безмалку 1 година",other:"безмалку {{count}} години"}},wp={date:jo({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},kp=["недела","понеделник","вторник","среда","четврток","петок","сабота"];function xp(e){const t=kp[e];switch(e){case 0:case 3:case 6:return"'ова "+t+" вo' p";case 1:case 2:case 4:case 5:return"'овој "+t+" вo' p"}}const _p={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?xp(r):function(e){const t=kp[e];switch(e){case 0:case 3:case 6:return"'минатата "+t+" во' p";case 1:case 2:case 4:case 5:return"'минатиот "+t+" во' p"}}(r)},yesterday:"'вчера во' p",today:"'денес во' p",tomorrow:"'утре во' p",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?xp(r):function(e){const t=kp[e];switch(e){case 0:case 3:case 6:return"'следната "+t+" вo' p";case 1:case 2:case 4:case 5:return"'следниот "+t+" вo' p"}}(r)},other:"P"},Sp={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"-ви";case 2:return n+"-ри";case 7:case 8:return n+"-ми"}return n+"-ти"},era:zo({values:{narrow:["пр.н.е.","н.е."],abbreviated:["пред н. е.","н. е."],wide:["пред нашата ера","нашата ера"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-ви кв.","2-ри кв.","3-ти кв.","4-ти кв."],wide:["1-ви квартал","2-ри квартал","3-ти квартал","4-ти квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{abbreviated:["јан","фев","мар","апр","мај","јун","јул","авг","септ","окт","ноем","дек"],wide:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["не","по","вт","ср","че","пе","са"],abbreviated:["нед","пон","вто","сре","чет","пет","саб"],wide:["недела","понеделник","вторник","среда","четврток","петок","сабота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{wide:{am:"претпладне",pm:"попладне",midnight:"полноќ",noon:"напладне",morning:"наутро",afternoon:"попладне",evening:"навечер",night:"ноќе"}},defaultWidth:"wide"})},Pp={ordinalNumber:Lo({matchPattern:/^(\d+)(-?[врмт][и])?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(пред нашата ера|нашата ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?и?)? кв.?/i,wide:/^[1234](-?[врт]?и?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{abbreviated:/^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,wide:/^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ја/i,/^Ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(не|по|вт|ср|че|пе|са)/i,abbreviated:/^(нед|пон|вто|сре|чет|пет|саб)/i,wide:/^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[аб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/претпладне/i,pm:/попладне/i,midnight:/полноќ/i,noon:/напладне/i,morning:/наутро/i,afternoon:/попладне/i,evening:/навечер/i,night:/ноќе/i}},defaultParseWidth:"any"})},Ep={code:"mk",formatDistance:(e,t,n)=>{let r;const i=bp[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"за "+r:"пред "+r:r},formatLong:wp,formatRelative:(e,t,n,r)=>{const i=_p[e];return"function"==typeof i?i(t,n,r):i},localize:Sp,match:Pp,options:{weekStartsOn:1,firstWeekContainsDate:4}},Cp={lessThanXSeconds:{one:"секунд хүрэхгүй",other:"{{count}} секунд хүрэхгүй"},xSeconds:{one:"1 секунд",other:"{{count}} секунд"},halfAMinute:"хагас минут",lessThanXMinutes:{one:"минут хүрэхгүй",other:"{{count}} минут хүрэхгүй"},xMinutes:{one:"1 минут",other:"{{count}} минут"},aboutXHours:{one:"ойролцоогоор 1 цаг",other:"ойролцоогоор {{count}} цаг"},xHours:{one:"1 цаг",other:"{{count}} цаг"},xDays:{one:"1 өдөр",other:"{{count}} өдөр"},aboutXWeeks:{one:"ойролцоогоор 1 долоо хоног",other:"ойролцоогоор {{count}} долоо хоног"},xWeeks:{one:"1 долоо хоног",other:"{{count}} долоо хоног"},aboutXMonths:{one:"ойролцоогоор 1 сар",other:"ойролцоогоор {{count}} сар"},xMonths:{one:"1 сар",other:"{{count}} сар"},aboutXYears:{one:"ойролцоогоор 1 жил",other:"ойролцоогоор {{count}} жил"},xYears:{one:"1 жил",other:"{{count}} жил"},overXYears:{one:"1 жил гаран",other:"{{count}} жил гаран"},almostXYears:{one:"бараг 1 жил",other:"бараг {{count}} жил"}},Tp={date:jo({formats:{full:"y 'оны' MMMM'ын' d, EEEE 'гараг'",long:"y 'оны' MMMM'ын' d",medium:"y 'оны' MMM'ын' d",short:"y.MM.dd"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},$p={lastWeek:"'өнгөрсөн' eeee 'гарагийн' p 'цагт'",yesterday:"'өчигдөр' p 'цагт'",today:"'өнөөдөр' p 'цагт'",tomorrow:"'маргааш' p 'цагт'",nextWeek:"'ирэх' eeee 'гарагийн' p 'цагт'",other:"P"},Qp={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["НТӨ","НТ"],abbreviated:["НТӨ","НТ"],wide:["нийтийн тооллын өмнөх","нийтийн тооллын"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["I","II","III","IV"],abbreviated:["I улирал","II улирал","III улирал","IV улирал"],wide:["1-р улирал","2-р улирал","3-р улирал","4-р улирал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],wide:["Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургаадугаар сар","Долоодугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арваннэгдүгээр сар","Арван хоёрдугаар сар"]},defaultWidth:"wide",formattingValues:{narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],wide:["нэгдүгээр сар","хоёрдугаар сар","гуравдугаар сар","дөрөвдүгээр сар","тавдугаар сар","зургаадугаар сар","долоодугаар сар","наймдугаар сар","есдүгээр сар","аравдугаар сар","арваннэгдүгээр сар","арван хоёрдугаар сар"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","Д","М","Л","П","Б","Б"],short:["Ня","Да","Мя","Лх","Пү","Ба","Бя"],abbreviated:["Ням","Дав","Мяг","Лха","Пүр","Баа","Бям"],wide:["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"]},defaultWidth:"wide",formattingValues:{narrow:["Н","Д","М","Л","П","Б","Б"],short:["Ня","Да","Мя","Лх","Пү","Ба","Бя"],abbreviated:["Ням","Дав","Мяг","Лха","Пүр","Баа","Бям"],wide:["ням","даваа","мягмар","лхагва","пүрэв","баасан","бямба"]},defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"},abbreviated:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"},wide:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"}},defaultWidth:"wide"})},Rp={ordinalNumber:Lo({matchPattern:/\d+/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(нтө|нт)/i,abbreviated:/^(нтө|нт)/i,wide:/^(нийтийн тооллын өмнө|нийтийн тооллын)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(нтө|нийтийн тооллын өмнө)/i,/^(нт|нийтийн тооллын)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^(iv|iii|ii|i)/i,abbreviated:/^(iv|iii|ii|i) улирал/i,wide:/^[1-4]-р улирал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(i(\s|$)|1)/i,/^(ii(\s|$)|2)/i,/^(iii(\s|$)|3)/i,/^(iv(\s|$)|4)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i,abbreviated:/^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i,wide:/^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i$/i,/^ii$/i,/^iii$/i,/^iv$/i,/^v$/i,/^vi$/i,/^vii$/i,/^viii$/i,/^ix$/i,/^x$/i,/^xi$/i,/^xii$/i],any:[/^(1|нэгдүгээр)/i,/^(2|хоёрдугаар)/i,/^(3|гуравдугаар)/i,/^(4|дөрөвдүгээр)/i,/^(5|тавдугаар)/i,/^(6|зургаадугаар)/i,/^(7|долоодугаар)/i,/^(8|наймдугаар)/i,/^(9|есдүгээр)/i,/^(10|аравдугаар)/i,/^(11|арван нэгдүгээр)/i,/^(12|арван хоёрдугаар)/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[ндмлпбб]/i,short:/^(ня|да|мя|лх|пү|ба|бя)/i,abbreviated:/^(ням|дав|мяг|лха|пүр|баа|бям)/i,wide:/^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^д/i,/^м/i,/^л/i,/^п/i,/^б/i,/^б/i],any:[/^ня/i,/^да/i,/^мя/i,/^лх/i,/^пү/i,/^ба/i,/^бя/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i,any:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ү\.ө\./i,pm:/^ү\.х\./i,midnight:/^шөнө дунд/i,noon:/^үд дунд/i,morning:/өглөө/i,afternoon:/өдөр/i,evening:/орой/i,night:/шөнө/i}},defaultParseWidth:"any"})},Ap={code:"mn",formatDistance:(e,t,n)=>{let r;const i=Cp[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix){const e=r.split(" "),t=e.pop();switch(r=e.join(" "),t){case"секунд":r+=" секундийн";break;case"минут":r+=" минутын";break;case"цаг":r+=" цагийн";break;case"өдөр":r+=" өдрийн";break;case"сар":r+=" сарын";break;case"жил":r+=" жилийн";break;case"хоног":r+=" хоногийн";break;case"гаран":r+=" гараны";break;case"хүрэхгүй":r+=" хүрэхгүй хугацааны";break;default:r+=t+"-н"}return n.comparison&&n.comparison>0?r+" дараа":r+" өмнө"}return r},formatLong:Tp,formatRelative:(e,t,n,r)=>$p[e],localize:Qp,match:Rp,options:{weekStartsOn:1,firstWeekContainsDate:1}},jp={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Dp={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Mp={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},Ip={ordinalNumber:(e,t)=>"ke-"+Number(e),era:zo({values:{narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},defaultFormattingWidth:"wide"})},zp={ordinalNumber:Lo({matchPattern:/^ke-(\d+)?/i,parsePattern:/petama|\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^(m)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},defaultParseWidth:"any"})},Wp={code:"ms",formatDistance:(e,t,n)=>{let r;const i=jp[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"dalam masa "+r:r+" yang lalu":r},formatLong:Dp,formatRelative:(e,t,n,r)=>Mp[e],localize:Ip,match:zp,options:{weekStartsOn:1,firstWeekContainsDate:1}},Np={lessThanXSeconds:{one:"inqas minn sekonda",other:"inqas minn {{count}} sekondi"},xSeconds:{one:"sekonda",other:"{{count}} sekondi"},halfAMinute:"nofs minuta",lessThanXMinutes:{one:"inqas minn minuta",other:"inqas minn {{count}} minuti"},xMinutes:{one:"minuta",other:"{{count}} minuti"},aboutXHours:{one:"madwar siegħa",other:"madwar {{count}} siegħat"},xHours:{one:"siegħa",other:"{{count}} siegħat"},xDays:{one:"ġurnata",other:"{{count}} ġranet"},aboutXWeeks:{one:"madwar ġimgħa",other:"madwar {{count}} ġimgħat"},xWeeks:{one:"ġimgħa",other:"{{count}} ġimgħat"},aboutXMonths:{one:"madwar xahar",other:"madwar {{count}} xhur"},xMonths:{one:"xahar",other:"{{count}} xhur"},aboutXYears:{one:"madwar sena",two:"madwar sentejn",other:"madwar {{count}} snin"},xYears:{one:"sena",two:"sentejn",other:"{{count}} snin"},overXYears:{one:"aktar minn sena",two:"aktar minn sentejn",other:"aktar minn {{count}} snin"},almostXYears:{one:"kważi sena",two:"kważi sentejn",other:"kważi {{count}} snin"}},Lp={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Fp={lastWeek:"eeee 'li għadda' 'fil-'p",yesterday:"'Il-bieraħ fil-'p",today:"'Illum fil-'p",tomorrow:"'Għada fil-'p",nextWeek:"eeee 'fil-'p",other:"P"},Up={ordinalNumber:(e,t)=>Number(e)+"º",era:zo({values:{narrow:["Q","W"],abbreviated:["QK","WK"],wide:["qabel Kristu","wara Kristu"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kwart","2. kwart","3. kwart","4. kwart"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","Ġ","L","A","S","O","N","D"],abbreviated:["Jan","Fra","Mar","Apr","Mej","Ġun","Lul","Aww","Set","Ott","Nov","Diċ"],wide:["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Ħ","T","T","E","Ħ","Ġ","S"],short:["Ħa","Tn","Tl","Er","Ħa","Ġi","Si"],abbreviated:["Ħad","Tne","Tli","Erb","Ħam","Ġim","Sib"],wide:["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"},abbreviated:{am:"AM",pm:"PM",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"},abbreviated:{am:"AM",pm:"PM",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"}},defaultFormattingWidth:"wide"})},Xp={ordinalNumber:Lo({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(q|w)/i,abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,wide:/^(qabel kristu|before common era|wara kristu|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(q|b)/i,/^(w|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](\.)? kwart/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmaglsond]/i,abbreviated:/^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i,wide:/^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^ġ/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mej/i,/^ġ/i,/^l/i,/^aw/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[ħteġs]/i,short:/^(ħa|tn|tl|er|ħa|ġi|si)/i,abbreviated:/^(ħad|tne|tli|erb|ħam|ġim|sib)/i,wide:/^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ħ/i,/^t/i,/^t/i,/^e/i,/^ħ/i,/^ġ/i,/^s/i],any:[/^(il-)?ħad/i,/^(it-)?tn/i,/^(it-)?tl/i,/^(l-)?er/i,/^(il-)?ham/i,/^(il-)?ġi/i,/^(is-)?si/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^f'nofsillejl/i,noon:/^f'nofsinhar/i,morning:/għodwa/i,afternoon:/wara(\s.*)nofsinhar/i,evening:/filgħaxija/i,night:/lejl/i}},defaultParseWidth:"any"})},qp={code:"mt",formatDistance:(e,t,n)=>{let r;const i=Np[e];return r="string"==typeof i?i:1===t?i.one:2===t&&i.two?i.two:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"f'"+r:r+" ilu":r},formatLong:Lp,formatRelative:(e,t,n,r)=>Fp[e],localize:Up,match:Xp,options:{weekStartsOn:1,firstWeekContainsDate:4}},Bp={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},Vp={date:jo({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Yp={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Zp={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},defaultWidth:"wide"})},Gp={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},Hp={code:"nb",formatDistance:(e,t,n)=>{let r;const i=Bp[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},formatLong:Vp,formatRelative:(e,t,n,r)=>Yp[e],localize:Zp,match:Gp,options:{weekStartsOn:1,firstWeekContainsDate:4}},Kp={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Jp={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},em={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},tm={ordinalNumber:(e,t)=>Number(e)+"e",era:zo({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},nm={ordinalNumber:Lo({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})},rm={code:"nl",formatDistance:(e,t,n)=>{let r;const i=Kp[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},formatLong:Jp,formatRelative:(e,t,n,r)=>em[e],localize:tm,match:nm,options:{weekStartsOn:1,firstWeekContainsDate:4}},im={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},om={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},am={lastWeek:"'vorige' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},sm={ordinalNumber:(e,t)=>Number(e)+"e",era:zo({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},lm={ordinalNumber:Lo({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})},um={code:"nl-BE",formatDistance:(e,t,n)=>{let r;const i=im[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},formatLong:om,formatRelative:(e,t,n,r)=>am[e],localize:sm,match:lm,options:{weekStartsOn:1,firstWeekContainsDate:4}},cm={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},dm=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],fm={date:jo({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},hm={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},pm={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},defaultWidth:"wide"})},mm={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},gm={code:"nn",formatDistance:(e,t,n)=>{let r;const i=cm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t<13?dm[t]:String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" sidan":r},formatLong:fm,formatRelative:(e,t,n,r)=>hm[e],localize:pm,match:mm,options:{weekStartsOn:1,firstWeekContainsDate:4}},vm={lessThanXSeconds:{one:"mens d’una segonda",other:"mens de {{count}} segondas"},xSeconds:{one:"1 segonda",other:"{{count}} segondas"},halfAMinute:"30 segondas",lessThanXMinutes:{one:"mens d’una minuta",other:"mens de {{count}} minutas"},xMinutes:{one:"1 minuta",other:"{{count}} minutas"},aboutXHours:{one:"environ 1 ora",other:"environ {{count}} oras"},xHours:{one:"1 ora",other:"{{count}} oras"},xDays:{one:"1 jorn",other:"{{count}} jorns"},aboutXWeeks:{one:"environ 1 setmana",other:"environ {{count}} setmanas"},xWeeks:{one:"1 setmana",other:"{{count}} setmanas"},aboutXMonths:{one:"environ 1 mes",other:"environ {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"mai d’un an",other:"mai de {{count}} ans"},almostXYears:{one:"gaireben un an",other:"gaireben {{count}} ans"}},Om={date:jo({formats:{full:"EEEE d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'a' {{time}}",long:"{{date}} 'a' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ym={lastWeek:"eeee 'passat a' p",yesterday:"'ièr a' p",today:"'uèi a' p",tomorrow:"'deman a' p",nextWeek:"eeee 'a' p",other:"P"},bm={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;let i;switch(n){case 1:i="èr";break;case 2:i="nd";break;default:i="en"}return"year"!==r&&"week"!==r&&"hour"!==r&&"minute"!==r&&"second"!==r||(i+="a"),n+i},era:zo({values:{narrow:["ab. J.C.","apr. J.C."],abbreviated:["ab. J.C.","apr. J.C."],wide:["abans Jèsus-Crist","après Jèsus-Crist"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1èr trim.","2nd trim.","3en trim.","4en trim."],wide:["1èr trimèstre","2nd trimèstre","3en trimèstre","4en trimèstre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["GN","FB","MÇ","AB","MA","JN","JL","AG","ST","OC","NV","DC"],abbreviated:["gen.","febr.","març","abr.","mai","junh","jul.","ag.","set.","oct.","nov.","dec."],wide:["genièr","febrièr","març","abril","mai","junh","julhet","agost","setembre","octòbre","novembre","decembre"]},defaultWidth:"wide"}),day:zo({values:{narrow:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],short:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],wide:["dimenge","diluns","dimars","dimècres","dijòus","divendres","dissabte"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"},wide:{am:"a.m.",pm:"p.m.",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"},abbreviated:{am:"AM",pm:"PM",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"}},defaultFormattingWidth:"wide"})},wm={ordinalNumber:Lo({matchPattern:/^(\d+)(èr|nd|en)?[a]?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(abans Jèsus-Crist|après Jèsus-Crist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ab/i,/^ap/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^T[1234]/i,abbreviated:/^[1234](èr|nd|en)? trim\.?/i,wide:/^[1234](èr|nd|en)? trimèstre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,abbreviated:/^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,wide:/^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^g/i,/^f/i,/^ma[r?]|MÇ/i,/^ab/i,/^ma[i?]/i,/^ju[n?]|JN/i,/^ju[l?]|JL/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^d[glmcjvs]\.?/i,short:/^d[glmcjvs]\.?/i,abbreviated:/^d[glmcjvs]\.?/i,wide:/^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],short:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],abbreviated:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],any:[/^dg|dime/i,/^dl|dil/i,/^dm|dima/i,/^dc|dimè/i,/^dj|dij/i,/^dv|div/i,/^ds|dis/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/(^a)|ante meridiem/i,pm:/(^p)|post meridiem/i,midnight:/^mièj/i,noon:/^mièg/i,morning:/matin/i,afternoon:/aprèp-miègjorn/i,evening:/vèspre|ser/i,night:/nuèch/i}},defaultParseWidth:"any"})},km={code:"oc",formatDistance:(e,t,n)=>{let r;const i=vm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"d’aquí "+r:"fa "+r:r},formatLong:Om,formatRelative:(e,t,n,r)=>ym[e],localize:bm,match:wm,options:{weekStartsOn:1,firstWeekContainsDate:4}},xm={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function _m(e,t,n){const r=function(e,t){if(1===t)return e.one;const n=t%100;if(n<=20&&n>10)return e.other;const r=n%10;return r>=2&&r<=4?e.twoFour:e.other}(e,t);return("string"==typeof r?r:r[n]).replace("{{count}}",String(t))}const Sm={date:jo({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Pm={masculine:"ostatni",feminine:"ostatnia"},Em={masculine:"ten",feminine:"ta"},Cm={masculine:"następny",feminine:"następna"},Tm={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function $m(e,t,n,r){let i;if(fl(t,n,r))i=Em;else if("lastWeek"===e)i=Pm;else{if("nextWeek"!==e)throw new Error(`Cannot determine adjectives for token ${e}`);i=Cm}const o=t.getDay();return`'${i[Tm[o]]}' eeee 'o' p`}const Qm={lastWeek:$m,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:$m,other:"P"},Rm={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},defaultWidth:"wide",formattingValues:{narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},defaultWidth:"wide",formattingValues:{narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},defaultFormattingWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},defaultFormattingWidth:"wide"})},Am={ordinalNumber:Lo({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:"any"})},jm={code:"pl",formatDistance:(e,t,n)=>{const r=xm[e];return n?.addSuffix?n.comparison&&n.comparison>0?"za "+_m(r,t,"future"):_m(r,t,"past")+" temu":_m(r,t,"regular")},formatLong:Sm,formatRelative:(e,t,n,r)=>{const i=Qm[e];return"function"==typeof i?i(e,t,n,r):i},localize:Rm,match:Am,options:{weekStartsOn:1,firstWeekContainsDate:4}},Dm={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Mm={date:jo({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Im={lastWeek:e=>{const t=e.getDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},zm={ordinalNumber:(e,t)=>Number(e)+"º",era:zo({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:zo({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},Wm={ordinalNumber:Lo({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},Nm={code:"pt",formatDistance:(e,t,n)=>{let r;const i=Dm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"daqui a "+r:"há "+r:r},formatLong:Mm,formatRelative:(e,t,n,r)=>{const i=Im[e];return"function"==typeof i?i(t):i},localize:zm,match:Wm,options:{weekStartsOn:1,firstWeekContainsDate:4}},Lm={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Fm={date:jo({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Um={lastWeek:e=>{const t=e.getDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Xm={ordinalNumber:(e,t)=>{const n=Number(e);return"week"===t?.unit?n+"ª":n+"º"},era:zo({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},qm={ordinalNumber:Lo({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},Bm={code:"pt-BR",formatDistance:(e,t,n)=>{let r;const i=Lm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"em "+r:"há "+r:r},formatLong:Fm,formatRelative:(e,t,n,r)=>{const i=Um[e];return"function"==typeof i?i(t):i},localize:Xm,match:qm,options:{weekStartsOn:0,firstWeekContainsDate:1}},Vm={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},Ym={date:jo({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zm={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},Gm={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},defaultWidth:"wide"}),day:zo({values:{narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},defaultFormattingWidth:"wide"})},Hm={ordinalNumber:Lo({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:"any"})},Km={code:"ro",formatDistance:(e,t,n)=>{let r;const i=Vm[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"în "+r:r+" în urmă":r},formatLong:Ym,formatRelative:(e,t,n,r)=>Zm[e],localize:Gm,match:Hm,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Jm(e,t){if(void 0!==e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function eg(e){return(t,n)=>n?.addSuffix?n.comparison&&n.comparison>0?e.future?Jm(e.future,t):"через "+Jm(e.regular,t):e.past?Jm(e.past,t):Jm(e.regular,t)+" назад":Jm(e.regular,t)}const tg={lessThanXSeconds:eg({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:eg({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t?.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:eg({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:eg({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:eg({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:eg({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:eg({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:eg({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:eg({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:eg({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:eg({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:eg({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:eg({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:eg({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:eg({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},ng={date:jo({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},rg=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function ig(e){const t=rg[e];return 2===e?"'во "+t+" в' p":"'в "+t+" в' p"}const og={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?ig(r):function(e){const t=rg[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?ig(r):function(e){const t=rg[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}(r)},other:"P"},ag={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;let i;return i="date"===r?"-е":"week"===r||"minute"===r||"second"===r?"-я":"-й",n+i},era:zo({values:{narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},defaultWidth:"wide",formattingValues:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},defaultFormattingWidth:"wide"})},sg={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},lg={code:"ru",formatDistance:(e,t,n)=>tg[e](t,n),formatLong:ng,formatRelative:(e,t,n,r)=>{const i=og[e];return"function"==typeof i?i(t,n,r):i},localize:ag,match:sg,options:{weekStartsOn:1,firstWeekContainsDate:1}},ug={lessThanXSeconds:{one:"unnit go ovtta sekundda",other:"unnit go {{count}} sekundda"},xSeconds:{one:"sekundda",other:"{{count}} sekundda"},halfAMinute:"bealle minuhta",lessThanXMinutes:{one:"unnit go bealle minuhta",other:"unnit go {{count}} minuhta"},xMinutes:{one:"minuhta",other:"{{count}} minuhta"},aboutXHours:{one:"sullii ovtta diimmu",other:"sullii {{count}} diimmu"},xHours:{one:"diimmu",other:"{{count}} diimmu"},xDays:{one:"beaivvi",other:"{{count}} beaivvi"},aboutXWeeks:{one:"sullii ovtta vahku",other:"sullii {{count}} vahku"},xWeeks:{one:"vahku",other:"{{count}} vahku"},aboutXMonths:{one:"sullii ovtta mánu",other:"sullii {{count}} mánu"},xMonths:{one:"mánu",other:"{{count}} mánu"},aboutXYears:{one:"sullii ovtta jagi",other:"sullii {{count}} jagi"},xYears:{one:"jagi",other:"{{count}} jagi"},overXYears:{one:"guhkit go jagi",other:"guhkit go {{count}} jagi"},almostXYears:{one:"measta jagi",other:"measta {{count}} jagi"}},cg={date:jo({formats:{full:"EEEE MMMM d. 'b.' y",long:"MMMM d. 'b.' y",medium:"MMM d. 'b.' y",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"'dii.' HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'dii.' {{time}}",long:"{{date}} 'dii.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},dg={lastWeek:"'ovddit' eeee 'dii.' p",yesterday:"'ikte dii.' p",today:"'odne dii.' p",tomorrow:"'ihtin dii.' p",nextWeek:"EEEE 'dii.' p",other:"P"},fg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["o.Kr.","m.Kr."],abbreviated:["o.Kr.","m.Kr."],wide:["ovdal Kristusa","maŋŋel Kristusa"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartála","2. kvartála","3. kvartála","4. kvartála"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["O","G","N","C","M","G","S","B","Č","G","S","J"],abbreviated:["ođđa","guov","njuk","cuo","mies","geas","suoi","borg","čakč","golg","skáb","juov"],wide:["ođđajagemánnu","guovvamánnu","njukčamánnu","cuoŋománnu","miessemánnu","geassemánnu","suoidnemánnu","borgemánnu","čakčamánnu","golggotmánnu","skábmamánnu","juovlamánnu"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","V","M","G","D","B","L"],short:["sotn","vuos","maŋ","gask","duor","bear","láv"],abbreviated:["sotn","vuos","maŋ","gask","duor","bear","láv"],wide:["sotnabeaivi","vuossárga","maŋŋebárga","gaskavahkku","duorastat","bearjadat","lávvardat"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"gaskaidja",noon:"gaskabeaivi",morning:"iđđes",afternoon:"maŋŋel gaska.",evening:"eahkes",night:"ihkku"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"gaskaidja",noon:"gaskabeaivvi",morning:"iđđes",afternoon:"maŋŋel gaskabea.",evening:"eahkes",night:"ihkku"},wide:{am:"a.m.",pm:"p.m.",midnight:"gaskaidja",noon:"gaskabeavvi",morning:"iđđes",afternoon:"maŋŋel gaskabeaivvi",evening:"eahkes",night:"ihkku"}},defaultWidth:"wide"})},hg={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,abbreviated:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,wide:/^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^o/i,/^m/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartála/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[ogncmsbčj]/i,abbreviated:/^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i,wide:/^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^o/i,/^g/i,/^n/i,/^c/i,/^m/i,/^g/i,/^s/i,/^b/i,/^č/i,/^g/i,/^s/i,/^j/i],any:[/^o/i,/^gu/i,/^n/i,/^c/i,/^m/i,/^ge/i,/^su/i,/^b/i,/^č/i,/^go/i,/^sk/i,/^j/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[svmgdbl]/i,short:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,abbreviated:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,wide:/^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^v/i,/^m/i,/^g/i,/^d/i,/^b/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i,any:/^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^gaskai/i,noon:/^gaskab/i,morning:/iđđes/i,afternoon:/maŋŋel gaskabeaivvi/i,evening:/eahkes/i,night:/ihkku/i}},defaultParseWidth:"any"})},pg={code:"se",formatDistance:(e,t,n)=>{let r;const i=ug[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"geahčen "+r:r+" áigi":r},formatLong:cg,formatRelative:(e,t,n,r)=>dg[e],localize:fg,match:hg,options:{weekStartsOn:1,firstWeekContainsDate:4}};function mg(e,t,n){const r=function(e,t){return 1===t&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}(e,t);return r[n].replace("{{count}}",String(t))}function gg(e){let t="";return"almost"===e&&(t="takmer"),"about"===e&&(t="približne"),t.length>0?t+" ":""}function vg(e){let t="";return"lessThan"===e&&(t="menej než"),"over"===e&&(t="viac než"),t.length>0?t+" ":""}const Og={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},yg={date:jo({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},bg=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function wg(e){return 4===e?"'vo' eeee 'o' p":"'v "+bg[e]+" o' p"}const kg={lastWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?wg(r):function(e){const t=bg[e];switch(e){case 0:case 3:case 6:return"'minulú "+t+" o' p";default:return"'minulý' eeee 'o' p"}}(r)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:(e,t,n)=>{const r=e.getDay();return fl(e,t,n)?wg(r):function(e){const t=bg[e];switch(e){case 0:case 4:case 6:return"'budúcu "+t+" o' p";default:return"'budúci' eeee 'o' p"}}(r)},other:"P"},xg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},defaultWidth:"wide",formattingValues:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},defaultFormattingWidth:"wide"})},_g={ordinalNumber:Lo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})},Sg={code:"sk",formatDistance:(e,t,n)=>{const r=function(e){return["lessThan","about","over","almost"].filter((function(t){return!!e.match(new RegExp("^"+t))}))[0]}(e)||"",i=function(e){return e.charAt(0).toLowerCase()+e.slice(1)}(e.substring(r.length)),o=Og[i];return n?.addSuffix?n.comparison&&n.comparison>0?gg(r)+"o "+vg(r)+mg(o,t,"future"):gg(r)+"pred "+vg(r)+mg(o,t,"past"):gg(r)+vg(r)+mg(o,t,"present")},formatLong:yg,formatRelative:(e,t,n,r)=>{const i=kg[e];return"function"==typeof i?i(t,n,r):i},localize:xg,match:_g,options:{weekStartsOn:1,firstWeekContainsDate:4}},Pg={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}},Eg={date:jo({formats:{full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Cg={lastWeek:e=>{switch(e.getDay()){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},Tg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},defaultWidth:"wide",formattingValues:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},defaultFormattingWidth:"wide"})},$g={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|na[sš]em)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"wide"}),day:No({matchPatterns:{narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:"any"})},Qg={code:"sl",formatDistance:(e,t,n)=>{let r="",i="present";n?.addSuffix&&(n.comparison&&n.comparison>0?(i="future",r="čez "):(i="past",r="pred "));const o=Pg[e];if("string"==typeof o)r+=o;else{const e=function(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}(t);void 0!==o.one?r+=o[e].replace("{{count}}",String(t)):r+=o[i][e].replace("{{count}}",String(t))}return r},formatLong:Eg,formatRelative:(e,t,n,r)=>{const i=Cg[e];return"function"==typeof i?i(t):i},localize:Tg,match:$g,options:{weekStartsOn:1,firstWeekContainsDate:1}},Rg={lessThanXSeconds:{one:"më pak se një sekondë",other:"më pak se {{count}} sekonda"},xSeconds:{one:"1 sekondë",other:"{{count}} sekonda"},halfAMinute:"gjysëm minuti",lessThanXMinutes:{one:"më pak se një minute",other:"më pak se {{count}} minuta"},xMinutes:{one:"1 minutë",other:"{{count}} minuta"},aboutXHours:{one:"rreth 1 orë",other:"rreth {{count}} orë"},xHours:{one:"1 orë",other:"{{count}} orë"},xDays:{one:"1 ditë",other:"{{count}} ditë"},aboutXWeeks:{one:"rreth 1 javë",other:"rreth {{count}} javë"},xWeeks:{one:"1 javë",other:"{{count}} javë"},aboutXMonths:{one:"rreth 1 muaj",other:"rreth {{count}} muaj"},xMonths:{one:"1 muaj",other:"{{count}} muaj"},aboutXYears:{one:"rreth 1 vit",other:"rreth {{count}} vite"},xYears:{one:"1 vit",other:"{{count}} vite"},overXYears:{one:"mbi 1 vit",other:"mbi {{count}} vite"},almostXYears:{one:"pothuajse 1 vit",other:"pothuajse {{count}} vite"}},Ag={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'në' {{time}}",long:"{{date}} 'në' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jg={lastWeek:"'të' eeee 'e shkuar në' p",yesterday:"'dje në' p",today:"'sot në' p",tomorrow:"'nesër në' p",nextWeek:"eeee 'at' p",other:"P"},Dg={ordinalNumber:(e,t)=>{const n=Number(e);return"hour"===t?.unit?String(n):1===n?n+"-rë":4===n?n+"t":n+"-të"},era:zo({values:{narrow:["P","M"],abbreviated:["PK","MK"],wide:["Para Krishtit","Mbas Krishtit"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["4-mujori I","4-mujori II","4-mujori III","4-mujori IV"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","S","M","P","M","Q","K","G","S","T","N","D"],abbreviated:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],wide:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"]},defaultWidth:"wide"}),day:zo({values:{narrow:["D","H","M","M","E","P","S"],short:["Di","Hë","Ma","Më","En","Pr","Sh"],abbreviated:["Die","Hën","Mar","Mër","Enj","Pre","Sht"],wide:["Dielë","Hënë","Martë","Mërkurë","Enjte","Premte","Shtunë"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"mëngjes",afternoon:"dite",evening:"mbrëmje",night:"natë"},abbreviated:{am:"PD",pm:"MD",midnight:"mesnëtë",noon:"drek",morning:"mëngjes",afternoon:"mbasdite",evening:"mbrëmje",night:"natë"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesnëtë",noon:"drek",morning:"mëngjes",afternoon:"mbasdite",evening:"mbrëmje",night:"natë"}},defaultWidth:"wide",formattingValues:{narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"},abbreviated:{am:"PD",pm:"MD",midnight:"mesnatë",noon:"drek",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesnatë",noon:"drek",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"}},defaultFormattingWidth:"wide"})},Mg={ordinalNumber:Lo({matchPattern:/^(\d+)(-rë|-të|t|)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(p|m)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(para krishtit|mbas krishtit)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(p|m)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]-mujori (i{1,3}|iv)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jsmpqkftnd]/i,abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i,wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^s/i,/^m/i,/^p/i,/^m/i,/^q/i,/^k/i,/^g/i,/^s/i,/^t/i,/^n/i,/^d/i],any:[/^ja/i,/^shk/i,/^mar/i,/^pri/i,/^maj/i,/^qer/i,/^kor/i,/^gu/i,/^sht/i,/^tet/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[dhmeps]/i,short:/^(di|hë|ma|më|en|pr|sh)/i,abbreviated:/^(die|hën|mar|mër|enj|pre|sht)/i,wide:/^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^h/i,/^m/i,/^m/i,/^e/i,/^p/i,/^s/i],any:[/^d/i,/^h/i,/^ma/i,/^më/i,/^e/i,/^p/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i,any:/^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^p/i,pm:/^m/i,midnight:/^me/i,noon:/^dr/i,morning:/mëngjes/i,afternoon:/mbasdite/i,evening:/mbrëmje/i,night:/natë/i}},defaultParseWidth:"any"})},Ig={code:"sq",formatDistance:(e,t,n)=>{let r;const i=Rg[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"në "+r:r+" më parë":r},formatLong:Ag,formatRelative:(e,t,n,r)=>jg[e],localize:Dg,match:Mg,options:{weekStartsOn:1,firstWeekContainsDate:1}},zg={lessThanXSeconds:{one:{standalone:"мање од 1 секунде",withPrepositionAgo:"мање од 1 секунде",withPrepositionIn:"мање од 1 секунду"},dual:"мање од {{count}} секунде",other:"мање од {{count}} секунди"},xSeconds:{one:{standalone:"1 секунда",withPrepositionAgo:"1 секунде",withPrepositionIn:"1 секунду"},dual:"{{count}} секунде",other:"{{count}} секунди"},halfAMinute:"пола минуте",lessThanXMinutes:{one:{standalone:"мање од 1 минуте",withPrepositionAgo:"мање од 1 минуте",withPrepositionIn:"мање од 1 минуту"},dual:"мање од {{count}} минуте",other:"мање од {{count}} минута"},xMinutes:{one:{standalone:"1 минута",withPrepositionAgo:"1 минуте",withPrepositionIn:"1 минуту"},dual:"{{count}} минуте",other:"{{count}} минута"},aboutXHours:{one:{standalone:"око 1 сат",withPrepositionAgo:"око 1 сат",withPrepositionIn:"око 1 сат"},dual:"око {{count}} сата",other:"око {{count}} сати"},xHours:{one:{standalone:"1 сат",withPrepositionAgo:"1 сат",withPrepositionIn:"1 сат"},dual:"{{count}} сата",other:"{{count}} сати"},xDays:{one:{standalone:"1 дан",withPrepositionAgo:"1 дан",withPrepositionIn:"1 дан"},dual:"{{count}} дана",other:"{{count}} дана"},aboutXWeeks:{one:{standalone:"око 1 недељу",withPrepositionAgo:"око 1 недељу",withPrepositionIn:"око 1 недељу"},dual:"око {{count}} недеље",other:"око {{count}} недеље"},xWeeks:{one:{standalone:"1 недељу",withPrepositionAgo:"1 недељу",withPrepositionIn:"1 недељу"},dual:"{{count}} недеље",other:"{{count}} недеље"},aboutXMonths:{one:{standalone:"око 1 месец",withPrepositionAgo:"око 1 месец",withPrepositionIn:"око 1 месец"},dual:"око {{count}} месеца",other:"око {{count}} месеци"},xMonths:{one:{standalone:"1 месец",withPrepositionAgo:"1 месец",withPrepositionIn:"1 месец"},dual:"{{count}} месеца",other:"{{count}} месеци"},aboutXYears:{one:{standalone:"око 1 годину",withPrepositionAgo:"око 1 годину",withPrepositionIn:"око 1 годину"},dual:"око {{count}} године",other:"око {{count}} година"},xYears:{one:{standalone:"1 година",withPrepositionAgo:"1 године",withPrepositionIn:"1 годину"},dual:"{{count}} године",other:"{{count}} година"},overXYears:{one:{standalone:"преко 1 годину",withPrepositionAgo:"преко 1 годину",withPrepositionIn:"преко 1 годину"},dual:"преко {{count}} године",other:"преко {{count}} година"},almostXYears:{one:{standalone:"готово 1 годину",withPrepositionAgo:"готово 1 годину",withPrepositionIn:"готово 1 годину"},dual:"готово {{count}} године",other:"готово {{count}} година"}},Wg={date:jo({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'у' {{time}}",long:"{{date}} 'у' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ng={lastWeek:e=>{switch(e.getDay()){case 0:return"'прошле недеље у' p";case 3:return"'прошле среде у' p";case 6:return"'прошле суботе у' p";default:return"'прошли' EEEE 'у' p"}},yesterday:"'јуче у' p",today:"'данас у' p",tomorrow:"'сутра у' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'следеће недеље у' p";case 3:return"'следећу среду у' p";case 6:return"'следећу суботу у' p";default:return"'следећи' EEEE 'у' p"}},other:"P"},Lg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["пр.н.е.","АД"],abbreviated:["пр. Хр.","по. Хр."],wide:["Пре Христа","После Христа"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. кв.","2. кв.","3. кв.","4. кв."],wide:["1. квартал","2. квартал","3. квартал","4. квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","П","У","С","Ч","П","С"],short:["нед","пон","уто","сре","чет","пет","суб"],abbreviated:["нед","пон","уто","сре","чет","пет","суб"],wide:["недеља","понедељак","уторак","среда","четвртак","петак","субота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},defaultWidth:"wide",formattingValues:{narrow:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},defaultFormattingWidth:"wide"})},Fg={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^пр/i,/^(по|нова)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},defaultParseWidth:"any"})},Ug={code:"sr",formatDistance:(e,t,n)=>{let r;const i=zg[e];return r="string"==typeof i?i:1===t?n?.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?i.dual.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"за "+r:"пре "+r:r},formatLong:Wg,formatRelative:(e,t,n,r)=>{const i=Ng[e];return"function"==typeof i?i(t):i},localize:Lg,match:Fg,options:{weekStartsOn:1,firstWeekContainsDate:1}},Xg={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},qg={date:jo({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Bg={lastWeek:e=>{switch(e.getDay()){case 0:return"'prošle nedelje u' p";case 3:return"'prošle srede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:e=>{switch(e.getDay()){case 0:return"'sledeće nedelje u' p";case 3:return"'sledeću sredu u' p";case 6:return"'sledeću subotu u' p";default:return"'sledeći' EEEE 'u' p"}},other:"P"},Vg={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},defaultFormattingWidth:"wide"})},Yg={ordinalNumber:Lo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})},Zg={code:"sr-Latn",formatDistance:(e,t,n)=>{let r;const i=Xg[e];return r="string"==typeof i?i:1===t?n?.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?i.dual.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"za "+r:"pre "+r:r},formatLong:qg,formatRelative:(e,t,n,r)=>{const i=Bg[e];return"function"==typeof i?i(t):i},localize:Vg,match:Yg,options:{weekStartsOn:1,firstWeekContainsDate:1}},Gg={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},Hg=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],Kg={date:jo({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Jg={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},ev={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 2:return n+":a"}return n+":e"},era:zo({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:zo({values:{narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},defaultFormattingWidth:"wide"})},tv={ordinalNumber:Lo({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:"any"})},nv={code:"sv",formatDistance:(e,t,n)=>{let r;const i=Gg[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t<13?Hg[t]:String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"om "+r:r+" sedan":r},formatLong:Kg,formatRelative:(e,t,n,r)=>Jg[e],localize:ev,match:tv,options:{weekStartsOn:1,firstWeekContainsDate:4}},rv={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},iv={date:jo({formats:{full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},defaultWidth:"full"}),time:jo({formats:{full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ov={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},av={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},defaultWidth:"wide",formattingValues:{narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},defaultFormattingWidth:"wide"})},sv={ordinalNumber:Lo({matchPattern:/^(\d+)(வது)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},defaultParseWidth:"any"})},lv={code:"ta",formatDistance:(e,t,n)=>{const r=n?.addSuffix?n.comparison&&n.comparison>0?"in":"ago":"default",i=rv[e];return void 0===i.one?i[r]:1===t?i.one[r]:i.other[r].replace("{{count}}",String(t))},formatLong:iv,formatRelative:(e,t,n,r)=>ov[e],localize:av,match:sv,options:{weekStartsOn:1,firstWeekContainsDate:4}},uv={lessThanXSeconds:{standalone:{one:"సెకను కన్నా తక్కువ",other:"{{count}} సెకన్ల కన్నా తక్కువ"},withPreposition:{one:"సెకను",other:"{{count}} సెకన్ల"}},xSeconds:{standalone:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"},withPreposition:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"}},halfAMinute:{standalone:"అర నిమిషం",withPreposition:"అర నిమిషం"},lessThanXMinutes:{standalone:{one:"ఒక నిమిషం కన్నా తక్కువ",other:"{{count}} నిమిషాల కన్నా తక్కువ"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},xMinutes:{standalone:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాలు"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},aboutXHours:{standalone:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటలు"},withPreposition:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటల"}},xHours:{standalone:{one:"ఒక గంట",other:"{{count}} గంటలు"},withPreposition:{one:"ఒక గంట",other:"{{count}} గంటల"}},xDays:{standalone:{one:"ఒక రోజు",other:"{{count}} రోజులు"},withPreposition:{one:"ఒక రోజు",other:"{{count}} రోజుల"}},aboutXWeeks:{standalone:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలు"},withPreposition:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలల"}},xWeeks:{standalone:{one:"ఒక వారం",other:"{{count}} వారాలు"},withPreposition:{one:"ఒక వారం",other:"{{count}} వారాలల"}},aboutXMonths:{standalone:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలలు"},withPreposition:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలల"}},xMonths:{standalone:{one:"ఒక నెల",other:"{{count}} నెలలు"},withPreposition:{one:"ఒక నెల",other:"{{count}} నెలల"}},aboutXYears:{standalone:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాలు"},withPreposition:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాల"}},xYears:{standalone:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాలు"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},overXYears:{standalone:{one:"ఒక సంవత్సరం పైగా",other:"{{count}} సంవత్సరాలకు పైగా"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},almostXYears:{standalone:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాలు"},withPreposition:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాల"}}},cv={date:jo({formats:{full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}'కి'",long:"{{date}} {{time}}'కి'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},dv={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"},fv={ordinalNumber:(e,t)=>Number(e)+"వ",era:zo({values:{narrow:["క్రీ.పూ.","క్రీ.శ."],abbreviated:["క్రీ.పూ.","క్రీ.శ."],wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["త్రై1","త్రై2","త్రై3","త్రై4"],wide:["1వ త్రైమాసికం","2వ త్రైమాసికం","3వ త్రైమాసికం","4వ త్రైమాసికం"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],abbreviated:["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],wide:["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ఆ","సో","మ","బు","గు","శు","శ"],short:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],abbreviated:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],wide:["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},defaultWidth:"wide",formattingValues:{narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},defaultFormattingWidth:"wide"})},hv={ordinalNumber:Lo({matchPattern:/^(\d+)(వ)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(పూ|శ)/i,/^సా/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},defaultParseWidth:"any"})},pv={code:"te",formatDistance:(e,t,n)=>{let r;const i=n?.addSuffix?uv[e].withPreposition:uv[e].standalone;return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"లో":r+" క్రితం":r},formatLong:cv,formatRelative:(e,t,n,r)=>dv[e],localize:fv,match:hv,options:{weekStartsOn:0,firstWeekContainsDate:1}},mv={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},gv={date:jo({formats:{full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},defaultWidth:"medium"}),dateTime:jo({formats:{full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vv={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},Ov={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},defaultWidth:"wide"}),day:zo({values:{narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},defaultFormattingWidth:"wide"})},yv={ordinalNumber:Lo({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},defaultParseWidth:"any"})},bv={code:"th",formatDistance:(e,t,n)=>{let r;const i=mv[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"halfAMinute"===e?"ใน"+r:"ใน "+r:r+"ที่ผ่านมา":r},formatLong:gv,formatRelative:(e,t,n,r)=>vv[e],localize:Ov,match:yv,options:{weekStartsOn:0,firstWeekContainsDate:1}},wv={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},kv={date:jo({formats:{full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},xv={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},_v={ordinalNumber:(e,t)=>Number(e)+".",era:zo({values:{narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:zo({values:{narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},defaultWidth:"wide"}),day:zo({values:{narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},defaultWidth:"wide",formattingValues:{narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},defaultFormattingWidth:"wide"})},Sv={ordinalNumber:Lo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:No({matchPatterns:{narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:"any"})},Pv={code:"tr",formatDistance:(e,t,n)=>{let r;const i=wv[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" önce":r},formatLong:kv,formatRelative:(e,t,n,r)=>xv[e],localize:_v,match:Sv,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ev={lessThanXSeconds:{one:"بىر سىكۇنت ئىچىدە",other:"سىكۇنت ئىچىدە {{count}}"},xSeconds:{one:"بىر سىكۇنت",other:"سىكۇنت {{count}}"},halfAMinute:"يىرىم مىنۇت",lessThanXMinutes:{one:"بىر مىنۇت ئىچىدە",other:"مىنۇت ئىچىدە {{count}}"},xMinutes:{one:"بىر مىنۇت",other:"مىنۇت {{count}}"},aboutXHours:{one:"تەخمىنەن بىر سائەت",other:"سائەت {{count}} تەخمىنەن"},xHours:{one:"بىر سائەت",other:"سائەت {{count}}"},xDays:{one:"بىر كۈن",other:"كۈن {{count}}"},aboutXWeeks:{one:"تەخمىنەن بىرھەپتە",other:"ھەپتە {{count}} تەخمىنەن"},xWeeks:{one:"بىرھەپتە",other:"ھەپتە {{count}}"},aboutXMonths:{one:"تەخمىنەن بىر ئاي",other:"ئاي {{count}} تەخمىنەن"},xMonths:{one:"بىر ئاي",other:"ئاي {{count}}"},aboutXYears:{one:"تەخمىنەن بىر يىل",other:"يىل {{count}} تەخمىنەن"},xYears:{one:"بىر يىل",other:"يىل {{count}}"},overXYears:{one:"بىر يىلدىن ئارتۇق",other:"يىلدىن ئارتۇق {{count}}"},almostXYears:{one:"ئاساسەن بىر يىل",other:"يىل {{count}} ئاساسەن"}},Cv={date:jo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'دە' {{time}}",long:"{{date}} 'دە' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Tv={lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p",yesterday:"'تۈنۈگۈن دە' p",today:"'بۈگۈن دە' p",tomorrow:"'ئەتە دە' p",nextWeek:"eeee 'دە' p",other:"P"},$v={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["ب","ك"],abbreviated:["ب","ك"],wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["بىرىنجى چارەك","ئىككىنجى چارەك","ئۈچىنجى چارەك","تۆتىنجى چارەك"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["ي","ف","م","ا","م","ى","ى","ا","س","ۆ","ن","د"],abbreviated:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"],wide:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"]},defaultWidth:"wide"}),day:zo({values:{narrow:["ي","د","س","چ","پ","ج","ش"],short:["ي","د","س","چ","پ","ج","ش"],abbreviated:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],wide:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"}},defaultFormattingWidth:"wide"})},Qv={ordinalNumber:Lo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^بۇرۇن/i,/^كىيىن/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},defaultParseWidth:"any"})},Rv={code:"ug",formatDistance:(e,t,n)=>{let r;const i=Ev[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r:r+" بولدى":r},formatLong:Cv,formatRelative:(e,t,n,r)=>Tv[e],localize:$v,match:Qv,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Av(e,t){if(void 0!==e.one&&1===t)return e.one;const n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function jv(e){return(t,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?Av(e.future,t):"за "+Av(e.regular,t):e.past?Av(e.past,t):Av(e.regular,t)+" тому":Av(e.regular,t)}const Dv={lessThanXSeconds:jv({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:jv({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини",lessThanXMinutes:jv({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:jv({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:jv({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:jv({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:jv({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:jv({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:jv({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:jv({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:jv({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:jv({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:jv({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:jv({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:jv({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},Mv={date:jo({formats:{full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Iv=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function zv(e){return"'у "+Iv[e]+" о' p"}const Wv={lastWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?zv(i):function(e){const t=Iv[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}(i)},yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:(e,t,n)=>{const r=Go(e),i=r.getDay();return fl(r,t,n)?zv(i):function(e){const t=Iv[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}(i)},other:"P"},Nv={ordinalNumber:(e,t)=>{const n=String(t?.unit),r=Number(e);let i;return i="date"===n?3===r||23===r?"-є":"-е":"minute"===n||"second"===n||"hour"===n?"-а":"-й",r+i},era:zo({values:{narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},defaultFormattingWidth:"wide"})},Lv={ordinalNumber:Lo({matchPattern:/^(\d+)(-?(е|й|є|а|я))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},Fv={code:"uk",formatDistance:(e,t,n)=>(n=n||{},Dv[e](t,n)),formatLong:Mv,formatRelative:(e,t,n,r)=>{const i=Wv[e];return"function"==typeof i?i(t,n,r):i},localize:Nv,match:Lv,options:{weekStartsOn:1,firstWeekContainsDate:1}},Uv={lessThanXSeconds:{one:"sekunddan kam",other:"{{count}} sekunddan kam"},xSeconds:{one:"1 sekund",other:"{{count}} sekund"},halfAMinute:"yarim minut",lessThanXMinutes:{one:"bir minutdan kam",other:"{{count}} minutdan kam"},xMinutes:{one:"1 minut",other:"{{count}} minut"},aboutXHours:{one:"tahminan 1 soat",other:"tahminan {{count}} soat"},xHours:{one:"1 soat",other:"{{count}} soat"},xDays:{one:"1 kun",other:"{{count}} kun"},aboutXWeeks:{one:"tahminan 1 hafta",other:"tahminan {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"tahminan 1 oy",other:"tahminan {{count}} oy"},xMonths:{one:"1 oy",other:"{{count}} oy"},aboutXYears:{one:"tahminan 1 yil",other:"tahminan {{count}} yil"},xYears:{one:"1 yil",other:"{{count}} yil"},overXYears:{one:"1 yildan ko'p",other:"{{count}} yildan ko'p"},almostXYears:{one:"deyarli 1 yil",other:"deyarli {{count}} yil"}},Xv={date:jo({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"h:mm:ss zzzz",long:"h:mm:ss z",medium:"h:mm:ss",short:"h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},qv={lastWeek:"'oldingi' eeee p 'da'",yesterday:"'kecha' p 'da'",today:"'bugun' p 'da'",tomorrow:"'ertaga' p 'da'",nextWeek:"eeee p 'da'",other:"P"},Bv={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["M.A","M."],abbreviated:["M.A","M."],wide:["Miloddan Avvalgi","Milodiy"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["CH.1","CH.2","CH.3","CH.4"],wide:["1-chi chorak","2-chi chorak","3-chi chorak","4-chi chorak"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Y","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Y","D","S","CH","P","J","SH"],short:["Ya","Du","Se","Cho","Pa","Ju","Sha"],abbreviated:["Yak","Dush","Sesh","Chor","Pay","Jum","Shan"],wide:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},defaultFormattingWidth:"wide"})},Vv={ordinalNumber:Lo({matchPattern:/^(\d+)(chi)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(m\.a|m\.)/i,abbreviated:/^(m\.a\.?\s?m\.?)/i,wide:/^(miloddan avval|miloddan keyin)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](chi)? chorak/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[yfmasond]/i,abbreviated:/^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i,wide:/^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^y/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ya/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^iyun/i,/^iyul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[ydschj]/i,short:/^(ya|du|se|cho|pa|ju|sha)/i,abbreviated:/^(yak|dush|sesh|chor|pay|jum|shan)/i,wide:/^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^y/i,/^d/i,/^s/i,/^ch/i,/^p/i,/^j/i,/^sh/i],any:[/^ya/i,/^d/i,/^se/i,/^ch/i,/^p/i,/^j/i,/^sh/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i,any:/^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^y\.t/i,noon:/^pe/i,morning:/ertalab/i,afternoon:/tushdan keyin/i,evening:/kechqurun/i,night:/tun/i}},defaultParseWidth:"any"})},Yv={code:"uz",formatDistance:(e,t,n)=>{let r;const i=Uv[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" dan keyin":r+" oldin":r},formatLong:Xv,formatRelative:(e,t,n,r)=>qv[e],localize:Bv,match:Vv,options:{weekStartsOn:1,firstWeekContainsDate:1}},Zv={lessThanXSeconds:{one:"1 сониядан кам",other:"{{count}} сониядан кам"},xSeconds:{one:"1 сония",other:"{{count}} сония"},halfAMinute:"ярим дақиқа",lessThanXMinutes:{one:"1 дақиқадан кам",other:"{{count}} дақиқадан кам"},xMinutes:{one:"1 дақиқа",other:"{{count}} дақиқа"},aboutXHours:{one:"тахминан 1 соат",other:"тахминан {{count}} соат"},xHours:{one:"1 соат",other:"{{count}} соат"},xDays:{one:"1 кун",other:"{{count}} кун"},aboutXWeeks:{one:"тахминан 1 хафта",other:"тахминан {{count}} хафта"},xWeeks:{one:"1 хафта",other:"{{count}} хафта"},aboutXMonths:{one:"тахминан 1 ой",other:"тахминан {{count}} ой"},xMonths:{one:"1 ой",other:"{{count}} ой"},aboutXYears:{one:"тахминан 1 йил",other:"тахминан {{count}} йил"},xYears:{one:"1 йил",other:"{{count}} йил"},overXYears:{one:"1 йилдан кўп",other:"{{count}} йилдан кўп"},almostXYears:{one:"деярли 1 йил",other:"деярли {{count}} йил"}},Gv={date:jo({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:jo({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:jo({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},Hv={lastWeek:"'ўтган' eeee p 'да'",yesterday:"'кеча' p 'да'",today:"'бугун' p 'да'",tomorrow:"'эртага' p 'да'",nextWeek:"eeee p 'да'",other:"P"},Kv={ordinalNumber:(e,t)=>String(e),era:zo({values:{narrow:["М.А","М"],abbreviated:["М.А","М"],wide:["Милоддан Аввалги","Милодий"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["1-чор.","2-чор.","3-чор.","4-чор."],wide:["1-чорак","2-чорак","3-чорак","4-чорак"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],wide:["январ","феврал","март","апрел","май","июн","июл","август","сентабр","октабр","ноябр","декабр"]},defaultWidth:"wide"}),day:zo({values:{narrow:["Я","Д","С","Ч","П","Ж","Ш"],short:["як","ду","се","чо","па","жу","ша"],abbreviated:["якш","душ","сеш","чор","пай","жум","шан"],wide:["якшанба","душанба","сешанба","чоршанба","пайшанба","жума","шанба"]},defaultWidth:"wide"}),dayPeriod:zo({values:{any:{am:"П.О.",pm:"П.К.",midnight:"ярим тун",noon:"пешин",morning:"эрталаб",afternoon:"пешиндан кейин",evening:"кечаси",night:"тун"}},defaultWidth:"any",formattingValues:{any:{am:"П.О.",pm:"П.К.",midnight:"ярим тун",noon:"пешин",morning:"эрталаб",afternoon:"пешиндан кейин",evening:"кечаси",night:"тун"}},defaultFormattingWidth:"any"})},Jv={ordinalNumber:Lo({matchPattern:/^(\d+)(чи)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(м\.а|м\.)/i,abbreviated:/^(м\.а|м\.)/i,wide:/^(милоддан аввал|милоддан кейин)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^м/i,/^а/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-чор./i,wide:/^[1234]-чорак/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^[яфмамииасонд]/i,abbreviated:/^(янв|фев|мар|апр|май|июн|июл|авг|сен|окт|ноя|дек)/i,wide:/^(январ|феврал|март|апрел|май|июн|июл|август|сентабр|октабр|ноябр|декабр)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^д/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[ядсчпжш]/i,short:/^(як|ду|се|чо|па|жу|ша)/i,abbreviated:/^(якш|душ|сеш|чор|пай|жум|шан)/i,wide:/^(якшанба|душанба|сешанба|чоршанба|пайшанба|жума|шанба)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^д/i,/^с/i,/^ч/i,/^п/i,/^ж/i,/^ш/i],any:[/^як/i,/^ду/i,/^се/i,/^чор/i,/^пай/i,/^жу/i,/^шан/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(п\.о\.|п\.к\.|ярим тун|пешиндан кейин|(эрталаб|пешиндан кейин|кечаси|тун))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^п\.о\./i,pm:/^п\.к\./i,midnight:/^ярим тун/i,noon:/^пешиндан кейин/i,morning:/эрталаб/i,afternoon:/пешиндан кейин/i,evening:/кечаси/i,night:/тун/i}},defaultParseWidth:"any"})},eO={code:"uz-Cyrl",formatDistance:(e,t,n)=>{let r;const i=Zv[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"дан кейин":r+" олдин":r},formatLong:Gv,formatRelative:(e,t,n,r)=>Hv[e],localize:Kv,match:Jv,options:{weekStartsOn:1,firstWeekContainsDate:1}},tO={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},nO={date:jo({formats:{full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},defaultWidth:"full"}),time:jo({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},rO={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},iO={ordinalNumber:(e,t)=>{const n=Number(e),r=t?.unit;if("quarter"===r)switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if("day"===r)switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if("week"===r)return 1===n?"thứ nhất":"thứ "+n;if("dayOfYear"===r)return 1===n?"đầu tiên":"thứ "+n}return String(n)},era:zo({values:{narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},defaultWidth:"wide",formattingValues:{narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},defaultFormattingWidth:"wide"}),day:zo({values:{narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},defaultFormattingWidth:"wide"})},oO={ordinalNumber:Lo({matchPattern:/^(\d+)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^t/i,/^s/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},defaultParseWidth:"wide"}),day:No({matchPatterns:{narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},defaultParseWidth:"wide"}),dayPeriod:No({matchPatterns:{narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},defaultParseWidth:"any"})},aO={code:"vi",formatDistance:(e,t,n)=>{let r;const i=tO[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+" nữa":r+" trước":r},formatLong:nO,formatRelative:(e,t,n,r)=>rO[e],localize:iO,match:oO,options:{weekStartsOn:1,firstWeekContainsDate:1}},sO={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},lO={date:jo({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function uO(e,t,n){const r="eeee p";return fl(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}const cO={lastWeek:uO,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:uO,other:"PP p"},dO={ordinalNumber:(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:zo({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:zo({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},fO={ordinalNumber:Lo({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},hO={code:"zh-CN",formatDistance:(e,t,n)=>{let r;const i=sO[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r},formatLong:lO,formatRelative:(e,t,n,r)=>{const i=cO[e];return"function"==typeof i?i(t,n,r):i},localize:dO,match:fO,options:{weekStartsOn:1,firstWeekContainsDate:4}},pO={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},mO={date:jo({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},gO={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},vO={ordinalNumber:(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n+"日";case"hour":return n+"時";case"minute":return n+"分";case"second":return n+"秒";default:return"第 "+n}},era:zo({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:zo({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},defaultFormattingWidth:"wide"})},OO={ordinalNumber:Lo({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]季/i,wide:/^第[一二三四]季度/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},yO={code:"zh-HK",formatDistance:(e,t,n)=>{let r;const i=pO[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"內":r+"前":r},formatLong:mO,formatRelative:(e,t,n,r)=>gO[e],localize:vO,match:OO,options:{weekStartsOn:0,firstWeekContainsDate:1}},bO={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},wO={date:jo({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:jo({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:jo({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},kO={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},xO={ordinalNumber:(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n+"日";case"hour":return n+"時";case"minute":return n+"分";case"second":return n+"秒";default:return"第 "+n}},era:zo({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:zo({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:zo({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:zo({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultFormattingWidth:"wide"})},_O={ordinalNumber:Lo({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:No({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:No({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},SO={code:"zh-TW",formatDistance:(e,t,n)=>{let r;const i=bO[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"內":r+"前":r},formatLong:wO,formatRelative:(e,t,n,r)=>kO[e],localize:xO,match:_O,options:{weekStartsOn:1,firstWeekContainsDate:4}},PO="yyyy-MM-dd",EO="HH:mm:ss",CO="yyyy-MM-dd'T'HH:mm:ss",TO="XXX";function $O(e){var t,n;if(!e)return;const r=e.picker_utc?"":TO,i=null===(t=e.date_format)||void 0===t||t,o=null===(n=e.time_format)||void 0===n||n;let a=e.format,s=!1;var l;if(!1===o)a=null!==(l=e.format)&&void 0!==l?l:PO;else if(!1===i){var u;a=null!==(u=e.format)&&void 0!==u?u:EO,s=!e.format}else{var c;a=null!==(c=e.format)&&void 0!==c?c:CO,s=!e.format}const d=function(e,t,n){if("string"==typeof e||"string"==typeof t){const n=[];if("string"==typeof e&&Ne(e)?n.push(e):!1!==e&&n.push(PO),"string"==typeof t&&Ne(t)?n.push(t):!1!==t&&n.push(`${EO}`),n.length>0)return n.join(" ")}return!1===t?null!=n?n:PO:!1===e?null!=n?n:`${EO}`:null!=n?n:`${CO}`}(i,o,a);return{storageFormat:`${a}${s?r:""}`,dateFormat:i,timeFormat:o,displayFormat:d,timezoneExtra:r}}function QO(e){return(0,c.useMemo)((()=>$O(e)),[e])}var RO=__webpack_require__(24865),AO=__webpack_require__.n(RO),jO="delete",DO=5,MO=1<>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?LO(e)+t:t}function UO(){return!0}function XO(e,t,n){return(0===e&&!YO(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function qO(e,t){return VO(e,t,0)}function BO(e,t){return VO(e,t,t)}function VO(e,t,n){return void 0===e?n:YO(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function YO(e){return e<0||0===e&&1/e==-1/0}var ZO="@@__IMMUTABLE_ITERABLE__@@";function GO(e){return Boolean(e&&e[ZO])}var HO="@@__IMMUTABLE_KEYED__@@";function KO(e){return Boolean(e&&e[HO])}var JO="@@__IMMUTABLE_INDEXED__@@";function ey(e){return Boolean(e&&e[JO])}function ty(e){return KO(e)||ey(e)}var ny=function(e){return GO(e)?e:Cy(e)},ry=function(e){function t(e){return KO(e)?e:Ty(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ny),iy=function(e){function t(e){return ey(e)?e:$y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ny),oy=function(e){function t(e){return GO(e)&&!ty(e)?e:Qy(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ny);ny.Keyed=ry,ny.Indexed=iy,ny.Set=oy;var ay="@@__IMMUTABLE_SEQ__@@";function sy(e){return Boolean(e&&e[ay])}var ly="@@__IMMUTABLE_RECORD__@@";function uy(e){return Boolean(e&&e[ly])}function cy(e){return GO(e)||uy(e)}var dy="@@__IMMUTABLE_ORDERED__@@";function fy(e){return Boolean(e&&e[dy])}var hy=0,py=1,my=2,gy="function"==typeof Symbol&&Symbol.iterator,vy="@@iterator",Oy=gy||vy,yy=function(e){this.next=e};function by(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function wy(){return{value:void 0,done:!0}}function ky(e){return!!Array.isArray(e)||!!Sy(e)}function xy(e){return e&&"function"==typeof e.next}function _y(e){var t=Sy(e);return t&&t.call(e)}function Sy(e){var t=e&&(gy&&e[gy]||e[vy]);if("function"==typeof t)return t}yy.prototype.toString=function(){return"[Iterator]"},yy.KEYS=hy,yy.VALUES=py,yy.ENTRIES=my,yy.prototype.inspect=yy.prototype.toSource=function(){return this.toString()},yy.prototype[Oy]=function(){return this};const Py=Object.prototype.hasOwnProperty,Ey=function(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))};var Cy=function(e){function t(e){return null==e?My():cy(e)?e.toSeq():function(e){var t,n,r=Wy(e);if(r)return(n=Sy(t=e))&&n===t.entries?r.fromEntrySeq():function(e){var t=Sy(e);return t&&t===e.keys}(e)?r.toSetSeq():r;if("object"==typeof e)return new Ay(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new yy((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return by(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(ny),Ty=function(e){function t(e){return null==e?My().toKeyedSeq():GO(e)?KO(e)?e.toSeq():e.fromEntrySeq():uy(e)?e.toSeq():Iy(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Cy),$y=function(e){function t(e){return null==e?My():GO(e)?KO(e)?e.entrySeq():e.toIndexedSeq():uy(e)?e.toSeq().entrySeq():zy(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Cy),Qy=function(e){function t(e){return(GO(e)&&!ty(e)?e:$y(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Cy);Cy.isSeq=sy,Cy.Keyed=Ty,Cy.Set=Qy,Cy.Indexed=$y,Cy.prototype[ay]=!0;var Ry=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[FO(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new yy((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return by(e,o,n[o])}))},t}($y),Ay=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return Py.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new yy((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return by(e,a,n[a])}))},t}(Ty);Ay.prototype[dy]=!0;var jy,Dy=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=_y(this._collection),r=0;if(xy(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=_y(this._collection);if(!xy(n))return new yy(wy);var r=0;return new yy((function(){var t=n.next();return t.done?t:by(e,r++,t.value)}))},t}($y);function My(){return jy||(jy=new Ry([]))}function Iy(e){var t=Wy(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new Ay(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function zy(e){var t=Wy(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Wy(e){return Ey(e)?new Ry(e):ky(e)?new Dy(e):void 0}var Ny="@@__IMMUTABLE_MAP__@@";function Ly(e){return Boolean(e&&e[Ny])}function Fy(e){return Ly(e)&&fy(e)}function Uy(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function Xy(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(Uy(e)&&Uy(t)&&e.equals(t))}var qy="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function By(e){return e>>>1&1073741824|3221225471&e}var Vy=Object.prototype.valueOf;function Yy(e){if(null==e)return Zy(e);if("function"==typeof e.hashCode)return By(e.hashCode(e));var t,n,r,i=(t=e).valueOf!==Vy&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==i)return Zy(i);switch(typeof i){case"boolean":return i?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return By(t)}(i);case"string":return i.length>ob?function(e){var t=lb[e];return void 0===t&&(t=Gy(e),sb===ab&&(sb=0,lb={}),sb++,lb[e]=t),t}(i):Gy(i);case"object":case"function":return function(e){var t;if(tb&&void 0!==(t=eb.get(e)))return t;if(void 0!==(t=e[ib]))return t;if(!Ky){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ib]))return t;if(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e),void 0!==t)return t}if(t=Jy(),tb)eb.set(e,t);else{if(void 0!==Hy&&!1===Hy(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ky)Object.defineProperty(e,ib,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ib]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ib]=t}}return t}(i);case"symbol":return void 0!==(r=nb[n=i])||(r=Jy(),nb[n]=r),r;default:if("function"==typeof i.toString)return Gy(i.toString());throw new Error("Value type "+typeof i+" cannot be hashed.")}}function Zy(e){return null===e?1108378658:1108378659}function Gy(e){for(var t=0,n=0;n=0&&(u.get=function(t,n){return(t=FO(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===py||e.done?e:by(t,l-1,t===hy?void 0:e.value[1],e)}))},u}function Ob(e,t,n,r){var i=Eb(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return l++,i(e,r?o:l-1,a)})),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(my,o),l=!0,u=0;return new yy((function(){var e,o,c;do{if((e=s.next()).done)return r||i===py?e:by(i,u++,i===hy?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],l&&(l=t.call(n,c,o,a))}while(l);return i===my?e:by(i,o,c,e)}))},i}function yb(e,t,n){var r=Eb(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(l,u){l.__iterate((function(o,l){return(!t||u0}function xb(e,t,n,r){var i=Eb(e),o=new Ry(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(py,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=ny(e),_y(i?e.reverse():e)})),a=0,s=!1;return new yy((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:by(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function _b(e,t){return e===t?e:sy(e)?t:e.constructor(t)}function Sb(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Pb(e){return KO(e)?ry:ey(e)?iy:oy}function Eb(e){return Object.create((KO(e)?Ty:ey(e)?$y:Qy).prototype)}function Cb(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Cy.prototype.cacheResult.call(this)}function Tb(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return Zb(this,t,e)}function Zb(e,t,n){for(var r=[],i=0;i0;)t[n]=arguments[n+1];return Gb(this,t,e)}function ew(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Wb(this,e,Ow(),(function(e){return Hb(e,t)}))}function tw(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Wb(this,e,Ow(),(function(e){return Gb(e,t)}))}function nw(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function rw(){return this.__ownerID?this:this.__ensureOwner(new NO)}function iw(){return this.__ensureOwner()}function ow(){return this.__altered}var aw=function(e){function t(t){return null==t?Ow():Ly(t)&&!fy(t)?t:Ow().withMutations((function(n){var r=e(t);Rb(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ow().withMutations((function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return yw(this,e,t)},t.prototype.remove=function(e){return yw(this,e,zO)},t.prototype.deleteAll=function(e){var t=ny(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ow()},t.prototype.sort=function(e){return Xw(bb(this,e))},t.prototype.sortBy=function(e,t){return Xw(bb(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,e.call(t,i,o,n))}))}))},t.prototype.__iterator=function(e,t){return new pw(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?vw(this.size,this._root,e,this.__hash):0===this.size?Ow():(this.__ownerID=e,this.__altered=!1,this)},t}(ry);aw.isMap=Ly;var sw=aw.prototype;sw[Ny]=!0,sw[jO]=sw.remove,sw.removeAll=sw.deleteAll,sw.setIn=Fb,sw.removeIn=sw.deleteIn=Ub,sw.update=qb,sw.updateIn=Bb,sw.merge=sw.concat=Vb,sw.mergeWith=Yb,sw.mergeDeep=Kb,sw.mergeDeepWith=Jb,sw.mergeIn=ew,sw.mergeDeepIn=tw,sw.withMutations=nw,sw.wasAltered=ow,sw.asImmutable=iw,sw["@@transducer/init"]=sw.asMutable=rw,sw["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},sw["@@transducer/result"]=function(e){return e.asImmutable()};var lw=function(e,t){this.ownerID=e,this.entries=t};lw.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=Sw)return function(e,t,n,r){e||(e=new NO);for(var i=new fw(e,Yy(n),[n,r]),o=0;o>>e)&IO),o=this.bitmap;return 0==(o&i)?r:this.nodes[xw(o&i-1)].get(e+DO,t,n,r)},uw.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Yy(r));var s=(0===t?n:n>>>t)&IO,l=1<=Pw)return function(e,t,n,r,i){for(var o=0,a=new Array(MO),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new cw(e,o+1,a)}(e,f,u,s,p);if(c&&!p&&2===f.length&&ww(f[1^d]))return f[1^d];if(c&&p&&1===f.length&&ww(p))return p;var m=e&&e===this.ownerID,g=c?p?u:u^l:u|l,v=c?p?_w(f,d,p,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&IO,o=this.nodes[i];return o?o.get(e+DO,t,n,r):r},cw.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Yy(r));var s=(0===t?n:n>>>t)&IO,l=i===zO,u=this.nodes,c=u[s];if(l&&!c)return this;var d=bw(c,e,t+DO,n,r,i,o,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f>>n)&IO,s=(0===n?r:r>>>n)&IO,l=a===s?[kw(e,t,n+DO,r,i)]:(o=new fw(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function _w(e,t,n,r){var i=r?e:$b(e);return i[t]=n,i}var Sw=MO/4,Pw=MO/2,Ew=MO/4,Cw="@@__IMMUTABLE_LIST__@@";function Tw(e){return Boolean(e&&e[Cw])}var $w=function(e){function t(t){var n=Iw();if(null==t)return n;if(Tw(t))return t;var r=e(t),i=r.size;return 0===i?n:(Rb(i),i>0&&i=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?Lw(e,t).set(0,n):Lw(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};return t>=Fw(e._capacity)?r=zw(r,e.__ownerID,0,t,n,o):i=zw(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Mw(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=DO,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Iw()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Lw(n,0,t+e.length);for(var r=0;r>>t&IO;if(r>=this.array.length)return new Rw([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-DO,n))===a&&o)return this}if(o&&!i)return this;var s=Ww(this,e);if(!o)for(var l=0;l>>t&IO;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-DO,n))===o&&i===this.array.length-1)return this}var a=Ww(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Aw,jw={};function Dw(e,t){var n=e._origin,r=e._capacity,i=Fw(r),o=e._tail;return function e(a,s,l){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>MO&&(u=MO),function(){if(l===u)return jw;var e=t?--u:l++;return s&&s[e]}}(a,l):function(i,o,a){var s,l=i&&i.array,u=a>n?0:n-a>>o,c=1+(r-a>>o);return c>MO&&(c=MO),function(){for(;;){if(s){var n=s();if(n!==jw)return n;s=null}if(u===c)return jw;var r=t?--c:u++;s=e(l&&l[r],o-DO,a+(r<>>n&IO,l=e&&s0){var u=e&&e.array[s],c=zw(u,t,n-DO,r,i,o);return c===u?e:((a=Ww(e,t)).array[s]=c,a)}return l&&e.array[s]===i?e:(o&&WO(o),a=Ww(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ww(e,t){return t&&e&&t===e.ownerID?e:new Rw(e?e.array.slice():[],t)}function Nw(e,t){if(t>=Fw(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&IO],r-=DO;return n}}function Lw(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new NO,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new Rw(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=DO);c&&(a+=c,i+=c,s+=c,o+=c);for(var d=Fw(o),f=Fw(s);f>=1<d?new Rw([],r):h;if(h&&f>d&&aDO;g-=DO){var v=d>>>g&IO;m=m.array[v]=Ww(m.array[v],r)}m.array[d>>>DO&IO]=h}if(s=f)a-=f,s-=f,l=DO,u=null,p=p&&p.removeBefore(r,0,a);else if(a>i||f>>l&IO;if(O!==f>>>l&IO)break;O&&(c+=(1<i&&(u=u.removeBefore(r,l,a-c)),u&&f>>DO<=MO&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):qw(r,i)}Xw.isOrderedMap=Fy,Xw.prototype[dy]=!0,Xw.prototype[jO]=Xw.prototype.remove;var Yw="@@__IMMUTABLE_STACK__@@";function Zw(e){return Boolean(e&&e[Yw])}var Gw=function(e){function t(e){return null==e?ek():Zw(e)?e:ek().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=FO(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Jw(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Zw(t))return t;Rb(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Jw(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):ek()},t.prototype.slice=function(t,n){if(XO(t,n,this.size))return this;var r=qO(t,this.size);if(BO(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Jw(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Jw(this.size,this._head,e,this.__hash):0===this.size?ek():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Ry(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Ry(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new yy((function(){if(r){var t=r.value;return r=r.next,by(e,n++,t)}return{value:void 0,done:!0}}))},t}(iy);Gw.isStack=Zw;var Hw,Kw=Gw.prototype;function Jw(e,t,n,r){var i=Object.create(Kw);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function ek(){return Hw||(Hw=Jw(0))}Kw[Yw]=!0,Kw.shift=Kw.pop,Kw.unshift=Kw.push,Kw.unshiftAll=Kw.pushAll,Kw.withMutations=nw,Kw.wasAltered=ow,Kw.asImmutable=iw,Kw["@@transducer/init"]=Kw.asMutable=rw,Kw["@@transducer/step"]=function(e,t){return e.unshift(t)},Kw["@@transducer/result"]=function(e){return e.asImmutable()};var tk="@@__IMMUTABLE_SET__@@";function nk(e){return Boolean(e&&e[tk])}function rk(e){return nk(e)&&fy(e)}const ik=function(e,t){if(e===t)return!0;if(!GO(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||KO(e)!==KO(t)||ey(e)!==ey(t)||fy(e)!==fy(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!ty(e);if(fy(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&Xy(i[1],e)&&(n||Xy(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,s=t.__iterate((function(t,r){if(n?!e.has(t):i?!Xy(t,e.get(r,zO)):!Xy(e.get(r,zO),t))return a=!1,!1}));return a&&e.size===s},ok=function(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e};function ak(e){if(!e||"object"!=typeof e)return e;if(!GO(e)){if(!Db(e))return e;e=Cy(e)}if(KO(e)){var t={};return e.__iterate((function(e,n){t[n]=ak(e)})),t}var n=[];return e.__iterate((function(e){n.push(ak(e))})),n}var sk=function(e){function t(t){return null==t?fk():nk(t)&&!fy(t)?t:fk().withMutations((function(n){var r=e(t);Rb(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(ry(e).keySeq())},t.intersect=function(e){return(e=ny(e).toArray()).length?uk.intersect.apply(t(e.pop()),e):fk()},t.union=function(e){return(e=ny(e).toArray()).length?uk.union.apply(t(e.pop()),e):fk()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return ck(this,this._map.set(e,e))},t.prototype.remove=function(e){return ck(this,this._map.remove(e))},t.prototype.clear=function(){return ck(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=ck(this,this._map.mapEntries((function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]}),t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r=0&&t=0&&n>>-15,461845907),t=qy(t<<13|t>>>-13,5),t=qy((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=By((t=qy(t^t>>>13,3266489909))^t>>>16)}(i,r)}(this))}});var Ok=ny.prototype;Ok[ZO]=!0,Ok[Oy]=Ok.values,Ok.toJSON=Ok.toArray,Ok.__toStringMapper=Mb,Ok.inspect=Ok.toSource=function(){return this.toString()},Ok.chain=Ok.flatMap,Ok.contains=Ok.includes,ok(ry,{flip:function(){return _b(this,hb(this))},mapEntries:function(e,t){var n=this,r=0;return _b(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return _b(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var yk=ry.prototype;yk[HO]=!0,yk[Oy]=Ok.entries,yk.toJSON=vk,yk.__toStringMapper=function(e,t){return Mb(t)+": "+Mb(e)},ok(iy,{toKeyedSeq:function(){return new ub(this,!1)},filter:function(e,t){return _b(this,gb(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return _b(this,mb(this,!1))},slice:function(e,t){return _b(this,vb(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=qO(e,e<0?this.count():this.size);var r=this.slice(0,e);return _b(this,1===n?r:r.concat($b(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return _b(this,yb(this,e,!1))},get:function(e,t){return(e=FO(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=FO(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function Tk(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}wk.has=Ok.includes,wk.contains=wk.includes,wk.keys=wk.values,ok(Ty,yk),ok($y,bk),ok(Qy,wk);var $k=function(e){function t(e){return null==e?jk():rk(e)?e:jk().withMutations((function(t){var n=oy(e);Rb(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(ry(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(sk);$k.isOrderedSet=rk;var Qk,Rk=$k.prototype;function Ak(e,t){var n=Object.create(Rk);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function jk(){return Qk||(Qk=Ak(Bw()))}Rk[dy]=!0,Rk.zip=bk.zip,Rk.zipWith=bk.zipWith,Rk.zipAll=bk.zipAll,Rk.__empty=jk,Rk.__make=Ak;var Dk=function(e,t){var n;!function(e){if(uy(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(cy(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),l=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var u=0;unx(o,t,n,r,e)))}function ox(e,t,n){if(!n)return t;switch(e){case qk:return t.replace(`${n}/`,"");case Bk:return t.replace(`.${n}`,"");default:return t}}function ax(e,t,n,r){let i=r.find((e=>e.locale===n));i||(i=r[0],console.warn(`[StaticCMS] Could not locale entry for default locale '${n}'`));const o=r.filter((e=>e.locale!==i.locale)).reduce(((e,{locale:t,value:n})=>Lk(e,ex(t).join("."),n.data)),{}),a=ox(t,i.value.path,n),s=xP(e,a);return Uk(Uk(Uk({},i.value),{},{raw:""},o),{},{path:a,slug:s})}function sx(e,t,n){var r,i;const o=t&&null!==(r=null===(i=e.data)||void 0===i?void 0:i[t])&&void 0!==r?r:{},a=n.filter((e=>e!==t)).map((t=>{var n;return{locale:t,value:null===(n=e.data)||void 0===n?void 0:n[t]}})).filter((e=>e.value)).reduce(((e,t)=>Uk(Uk({},e),{},{[t.locale]:{data:t.value}})),{});return Uk(Uk({},e),{},{data:o,i18n:a,raw:""})}function lx(e,t,n){const r=Kk(e);if(!r)return[];const{structure:i,default_locale:o,locales:a}=r;if(i===Vk)return n.map((e=>sx(e,o,a)));const s=AO()(n.map((e=>({locale:rx(i,t,e.path),value:e}))),(({locale:e,value:t})=>ox(i,t.path,e)));return Object.values(s).reduce(((t,n)=>[...t,ax(e,i,o,n)]),[])}function ux(e,t,n,r,i){const o=Ee()(e,["entry","data",...i.split(".")]);var a;return t.i18n===Zk&&n.filter((e=>e!==r)).forEach((t=>{e=Lk(e,["entry",...tx(t,r),i].join("."),o)})),"fields"in t&&!Array.isArray(o)&&(null===(a=t.fields)||void 0===a||a.forEach((t=>{e=ux(e,t,n,r,`${i}.${t.name}`)}))),e}function cx(e,t,n){if("list"===e.widget)return!0===e.i18n?n:t;if("object"===e.widget){var r,i;const o=null!==(r=null==t?void 0:t[e.name])&&void 0!==r?r:null,a=null!==(i=null==n?void 0:n[e.name])&&void 0!==i?i:null;if(!(Array.isArray(o)||"object"!=typeof o||o instanceof Date||Array.isArray(a)||"object"!=typeof a||a instanceof Date))for(const t of e.fields)return cx(t,o,a)}return"translate"===e.i18n?null==n?void 0:n[e.name]:null==t?void 0:t[e.name]}function dx(e,t,n,r){if(!n||n===r)return t;let i=[];const o=yP(e,t.slug);return o?i=o.fields:"fields"in e&&(i=e.fields),Uk(Uk({},t),{},{data:i.reduce(((e,r)=>{var i,o;return e[r.name]=cx(r,t.data,null===(i=t.i18n)||void 0===i||null===(o=i[n])||void 0===o?void 0:o.data),e}),{})})}function fx(e){return Array.isArray(e)||"object"==typeof e&&!(e instanceof Date)?JSON.stringify(e):ze(e)?"":String(e)}function hx(e,t,n){const r=/\.\*$/.test(t.field);let i=t.field;r&&(i=i.replace(/\.\*$/,""));const o=Ee()(e.data,n?`${n}.${i}`:i);return"pattern"in t?Array.isArray(o)&&r?Boolean(o.find((e=>new RegExp(t.pattern).test(fx(e))))):new RegExp(t.pattern).test(fx(o)):Array.isArray(o)&&r?Array.isArray(t.value)?t.matchAll?Boolean(t.value.every((e=>o.find((t=>fx(t)===fx(e)))))):Boolean(o.find((e=>Boolean(t.value.find((t=>fx(t)===fx(e))))))):Boolean(o.find((e=>fx(e)===fx(t.value)))):Array.isArray(t.value)?t.matchAll?Boolean(t.value.every((e=>fx(o)===fx(e)))):Boolean(t.value.find((e=>fx(e)===fx(o)))):fx(o)===fx(t.value)}function px(e,t,n){return"field"in t?hx(e,t,n):new RegExp(t.pattern).test((0,Re.parse)(e.path).base)}function mx(e,t){const n=Qx(t);let r,i;if("fields"in e){var o;let t=null!==(o=e.fields)&&void 0!==o?o:[];for(;(r=n.shift())&&t;){var a,s;if(i=t.find((e=>e.name===r)),i)if("fields"in i)t=null!==(a=null===(s=i)||void 0===s?void 0:s.fields)&&void 0!==a?a:[];else if("types"in i){var l,u;t=null!==(l=null===(u=i)||void 0===u?void 0:u.types)&&void 0!==l?l:[]}}}return i}function gx(e,t){var n;return`${null!==(n=e.label)&&void 0!==n?n:e.name} ${!1===e.required?` (${t("editor.editorControl.field.optional")})`:""}`}function vx(e,t){if(!e)return null;if(0===t.length)return e;if(!("fields"in e)||!e.fields)return null;const n=t.slice(0,1)[0],r=t.slice(1);return vx(e.fields.find((e=>e.name===n)),r)}function Ox(e,t){return vx(Array.isArray(e)?{widget:"object",name:"root",fields:e}:e,(null!=t?t:"").split("."))}function yx(e,t,n,r){var i;if(n&&r){const n=ex(r);return Ee()(t,[...n,e.name])}return null===(i=t.data)||void 0===i?void 0:i[e.name]}function bx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wx(e){for(var t=1;te.toUpperCase()},{pattern:/^lower$/,transform:e=>e.toLowerCase()},{pattern:/^date\('(.+)'\)$/,transform:(e,t,n)=>{if(!n||"datetime"!==n.widget)return e;const{storageFormat:r}=$O(n),i=ls(e,r,new Date);return isNaN(i.getTime())?e:Ta(i,t[1])}},{pattern:/^default\('(.+)'\)$/,transform:(e,t)=>e||t[1]},{pattern:/^ternary\('(.*)',\s*'(.*)'\)$/,transform:(e,t)=>e?t[1]:t[2]},{pattern:/^truncate\(([0-9]+)(?:(?:,\s*['"])([^'"]*)(?:['"]))?\)$/,transform:(e,t)=>{const n=t[2]||"...",r=parseInt(t[1])+n.length;return fs()(e,{length:r,omission:n})}},{pattern:/^split\('(.+)',\s*'(.+)'\)$/,transform:(e,t)=>{if(!e||0===e.trim().length)return"";const n=e.split(t[1]);if(0===n.length)return"";let r=t[2];for(let e=0;e`${e.getUTCFullYear()}`,month:e=>Ex(e.getUTCMonth()+1),day:e=>Ex(e.getUTCDate()),hour:e=>Ex(e.getUTCHours()),minute:e=>Ex(e.getUTCMinutes()),second:e=>Ex(e.getUTCSeconds())};function Tx(e,t,n){var r;if(!t||!n||"datetime"!==n.widget)return;const i=null===(r=e.data)||void 0===r?void 0:r[t];if(i instanceof Date)return i;if("string"!=typeof i)return;const{storageFormat:o}=$O(n);return ls(i,o,new Date)}const $x="SLUG_MISSING_REQUIRED_DATE";function Qx(e){if(!e)return[];const t=[],n=e.split("");let r,i=[];for(;r=n.shift();)["[","]","."].includes(r)?(i.length>0&&t.push(i.join("")),i=[]):i.push(r);return i.length>0&&t.push(i.join("")),t}function Rx({data:e,path:t,paths:n=[]}){t.endsWith(".*")&&(t+=".");const r=t.split(".*.");if(1===r.length)n.push(t);else{const t=r[0],i=Ee()(e,t);Array.isArray(i)&&i.forEach(((i,o)=>{Rx({data:e,path:cs()(`${t}.${o}.${r.slice(1).join(".*.")}`,"."),paths:n})}))}return n}function Ax(e,t){if(!e.startsWith(_x))return;const n=e.slice(_x.length),r=Ee()(t,Qx(n));return"object"==typeof r&&null!==r?JSON.stringify(r):r}function jx(e,t,n="",r,i,o){if(""===e)return"";let a;const s=null!==t,l=e.replace(RegExp(Px,"g"),((e,s,l,u)=>{let c;const d=Ox(i,s),f=Ax(s,r);if(f)c=f;else{if(Cx[s]&&!t)return a=!0,"";c=Cx[s]?Cx[s](t):"slug"===s?n:Ee()(r,Qx(s),"")}if(o)return o(c,d);{const e=function(e){if(e){let t=null;const n=xx.find((n=>(t=e.match(n.pattern),!!t)));if(n)return(e,r)=>n.transform(e,t,r)}return null}(u);e&&(c=e(c,d))}return c}));if(s&&a){const e=new Error;throw e.name=$x,e}return l}function Dx(e){const t=RegExp(Px,"g"),n=RegExp(Sx,"g");return(e.match(t)||[]).map((e=>{const t=e.match(n);return t?t[0]:""}))}function Mx(e,t,n=""){if(!e)return t;const r=(0,Re.extname)(e),i=(0,Re.basename)(e,r),o=(0,Re.dirname)(e).replace(new RegExp(`^(/?)${n}/?`),"$1");return wx(wx({},t),{},{dirname:o,filename:i,extension:""===r?r:r.slice(1)})}var Ix=__webpack_require__(16134),zx=__webpack_require__.n(Ix);function Wx(){let e=zx()(1);return{acquire:function(t=15e3){return new Promise((n=>{const r=setTimeout((()=>{e=zx()(1),n(!1)}),t);e.take((()=>{clearTimeout(r),n(!0)}))}))},release:function(){try{e.leave()}catch(t){if(t instanceof Error&&"leave called too many times."!==t.message)throw t;console.warn("[StaticCMS] Leave called too many times."),e=zx()(1)}}}}const Nx=["url","params"];function Lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fx(e){for(var t=1;tn.abort()),6e4);return fetch(e,Fx(Fx({},t),{},{signal:n.signal})).then((e=>(clearTimeout(r),e))).catch((e=>{if(e instanceof DOMException&&("AbortError"===e.name||"DOMException"===e.name))throw new Error("Request timed out after 60 seconds");throw e}))}function qx(e){const[t,n]=e.split("?");return Fx({url:t},n?{params:(r=n,r.split("&").map((e=>e.split("="))).reduce(((e,[t,n])=>(e[t]=decodeURIComponent(n),e)),{}))}:{});var r}function Bx(e,t){return Fx(Fx({},qx(e)),t||{})}function Vx(e){return`${e.url}${e.params?`?${t=e.params,Object.entries(t).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}`:""}`;var t}const Yx=(Zx=e=>{const{input:t,init:n}=function(e){const{url:t,params:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rZx(function(e){return"string"==typeof e?qx(e):e}(e)));var Zx;const Gx=new RegExp("^(?:[a-z]+:)?//","i"),Hx=(e,t)=>Gx.test(t)?t:e&&t&&"/"!==t[0]&&"/"!==e[e.length-1]?`${e}/${t}`:`${e}${t}`,Kx=e=>(t,n)=>{if("string"==typeof n)return Bx(n,{[e]:t});let r=t;var i;return"headers"===e&&(r=Fx(Fx({},null!==(i=n.headers)&&void 0!==i?i:{}),t)),Fx(Fx({},n),{},{[e]:r})},Jx=Kx("method"),e_=Kx("body"),t_=Kx("headers"),n_=Kx("params"),r_=Kx("cache"),i_={fetchWithTimeout:Xx,fromURL:qx,toURL:Vx,fromFetchArguments:Bx,performRequest:Yx,getAbsoluteRoot:Hx,withRoot:e=>t=>Kx("url")(Hx(e,"string"==typeof t?t:t.url),t),withMethod:Jx,withBody:e_,withHeaders:t_,withParams:n_,withNoCache:e=>r_("no-cache",e)};function o_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t,n,r={}){super(e),o_(this,"message",void 0),o_(this,"status",void 0),o_(this,"api",void 0),o_(this,"meta",void 0),this.message=e,this.status=t,this.api=n,this.name="API_ERROR",this.meta=r}}function s_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),s_(this,"status",void 0),this.status=t}}class u_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),s_(this,"resetSeconds",void 0),this.resetSeconds=t<0?1:t>3600?3600:t}}async function c_(e,t,n=1){e.rateLimiter&&await e.rateLimiter.acquire();try{const n=await e.buildRequest(t),i=e.requestFunction||i_.performRequest,o=await i(n);if(429===o.status){const e=await o.text().catch((()=>"Too many requests"));throw new Error(e)}if(403===o.status){const e=await o.json().catch((()=>({message:""})));if(e.message.match("API rate limit exceeded")){var r;const t=new Date,n=o.headers.has("X-RateLimit-Reset")?parseInt(null!==(r=o.headers.get("X-RateLimit-Reset"))&&void 0!==r?r:"0"):t.getTime()/1e3+60;throw new u_(e.message,n)}o.json=()=>Promise.resolve(e)}return o}catch(r){if(r instanceof Error){if(n>5||"Can't refresh access token when using implicit auth"===r.message)throw r;if(r instanceof u_){if(!e.rateLimiter){const t=r.resetSeconds||n*n;console.info(`[StaticCMS] Pausing requests for ${t} ${1===n?"second":"seconds"} due to fetch failures:`,r.message),e.rateLimiter=Wx(),e.rateLimiter.acquire(),setTimeout((()=>{var t;null===(t=e.rateLimiter)||void 0===t||t.release(),e.rateLimiter=void 0,console.info("[StaticCMS] Done pausing requests")}),1e3*t)}return c_(e,t,n+1)}}throw r}}async function d_(e,t,n,r){const i=e?r?`gh.${e}`:`gh.${e}.blob`:null,o=i?await n.getItem(i):null;if(o)return o;const a=await t();return i&&await n.setItem(i,a),a}async function f_(e,t,n){const r=e?function(e){return`gh.${e}.meta`}(e):null,i=r&&await n.getItem(r);if(i)return i;const o=await t();return r&&await n.setItem(r,o),o}async function h_(e,t,n){const r=function(e){const t=e.split("/");t.pop();return t.reduce(((e,n,r)=>[...e,t.slice(0,r+1).join("/")]),[])}(e),i=await Promise.all(r.map((e=>t(e).then((e=>e.name)).catch((()=>""))))),o=i.filter(Boolean)[0];if(o)throw new a_(`Failed creating branch '${e}' since there is already a branch named '${o}'. Please delete the '${o}' branch and try again`,500,n)}const p_=["deploy"];function m_(e,t){return e.find((({context:e})=>function(e,t){return t?e===t:p_.some((t=>e.includes(t)))}(e,t)))}const g_="cms",v_="static-cms/",O_="Automatically generated by Static CMS",y_="Automatically generated. Merged on Static CMS.";function b_(e,t){return`${e}/${t}`}function w_(e){const t=e.indexOf("/");return{collection:e.slice(0,t),slug:e.slice(t+1)}}function k_(e){return null!=e?e:v_}function x_(e,t){return e.startsWith(k_(t))}function __(e,t){var n;return null!==(n=Me(e.slice(k_(t).length)))&&void 0!==n?n:De.DRAFT}function S_(e,t){return`${k_(t)}${e}`}function P_(e){return e.slice(`${g_}/`.length)}function E_(e){return`${g_}/${e}`}class C_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){super(e),function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"message",void 0),this.message=e,this.name="ACCESS_TOKEN_ERROR"}}function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $_(e){for(var t=1;t(R_.includes(n)&&(t[n]=e[n]),t)),{})}class j_{static create(...e){return new j_(...e)}constructor(...e){if(Q_(this,"store",void 0),Q_(this,"actions",void 0),Q_(this,"data",void 0),Q_(this,"meta",void 0),e[0]instanceof j_)return this.store=e[0].store,this.actions=e[0].actions,this.data=e[0].data,void(this.meta=e[0].meta);this.store=function(...e){var t;const{actions:n,data:r,meta:i}=1===e.length?null!==(t=e[0])&&void 0!==t?t:{actions:new Set,data:{},meta:{}}:{actions:e[0],data:e[1],meta:e[2]};return{actions:new Set([...n]),data:r,meta:A_(i)}}(...e),this.actions=this.store.actions,this.data=this.store.data,this.meta=this.store.meta}updateStore(e){return new j_(e(this.store))}hasAction(e){return function(e,t){return e.actions.has(t)}(this.store,e)}addAction(e){return this.updateStore((t=>$_($_({},t),{},{actions:new Set([...t.actions,e])})))}removeAction(e){return this.updateStore((t=>{const n=new Set([...t.actions]);return n.delete(e),$_($_({},t),{},{actions:n})}))}setActions(e){return this.updateStore((t=>$_($_({},t),{},{actions:new Set(e)})))}mergeActions(e){return this.updateStore((t=>$_($_({},t),{},{actions:new Set([...t.actions,...e])})))}getActionHandlers(e){return function(e,t){for(const n in e.actions)t(n)}(this.store,e)}setData(e){return this.updateStore((t=>$_($_({},t),{},{data:e})))}mergeData(e){return this.updateStore((t=>$_($_({},t),{},{data:$_($_({},t.data),e)})))}wrapData(e){return this.updateStore((t=>$_($_({},t),{},{data:$_($_({},e),{},{wrapped_cursor_data:t.data})})))}unwrapData(){return[this.store.data,this.updateStore((e=>$_($_({},e),{},{data:e.data.wrapped_cursor_data})))]}clearData(){return this.updateStore((e=>$_($_({},e),{},{data:{}})))}setMeta(e){return this.updateStore((t=>$_($_({},t),{},{meta:e})))}mergeMeta(e){return this.updateStore((t=>$_($_({},t),{},{meta:$_($_({},t.meta),e)})))}}const D_=Symbol("cursor key for compatibility with old backends");function M_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I_="EDITORIAL_WORKFLOW_ERROR";class z_ extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),M_(this,"message",void 0),M_(this,"notUnderEditorialWorkflow",void 0),this.message=e,this.notUnderEditorialWorkflow=t,this.name=I_}}var W_=__webpack_require__(49819),N_=__webpack_require__.n(W_),L_=__webpack_require__(48967),F_=__webpack_require__.n(L_);function U_(e,t){return((null==e?void 0:e.path)||"").endsWith(t.startsWith(".")?t:`.${t}`)}function X_(e,t){return n=>{try{return t(n)}catch(t){if(t instanceof Error)throw new Error(`Response cannot be parsed into the expected format (${e}): ${t.message}`);throw t}}}const q_={json:X_("json",(async e=>{const t=e.headers.get("Content-Type")||"";if(!t.startsWith("application/json")&&!t.startsWith("text/json"))throw new Error(`${t} is not a valid JSON Content-Type`);return e.json()})),text:X_("text",(async e=>e.text())),blob:X_("blob",(async e=>e.blob()))};async function B_(e,{expectingOk:t=!0,format:n="text",apiName:r=""}){let i;try{var o;const t=null!==(o=q_[n])&&void 0!==o&&o;if(!t)throw new Error(`${n} is not a supported response format.`);i=await t(e)}catch(t){throw new a_(t.message,e.status,r)}if(t&&!e.ok){var a;const t="json"===n,o=t?i.message||i.msg||(null===(a=i.error)||void 0===a?void 0:a.message):i;throw new a_(t&&o?o:i,e.status,r)}return i}function V_(e){return t=>B_(t,e)}function Y_(e){return e?uo()([e=>e.split(","),N_()((e=>e.trim().split(";"))),N_()((([e,t])=>[t.match(/rel="(.*?)"/)[1],e.trim().match(/<(.*?)>/)[1].replace(/\+/g,"%20")])),F_()])(e):{}}async function Z_(e,t={},n,r){let i=1,o=i_.fromFetchArguments(e,t);const a=[];for(;o&&i<30;){const e=await i_.performRequest(o),s=e.headers.get("Link"),l=s&&Y_(s)[n],{headers:u={}}=t;o=l&&i_.fromFetchArguments(r(l),{headers:u}),a.push(e),i++}return a}function G_(e){return e.split("/").length}var H_=__webpack_require__(38669);const K_=e=>new Promise((t=>{const n=new FileReader;n.onload=({target:e})=>t((0,H_.sha256)((null==e?void 0:e.result)||"")),n.onerror=()=>{n.abort(),t("")},n.readAsArrayBuffer(e)}));var J_=__webpack_require__(15066),eS=__webpack_require__.n(J_),tS=__webpack_require__(95530),nS=__webpack_require__.n(tS),rS=__webpack_require__(43925),iS=__webpack_require__.n(rS);const oS=["size","oid"];function aS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sS(e){for(var t=1;te.trim())),iS()((function(e){return""!==e}))]),fS=nS()([uS,dS,N_()(cS),eS(),e=>{let{size:t,oid:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r[e,hS(t)]]),mS=nS()([uS,N_()((function(e){return e.split("#")[0]})),dS,N_()(pS)]),gS=nS()([mS,iS()((([,e])=>"lfs"===e.filter&&"lfs"===e.diff&&"lfs"===e.merge)),N_()((([e])=>e))]);function vS({size:e,sha:t}){return`version https://git-lfs.github.com/spec/v1\noid sha256:${t}\nsize ${e}\n`}async function OS(e,t,n){const{name:r,size:i}=t,o=await K_(t);await e.uploadResource({sha:o,size:i},t);const a=vS({sha:o,size:i}),s=new Blob([a]),l=new File([s],r,{type:"text/plain"}),u=await K_(l);return{fileObj:l,size:s.size,sha:u,raw:a,path:n}}async function yS(e,t){return await Promise.all(t.map((async t=>{const{fileObj:n,path:r}=t,i=r.startsWith("/")?r.slice(1):r;if(!e.matchPath(i))return t;const o=await OS(e,n,r);return sS(sS({},t),o)})))}var bS=__webpack_require__(50449),wS=__webpack_require__.n(bS),kS=__webpack_require__(94774),xS=__webpack_require__.n(kS);const _S=new RegExp("^(?:(?:[a-z]+:)?//)|(?:mailto:)|(?:tel:)","i");function SS(e){return e.replace(/[\\/]+/g,"/")}function PS(e){return _S.test(e)}function ES(e,t=""){if(""===e)return e;const n=(e=SS(e)).split("/"),r=n[n.length-1];return""===r&&n.length>1?n[n.length-2]:t.length>0&&r.slice(-t.length)===t?r.slice(0,-t.length):r}function CS(e){const t=(e=SS(e)).split("/");if(""===(e=t.pop())&&t.length>0&&(e=t.pop()),".."===e)return"";const n=e.lastIndexOf(".");return-1===n||0===n?"":e.slice(n)}function TS(e){const t=CS(e);return""===t?t:t.slice(1)}function $S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QS(e){for(var t=1;t{o.push(new Promise((o=>i.take((async()=>{try{const[r,a]=await Promise.all([t(e.path,e.id,{parseText:!0}),n(e.path,e.id)]);o({file:QS(QS({},e),a),data:r}),i.leave()}catch(t){i.leave(),console.error(`failed to load file from ${r}: ${e.path}`),o({error:!0})}})))))})),Promise.all(o).then((e=>e.filter((e=>!e.error))))}async function DS(e,t,n,r){return jS(await e(),t,n,r)}async function MS(e,t,n,r){return jS(e,t,n,r)}async function IS(e){try{return await e()}catch(e){if(e instanceof Error&&"Not Found"===e.message)return Promise.resolve([]);throw e}}function zS(e,t){const n=e.match(/.svg$/)?{type:"image/svg+xml"}:{};return new File([t],e,n)}async function WS(e,t,n){let r;if(e.match(/.svg$/)){const i=await n(e,t,{parseText:!0});r=new Blob([i],{type:"image/svg+xml"})}else r=await n(e,t,{parseText:!1});return r}async function NS(e,t,n){const{path:r,id:i}=e;return new Promise(((e,o)=>n.take((()=>WS(r,i,t).then((e=>URL.createObjectURL(e))).then(e,o).finally((()=>n.leave()))))))}async function LS(e,t,n){try{return await e.acquire()||console.warn("[StaticCMS]",n),await t()}finally{e.release()}}const FS="git.local";function US({branch:e,folder:t,extension:n,depth:r}){return`${FS}.${e}.${t}.${n}.${r}`}async function XS({localForage:e,localTree:t,branch:n,folder:r,extension:i,depth:o}){await e.setItem(US({branch:n,folder:r,extension:i,depth:o}),t)}async function qS({listAllFiles:e,readFile:t,readFileMetadata:n,apiName:r,branch:i,localForage:o,folder:a,extension:s,depth:l,getDefaultBranch:u,isShaExistsInBranch:c,getDifferences:d,getFileId:f,filterFile:h,customFetch:p}){async function m(){const t=await e(a,s,l),n=await u();return await XS({localForage:o,localTree:{head:n.sha,files:t.map((e=>({id:e.id,path:e.path,name:ES(e.path)})))},branch:n.name,depth:l,extension:s,folder:a}),t}const g=await async function(){const e=await async function({localForage:e,branch:t,folder:n,extension:r,depth:i}){return await e.getItem(US({branch:t,folder:n,extension:r,depth:i}))}({localForage:o,branch:i,folder:a,extension:s,depth:l});if(e){const t=await u();if(!await c(t.name,e.head))return console.info(`[StaticCMS] Can't find local tree head '${e.head}' in branch '${t.name}', rebuilding local tree`),m();const n=await async function({branch:e,localTree:t,folder:n,getDifferences:r,filterFile:i,getFileId:o}){const a=(await r(e.sha,t.head)).filter((e=>{var t,r;return(null===(t=e.oldPath)||void 0===t?void 0:t.startsWith(n))||(null===(r=e.newPath)||void 0===r?void 0:r.startsWith(n))})).reduce(((e,t)=>("renamed"===t.status?(e.push({path:t.oldPath,name:ES(t.oldPath),deleted:!0}),e.push({path:t.newPath,name:ES(t.newPath),deleted:!1})):"deleted"===t.status?e.push({path:t.oldPath,name:ES(t.oldPath),deleted:!0}):e.push({path:t.newPath||t.oldPath,name:ES(t.newPath||t.oldPath),deleted:!1}),e)),[]).filter(i),s=await Promise.all(a.map((async e=>{if(e.deleted)return QS(QS({},e),{},{id:""});{const t=await o(e.path);return QS(QS({},e),{},{id:t})}})));return s}({branch:t,localTree:e,folder:a,extension:s,depth:l,getDifferences:d,getFileId:f,filterFile:h}).catch((e=>(console.info("[StaticCMS] Failed getting diff from local tree:",e),null)));if(!n)return console.info("[StaticCMS] Diff is null, rebuilding local tree"),m();if(0===n.length)return e.files;{const r=n.reduce(((e,t)=>(e[t.path]=t.deleted,e)),{}),i=wS()(xS()(n.filter((e=>!r[e.path])),e.files.filter((e=>!r[e.path])),(e=>e.path)),(e=>e.path));return await XS({localForage:o,localTree:{head:t.sha,files:i},branch:t.name,depth:l,extension:s,folder:a}),i}}return m()}();return p?await p(g):await jS(g,t,n,r)}function BS(e){return new Promise(((t,n)=>{const r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.src=e,i.onload=()=>{t()},i.onerror=e=>{n(e)},r.appendChild(i)}))}var VS=__webpack_require__(47948),YS=__webpack_require__.n(VS);!function(){const e="localForageTest";YS().setItem(e,{expires:Date.now()+3e5}).then((()=>{YS().removeItem(e)})).catch((e=>{if(22===e.code){const e="Unable to set localStorage key. Quota exceeded! Full disk?";console.warn("[StaticCMS]",e)}console.info(e)}))}();const ZS=YS();function GS(e){return t=>Promise.resolve(t).then(e)}const HS=Symbol("filterPromiseSymbol");function KS(e){return Promise.all(e.map((e=>e.catch((()=>HS))))).then((e=>e.filter((e=>e!==HS))))}function JS(e){return uo()(e.map((e=>function(e){return async t=>e(await t)}(e))))}var eP=__webpack_require__(15608),tP=__webpack_require__.n(eP);function nP(e,t=(()=>!1),n){const r=e.reduce(((e,n)=>{var r;const i=n.name;if(t(n)||Ie(e[i]))return e;const o="fields"in n&&n.fields,a="list"===n.widget,s=null!==(r="default"in n?n.default:null)&&void 0!==r?r:null;if(o){if(a&&Array.isArray(s))e[i]=s;else{const n=Array.isArray(o)?o:[o],r=a?[nP(n,t)]:nP(n,t);l=r,[[{}],{}].some((e=>tP()(l,e)))||(e[i]=r)}return e}var l;return null!==s&&(e[i]=s),e}),null!=n?n:{});return r}function rP(e,t){return nP(e,t)}function iP(e,t,n){const r=null==e?void 0:e.path;return Ne(r)?Co((0,Re.dirname)(r),n):Co(t&&"folder"in t?t.folder:"",Ae,n)}function oP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aP(e){for(var t=1;t(null==e?void 0:e.name)===t));return n}function uP(e,t){return Boolean(t&&e in t)}function cP(e,t,n,r){if(!t)return!1;if(uP(e,r)&&r[e])return!0;if("files"in t){const r=lP(t.files,n);if(r&&e in r)return!0}return e in t}function dP(e,t,n,r,i){let o=t[e];const a=aP({},n);if(e in a||(a[e]=`{{${e}}}`),"files"in a){o=YP(a[e],r,a,o,e,t.slug);const n=lP(a.files,null==r?void 0:r.slug);if(n){const s=aP({},n);if(s[e]||(s[e]=`{{${e}}}`),o=YP(s[e],r,a,o,e,t.slug),i){const n=fP(e,t,a,r,i,s.fields,o);null!==n&&(o=n)}}}else if(o=YP(a[e],r,a,o,e,t.slug),i){const n=fP(e,t,a,r,i,a.fields,o);null!==n&&(o=n)}return o}function fP(e,t,n,r,i,o,a){const s=o.filter((e=>e===i))[0];if(s&&uP(e,s))return YP(s[e]?s[e]:`{{${e}}}`,r,n,a,e,t.slug);for(const s of o){var l;const o=YP(uP(e,s)&&null!==(l=s[e])&&void 0!==l?l:"",r,n,a,e,t.slug);let u=null;if("fields"in s&&s.fields?u=fP(e,t,n,r,i,s.fields,o):"types"in s&&s.types&&(u=fP(e,t,n,r,i,s.types,o)),null!=u)return u}return null}function hP(e,t,n,r,i){var o,a;let s=YP(null!==(o=e.media_folder)&&void 0!==o?o:"",n,t,null!==(a=e.media_folder)&&void 0!==a?a:"","media_folder",e.slug);if(i)s=i;else if(cP("media_folder",t,null==n?void 0:n.slug,r)){const i=dP("media_folder",e,t,n,r);s=i.startsWith("/")?i.replace(/^[/]*/g,""):iP(n,t,i)}return go()(s,"/")}function pP(e,t,n,r,i,o){var a,s,l,u;if(PS(n))return n;let c=YP(null!==(a=e.public_folder)&&void 0!==a?a:"",r,t,null!==(s=e.public_folder)&&void 0!==s?s:"","public_folder",e.slug),d=YP(null!==(l=e.media_folder)&&void 0!==l?l:"",r,t,null!==(u=e.media_folder)&&void 0!==u?u:"","media_folder",e.slug);const f=cP("public_folder",t,null==r?void 0:r.slug,i),h=cP("media_folder",t,null==r?void 0:r.slug,i);return f&&(c=dP("public_folder",e,t,r,i)),h&&(d=dP("media_folder",e,t,r,i)),""===c&&""===d&&t&&"folder"in t&&(d=iP(r,t,d)),o&&(c=o.replace(d,c),d=o),n.startsWith(d)?n.replace(d,c):n.startsWith(go()(d,"/"))?n.replace(go()(d,"/"),c):n}function mP(e,t,n,r,i,o){if(PS(r))return r;let a=hP(e,t,n,i,o);if(!o){var s;let o=go()(null!==(s=e.public_folder)&&void 0!==s?s:a,"/"),l=go()((0,Re.dirname)(r),"/");"."===l&&(l=""),cP("public_folder",t,null==n?void 0:n.slug,i)&&(o=go()(dP("public_folder",e,t,n,i),"/")),l.startsWith(o)&&l!=a&&(a=hP(e,t,n,i,""===o&&l.startsWith(a)?l:l.replace(o,a)))}return r.startsWith(a)?r:Co(a,ES(r))}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vP(e){for(var t=1;t(null==e?void 0:e.name)===t)))||void 0===n?void 0:n[0]):null==r?void 0:r[0]}function bP(e){var t;return(e.extension||Ji[null!==(t=e.format)&&void 0!==t?t:"frontmatter"]).replace(/^\./,"")}function wP(e,t){if("fields"in e)return;const n=yP(e,t);return n&&n.label}function kP(e,t){if("fields"in e){const r=e.folder.replace(/\/$/,"");var n;return e.nested&&null!==(n=e.nested.path)&&void 0!==n&&n.index_file,`${r}/${t}.${bP(e)}`}const r=yP(e,t);return r&&r.file}function xP(e,t){var n;if("fields"in e){var r;const n=e.folder.replace(/\/$/,"");return null===(r=t.split(n+"/").pop())||void 0===r?void 0:r.replace(new RegExp(`\\.${bP(e)}$`),"")}const i=null===(n=e.files.filter((e=>(null==e?void 0:e.file)===t)))||void 0===n?void 0:n[0];return i&&i.name}function _P(e){var t;return"fields"in e&&(null===(t=e.delete)||void 0===t||t)}function SP(e,t){return"fields"in e?e.name:t}function PP(e,t){if(!e)return"";const n=e.summary;if(n)return VP(n,t,e);if("files"in e&&e.files){const n=wP(e,t.slug);if(n)return n}const r=t.data,i=jP(e,"title"),o=i&&Ee()(r,Qx(i));return o||"title"===i?o:Ee()(r,Qx("title"))}function EP(e,t){const n=!["proxy","test"].includes(t.backend.name);let r=$o.map((t=>{const r=jP(e,t);return n&&"author"===t&&!r?ro:r})).filter(Boolean);return n&&(r=[io,...r]),r}function CP(e){const t=e.reduce(((e,t)=>{if("media_folder"in t&&(e=[...e,t]),"fields"in t){var n;const r=null!==(n=t.fields)&&void 0!==n?n:[];e=[...e,...CP(r)]}else if("types"in t){var r;const n=null!==(r=t.types)&&void 0!==r?r:[];e=[...e,...CP(n)]}return e}),[]);return t}function TP(e,t){var n;if("files"in e)return null===(n=e.files)||void 0===n?void 0:n.find((e=>e.name===t))}function $P(e,t=""){var n;let r=null!==(n=null==e?void 0:e.map((e=>`${t}${e.name}`)))&&void 0!==n?n:[];return null==e||e.forEach(((e,t)=>{if("fields"in e){const n=e.fields;r=[...r,...$P(n,`${r[t]}.`)]}else if("types"in e){const n=e.types;r=[...r,...$P(n,`${r[t]}.`)]}})),r}function QP(e,t,n=(()=>!1)){return n()?e:e.map((e=>{const r=t(e);return n()?r:"fields"in r?(r.fields=QP(null!==(i=r.fields)&&void 0!==i?i:[],t,n),r):"types"in r?(r.types=QP(null!==(o=r.types)&&void 0!==o?o:[],t,n),r):r;var i,o}))}function RP(e,t,n){const r=mx(e,t);if(!r)return e;let i=!1;var o;return"fields"in e&&(e.fields=QP(null!==(o=e.fields)&&void 0!==o?o:[],(function(e){const t=e;return t===r?(i=!0,n(t)):t}),(()=>i))),e}function AP(e){var t;const n=e.identifier_field,r=n?[n,...To]:[...To],i=$P("fields"in e&&null!==(t=e.fields)&&void 0!==t?t:[]);return r.find((e=>i.find((t=>t.toLowerCase().trim()===e.toLowerCase().trim()))))}function jP(e,t){var n;if(!e)return;if("title"===t&&e.identifier_field)return AP(e);const r=Qo[t],i="fields"in e?null!==(n=e.fields)&&void 0!==n?n:[]:void 0;let o;if(!i||!r)return null;const a=i.filter((e=>{var t;return(null!==(t=e.widget)&&void 0!==t?t:"string")===r.type})).map((e=>null==e?void 0:e.name));if(o=a.filter((e=>-1!==r.synonyms.indexOf(e))),o&&o.length>0)return o[0];const s=i.filter((e=>{var t;return-1!==r.secondaryTypes.indexOf(null!==(t=e.widget)&&void 0!==t?t:"string")})).map((e=>null==e?void 0:e.name));return o=s.filter((e=>-1!==r.synonyms.indexOf(e))),o&&o.length>0?o[0]:r.fallbackToFirstField&&a.length>0?a[0]:(r.showError&&(l=`The Field ${t} is missing for the collection “${e.name}”`,u=`Static CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.name}”. Please check your site configuration.`,console.error(`%c ⛔ ${l}\n%c${u}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")),null);var l,u}function DP(e){if(!e)return{};const t={},n=jP(e,"title");n&&(t.title=n);const r=jP(e,"shortTitle");r&&(t.shortTitle=r);const i=jP(e,"author");i&&(t.author=i);const o=jP(e,"date");o&&(t.date=o);const a=jP(e,"description");a&&(t.description=a);const s=jP(e,"image");return s&&(t.image=s),t}function MP(e){return(0,c.useMemo)((()=>DP(e)),[e])}function IP(e,t){if(!e)return[];if("fields"in e)return e.fields;if(t){const n=TP(e,t);if(n)return n.fields}return[]}function zP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WP(e){for(var t=1;t{switch(t){case"slug":return n||"";case"path":return r||"";case"collection":return i?i.label_singular||i.label:"";case"author-login":return o||"";case"author-name":return a||"";default:return d=Ax(t,s),d||(console.warn(`[StaticCMS] Ignoring unknown variable “${t}” in commit message template.`),"")}}));return l?null===(u=c.openAuthoring)||void 0===u?void 0:u.replace(FP,((e,t)=>{switch(t){case"message":return f;case"author-login":return o||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})):f}function XP(e){return e.trim().toLocaleLowerCase().replace(/[']/g,"").replace(/[.]/g,"-")}function qP(e,t){return n=>t&&t.includes(n)?n:Eo(XP(String(n)),e)}function BP(e,t,n,r){if(!("fields"in e))return"";const i=e.slug||"{{slug}}",o=AP(e);if(!o)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const a=Ee()(t,Qx(o));if(We(a))return"";const s=qP(n),l=new Date,u=jx(i,l,a,t,r,s);return"path"in e?jx(XP(e.path),l,u,t,r,(e=>e===u?e:s(e))):u}function VP(e,t,n,r){var i;const o=IP(n,t.slug),a=BP(n,t.data,r,o);let s=t.data;const l=jP(n,"date"),u=Tx(t,l,Ox(o,l))||null;return s=null!==(i=Mx(t.path,s,"folder"in n?n.folder:""))&&void 0!==i?i:{},t.author&&!mx(n,ro)&&(s=Lk(s,ro,t.author)),t.updatedOn&&!mx(n,io)&&(s=Lk(s,io,t.updatedOn)),jx(e,u,a,s,o)}function YP(e,t,n,r,i,o){var a;if(!t||!t.data||!n)return e;let s=Lk(t.data,i,r);s=Mx(t.path,s,"folder"in n?n.folder:"");const l=IP(n,t.slug),u=jP(n,"date"),c=Tx(t,u,Ox(l,u))||null,d=qP(o,[r,null===(a=s)||void 0===a?void 0:a.dirname]);return jx(e,c,t.slug,s,l,d)}var ZP,GP,HP=function(){function e(e,t){for(var n=0;n1?n-1:0),i=1;i0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return HP(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i0&&void 0!==arguments[0]?arguments[0]:tE;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var l=t.lastIndexOf(i);t=t.slice(0,l)+(a?i:"")+" "+o+t.slice(l+1)}}return t}}},rE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};new eE(nE({separator:","}),rE,iE),new eE(nE({separator:",",conjunction:"and"}),rE,iE),new eE(nE({separator:",",conjunction:"or"}),rE,iE);const oE=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}};var aE=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};new eE(oE("\n"),(function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(aE):aE(e)?e:""}}}),nE,rE,iE);const sE=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}};new eE(oE("\n"),nE,rE,iE,sE(/&/g,"&"),sE(//g,">"),sE(/"/g,"""),sE(/'/g,"'"),sE(/`/g,"`"));const lE=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},uE=new eE(lE(/(?:\n(?:\s*))+/g," "),iE);new eE(lE(/(?:\n\s*)/g,""),iE),new eE(nE({separator:","}),lE(/(?:\s+)/g," "),iE),new eE(nE({separator:",",conjunction:"or"}),lE(/(?:\s+)/g," "),iE),new eE(nE({separator:",",conjunction:"and"}),lE(/(?:\s+)/g," "),iE),new eE(nE,rE,iE),new eE(nE,lE(/(?:\s+)/g," "),iE);const cE=new eE(rE,iE);new eE(rE("all"),iE);var dE=__webpack_require__(70709),fE=__webpack_require__.n(dE);function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pE(e){for(var t=1;t{switch(t){case"prePublish":case"postPublish":case"preSave":case"postSave":e[t]={all:[],collections:{},files:{}};break;case"change":e[t]={all:[],collections:{},files:{},collectionField:{},fileField:{}};break;default:e[t]=[]}return e}),{}),previewStyles:[],shortcodes:{},themes:[]},OE={registerPreviewTemplate:function(e,t){vE.templates[e]=t},getPreviewTemplate:bE,registerPreviewCard:function(e,t,n){vE.cards[e]={component:t,getHeight:n}},getPreviewCard:wE,registerFieldPreview:function(e,t,n){e in vE.fieldPreviews||(vE.fieldPreviews[e]={}),vE.fieldPreviews[e][t]=n},getFieldPreview:kE,registerWidget:xE,getWidget:_E,getWidgets:SE,resolveWidget:PE,registerWidgetValueSerializer:function(e,t){vE.widgetValueSerializers[e]=t},getWidgetValueSerializer:EE,registerBackend:CE,getBackend:TE,registerLocale:jE,getLocale:DE,registerEventListener:function(e){const{name:t,handler:n}=e;if($E(t),"change"===t){const r=e.collection,i=e.file,o=e.field;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].collectionField[r]={},vE.eventHandlers[t].files[r]={},vE.eventHandlers[t].fileField[r]={}),i?o?(i in vE.eventHandlers[t].fileField[r]||(vE.eventHandlers[t].fileField[r][i]={}),o in vE.eventHandlers[t].fileField[r][i]||(vE.eventHandlers[t].fileField[r][i][o]=[]),void vE.eventHandlers[t].fileField[r][i][o].push(n)):(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void vE.eventHandlers[t].files[r][i].push(n)):o?(o in vE.eventHandlers[t].collectionField[r]||(vE.eventHandlers[t].collectionField[r][o]=[]),void vE.eventHandlers[t].collectionField[r][o].push(n)):void vE.eventHandlers[t].collections[r].push(n)):void vE.eventHandlers[t].all.push(n)}if("preSave"===t){const r=e.collection,i=e.file;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].files[r]={}),i?(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void vE.eventHandlers[t].files[r][i].push(n)):void vE.eventHandlers[t].collections[r].push(n)):void vE.eventHandlers[t].all.push(n)}if("postSave"===t||"prePublish"===t||"postPublish"===t){const r=e.collection,i=e.file;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].files[r]={}),i?(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void vE.eventHandlers[t].files[r][i].push(n)):void vE.eventHandlers[t].collections[r].push(n)):void vE.eventHandlers[t].all.push(n)}vE.eventHandlers[t].push(n)},removeEventListener:function(e){const{name:t,handler:n}=e;if($E(t),"change"===t){const r=e.collection,i=e.file,o=e.field;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].collectionField[r]={},vE.eventHandlers[t].files[r]={},vE.eventHandlers[t].fileField[r]={}),i?o?(i in vE.eventHandlers[t].fileField[r]||(vE.eventHandlers[t].fileField[r][i]={}),o in vE.eventHandlers[t].fileField[r][i]||(vE.eventHandlers[t].fileField[r][i][o]=[]),void(vE.eventHandlers[t].fileField[r][i][o]=AE(vE.eventHandlers[t].fileField[r][i][o],n))):(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void(vE.eventHandlers[t].files[r][i]=AE(vE.eventHandlers[t].files[r][i],n))):o?(o in vE.eventHandlers[t].collectionField[r]||(vE.eventHandlers[t].collectionField[r][o]=[]),void(vE.eventHandlers[t].collectionField[r][o]=AE(vE.eventHandlers[t].collectionField[r][o],n))):void(vE.eventHandlers[t].collections[r]=AE(vE.eventHandlers[t].collections[r],n))):void(vE.eventHandlers[t].all=AE(vE.eventHandlers[t].all,n))}if("preSave"===t){const r=e.collection,i=e.file;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].files[r]={}),i?(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void(vE.eventHandlers[t].files[r][i]=AE(vE.eventHandlers[t].files[r][i],n))):void(vE.eventHandlers[t].collections[r]=AE(vE.eventHandlers[t].collections[r],n))):void(vE.eventHandlers[t].all=AE(vE.eventHandlers[t].all,n))}if("postSave"===t||"prePublish"===t||"postPublish"===t){const r=e.collection,i=e.file;return r?(r in vE.eventHandlers[t]||(vE.eventHandlers[t].collections[r]=[],vE.eventHandlers[t].files[r]={}),i?(i in vE.eventHandlers[t].files[r]||(vE.eventHandlers[t].files[r][i]=[]),void(vE.eventHandlers[t].files[r][i]=AE(vE.eventHandlers[t].files[r][i],n))):void(vE.eventHandlers[t].collections[r]=AE(vE.eventHandlers[t].collections[r],n))):void(vE.eventHandlers[t].all=AE(vE.eventHandlers[t].all,n))}vE.eventHandlers[t]=AE(vE.eventHandlers[t],n)},getEventListeners:QE,invokeEvent:RE,registerIcon:function(e,t){vE.icons[e]=t},getIcon:ME,registerAdditionalLink:function(e){vE.additionalLinks[e.id]=e},getAdditionalLinks:IE,registerPreviewStyle:function(e,{raw:t=!1}={}){vE.previewStyles.push({value:e,raw:t})},getPreviewStyles:yE,registerShortcode:function(e,t){vE.shortcodes[e]?console.error(`Shortcode [${e}] already registered. Please choose a different name.`):vE.shortcodes[e]=t},getShortcode:zE,getShortcodes:WE,registerTheme:function(e){vE.themes.push(e)},getThemes:NE};function yE(){return vE.previewStyles}function bE(e){var t;return null!==(t=vE.templates[e])&&void 0!==t?t:null}function wE(e){var t;return null!==(t=vE.cards[e])&&void 0!==t?t:null}function kE(e,t){var n,r;return null!==(n=null===(r=vE.fieldPreviews[e])||void 0===r?void 0:r[t])&&void 0!==n?n:null}function xE(e,t,n,{schema:r,validator:i=(()=>!1),converters:o={deserialize:e=>e,serialize:e=>e},getValidValue:a=(e=>e),getDefaultValue:s}={}){if(Array.isArray(e))e.forEach((e=>{"object"!=typeof e?console.error(`Cannot register widget: ${e}`):xE(e)}));else if("string"==typeof e){var l;const u="string"==typeof t?null===(l=vE.widgets[t])||void 0===l?void 0:l.control:t;u&&(vE.widgets[e]={control:u,preview:n,validator:i,converters:o,getValidValue:a,getDefaultValue:s,schema:r})}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,options:{validator:i=(()=>!1),converters:o={deserialize:e=>e,serialize:e=>e},getValidValue:a=(e=>e),getDefaultValue:s,schema:l}={}}=e;if(vE.widgets[t]&&console.warn(uE` [StaticCMS] Multiple widgets registered with name "${t}". Only the last widget registered with this name will be used. - `),!n)throw Error(`Widget "${t}" registered without \`controlComponent\`.`);vE.widgets[t]={control:n,preview:r,validator:i,converters:o,getValidValue:a,getDefaultValue:s,schema:l}}else console.error("`registerWidget` failed, called with incorrect arguments.")}function _E(e){return vE.widgets[e]}function SE(){return Object.entries(vE.widgets).map((([e,t])=>pE({name:e},t)))}function PE(e){return _E(e||"string")||_E("unknown")}function EE(e){return vE.widgetValueSerializers[e]}function CE(e,t){e&&t?vE.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):vE.backends[e]={init:(e,n)=>new t(e,n)}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")}function TE(e){return vE.backends[e]}function $E(e){if(!gE.includes(e))throw new Error(`Invalid event name '${e}'`)}function QE(e){const{name:t,collection:n,file:r,field:i}=e;$E(t);const o=[];var a,s,l,u,c,d,f,h,p,m,g;return"change"===t?(o.push(...vE.eventHandlers[t].all),n?(o.push(...null!==(a=vE.eventHandlers[t].collections[n])&&void 0!==a?a:[]),r||i?(i&&o.push(...null!==(f=null===(h=vE.eventHandlers[t].collectionField[n])||void 0===h?void 0:h[i])&&void 0!==f?f:[]),r?(o.push(...null!==(s=null===(l=vE.eventHandlers[t].files[n])||void 0===l?void 0:l[r])&&void 0!==s?s:[]),i?(o.push(...null!==(u=null===(c=vE.eventHandlers[t].fileField[n])||void 0===c||null===(d=c[r])||void 0===d?void 0:d[i])&&void 0!==u?u:[]),o):o):o):o):o):"prePublish"===t||"postPublish"===t||"preSave"===t||"postSave"===t?(o.push(...vE.eventHandlers[t].all),n?(o.push(...null!==(p=vE.eventHandlers[t].collections[n])&&void 0!==p?p:[]),r?(o.push(...null!==(m=null===(g=vE.eventHandlers[t].files[n])||void 0===g?void 0:g[r])&&void 0!==m?m:[]),o):o):o):[...vE.eventHandlers[t]]}async function RE(e){const{name:t,data:n,collection:r,file:i,fieldName:o,field:a}=e;if($E(t),"mounted"===t||"logout"===t){console.info(`[StaticCMS] Firing ${t} event`);const e=vE.eventHandlers[t];for(const t of e)t();return}if("login"===t){console.info("[StaticCMS] Firing login event",n);const e=vE.eventHandlers[t];for(const t of e)t({author:n});return}if("postSave"===t||"prePublish"===t||"postPublish"===t){if(!r)return;const e=QE({name:t,collection:r,file:i});console.info(`[StaticCMS] Firing post save event for${i?` "${i}" file in`:""} "${r}" collection`,n);for(const t of e)t({data:n,collection:r,file:i});return}if("change"===t){if(!r||!a||!n)return;const s=QE({name:t,collection:r,file:i,field:a});let l=fE()(n);console.info(`[StaticCMS] Firing change event for field "${null!=o?o:a}" for${e.file?` "${e.file}" file in`:""} "${r}" collection`);for(const e of s){const t=await e({data:l,collection:r,file:i,field:a});void 0!==l&&t&&(l=t)}return l}if(!r)return;let s=fE()(n);console.info(`[StaticCMS] Firing pre save event for${e.file?` "${e.file}" file in`:""} "${r}" collection`,n);const l=QE({name:t,collection:r,file:i});for(const e of l){const t=await e({data:s,collection:r,file:i});if(void 0!==s&&void 0!==t){const e=pE(pE({},s.entry),{},{data:t});s=pE(pE({},s),{},{entry:e})}}return s.entry.data}function AE(e,t){return e.filter((e=>e!==t))}function jE(e,t){e&&t?vE.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")}function DE(e){return vE.locales[e]}function ME(e){var t;return null!==(t=vE.icons[e])&&void 0!==t?t:null}function IE(){return vE.additionalLinks}function zE(e){return vE.shortcodes[e]}function WE(){return vE.shortcodes}function NE(){return vE.themes}function LE(e,t){const n="backup";return e?`${n}.${e}${t?`.${t}`:""}`:n}const FE={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"};function UE(e,t,n,r,i){var o;if("string"==typeof n||"number"==typeof n)return!1;const a=null!==(o=null==n?void 0:n.length)&&void 0!==o?o:0;function s(n){return{type:FE.RANGE,message:e(`editor.editorControlPane.widget.${n}`,{fieldLabel:t,minCount:r,maxCount:i,count:a})}}return[r,i].every((e=>e&&!isNaN(e)))&&(ai)?s(r===i?"rangeCountExact":"rangeCount"):r&&!isNaN(r)&&r>0&&ai)&&s("rangeMax")}function XE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qE(e){for(var t=1;tqE(qE({},e),{},{path:e.path.slice(r.length)}))),o=i.reduce(((e,t)=>{let n=(0,Re.dirname)(t.path);for(;n&&!e[n]&&"/"!==n;){const t=n.split("/");e[n]=t.pop(),n=t.length?t.join("/"):void 0}return e}),{});"nested"in e&&null!==(n=e.nested)&&void 0!==n&&n.summary?e=qE(qE({},e),{},{summary:e.nested.summary}):delete(e=qE({},e)).summary;const a=[{title:e.label,path:"/",isDir:!0,isRoot:!0},...Object.entries(o).map((([e,t])=>({title:t,path:e,isDir:!0,isRoot:!1}))),...i.map(((n,r)=>{let i=t[r];i=qE(qE({},i),{},{data:VE(i.path,i.data)});const o=PP(e,i);return qE(qE({},n),{},{title:o,isDir:!1,isRoot:!1})}))],s=a.reduce(((e,t)=>{const n="/"===t.path?"":(0,Re.dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e}),{}),l=s[""].reduce((function e(t,n){const r=n;let i=[];return s[r.path]&&(i=s[r.path].reduce(e,[])),t.push(qE(qE({},r),{},{children:i})),t}),[]);return l}var KE=__webpack_require__(74225),JE=__webpack_require__.n(KE);function eC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tC(e){for(var t=1;t!(!e||Array.isArray(e)||"object"!=typeof e||e instanceof Date)));return t.length>0?be.filter(n,t,{extract:e=>String(e[i[0]])}).sort(oC).map((e=>e.original)):[]}return e.map((e=>rC(e,i,n)))}if(e&&"object"==typeof e&&!(e instanceof Date)){const r=tC({},e),[i,...o]=t,a=r[i];return!a||!Array.isArray(a)&&("object"!=typeof a||a instanceof Date)||(r[i]=rC(a,o,n)),r}return e}function iC(e,t,n){return e?[tC(tC({},e),{},{data:t.reduce(((t,r)=>JE()(t,rC(e.data,r.split("."),n))),{})})]:[]}function oC(e,t){return e.score>t.score?-1:e.score-1){var i=n[r];return r>0&&(n.splice(r,1),n.unshift(i)),i.value}return aC}return{get:r,put:function(t,i){r(t)===aC&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,l);function c(){var t=u.get(arguments);if(t===aC){if(t=e.apply(null,arguments),s){var n=u.getEntries().find((function(e){return s(e.value,t)}));n&&(t=n.value)}u.put(arguments,t)}return t}return c.clearCache=function(){return u.clear()},c}function uC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!1!==e)),pC=cC([function(e){var t,n;return null===(t=e.config.config)||void 0===t||null===(n=t.media_library)||void 0===n?void 0:n.display_in_navigation}],(e=>!1!==e));function mC(e){var t;return null===(t=e.config.config)||void 0===t?void 0:t.display_url}function gC(e){return(null==e?void 0:e.publish_mode)===je}const vC=cC([function(e){var t;return null===(t=e.config.config)||void 0===t?void 0:t.publish_mode}],(e=>e===je));var OC=__webpack_require__(1869),yC=__webpack_require__.n(OC);function bC(e,t="",n="",r={}){return{collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:yC()(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||void 0,i18n:r.i18n||{},meta:r.meta||void 0,openAuthoring:r.openAuthoring}}const wC=["field"];function kC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xC(e){for(var t=1;t1?r[1]:null;return null===i?null:Co(n,i).replace(/\/\//g,"")}function PC(e,t){if(ze(e)||"number"==typeof e||"boolean"==typeof e||e instanceof Date)return e;if(Array.isArray(e))return e.map((e=>PC(e,t)));if("object"==typeof e)return Object.keys(e).reduce(((n,r)=>(n[r]=PC(e[r],t),n)),{});return SC(t,e)||e}class EC{constructor(){_C(this,"storageKey","static-cms-user")}retrieve(){const e=window.localStorage.getItem(this.storageKey);return e&&JSON.parse(e)}store(e){window.localStorage.setItem(this.storageKey,JSON.stringify(e))}logout(){window.localStorage.removeItem(this.storageKey)}}function CC(e,t){const n=Ee()(t.data,e);if(n)return String(n);{const n=e.split(".")[0];return t[n]?String(t[n]):""}}function TC(e){return t=>e.reduce(((e,n)=>{const r=CC(n,t);return r?`${e} ${r}`:e}),"")}function $C(e,t){const n=e.reduce(((e,n)=>{const r=t.reduce(((e,t)=>{const r=Rx({data:n.data,path:t});return e.push(...r),e}),[]);for(let t=0;te.field)),n={},r=e.reduce(((e,t)=>{if(!e[t.slug]){const{field:r}=t,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var i;let o=null!==(i=r[e].data)&&void 0!==i?i:{};for(const r of n[e]){const e=Ee()(o,r),n=e.filter(((e,n)=>t.some((e=>`${e}.`.startsWith(`${r}.${n}.`)))));n.sort(((n,i)=>{const o=e.indexOf(n),a=e.indexOf(i),s=`${r}.${o}.`,l=`${r}.${a}.`,u=t.findIndex((e=>`${e}.`.startsWith(s))),c=t.findIndex((e=>`${e}.`.startsWith(l)));return u-c})),o=Lk(o,r,n)}return xC(xC({},r[e]),{},{data:o})}))}function RC(e,t){return function(e){var t;return Boolean("folder"in e&&(null===(t=e.meta)||void 0===t?void 0:t.path))}(t)?(0,Re.dirname)(e).slice(t.folder.length+1)||"/":e}function AC(e){var t,n;let r;return r="nested"in e&&(null===(t=e.nested)||void 0===t?void 0:t.depth)||G_(null!==(n=e.path)&&void 0!==n?n:""),Hk(e)&&(r=function(e,t){const n=Kk(e);if(n){const{structure:e}=n;if(e===qk)return t+1}return t}(e,r)),r}class jC{constructor(e,{backendName:t,authStore:n,config:r}){if(_C(this,"implementation",void 0),_C(this,"backendName",void 0),_C(this,"config",void 0),_C(this,"authStore",void 0),_C(this,"user",void 0),_C(this,"backupSync",void 0),_C(this,"updateUserCredentials",(e=>{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user=xC(xC({},t),e),this.authStore.store(this.user),this.user})),_C(this,"getToken",(()=>this.implementation.getToken())),_C(this,"backendPromise",{}),this.deleteAnonymousBackup(),this.config=r,this.implementation=e.init(this.config,{useWorkflow:gC(this.config),updateUserCredentials:this.updateUserCredentials,initialWorkflowStatus:De.DRAFT}),this.backendName=t,this.authStore=n,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=Wx()}async status(){let e={auth:{status:!0},api:{status:!0,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every((e=>!0===e.status)))return e;await new Promise((e=>setTimeout(e,1e3*t)))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then((e=>(this.user=xC(xC({},e),{},{backendName:this.backendName}),this.authStore.store(this.user),this.user))):Promise.resolve(null)}authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then((e=>(this.user=xC(xC({},e),{},{backendName:this.backendName}),this.authStore&&this.authStore.store(this.user),this.user)))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}async entryExist(e,t,n,r){const i=r&&await this.implementation.unpublishedEntry({collection:e.name,slug:n}).catch((e=>e.name===I_&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e)));if(i)return i;const o=await this.implementation.getEntry(t).then((({data:e})=>e)).catch((()=>Promise.resolve(!1)));return o}async generateUniqueSlug(e,t,n,r,i){const o=n.slug;let a;if(i)a=ZE(e,i);else{const n=IP(e,t.slug);a=BP(e,t.data,o,n)}let s=1,l=a;for(;r.includes(l)||await this.entryExist(e,kP(e,l),l,gC(n));)l=`${a}${Po(" ",o)}${s++}`;return l}processEntries(e,t,n){const r=e.map((e=>bC(t.name,xP(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn}))).map(this.entryWithFormat(t,n)),i=t.filter,o=i?this.filterEntries({entries:r},i):r;if(Hk(t)){const e=bP(t);return lx(t,e,o)}return o}async listEntries(e,t){var n;const r=bP(e);let i;if("folder"in e)i=()=>{const t=AC(e);return this.implementation.entriesByFolder(e.folder,r,t)};else{const t=e.files.map((e=>({path:e.file,label:e.label})));i=()=>this.implementation.entriesByFiles(t)}const o=await i(),a=j_.create(o[D_]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(o,e,t),pagination:null===(n=a.meta)||void 0===n?void 0:n.page,cursor:a}}async listAllEntriesExecutor(e,t){if("folder"in e&&e.folder&&this.implementation.allEntriesByFolder){const n=AC(e),r=bP(e);return this.implementation.allEntriesByFolder(e.folder,r,n,function(e){let t="";return"folder"in e&&e.path&&(t=`${e.folder}/${e.path}`.replace(/{{.*}}/gm,"(.*)")),Hk(e)&&(t=function(e,{default_locale:t,structure:n}){return n===qk?`${t}\\/${e}`:n===Bk?`${e}\\.${t}\\..*`:e}(t,Kk(e))),t?new RegExp(t):void 0}(e)).then((n=>this.processEntries(n,e,t)))}const n=await this.listEntries(e,t),{entries:r}=n;let{cursor:i}=n;for(;i&&null!==(o=i.actions)&&void 0!==o&&o.has("next");){var o;const{entries:e,cursor:n}=await this.traverseCursor(i,"next",t);r.push(...e),i=n}return r}async listAllEntries(e,t){const n=(new Date).getTime();if(e.name in this.backendPromise){const t=this.backendPromise[e.name];if(t&&t.expires>=n){if(t.data)return Promise.resolve(t.data);if(t.promise)return t.promise}delete this.backendPromise[e.name]}const r=new Promise((n=>{this.listAllEntriesExecutor(e,t).then((t=>{const r=(new Date).getTime();this.backendPromise[e.name]={expires:r+5e3,data:t},n(t)}))}));return this.backendPromise[e.name]={expires:n+5e3,promise:r},r}printError(e){return`\n\n${e.stack}`}async search(e,t,n){const r=[],i=e.map((async e=>{var r;const i=Dx(null!==(r=e.summary)&&void 0!==r?r:"");let o=[];"files"in e?e.files.forEach((e=>{const t=e.fields.map((e=>e.name));o=[...o,...t]})):o=[jP(e,"title"),jP(e,"shortTitle"),jP(e,"author"),...i.map((t=>Cx[t]?jP(e,"date"):t))];const a=o.filter(Boolean),s=await this.listAllEntries(e,n);return be.filter(t,s,{extract:TC(Qe()(a))})})).map((e=>e.catch((e=>(r.push(e),[]))))),o=await Promise.all(i).then((e=>Se()(e)));if(r.length>0)throw new Error(`Errors occurred while searching entries locally!${r.map(this.printError)}`);const a=o.filter((({score:e})=>e>3)).sort(oC).map((e=>e.original));return{entries:a,pagination:1}}async query(e,t,n,r,i,o){const a=await this.listAllEntries(e,t);if(i){let e=iC(a.find((e=>e.slug===i)),n,r);return void 0!==o&&o>0&&(e=e.slice(0,o)),{query:r,hits:e}}const s=$C(a,n);let l=be.filter(r,s,{extract:e=>CC(e.field,e)}).sort(oC).map((e=>e.original));return void 0!==o&&o>0&&(l=l.slice(0,o)),{query:r,hits:QC(l)}}traverseCursor(e,t,n){const[r,i]=e.unwrapData(),o=r.collection;return this.implementation.traverseCursor(i,t).then((async({entries:e,cursor:t})=>({entries:this.processEntries(e,o,n),cursor:j_.create(t).wrapData({cursorType:"collectionEntries",collection:o})})))}async getLocalDraftBackup(e,t,n){const r=LE(e.name,n),i=await ZS.getItem(r);if(!i||!i.raw.trim())return{entry:null};const{raw:o,path:a}=i;let{mediaFiles:s=[]}=i;s=s.map((e=>e.file?xC(xC({},e),{},{url:URL.createObjectURL(e.file)}):e));const l=wP(e,n),u=r=>this.entryWithFormat(e,t)(bC(e.name,n,a,{raw:r,label:l,mediaFiles:s})),c=u(o);if(Hk(e)&&i.i18n){const e=function(e,t){return Object.entries(e).reduce(((e,[n,{raw:r}])=>{const i=t(r);return Uk(Uk({},e),{},{[n]:{data:i.data}})}),{})}(i.i18n,u);c.i18n=e}return{entry:c}}async persistLocalDraftBackup(e,t,n){try{await this.backupSync.acquire();const r=LE(t.name,e.slug),i=this.entryToRaw(t,e,n);if(!i.trim())return;const o=await Promise.all(e.mediaFiles.map((async e=>{var t;if(null!==(t=e.url)&&void 0!==t&&t.startsWith("blob:")){const t=await fetch(e.url).then((e=>e.blob()));return xC(xC({},e),{},{file:zS(e.name,t)})}return e})));let a;return Hk(t)&&(a=function(e,t,n){const r=Kk(e);if(!r)return{};const{locales:i,default_locale:o}=r,a=i.filter((e=>e!==o)).reduce(((e,r)=>{const i=tx(r,o),a=Ee()(t,i);return a?Uk(Uk({},e),{},{[r]:{raw:n(Uk(Uk({},t),{},{data:a}))}}):e}),{});return a}(t,e,(e=>this.entryToRaw(t,e,n)))),await ZS.setItem(r,xC({raw:i,path:e.path,mediaFiles:o},a&&{i18n:a})),await ZS.setItem(LE(),i)}catch(e){console.warn("[StaticCMS] persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{return await this.backupSync.acquire(),await ZS.removeItem(LE(e.name,t)),t&&await ZS.removeItem(LE(e.name)),await this.deleteAnonymousBackup()}catch(e){console.warn("[StaticCMS] deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return ZS.removeItem(LE())}async getEntry(e,t,n,r){const i=kP(t,r),o=wP(t,r),a=bP(t),s=async i=>{const a=await this.implementation.getEntry(i);let s=bC(t.name,r,a.file.path,{raw:a.data,label:o,mediaFiles:[]});return s=this.entryWithFormat(t,n)(s),s=await this.processEntry(e,t,s),s};let l;return l=Hk(t)?await async function(e,t,n,r,i){let o=Kk(e);o||(o={structure:Vk,locales:[],enforce_required_non_default:!0});const{structure:a,locales:s,default_locale:l}=o;let u;if(a===Vk)u=sx(await i(n),l,s);else{const o=(await Promise.all(s.map((async e=>{const o=nx(a,t,n,r,e);return{value:await i(o).catch((()=>null)),locale:e}})))).filter((e=>null!==e.value));u=ax(e,a,l,o)}return u}(t,a,i,r,s):await s(i),l}getMedia(e,t,n){return this.implementation.getMedia(e,t,n)}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e,t){return n=>{const r=no(e,n);if(n&&void 0!==n.raw){const e=r&&xe()(r.fromFile.bind(r,n.raw,t))||{};return Te()(e)&&console.error(e),Object.assign(n,{data:Te()(e)?{}:e})}return n}}async processEntry(e,t,n){const r=e.config;if(!r.config)throw new Error("Config not loaded");const i=function(e,t,n){const r=function(e,t){var n;return CP("folder"in e?e.fields:(null===(n=TP(e,t))||void 0===n?void 0:n.fields)||[])}(t,n.slug),i=r.map((r=>hP(e,t,n,r)));if("files"in t)TP(t,n.slug)&&i.unshift(hP(e,t,n,void 0));else if("media_folder"in t){const r=vP({},t);i.unshift(hP(e,r,n,void 0))}return[...new Set(i)]}(r.config,t,n);if(i.length>0){const e=await Promise.all(i.map((e=>{var i,o;const a=pP(r.config,t,"",n,void 0);return this.implementation.getMedia(e,null!==(i=null===(o=t.media_library)||void 0===o?void 0:o.folder_support)&&void 0!==i&&i,a)})));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.files||[]);return n}async persistEntry({config:e,rootSlug:t,collection:n,entryDraft:r,assetProxies:i,usedSlugs:o,unpublished:a=!1,status:s}){var l;const u=await this.invokePreSaveEvent(r.entry,n),c=u?xC(xC({},r),{},{entry:xC(xC({},r.entry),{},{data:u})}):r,d=null!==(l=c.entry.newRecord)&&void 0!==l&&l,f=gC(e),h=function(e,t,n,r){var i,o,a;if(!("nested"in t)||null===(i=t.nested)||void 0===i||!i.path)return;const s=t.nested.path.index_file,l=bP(t),u=null!==(o=null===(a=e.meta)||void 0===a?void 0:a.path)&&void 0!==o?o:GE(t,e,n,r);return(0,Re.join)(t.folder,u,`${s}.${l}`)}(r.entry,n,t,e.slug);let p;if(d){var m;if(!function(e){var t;return"fields"in e&&(null===(t=e.create)||void 0===t||t)}(n))throw new Error("Not allowed to create new entries in this collection");const t=await this.generateUniqueSlug(n,c.entry,e,o,h),r=h||(null!==(m=kP(n,t))&&void 0!==m?m:"");c.entry.path=r,c.entry.data=PC(c.entry.data,r),function(e,t){e.forEach((e=>{const n=SC(t,e.path);n&&(e.path=n)}))}(i,r),p={path:r,slug:t,raw:this.entryToRaw(n,c.entry,e)}}else{const t=c.entry.slug;p={path:c.entry.path,slug:h&&!f?ZE(n,h):t,raw:this.entryToRaw(n,c.entry,e),newPath:h}}const{slug:g,path:v,newPath:O}=p;let y=[p];if(Hk(n)){const t=bP(n);y=function(e,t,n,r,i,o,a){const s=Kk(e);if(!s)return[];const{structure:l=Vk,default_locale:u,locales:c}=s;if(l===Vk){const e=c.reduce(((e,t)=>{const r=tx(t,u);return e&&(e[t]=Ee()(n,r)),e}),{});return n.data=e,[Uk({path:nx(l,t,i,o,c[0]),slug:o,raw:r(n)},a&&{newPath:nx(l,t,a,o,c[0])})]}return c.map((e=>{const s=tx(e,u);return n.data=Ee()(n,s),Uk({path:nx(l,t,i,o,e),slug:o,raw:n.data?r(n):""},a&&{newPath:nx(l,t,a,o,e)})})).filter((e=>e.raw))}(n,t,c.entry,(t=>this.entryToRaw(n,t,e)),v,g,O)}const b=await this.currentUser(),w={newEntry:d,commitMessage:UP(d?"create":"update",e,{collection:n,slug:g,path:v,authorLogin:b.login,authorName:b.name,data:c.entry.data},b.useOpenAuthoring),collectionName:n.name,useWorkflow:f,unpublished:a,status:s};return f||await this.invokePrePublishEvent(c.entry,n),await this.implementation.persistEntry({dataFiles:y,assets:i},w),await this.invokePostSaveEvent(c.entry,n),f||await this.invokePostPublishEvent(c.entry,n),g}async getEventData(e){const{login:t,name:n=""}=await this.currentUser();return{entry:e,author:{login:t,name:n}}}async invokePrePublishEvent(e,t){const n=await this.getEventData(e);return await RE({name:"prePublish",collection:t.name,data:n})}async invokePostPublishEvent(e,t){const n=await this.getEventData(e);return await RE({name:"postPublish",collection:t.name,data:n})}async invokePreSaveEvent(e,t){const n=await this.getEventData(e);return await RE({name:"preSave",collection:t.name,data:n})}async invokePostSaveEvent(e,t){const n=await this.getEventData(e);await RE({name:"postSave",collection:t.name,data:n})}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:UP("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async deleteEntry(e,t,n){const r=e.config;if(!r.config)throw new Error("Config not loaded");const i=kP(t,n),o=bP(t);if(!_P(t))throw new Error("Not allowed to delete entries in this collection");const a=await this.currentUser(),s=UP("delete",r.config,{collection:t,slug:n,path:i,authorLogin:a.login,authorName:a.name},a.useOpenAuthoring);let l=[i];Hk(t)&&(l=ix(t,o,i,n)),await this.implementation.deleteFiles(l,s)}async deleteMedia(e,t){const n=await this.currentUser(),r=UP("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring);return this.implementation.deleteFiles([t],r)}entryToRaw(e,t,n){var r;const i=no(e,t),o=this.fieldsOrder(e,t),a=function(e,t){let n=[];if("folder"in e)n=e.fields;else if("files"in e){const r=e.files.find((e=>(null==e?void 0:e.name)===t.slug));r&&(n=r.fields)}const r={};return $P(n).forEach((t=>{const n=mx(e,t);n&&"comment"in n&&(r[t]=n.comment)})),r}(e,t);return i?i.toFile(null!==(r=t.data)&&void 0!==r?r:{},n,o,a):""}fieldsOrder(e,t){var n,r,i,o,a;if("fields"in e)return null!==(o=null===(a=e.fields)||void 0===a?void 0:a.map((e=>e.name)))&&void 0!==o?o:[];const s=null!==(r=null===(i=(null!==(n=e.files)&&void 0!==n?n:[]).filter((e=>e.name===t.slug)))||void 0===i?void 0:i[0])&&void 0!==r?r:null;if(null==s)throw new Error(`No file found for ${t.slug} in ${e.name}`);return s.fields.map((e=>e.name))}filterEntries(e,t){return function(e,t,n){return e.filter((e=>Array.isArray(t)?t.every((t=>px(e,t,n))):px(e,t,n)))}(e.entries,t,void 0)}async processUnpublishedEntry(e,t,n,r){const{slug:i,openAuthoring:o}=n;let a;if("files"in e){const t=e.files.find((e=>(null==e?void 0:e.name)===i));a=t?(0,Re.extname)(t.file):Ji.json}else a=bP(e);const s=[];if(r){const t=n.diffs.filter((e=>!e.path.endsWith(a))),r=await Promise.all(t.map((t=>this.implementation.unpublishedEntryMediaFile(e.name,i,t.path,t.id))));s.push(...r.map((e=>xC(xC({},e),{},{draft:!0}))))}const l=n.diffs.filter((e=>e.path.endsWith(a)));l.sort(((e,t)=>e.path.length-t.path.length));const u=(r,a,l)=>{const u=bC(e.name,i,a,{raw:r,isModification:!l,label:e&&wP(e,i),mediaFiles:s,updatedOn:n.updatedAt,author:n.pullRequestAuthor,status:Me(n.status),meta:{path:RC(a,e)},openAuthoring:o});return this.entryWithFormat(e,t)(u)},c=async t=>{const r=await this.implementation.unpublishedEntryDataFile(e.name,n.slug,t.path,t.id);return u(r,t.path,t.newFile)};if(l.length<=0){const t=await this.implementation.getEntry(kP(e,i));return u(t.data,t.file.path,!1)}if(Hk(e)){const t=kP(e,i),n=function(e,t,n,r,i){const o=Kk(e);if(!o)return[];const{structure:a}=o;if(a===Vk)return i;const s=ix(e,t,n,r).reduce(((e,t)=>{const n=i.find((e=>e.path===t));return n?[...e,n]:[...e,{path:t,id:"",newFile:!1}]}),[]);return s}(e,a,t,i,l);let r=await Promise.all(n.map((e=>c(e).catch((()=>null)))));return r=r.filter(Boolean),(await lx(e,a,r))[0]}return c(l[0])}async unpublishedEntries(e,t){const n=await this.implementation.unpublishedEntries(),r=(await Promise.all(n.map((async n=>{const r=await this.implementation.unpublishedEntry({id:n}),i=r.collection,o=Object.values(e).find((e=>e.name===i));return o?this.processUnpublishedEntry(o,t,r,!1):(console.warn(`Missing collection '${i}' for unpublished entry '${n}'`),null)})))).filter(Boolean);return{pagination:0,entries:r}}async unpublishedEntry(e,t,n,r){const i=await this.implementation.unpublishedEntry({collection:t.name,slug:r});let o=await this.processUnpublishedEntry(t,n,i,!0);return o=await this.processEntry(e,t,o),o}persistUnpublishedEntry(e){return this.persistEntry(xC(xC({},e),{},{unpublished:!0}))}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}async publishUnpublishedEntry(e,t){await this.invokePrePublishEvent(t,e),await this.implementation.publishUnpublishedEntry(e.name,t.slug),await this.invokePostPublishEvent(t,e)}}const DC=function(){let e;return t=>e||(e=function(e){if(null==e||!e.backend.name)throw new Error("No backend defined in configuration");const{name:t}=e.backend,n=new EC,r=TE(t);if(r)return new jC(r,{backendName:t,authStore:n,config:e});throw new Error(`Backend not found: ${t}`)}(t))}();__webpack_require__(47213);var MC=__webpack_require__(6279),IC=__webpack_require__(52323),zC=__webpack_require__(84559),WC=__webpack_require__(52123),NC=__webpack_require__(42457),LC=__webpack_require__.t(NC,2);let FC=function(e){e()};const UC=()=>FC,XC=Symbol.for("react-redux-context"),qC="undefined"!=typeof globalThis?globalThis:{};function BC(){var e;if(!c.createContext)return{};const t=null!=(e=qC[XC])?e:qC[XC]=new Map;let n=t.get(c.createContext);return n||(n=c.createContext(null),t.set(c.createContext,n)),n}const VC=BC();function YC(e=VC){return function(){return(0,c.useContext)(e)}}const ZC=YC(),GC=()=>{throw new Error("uSES not initialized!")};let HC=GC;const KC=(e,t)=>e===t;function JC(e=VC){const t=e===VC?ZC:YC(e);return function(e,n={}){const{equalityFn:r=KC,stabilityCheck:i,noopCheck:o}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:s,getServerState:l,stabilityCheck:u,noopCheck:d}=t(),f=((0,c.useRef)(!0),(0,c.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,i])),h=HC(s.addNestedSub,a.getState,l||a.getState,f,r);return(0,c.useDebugValue)(h),h}}const eT=JC();function tT(){return tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var rT=__webpack_require__(69060),iT=__webpack_require__.n(rT),oT=__webpack_require__(5356);const aT=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function sT(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,u,c,d,f=!1;return function(h,p){return f?function(f,h){const p=!o(h,l),m=!i(f,s,h,l);return s=f,l=h,p&&m?(u=e(s,l),t.dependsOnOwnProps&&(c=t(r,l)),d=n(u,c,l),d):p?(e.dependsOnOwnProps&&(u=e(s,l)),t.dependsOnOwnProps&&(c=t(r,l)),d=n(u,c,l),d):m?function(){const t=e(s,l),r=!a(t,u);return u=t,r&&(d=n(u,c,l)),d}():d}(h,p):(s=h,l=p,u=e(s,l),c=t(r,l),d=n(u,c,l),f=!0,d)}}function lT(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function uT(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function cT(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=uT(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=uT(i),i=r(t,n)),i},r}}function dT(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function fT(e,t,n){return tT({},n,e,t)}const hT={notify(){},get:()=>[]};function pT(e,t){let n,r=hT,i=0,o=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=UC();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=hT)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return u}const mT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function gT(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function vT(e,t){if(gT(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r({})))}(e),h=function(e){return e&&"object"==typeof e?lT((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"==typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"==typeof e?cT(e):dT(e,"mapDispatchToProps"):lT((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,o=!1;return function(t,n,a){const s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):dT(e,"mergeProps"):()=>fT}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function u(t){const[n,i,o]=c.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=nT(t,OT);return[t.context,e,n]}),[t]),a=c.useMemo((()=>n&&n.Consumer&&(0,oT.isContextConsumer)(c.createElement(n.Consumer,null))?n:d),[n,d]),s=c.useContext(a),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store),f=l?t.store:s.store,h=u?s.getServerState:f.getState,p=c.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=nT(t,aT);return sT(n(e,o),r(e,o),i(e,o),e,o)}(f.dispatch,r)),[f]),[g,v]=c.useMemo((()=>{if(!m)return bT;const e=pT(f,l?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,l,s]),O=c.useMemo((()=>l?s:tT({},s,{subscription:g})),[l,s,g]),y=c.useRef(),b=c.useRef(o),w=c.useRef(),k=c.useRef(!1),x=(c.useRef(!1),c.useRef(!1)),_=c.useRef();mT((()=>(x.current=!0,()=>{x.current=!1})),[]);const S=c.useMemo((()=>()=>w.current&&o===b.current?w.current:p(f.getState(),o)),[f,o]),P=c.useMemo((()=>e=>g?function(e,t,n,r,i,o,a,s,l,u,c){if(!e)return()=>{};let d=!1,f=null;const h=()=>{if(d||!s.current)return;const e=t.getState();let n,h;try{n=r(e,i.current)}catch(e){h=e,f=e}h||(f=null),n===o.current?a.current||u():(o.current=n,l.current=n,a.current=!0,c())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,p,b,y,k,x,w,v,e):()=>{}),[g]);var E,C;let T;E=wT,C=[b,y,k,o,w,v],mT((()=>E(...C)),undefined);try{T=yT(P,S,h?()=>p(h(),o):S)}catch(e){throw _.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${_.current.stack}\n\n`),e}mT((()=>{_.current=void 0,w.current=void 0,y.current=T}));const $=c.useMemo((()=>c.createElement(e,tT({},T,{ref:i}))),[i,e,T]);return c.useMemo((()=>m?c.createElement(a.Provider,{value:O},$):$),[a,$,O])}const g=c.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,l){const t=c.forwardRef((function(e,t){return c.createElement(g,tT({},e,{reactReduxForwardedRef:t}))})),r=t;return r.displayName=n,r.WrappedComponent=e,iT()(r,e)}return iT()(g,e)}},_T=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=c.useMemo((()=>{const t=pT(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}}),[e,r,i,o]),s=c.useMemo((()=>e.getState()),[e]);mT((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const l=t||VC;return c.createElement(l.Provider,{value:a},n)};function ST(e=VC){const t=e===VC?ZC:YC(e);return function(){const{store:e}=t();return e}}const PT=ST();function ET(e=VC){const t=e===VC?PT:ST(e);return function(){return t().dispatch}}const CT=ET();var TT;function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function RT(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}(e=>{HC=e})(WC.useSyncExternalStoreWithSelector),(e=>{yT=e})(zC.useSyncExternalStore),TT=NC.unstable_batchedUpdates,FC=TT,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const AT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],jT=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],DT=c.createContext({isTransitioning:!1});new Map;const MT=d.startTransition;function IT(e){let{basename:t,children:n,future:r,window:i}=e,o=c.useRef();var a;null==o.current&&(o.current=(void 0===(a={window:i,v5Compat:!0})&&(a={}),function(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=u.Pop,l=null,c=d();function d(){return(a.state||{idx:null}).idx}function m(){s=u.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:s,location:b.location,delta:t})}function y(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:O(e);return p(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,a.replaceState(f({},a.state,{idx:c}),""));let b={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(h,m),l=e,()=>{i.removeEventListener(h,m),l=null}},createHref:e=>t(i,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=u.Push;let r=v(b.location,e,t);n&&n(r,e),c=d()+1;let f=g(r,c),h=b.createHref(r);try{a.pushState(f,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(h)}o&&l&&l({action:s,location:b.location,delta:1})},replace:function(e,t){s=u.Replace;let r=v(b.location,e,t);n&&n(r,e),c=d();let i=g(r,c),f=b.createHref(r);a.replaceState(i,"",f),o&&l&&l({action:s,location:b.location,delta:0})},go:e=>a.go(e)};return b}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=y(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),v("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:O(t))}),(function(e,t){m("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),a)));let s=o.current,[l,d]=c.useState({action:s.action,location:s.location}),{v7_startTransition:b}=r||{},w=c.useCallback((e=>{b&&MT?MT((()=>d(e))):d(e)}),[d,b]);return c.useLayoutEffect((()=>s.listen(w)),[s,w]),c.createElement(ge,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}LC.flushSync;const zT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,WT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NT=c.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:d,unstable_viewTransition:f}=e,h=QT(e,AT),{basename:m}=c.useContext(Z),g=!1;if("string"==typeof u&&WT.test(u)&&(n=u,zT))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=D(t.pathname,m);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:g=!0}catch(e){}let v=function(e,t){let{relative:n}=void 0===t?{}:t;J()||p(!1);let{basename:r,navigator:i}=c.useContext(Z),{hash:o,pathname:a,search:s}=ie(e,{relative:n}),l=a;return"/"!==r&&(l="/"===a?r:W([r,a])),i.createHref({pathname:l,search:s,hash:o})}(u,{relative:i}),y=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=void 0===t?{}:t,l=ne(),u=ee(),d=ie(e,{relative:a});return c.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:O(u)===O(d);l(e,{replace:n,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}}),[u,l,d,r,i,n,e,o,a,s])}(u,{replace:a,state:s,target:l,preventScrollReset:d,relative:i,unstable_viewTransition:f});return c.createElement("a",$T({},h,{href:n||v,onClick:g||o?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:l}))})),LT=c.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:a,to:s,unstable_viewTransition:l,children:u}=e,d=QT(e,jT),f=ie(s,{relative:d.relative}),h=ee(),m=c.useContext(Y),{navigator:g}=c.useContext(Z),v=null!=m&&function(e,t){void 0===t&&(t={});let n=c.useContext(DT);null==n&&p(!1);let{basename:r}=function(e){let t=c.useContext(V);return t||p(!1),t}(FT.useViewTransitionState),i=ie(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=D(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=D(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=A(i.pathname,a)||null!=A(i.pathname,o)}(f)&&!0===l,O=g.encodeLocation?g.encodeLocation(f).pathname:f.pathname,y=h.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;r||(y=y.toLowerCase(),b=b?b.toLowerCase():null,O=O.toLowerCase());const w="/"!==O&&O.endsWith("/")?O.length-1:O.length;let k,x=y===O||!o&&y.startsWith(O)&&"/"===y.charAt(w),_=null!=b&&(b===O||!o&&b.startsWith(O)&&"/"===b.charAt(O.length)),S={isActive:x,isPending:_,isTransitioning:v},P=x?n:void 0;k="function"==typeof i?i(S):[i,x?"active":null,_?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof a?a(S):a;return c.createElement(NT,$T({},d,{"aria-current":P,className:k,ref:t,style:E,to:s,unstable_viewTransition:l}),"function"==typeof u?u(S):u)}));var FT,UT;function XT(e){let t=c.useRef(RT(e)),n=c.useRef(!1),r=ee(),i=c.useMemo((()=>function(e,t){let n=RT(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),o=ne(),a=c.useCallback(((e,t)=>{const r=RT("function"==typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(FT||(FT={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(UT||(UT={}));const qT="Ascending",BT="Descending",VT="None",YT="cms.scroll-sync-enabled",ZT="AUTH_REQUEST",GT="AUTH_SUCCESS",HT="AUTH_FAILURE",KT="AUTH_REQUEST_DONE",JT="LOGOUT",e$="CONFIG_REQUEST",t$="CONFIG_SUCCESS",n$="CONFIG_FAILURE",r$="ENTRY_REQUEST",i$="ENTRY_SUCCESS",o$="ENTRY_FAILURE",a$="ENTRIES_REQUEST",s$="ENTRIES_SUCCESS",l$="ENTRIES_FAILURE",u$="SORT_ENTRIES_REQUEST",c$="SORT_ENTRIES_SUCCESS",d$="SORT_ENTRIES_FAILURE",f$="FILTER_ENTRIES_REQUEST",h$="FILTER_ENTRIES_SUCCESS",p$="FILTER_ENTRIES_FAILURE",m$="GROUP_ENTRIES_REQUEST",g$="GROUP_ENTRIES_SUCCESS",v$="GROUP_ENTRIES_FAILURE",O$="DRAFT_CREATE_FROM_ENTRY",y$="DRAFT_CREATE_EMPTY",b$="DRAFT_DISCARD",w$="DRAFT_UPDATE",k$="DRAFT_CHANGE_FIELD",x$="DRAFT_CLEAR_CHILD_VALIDATION",_$="DRAFT_VALIDATION_ERRORS",S$="DRAFT_LOCAL_BACKUP_RETRIEVED",P$="DRAFT_LOCAL_BACKUP_DELETE",E$="DRAFT_CREATE_FROM_LOCAL_BACKUP",C$="DRAFT_CREATE_DUPLICATE_FROM_ENTRY",T$="ENTRY_PERSIST_REQUEST",$$="ENTRY_PERSIST_SUCCESS",Q$="ENTRY_PERSIST_FAILURE",R$="ENTRY_DELETE_SUCCESS",A$="ADD_DRAFT_ENTRY_MEDIA_FILE",j$="REMOVE_DRAFT_ENTRY_MEDIA_FILE",D$="CHANGE_VIEW_STYLE",M$="ADD_ASSETS",I$="ADD_ASSET",z$="REMOVE_ASSET",W$="LOAD_ASSET_REQUEST",N$="LOAD_ASSET_SUCCESS",L$="LOAD_ASSET_FAILURE",F$="MEDIA_LIBRARY_OPEN",U$="MEDIA_LIBRARY_CLOSE",X$="MEDIA_INSERT",q$="MEDIA_REMOVE_INSERTED",B$="MEDIA_LOAD_REQUEST",V$="MEDIA_LOAD_SUCCESS",Y$="MEDIA_LOAD_FAILURE",Z$="MEDIA_PERSIST_REQUEST",G$="MEDIA_PERSIST_SUCCESS",H$="MEDIA_PERSIST_FAILURE",K$="MEDIA_DELETE_REQUEST",J$="MEDIA_DELETE_SUCCESS",eQ="MEDIA_DELETE_FAILURE",tQ="MEDIA_DISPLAY_URL_REQUEST",nQ="MEDIA_DISPLAY_URL_SUCCESS",rQ="MEDIA_DISPLAY_URL_FAILURE",iQ="TOGGLE_SCROLL",oQ="SET_SCROLL",aQ="SEARCH_ENTRIES_REQUEST",sQ="SEARCH_ENTRIES_SUCCESS",lQ="SEARCH_ENTRIES_FAILURE",uQ="QUERY_REQUEST",cQ="QUERY_SUCCESS",dQ="QUERY_FAILURE",fQ="SEARCH_CLEAR",hQ="STATUS_REQUEST",pQ="STATUS_SUCCESS",mQ="STATUS_FAILURE",gQ="THEME_CHANGE",vQ="USE_OPEN_AUTHORING",OQ="UNPUBLISHED_ENTRY_REQUEST",yQ="UNPUBLISHED_ENTRY_SUCCESS",bQ="UNPUBLISHED_ENTRY_REDIRECT",wQ="UNPUBLISHED_ENTRIES_REQUEST",kQ="UNPUBLISHED_ENTRIES_SUCCESS",xQ="UNPUBLISHED_ENTRY_PERSIST_REQUEST",_Q="UNPUBLISHED_ENTRY_PERSIST_SUCCESS",SQ="UNPUBLISHED_ENTRY_PERSIST_FAILURE",PQ="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",EQ="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",CQ="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",TQ="UNPUBLISHED_ENTRY_PUBLISH_REQUEST",$Q="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",QQ="UNPUBLISHED_ENTRY_PUBLISH_FAILURE",RQ="UNPUBLISHED_ENTRY_DELETE_SUCCESS";function AQ(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:LQ(e)?2:FQ(e)?3:0}function zQ(e,t){return 2===IQ(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function WQ(e,t,n){var r=IQ(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function NQ(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function LQ(e){return gR&&e instanceof Map}function FQ(e){return vR&&e instanceof Set}function UQ(e){return e.o||e.t}function XQ(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=SR(e);delete t[wR];for(var n=_R(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=BQ),Object.freeze(e),t&&MQ(e,(function(e,t){return qQ(t,!0)}),!0)),e}function BQ(){AQ(2)}function VQ(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function YQ(e){var t=PR[e];return t||AQ(18,e),t}function ZQ(e,t){PR[e]||(PR[e]=t)}function GQ(){return pR}function HQ(e,t){t&&(YQ("Patches"),e.u=[],e.s=[],e.v=t)}function KQ(e){JQ(e),e.p.forEach(tR),e.p=null}function JQ(e){e===pR&&(pR=e.l)}function eR(e){return pR={p:[],l:pR,h:e,m:!0,_:0}}function tR(e){var t=e[wR];0===t.i||1===t.i?t.j():t.g=!0}function nR(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||YQ("ES5").S(t,e,r),r?(n[wR].P&&(KQ(t),AQ(4)),DQ(e)&&(e=rR(t,e),t.l||oR(t,e)),t.u&&YQ("Patches").M(n[wR].t,e,t.u,t.s)):e=rR(t,n,[]),KQ(t),t.u&&t.v(t.u,t.s),e!==yR?e:void 0}function rR(e,t,n){if(VQ(t))return t;var r=t[wR];if(!r)return MQ(t,(function(i,o){return iR(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return oR(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=XQ(r.k):r.o,o=i,a=!1;3===r.i&&(o=new Set(i),i.clear(),a=!0),MQ(o,(function(t,o){return iR(e,r,i,t,o,n,a)})),oR(e,i,!1),n&&e.u&&YQ("Patches").N(r,n,e.u,e.s)}return r.o}function iR(e,t,n,r,i,o,a){if(jQ(i)){var s=rR(e,i,o&&t&&3!==t.i&&!zQ(t.R,r)?o.concat(r):void 0);if(WQ(n,r,s),!jQ(s))return;e.m=!1}else a&&n.add(i);if(DQ(i)&&!VQ(i)){if(!e.h.D&&e._<1)return;rR(e,i),t&&t.A.l||oR(e,i)}}function oR(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&qQ(t,n)}function aR(e,t){var n=e[wR];return(n?UQ(n):e)[t]}function sR(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function lR(e){e.P||(e.P=!0,e.l&&lR(e.l))}function uR(e){e.o||(e.o=XQ(e.t))}function cR(e,t,n){var r=LQ(t)?YQ("MapSet").F(t,n):FQ(t)?YQ("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:GQ(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=ER;n&&(i=[r],o=CR);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):YQ("ES5").J(t,n);return(n?n.A:GQ()).p.push(r),r}function dR(e){return jQ(e)||AQ(22,e),function e(t){if(!DQ(t))return t;var n,r=t[wR],i=IQ(t);if(r){if(!r.P&&(r.i<4||!YQ("ES5").K(r)))return r.t;r.I=!0,n=fR(t,i),r.I=!1}else n=fR(t,i);return MQ(n,(function(t,i){r&&function(e,t){return 2===IQ(e)?e.get(t):e[t]}(r.t,t)===i||WQ(n,t,e(i))})),3===i?new Set(n):n}(e)}function fR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return XQ(e)}var hR,pR,mR="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),gR="undefined"!=typeof Map,vR="undefined"!=typeof Set,OR="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,yR=mR?Symbol.for("immer-nothing"):((hR={})["immer-nothing"]=!0,hR),bR=mR?Symbol.for("immer-draftable"):"__$immer_draftable",wR=mR?Symbol.for("immer-state"):"__$immer_state",kR="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",xR=""+Object.prototype.constructor,_R="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,SR=Object.getOwnPropertyDescriptors||function(e){var t={};return _R(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},PR={},ER={get:function(e,t){if(t===wR)return e;var n=UQ(e);if(!zQ(n,t))return function(e,t,n){var r,i=sR(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!DQ(r)?r:r===aR(e.t,t)?(uR(e),e.o[t]=cR(e.A.h,r,e)):r},has:function(e,t){return t in UQ(e)},ownKeys:function(e){return Reflect.ownKeys(UQ(e))},set:function(e,t,n){var r=sR(UQ(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=aR(UQ(e),t),o=null==i?void 0:i[wR];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(NQ(n,i)&&(void 0!==n||zQ(e.t,t)))return!0;uR(e),lR(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==aR(e.t,t)||t in e.t?(e.R[t]=!1,uR(e),lR(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=UQ(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){AQ(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){AQ(12)}},CR={};MQ(ER,(function(e,t){CR[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),CR.deleteProperty=function(e,t){return CR.set.call(this,e,t,void 0)},CR.set=function(e,t,n){return ER.set.call(this,e[0],t,n,e[0])};var TR=function(){function e(e){var t=this;this.O=OR,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s1?r-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=YQ("Patches").$;return jQ(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),$R=new TR,QR=$R.produce,RR=($R.produceWithPatches.bind($R),$R.setAutoFreeze.bind($R)),AR=($R.setUseProxies.bind($R),$R.applyPatches.bind($R),$R.createDraft.bind($R)),jR=$R.finishDraft.bind($R);const DR=QR;function MR(e){return MR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MR(e)}function IR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==MR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==MR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===MR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WR(e){for(var t=1;t0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;t--){var i=e[t][wR];if(!i.P)switch(i.i){case 5:r(i)&&lR(i);break;case 4:n(i)&&lR(i)}}}function n(e){for(var t=e.t,n=e.k,r=_R(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==wR){var a=t[o];if(void 0===a&&!zQ(t,o))return!0;var s=n[o],l=s&&s[wR];if(l?l.t!==a:!NQ(s,a))return!0}}var u=!!t[wR];return r.length!==_R(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r{e.messages.push(function(e){for(var t=1;t{e.messages=e.messages.filter((e=>e.id!==t.payload))}}}),{addSnackbar:$A,removeSnackbarById:QA}=TA.actions,RA=e=>e.snackbar.messages,AA=TA.reducer;function jA(){return{type:vQ}}function DA(e){return{type:gQ,payload:e}}function MA(){return{type:ZT}}function IA(e){return{type:GT,payload:e}}function zA(e){return{type:HT,error:"Failed to authenticate",payload:e}}function WA(){return(e,t)=>{const n=t();if(!n.config.config)return;const r=DC(n.config.config);Promise.resolve(r.logout()).then((()=>{e((RE({name:"logout"}),{type:JT}))}))}}var NA=Symbol.for("immer-nothing"),LA=Symbol.for("immer-draftable"),FA=Symbol.for("immer-state");function UA(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var XA=Object.getPrototypeOf;function qA(e){return!!e&&!!e[FA]}function BA(e){return!!e&&(YA(e)||Array.isArray(e)||!!e[LA]||!!e.constructor?.[LA]||JA(e)||ej(e))}var VA=Object.prototype.constructor.toString();function YA(e){if(!e||"object"!=typeof e)return!1;const t=XA(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===VA}function ZA(e,t){0===GA(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function GA(e){const t=e[FA];return t?t.type_:Array.isArray(e)?1:JA(e)?2:ej(e)?3:0}function HA(e,t){return 2===GA(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function KA(e,t,n){const r=GA(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function JA(e){return e instanceof Map}function ej(e){return e instanceof Set}function tj(e){return e.copy_||e.base_}function nj(e,t){if(JA(e))return new Map(e);if(ej(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&YA(e)){if(!XA(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[FA];let r=Reflect.ownKeys(n);for(let t=0;t1&&(e.set=e.add=e.clear=e.delete=ij),Object.freeze(e),t&&ZA(e,((e,t)=>rj(t,!0)))),e}function ij(){UA(2)}function oj(e){return Object.isFrozen(e)}var aj,sj={};function lj(e){const t=sj[e];return t||UA(0),t}function uj(){return aj}function cj(e,t){t&&(lj("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function dj(e){fj(e),e.drafts_.forEach(pj),e.drafts_=null}function fj(e){e===aj&&(aj=e.parent_)}function hj(e){return aj={drafts_:[],parent_:aj,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pj(e){const t=e[FA];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function mj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[FA].modified_&&(dj(t),UA(4)),BA(e)&&(e=gj(t,e),t.parent_||Oj(t,e)),t.patches_&&lj("Patches").generateReplacementPatches_(n[FA].base_,e,t.patches_,t.inversePatches_)):e=gj(t,n,[]),dj(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==NA?e:void 0}function gj(e,t,n){if(oj(t))return t;const r=t[FA];if(!r)return ZA(t,((i,o)=>vj(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Oj(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),ZA(i,((i,a)=>vj(e,r,t,i,a,n,o))),Oj(e,t,!1),n&&e.patches_&&lj("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function vj(e,t,n,r,i,o,a){if(qA(i)){const a=gj(e,i,o&&t&&3!==t.type_&&!HA(t.assigned_,r)?o.concat(r):void 0);if(KA(n,r,a),!qA(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(BA(i)&&!oj(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;gj(e,i),t&&t.scope_.parent_||Oj(e,i)}}function Oj(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&rj(t,n)}var yj={get(e,t){if(t===FA)return e;const n=tj(e);if(!HA(n,t))return function(e,t,n){const r=kj(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!BA(r)?r:r===wj(e.base_,t)?(_j(e),e.copy_[t]=Sj(r,e)):r},has:(e,t)=>t in tj(e),ownKeys:e=>Reflect.ownKeys(tj(e)),set(e,t,n){const r=kj(tj(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=wj(tj(e),t),i=r?.[FA];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||HA(e.base_,t)))return!0;_j(e),xj(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==wj(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,_j(e),xj(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=tj(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){UA(11)},getPrototypeOf:e=>XA(e.base_),setPrototypeOf(){UA(12)}},bj={};function wj(e,t){const n=e[FA];return(n?tj(n):e)[t]}function kj(e,t){if(!(t in e))return;let n=XA(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=XA(n)}}function xj(e){e.modified_||(e.modified_=!0,e.parent_&&xj(e.parent_))}function _j(e){e.copy_||(e.copy_=nj(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Sj(e,t){const n=JA(e)?lj("MapSet").proxyMap_(e,t):ej(e)?lj("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:uj(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=yj;n&&(i=[r],o=bj);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:uj()).drafts_.push(n),n}function Pj(e){if(!BA(e)||oj(e))return e;const t=e[FA];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=nj(e,t.scope_.immer_.useStrictShallowCopy_)}else n=nj(e,!0);return ZA(n,((e,t)=>{KA(n,e,Pj(t))})),t&&(t.finalized_=!1),n}ZA(yj,((e,t)=>{bj[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),bj.deleteProperty=function(e,t){return bj.set.call(this,e,t,void 0)},bj.set=function(e,t,n){return yj.set.call(this,e[0],t,n,e[0])};var Ej=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let r;if("function"!=typeof t&&UA(6),void 0!==n&&"function"!=typeof n&&UA(7),BA(e)){const i=hj(this),o=Sj(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?dj(i):fj(i)}return cj(i,n),mj(r,i)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===NA&&(r=void 0),this.autoFreeze_&&rj(r,!0),n){const t=[],i=[];lj("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}UA(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;const i=this.produce(e,t,((e,t)=>{n=e,r=t}));return[i,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;BA(e)||UA(8),qA(e)&&(qA(t=e)||UA(10),e=Pj(t));const n=hj(this),r=Sj(e,void 0);return r[FA].isManual_=!0,fj(n),r}finishDraft(e,t){const n=e&&e[FA];n&&n.isManual_||UA(9);const{scope_:r}=n;return cj(r,t),mj(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=lj("Patches").applyPatches_;return qA(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Cj=Ej.produce;Ej.produceWithPatches.bind(Ej),Ej.setAutoFreeze.bind(Ej),Ej.setUseStrictShallowCopy.bind(Ej),Ej.applyPatches.bind(Ej),Ej.createDraft.bind(Ej),Ej.finishDraft.bind(Ej);var Tj=__webpack_require__(32440),$j=__webpack_require__.n(Tj),Qj=__webpack_require__(86910),Rj=__webpack_require__.n(Qj),Aj=__webpack_require__(71118),jj=__webpack_require__.n(Aj),Dj=__webpack_require__(42379),Mj=__webpack_require__.n(Dj),Ij=__webpack_require__(87842),zj=__webpack_require__.n(Ij),Wj=__webpack_require__(31335),Nj=__webpack_require__.n(Wj),Lj=__webpack_require__(73064),Fj=__webpack_require__.n(Lj);function Uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xj(e){for(var t=1;t({type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastColor:{type:"string"}},required:e?["main","light","dark","contrastColor"]:[]}),eD=e=>({type:"object",properties:Xj(Xj({name:{type:"string"}},e?{}:{extends:{type:"string"}}),{},{text:{type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},disabled:{type:"string"}},required:e?["primary","secondary","disabled"]:[]},background:{type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},divider:{type:"string"}},required:e?["main","light","dark","divider"]:[]},scrollbar:{type:"object",properties:{main:{type:"string"},light:{type:"string"}},required:e?["main","light"]:[]},button:{type:"object",properties:{disabled:{type:"string"}},required:e?["disabled"]:[]},primary:Jj(e),error:Jj(e),warning:Jj(e),info:Jj(e),success:Jj(e),codemirror:{type:"object",properties:{theme:{type:"string",examples:["light","dark"],enum:["light","dark"]}},required:e?["theme"]:[]}}),required:e?["name","text","background","scrollbar","button","primary","error","warning","info","success","codemirror"]:["name","extends"]});function tD(){const e=PA();return{$id:`fields_${e}`,type:"array",minItems:1,items:{$id:`field_${e}`,type:"object",properties:{name:{type:"string"},label:{type:"string"},widget:{type:"string"},required:{type:"boolean"},i18n:Gj,hint:{type:"string"},pattern:{type:"array",minItems:2,maxItems:2,items:[{oneOf:[{type:"string"},{instanceof:"RegExp"}]},{type:"string"}]},field:{$ref:`field_${e}`},fields:{$ref:`fields_${e}`},types:{$ref:`fields_${e}`}},select:{$data:"0/widget"},selectCases:Xj({},Xj({},SE().reduce(((e,t)=>{var n;return e[t.name]=null!==(n=t.schema)&&void 0!==n?n:{},e}),{}))),required:["name"]},uniqueItemProperties:["name"]}}const nD={type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},field:{type:"string"},pattern:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},required:["name","label","field","pattern"]}},rD={type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},field:{type:"string"},pattern:{type:"string"}},required:["name","label","field"]}};class iD extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){super(e.map((({message:e,schemaPath:t})=>{const n=t.slice(1).split("/").map((e=>e.match(/^\d+$/)?`[${e}]`:`.${e}`)).join("").slice(1);return`${n?`'${n}'`:"config"} ${e}`})).join("\n"))}toString(){return this.message}}function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aD(e){for(var t=1;t{const n=t(e);return"fields"in n&&n.fields?aD(aD({},n),{},{fields:lD(n.fields,t)}):"list"===n.widget&&n.types?aD(aD({},n),{},{types:lD(n.types,t)}):n}))}const uD=(e,t,n)=>r=>{return"media_folder"in r&&!("public_folder"in r)?aD(aD({},r),{},{public_folder:r.media_folder}):("image"!==r.widget&&"file"!==r.widget&&"markdown"!==r.widget||(r.media_library=aD(aD(aD(aD({},null!==(i=t.media_library)&&void 0!==i?i:{}),null!==(o=null==n?void 0:n.media_library)&&void 0!==o?o:{}),null!==(a=e.media_library)&&void 0!==a?a:{}),null!==(s=r.media_library)&&void 0!==s?s:{})),r);var i,o,a,s};function cD(e){return!0===e.i18n?aD(aD({},e),{},{i18n:Yk}):!1!==e.i18n&&e.i18n?e:aD(aD({},e),{},{i18n:Gk})}function dD(e,{default_locale:t,locales:n=["en"],structure:r=Vk,enforce_required_non_default:i=!0}){if("boolean"==typeof e)return{default_locale:t,locales:n,structure:r,enforce_required_non_default:i};{var o;const a=JE()({default_locale:t,locales:n,structure:r,enforce_required_non_default:i},e);return a.locales=null!==(o=e.locales)&&void 0!==o?o:n,a.default_locale=e.default_locale||(null==n?void 0:n[0]),a.enforce_required_non_default=e.enforce_required_non_default||!0,pD(a),a}}function fD(e,t){return lD(e,t?cD:e=>{const t=aD({},e);return delete t.i18n,t})}function hD(e){if(e&&e.structure!==Vk)throw new Error(`i18n configuration for files collections is limited to ${Vk} structure`)}function pD(e){var t,n;if(e&&e.default_locale&&(null===(t=e.locales)||void 0===t||!t.includes(e.default_locale)))throw new Error(`i18n locales '${null===(n=e.locales)||void 0===n?void 0:n.join(", ")}' are missing the default locale ${e.default_locale}`)}function mD(e,t){var n,r,i,o,a,s;let l,u;u=t.i18n&&e.i18n?dD(e.i18n,t.i18n):void 0,l="folder"in e?function(e,t,n){var r;const i=aD(aD({},e),{},{view_filters:void 0,view_groups:void 0,i18n:t});return i.path&&!i.media_folder&&(i.media_folder=""),"media_folder"in i&&!("public_folder"in i)&&(i.public_folder=i.media_folder),"fields"in i&&i.fields&&(i.fields=lD(i.fields,uD(i,n))),i.folder=go()(i.folder,"/"),i.publish=null===(r=i.publish)||void 0===r||r,i}(e,u,t):function(e,t,n){const r=aD(aD({},e),{},{i18n:t,view_filters:void 0,view_groups:void 0,files:e.files.map((r=>function(e,t,n,r){var i,o;const a=aD(aD({},e),{},{i18n:void 0});let s;return a.file=$j()(a.file,"/"),"media_folder"in a&&!("public_folder"in a)&&(a.public_folder=a.media_folder),a.media_library=aD(aD({},null!==(i=t.media_library)&&void 0!==i?i:{}),null!==(o=a.media_library)&&void 0!==o?o:{}),a.fields&&(a.fields=lD(a.fields,uD(t,r,a))),e.i18n&&n?(s=dD(e.i18n,{locales:n.locales,default_locale:n.default_locale,structure:n.structure,enforce_required_non_default:n.enforce_required_non_default}),a.i18n=s):(s=void 0,delete a.i18n),hD(s),a.fields&&(a.fields=fD(a.fields,Boolean(s))),t.editor&&!a.editor&&(a.editor=t.editor),a}(r,e,t,n)))});return hD(t),r}(e,u,t),t.editor&&!l.editor&&(l.editor=t.editor),l.media_library=aD(aD({},null!==(n=t.media_library)&&void 0!==n?n:{}),null!==(r=l.media_library)&&void 0!==r?r:{}),"fields"in l&&l.fields&&(l.fields=fD(l.fields,Boolean(u)));const{view_filters:c,view_groups:d}=e;return l.sortable_fields||(l.sortable_fields={fields:EP(l,t)}),l.view_filters={default:null===(i=e.view_filters)||void 0===i?void 0:i.default,filters:(null!==(o=null==c?void 0:c.filters)&&void 0!==o?o:[]).map((e=>aD(aD({},e),{},{id:`${e.field}__${e.pattern}`})))},l.view_groups={default:null===(a=e.view_groups)||void 0===a?void 0:a.default,groups:(null!==(s=null==d?void 0:d.groups)&&void 0!==s?s:[]).map((e=>aD(aD({},e),{},{id:`${e.field}__${e.pattern}`})))},l}function gD(e,t){return async n=>{n({type:e$});try{let r;if(window.CMS_CONFIG)r=window.CMS_CONFIG;else{const t=function(){const e=document.querySelector('link[rel="cms-config-url"]');return e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&e.href?(console.info(`[StaticCMS] Using config file path: "${e.href}"`),e.href):`${window.location.origin}${window.location.pathname.slice(0,window.location.pathname.lastIndexOf("/"))}/config.yml`}();r=e||await async function(e){var t;const n=await fetch(e,{credentials:"same-origin"}).catch((e=>e));if(n instanceof Error||200!==n.status){const e=n instanceof Error?n.message:n.status;throw new Error(`Failed to load config.yml (${e})`)}const r=null!==(t=n.headers.get("Content-Type"))&&void 0!==t?t:"Not-Found";return-1!==r.indexOf("yaml")||console.info(`[StaticCMS] Response for ${e} was not yaml. (Content-Type: ${r})`),function(e){const t=Ri.parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});if("undefined"!=typeof window&&"string"==typeof window.CMS_ENV&&t[window.CMS_ENV]){const e=Object.keys(t[window.CMS_ENV]);for(const n of e)t[n]=t[window.CMS_ENV][n]}return t}(await n.text())}(t)}!function(e){const t=new(Rj())({allErrors:!0,allowUnionTypes:!0,$data:!0});if(Fj()(t),Nj()(t),Mj()(t),zj()(t),jj()(t),!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},repo:{type:"string"},branch:{type:"string"},api_root:{type:"string"},site_domain:{type:"string"},base_url:{type:"string"},auth_endpoint:{type:"string"},app_id:{type:"string"},auth_type:{type:"string",examples:["implicit","pkce"],enum:["implicit","pkce"]},proxy_url:{type:"string"},large_media_url:{type:"string"},login:{type:"boolean"},identity_url:{type:"string"},gateway_url:{type:"string"},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},commit_messages:{type:"object",properties:{create:{type:"string"},update:{type:"string"},delete:{type:"string"},uploadMedia:{type:"string"},deleteMedia:{type:"string"}}},use_large_media_transforms_in_media_library:{type:"boolean"},always_fork:{type:"boolean"},open_authoring:{type:"boolean"},squash_merges:{type:"boolean"},cms_label_prefix:{type:"string"}},required:["name"]},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},description:{type:"string"},icon:{type:"string"},summary:{type:"string"},summary_fields:{type:"array",items:{type:"string"}},filter:Kj,label_singular:{type:"string"},label:{type:"string"},sortable_fields:{type:"object",properties:{default:{type:"object",properties:{field:{type:"string"},direction:{type:"string"}},required:["field"]},fields:{type:"array",items:{type:"string"}}},required:["fields"]},view_filters:{type:"object",properties:{default:{type:"string"},filters:nD},required:["filters"]},view_groups:{type:"object",properties:{default:{type:"string"},groups:rD},required:["groups"]},i18n:Zj,hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"},frame:{type:"boolean"}}},identifier_field:{type:"string"},path:{type:"string"},extension:{type:"string"},format:{type:"string",enum:Object.keys(Ji)},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},slug:{type:"string"},media_folder:{type:"string"},public_folder:{type:"string"},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}},folder:{type:"string"},fields:tD(),create:{type:"boolean"},delete:{type:"boolean"},nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},summary:{type:"string"},path:{type:"object",properties:{label:{type:"string"},index_file:{type:"string"}},required:["index_file"]}},required:["depth"]},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},file:{type:"string"},fields:tD(),label_singular:{type:"string"},description:{type:"string"},media_folder:{type:"string"},public_folder:{type:"string"},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}},i18n:Zj,editor:{type:"object",properties:{preview:{type:"boolean"},frame:{type:"boolean"}}}},required:["name","label","file","fields"]},uniqueItemProperties:["name"]}},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(eo)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:Ki}},required:["format"]}}},uniqueItemProperties:["name"]},locale:{type:"string",examples:["en","fr","de"]},site_id:{type:"string"},site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},base_url:{type:"string"},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},logo_link:{type:"string",examples:["https://example.com"]},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_library:{type:"object",properties:{display_in_navigation:{type:"boolean"},max_file_size:{type:"number"},folder_support:{type:"boolean"}}},publish_mode:{type:"string",enum:["simple","editorial_workflow"],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"},sanitize_replacement:{type:"string"}}},i18n:Yj,local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}}}]},disable_local_backup:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"},frame:{type:"boolean"}}},search:{type:"boolean"},theme:{type:"object",properties:{defaultTheme:{type:"string"},includeStandardThemes:{type:"boolean"},themes:{type:"array",items:{oneOf:[eD(!0),eD(!1)]}}}}},required:["backend","collections","media_folder"]},e)){var n;const e=null===(n=t.errors)||void 0===n?void 0:n.map((e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.schemaPath||"";let n=e;return t.endsWith("/fields")?n=Xj(Xj({},e),{},{message:"fields names must be unique"}):t.endsWith("/files")?n=Xj(Xj({},e),{},{message:"files names must be unique"}):t.endsWith("/collections")&&(n=Xj(Xj({},e),{},{message:"collections names must be unique"})),n}case"instanceof":{const t=e.schemaPath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n=Xj(Xj({},e),{},{message:"should be a regular expression"})),n}default:return e}}));throw console.error("Config Errors",e),new iD(null!=e?e:[])}}(r);const i=function(e){var t,n,r,i;const o=fE()(e),a=o.i18n;var s,l;a&&(a.default_locale=null!==(s=a.default_locale)&&void 0!==s?s:a.locales[0],a.enforce_required_non_default=null===(l=a.enforce_required_non_default)||void 0===l||l),pD(a);const u=aD(aD({},o),{},{collections:(null!==(t=o.collections)&&void 0!==t?t:[]).map((e=>mD(e,o)))});u.publish_mode=null!==(n=u.publish_mode)&&void 0!==n?n:"simple",u.slug=null!==(r=u.slug)&&void 0!==r?r:{},u.collections=null!==(i=u.collections)&&void 0!==i?i:[],!u.display_url&&u.site_url&&(u.display_url=u.site_url);const c=`/${$j()(u.media_folder,"/")}`;return"public_folder"in u||(u.public_folder=c),"encoding"in u.slug||(u.slug.encoding="unicode"),"clean_accents"in u.slug||(u.slug.clean_accents=!1),"sanitize_replacement"in u.slug||(u.slug.sanitize_replacement="-"),u}(await async function(e){if(!e.local_backend)return e;const{proxyUrl:t,publish_modes:n,type:r}=await async function(e){if(!["localhost","127.0.0.1",..."boolean"==typeof e?[]:(null==e?void 0:e.allowed_hosts)||[]].includes(location.hostname)||!e)return{};const t="http://localhost:8081/api/v1",n=!0===e?t:e.url||t.replace("localhost",location.hostname);try{console.info(`[StaticCMS] Looking for Static CMS Proxy Server at '${n}'`);const e=await fetch(`${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}),{repo:t,publish_modes:r,type:i}=await e.json();return"string"==typeof t&&Array.isArray(r)&&"string"==typeof i?(console.info(`[StaticCMS] Detected Static CMS Proxy Server at '${n}' with repo: '${t}'`),{proxyUrl:n,publish_modes:r,type:i}):(console.info(`[StaticCMS] Static CMS Proxy Server not detected at '${n}'`),{})}catch{return console.info(`[StaticCMS] Static CMS Proxy Server not detected at '${n}'`),{}}}(e.local_backend);return t?Cj(e,(e=>{e.backend.name="proxy",e.backend.proxy_url=t,e.publish_mode&&(e.publish_mode=function(e,t,n){if(e.publish_mode&&t&&!t.includes(e.publish_mode)){const r=t[0];return console.info(`'${e.publish_mode}' is not supported by '${n}' backend, switching to '${r}'`),r}return e.publish_mode}(e,n,r))})):e}(r));n(function(e,t){return{type:t$,payload:{config:e,originalConfig:t}}}(i,r)),"function"==typeof t&&t(i)}catch(e){throw console.error(e),e instanceof Error&&n({type:n$,error:"Error loading config",payload:e}),e}}}var vD=__webpack_require__(69731),OD=__webpack_require__(99092),yD=__webpack_require__.n(OD),bD=__webpack_require__(39488),wD=__webpack_require__.n(bD);function kD(e,t,n){var r;let i=null!==(r=null==t?void 0:t.reduce(((t,r)=>{const i=r.name,o=null==e?void 0:e[i],a="widget"in r&&r.widget?EE(r.widget):void 0,s="fields"in r?r.fields:void 0;if(s&&Array.isArray(o)){for(const e of o)"object"==typeof e&&(t[i]=kD(e,s,n));return t}return s&&"object"==typeof o?(t[i]=kD(o,s,n),t):a&&!ze(o)?(t[i]=a[n](o),t):(ze(o)||(t[i]=o),t)}),{}))&&void 0!==r?r:{};return i=wD()(e,i),i}function xD(e,t){return new j_(e.cursors.cursorsByType.collectionEntries[t])}const _D=cC([e=>e.entries.filter,(e,t)=>t],((e,t)=>{var n;return t&&null!==(n=null==e?void 0:e[t])&&void 0!==n?n:{}})),SD=cC([e=>e.entries.group,(e,t)=>t],((e,t)=>{var n;return t&&null!==(n=null==e?void 0:e[t])&&void 0!==n?n:{}})),PD=cC([SD],(e=>Object.values(e).find((e=>!0===(null==e?void 0:e.active))))),ED=cC([e=>e.entries.sort,(e,t)=>t],((e,t)=>{var n;return t&&null!==(n=e[t])&&void 0!==n?n:{}})),CD=cC([ED],(e=>Object.values(e).find((e=>(null==e?void 0:e.direction)!==VT))));function TD(e){return e.entries.viewStyle}function $D(e){return e.entries.entries}function QD(e,t,n){return e[`${t}.${n}`]}const RD=cC([$D,(e,t)=>t,(e,t,n)=>n],((e,t,n)=>n?QD(e,t,n):null)),AD=(e,t)=>e.entries.pages[t],jD=cC([AD],(e=>{var t;return null!==(t=null==e?void 0:e.ids)&&void 0!==t?t:[]}));cC([$D,(e,t)=>t,jD],((e,t,n)=>n.map((n=>QD(e,t,n))))),cC([jD,(e,t)=>t,(e,t,n)=>n,$D],((e,t,n,r)=>e.map((e=>QD(r,t,e))).find((e=>(null==e?void 0:e.path)===n))));const DD=cC([AD],(e=>Boolean(e))),MD=cC([AD],(e=>{var t;return null!==(t=null==e?void 0:e.isFetching)&&void 0!==t&&t})),ID=cC([function(e){return e.search.entryIds},$D,(e,t)=>t],((e,t,n)=>{return null!==(i=null==(r=e.filter((e=>-1!==n.indexOf(e.collection))).map((e=>QD(t,e.collection,e.slug))))?void 0:r.filter(Ie))&&void 0!==i?i:[];var r,i}));function zD(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class WD{constructor({url:e,file:t,path:n,field:r}){zD(this,"url",void 0),zD(this,"fileObj",void 0),zD(this,"path",void 0),zD(this,"field",void 0),this.url=e||(t?window.URL.createObjectURL(t):""),this.fileObj=t,this.path=n,this.field=r}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then((e=>e.blob()));if(e.size<=0)return"";const t=await new Promise((t=>{const n=new FileReader;n.onload=e=>{var n;const r=(null===(n=e.target)||void 0===n?void 0:n.result)||"";t(r.toString().split("base64,")[1])},n.readAsDataURL(e)}));return t}}function ND({url:e,file:t,path:n,field:r}){return new WD({url:e,file:t,path:n,field:r})}function LD(){return(0,IC.qM)()}class FD extends CustomEvent{constructor(e){super("confirm",{detail:e})}}function UD(e,t){return t.reduce(((t,n)=>(t[n]=`CMS_${e}_${n}`,t)),{})}function XD(e,t){(0,c.useEffect)((()=>(window.addEventListener(e,t),()=>{window.removeEventListener(e,t)})),[t,e])}function qD(...e){return e.filter(Boolean).map((e=>e.replace(/\n/g," ").replace(/[ ]+/g," ").trim())).join(" ")}const BD=UD("Button",["root-sm","root","root-rounded-no-padding","root-rounded-sm","root-rounded","contained-primary","contained-secondary","contained-success","contained-error","contained-warning","outlined-primary","outlined-secondary","outlined-success","outlined-error","outlined-warning","text-primary","text-secondary","text-success","text-error","text-warning","start-icon","end-icon"]),VD={contained:{primary:"CMS_Button_contained-primary",secondary:"CMS_Button_contained-secondary",success:"CMS_Button_contained-success",error:"CMS_Button_contained-error",warning:"CMS_Button_contained-warning",info:"CMS_Button_contained-info"},outlined:{primary:"CMS_Button_outlined-primary",secondary:"CMS_Button_outlined-secondary",success:"CMS_Button_outlined-success",error:"CMS_Button_outlined-error",warning:"CMS_Button_outlined-warning",info:"CMS_Button_outlined-info"},text:{primary:"CMS_Button_text-primary",secondary:"CMS_Button_text-secondary",success:"CMS_Button_text-success",error:"CMS_Button_text-error",warning:"CMS_Button_text-warning",info:"CMS_Button_text-info"}};function YD(e,t,n,r){let i="small"===n?"CMS_Button_root-sm":"CMS_Button_root";return"no-padding"===r?i="CMS_Button_root-rounded-no-padding":r&&(i="small"===n?"CMS_Button_root-rounded-sm":"CMS_Button_root-rounded"),(0,c.useMemo)((()=>`${i} ${VD[e][t]}`),[t,i,e])}const ZD=["variant","color","size","rounded","children","className","style","startIcon","endIcon","title","data-testid"],GD=e=>{let{variant:t="contained",color:n="primary",size:r="medium",rounded:i=!1,children:o,className:a,style:s,startIcon:l,endIcon:u,title:d,"data-testid":f}=e,h=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rqD(a,p)),[p,a]),g=(0,c.useMemo)((()=>c.createElement(c.Fragment,null,l?c.createElement(l,{className:BD["start-icon"]}):null,o,u?c.createElement(u,{className:BD["end-icon"]}):null)),[u,l,o]);return"to"in h?c.createElement(NT,{ref:h.linkRef,to:h.to,title:d,"data-testid":f,className:m,onClick:h.onClick,style:s},g):"href"in h?c.createElement("a",{ref:h.linkRef,href:h.href,title:d,"data-testid":f,className:m,onClick:h.onClick,style:s,target:"_blank",rel:"noreferrer"},g):c.createElement("button",{ref:h.buttonRef,title:d,"data-testid":f,className:m,style:s,disabled:h.disabled,onClick:h.onClick,"aria-label":h["aria-label"],type:"button",role:"button",tabIndex:0,"data-no-dnd":"true"},g)};function HD(){return HD=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function JD(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function eM(...e){return c.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{JD(e,t)}))}),e)}function tM(e){return"string"==typeof e}function nM(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;tn.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function oM(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const aM=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function sM(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=KD(e,aM),s=o?{}:function(e,t,n){return"function"==typeof e?e(t,void 0):e}(r,i),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=rM(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=HD({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=HD({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=iM(HD({},i,r)),s=oM(r),l=oM(i),u=t(a),c=rM(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=HD({},null==u?void 0:u.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),f=HD({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}(HD({},a,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||tM(e)?t:HD({},t,{ownerState:HD({},t.ownerState,n)})}(n,HD({},l,{ref:eM(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return c}var lM=__webpack_require__(43188),uM=__webpack_require__.t(lM,2);const cM={disableDefaultClasses:!1},dM=c.createContext(cM);function fM(e){const{disableDefaultClasses:t}=c.useContext(dM);return n=>t?"":e(n)}function hM(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const pM="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,mM=c.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=c.useState(null),s=eM(c.isValidElement(n)?n.ref:null,t);if(pM((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),pM((()=>{if(o&&!i)return JD(t,o),()=>{JD(t,null)}}),[t,o,i]),i){if(c.isValidElement(n)){const e={ref:s};return c.cloneElement(n,e)}return(0,lM.jsx)(c.Fragment,{children:n})}return(0,lM.jsx)(c.Fragment,{children:o?NC.createPortal(n,o):o})}));function gM(e){return e&&e.ownerDocument||document}const vM=function(e){const t=c.useRef(e);return pM((()=>{t.current=e})),c.useRef(((...e)=>(0,t.current)(...e))).current};function OM(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function yM(e){return gM(e).defaultView||window}function bM(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wM(e){return parseInt(yM(e).getComputedStyle(e).paddingRight,10)||0}function kM(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&bM(e,i)}))}function xM(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}const _M=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bM(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);kM(t,e.mount,e.modalRef,r,!0);const i=xM(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=xM(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=gM(e);return t.body===e?yM(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(gM(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wM(r)+e}px`;const t=gM(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wM(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=gM(r).body;else{const t=r.parentElement,n=yM(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=xM(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&bM(e.modalRef,t),kM(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&bM(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const SM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function PM(e){const t=[],n=[];return Array.from(e.querySelectorAll(SM)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function EM(){return!0}function CM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=PM,isEnabled:a=EM,open:s}=e,l=c.useRef(!1),u=c.useRef(null),d=c.useRef(null),f=c.useRef(null),h=c.useRef(null),p=c.useRef(!1),m=c.useRef(null),g=eM(t.ref,m),v=c.useRef(null);c.useEffect((()=>{s&&m.current&&(p.current=!n)}),[n,s]),c.useEffect((()=>{if(!s||!m.current)return;const e=gM(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}}),[s]),c.useEffect((()=>{if(!s||!m.current)return;const e=gM(m.current),t=t=>{v.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=o(m.current)),n.length>0){var i,s;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=v.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const O=e=>{null===f.current&&(f.current=e.relatedTarget),p.current=!0};return(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("div",{tabIndex:s?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),p.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,lM.jsx)("div",{tabIndex:s?0:-1,onFocus:O,ref:d,"data-testid":"sentinelEnd"})]})}const TM=e=>e,$M=(()=>{let e=TM;return{configure(t){e=t},generate:t=>e(t),reset(){e=TM}}})(),QM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function RM(e,t,n="Mui"){const r=QM[t];return r?`${n}-${r}`:`${$M.generate(e)}-${t}`}function AM(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=RM(e,t,n)})),r}function jM(e){return RM("MuiModal",e)}AM("MuiModal",["root","hidden","backdrop"]);const DM=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],MM=c.forwardRef((function(e,t){var n;const{children:r,closeAfterTransition:i=!1,container:o,disableAutoFocus:a=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:l=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:f=!1,hideBackdrop:h=!1,keepMounted:p=!1,onBackdropClick:m,open:g,slotProps:v={},slots:O={}}=e,y=KD(e,DM),b=HD({},e,{closeAfterTransition:i,disableAutoFocus:a,disableEnforceFocus:s,disableEscapeKeyDown:l,disablePortal:u,disableRestoreFocus:d,disableScrollLock:f,hideBackdrop:h,keepMounted:p}),{getRootProps:w,getBackdropProps:k,getTransitionProps:x,portalRef:_,isTopModal:S,exited:P,hasTransition:E}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=_M,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:f}=e,h=c.useRef({}),p=c.useRef(null),m=c.useRef(null),g=eM(m,f),[v,O]=c.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const w=()=>(h.current.modalRef=m.current,h.current.mount=p.current,h.current),k=()=>{i.mount(w(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},x=vM((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||gM(p.current).body;i.add(w(),e),m.current&&k()})),_=c.useCallback((()=>i.isTopModal(w())),[i]),S=vM((e=>{p.current=e,e&&(d&&_()?k():m.current&&bM(m.current,b))})),P=c.useCallback((()=>{i.remove(w(),b)}),[b,i]);c.useEffect((()=>()=>{P()}),[P]),c.useEffect((()=>{d?x():y&&o||P()}),[d,P,y,o,x]);const E=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&_()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},C=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=iM(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=HD({},n,t);return HD({role:"presentation"},r,{onKeyDown:E(r),ref:g})},getBackdropProps:(e={})=>HD({"aria-hidden":!0},e,{onClick:C(e),open:d}),getTransitionProps:()=>({onEnter:OM((()=>{O(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:OM((()=>{O(!0),s&&s(),o&&P()}),null==l?void 0:l.props.onExited)}),rootRef:g,portalRef:S,isTopModal:_,exited:v,hasTransition:y}}(HD({},b,{rootRef:t})),C=HD({},b,{exited:P,hasTransition:E}),T=(e=>{const{open:t,exited:n}=e;return hM({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fM(jM))})(C),$={};if(void 0===r.props.tabIndex&&($.tabIndex="-1"),E){const{onEnter:e,onExited:t}=x();$.onEnter=e,$.onExited=t}const Q=null!=(n=O.root)?n:"div",R=sM({elementType:Q,externalSlotProps:v.root,externalForwardedProps:y,getSlotProps:w,className:T.root,ownerState:C}),A=O.backdrop,j=sM({elementType:A,externalSlotProps:v.backdrop,getSlotProps:e=>k(HD({},e,{onClick:t=>{m&&m(t),null!=e&&e.onClick&&e.onClick(t)}})),className:T.backdrop,ownerState:C});return p||g||E&&!P?(0,lM.jsx)(mM,{ref:_,container:o,disablePortal:u,children:(0,lM.jsxs)(Q,HD({},R,{children:[!h&&A?(0,lM.jsx)(A,HD({},j)):null,(0,lM.jsx)(CM,{disableEnforceFocus:s,disableAutoFocus:a,disableRestoreFocus:d,isEnabled:S,open:g,children:c.cloneElement(r,$)})]}))}):null})),IM=UD("Modal",["root","content","backdrop"]),zM=["open","className","ownerState"];function WM(){return WM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{open:n,className:r,ownerState:i}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const i=(0,c.useCallback)((()=>{null==r||r()}),[r]);return c.createElement(MM,{open:e,onClose:i,slots:{backdrop:LM},slotProps:{root:{className:IM.root}}},c.createElement("div",{className:qD(IM.content,n)},t))};function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XM(e){for(var t=1;t{const e=LD(),[t,n]=(0,c.useState)(null),{resolve:r,title:i,body:o,cancel:a="ui.common.no",confirm:s="ui.common.yes",color:l="primary"}=null!=t?t:{};XD("confirm",(0,c.useCallback)((e=>{n(e.detail)}),[]));const u=(0,c.useCallback)((()=>{n(null)}),[]),d=(0,c.useCallback)((()=>{null==r||r(!1),u()}),[u,r]),f=(0,c.useCallback)((()=>{null==r||r(!0),u()}),[u,r]),h=(0,c.useMemo)((()=>i?"string"==typeof i?e(i):e(i.key,i.options):""),[i,e]),p=(0,c.useMemo)((()=>o?"string"==typeof o?e(o):e(o.key,o.options):""),[o,e]),m=(0,c.useMemo)((()=>"string"==typeof a?e(a):e(a.key,a.options)),[a,e]),g=(0,c.useMemo)((()=>"string"==typeof s?e(s):e(s.key,s.options)),[s,e]);return t?c.createElement(FM,{open:!0,onClose:d,className:BM.root,"aria-labelledby":"confirm-dialog-title","aria-describedby":"confirm-dialog-description"},c.createElement("div",{className:BM.title},h),c.createElement("div",{className:BM.content},p),c.createElement("div",{className:BM.actions},c.createElement(GD,{onClick:d,variant:"text",color:"secondary",className:BM["cancel-button"],"data-testid":"cancel-button"},m),c.createElement(GD,{onClick:f,variant:"contained",color:l,className:BM["confirm-button"],"data-testid":"confirm-button"},g))):null},YM=e=>new Promise((t=>{window.dispatchEvent(new FD(XM(XM({},e),{},{resolve:t})))})),ZM=(e,t)=>t?["meta"]:e&&tx(e.currentLocale,e.defaultLocale)||["data"],GM=e=>e.entryDraft.fieldsErrors,HM=cC([GM,(e,t)=>t,(e,t,n)=>n,(e,t,n,r)=>r],((e,t,n,r)=>{var i;return null!==(i=e[`${ZM(n,r).join(".")}.${t}`])&&void 0!==i?i:[]}));function KM(e){return e.entryDraft}function JM(e){return e.entryDraft.entry}const eI=e=>e.collections,tI=cC([eI,(e,t)=>t],((e,t)=>{if(t)return Object.values(e).find((e=>e.name===t))}));function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iI=e=>e.mediaLibrary,oI=cC([iI,KM,eI,dC,(e,t)=>t],((e,t,n,r,i)=>{let o=[];if(t.entry){var a,s;const e=null!==(a=null==t||null===(s=t.entry)||void 0===s?void 0:s.mediaFiles)&&void 0!==a?a:[],l=t.entry,u=null!=l&&l.collection?n[l.collection]:null;if(r){const t=hP(r,u,l,i);o=e.filter((e=>(0,Re.dirname)(e.path)===t)).map((e=>function(e){for(var t=1;te.mediaLibrary.files,sI=cC([iI,(e,t)=>t],((e,t)=>{var n;return null!==(n=Ee()(e,["displayURLs",t]))&&void 0!==n?n:{}})),lI=(e,t)=>e.mediaLibrary.controlMedia[t],uI=e=>e.mediaLibrary.isPersisting,cI=e=>e.mediaLibrary.isDeleting,dI=e=>e.mediaLibrary.isVisible;function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t{var a;const s=o(),l=s.config.config,u=s.entryDraft.entry,c=null===(a=s.entryDraft.entry)||void 0===a?void 0:a.collection;if(!c||!l)return;const d=s.collections[c];i(function(e,t){return{type:X$,payload:{mediaPath:e,alt:t}}}(e=Array.isArray(e)?e.map((e=>pP(l,d,e,u,t,r))):pP(l,d,e,u,t,r),n))}}function vI(e={}){const{delay:t=0,page:n=1,currentFolder:r}=e;return async(e,i)=>{const o=i().config.config;if(!o)return;const a=DC(o);function s(){var t,n;return a.getMedia(r,null!==(t=null==o||null===(n=o.media_library)||void 0===n?void 0:n.folder_support)&&void 0!==t&&t).then((t=>e(bI(t)))).catch((t=>{console.error(t),404===t.status?(console.info("[StaticCMS] This 404 was expected and handled appropriately."),e(bI([]))):e({type:Y$})}))}return e(function(e){return{type:B$,payload:{page:e}}}(n)),t>0?new Promise((e=>{setTimeout((()=>e(s())),t)})):s()}}function OI(e,t={},n,r){const{field:i}=t;return async(t,o)=>{const a=o(),s=a.config.config;if(!s)return null;const l=DC(s),u=oI(a,i),c=Eo(e.name.toLowerCase(),s.slug),d=u.find((e=>e.name.toLowerCase()===c)),f=JM(a);if(d){if(!await YM({title:"mediaLibrary.mediaLibrary.alreadyExistsTitle",body:{key:"mediaLibrary.mediaLibrary.alreadyExistsBody",options:{filename:d.name}},color:"error"}))return null;await t(yI(d))}f||t({type:Z$});try{const o=a.entryDraft.entry,u=mP(s,null!=o&&o.collection?a.collections[o.collection]:null,o,c,i,n),d=ND({file:e,path:u,field:i});let h;return t(_I(d)),f?(h=function({id:e,file:t,assetProxy:n,draft:r}){return{id:e,name:ES(n.path),displayURL:n.url,draft:r,file:t,size:t.size,url:n.url,path:n.path,field:n.field}}({id:`${d.path}/${await K_(e)}`,file:e,assetProxy:d,draft:Boolean(f)}),await t(function(e){return{type:A$,payload:e}}(h)),d):(h=await l.persistMedia(s,d),await t(function(e,t){return{type:G$,payload:{file:e,currentFolder:t}}}(h,r)),d)}catch(e){return console.error(e),t($A({type:"error",message:{key:"ui.toast.onFailToPersistMedia",options:{details:e}}})),await t({type:H$}),null}}}function yI(e){return async(t,n)=>{const r=n(),i=r.config.config;if(!i)return;const o=DC(i);try{if(e.draft)t(SI(e.path)),t(WI({id:e.id}));else{const n=JM(r);t({type:K$}),t(SI(e.path)),await o.deleteMedia(i,e.path),t(function(e){return{type:J$,payload:{file:e}}}(e)),n&&t(WI({id:e.id}))}}catch(e){return console.error(e),e instanceof Error&&t($A({type:"error",message:{key:"ui.toast.onFailToDeleteMedia",options:{details:e.message}}})),t({type:eQ})}}}function bI(e,t={}){return{type:V$,payload:hI({files:e},t)}}function wI(e){return{type:tQ,payload:{key:e}}}function kI(e,t){return{type:nQ,payload:{key:e,url:t}}}function xI(e){return{type:M$,payload:e}}function _I(e){return{type:I$,payload:e}}function SI(e){return{type:z$,payload:e}}const PI=ND({path:"empty.svg",file:new File([''],"empty.svg",{type:"image/svg+xml"})});const EI={};function CI(e,t,n,r,i){return(o,a)=>{const s=a();if(!s.config.config)return Promise.resolve(PI);const l=mP(s.config.config,e,t,n,r,i),{asset:u,isLoading:c}=s.medias[l]||{};if(c)return EI[l];if(u)return Promise.resolve(u);const d=new Promise((e=>{(async function(e,t,n){try{t({type:W$,payload:{path:e}});const{url:r}=await async function(e,t){const n=e.config.config;if(!n)return{url:""};const r=DC(n),{url:i}=await r.getMediaFile(t);return{url:i}}(n(),e),i=ND({path:e,url:r});return t(_I(i)),t(function(e){return{type:N$,payload:{path:e}}}(e)),i}catch(n){return console.error(n),n instanceof Error&&t(function(e,t){return{type:L$,payload:{path:e,error:t}}}(e,n)),PI}})(l,o,a).then((t=>{e(t)}))}));return EI[l]=d,d}}function TI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t{const i=r().config;if(!i.config)throw new Error("Config not loaded");return DC(i.config).deleteLocalDraftBackup(e,t)}}function FI(e,t,n=!1){return async(r,i)=>{n||r(function(e,t){return{type:r$,payload:{collection:e.name,slug:t}}}(e,t));try{await r(vI());const n=await async function(e,t,n){const r=e.config;if(!r.config)throw new Error("Config not loaded");return DC(r.config).getEntry(e,t,r.config,n)}(i(),e,t);r(function(e,t){return{type:i$,payload:{collection:e.name,entry:t}}}(e,n)),r(II(e,n))}catch(n){console.error(n),n instanceof Error&&(r($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:n.message}}})),r(function(e,t,n){return{type:o$,payload:{error:e,collection:t.name,slug:n}}}(n,e,t)))}}}const UI={append_next:{action:"next",append:!0}};function XI(e){return j_.create(e).updateStore((e=>$I($I({},e),{},{actions:new Set([...e.actions,...Object.entries(UI).filter((([t,n])=>e.actions.has(n.action))).map((([e,t])=>e))])})))}function qI(e,t=0){return async(n,r)=>{if(e.isFetching)return;const i=r().config;if(!i.config)throw new Error("Config not loaded");const o=DC(i.config),a="nested"in e||Hk(e),s=!!(t&&!isNaN(t)&&t>0)&&!a;n(RI(e));try{var l;const r=await(a?o.listAllEntries(e,i.config).then((e=>({entries:e}))):o.listEntries(e,i.config)),u=$I($I({},r),{},{cursor:"cursor"in r&&r.cursor?j_.create(r.cursor):j_.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:a?-1:t+1}})});n(AI(e,u.cursor.meta.usingOldPaginationAPI?r.entries.reverse():r.entries,null!==(l=r.pagination)&&void 0!==l?l:1,XI(u.cursor),s))}catch(t){return console.error(t),t instanceof Error?(n($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:t.message}}})),Promise.reject(n(jI(e,t)))):Promise.reject()}}}function BI(e,t){return async(n,r)=>{var i,o,a,s;const l=r(),u=e.name;if(null!==(i=l.entries.pages)&&void 0!==i&&null!==(o=i[u])&&void 0!==o&&o.isFetching)return;const c=l.config;if(!c.config)throw new Error("Config not loaded");const d=DC(c.config),{action:f,append:h}=t in UI?UI[t]:{action:t,append:!1},p=xD(l,e.name);if(null!==(a=null===(s=p.meta)||void 0===s?void 0:s.usingOldPaginationAPI)&&void 0!==a&&a){var m;const t=null!==(m=p.data.nextPage)&&void 0!==m?m:-1;if(t<0)return;return n(qI(e,t))}try{var g;n(RI(e));const{entries:t,cursor:r}=await function(e,t,n,r){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n,r)}(d,p,f,c.config),i=null===(g=r.meta)||void 0===g?void 0:g.page;return n(AI(e,t,i,XI(r),h))}catch(t){return console.error(t),t instanceof Error?(n($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:t.message}}})),Promise.reject(n(jI(e,t)))):Promise.reject()}}}function VI(e,t){return async(n,r)=>{var i;if("files"in e)return;new URLSearchParams(t).forEach(((t,n)=>{e=RP(e,n,(e=>{var n;return"default"in e&&(e.default=!!["true","True","TRUE"].includes(n=t)||!["false","False","FALSE"].includes(n)&&function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}(n)),e}))}));const o=null!==(i=e.fields)&&void 0!==i?i:[],a=rP(o),s=r(),l=s.config;if(!l.config)throw new Error("Config not loaded");const u=DC(l.config),c=function(e,t){return Hk(e)?function(e,t){const n=Kk(e);if(!n)return{};const{locales:r,default_locale:i}=n;return Object.fromEntries(r.filter((e=>e!==i)).map((e=>[e,{data:t}])))}(e,rP(t,(function(e){return e.i18n!==Zk&&e.i18n!==Yk}))):{}}(e,o);let d=bC(e.name,"","",{data:a,i18n:c,mediaFiles:[]});d=await u.processEntry(s,e,d),n({type:y$,payload:d})}}function YI({entry:e}){const t=e.mediaFiles.filter((e=>e.draft)).map((e=>ND({path:e.path,file:e.file,url:e.url,field:e.field})));return t}function ZI(e,t){const n=IP(e,t.slug);function r(e){return function(e,t){return kD(e,t,"serialize")}(e,n)}let i=$I($I({},t),{},{data:r(t.data)});return Hk(e)&&(i=function(e,t,n){const r=Kk(e);if(!r)return t;const{locales:i,default_locale:o}=r;return i.filter((e=>e!==o)).forEach((e=>{const r=ex(e);t=Lk(t,r.join("."),n(Ee()(t,r)))})),t}(e,i,r)),i}function GI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class HI{constructor(e){GI(this,"err",void 0),this.err=e}toString(){return this.err&&this.err.message}}const KI=class{constructor(e={}){GI(this,"site_id",void 0),GI(this,"base_url",void 0),GI(this,"auth_endpoint",void 0),GI(this,"authWindow",void 0),this.site_id=e.site_id||null,this.base_url=cs()(e.base_url,"/")||"https://api.netlify.com",this.auth_endpoint=go()(e.auth_endpoint,"/")||"auth",this.authWindow=null}handshakeCallback(e,t){const n=r=>{var i;if(r.data==="authorizing:"+e.provider&&r.origin===new URL(this.base_url).origin)return window.removeEventListener("message",n,!1),window.addEventListener("message",this.authorizeCallback(e,t),!1),null===(i=this.authWindow)||void 0===i?void 0:i.postMessage(r.data,r.origin)};return n}authorizeCallback(e,t){const n=r=>{if(r.origin===new URL(this.base_url).origin){if(0===r.data.indexOf("authorization:"+e.provider+":success:")){var i,o,a;const s=JSON.parse(null!==(i=null===(o=r.data.match(new RegExp("^authorization:"+e.provider+":success:(.+)$")))||void 0===o?void 0:o[1])&&void 0!==i?i:"");window.removeEventListener("message",n,!1),null===(a=this.authWindow)||void 0===a||a.close(),t(null,s)}if(0===r.data.indexOf("authorization:"+e.provider+":error:")){var s,l,u;const i=JSON.parse(null!==(s=null===(l=r.data.match(new RegExp("^authorization:"+e.provider+":error:(.+)$")))||void 0===l?void 0:l[1])&&void 0!==s?s:"");window.removeEventListener("message",n,!1),null===(u=this.authWindow)||void 0===u||u.close(),t(new HI(i))}}};return n}getSiteID(){if(this.site_id)return this.site_id;const e=document.location.host.split(":")[0];return"localhost"===e?"cms.netlify.com":e}authenticate(e,t){var n;const{provider:r}=e,i=this.getSiteID();if(!r)return t(new HI(new Error("You must specify a provider when calling netlify.authenticate")));if(!i)return t(new HI(new Error("You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make authentication work from localhost")));window.addEventListener("message",this.handshakeCallback(e,t),!1);let o=`${this.base_url}/${this.auth_endpoint}?provider=${e.provider}&site_id=${i}`;e.scope&&(o+="&scope="+e.scope),!0===e.login&&(o+="&login=true"),e.beta_invite&&(o+="&beta_invite="+e.beta_invite),e.invite_code&&(o+="&invite_code="+e.invite_code),this.authWindow=window.open(o,"Netlify Authorization"),null===(n=this.authWindow)||void 0===n||n.focus()}refresh(e,t){const{provider:n,refresh_token:r}=e,i=this.getSiteID(),o=t||Promise.reject.bind(Promise);if(!n||!r)return o(new HI(new Error("You must specify a provider and refresh token when calling netlify.refresh")));if(!i)return o(new HI(new Error("You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make token refresh work from localhost")));const a=`${this.base_url}/${this.auth_endpoint}/refresh?provider=${n}&site_id=${i}&refresh_token=${r}`,s=fetch(a,{method:"POST",body:""}).then((e=>e.json()));if(!t)return s;s.then((e=>t(null,e))).catch(t)}};function JI(){const e=PA();return window.sessionStorage.setItem("static-cms-auth",JSON.stringify({nonce:e})),e}function ez(e){const t=window.sessionStorage.getItem("static-cms-auth"),n=t&&JSON.parse(t).nonce;return window.localStorage.removeItem("static-cms-auth"),e===n}function tz(){return"https:"!==document.location.protocol&&"localhost"!==document.location.hostname&&"127.0.0.1"!==document.location.hostname}const nz=["access_token"];function rz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class oz{constructor(e={}){var t,n;iz(this,"auth_url",void 0),iz(this,"appID",void 0),iz(this,"clearHash",void 0);const r=cs()(e.base_url,"/"),i=go()(e.auth_endpoint,"/");this.auth_url=`${r}/${i}`,this.appID=null!==(t=e.app_id)&&void 0!==t?t:"",this.clearHash=null!==(n=e.clearHash)&&void 0!==n?n:()=>{}}authenticate(e,t){if(tz())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","token"),n.searchParams.set("scope",e.scope),null!=e.prompt&&null!=e.prompt&&n.searchParams.set("prompt",e.prompt),null!=e.resource&&null!=e.resource&&n.searchParams.set("resource",e.resource);const r=JSON.stringify({auth_type:"implicit",nonce:JI()});n.searchParams.set("state",r),document.location.assign(n.href)}completeAuth(e){var t;const n=new URLSearchParams(document.location.hash.replace(/^#?\/?/,""));if(!n.has("access_token")&&!n.has("error"))return;this.clearHash();const r=[...n.entries()].reduce(((e,[t,n])=>(e[t]=n,e)),{}),{nonce:i}=JSON.parse(null!==(t=r.state)&&void 0!==t?t:"");if(!ez(i))return e(new Error("Invalid nonce"));if("error"in n)return e(new Error(`${r.error}: ${r.error_description}`));if("access_token"in r){const{access_token:t}=r,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-."[e%64])).join("");return window.sessionStorage.setItem(lz,e),e}(),o=await async function(e){const t=await async function(e){const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t);return String.fromCharCode(...new Uint8Array(n))}(e);return btoa(t).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_")}(i);n.searchParams.set("code_challenge",o),document.location.assign(n.href)}async completeAuth(e){var t;const n=[...new URLSearchParams(document.location.search).entries()].reduce(((e,[t,n])=>(e[t]=n,e)),{});if(window.history.replaceState(null,"",document.location.pathname),!("code"in n)&&!("error"in n))return;const{nonce:r}=JSON.parse(null!==(t=n.state)&&void 0!==t?t:"");if(!ez(r))return e(new Error("Invalid nonce"));if("error"in n)return e(new Error(`${n.error}: ${n.error_description}`));if("code"in n){var i;const t=n.code,r=new URL(this.auth_token_url),o=await fetch(r.href,{method:"POST",body:JSON.stringify({client_id:this.appID,code:null!=t?t:"",grant_type:"authorization_code",redirect_uri:document.location.origin+document.location.pathname,code_verifier:null!==(i=window.sessionStorage.getItem(lz))&&void 0!==i?i:""}),headers:{"Content-Type":"application/json; charset=utf-8"}}),a=await o.json();window.sessionStorage.removeItem(lz),e(null,function(e){for(var t=1;t"undefined"!=typeof window&&"true"===new URLSearchParams(window.location.search).get("useCmsData")),[]),a=(0,c.useCallback)((async e=>{if(!o||!t||"data:update"!==e.data.message)return;const{fieldPath:r,value:a}=e.data.value;r===t&&i(n?await n(a):a)}),[o,t,n]);return(0,c.useEffect)((()=>{if(o&&"undefined"!=typeof window)return window.addEventListener("message",a),()=>{window.removeEventListener("message",a)}}),[o,a]),null!=r?r:e}var dz=__webpack_require__(64720),fz=__webpack_require__.n(dz);const hz=()=>CT(),pz=eT;function mz(e){const t=pz((t=>jD(t,e))),n=pz($D);return(0,c.useMemo)((()=>t&&t.map((t=>n[`${e}.${t}`]))),[e,n,t])}const gz=e=>e.editorialWorkflow.entries,vz=cC([gz,(e,t)=>t,(e,t,n)=>n],((e,t,n)=>{if(n)return e[`${t}.${n}`]})),Oz=(cC([gz,(e,t)=>t],((e,t)=>Object.values(e).filter((e=>e.status===t)))),cC([gz,(e,t)=>t],((e,t)=>Object.entries(e).filter((([e])=>e.startsWith(`${t}.`))).map((([e,t])=>t.slug)))));function yz(e){const t=mz(e.name),n=function(e,t=!1){const n=pz(gz);return(0,c.useMemo)((()=>Object.values(n).filter((n=>!(n.collection!==e||t&&n.isModification)))),[n,e,t])}(e.name),r=(0,c.useMemo)((()=>t.filter((e=>!n.find((t=>t.slug===e.slug))))),[t,n]),i=pz((t=>CD(t,e.name))),o=function(e){const t=pz((t=>_D(t,e)));return(0,c.useMemo)((()=>Object.values(null!=t?t:{}).filter((e=>!0===(null==e?void 0:e.active)))||[]),[t])}(e.name);return(0,c.useMemo)((()=>{let t=[...n,...r];if(i){const n=function(e,t){return t===io?"updatedOn":t!==ro||mx(e,t)?`data.${t}`:"author"}(e,i.key),r=i.direction===qT?"asc":"desc";t=fz()(t,n,r)}return o&&o.length>0&&(t=t.filter((e=>{const t=o.every((t=>{const n=t.pattern,r=t.field,i=e.data||{},o=Ee()(i,r);return void 0!==o&&new RegExp(String(n)).test(String(o))}));return t}))),t}),[e,o,r,i,n])}function bz(e){return(0,c.useMemo)((()=>function({config:e,collection:t,collectionFile:n,field:r}){var i,o,a,s,l;return null!==(i=null===(o=null!==(s=null!==(l=null!=r?r:n)&&void 0!==l?l:t)&&void 0!==s?s:e)||void 0===o||null===(a=o.media_library)||void 0===a?void 0:a.folder_support)&&void 0!==i&&i}(e)),[e])}function wz(e,t,n,r){return(0,c.useMemo)((()=>{const i=`${ZM(n,r)}.${e}`;return Boolean(Object.keys(t).find((e=>e.startsWith(i))))}),[t,n,r,e])}function kz(e,t){const[n,r]=(0,c.useState)(e);return(0,c.useEffect)((()=>{if(0===t)return void r(e);const n=setTimeout((()=>{r(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),0===t?e:n}function xz(e,t,n,r,i){const o=hz(),[a,s]=(0,c.useState)(!1),l=kz(e,200);return(0,c.useEffect)((()=>{if(We(l))return;let e=!0;return(async()=>{const a=await o(CI(t,r,l,n,i));e&&s(Boolean(a&&a!==PI&&Ne(a.toString())&&a.fileObj))})(),()=>{e=!1}}),[l]),a}function _z(e,t,n,r,i=!1){const o=hz();return(0,c.useCallback)((async a=>{const s=!!Ne(a)&&/^(?:[a-z+]+:)?\/\//g.test(a);if(!a||s||a.startsWith("blob:")||i)return a;const l=await o(CI(e,n,a,t,r));var u;return l!==PI&&null!==(u=null==l?void 0:l.toString())&&void 0!==u?u:""}),[e,r,o,n,t,i])}function Sz(e,t,n,r,i,o){const a=(0,c.useMemo)((()=>!!Ne(e)&&/^(?:[a-z+]+:)?\/\//g.test(e)),[e]),s=hz(),[l,u]=(0,c.useState)(a?e:""),d=kz(e,200);return(0,c.useEffect)((()=>{if(!d||a||d.startsWith("blob:")||o)return;let e=!0;return(async()=>{const o=await s(CI(t,r,d,n,i));var a;e&&u(null!==(a=null==o?void 0:o.toString())&&void 0!==a?a:"")})(),()=>{e=!1}}),[d]),(0,c.useMemo)((()=>null!=d&&d.startsWith("blob:")?d:null!=l?l:""),[l,d])}function Pz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ez(e){for(var t=1;ttI(e,null==o?void 0:o.collection))),l=(0,c.useMemo)((()=>yP(s,null==o?void 0:o.slug)),[s,null==o?void 0:o.slug]),u=bz({config:a,collection:s,collectionFile:l,field:e});(0,c.useEffect)((()=>{if(!t||!a||!o)return void r(null);let e=!0;return(async()=>{const{media_folder:n,public_folder:i}=null!=a?a:{},o=DC(a),s=await o.getMedia(t,u,i?go()(t,"/").replace(go()(n,"/"),i):t);e&&r(s)})(),r([]),()=>{e=!1}}),[t,a,o,u]);const d=(0,c.useMemo)((()=>{var r;if(!o||!a)return null!=i?i:[];const l=null!==(r=o.mediaFiles)&&void 0!==r?r:[],u=hP(a,s,o,e,t),c=l.filter((e=>{if(".gitkeep"===e.name){const t=(0,Re.dirname)(e.path);return(0,Re.dirname)(t)===go()(u,"/")}return(0,Re.dirname)(e.path)===go()(u,"/")})).map((e=>{if(".gitkeep"===e.name){const t=(0,Re.dirname)(e.path);return{key:t,id:t,name:(0,Re.basename)(t),path:t,isDirectory:!0,draft:!0}}return Ez({key:e.id},e)}));if(n){const e=[...n];if(l.length>0){const t=c.filter((t=>1==t.draft&&!e.find((e=>e.id===t.id))));e.push(...t)}return e.map((e=>Ez({key:e.id},e)))}return c}),[s,a,n,o,e,i,t]);return(0,c.useMemo)((()=>d.filter((e=>".gitkeep"!==e.name&&(u||!e.isDirectory))).sort(((e,t)=>{var n,r,i,o;const a=null!==(n=e.isDirectory)&&void 0!==n&&n;if(a!==(null!==(r=t.isDirectory)&&void 0!==r&&r))return a?-1:1;const s=null!==(i=e.draft)&&void 0!==i&&i;return s!==(null!==(o=t.draft)&&void 0!==o&&o)?s?-1:1:e.name.localeCompare(t.name)}))),[d,u])}function $z(e,t,n){const r=hz(),{controlID:i,collection:o,field:a,forImage:s=!1,forFolder:l=!1,insertOptions:u}=t,d=(0,c.useMemo)((()=>null!=i?i:PA()),[i]),f=pz((e=>lI(e,d)));(0,c.useEffect)((()=>{!f||e&&f.path===e.path&&f.alt===e.alt||setTimeout((()=>{n(f),r(function(e){return{type:q$,payload:{controlID:e}}}(d))}))}),[n,d,r,f,e]);const h=(0,c.useCallback)(((t,{replaceIndex:n,forImage:i,forFolder:c}={})=>{null==t||t.preventDefault(),r(function(e={}){const{controlID:t,value:n,alt:r,config:i={},allowMultiple:o,forImage:a,forFolder:s,replaceIndex:l,collection:u,collectionFile:c,field:d,insertOptions:f}=e;return{type:F$,payload:{controlID:t,forImage:a,forFolder:s,value:n,alt:r,allowMultiple:o,replaceIndex:l,config:i,collection:u,collectionFile:c,field:d,insertOptions:f}}}({controlID:d,forImage:null!=i?i:s,forFolder:null!=c?c:l,value:a.multiple?e?[...Array.isArray(e.path)?e.path:[e.path]]:[]:null==e?void 0:e.path,alt:null==e?void 0:e.alt,replaceIndex:n,config:a.media_library,collection:o,field:a,insertOptions:u}))}),[r,d,s,l,e,o,a,u]);return h}class Qz extends CustomEvent{constructor(e){super("alert",{detail:e})}}function Rz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Az(e){for(var t=1;t{const e=LD(),[t,n]=(0,c.useState)(null),{resolve:r,title:i,body:o,okay:a="ui.common.okay",color:s="primary"}=null!=t?t:{};XD("alert",(0,c.useCallback)((e=>{n(e.detail)}),[]));const l=(0,c.useCallback)((()=>{n(null),null==r||r()}),[r]),u=(0,c.useMemo)((()=>i?"string"==typeof i?e(i):e(i.key,i.options):""),[i,e]),d=(0,c.useMemo)((()=>o?"string"==typeof o?e(o):e(o.key,o.options):""),[o,e]),f=(0,c.useMemo)((()=>"string"==typeof a?e(a):e(a.key,a.options)),[a,e]);return t?c.createElement(FM,{open:!0,onClose:l,className:Dz.root,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},c.createElement("div",{className:Dz.title},u),c.createElement("div",{className:Dz.content},d),c.createElement("div",{className:Dz.actions},c.createElement(GD,{onClick:l,variant:"contained",color:s,className:Dz["confirm-button"]},f))):null},Iz=e=>new Promise((t=>{window.dispatchEvent(new Qz(Az(Az({},e),{},{resolve:t})))}));function zz({mediaConfig:e,field:t,currentFolder:n,callback:r}){const i=hz();return(0,c.useCallback)((async o=>{let a;var s,l;if("dataTransfer"in o?a=null!==(s=null===(l=o.dataTransfer)||void 0===l?void 0:l.files)&&void 0!==s?s:null:(o.persist(),a=o.target.files),!a)return;o.stopPropagation(),o.preventDefault();const u=[...Array.from(a)],c="number"==typeof(null==e?void 0:e.max_file_size)?e.max_file_size:512e3,d=[];for(const e of u)if(c&&e.size>c)Iz({title:"mediaLibrary.mediaLibrary.fileTooLargeTitle",body:{key:"mediaLibrary.mediaLibrary.fileTooLargeBody",options:{size:Math.floor(c/1e3)}}});else{const r=await i(OI(e,{field:t},n));d.push(r)}d.length>0&&(null==r||r(u,d)),"dataTransfer"in o||(o.target.value="")}),[null==e?void 0:e.max_file_size,i,t,n,r])}function Wz(){return(0,c.useMemo)((()=>PA()),[])}function Nz(){const e=pz(dC);return(0,c.useMemo)((()=>{if(e)return DC(e)}),[e])}function Lz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fz(e){for(var t=1;t{const i=r();if(!i.config.config)return;const o=DC(i.config.config);if(!i.editorialWorkflow.ids)try{const{entries:e,pagination:t}=await o.unpublishedEntries(i.collections,i.config.config);n(Xz(e,t))}catch(e){}n(function(e,t){return{type:OQ,payload:{collection:e.name,slug:t}}}(e,t));try{const r=await o.unpublishedEntry(i,e,i.config.config,t),a=await Promise.all(r.mediaFiles.filter((e=>e.draft)).map((({url:e,file:t,path:n})=>ND({path:n,url:e,file:t}))));n(xI(a)),n(function(e,t){return{type:yQ,payload:{collection:e.name,entry:t}}}(e,r)),n(II(e,r))}catch(r){r instanceof z_&&r.notUnderEditorialWorkflow?(n(function(e,t){return{type:bQ,payload:{collection:e.name,slug:t}}}(e,t)),n(FI(e,t))):(console.error(r),n($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:r}}})))}}}function Zz(e){return(t,n)=>{const r=n();if(!r.config.config)return;const i=DC(r.config.config);r.config.config.publish_mode===je&&(t({type:wQ}),i.unpublishedEntries(e,r.config.config).then((e=>t(Xz(e.entries,e.pagination)))).catch((e=>{console.error(e),t($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:e}}})),t(function(e){return{type:"UNPUBLISHED_ENTRIES_FAILURE",error:"Failed to load entries",payload:e}}(e)),Promise.reject(e)})))}}function Gz(e,t,n,r){return(i,o)=>{if(n===r)return;const a=o();if(!a.config.config)return;const s=DC(a.config.config);i(function(e,t){return{type:PQ,payload:{collection:e,slug:t}}}(e,t)),s.updateUnpublishedEntryStatus(e,t,r).then((()=>{i($A({type:"success",message:{key:"ui.toast.entryUpdated"}})),i(function(e,t,n){return{type:EQ,payload:{collection:e,slug:t,newStatus:n}}}(e,t,r))})).catch((n=>{i($A({type:"error",message:{key:"ui.toast.onFailToUpdateStatus",options:{details:n}}})),i(function(e,t){return{type:CQ,payload:{collection:e,slug:t}}}(e,t))}))}}function Hz(e,t){return(n,r)=>{const i=r();if(!i.config.config)return;const o=DC(i.config.config);return n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_REQUEST",payload:{collection:e,slug:t}}}(e,t)),o.deleteUnpublishedEntry(e,t).then((()=>{n($A({type:"success",message:{key:"ui.toast.onDeleteUnpublishedChanges"}})),n(function(e,t){return{type:RQ,payload:{collection:e,slug:t}}}(e,t))})).catch((r=>{n($A({type:"error",message:{key:"ui.toast.onDeleteUnpublishedChanges",options:{details:r}}})),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_FAILURE",payload:{collection:e,slug:t}}}(e,t))}))}}function Kz(e,t,n){return async(r,i)=>{const o=i();if(!o.config.config)return;const a=o.collections,s=DC(o.config.config),l=vz(o,e,t);if(l){r(function(e,t){return{type:TQ,payload:{collection:e,slug:t}}}(e,t));try{const i=a[e];if(!i)return;if(await s.publishUnpublishedEntry(i,l),r(vI()),r($A({type:"success",message:{key:"ui.toast.entryPublished"}})),r(function(e,t){return{type:$Q,payload:{collection:e,slug:t}}}(e,t)),!("nested"in i))return r(FI(i,t));{r(qI(i));const e=ZE(i,l.path);FI(i,e),t!==e&&JM(o)&&(null==n||n(`/collections/${i.name}/entries/${e}`))}}catch(n){r($A({type:"error",message:{key:"ui.toast.onFailToPublishEntry",options:{details:n}}})),r(function(e,t){return{type:QQ,payload:{collection:e,slug:t}}}(e,t))}}}}function Jz(e){const t=pz(vC);return(0,c.useMemo)((()=>function(e,t){if(t)return"/dashboard";if(0===Object.keys(e).length)throw new Error("No collections found");let n=Object.values(e).filter((e=>{var t,n;return!0!==e.hide&&(!("files"in e)||(null!==(t=null===(n=e.files)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>1)}));return 0===n.length&&(n=Object.values(e)),`/collections/${n[0].name}`}(e,t)),[e,t])}const eW=()=>{const e=LD();return c.createElement("div",null,c.createElement("h2",null,e("app.notFoundPage.header")))};function tW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nW(e){for(var t=1;t{i&&0!==i.length||o(qI(e))}),[]),(0,c.useMemo)((()=>{var o;const a=[{name:e.label,to:`/collections/${e.name}?noredirect`}];if("nested"in e&&null!==(o=e.nested)&&void 0!==o&&o.path&&t){const n=i.reduce(((e,t)=>(e[t.path]=t,e)),{}),r=t.split("/");if(r.length>0){const t=bP(e);for(let i=0;ih)&&(W=(F=F.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var SW=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&_W(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=CW&&(CW=t+1),PW.set(e,t),EW.set(t,e)},RW="style["+wW+'][data-styled-version="5.3.11"]',AW=new RegExp("^"+wW+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),jW=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(wW))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(wW,"active"),r.setAttribute("data-styled-version","5.3.11");var a=MW();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},zW=function(){function e(e){var t=this.element=IW(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),XW=/(a)(d)/gi,qW=function(e){return String.fromCharCode(e+(e>25?39:97))};function BW(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=qW(t%52)+n;return(qW(t%52)+n).replace(XW,"$1-$2")}var VW=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},YW=function(e){return VW(5381,e)};function ZW(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=VW(this.baseHash,n.hash),c="",d=0;d>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),KW=/^\s*\/\/.*$/gm,JW=[":","[",".","#"];function eN(e){var t,n,r,i,o=void 0===e?vW:e,a=o.options,s=void 0===a?vW:a,l=o.plugins,u=void 0===l?gW:l,c=new sW(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,o){return 0===r&&-1!==JW.indexOf(o[n.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var l=e.replace(KW,""),u=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(a||!o?"":o,u)}return c.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),p.hash=u.length?u.reduce((function(e,t){return t.name||_W(15),VW(e,t.name)}),5381).toString():"",p}var tN=c.createContext(),nN=(tN.Consumer,c.createContext()),rN=(nN.Consumer,new UW),iN=eN();function oN(){return(0,c.useContext)(tN)||rN}function aN(e){var t=(0,c.useState)(e.stylisPlugins),n=t[0],r=t[1],i=oN(),o=(0,c.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,c.useMemo)((function(){return eN({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,c.useEffect)((function(){aW()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),c.createElement(tN.Provider,{value:o},c.createElement(nN.Provider,{value:a},e.children))}var sN=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=iN);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return _W(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=iN),this.name+e.hash},e}(),lN=/([A-Z])/,uN=/([A-Z])/g,cN=/^ms-/,dN=function(e){return"-"+e.toLowerCase()};function fN(e){return lN.test(e)?e.replace(uN,dN).replace(cN,"-ms-"):e}var hN=function(e){return null==e||!1===e||""===e};function pN(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,ON=/(^-|-$)/g;function yN(e){return e.replace(vN,"-").replace(ON,"")}function bN(e){return"string"==typeof e&&!0}var wN=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},kN=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function xN(e,t,n){var r=e[n];wN(t)&&wN(r)?_N(r,t):e[n]=t}function _N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.11"+n+PN[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,u=t.displayName,d=void 0===u?function(e){return bN(e)?"styled."+e:"Styled("+yW(e)+")"}(e):u,f=t.displayName&&t.componentId?yN(t.displayName)+"-"+t.componentId:t.componentId||l,h=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;r&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var m,g=new HW(n,f,r?e.componentStyle:void 0),v=g.isStatic&&0===a.length,O=function(e,t){return function(e,t,n,r){var i=e.attrs,o=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,d=e.target,f=function(e,t,n){void 0===e&&(e=vW);var r=hW({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in OW(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(function(e,t,n){return void 0===n&&(n=vW),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,c.useContext)(SN),a)||vW,t,i),h=f[0],p=f[1],m=function(e,t,n,r){var i=oN(),o=(0,c.useContext)(nN)||iN;return t?e.generateAndInjectStyles(vW,i,o):e.generateAndInjectStyles(n,i,o)}(o,r,h),g=n,v=p.$as||t.$as||p.as||t.as||d,O=bN(v),y=p!==t?hW({},t,{},p):t,b={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=y[w]:(l?l(w,dW,v):!O||dW(w))&&(b[w]=y[w]));return t.style&&p.style!==t.style&&(b.style=hW({},t.style,{},p.style)),b.className=Array.prototype.concat(s,u,m!==u?m:null,t.className,p.className).filter(Boolean).join(" "),b.ref=g,(0,c.createElement)(v,b)}(m,e,t,v)};return O.displayName=d,(m=c.forwardRef(O)).attrs=h,m.componentStyle=g,m.displayName=d,m.shouldForwardProp=p,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):gW,m.styledComponentId=f,m.target=r?e.target:e,m.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(bN(e)?e:yN(yW(e)));return EN(e,hW({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?_N({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),i&&iT()(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var CN=function(e){return function e(t,n,r){if(void 0===r&&(r=vW),!(0,oT.isValidElementType)(n))return _W(1,String(n));var i=function(){return t(n,r,gN.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,hW({},r,{},i))},i.attrs=function(i){return e(t,n,hW({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(EN,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){CN[e]=CN(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=ZW(e),UW.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,n,r){var i=r(pN(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},e.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.renderStyles=function(e,t,n,r){e>2&&UW.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=MW();return""},this.getStyleTags=function(){return e.sealed?_W(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return _W(2);var n=((t={})[wW]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=MW();return r&&(n.nonce=r),[c.createElement("style",hW({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new UW({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?_W(2):c.createElement(aN,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return _W(3)}}();const TN=CN;var $N=["children","iconAttrs","iconVerticalAlign","iconViewBox","size","title"];function QN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RN(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,$N),l=RN(RN({viewBox:i,height:void 0!==e.height?e.height:o,width:void 0!==e.width?e.width:o,"aria-hidden":null==a?"true":void 0,focusable:"false",role:null!=a?"img":void 0},r),s);return c.createElement("svg",tT({},l,{ref:t}),a&&c.createElement("title",{key:"icon-title"},a),n)})),jN=TN(AN).withConfig({displayName:"StyledIconBase",componentId:"sc-ea9ulj-0"})(["display:inline-block;vertical-align:",";overflow:hidden;"],(function(e){return e.iconVerticalAlign})),DN=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}))}));DN.displayName="Add";var MN=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}))}));MN.displayName="Menu";var IN=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}))}));function zN(e,t){return(0,c.useMemo)((()=>{if(e)return"fields"in e&&e.create?`${yo(e.name)}${Ne(t)?`/${t}`:""}`:""}),[e,t])}IN.displayName="OpenInNew";const WN=["icon","size","rootClassName","iconClassName"];function NN(){return NN=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{icon:t,size:n="medium",rootClassName:r,iconClassName:i}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rc.useContext(BN)??!1,YN=function({value:e,...t}){return(0,lM.jsx)(BN.Provider,{value:e??!0,...t})};function ZN(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function GN(...e){return c.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ZN(e,t)}))}),e)}function HN(e){return parseInt(c.version,10)>=19?e?.props?.ref||null:e?.ref||null}function KN(e){return e&&e.ownerDocument||document}const JN=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function eL(e){const t=[],n=[];return Array.from(e.querySelectorAll(JN)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function tL(){return!0}const nL=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=eL,isEnabled:a=tL,open:s}=e,l=c.useRef(!1),u=c.useRef(null),d=c.useRef(null),f=c.useRef(null),h=c.useRef(null),p=c.useRef(!1),m=c.useRef(null),g=GN(HN(t),m),v=c.useRef(null);c.useEffect((()=>{s&&m.current&&(p.current=!n)}),[n,s]),c.useEffect((()=>{if(!s||!m.current)return;const e=KN(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}}),[s]),c.useEffect((()=>{if(!s||!m.current)return;const e=KN(m.current),t=t=>{v.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=o(m.current)),n.length>0){const e=Boolean(v.current?.shiftKey&&"Tab"===v.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const O=e=>{null===f.current&&(f.current=e.relatedTarget),p.current=!0};return(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("div",{tabIndex:s?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),p.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,lM.jsx)("div",{tabIndex:s?0:-1,onFocus:O,ref:d,"data-testid":"sentinelEnd"})]})},rL="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,iL=c.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=c.useState(null),s=GN(c.isValidElement(n)?HN(n):null,t);if(rL((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),rL((()=>{if(o&&!i)return ZN(t,o),()=>{ZN(t,null)}}),[t,o,i]),i){if(c.isValidElement(n)){const e={ref:s};return c.cloneElement(n,e)}return n}return o?NC.createPortal(n,o):o}));var oL=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?fL(kL,--bL):0,OL--,10===wL&&(OL=1,vL--),wL}function PL(){return wL=bL2||$L(wL)>3?"":" "}function DL(e,t){for(;--t&&PL()&&!(wL<48||wL>102||wL>57&&wL<65||wL>70&&wL<97););return TL(e,CL()+(t<6&&32==EL()&&32==PL()))}function ML(e){for(;PL();)switch(wL){case e:return bL;case 34:case 39:34!==e&&39!==e&&ML(wL);break;case 40:41===e&&ML(e);break;case 92:PL()}return bL}function IL(e,t){for(;PL()&&e+wL!==57&&(e+wL!==84||47!==EL()););return"/*"+TL(t,bL-1)+"*"+sL(47===e?e:PL())}function zL(e){for(;!$L(EL());)PL();return TL(e,bL)}var WL="-ms-",NL="-moz-",LL="-webkit-",FL="comm",UL="rule",XL="decl",qL="@keyframes";function BL(e,t){for(var n="",r=mL(e),i=0;i0&&pL(x)-d&&gL(h>32?KL(x+";",r,n,d-1):KL(cL(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(gL(k=GL(x,t,n,u,c,i,s,y,b=[],w=[],d),o),123===O)if(0===c)ZL(x,t,k,k,b,o,d,s,w);else switch(99===f&&110===fL(x,3)?100:f){case 100:case 108:case 109:case 115:ZL(e,k,k,r&&gL(GL(e,k,k,0,0,i,s,y,i,b=[],d),w),i,w,d,s,r?b:w);break;default:ZL(x,k,k,k,[""],w,0,s,w)}}u=c=h=0,m=v=1,y=x="",d=a;break;case 58:d=1+pL(x),h=p;default:if(m<1)if(123==O)--m;else if(125==O&&0==m++&&125==SL())continue;switch(x+=sL(O),O*m){case 38:v=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(pL(x)-1)*v,v=1;break;case 64:45===EL()&&(x+=AL(PL())),f=EL(),c=d=pL(y=x+=zL(CL())),O++;break;case 45:45===p&&2==pL(x)&&(m=0)}}return o}function GL(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=0===i?o:[""],h=mL(f),p=0,m=0,g=0;p0?f[v]+" "+O:cL(O,/&\f/g,f[v])))&&(l[g++]=y);return xL(e,t,n,0===i?UL:s,l,u,c)}function HL(e,t,n){return xL(e,t,n,FL,sL(wL),hL(e,2,-2),0)}function KL(e,t,n,r){return xL(e,t,n,XL,hL(e,0,r),hL(e,r+1,-1),r)}var JL=function(e,t,n){for(var r=0,i=0;r=i,i=EL(),38===r&&12===i&&(t[n]=1),!$L(i);)PL();return TL(e,bL)},eF=new WeakMap,tF=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||eF.get(n))&&!r){eF.set(e,!0);for(var i=[],o=function(e,t){return RL(function(e,t){var n=-1,r=44;do{switch($L(r)){case 0:38===r&&12===EL()&&(t[n]=1),e[n]+=JL(bL-1,t,n);break;case 2:e[n]+=AL(r);break;case 4:if(44===r){e[++n]=58===EL()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=sL(r)}}while(r=PL());return e}(QL(e),t))}(t,i),a=n.props,s=0,l=0;s6)switch(fL(e,t+1)){case 109:if(45!==fL(e,t+4))break;case 102:return cL(e,/(.+:)(.+)-([^]+)/,"$1"+LL+"$2-$3$1"+NL+(108==fL(e,t+3)?"$3":"$2-$3"))+e;case 115:return~dL(e,"stretch")?rF(cL(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==fL(e,t+1))break;case 6444:switch(fL(e,pL(e)-3-(~dL(e,"!important")&&10))){case 107:return cL(e,":",":"+LL)+e;case 101:return cL(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+LL+(45===fL(e,14)?"inline-":"")+"box$3$1"+LL+"$2$3$1"+WL+"$2box$3")+e}break;case 5936:switch(fL(e,t+11)){case 114:return LL+e+WL+cL(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return LL+e+WL+cL(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return LL+e+WL+cL(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return LL+e+WL+e+e}return e}var iF=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case XL:e.return=rF(e.value,e.length);break;case qL:return BL([_L(e,{value:cL(e.value,"@","@"+LL)})],r);case UL:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return BL([_L(e,{props:[cL(t,/:(read-\w+)/,":"+NL+"$1")]})],r);case"::placeholder":return BL([_L(e,{props:[cL(t,/:(plac\w+)/,":"+LL+"input-$1")]}),_L(e,{props:[cL(t,/:(plac\w+)/,":"+NL+"$1")]}),_L(e,{props:[cL(t,/:(plac\w+)/,WL+"input-$1")]})],r)}return""}))}}],oF=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||iF,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var sF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lF=/[A-Z]|^ms/g,uF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cF=function(e){return 45===e.charCodeAt(1)},dF=function(e){return null!=e&&"boolean"!=typeof e},fF=uW((function(e){return cF(e)?e:e.replace(lF,"-$&").toLowerCase()})),hF=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(uF,(function(e,t,n){return mF={name:t,styles:n,next:mF},t}))}return 1===sF[e]||cF(e)||"number"!=typeof t||0===t?t:t+"px"};function pF(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return mF={name:n.name,styles:n.styles,next:mF},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)mF={name:r.name,styles:r.styles,next:mF},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?DF:MF},zF=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},WF=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return _F(t,n,r),yF((function(){return SF(t,n,r)})),null},NF=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=zF(t,n,o),l=s||IF(a),u=!l("as");return function(){var d=arguments,f=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var h=d.length,p=1;p=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:KF}}(eU)}function nU(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function rU(e){if(c.isValidElement(e)||!nU(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=rU(e[n])})),t}function iU(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return nU(e)&&nU(t)&&Object.keys(t).forEach((i=>{c.isValidElement(t[i])?r[i]=t[i]:nU(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&nU(e[i])?r[i]=iU(e[i],t[i],n):n.clone?r[i]=nU(t[i])?rU(t[i]):t[i]:r[i]=t[i]})),r}const oU={borderRadius:4},aU={xs:0,sm:600,md:900,lg:1200,xl:1536},sU={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${aU[e]}px)`},lU={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:aU[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function uU(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sU;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||sU;return Object.keys(t).reduce(((i,o)=>{if(a=e.keys,"@"===(s=o)||s.startsWith("@")&&(a.some((e=>s.startsWith(`@${e}`)))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}(r.containerQueries?r:lU,o);e&&(i[e]=n(t[o],o))}else if(Object.keys(e.values||aU).includes(o))i[e.up(o)]=n(t[o],o);else{const e=o;i[e]=t[e]}var a,s;return i}),{})}return n(t)}function cU(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}function dU(e){if("string"!=typeof e)throw new Error(cU(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fU(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function hU(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:fU(e,n)||r,t&&(i=t(i,r,e)),i}const pU=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=fU(e.theme,r)||{};return uU(e,o,(e=>{let r=hU(a,i,e);return e===r&&"string"==typeof e&&(r=hU(a,i,`${t}${"default"===e?"":dU(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o},mU=function(e,t){return t?iU(e,t,{clone:!1}):e},gU={m:"margin",p:"padding"},vU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},OU={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yU=function(e){const t={};return e=>(void 0===t[e]&&(t[e]=(e=>{if(e.length>2){if(!OU[e])return[e];e=OU[e]}const[t,n]=e.split(""),r=gU[t],i=vU[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})(e)),t[e])}(),bU=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wU=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],kU=[...bU,...wU];function xU(e,t,n,r){const i=fU(e,t,!0)??n;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=i[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof i?i:()=>{}}function _U(e){return xU(e,"spacing",8)}function SU(e,t){return"string"==typeof t||null==t?t:e(t)}function PU(e,t){const n=_U(e.theme);return Object.keys(e).map((r=>function(e,t,n,r){if(!t.includes(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=SU(t,n),e)),{})}(yU(n),r);return uU(e,e[n],i)}(e,t,r,n))).reduce(mU,{})}function EU(e){return PU(e,bU)}function CU(e){return PU(e,wU)}function TU(e){return PU(e,kU)}function $U(e=8,t=_U({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}EU.propTypes={},EU.filterProps=bU,CU.propTypes={},CU.filterProps=wU,TU.propTypes={},TU.filterProps=kU;const QU=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?mU(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};function RU(e){return"number"!=typeof e?e:`${e}px solid`}function AU(e,t){return pU({prop:e,themeKey:"borders",transform:t})}const jU=AU("border",RU),DU=AU("borderTop",RU),MU=AU("borderRight",RU),IU=AU("borderBottom",RU),zU=AU("borderLeft",RU),WU=AU("borderColor"),NU=AU("borderTopColor"),LU=AU("borderRightColor"),FU=AU("borderBottomColor"),UU=AU("borderLeftColor"),XU=AU("outline",RU),qU=AU("outlineColor"),BU=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xU(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:SU(t,e)});return uU(e,e.borderRadius,n)}return null};BU.propTypes={},BU.filterProps=["borderRadius"],QU(jU,DU,MU,IU,zU,WU,NU,LU,FU,UU,BU,XU,qU);const VU=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xU(e.theme,"spacing",8),n=e=>({gap:SU(t,e)});return uU(e,e.gap,n)}return null};VU.propTypes={},VU.filterProps=["gap"];const YU=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xU(e.theme,"spacing",8),n=e=>({columnGap:SU(t,e)});return uU(e,e.columnGap,n)}return null};YU.propTypes={},YU.filterProps=["columnGap"];const ZU=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xU(e.theme,"spacing",8),n=e=>({rowGap:SU(t,e)});return uU(e,e.rowGap,n)}return null};function GU(e,t){return"grey"===t?t:e}function HU(e){return e<=1&&0!==e?100*e+"%":e}ZU.propTypes={},ZU.filterProps=["rowGap"],QU(VU,YU,ZU,pU({prop:"gridColumn"}),pU({prop:"gridRow"}),pU({prop:"gridAutoFlow"}),pU({prop:"gridAutoColumns"}),pU({prop:"gridAutoRows"}),pU({prop:"gridTemplateColumns"}),pU({prop:"gridTemplateRows"}),pU({prop:"gridTemplateAreas"}),pU({prop:"gridArea"})),QU(pU({prop:"color",themeKey:"palette",transform:GU}),pU({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:GU}),pU({prop:"backgroundColor",themeKey:"palette",transform:GU}));const KU=pU({prop:"width",transform:HU}),JU=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||aU[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:HU(t)}};return uU(e,e.maxWidth,t)}return null};JU.filterProps=["maxWidth"];const eX=pU({prop:"minWidth",transform:HU}),tX=pU({prop:"height",transform:HU}),nX=pU({prop:"maxHeight",transform:HU}),rX=pU({prop:"minHeight",transform:HU}),iX=(pU({prop:"size",cssProperty:"width",transform:HU}),pU({prop:"size",cssProperty:"height",transform:HU}),QU(KU,JU,eX,tX,nX,rX,pU({prop:"boxSizing"})),{border:{themeKey:"borders",transform:RU},borderTop:{themeKey:"borders",transform:RU},borderRight:{themeKey:"borders",transform:RU},borderBottom:{themeKey:"borders",transform:RU},borderLeft:{themeKey:"borders",transform:RU},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:RU},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:BU},color:{themeKey:"palette",transform:GU},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:GU},backgroundColor:{themeKey:"palette",transform:GU},p:{style:CU},pt:{style:CU},pr:{style:CU},pb:{style:CU},pl:{style:CU},px:{style:CU},py:{style:CU},padding:{style:CU},paddingTop:{style:CU},paddingRight:{style:CU},paddingBottom:{style:CU},paddingLeft:{style:CU},paddingX:{style:CU},paddingY:{style:CU},paddingInline:{style:CU},paddingInlineStart:{style:CU},paddingInlineEnd:{style:CU},paddingBlock:{style:CU},paddingBlockStart:{style:CU},paddingBlockEnd:{style:CU},m:{style:EU},mt:{style:EU},mr:{style:EU},mb:{style:EU},ml:{style:EU},mx:{style:EU},my:{style:EU},margin:{style:EU},marginTop:{style:EU},marginRight:{style:EU},marginBottom:{style:EU},marginLeft:{style:EU},marginX:{style:EU},marginY:{style:EU},marginInline:{style:EU},marginInlineStart:{style:EU},marginInlineEnd:{style:EU},marginBlock:{style:EU},marginBlockStart:{style:EU},marginBlockEnd:{style:EU},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:VU},rowGap:{style:ZU},columnGap:{style:YU},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:HU},maxWidth:{style:JU},minWidth:{transform:HU},height:{transform:HU},maxHeight:{transform:HU},minHeight:{transform:HU},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),oX=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=fU(n,s)||{};return u?u(i):uU(i,t,(t=>{let n=hU(c,l,t);return t===n&&"string"==typeof t&&(n=hU(c,l,`${e}${"default"===t?"":dU(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??iX;function a(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const a=function(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach((n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=a)if("object"==typeof a)if(o[n])l=mU(l,e(n,a,i,o));else{const e=uU({theme:i},a,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,a)?l=mU(l,e):l[n]=t({sx:a,theme:i})}else l=mU(l,e(n,a,i,o))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}(i,(u=l,s.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),u)));var u}return Array.isArray(r)?r.map(a):a(r)}}();oX.filterProps=["sx"];const aX=oX;function sX(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const lX=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e,s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}(l),l.applyStyles=sX,l=t.reduce(((e,t)=>iU(e,t)),l),l.unstable_sxConfig={...iX,...a?.unstable_sxConfig},l.unstable_sx=function(e){return aX({sx:e,theme:this})},l};function uX(e){const{variants:t,...n}=e,r={variants:t,style:tU(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=tU(e.style))})),r}const cX=lX();function dX(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function fX(e){return e?(t,n)=>n[e]:null}function hX(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>hX(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return pX(e,n.variants,[t])}return n?.isProcessed?n.style:n}function pX(e,t,n=[]){let r;e:for(let i=0;i=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(cU(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(cU(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const yX=(e,t)=>{try{return(e=>{const t=OX(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(t){return e}};function bX(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function wX(e){e=OX(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),bX({type:s,values:l})}function kX(e){let t="hsl"===(e=OX(e)).type||"hsla"===e.type?OX(wX(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function xX(e,t){return e=OX(e),t=vX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,bX(e)}function _X(e,t,n){try{return xX(e,t)}catch(t){return e}}function SX(e,t){if(e=OX(e),t=vX(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return bX(e)}function PX(e,t,n){try{return SX(e,t)}catch(t){return e}}function EX(e,t){if(e=OX(e),t=vX(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return bX(e)}function CX(e,t,n){try{return EX(e,t)}catch(t){return e}}function TX(e,t=.15){return kX(e)>.5?SX(e,t):EX(e,t)}function $X(e,t,n){try{return TX(e,t)}catch(t){return e}}const QX={black:"#000",white:"#fff"},RX={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},AX={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},jX={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},DX={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},MX={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},IX={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},zX={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function WX(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:QX.white,default:QX.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const NX=WX();function LX(){return{text:{primary:QX.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:QX.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const FX=LX();function UX(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=EX(e.main,i):"dark"===t&&(e.dark=SX(e.main,o)))}function XX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||function(e="light"){return"dark"===e?{main:MX[200],light:MX[50],dark:MX[400]}:{main:MX[700],light:MX[400],dark:MX[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:AX[200],light:AX[50],dark:AX[400]}:{main:AX[500],light:AX[300],dark:AX[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:jX[500],light:jX[300],dark:jX[700]}:{main:jX[700],light:jX[400],dark:jX[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:IX[400],light:IX[300],dark:IX[700]}:{main:IX[700],light:IX[500],dark:IX[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:zX[400],light:zX[300],dark:zX[700]}:{main:zX[800],light:zX[500],dark:zX[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:DX[400],light:DX[300],dark:DX[700]}:{main:"#ed6c02",light:DX[500],dark:DX[900]}}(t);function d(e){const t=function(e,t){const n=kX(e),r=kX(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,FX.text.primary)>=n?FX.text.primary:NX.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(cU(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(cU(12,t?` (${t})`:"",JSON.stringify(e.main)));return UX(e,"light",i,r),UX(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e};let h;return"light"===t?h=WX():"dark"===t&&(h=LX()),iU({common:{...QX},mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:RX,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...h},i)}function qX(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}function BX(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const VX=(e,t,n,r=[])=>{let i=e;t.forEach(((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])}))};function YX(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[r]:l}),VX(o,e,`var(${r})`,s),VX(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach((([t,i])=>{(!l||l&&!l([...n,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...n,t],Array.isArray(i)?[...r,t]:r):s([...n,t],i,r))}))}(e),{css:i,vars:o,varsWithDefaults:a};var s,l}const ZX={textTransform:"uppercase"},GX='"Roboto", "Helvetica", "Arial", sans-serif';function HX(e,t){const{fontFamily:n=GX,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,f=r/14,h=c||(e=>e/l*f+"rem"),p=(e,t,r,i,o)=>{return{fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r,...n===GX?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5+"em")}:{},...o,...u};var a},m={h1:p(i,96,1.167,-1.5),h2:p(i,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(a,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(a,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(a,14,1.75,.4,ZX),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,ZX),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return iU({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function KX(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const JX=["none",KX(0,2,1,-1,0,1,1,0,0,1,3,0),KX(0,3,1,-2,0,2,2,0,0,1,5,0),KX(0,3,3,-2,0,3,4,0,0,1,8,0),KX(0,2,4,-1,0,4,5,0,0,1,10,0),KX(0,3,5,-1,0,5,8,0,0,1,14,0),KX(0,3,5,-1,0,6,10,0,0,1,18,0),KX(0,4,5,-2,0,7,10,1,0,2,16,1),KX(0,5,5,-3,0,8,10,1,0,3,14,2),KX(0,5,6,-3,0,9,12,1,0,3,16,2),KX(0,6,6,-3,0,10,14,1,0,4,18,3),KX(0,6,7,-4,0,11,15,1,0,4,20,3),KX(0,7,8,-4,0,12,17,2,0,5,22,4),KX(0,7,8,-4,0,13,19,2,0,5,24,4),KX(0,7,9,-4,0,14,21,2,0,5,26,4),KX(0,8,9,-5,0,15,22,2,0,6,28,5),KX(0,8,10,-5,0,16,24,2,0,6,30,5),KX(0,8,11,-5,0,17,26,2,0,6,32,5),KX(0,9,11,-5,0,18,28,2,0,7,34,6),KX(0,9,12,-6,0,19,29,2,0,7,36,6),KX(0,10,13,-6,0,20,31,3,0,8,38,7),KX(0,10,13,-6,0,21,33,3,0,8,40,7),KX(0,10,14,-6,0,22,35,3,0,8,42,7),KX(0,11,14,-7,0,23,36,3,0,9,44,8),KX(0,11,15,-7,0,24,38,3,0,9,46,8)],eq={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},tq={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nq(e){return`${Math.round(e)}ms`}function rq(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function iq(e){const t={...eq,...e.easing},n={...tq,...e.duration};return{getAutoHeightDuration:rq,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:nq(i)} ${o} ${"string"==typeof a?a:nq(a)}`)).join(",")},...e,easing:t,duration:n}}const oq={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function aq(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let i=0;iiU(e,t)),f),f.unstable_sxConfig={...iX,...u?.unstable_sxConfig},f.unstable_sx=function(e){return aX({sx:e,theme:this})},f.toRuntimeSource=aq,f};function lq(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const uq=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=lq(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function cq(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function dq(e){return"dark"===e?uq:[]}function fq(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const hq=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return(a=e.cssVarPrefix,[...[...Array(25)].map(((e,t)=>`--${a?`${a}-`:""}overlays-${t}`)),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach((e=>{i[e]=n[e],delete n[e]})),"media"===o?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",t)]:i,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(t))}`}else if(t){if("media"===o)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}var a;return r};function pq(e,t,n){!e[t]&&n&&(e[t]=n)}function mq(e){return"string"==typeof e&&e.startsWith("hsl")?wX(e):e}function gq(e,t){`${t}Channel`in e||(e[`${t}Channel`]=yX(mq(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const vq=e=>{try{return e()}catch(e){}};function Oq(e,t,n,r){if(!t)return;t=!0===t?{}:t;const i="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=XX(t);return{palette:o,opacity:{...cq(o.mode),...n},overlays:r||dq(o.mode),...i}}({...t,palette:{mode:i,...t?.palette}}));const{palette:o,...a}=sq({...n,palette:{mode:i,...t?.palette}});return e[r]={...t,palette:o,opacity:{...cq(i),...t?.opacity},overlays:t?.overlays||dq(i)},a}function yq(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:XX({...!0===n?{}:n.palette,mode:t})})}function bq(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],u={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return sq(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const i=sq({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=u,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==u.light&&u.light,palette:i.palette},yq(i,"dark",u.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:i.palette},yq(i,"light",u.light)),i}return n||"light"in u||"light"!==s||(u.light=!0),function(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=fq,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&"light"!==c?"light":c),f=((e="mui")=>qX(e))(o),{[d]:h,light:p,dark:m,...g}=n,v={...g};let O=h;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(O=!0),!O)throw new Error(cU(21,d));const y=Oq(v,O,u,d);p&&!v.light&&Oq(v,p,void 0,"light"),m&&!v.dark&&Oq(v,m,void 0,"dark");let b={defaultColorScheme:d,...y,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:v,font:{...BX(y.typography),...y.font},spacing:(w=u.spacing,"number"==typeof w?`${w}px`:"string"==typeof w||"function"==typeof w||Array.isArray(w)?w:"8px")};var w;Object.keys(b.colorSchemes).forEach((e=>{const t=b.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],i=n[2];return f(e,t[r][i])};if("light"===t.mode&&(pq(t.common,"background","#fff"),pq(t.common,"onBackground","#000")),"dark"===t.mode&&(pq(t.common,"background","#000"),pq(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{r[e]||(r[e]={})})),"light"===t.mode){pq(t.Alert,"errorColor",PX(t.error.light,.6)),pq(t.Alert,"infoColor",PX(t.info.light,.6)),pq(t.Alert,"successColor",PX(t.success.light,.6)),pq(t.Alert,"warningColor",PX(t.warning.light,.6)),pq(t.Alert,"errorFilledBg",n("palette-error-main")),pq(t.Alert,"infoFilledBg",n("palette-info-main")),pq(t.Alert,"successFilledBg",n("palette-success-main")),pq(t.Alert,"warningFilledBg",n("palette-warning-main")),pq(t.Alert,"errorFilledColor",vq((()=>t.getContrastText(t.error.main)))),pq(t.Alert,"infoFilledColor",vq((()=>t.getContrastText(t.info.main)))),pq(t.Alert,"successFilledColor",vq((()=>t.getContrastText(t.success.main)))),pq(t.Alert,"warningFilledColor",vq((()=>t.getContrastText(t.warning.main)))),pq(t.Alert,"errorStandardBg",CX(t.error.light,.9)),pq(t.Alert,"infoStandardBg",CX(t.info.light,.9)),pq(t.Alert,"successStandardBg",CX(t.success.light,.9)),pq(t.Alert,"warningStandardBg",CX(t.warning.light,.9)),pq(t.Alert,"errorIconColor",n("palette-error-main")),pq(t.Alert,"infoIconColor",n("palette-info-main")),pq(t.Alert,"successIconColor",n("palette-success-main")),pq(t.Alert,"warningIconColor",n("palette-warning-main")),pq(t.AppBar,"defaultBg",n("palette-grey-100")),pq(t.Avatar,"defaultBg",n("palette-grey-400")),pq(t.Button,"inheritContainedBg",n("palette-grey-300")),pq(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),pq(t.Chip,"defaultBorder",n("palette-grey-400")),pq(t.Chip,"defaultAvatarColor",n("palette-grey-700")),pq(t.Chip,"defaultIconColor",n("palette-grey-700")),pq(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),pq(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),pq(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),pq(t.LinearProgress,"primaryBg",CX(t.primary.main,.62)),pq(t.LinearProgress,"secondaryBg",CX(t.secondary.main,.62)),pq(t.LinearProgress,"errorBg",CX(t.error.main,.62)),pq(t.LinearProgress,"infoBg",CX(t.info.main,.62)),pq(t.LinearProgress,"successBg",CX(t.success.main,.62)),pq(t.LinearProgress,"warningBg",CX(t.warning.main,.62)),pq(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),pq(t.Slider,"primaryTrack",CX(t.primary.main,.62)),pq(t.Slider,"secondaryTrack",CX(t.secondary.main,.62)),pq(t.Slider,"errorTrack",CX(t.error.main,.62)),pq(t.Slider,"infoTrack",CX(t.info.main,.62)),pq(t.Slider,"successTrack",CX(t.success.main,.62)),pq(t.Slider,"warningTrack",CX(t.warning.main,.62));const e=$X(t.background.default,.8);pq(t.SnackbarContent,"bg",e),pq(t.SnackbarContent,"color",vq((()=>t.getContrastText(e)))),pq(t.SpeedDialAction,"fabHoverBg",$X(t.background.paper,.15)),pq(t.StepConnector,"border",n("palette-grey-400")),pq(t.StepContent,"border",n("palette-grey-400")),pq(t.Switch,"defaultColor",n("palette-common-white")),pq(t.Switch,"defaultDisabledColor",n("palette-grey-100")),pq(t.Switch,"primaryDisabledColor",CX(t.primary.main,.62)),pq(t.Switch,"secondaryDisabledColor",CX(t.secondary.main,.62)),pq(t.Switch,"errorDisabledColor",CX(t.error.main,.62)),pq(t.Switch,"infoDisabledColor",CX(t.info.main,.62)),pq(t.Switch,"successDisabledColor",CX(t.success.main,.62)),pq(t.Switch,"warningDisabledColor",CX(t.warning.main,.62)),pq(t.TableCell,"border",CX(_X(t.divider,1),.88)),pq(t.Tooltip,"bg",_X(t.grey[700],.92))}var r;if("dark"===t.mode){pq(t.Alert,"errorColor",CX(t.error.light,.6)),pq(t.Alert,"infoColor",CX(t.info.light,.6)),pq(t.Alert,"successColor",CX(t.success.light,.6)),pq(t.Alert,"warningColor",CX(t.warning.light,.6)),pq(t.Alert,"errorFilledBg",n("palette-error-dark")),pq(t.Alert,"infoFilledBg",n("palette-info-dark")),pq(t.Alert,"successFilledBg",n("palette-success-dark")),pq(t.Alert,"warningFilledBg",n("palette-warning-dark")),pq(t.Alert,"errorFilledColor",vq((()=>t.getContrastText(t.error.dark)))),pq(t.Alert,"infoFilledColor",vq((()=>t.getContrastText(t.info.dark)))),pq(t.Alert,"successFilledColor",vq((()=>t.getContrastText(t.success.dark)))),pq(t.Alert,"warningFilledColor",vq((()=>t.getContrastText(t.warning.dark)))),pq(t.Alert,"errorStandardBg",PX(t.error.light,.9)),pq(t.Alert,"infoStandardBg",PX(t.info.light,.9)),pq(t.Alert,"successStandardBg",PX(t.success.light,.9)),pq(t.Alert,"warningStandardBg",PX(t.warning.light,.9)),pq(t.Alert,"errorIconColor",n("palette-error-main")),pq(t.Alert,"infoIconColor",n("palette-info-main")),pq(t.Alert,"successIconColor",n("palette-success-main")),pq(t.Alert,"warningIconColor",n("palette-warning-main")),pq(t.AppBar,"defaultBg",n("palette-grey-900")),pq(t.AppBar,"darkBg",n("palette-background-paper")),pq(t.AppBar,"darkColor",n("palette-text-primary")),pq(t.Avatar,"defaultBg",n("palette-grey-600")),pq(t.Button,"inheritContainedBg",n("palette-grey-800")),pq(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),pq(t.Chip,"defaultBorder",n("palette-grey-700")),pq(t.Chip,"defaultAvatarColor",n("palette-grey-300")),pq(t.Chip,"defaultIconColor",n("palette-grey-300")),pq(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),pq(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),pq(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),pq(t.LinearProgress,"primaryBg",PX(t.primary.main,.5)),pq(t.LinearProgress,"secondaryBg",PX(t.secondary.main,.5)),pq(t.LinearProgress,"errorBg",PX(t.error.main,.5)),pq(t.LinearProgress,"infoBg",PX(t.info.main,.5)),pq(t.LinearProgress,"successBg",PX(t.success.main,.5)),pq(t.LinearProgress,"warningBg",PX(t.warning.main,.5)),pq(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),pq(t.Slider,"primaryTrack",PX(t.primary.main,.5)),pq(t.Slider,"secondaryTrack",PX(t.secondary.main,.5)),pq(t.Slider,"errorTrack",PX(t.error.main,.5)),pq(t.Slider,"infoTrack",PX(t.info.main,.5)),pq(t.Slider,"successTrack",PX(t.success.main,.5)),pq(t.Slider,"warningTrack",PX(t.warning.main,.5));const e=$X(t.background.default,.98);pq(t.SnackbarContent,"bg",e),pq(t.SnackbarContent,"color",vq((()=>t.getContrastText(e)))),pq(t.SpeedDialAction,"fabHoverBg",$X(t.background.paper,.15)),pq(t.StepConnector,"border",n("palette-grey-600")),pq(t.StepContent,"border",n("palette-grey-600")),pq(t.Switch,"defaultColor",n("palette-grey-300")),pq(t.Switch,"defaultDisabledColor",n("palette-grey-600")),pq(t.Switch,"primaryDisabledColor",PX(t.primary.main,.55)),pq(t.Switch,"secondaryDisabledColor",PX(t.secondary.main,.55)),pq(t.Switch,"errorDisabledColor",PX(t.error.main,.55)),pq(t.Switch,"infoDisabledColor",PX(t.info.main,.55)),pq(t.Switch,"successDisabledColor",PX(t.success.main,.55)),pq(t.Switch,"warningDisabledColor",PX(t.warning.main,.55)),pq(t.TableCell,"border",PX(_X(t.divider,1),.68)),pq(t.Tooltip,"bg",_X(t.grey[700],.92))}gq(t.background,"default"),gq(t.background,"paper"),gq(t.common,"background"),gq(t.common,"onBackground"),gq(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&pq(t[e],"mainChannel",yX(mq(n.main))),n.light&&pq(t[e],"lightChannel",yX(mq(n.light))),n.dark&&pq(t[e],"darkChannel",yX(mq(n.dark))),n.contrastText&&pq(t[e],"contrastTextChannel",yX(mq(n.contrastText))),"text"===e&&(gq(t[e],"primary"),gq(t[e],"secondary")),"action"===e&&(n.active&&gq(t[e],"active"),n.selected&&gq(t[e],"selected")))}))})),b=t.reduce(((e,t)=>iU(e,t)),b);const k={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:hq(b)},{vars:x,generateThemeVars:_,generateStyleSheets:S}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:u,css:c,varsWithDefaults:d}=YX(l,t);let f=d;const h={},{[s]:p,...m}=o;if(Object.entries(m||{}).forEach((([e,n])=>{const{vars:r,css:i,varsWithDefaults:o}=YX(n,t);f=iU(f,o),h[e]={css:i,vars:r}})),p){const{css:e,vars:n,varsWithDefaults:r}=YX(p,t);f=iU(f,r),h[s]={css:e,vars:n}}function g(t,n){let r=i;if("class"===i&&(r=".%s"),"data"===i&&(r="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(r=`[${i}="%s"]`),t){if("media"===r)return e.defaultColorScheme===t?":root":{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach((([,{vars:t}])=>{e=iU(e,t)})),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...c}),c);const{[i]:s,...l}=h;if(s){const{css:e}=s,t=o[i]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};a(n(i,{...l}),l)}return Object.entries(l).forEach((([e,{css:t}])=>{const i=o[e]?.palette?.mode,s=!r&&i?{colorScheme:i,...t}:{...t};a(n(e,{...s}),s)})),t}}}(b,k);return b.vars=x,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach((([e,t])=>{b[e]=t})),b.generateThemeVars=_,b.generateStyleSheets=S,b.generateSpacing=function(){return $U(u.spacing,_U(this))},b.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=a,b.unstable_sxConfig={...iX,...u?.unstable_sxConfig},b.unstable_sx=function(e){return aX({sx:e,theme:this})},b.toRuntimeSource=aq,b}({...a,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const wq=bq(),kq="$$material",xq=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},_q=e=>xq(e)&&"classes"!==e,Sq=function(e={}){const{themeId:t,defaultTheme:n=cX,rootShouldForwardProp:r=dX,slotShouldForwardProp:i=dX}=e;function o(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=(e=>e.filter((e=>e!==aX)))(e.__emotion_styles))}(e);const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:u=fX(mX(a)),...c}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let h=dX;"Root"===a||"root"===a?h=r:a?h=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const p=function(e,t){return NF(e,t)}(e,{shouldForwardProp:h,label:void 0,...c}),m=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return hX(t,e)};if(nU(e)){const t=uX(e);return t.variants?function(e){return hX(e,t)}:t.style}return e},g=(...t)=>{const r=[],i=t.map(m),a=[];if(r.push(o),n&&u&&a.push((function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const i={};for(const t in r)i[t]=hX(e,r[t]);return u(e,i)})),n&&!d&&a.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?pX(e,r):null})),f||a.push(aX),Array.isArray(i[0])){const e=i.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let o;o=[...t,...e,...n],o.raw=[...t,...e.raw,...n],r.unshift(o)}const s=[...r,...i,...a],l=p(...s);return e.muiName&&(l.muiName=e.muiName),l};return p.withConfig&&(g.withConfig=p.withConfig),g}}({themeId:kq,defaultTheme:wq,rootShouldForwardProp:_q}),Pq=Sq,Eq={theme:void 0},Cq=function(e){let t,n;return function(r){let i=t;return void 0!==i&&r.theme===n||(Eq.theme=r.theme,i=uX(e(Eq)),t=i,n=r.theme),i}};function Tq(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if("components"===i||"slots"===i)n[i]={...e[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){const r=e[i],o=t[i];if(o)if(r){n[i]={...o};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[i][t]=Tq(r[t],o[t])}}else n[i]=o;else n[i]=r||{}}else void 0===n[i]&&(n[i]=e[i])}return n}const $q=c.createContext(void 0);const Qq=function({value:e,children:t}){return(0,lM.jsx)($q.Provider,{value:e,children:t})};function Rq(e){return function({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Tq(i.defaultProps,r):i.styleOverrides||i.variants?r:Tq(i,r)}({props:e,name:t,theme:{components:c.useContext($q)}})}(e)}const Aq=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},jq=function(e,t,n){return"function"==typeof e?e(t,n):e},Dq=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n},Mq=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t},Iq=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=XN(n?.className,o,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Dq({...i,...r}),s=Mq(r),l=Mq(i),u=t(a),c=XN(u?.className,n?.className,o,i?.className,r?.className),d={...u?.style,...n?.style,...i?.style,...r?.style},f={...u,...n,...l,...s};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}};function zq(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,...s}=t,{component:l,slots:u={[e]:void 0},slotProps:c={[e]:void 0},...d}=o,f=u[e]||r,h=jq(c[e],i),{props:{component:p,...m},internalRef:g}=Iq({className:n,...s,externalForwardedProps:"root"===e?d:void 0,externalSlotProps:h}),v=GN(g,h?.ref,t.ref),O="root"===e?p||l:p;return[f,Aq(f,{..."root"===e&&!l&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...m,...O&&{as:O},ref:v},i)]}function Wq(e,t){return Wq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wq(e,t)}function Nq(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wq(e,t)}const Lq=c.createContext(null);var Fq=function(e){return e.scrollTop},Uq="unmounted",Xq="exited",qq="entering",Bq="entered",Vq="exiting",Yq=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Xq,r.appearStatus=qq):i=Bq:i=t.unmountOnExit||t.mountOnEnter?Uq:Xq,r.state={status:i},r.nextCallback=null,r}Nq(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Uq?{status:Xq}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==qq&&n!==Bq&&(t=qq):n!==qq&&n!==Bq||(t=Vq)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===qq){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:NC.findDOMNode(this);n&&Fq(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xq&&this.setState({status:Uq})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[NC.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:qq},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Bq},(function(){t.props.onEntered(o,a)}))}))}))):this.safeSetState({status:Bq},(function(){t.props.onEntered(o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:NC.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Vq},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Xq},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Xq},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:NC.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Uq)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,nT(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return c.createElement(Lq.Provider,{value:null},"function"==typeof n?n(e,r):c.cloneElement(c.Children.only(n),r))},t}(c.Component);function Zq(){}Yq.contextType=Lq,Yq.propTypes={},Yq.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zq,onEntering:Zq,onEntered:Zq,onExit:Zq,onExiting:Zq,onExited:Zq},Yq.UNMOUNTED=Uq,Yq.EXITED=Xq,Yq.ENTERING=qq,Yq.ENTERED=Bq,Yq.EXITING=Vq;const Gq=Yq,Hq=function(e=null){const t=c.useContext(xF);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},Kq=lX(),Jq=function(e=Kq){return Hq(e)};function eB(){const e=Jq(wq);return e[kq]||e}const tB=e=>e.scrollTop;function nB(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:i.transitionDelay}}const rB=GN,iB={entering:{opacity:1},entered:{opacity:1}},oB=c.forwardRef((function(e,t){const n=eB(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:p,onExiting:m,style:g,timeout:v=r,TransitionComponent:O=Gq,...y}=e,b=c.useRef(null),w=rB(b,HN(a),t),k=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},x=k(f),_=k(((e,t)=>{tB(e);const r=nB({style:g,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),S=k(d),P=k(m),E=k((e=>{const t=nB({style:g,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)})),C=k(p);return(0,lM.jsx)(O,{appear:o,in:l,nodeRef:b,onEnter:_,onEntered:S,onEntering:x,onExit:E,onExited:C,onExiting:P,addEndListener:e=>{i&&i(b.current,e)},timeout:v,...y,children:(e,{ownerState:t,...n})=>c.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...iB[e],...g,...a.props.style},ref:w,...n})})})),aB=oB,sB=e=>e,lB=(()=>{let e=sB;return{configure(t){e=t},generate:t=>e(t),reset(){e=sB}}})(),uB={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cB(e,t,n="Mui"){const r=uB[t];return r?`${n}-${r}`:`${lB.generate(e)}-${t}`}function dB(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=cB(e,t,n)})),r}function fB(e){return cB("MuiBackdrop",e)}dB("MuiBackdrop",["root","invisible"]);const hB=Pq("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),pB=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiBackdrop"}),{children:r,className:i,component:o="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:f,transitionDuration:h,...p}=n,m={...n,component:o,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return qN({root:["root",n&&"invisible"]},fB,t)})(m),v={slots:{transition:f,root:l.Root,...d},slotProps:{...u,...c}},[O,y]=zq("root",{elementType:hB,externalForwardedProps:v,className:XN(g.root,i),ownerState:m}),[b,w]=zq("transition",{elementType:aB,externalForwardedProps:v,ownerState:m});return(0,lM.jsx)(b,{in:s,timeout:h,...p,...w,children:(0,lM.jsx)(O,{"aria-hidden":!0,...y,classes:g,ref:t,children:r})})})),mB=pB,gB=function(e){const t=c.useRef(e);return rL((()=>{t.current=e})),c.useRef(((...e)=>(0,t.current)(...e))).current};function vB(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function OB(e){return KN(e).defaultView||window}function yB(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function bB(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wB(e){return parseInt(OB(e).getComputedStyle(e).paddingRight,10)||0}function kB(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=!o.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&bB(e,i)}))}function xB(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}const _B=()=>{},SB=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bB(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);kB(t,e.mount,e.modalRef,r,!0);const i=xB(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=xB(this.containers,(t=>t.modals.includes(e))),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=KN(e);return t.body===e?OB(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yB(OB(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wB(r)+e}px`;const t=KN(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wB(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=KN(r).body;else{const t=r.parentElement,n=OB(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=xB(this.containers,(t=>t.modals.includes(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&bB(e.modalRef,t),kB(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&bB(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function PB(e){return cB("MuiModal",e)}dB("MuiModal",["root","hidden","backdrop"]);const EB=Pq("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Cq((({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]})))),CB=Pq(mB,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),TB=c.forwardRef((function(e,t){const n=Rq({name:"MuiModal",props:e}),{BackdropComponent:r=CB,BackdropProps:i,classes:o,className:a,closeAfterTransition:s=!1,children:l,container:u,component:d,components:f={},componentsProps:h={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:v=!1,disableRestoreFocus:O=!1,disableScrollLock:y=!1,hideBackdrop:b=!1,keepMounted:w=!1,onBackdropClick:k,onClose:x,onTransitionEnter:_,onTransitionExited:S,open:P,slotProps:E={},slots:C={},theme:T,...$}=n,Q={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:v,disableRestoreFocus:O,disableScrollLock:y,hideBackdrop:b,keepMounted:w},{getRootProps:R,getBackdropProps:A,getTransitionProps:j,portalRef:D,isTopModal:M,exited:I,hasTransition:z}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:u,rootRef:d}=e,f=c.useRef({}),h=c.useRef(null),p=c.useRef(null),m=GN(p,d),[g,v]=c.useState(!u),O=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const b=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),w=()=>{SB.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=gB((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||KN(h.current).body;SB.add(b(),e),p.current&&w()})),x=()=>SB.isTopModal(b()),_=gB((e=>{h.current=e,e&&(u&&x()?w():p.current&&bB(p.current,y))})),S=c.useCallback((()=>{SB.remove(b(),y)}),[y]);c.useEffect((()=>()=>{S()}),[S]),c.useEffect((()=>{u?k():O&&i||S()}),[u,S,O,i,k]);const P=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&x()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},E=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Dq(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:P(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:E(t),open:u}},getTransitionProps:()=>({onEnter:vB((()=>{v(!1),o&&o()}),s?.props.onEnter??_B),onExited:vB((()=>{v(!0),a&&a(),i&&S()}),s?.props.onExited??_B)}),rootRef:m,portalRef:_,isTopModal:x,exited:g,hasTransition:O}}({...Q,rootRef:t}),W={...Q,exited:I},N=(e=>{const{open:t,exited:n,classes:r}=e;return qN({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},PB,r)})(W),L={};if(void 0===l.props.tabIndex&&(L.tabIndex="-1"),z){const{onEnter:e,onExited:t}=j();L.onEnter=e,L.onExited=t}const F={...$,slots:{root:f.Root,backdrop:f.Backdrop,...C},slotProps:{...h,...E}},[U,X]=zq("root",{elementType:EB,externalForwardedProps:F,getSlotProps:R,additionalProps:{ref:t,as:d},ownerState:W,className:XN(a,N?.root,!W.open&&W.exited&&N?.hidden)}),[q,B]=zq("backdrop",{elementType:r,externalForwardedProps:F,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{k&&k(t),e?.onClick&&e.onClick(t)}}),className:XN(i?.className,N?.backdrop),ownerState:W}),V=rB(i?.ref,B.ref);return w||P||z&&!I?(0,lM.jsx)(iL,{ref:D,container:u,disablePortal:v,children:(0,lM.jsxs)(U,{...X,children:[!b&&r?(0,lM.jsx)(q,{...B,ref:V}):null,(0,lM.jsx)(nL,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:O,isEnabled:M,open:P,children:c.cloneElement(l,L)})]})}):null})),$B=TB;function QB(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}const RB=QB,AB=OB;function jB(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=AB(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:"right"===e?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const DB=c.forwardRef((function(e,t){const n=eB(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,container:l,direction:u="down",easing:d=r,in:f,onEnter:h,onEntered:p,onEntering:m,onExit:g,onExited:v,onExiting:O,style:y,timeout:b=i,TransitionComponent:w=Gq,...k}=e,x=c.useRef(null),_=rB(HN(s),x,t),S=e=>t=>{e&&(void 0===t?e(x.current):e(x.current,t))},P=S(((e,t)=>{jB(u,e,l),tB(e),h&&h(e,t)})),E=S(((e,t)=>{const r=nB({timeout:b,style:y,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),C=S(p),T=S(O),$=S((e=>{const t=nB({timeout:b,style:y,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),jB(u,e,l),g&&g(e)})),Q=S((e=>{e.style.webkitTransition="",e.style.transition="",v&&v(e)})),R=c.useCallback((()=>{x.current&&jB(u,x.current,l)}),[u,l]);return c.useEffect((()=>{if(f||"down"===u||"right"===u)return;const e=RB((()=>{x.current&&jB(u,x.current,l)})),t=AB(x.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,f,l]),c.useEffect((()=>{f||R()}),[f,R]),(0,lM.jsx)(w,{nodeRef:x,onEnter:P,onEntered:C,onEntering:E,onExit:$,onExited:Q,onExiting:T,addEndListener:e=>{o&&o(x.current,e)},appear:a,in:f,timeout:b,...k,children:(e,{ownerState:t,...n})=>c.cloneElement(s,{ref:_,style:{visibility:"exited"!==e||f?void 0:"hidden",...y,...s.props.style},...n})})})),MB=DB;function IB(e){return cB("MuiPaper",e)}dB("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const zB=Pq("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Cq((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]})))),WB=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiPaper"}),r=eB(),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:o,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return qN({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},IB,i)})(c);return(0,lM.jsx)(zB,{as:o,ownerState:c,className:XN(d.root,i),ref:t,...u,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${xX("#fff",lq(a))}, ${xX("#fff",lq(a))})`}},...u.style}})})),NB=WB,LB=dU;function FB(e){return cB("MuiDrawer",e)}dB("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const UB=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},XB=Pq($B,{name:"MuiDrawer",slot:"Root",overridesResolver:UB})(Cq((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})))),qB=Pq("div",{shouldForwardProp:_q,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:UB})({flex:"0 0 auto"}),BB=Pq(NB,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${LB(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${LB(n.anchor)}`]]}})(Cq((({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]})))),VB={left:"right",right:"left",top:"down",bottom:"up"},YB=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDrawer"}),r=eB(),i=VN(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h,...p}={},onClose:m,open:g=!1,PaperProps:v={},SlideProps:O,TransitionComponent:y=MB,transitionDuration:b=o,variant:w="temporary",...k}=n,x=c.useRef(!1);c.useEffect((()=>{x.current=!0}),[]);const _=function({direction:e},t){return"rtl"===e&&function(e){return["left","right"].includes(e)}(t)?VB[t]:t}({direction:i?"rtl":"ltr"},a),S=a,P={...n,anchor:S,elevation:d,open:g,variant:w,...k},E=(e=>{const{classes:t,anchor:n,variant:r}=e;return qN({root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${LB(n)}`,"temporary"!==r&&`paperAnchorDocked${LB(n)}`]},FB,t)})(P),C=(0,lM.jsx)(BB,{elevation:"temporary"===w?d:0,square:!0,...v,className:XN(E.paper,v.className),ownerState:P,children:l});if("permanent"===w)return(0,lM.jsx)(qB,{className:XN(E.root,E.docked,u),ownerState:P,ref:t,...k,children:C});const T=(0,lM.jsx)(y,{in:g,direction:VB[_],timeout:b,appear:x.current,...O,children:C});return"persistent"===w?(0,lM.jsx)(qB,{className:XN(E.root,E.docked,u),ownerState:P,ref:t,...k,children:T}):(0,lM.jsx)(XB,{BackdropProps:{...s,...h,transitionDuration:b},className:XN(E.root,E.modal,u),open:g,ownerState:P,onClose:m,hideBackdrop:f,ref:t,...k,...p,children:T})})),ZB=YB;var GB=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"}))}));GB.displayName="Dashboard";var HB=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}))}));HB.displayName="Photo";var KB=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))}));KB.displayName="Article";const JB=UD("Icon",["root","icon"]);function eV(e){let t=c.createElement(KB,{className:JB.icon});if(e){const n=ME(e);n&&(t=c.createElement(n,null))}return c.createElement("div",{className:qD(JB.root,"cms-icon")},t)}function tV(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nV(e){return e instanceof tV(e).Element||e instanceof Element}function rV(e){return e instanceof tV(e).HTMLElement||e instanceof HTMLElement}function iV(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tV(e).ShadowRoot||e instanceof ShadowRoot)}var oV=Math.max,aV=Math.min,sV=Math.round;function lV(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function uV(){return!/^((?!chrome|android).)*safari/i.test(lV())}function cV(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&rV(e)&&(i=e.offsetWidth>0&&sV(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&sV(r.height)/e.offsetHeight||1);var a=(nV(e)?tV(e):window).visualViewport,s=!uV()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,c=r.width/i,d=r.height/o;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function dV(e){var t=tV(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fV(e){return e?(e.nodeName||"").toLowerCase():null}function hV(e){return((nV(e)?e.ownerDocument:e.document)||window.document).documentElement}function pV(e){return cV(hV(e)).left+dV(e).scrollLeft}function mV(e){return tV(e).getComputedStyle(e)}function gV(e){var t=mV(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vV(e,t,n){void 0===n&&(n=!1);var r=rV(t),i=rV(t)&&function(e){var t=e.getBoundingClientRect(),n=sV(t.width)/e.offsetWidth||1,r=sV(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=hV(t),a=cV(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==fV(t)||gV(o))&&(s=function(e){return e!==tV(e)&&rV(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:dV(e);var t}(t)),rV(t)?((l=cV(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=pV(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function OV(e){var t=cV(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function yV(e){return"html"===fV(e)?e:e.assignedSlot||e.parentNode||(iV(e)?e.host:null)||hV(e)}function bV(e){return["html","body","#document"].indexOf(fV(e))>=0?e.ownerDocument.body:rV(e)&&gV(e)?e:bV(yV(e))}function wV(e,t){var n;void 0===t&&(t=[]);var r=bV(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=tV(r),a=i?[o].concat(o.visualViewport||[],gV(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(wV(yV(a)))}function kV(e){return["table","td","th"].indexOf(fV(e))>=0}function xV(e){return rV(e)&&"fixed"!==mV(e).position?e.offsetParent:null}function _V(e){for(var t=tV(e),n=xV(e);n&&kV(n)&&"static"===mV(n).position;)n=xV(n);return n&&("html"===fV(n)||"body"===fV(n)&&"static"===mV(n).position)?t:n||function(e){var t=/firefox/i.test(lV());if(/Trident/i.test(lV())&&rV(e)&&"fixed"===mV(e).position)return null;var n=yV(e);for(iV(n)&&(n=n.host);rV(n)&&["html","body"].indexOf(fV(n))<0;){var r=mV(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var SV="top",PV="bottom",EV="right",CV="left",TV="auto",$V=[SV,PV,EV,CV],QV="start",RV="end",AV="viewport",jV="popper",DV=$V.reduce((function(e,t){return e.concat([t+"-"+QV,t+"-"+RV])}),[]),MV=[].concat($V,[TV]).reduce((function(e,t){return e.concat([t,t+"-"+QV,t+"-"+RV])}),[]),IV=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zV(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function WV(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var NV={placement:"bottom",modifiers:[],strategy:"absolute"};function LV(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function YV(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?qV(i):null,a=i?BV(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case SV:t={x:s,y:n.y-r.height};break;case PV:t={x:s,y:n.y+n.height};break;case EV:t={x:n.x+n.width,y:l};break;case CV:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?VV(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case QV:t[u]=t[u]-(n[c]/2-r[c]/2);break;case RV:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var ZV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GV(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,m=void 0===p?0:p,g="function"==typeof c?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=a.hasOwnProperty("x"),O=a.hasOwnProperty("y"),y=CV,b=SV,w=window;if(u){var k=_V(n),x="clientHeight",_="clientWidth";k===tV(n)&&"static"!==mV(k=hV(n)).position&&"absolute"===s&&(x="scrollHeight",_="scrollWidth"),(i===SV||(i===CV||i===EV)&&o===RV)&&(b=PV,m-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[x])-r.height,m*=l?1:-1),i!==CV&&(i!==SV&&i!==PV||o!==RV)||(y=EV,h-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[_])-r.width,h*=l?1:-1)}var S,P=Object.assign({position:s},u&&ZV),E=!0===c?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:sV(n*i)/i||0,y:sV(r*i)/i||0}}({x:h,y:m},tV(n)):{x:h,y:m};return h=E.x,m=E.y,l?Object.assign({},P,((S={})[b]=O?"0":"",S[y]=v?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},P,((t={})[b]=O?m+"px":"",t[y]=v?h+"px":"",t.transform="",t))}const HV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:qV(t.placement),variation:BV(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,GV(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,GV(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},KV={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];rV(i)&&fV(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});rV(r)&&fV(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},JV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=MV.reduce((function(e,n){return e[n]=function(e,t,n){var r=qV(e),i=[CV,SV].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[CV,EV].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var eY={left:"right",right:"left",bottom:"top",top:"bottom"};function tY(e){return e.replace(/left|right|bottom|top/g,(function(e){return eY[e]}))}var nY={start:"end",end:"start"};function rY(e){return e.replace(/start|end/g,(function(e){return nY[e]}))}function iY(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iV(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oY(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aY(e,t,n){return t===AV?oY(function(e,t){var n=tV(e),r=hV(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=uV();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+pV(e),y:l}}(e,n)):nV(t)?function(e,t){var n=cV(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):oY(function(e){var t,n=hV(e),r=dV(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=oV(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=oV(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+pV(e),l=-r.scrollTop;return"rtl"===mV(i||n).direction&&(s+=oV(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(hV(e)))}function sY(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lY(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function uY(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?AV:u,d=n.elementContext,f=void 0===d?jV:d,h=n.altBoundary,p=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,v=sY("number"!=typeof g?g:lY(g,$V)),O=f===jV?"reference":jV,y=e.rects.popper,b=e.elements[p?O:f],w=function(e,t,n,r){var i="clippingParents"===t?function(e){var t=wV(yV(e)),n=["absolute","fixed"].indexOf(mV(e).position)>=0&&rV(e)?_V(e):e;return nV(n)?t.filter((function(e){return nV(e)&&iY(e,n)&&"body"!==fV(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=aY(e,n,r);return t.top=oV(i.top,t.top),t.right=aV(i.right,t.right),t.bottom=aV(i.bottom,t.bottom),t.left=oV(i.left,t.left),t}),aY(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(nV(b)?b:b.contextElement||hV(e.elements.popper),l,c,a),k=cV(e.elements.reference),x=YV({reference:k,element:y,strategy:"absolute",placement:i}),_=oY(Object.assign({},y,x)),S=f===jV?_:k,P={top:w.top-S.top+v.top,bottom:S.bottom-w.bottom+v.bottom,left:w.left-S.left+v.left,right:S.right-w.right+v.right},E=e.modifiersData.offset;if(f===jV&&E){var C=E[i];Object.keys(P).forEach((function(e){var t=[EV,PV].indexOf(e)>=0?1:-1,n=[SV,PV].indexOf(e)>=0?"y":"x";P[e]+=C[n]*t}))}return P}const cY={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=qV(g),O=l||(v!==g&&p?function(e){if(qV(e)===TV)return[];var t=tY(e);return[rY(e),t,rY(t)]}(g):[tY(g)]),y=[g].concat(O).reduce((function(e,n){return e.concat(qV(n)===TV?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?MV:l,c=BV(r),d=c?s?DV:DV.filter((function(e){return BV(e)===c})):$V,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=uY(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[qV(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,w=t.rects.popper,k=new Map,x=!0,_=y[0],S=0;S=0,$=T?"width":"height",Q=uY(t,{placement:P,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),R=T?C?EV:CV:C?PV:SV;b[$]>w[$]&&(R=tY(R));var A=tY(R),j=[];if(o&&j.push(Q[E]<=0),s&&j.push(Q[R]<=0,Q[A]<=0),j.every((function(e){return e}))){_=P,x=!1;break}k.set(P,j)}if(x)for(var D=function(e){var t=y.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},M=p?3:1;M>0&&"break"!==D(M);M--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dY(e,t,n){return oV(e,aV(t,n))}const fY={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,m=void 0===p?0:p,g=uY(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=qV(t.placement),O=BV(t.placement),y=!O,b=VV(v),w="x"===b?"y":"x",k=t.modifiersData.popperOffsets,x=t.rects.reference,_=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,P="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(k){if(o){var T,$="y"===b?SV:CV,Q="y"===b?PV:EV,R="y"===b?"height":"width",A=k[b],j=A+g[$],D=A-g[Q],M=h?-_[R]/2:0,I=O===QV?x[R]:_[R],z=O===QV?-_[R]:-x[R],W=t.elements.arrow,N=h&&W?OV(W):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=L[$],U=L[Q],X=dY(0,x[R],N[R]),q=y?x[R]/2-M-X-F-P.mainAxis:I-X-F-P.mainAxis,B=y?-x[R]/2+M+X+U+P.mainAxis:z+X+U+P.mainAxis,V=t.elements.arrow&&_V(t.elements.arrow),Y=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,Z=null!=(T=null==E?void 0:E[b])?T:0,G=A+B-Z,H=dY(h?aV(j,A+q-Z-Y):j,A,h?oV(D,G):D);k[b]=H,C[b]=H-A}if(s){var K,J="x"===b?SV:CV,ee="x"===b?PV:EV,te=k[w],ne="y"===w?"height":"width",re=te+g[J],ie=te-g[ee],oe=-1!==[SV,CV].indexOf(v),ae=null!=(K=null==E?void 0:E[w])?K:0,se=oe?re:te-x[ne]-_[ne]-ae+P.altAxis,le=oe?te+x[ne]+_[ne]-ae-P.altAxis:ie,ue=h&&oe?function(e,t,n){var r=dY(e,t,n);return r>n?n:r}(se,te,le):dY(h?se:re,te,h?le:ie);k[w]=ue,C[w]=ue-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},hY={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=qV(n.placement),l=VV(s),u=[CV,EV].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return sY("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lY(e,$V))}(i.padding,n),d=OV(o),f="y"===l?SV:CV,h="y"===l?PV:EV,p=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=_V(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,O=p/2-m/2,y=c[f],b=v-d[u]-c[h],w=v/2-d[u]/2+O,k=dY(y,w,b),x=l;n.modifiersData[r]=((t={})[x]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&iY(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pY(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function mY(e){return[SV,EV,PV,CV].some((function(t){return e[t]>=0}))}var gY=FV({defaultModifiers:[XV,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=YV({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},HV,KV,JV,cY,fY,hY,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=uY(t,{elementContext:"reference"}),s=uY(t,{altBoundary:!0}),l=pY(a,r),u=pY(s,i,o),c=mY(l),d=mY(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function vY(e){return RM("MuiPopper",e)}AM("MuiPopper",["root"]);const OY=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],yY=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function bY(e){return"function"==typeof e?e():e}const wY={},kY=c.forwardRef((function(e,t){var n;const{anchorEl:r,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:p={},TransitionProps:m}=e,g=KD(e,OY),v=c.useRef(null),O=eM(v,t),y=c.useRef(null),b=eM(y,f),w=c.useRef(b);pM((()=>{w.current=b}),[b]),c.useImperativeHandle(f,(()=>y.current),[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,o),[x,_]=c.useState(k),[S,P]=c.useState(bY(r));c.useEffect((()=>{y.current&&y.current.forceUpdate()})),c.useEffect((()=>{r&&P(bY(r))}),[r]),pM((()=>{if(!S||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{_(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=gY(S,v.current,HD({placement:k},d,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[S,a,s,l,d,k]);const E={placement:x};null!==m&&(E.TransitionProps=m);const C=hM({root:["root"]},fM(vY)),T=null!=(n=p.root)?n:"div",$=sM({elementType:T,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:C.root});return(0,lM.jsx)(T,HD({},$,{children:"function"==typeof i?i(E):i}))})),xY=c.forwardRef((function(e,t){const{anchorEl:n,children:r,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:d="bottom",popperOptions:f=wY,popperRef:h,style:p,transition:m=!1,slotProps:g={},slots:v={}}=e,O=KD(e,yY),[y,b]=c.useState(!0);if(!s&&!u&&(!m||y))return null;let w;if(i)w=i;else if(n){const e=bY(n);w=e&&void 0!==e.nodeType?gM(e).body:gM(null).body}const k=u||!s||m&&!y?void 0:"none",x=m?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return(0,lM.jsx)(mM,{disablePortal:a,container:w,children:(0,lM.jsx)(kY,HD({anchorEl:n,direction:o,disablePortal:a,modifiers:l,ref:t,open:m?!y:u,placement:d,popperOptions:f,popperRef:h,slotProps:g,slots:v},O,{style:HD({position:"fixed",top:0,left:0,display:k},p),TransitionProps:x,children:r}))})}));var _Y=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))}));_Y.displayName="Search";const SY=UD("CollectionSearch",["root","content","icon-wrapper","icon","input","search-in","search-in-content","search-in-label","search-in-option"]),PY=({collections:e,collection:t,searchTerm:n="",onSubmit:r})=>{const i=LD(),o=(0,c.useRef)(),[a,s]=(0,c.useState)(n),[l,u]=(0,c.useState)(null),d=Boolean(l),f=(0,c.useMemo)((()=>Object.values(e)),[e]),h=(0,c.useCallback)((()=>{var e;u(null),null===(e=o.current)||void 0===e||e.blur()}),[]),p=(0,c.useCallback)((e=>{u(e.currentTarget)}),[]),m=(0,c.useCallback)((()=>{u(null)}),[]),g=(0,c.useCallback)((()=>t?f.findIndex((e=>e.name===t.name)):-1),[t,f]),[v,O]=(0,c.useState)(g()),[y,b]=(0,c.useState)(t);(0,c.useEffect)((()=>{y!==t&&O(g()),b(t)}),[t,g,y]);const w=(0,c.useCallback)((()=>{O(Math.min(v+1,f.length-1))}),[f,v]),k=(0,c.useCallback)((()=>{O(Math.max(v-1,-1))}),[v]),x=(0,c.useCallback)((()=>{O(-1)}),[]),_=(0,c.useCallback)((e=>{var t;-1!==e?r(a,null===(t=f[e])||void 0===t?void 0:t.name):r(a),h()}),[f,h,r,a]),S=(0,c.useCallback)((e=>{"Enter"===e.key&&_(v),d&&("Escape"===e.key&&h(),"ArrowDown"===e.key?(w(),e.preventDefault()):"ArrowUp"===e.key&&(k(),e.preventDefault()))}),[h,d,w,k,v,_]),P=(0,c.useCallback)((e=>{const t=e.target.value;s(t),""===t?(x(),h()):u(e.currentTarget)}),[h,x]),E=(0,c.useCallback)(((e,t)=>{e.preventDefault(),O(t),_(t)}),[_]),C=(0,c.useCallback)((e=>{e.stopPropagation(),u(e.currentTarget)}),[]);return c.createElement("div",{className:SY.root},c.createElement("div",{className:SY.content},c.createElement("div",{className:SY["icon-wrapper"]},c.createElement(_Y,{className:SY.icon})),c.createElement("input",{type:"text",id:"first_name",className:SY.input,placeholder:i("collection.sidebar.searchAll"),onKeyDown:S,onBlur:m,onFocus:p,value:a,onChange:P,onClick:C})),c.createElement(xY,{open:d,placement:"top",anchorEl:l,tabIndex:0,className:SY["search-in"],slots:{root:"div"}},c.createElement("div",{key:"edit-content",contentEditable:!1,className:SY["search-in-content"]},c.createElement("div",{className:SY["search-in-label"]},i("collection.sidebar.searchIn")),c.createElement("div",{className:SY["search-in-option"],onClick:e=>E(e,-1),onMouseDown:e=>e.preventDefault()},i("collection.sidebar.allCollections")),f.map(((e,t)=>c.createElement("div",{key:t,onClick:e=>E(e,t),onMouseDown:e=>e.preventDefault(),className:SY["search-in-option"]},e.label))))))};var EY=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))}));EY.displayName="ChevronRight";const CY=["icon","children","className","data-testid","onClick"],TY=UD("NavLink",["root","link","external","external-content","external-icon","content","icon","label"]),$Y=e=>{let{icon:t,children:n,className:r,"data-testid":i,onClick:o}=e,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rc.createElement("div",{className:TY.content},c.createElement("span",{className:TY.icon},t),c.createElement("span",{className:TY.label},n))),[n,t]),{pathname:l}=ee();return"href"in a?c.createElement("li",{className:qD(TY.root,r)},c.createElement("a",{href:a.href,target:"_blank",rel:"noreferrer",className:qD(BD.root,BD["text-secondary"],TY.link),"data-testid":i,onClick:o},c.createElement("div",{className:TY.external},c.createElement("div",{className:TY["external-content"]},s),c.createElement(IN,{className:TY["external-icon"]})))):c.createElement("li",{className:qD(TY.root,r)},c.createElement(LT,{to:a.to,className:qD(BD.root,l===a.to?BD["contained-primary"]:BD["text-secondary"],TY.link),"data-testid":i,onClick:o},s))};function QY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RY(e){for(var t=1;t!e.isDir&&e.title)))||void 0===t?void 0:t.title)||e.title}const MY=({collection:e,treeData:t,rootIsActive:n,path:r,depth:i=0,onToggle:o})=>{const a=e.name,s=(0,c.useCallback)(((e,t,i)=>{n&&(null==e||e.stopPropagation(),null==e||e.preventDefault(),o(e?{node:t,expanded:i}:{node:t,expanded:r!==t.path||i}))}),[o,r,n]),l=wS()(t,DY);return 0===i||n?c.createElement(c.Fragment,null,l.map((t=>{var l;if(t.children.length<=1&&(null===(l=t.children[0])||void 0===l||!l.isDir)&&i>0)return null;let u=`/collections/${a}`;i>0&&(u=`${u}/filter${t.path}`);const d=DY(t),f=0===i||t.children.some((e=>e.children.some((e=>e.isDir))));return c.createElement(c.Fragment,{key:t.path},c.createElement("div",{className:qD(0===i?jY["root-node"]:jY.node,0===i&&n&&jY.active,t.expanded&&jY.expanded)},c.createElement($Y,{to:u,onClick:()=>s(void 0,t,!t.expanded),"data-testid":t.path,className:jY.link,icon:c.createElement(KB,{className:qD(0===i?jY["root-node-icon"]:jY["node-icon"])})},c.createElement("div",{className:jY["node-content"]},c.createElement("div",null,d),f&&c.createElement(EY,{onClick:e=>s(e,t,!t.expanded),className:jY["node-children-icon"]}))),c.createElement("div",{className:jY["node-children"]},t.expanded&&c.createElement(MY,{rootIsActive:n,collection:e,path:r,depth:i+1,treeData:t.children,onToggle:o}))))}))):null};function IY(e,t){return function e(n){for(const r of n)t(r),e(r.children)}(e)}const zY=({collection:e,filterTerm:t})=>{const n=yz(e),[r,i]=(0,c.useState)(HE(e,n)),[o,a]=(0,c.useState)(!0),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)(null),[f,h]=(0,c.useState)(null),[p,m]=(0,c.useState)(null),{pathname:g}=ee(),v=(0,c.useMemo)((()=>g.startsWith(`/collections/${e.name}`)),[e.name,g]),O=(0,c.useMemo)((()=>`/${t}`),[t]);(0,c.useEffect)((()=>{if(v!==s||e!==u||n!==f||O!==p){const t={};IY(r,(e=>{v?e.expanded&&(t[e.path]=!0):t[e.path]=!1}));const a=HE(e,n);IY(a,(e=>{v?(e.isRoot||t[e.path]||o&&O.startsWith(e.path))&&(e.expanded=!0):e.expanded=!1})),i(a)}l(v),d(e),h(n),m(O)}),[e,n,t,O,g,u,f,p,s,v,r,o]);const y=(0,c.useCallback)((({node:e,expanded:t})=>{i(function(e,t,n){let r=!1;return function e(i){if(r)return i;for(let e=0;ee(t.children))),i}([...e])}(r,e,(e=>RY(RY({},e),{},{expanded:t})))),a(!1)}),[r]);return c.createElement(MY,{collection:e,treeData:r,onToggle:y,rootIsActive:v,path:O})},WY=UD("Sidebar",["root","content","items","icon"]),NY=["name","searchTerm"],LY=({isMobile:e=!1})=>{const t=LD(),n=re(),{name:r,searchTerm:i}=n,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var e;return null!==(e=o["*"])&&void 0!==e?e:""}),[o]),s=ne(),l=pz(hC),u=pz(pC),d=pz(eI),f=pz(vC),h=(0,c.useMemo)((()=>r?d[r]:d[0]),[d,r]),p=(0,c.useMemo)((()=>Object.values(d).filter((e=>!0!==e.hide)).map((t=>{const n=t.name,r=eV(t.icon);return"nested"in t?c.createElement(zY,{key:`nested-${n}`,collection:t,filterTerm:a,"data-testid":n}):c.createElement($Y,{key:n,to:`/collections/${n}`,icon:r,"data-testid":`${e?"mobile-collection-nav":"sidebar-collection-nav"}-${t.label}`},t.label)}))),[d,a,e]),m=(0,c.useMemo)((()=>IE()),[]),g=(0,c.useMemo)((()=>Object.values(m).map((({id:t,title:n,data:r,options:{icon:i}={}})=>{const o=eV(i);return"string"==typeof r?c.createElement($Y,{key:n,href:r,icon:o,"data-testid":`${e?"mobile-external-nav":"sidebar-external-nav"}-${n}`},n):c.createElement($Y,{key:n,to:`/page/${t}`,icon:o,"data-testid":`${e?"mobile-page-nav":"sidebar-page-nav"}-${n}`},n)}))),[m,e]),v=(0,c.useCallback)(((e,t)=>{e&&s(t?`/collections/${t}/search/${e}`:`/search/${e}`)}),[s]);return c.createElement("div",{className:qD(WY.content,"CMS_Scrollbar_root","CMS_Scrollbar_secondary")},c.createElement("ul",{className:WY.items},l&&c.createElement(PY,{searchTerm:i,collections:d,collection:h,onSubmit:(e,t)=>v(e,t)}),f?c.createElement($Y,{key:"Dashboard",to:"/dashboard",icon:c.createElement(GB,{className:WY.icon}),"data-testid":(e?"mobile-nav":"sidebar-nav")+"-Dashboard"},t("workflow.workflow.dashboard")):null,p,g,u?c.createElement($Y,{key:"Media",to:"/media",icon:c.createElement(HB,{className:WY.icon}),"data-testid":(e?"mobile-nav":"sidebar-nav")+"-Media"},t("app.header.media")):null))},FY=UD("NavigationDrawer",["root","content"]),UY=({mobileOpen:e,onMobileOpenToggle:t})=>{const n=(0,c.useMemo)((()=>"undefined"!=typeof window?window.document.body:void 0),[]);return c.createElement(ZB,{container:n,variant:"temporary",open:e,onClose:t,ModalProps:{keepMounted:!0},slotProps:{root:{className:FY.root}},sx:{"& .MuiBackdrop-root":{width:"100%"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:"80%",maxWidth:320}}},c.createElement("div",{onClick:t,className:FY.content},c.createElement(LY,{isMobile:!0})))},XY=c.createContext(null);function qY(e,t){return e===t}const BY={},VY=()=>{};function YY(e,t){const n=HD({},e);return Object.keys(t).forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n}function ZY(e){const t=c.useRef(null),{reducer:n,initialState:r,controlledProps:i=BY,stateComparers:o=BY,onStateChange:a=VY,actionContext:s,componentName:l=""}=e;c.useRef(i);const u=c.useCallback(((e,r)=>{t.current=r;const o=YY(e,i);return n(o,r)}),[i,n]),[d,f]=c.useReducer(u,r),h=c.useCallback((e=>{f(HD({},e,{context:s}))}),[s]);return function(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:i,controlledProps:o,lastActionRef:a}=e,s=c.useRef(n);c.useEffect((()=>{if(null===a.current)return;const e=YY(s.current,o);Object.keys(t).forEach((n=>{var o;const s=null!=(o=r[n])?o:qY,l=t[n],u=e[n];var c,d;(null==u&&null!=l||null!=u&&null==l||null!=u&&null!=l&&!s(l,u))&&(null==i||i(null!=(c=a.current.event)?c:null,n,l,null!=(d=a.current.type)?d:"",t))})),s.current=t,a.current=null}),[s,t,a,i,r,o])}({nextState:d,initialState:r,stateComparers:null!=o?o:BY,onStateChange:null!=a?a:VY,controlledProps:i,lastActionRef:t}),[YY(d,i),h]}const GY={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"};function HY(e,t){switch(t.type){case GY.blur:case GY.escapeKeyDown:return{open:!1};case GY.toggle:return{open:!e.open};case GY.open:return{open:!0};case GY.close:return{open:!1};default:throw new Error("Unhandled action")}}function KY(e){const{children:t,open:n,defaultOpen:r,onOpenChange:i}=e,{contextValue:o}=function(e={}){const{defaultOpen:t,onOpenChange:n,open:r,componentName:i="useDropdown"}=e,[o,a]=c.useState(""),[s,l]=c.useState(null),u=c.useRef(null),d=c.useCallback(((e,t,r,i)=>{"open"===t&&(null==n||n(e,r)),u.current=i}),[n]),f=c.useMemo((()=>void 0!==r?{open:r}:{}),[r]),[h,p]=ZY({controlledProps:f,initialState:t?{open:!0}:{open:!1},onStateChange:d,reducer:HY,componentName:i});return c.useEffect((()=>{h.open||null===u.current||u.current===GY.blur||null==s||s.focus()}),[h.open,s]),{contextValue:{state:h,dispatch:p,popupId:o,registerPopup:a,registerTrigger:l,triggerElement:s},open:h.open}}({defaultOpen:r,onOpenChange:i,open:n});return(0,lM.jsx)(XY.Provider,{value:o,children:t})}function JY(e){return RM("MuiMenu",e)}AM("MuiMenu",["root","listbox","expanded"]);let eZ=0;const tZ=d["useId".toString()];function nZ(e){if(void 0!==tZ){const t=tZ();return null!=e?e:t}return function(e){const[t,n]=c.useState(e),r=e||t;return c.useEffect((()=>{null==t&&(eZ+=1,n(`mui-${eZ}`))}),[t]),r}(e)}const rZ={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function iZ(e,t,n){var r;const{items:i,isItemDisabled:o,disableListWrap:a,disabledItemsFocusable:s,itemComparer:l,focusManagement:u}=n,c="DOM"===u?0:-1,d=i.length-1,f=null==e?-1:i.findIndex((t=>l(t,e)));let h,p,m=!a;switch(t){case"reset":if(-1===c)return null;h=0,p="next",m=!1;break;case"start":h=0,p="next",m=!1;break;case"end":h=d,p="previous",m=!1;break;default:{const e=f+t;e<0?!m&&-1!==f||Math.abs(t)>1?(h=0,p="next"):(h=d,p="previous"):e>d?!m||Math.abs(t)>1?(h=d,p="previous"):(h=0,p="next"):(h=e,p=t>=0?"next":"previous")}}const g=function(e,t,n,r,i,o){if(0===n.length||!r&&n.every(((e,t)=>i(e,t))))return-1;let a=e;for(;;){if(!o&&"next"===t&&a===n.length||!o&&"previous"===t&&-1===a)return-1;if(r||!i(n[a],a))return a;a+="next"===t?1:-1,o&&(a=(a+n.length)%n.length)}}(h,p,i,s,o,m);return-1!==g||null===e||o(e,f)?null!=(r=i[g])?r:null:e}function oZ(e,t,n){const{itemComparer:r,isItemDisabled:i,selectionMode:o,items:a}=n,{selectedValues:s}=t,l=a.findIndex((t=>r(e,t)));if(i(e,l))return t;const u=function(e,t,n,r){return"none"===n?[]:"single"===n?r(t[0],e)?t:[e]:t.some((t=>r(t,e)))?t.filter((t=>!r(t,e))):[...t,e]}(e,s,o,r);return HD({},t,{selectedValues:u,highlightedValue:e})}function aZ(e,t,n){var r;const i=null==(r=n(e))?void 0:r.trim().toLowerCase();return!(!i||0===i.length)&&0===i.indexOf(t)}function sZ(e,t){const{type:n,context:r}=t;switch(n){case rZ.keyDown:return function(e,t,n){const r=t.highlightedValue,{orientation:i,pageSize:o}=n;switch(e){case"Home":return HD({},t,{highlightedValue:iZ(r,"start",n)});case"End":return HD({},t,{highlightedValue:iZ(r,"end",n)});case"PageUp":return HD({},t,{highlightedValue:iZ(r,-o,n)});case"PageDown":return HD({},t,{highlightedValue:iZ(r,o,n)});case"ArrowUp":if("vertical"!==i)break;return HD({},t,{highlightedValue:iZ(r,-1,n)});case"ArrowDown":if("vertical"!==i)break;return HD({},t,{highlightedValue:iZ(r,1,n)});case"ArrowLeft":if("vertical"===i)break;return HD({},t,{highlightedValue:iZ(r,"horizontal-ltr"===i?-1:1,n)});case"ArrowRight":if("vertical"===i)break;return HD({},t,{highlightedValue:iZ(r,"horizontal-ltr"===i?1:-1,n)});case"Enter":case" ":return null===t.highlightedValue?t:oZ(t.highlightedValue,t,n)}return t}(t.key,e,r);case rZ.itemClick:return oZ(t.item,e,r);case rZ.blur:return function(e,t){return"DOM"===t.focusManagement?e:HD({},e,{highlightedValue:null})}(e,r);case rZ.textNavigation:return function(e,t,n){const{items:r,isItemDisabled:i,disabledItemsFocusable:o,getItemAsString:a}=n,s=t.length>1;let l=s?e.highlightedValue:iZ(e.highlightedValue,1,n);for(let u=0;uo(e,n.highlightedValue))))?l:null:"DOM"===a&&0===t.length&&(s=iZ(null,"reset",r));const u=(null!=(i=n.selectedValues)?i:[]).filter((t=>e.some((e=>o(e,t)))));return HD({},n,{highlightedValue:s,selectedValues:u})}(t.items,t.previousItems,e,r);case rZ.resetHighlight:return function(e,t){return HD({},e,{highlightedValue:iZ(null,"reset",t)})}(e,r);case rZ.clearSelection:return function(e,t){return HD({},e,{selectedValues:[],highlightedValue:iZ(null,"reset",t)})}(e,r);default:return e}}function lZ(e,t){if(t.type===rZ.itemHover)return e;const n=sZ(e,t);if(null===n.highlightedValue&&t.context.items.length>0)return HD({},n,{highlightedValue:t.context.items[0]});if(t.type===rZ.keyDown&&"Escape"===t.event.key)return HD({},n,{open:!1});var r;if(t.type===rZ.blur&&(null==(r=t.context.listboxRef.current)||!r.contains(t.event.relatedTarget))){var i,o;const e=null==(i=t.context.listboxRef.current)?void 0:i.getAttribute("id"),r=null==(o=t.event.relatedTarget)?void 0:o.getAttribute("aria-controls");return e&&r&&e===r?n:HD({},n,{open:!1,highlightedValue:t.context.items[0]})}return n}function uZ(e,t,n=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}const cZ=500,dZ={},fZ=()=>{},hZ=(e,t)=>e===t,pZ=()=>!1,mZ=e=>"string"==typeof e?e:String(e),gZ=()=>({highlightedValue:null,selectedValues:[]});function vZ(e){const{controlledProps:t=dZ,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:i="activeDescendant",getInitialState:o=gZ,getItemDomElement:a,getItemId:s,isItemDisabled:l=pZ,rootRef:u,onStateChange:d=fZ,items:f,itemComparer:h=hZ,getItemAsString:p=mZ,onChange:m,onHighlightChange:g,onItemsChange:v,orientation:O="vertical",pageSize:y=5,reducerActionContext:b=dZ,selectionMode:w="single",stateReducer:k,componentName:x="useList"}=e,_=c.useRef(null),S=eM(u,_),P=c.useCallback(((e,t,n)=>{var r;null==g||g(e,t,n),"DOM"!==i||null==t||n!==rZ.itemClick&&n!==rZ.keyDown&&n!==rZ.textNavigation||null==a||null==(r=a(t))||r.focus()}),[a,g,i]),E=c.useMemo((()=>({highlightedValue:h,selectedValues:(e,t)=>uZ(e,t,h)})),[h]),C=c.useCallback(((e,t,n,r,i)=>{switch(null==d||d(e,t,n,r,i),t){case"highlightedValue":P(e,n,r);break;case"selectedValues":null==m||m(e,n,r)}}),[P,m,d]),T=c.useMemo((()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:i,isItemDisabled:l,itemComparer:h,items:f,getItemAsString:p,onHighlightChange:P,orientation:O,pageSize:y,selectionMode:w,stateComparers:E})),[n,r,i,l,h,f,p,P,O,y,w,E]),$=o(),Q=null!=k?k:sZ,R=c.useMemo((()=>HD({},b,T)),[b,T]),[A,j]=ZY({reducer:Q,actionContext:R,initialState:$,controlledProps:t,stateComparers:E,onStateChange:C,componentName:x}),{highlightedValue:D,selectedValues:M}=A,I=function(e){const t=c.useRef({searchString:"",lastTime:null});return c.useCallback((n=>{if(1===n.key.length&&" "!==n.key){const r=t.current,i=n.key.toLowerCase(),o=performance.now();r.searchString.length>0&&r.lastTime&&o-r.lastTime>cZ?r.searchString=i:1===r.searchString.length&&i===r.searchString||(r.searchString+=i),r.lastTime=o,e(r.searchString,n)}}),[e])}(((e,t)=>j({type:rZ.textNavigation,event:t,searchString:e}))),z=c.useRef([]);c.useEffect((()=>{uZ(z.current,f,h)||(j({type:rZ.itemsChange,event:null,items:f,previousItems:z.current}),z.current=f,null==v||v(f))}),[f,h,j,v]);const W=e=>t=>{var n;if(null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented)return;const r=["Home","End","PageUp","PageDown"];"vertical"===O?r.push("ArrowUp","ArrowDown"):r.push("ArrowLeft","ArrowRight"),"activeDescendant"===i&&r.push(" ","Enter"),r.includes(t.key)&&t.preventDefault(),j({type:rZ.keyDown,key:t.key,event:t}),I(t)},N=c.useCallback((e=>{const t=(null!=M?M:[]).some((t=>null!=t&&h(e,t))),n=null!=D&&h(e,D);return{focusable:"DOM"===i,highlighted:n,selected:t}}),[h,M,D,i]),L=c.useMemo((()=>({dispatch:j,getItemState:N})),[j,N]);return c.useDebugValue({state:A}),{contextValue:L,dispatch:j,getRootProps:(e={})=>{const t=iM(e);return HD({},e,{"aria-activedescendant":"activeDescendant"===i&&null!=D?s(D):void 0,tabIndex:"DOM"===i?-1:0,ref:S},t,{onBlur:(n=t,e=>{var t,r;null==(t=n.onBlur)||t.call(n,e),e.defaultMuiPrevented||null!=(r=_.current)&&r.contains(e.relatedTarget)||j({type:rZ.blur,event:e})}),onKeyDown:W(t)});var n},rootRef:S,state:A}}const OZ=c.createContext(null);function yZ(){const[e,t]=c.useState(new Map),n=c.useRef(new Set),r=c.useCallback((function(e){n.current.delete(e),t((t=>{const n=new Map(t);return n.delete(e),n}))}),[]),i=c.useCallback((function(e,i){let o;return o="function"==typeof e?e(n.current):e,n.current.add(o),t((e=>{const t=new Map(e);return t.set(o,i),t})),{id:o,deregister:()=>r(o)}}),[r]),o=c.useMemo((()=>function(e){const t=Array.from(e.keys()).map((t=>({key:t,subitem:e.get(t)})));return t.sort(((e,t)=>{const n=e.subitem.ref.current,r=t.subitem.ref.current;return null===n||null===r||n===r?0:n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1})),new Map(t.map((e=>[e.key,e.subitem])))}(e)),[e]),a=c.useCallback((function(e){return Array.from(o.keys()).indexOf(e)}),[o]);return{contextValue:c.useMemo((()=>({getItemIndex:a,registerItem:i,totalSubitemCount:e.size})),[a,i,e.size]),subitems:o}}function bZ(e,t){return function(n={}){const r=HD({},n,e(n));return HD({},r,t(r))}}OZ.displayName="CompoundComponentContext";const wZ={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0},triggerElement:null},kZ=c.createContext(null);function xZ(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:i,getItemState:o,registerItem:a,totalSubitemCount:s}=t,l=c.useMemo((()=>({dispatch:r,getItemState:o,getItemIndex:i})),[r,i,o]),u=c.useMemo((()=>({getItemIndex:i,registerItem:a,totalSubitemCount:s})),[a,i,s]);return(0,lM.jsx)(OZ.Provider,{value:u,children:(0,lM.jsx)(kZ.Provider,{value:l,children:n})})}const _Z=["actions","anchor","children","onItemsChange","slotProps","slots"],SZ=c.forwardRef((function(e,t){var n,r;const{actions:i,anchor:o,children:a,onItemsChange:s,slotProps:l={},slots:u={}}=e,d=KD(e,_Z),{contextValue:f,getListboxProps:h,dispatch:p,open:m,triggerElement:g}=function(e={}){var t,n;const{listboxRef:r,onItemsChange:i,id:o,disabledItemsFocusable:a=!0,disableListWrap:s=!1,autoFocus:l=!0,componentName:u="useMenu"}=e,d=c.useRef(null),f=eM(d,r),h=null!=(t=nZ(o))?t:"",{state:{open:p},dispatch:m,triggerElement:g,registerPopup:v}=null!=(n=c.useContext(XY))?n:wZ,O=c.useRef(p),{subitems:y,contextValue:b}=yZ(),w=c.useMemo((()=>Array.from(y.keys())),[y]),k=c.useCallback((e=>{var t,n;return null==e?null:null!=(t=null==(n=y.get(e))?void 0:n.ref.current)?t:null}),[y]),x=c.useCallback((e=>{var t;return(null==y||null==(t=y.get(e))?void 0:t.disabled)||!1}),[y]),_=c.useCallback((e=>{var t,n;return(null==(t=y.get(e))?void 0:t.label)||(null==(n=y.get(e))||null==(n=n.ref.current)?void 0:n.innerText)}),[y]),S=c.useMemo((()=>({listboxRef:d})),[d]),{dispatch:P,getRootProps:E,contextValue:C,state:{highlightedValue:T},rootRef:$}=vZ({disabledItemsFocusable:a,disableListWrap:s,focusManagement:"DOM",getItemDomElement:k,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:x,items:w,getItemAsString:_,rootRef:f,onItemsChange:i,reducerActionContext:S,selectionMode:"none",stateReducer:lZ,componentName:u});pM((()=>{v(h)}),[h,v]),c.useEffect((()=>{var e;p&&l&&T&&!O.current&&(null==(e=y.get(T))||null==(e=e.ref)||null==(e=e.current)||e.focus())}),[p,l,T,y,w]),c.useEffect((()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==T&&(null==y||null==(t=y.get(T))||null==(t=t.ref.current)||t.focus())}),[T,y]);const Q=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(r=d.current)&&r.contains(t.relatedTarget)||t.relatedTarget===g||m({type:GY.blur,event:t})},R=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"Escape"===t.key&&m({type:GY.escapeKeyDown,event:t})},A=(e={})=>({onBlur:Q(e),onKeyDown:R(e)});return c.useDebugValue({subitems:y,highlightedValue:T}),{contextValue:HD({},b,C),dispatch:P,getListboxProps:(e={})=>{const t=bZ(A,E),n=iM(e);return HD({},e,n,t(n),{id:h,role:"menu"})},highlightedValue:T,listboxRef:$,menuItems:y,open:p,triggerElement:g}}({onItemsChange:s,componentName:"Menu"}),v=null!=o?o:g;c.useImperativeHandle(i,(()=>({dispatch:p,resetHighlight:()=>p({type:rZ.resetHighlight,event:null})})),[p]);const O=HD({},e,{open:m}),y=function(e){const{open:t}=e;return hM({root:["root",t&&"expanded"],listbox:["listbox",t&&"expanded"]},fM(JY))}(O),b=null!=(n=u.root)?n:"div",w=sM({elementType:b,externalSlotProps:l.root,externalForwardedProps:d,additionalProps:{ref:t,role:void 0},className:y.root,ownerState:O}),k=null!=(r=u.listbox)?r:"ul",x=sM({elementType:k,getSlotProps:h,externalSlotProps:l.listbox,className:y.listbox,ownerState:O});return!0===m&&null==v?(0,lM.jsx)(b,HD({},w,{children:(0,lM.jsx)(k,HD({},x,{children:(0,lM.jsx)(xZ,{value:f,children:a})}))})):(0,lM.jsx)(xY,HD({},w,{open:m,anchorEl:v,slots:{root:b},children:(0,lM.jsx)(k,HD({},x,{children:(0,lM.jsx)(xZ,{value:f,children:a})}))}))}));let PZ,EZ=!0,CZ=!1;const TZ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $Z(e){e.metaKey||e.altKey||e.ctrlKey||(EZ=!0)}function QZ(){EZ=!1}function RZ(){"hidden"===this.visibilityState&&CZ&&(EZ=!0)}function AZ(){const e=c.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",$Z,!0),t.addEventListener("mousedown",QZ,!0),t.addEventListener("pointerdown",QZ,!0),t.addEventListener("touchstart",QZ,!0),t.addEventListener("visibilitychange",RZ,!0))}),[]),t=c.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return EZ||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!TZ[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(CZ=!0,window.clearTimeout(PZ),PZ=window.setTimeout((()=>{CZ=!1}),100),t.current=!1,!0)},ref:e}}function jZ(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:i,tabIndex:o,to:a,type:s}=e,l=c.useRef(),[u,d]=c.useState(!1),{isFocusVisibleRef:f,onFocus:h,onBlur:p,ref:m}=AZ(),[g,v]=c.useState(!1);t&&!n&&g&&v(!1),c.useEffect((()=>{f.current=g}),[g,f]);const[O,y]=c.useState(""),b=e=>t=>{var n;g&&t.preventDefault(),null==(n=e.onMouseLeave)||n.call(e,t)},w=e=>t=>{var n,r;l.current||(l.current=t.currentTarget),h(t),!0===f.current&&(v(!0),null==(r=e.onFocusVisible)||r.call(e,t)),null==(n=e.onFocus)||n.call(e,t)},k=()=>{const e=l.current;return"BUTTON"===O||"INPUT"===O&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===O&&(null==e?void 0:e.href)},x=e=>n=>{var r;t||null==(r=e.onClick)||r.call(e,n)},_=e=>n=>{var r;t||(d(!0),document.addEventListener("mouseup",(()=>{d(!1)}),{once:!0})),null==(r=e.onMouseDown)||r.call(e,n)},S=e=>n=>{var r,i;null==(r=e.onKeyDown)||r.call(e,n),n.defaultMuiPrevented||(n.target!==n.currentTarget||k()||" "!==n.key||n.preventDefault(),n.target!==n.currentTarget||" "!==n.key||t||d(!0),n.target!==n.currentTarget||k()||"Enter"!==n.key||t||(null==(i=e.onClick)||i.call(e,n),n.preventDefault()))},P=e=>n=>{var r,i;n.target===n.currentTarget&&d(!1),null==(r=e.onKeyUp)||r.call(e,n),n.target!==n.currentTarget||k()||t||" "!==n.key||n.defaultMuiPrevented||null==(i=e.onClick)||i.call(e,n)},E=eM(c.useCallback((e=>{var t;y(null!=(t=null==e?void 0:e.tagName)?t:"")}),[]),i,m,l),C={};return void 0!==o&&(C.tabIndex=o),"BUTTON"===O?(C.type=null!=s?s:"button",n?C["aria-disabled"]=t:C.disabled=t):""!==O&&(r||a||(C.role="button",C.tabIndex=null!=o?o:0),t&&(C["aria-disabled"]=t,C.tabIndex=n?null!=o?o:0:-1)),{getRootProps:(t={})=>{const n=HD({},iM(e),iM(t)),r=HD({type:s},n,C,t,{onBlur:(i=n,e=>{var t;p(e),!1===f.current&&v(!1),null==(t=i.onBlur)||t.call(i,e)}),onClick:x(n),onFocus:w(n),onKeyDown:S(n),onKeyUp:P(n),onMouseDown:_(n),onMouseLeave:b(n),ref:E});var i;return delete r.onFocusVisible,r},focusVisible:g,setFocusVisible:v,active:u,rootRef:E}}function DZ(e){return RM("MuiMenuButton",e)}AM("MuiMenuButton",["root","active","disabled","expanded"]);const MZ=["children","disabled","label","slots","slotProps","focusableWhenDisabled"],IZ=c.forwardRef((function(e,t){const{children:n,disabled:r=!1,slots:i={},slotProps:o={},focusableWhenDisabled:a=!1}=e,s=KD(e,MZ),{getRootProps:l,open:u,active:d}=function(e={}){const{disabled:t=!1,focusableWhenDisabled:n,rootRef:r}=e,i=c.useContext(XY);if(null===i)throw new Error("useMenuButton: no menu context available.");const{state:o,dispatch:a,registerTrigger:s,popupId:l}=i,{getRootProps:u,rootRef:d,active:f}=jZ({disabled:t,focusableWhenDisabled:n,rootRef:r}),h=eM(d,s),p=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||a({type:GY.toggle,event:t})},m=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),a({type:GY.open,event:t}))},g=(e={})=>({onClick:p(e),onKeyDown:m(e)});return{active:f,getRootProps:(e={})=>{const t=iM(e),n=bZ(u,g);return HD({"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":l},e,t,n(t),{tabIndex:0,ref:h})},open:o.open,rootRef:h}}({disabled:r,focusableWhenDisabled:a,rootRef:t}),f=HD({},e,{open:u,active:d,disabled:r,focusableWhenDisabled:a}),h=(e=>{const{active:t,disabled:n,open:r}=e;return hM({root:["root",n&&"disabled",t&&"active",r&&"expanded"]},fM(DZ))})(f),p=i.root||"button",m=sM({elementType:p,getSlotProps:l,externalForwardedProps:s,externalSlotProps:o.root,additionalProps:{ref:t,type:"button"},ownerState:f,className:h.root});return(0,lM.jsx)(p,HD({},m,{children:n}))}));var zZ=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}))}));zZ.displayName="KeyboardArrowDown";const WZ=UD("Menu",["root","hide-dropdown-icon","hide-label","hide-dropdown-icon-mobile","dropdown","dropdown-start-icon","dropdown-icon","label","menu"]),NZ=({label:e,startIcon:t,variant:n="contained",color:r="primary",size:i="medium",rounded:o=!1,rootClassName:a,iconClassName:s,buttonClassName:l,labelClassName:u,children:d,hideDropdownIcon:f=!1,hideDropdownIconOnMobile:h=!1,hideLabel:p=!1,disabled:m=!1,keepMounted:g=!1,"data-testid":v,"aria-label":O})=>{const y=YD(n,r,i,o),b=(0,c.useMemo)((()=>qD(y,l,WZ.dropdown)),[y,l]);return c.createElement(KY,null,c.createElement("div",{className:qD(WZ.root,p&&WZ["hide-label"],f&&WZ["hide-dropdown-icon"],h&&WZ["hide-dropdown-icon-mobile"],a)},c.createElement(IZ,{"aria-haspopup":"menu","data-testid":v,className:b,disabled:m,"aria-label":O},t?c.createElement(t,{className:qD(WZ["dropdown-start-icon"],s)}):null,p?null:c.createElement("div",{className:qD(WZ.label,u)},e),f?null:c.createElement(zZ,{className:WZ["dropdown-icon"],"aria-hidden":"true"})),c.createElement(SZ,{slotProps:{root:{className:WZ.menu,keepMounted:g}}},d)))},LZ=UD("MenuGroup",["root"]),FZ=({children:e})=>c.createElement("div",{className:LZ.root},e);function UZ(e){return RM("MuiMenuItem",e)}function XZ(e){const{handlePointerOverEvents:t=!1,item:n}=e,r=c.useContext(kZ);if(!r)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:o}=r,{highlighted:a,selected:s,focusable:l}=o(n),u=c.useCallback((e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.defaultPrevented||i({type:rZ.itemClick,item:n,event:t})}),[i,n]),d=c.useCallback((e=>t=>{var r;null==(r=e.onMouseOver)||r.call(e,t),t.defaultPrevented||i({type:rZ.itemHover,item:n,event:t})}),[i,n]);let f;return l&&(f=a?0:-1),{getRootProps:(e={})=>{const n=iM(e);return HD({},e,{onClick:u(n),onPointerOver:t?d(n):void 0,tabIndex:f})},highlighted:a,selected:s}}function qZ(e,t){const n=c.useContext(OZ);if(null===n)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[i,o]=c.useState("function"==typeof e?void 0:e);return pM((()=>{const{id:n,deregister:i}=r(e,t);return o(n),i}),[r,t,e]),{id:i,index:void 0!==i?n.getItemIndex(i):-1,totalItemCount:n.totalSubitemCount}}function BZ(e){return`menu-item-${e.size}`}AM("MuiMenuItem",["root","disabled","focusVisible"]);const VZ={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0},triggerElement:null},YZ=["children","disabled","label","id","slotProps","slots"],ZZ=c.memo(c.forwardRef((function(e,t){var n;const{children:r,disabled:i=!1,label:o,id:a,slotProps:s={},slots:l={}}=e,u=KD(e,YZ),{getRootProps:d,disabled:f,focusVisible:h,highlighted:p}=function(e){var t;const{disabled:n=!1,id:r,rootRef:i,label:o}=e,a=nZ(r),s=c.useRef(null),l=c.useMemo((()=>({disabled:n,id:null!=a?a:"",label:o,ref:s})),[n,a,o]),{dispatch:u}=null!=(t=c.useContext(XY))?t:VZ,{getRootProps:d,highlighted:f}=XZ({item:a}),{index:h,totalItemCount:p}=qZ(null!=a?a:BZ,l),{getRootProps:m,focusVisible:g,rootRef:v}=jZ({disabled:n,focusableWhenDisabled:!0}),O=eM(v,i,s);c.useDebugValue({id:a,highlighted:f,disabled:n,label:o});const y=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||u({type:GY.close,event:t})},b=(e={})=>HD({},e,{onClick:y(e)});function w(e={}){const t=iM(e);return HD({},e,t,bZ(b,bZ(m,d))(t),{id:a,ref:O,role:"menuitem"})}return void 0===a?{getRootProps:w,disabled:!1,focusVisible:g,highlighted:!1,index:-1,totalItemCount:0,rootRef:O}:{getRootProps:w,disabled:n,focusVisible:g,highlighted:f,index:h,totalItemCount:p,rootRef:O}}({id:a,disabled:i,rootRef:t,label:o}),m=HD({},e,{disabled:f,focusVisible:h,highlighted:p}),g=function(e){const{disabled:t,focusVisible:n}=e;return hM({root:["root",t&&"disabled",n&&"focusVisible"]},fM(UZ))}(m),v=null!=(n=l.root)?n:"li",O=sM({elementType:v,getSlotProps:d,externalSlotProps:s.root,externalForwardedProps:u,className:g.root,ownerState:m});return(0,lM.jsx)(v,HD({},O,{children:r}))}))),GZ=c.forwardRef((function(e,t){const{id:n}=e,{contextValue:r,id:i}=function(e){const t=c.useContext(kZ);if(!t)throw new Error("MenuItem: ListContext was not found.");const n=nZ(e),{getItemState:r,dispatch:i}=t;let o;o=null!=n?r(n):{focusable:!0,highlighted:!1,selected:!1};const{highlighted:a,selected:s,focusable:l}=o,u=c.useCallback((e=>{if(e!==n)throw new Error(["Base UI MenuItem: Tried to access the state of another MenuItem.",`itemValue: ${e} | id: ${n}`,"This is unsupported when the MenuItem uses the MenuItemContextStabilizer as a performance optimization."].join("/n"));return{highlighted:a,selected:s,focusable:l}}),[a,s,l,n]);return{contextValue:c.useMemo((()=>({dispatch:i,getItemState:u})),[i,u]),id:n}}(n);return(0,lM.jsx)(kZ.Provider,{value:r,children:(0,lM.jsx)(ZZ,HD({},e,{id:i,ref:t}))})})),HZ=UD("MenuItemLink",["root","active","content","start-icon","end-icon"]),KZ=({href:e,children:t,className:n,active:r=!1,startIcon:i,endIcon:o})=>c.createElement(LT,{to:e},c.createElement(GZ,{slotProps:{root:{className:qD(n,HZ.root,r&&HZ.active)}}},c.createElement("div",{className:HZ.content},i?c.createElement(i,{className:HZ["start-icon"]}):null,t),o?c.createElement(o,{className:HZ["end-icon"]}):null));function JZ(){return JZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const t=LD(),n=pz(eI),r=(0,c.useMemo)((()=>Object.values(n).filter((e=>{var t;return"folder"in e&&null!==(t=e.create)&&void 0!==t&&t}))),[n]);return c.createElement(NZ,JZ({label:t("app.header.quickAdd"),startIcon:DN},e,{"aria-label":"create entry options dropdown"}),c.createElement(FZ,null,r.map((e=>c.createElement(KZ,{key:e.name,href:yo(e.name)},e.label_singular||e.label)))))},tG=UD("BottomNavigation",["root","menu-button","menu-button-icon","add-button","add-button-icon","quick-create","quick-create-button","site-url-button","site-url-button-icon"]),nG=({collection:e})=>{const t=re(),n=zN(e,(0,c.useMemo)((()=>t["*"]),[t])),r=pz(mC),[i,o]=(0,c.useState)(!1),a=(0,c.useCallback)((()=>{o((e=>!e))}),[]);return c.createElement(c.Fragment,null,c.createElement("div",{className:tG.root},c.createElement(FN,{icon:MN,variant:"text",onClick:a,rootClassName:tG["menu-button"],iconClassName:tG["menu-button-icon"],"aria-label":"toggle menu"}),Ne(n)?c.createElement(FN,{icon:DN,to:n,variant:"text",rootClassName:tG["add-button"],iconClassName:tG["add-button-icon"],"aria-label":"create entry"}):c.createElement(eG,{key:"quick-create",variant:"text",rootClassName:tG["quick-create"],buttonClassName:tG["quick-create-button"],hideDropdownIcon:!0,hideLabel:!0}),r?c.createElement(FN,{icon:IN,variant:"text",href:r,rootClassName:tG["site-url-button"],iconClassName:tG["site-url-button-icon"],"aria-label":"go to site"}):null),c.createElement(UY,{mobileOpen:i,onMobileOpenToggle:a}))};function rG(e){return{type:pQ,payload:{status:e}}}const iG=["styles"];function oG(){return oG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var n;const[r]=XT(),i=r.get("backTo"),o=(0,c.useMemo)((()=>{const t=e.filter((e=>!e.editor));if(0!==t.length)return t[t.length-1]}),[e]);return c.createElement("div",{className:dG.root},c.createElement("div",{className:dG["links-wrapper"]},c.createElement("div",{className:dG.links},e.map(((t,n)=>t.name?c.createElement(c.Fragment,{key:`breadcrumb-${n}`},n>0?c.createElement("span",{key:`separator-${n}`},">"):null,t.to?c.createElement(NT,{key:`link-${n}`,"data-testid":"breadcrumb-link",className:qD(dG["breadcrumb-link"],n+1===e.length&&dG["breadcrumb-truncated"]),to:t.to},t.name):c.createElement("span",{key:`text-${n}`,className:qD(dG["breadcrumb-text"],n+1===e.length&&dG["breadcrumb-truncated"])},t.name)):null)))),o?o.to||i?c.createElement(NT,{key:"final-non-editor-breadcrumb-link",className:dG["mobile-current-breadcrumb-link"],"data-testid":"breadcrumb-link",to:i||o.to},t?c.createElement(cG,{className:dG["mobile-backlink"]}):null,o.name):c.createElement("div",{key:"final-non-editor-breadcrumb-text",className:dG["mobile-current-breadcrumb-text"]},null!==(n=null==o?void 0:o.name)&&void 0!==n?n:""):null)};var hG=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}))}));hG.displayName="Logout";var pG=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10a2.5 2.5 0 0 0 2.5-2.5c0-.61-.23-1.2-.64-1.67a.528.528 0 0 1-.13-.33c0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9zm5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9zM5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5zm6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5z"}))}));pG.displayName="Palette";var mG=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}))}));mG.displayName="Person";const gG=e=>e.auth.user,vG=UD("MenuItemButton",["root","disabled","active","default","warning","error","content","start-icon","end-icon"]),OG=({active:e=!1,onClick:t,children:n,rootClassName:r,contentClassName:i,disabled:o=!1,startIcon:a,endIcon:s,color:l="default","data-testid":u})=>c.createElement(GZ,{slotProps:{root:{className:qD(r,vG.root,o&&vG.disabled,e&&vG.active,"default"===l&&vG.default,"warning"===l&&vG.warning,"error"===l&&vG.error)}},onClick:t,disabled:o,"data-testid":u},c.createElement("div",{className:qD(i,vG.content)},a?c.createElement(a,{className:vG["start-icon"]}):null,n),s?c.createElement(s,{className:vG["end-icon"]}):null);var yG=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))}));function bG(e){return e.globalUI.isFetching}function wG(e){return e.globalUI.theme}function kG(e){return e.globalUI.useOpenAuthoring}yG.displayName="Close";const xG={name:"Dark",common:{gray:"#334155"},text:{primary:"#fff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},background:{main:"#1e293b",light:"#2c3b55",dark:"#0f172a",divider:"#2c3b55"},scrollbar:{main:"#1e293b",light:"#2c3b55"},primary:{main:"#339ef4",light:"#6bb9f7",dark:"#0c82e0",contrastColor:"#ffffff"},error:{main:"#f44336",light:"#e57373",dark:"#d32f2f",contrastColor:"#ffffff"},warning:{main:"#ffa726",light:"#ffb74d",dark:"#f57c00",contrastColor:"#ffffff"},info:{main:"#29b6f6",light:"#4fc3f7",dark:"#0288d1",contrastColor:"#ffffff"},success:{main:"#66bb6a",light:"#81c784",dark:"#388e3c",contrastColor:"#ffffff"},codemirror:{theme:"dark"}},_G={name:"Light",common:{gray:"#d1d5db"},text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},background:{main:"#ffffff",light:"#ffffff",dark:"#f8fafc",divider:"#94a3b8"},scrollbar:{main:"rgba(100, 116, 139, .25)",light:"rgba(100, 116, 139, .25)"},primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0",contrastColor:"#ffffff"},error:{main:"#d32f2f",light:"#ef5350",dark:"#c62828",contrastColor:"#ffffff"},warning:{main:"#ed6c02",light:"#ff9800",dark:"#e65100",contrastColor:"#ffffff"},info:{main:"#0288d1",light:"#03a9f4",dark:"#01579b",contrastColor:"#ffffff"},success:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20",contrastColor:"#ffffff"},codemirror:{theme:"light"}},SG=[xG,_G];function PG(e,t,n){return e||(t?SX(t,.125):n)}function EG(e,t,n){return e||(t?EX(t,.125):n)}function CG(e,t){var n,r;return{main:null!==(n=null==e?void 0:e.main)&&void 0!==n?n:t.main,light:EG(null==e?void 0:e.light,null==e?void 0:e.main,t.light),dark:PG(null==e?void 0:e.dark,null==e?void 0:e.main,t.dark),contrastColor:null!==(r=null==e?void 0:e.contrastColor)&&void 0!==r?r:t.contrastColor}}function TG(){var e,t,n;const r=pz(dC);return(0,c.useMemo)((()=>{var e,t,n,i;const o=[];o.push(...[...null!==(e=null==r||null===(t=r.theme)||void 0===t?void 0:t.themes)&&void 0!==e?e:[],...NE()].map((e=>"extends"in e?function(e){var t,n,r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,O,y,b,w,k;const x="light"===e.extends?_G:xG;return{name:e.name,common:{gray:null!==(t=null===(n=e.common)||void 0===n?void 0:n.gray)&&void 0!==t?t:x.common.gray},text:{primary:null!==(r=null===(i=e.text)||void 0===i?void 0:i.primary)&&void 0!==r?r:x.text.primary,secondary:null!==(o=null===(a=e.text)||void 0===a?void 0:a.secondary)&&void 0!==o?o:x.text.secondary,disabled:null!==(s=null===(l=e.text)||void 0===l?void 0:l.disabled)&&void 0!==s?s:x.text.disabled},background:{main:null!==(u=null===(c=e.background)||void 0===c?void 0:c.main)&&void 0!==u?u:x.background.main,light:EG(null===(d=e.background)||void 0===d?void 0:d.light,null===(f=e.background)||void 0===f?void 0:f.main,x.background.light),dark:PG(null===(h=e.background)||void 0===h?void 0:h.dark,null===(p=e.background)||void 0===p?void 0:p.main,x.background.dark),divider:null!==(m=null===(g=e.background)||void 0===g?void 0:g.divider)&&void 0!==m?m:x.background.divider},scrollbar:{main:null!==(v=null===(O=e.scrollbar)||void 0===O?void 0:O.main)&&void 0!==v?v:x.scrollbar.main,light:EG(null===(y=e.scrollbar)||void 0===y?void 0:y.light,null===(b=e.scrollbar)||void 0===b?void 0:b.main,x.scrollbar.light)},primary:CG(e.primary,x.primary),error:CG(e.error,x.error),warning:CG(e.warning,x.warning),info:CG(e.info,x.info),success:CG(e.success,x.success),codemirror:{theme:null!==(w=null===(k=e.codemirror)||void 0===k?void 0:k.theme)&&void 0!==w?w:x.codemirror.theme}}}(e):e))),0!==o.length&&!1===(null==r||null===(n=r.theme)||void 0===n?void 0:n.include_built_in_themes)||o.push(...SG);const a=null==r||null===(i=r.theme)||void 0===i?void 0:i.default_theme;return Ne(a)&&o.sort(((e,t)=>e.name.toLowerCase()===a.toLowerCase()?-1:t.name.toLowerCase()===a.toLowerCase()?1:0)),o}),[null==r||null===(e=r.theme)||void 0===e?void 0:e.default_theme,null==r||null===(t=r.theme)||void 0===t?void 0:t.include_built_in_themes,null==r||null===(n=r.theme)||void 0===n?void 0:n.themes])}const $G=UD("Card",["root","header","content","media","link-action","button-action"]),QG=({children:e,className:t,title:n})=>c.createElement("div",{className:qD($G.root,t),title:n},e),RG=["children","className"],AG=e=>{let{children:t,className:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const e=null===r?{...n}:function(e,t){return"function"==typeof t?t(e):{...e,...t}}(r,n);return null!=e&&(e[MG]=null!==r),e}),[n,r]);return(0,lM.jsx)(jG.Provider,{value:i,children:t})},zG={};function WG(e,t,n,r=!1){return c.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?{...t,[e]:o}:o;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}}),[e,t,n,r])}const NG=function(e){const{children:t,theme:n,themeId:r}=e,i=Hq(zG),o=DG()||zG,a=WG(r,i,n),s=WG(r,o,n,!0),l="rtl"===(r?a[r]:a).direction;return(0,lM.jsx)(IG,{theme:s,children:(0,lM.jsx)(xF.Provider,{value:a,children:(0,lM.jsx)(YN,{value:l,children:(0,lM.jsx)(Qq,{value:r?a[r].components:a.components,children:t})})})})};function LG({theme:e,...t}){const n=kq in e?e[kq]:void 0;return(0,lM.jsx)(NG,{...t,themeId:n?kq:void 0,theme:n||e})}var FG=kF((function(e,t){var n=e.styles,r=vF([n],void 0,c.useContext(xF)),i=c.useRef();return bF((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}}),[t]),bF((function(){var e=i.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&SF(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function UG(){for(var e=arguments.length,t=new Array(e),n=0;n{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,lM.jsx)(FG,{styles:r})}const BG="mode",VG="color-scheme",YG="data-color-scheme";function ZG(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function GG(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function HG(e,t){if("undefined"==typeof window)return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}const KG="mui-color-scheme",JG="light",eH="dark",tH="mui-mode",{CssVarsProvider:nH,useColorScheme:rH,getInitColorSchemeScript:iH}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=BG,colorSchemeStorageKey:i=VG,disableTransitionOnChange:o=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=c.createContext(void 0),d={},f={},h="string"==typeof a?a:a.light,p="string"==typeof a?a:a.dark;return{CssVarsProvider:function(e){const{children:l,theme:h,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:g=o,storageWindow:v=("undefined"==typeof window?void 0:window),documentNode:O=("undefined"==typeof document?void 0:document),colorSchemeNode:y=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:b=!1,disableStyleSheetGeneration:w=!1,defaultMode:k="system",noSsr:x}=e,_=c.useRef(!1),S=DG(),P=c.useContext(u),E=!!P&&!b,C=c.useMemo((()=>h||("function"==typeof n?n():n)),[h]),T=C[t],$=T||C,{colorSchemes:Q=d,components:R=f,cssVarPrefix:A}=$,j=Object.keys(Q).filter((e=>!!Q[e])).join(","),D=c.useMemo((()=>j.split(",")),[j]),M="string"==typeof a?a:a.light,I="string"==typeof a?a:a.dark,z=Q[M]&&Q[I]?k:Q[$.defaultColorScheme]?.palette?.mode||$.palette?.mode,{mode:W,setMode:N,systemMode:L,lightColorScheme:F,darkColorScheme:U,colorScheme:X,setColorScheme:q}=function(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:o=BG,colorSchemeStorageKey:a=VG,storageWindow:s=("undefined"==typeof window?void 0:window),noSsr:l=!1}=e,u=i.join(","),d=i.length>1,[f,h]=c.useState((()=>{const e=HG(o,t),i=HG(`${a}-light`,n),s=HG(`${a}-dark`,r);return{mode:e,systemMode:ZG(e),lightColorScheme:i,darkColorScheme:s}})),[p,m]=c.useState(l||!d);c.useEffect((()=>{m(!0)}),[]);const g=function(e){return GG(e,(t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0))}(f),v=c.useCallback((e=>{h((n=>{if(e===n.mode)return n;const r=e??t;try{localStorage.setItem(o,r)}catch{}return{...n,mode:r,systemMode:ZG(r)}}))}),[o,t]),O=c.useCallback((e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):h((t=>{const n={...t};return GG(t,(t=>{try{localStorage.setItem(`${a}-${t}`,e)}catch{}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)})),n})):h((t=>{const i={...t},o=null===e.light?n:e.light,s=null===e.dark?r:e.dark;if(o)if(u.includes(o)){i.lightColorScheme=o;try{localStorage.setItem(`${a}-light`,o)}catch(e){}}else console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`);if(s)if(u.includes(s)){i.darkColorScheme=s;try{localStorage.setItem(`${a}-dark`,s)}catch(e){}}else console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`);return i})):h((e=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...e,lightColorScheme:n,darkColorScheme:r}}))}),[u,a,n,r]),y=c.useCallback((e=>{"system"===f.mode&&h((t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}}))}),[f.mode]),b=c.useRef(y);return b.current=y,c.useEffect((()=>{if("function"!=typeof window.matchMedia||!d)return;const e=(...e)=>b.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}}),[d]),c.useEffect((()=>{if(s&&d){const e=e=>{const n=e.newValue;"string"!=typeof e.key||!e.key.startsWith(a)||n&&!u.match(n)||(e.key.endsWith("light")&&O({light:n}),e.key.endsWith("dark")&&O({dark:n})),e.key!==o||n&&!["light","dark","system"].includes(n)||v(n||t)};return s.addEventListener("storage",e),()=>{s.removeEventListener("storage",e)}}}),[O,v,o,a,u,t,s,d]),{...f,mode:p?f.mode:void 0,systemMode:p?f.systemMode:void 0,colorScheme:p?g:void 0,setMode:v,setColorScheme:O}}({supportedColorSchemes:D,defaultLightColorScheme:M,defaultDarkColorScheme:I,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:z,storageWindow:v,noSsr:x});let B=W,V=X;E&&(B=P.mode,V=P.colorScheme);const Y=c.useMemo((()=>{const e=V||$.defaultColorScheme,t=$.generateThemeVars?.()||$.vars,n={...$,components:R,colorSchemes:Q,cssVarPrefix:A,vars:t};if("function"==typeof n.generateSpacing&&(n.spacing=n.generateSpacing()),e){const t=Q[e];t&&"object"==typeof t&&Object.keys(t).forEach((e=>{t[e]&&"object"==typeof t[e]?n[e]={...n[e],...t[e]}:n[e]=t[e]}))}return s?s(n):n}),[$,V,R,Q,A]),Z=$.colorSchemeSelector;c.useEffect((()=>{if(V&&y&&Z&&"media"!==Z){const e=Z;let t=Z;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))y.classList.remove(...D.map((e=>t.substring(1).replace("%s",e)))),y.classList.add(t.substring(1).replace("%s",V));else{const e=t.replace("%s",V).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||D.forEach((e=>{y.removeAttribute(t.replace(V,e))})),y.setAttribute(t,n?n.replace(/"|'/g,""):"")}else y.setAttribute(t,V)}}}),[V,Z,y,D]),c.useEffect((()=>{let e;if(g&&_.current&&O){const t=O.createElement("style");t.appendChild(O.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),O.head.appendChild(t),window.getComputedStyle(O.body),e=setTimeout((()=>{O.head.removeChild(t)}),1)}return()=>{clearTimeout(e)}}),[V,g,O]),c.useEffect((()=>(_.current=!0,()=>{_.current=!1})),[]);const G=c.useMemo((()=>({allColorSchemes:D,colorScheme:V,darkColorScheme:U,lightColorScheme:F,mode:B,setColorScheme:q,setMode:N,systemMode:L})),[D,V,U,F,B,q,N,L,Y.colorSchemeSelector]);let H=!0;(w||!1===$.cssVariables||E&&S?.cssVarPrefix===A)&&(H=!1);const K=(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(NG,{themeId:T?t:void 0,theme:Y,children:l}),H&&(0,lM.jsx)(qG,{styles:Y.generateStyleSheets?.()||[]})]});return E?K:(0,lM.jsx)(u.Provider,{value:G,children:K})},useColorScheme:()=>c.useContext(u)||l,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=BG,colorSchemeStorageKey:o=VG,attribute:a=YG,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let u="",c=a;if("class"===a&&(c=".%s"),"data"===a&&(c="[data-%s]"),c.startsWith(".")){const e=c.substring(1);u+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${s}.classList.add('${e}'.replace('%s', colorScheme));`}const d=c.match(/\[([^\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(u+=`${s}.removeAttribute('${e}'.replace('%s', light));\n ${s}.removeAttribute('${e}'.replace('%s', dark));`),u+=`\n ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else u+=`${s}.setAttribute('${c}', colorScheme);`;return(0,lM.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?l:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${i}') || '${t}';\n const dark = localStorage.getItem('${o}-dark') || '${r}';\n const light = localStorage.getItem('${o}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${u}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:i,defaultLightColorScheme:h,defaultDarkColorScheme:p,modeStorageKey:r,...e})}}({themeId:kq,theme:()=>bq({cssVariables:!0}),colorSchemeStorageKey:KG,modeStorageKey:tH,defaultColorScheme:{light:JG,dark:eH},resolveTheme:e=>{const t={...e,typography:HX(e.palette,e.typography)};return t.unstable_sx=function(e){return aX({sx:e,theme:this})},t}}),oH=nH;function aH({theme:e,...t}){return"function"==typeof e?(0,lM.jsx)(LG,{theme:e,...t}):"colorSchemes"in(kq in e?e[kq]:e)?(0,lM.jsx)(oH,{theme:e,...t}):(0,lM.jsx)(LG,{theme:e,...t})}const sH=({element:e,theme:t,children:n})=>{(0,c.useEffect)((()=>{e&&(e.style.setProperty("--text-primary",t.text.primary),e.style.setProperty("--text-secondary",t.text.secondary),e.style.setProperty("--text-disabled",t.text.disabled),e.style.setProperty("--background-main",t.background.main),e.style.setProperty("--background-light",t.background.light),e.style.setProperty("--background-dark",t.background.dark),e.style.setProperty("--background-divider",t.background.divider),e.style.setProperty("--scrollbar-main",t.scrollbar.main),e.style.setProperty("--scrollbar-light",t.scrollbar.light),e.style.setProperty("--common-gray",t.common.gray),e.style.setProperty("--primary-main",t.primary.main),e.style.setProperty("--primary-light",t.primary.light),e.style.setProperty("--primary-dark",t.primary.dark),e.style.setProperty("--primary-contrast-color",t.primary.contrastColor),e.style.setProperty("--error-main",t.error.main),e.style.setProperty("--error-light",t.error.light),e.style.setProperty("--error-dark",t.error.dark),e.style.setProperty("--error-contrast-color",t.error.contrastColor),e.style.setProperty("--warning-main",t.warning.main),e.style.setProperty("--warning-light",t.warning.light),e.style.setProperty("--warning-dark",t.warning.dark),e.style.setProperty("--warning-contrast-color",t.warning.contrastColor),e.style.setProperty("--info-main",t.info.main),e.style.setProperty("--info-light",t.info.light),e.style.setProperty("--info-dark",t.info.dark),e.style.setProperty("--info-contrast-color",t.info.contrastColor),e.style.setProperty("--success-main",t.success.main),e.style.setProperty("--success-light",t.success.light),e.style.setProperty("--success-dark",t.success.dark),e.style.setProperty("--success-contrast-color",t.success.contrastColor))}),[e,t]);const r=(0,c.useMemo)((()=>bq({palette:{primary:{main:t.primary.main,light:t.primary.light,dark:t.primary.dark,contrastText:t.primary.contrastColor},secondary:{main:t.common.gray,light:EX(t.common.gray,.125),dark:t.primary.main,contrastText:t.text.primary},text:{primary:t.text.primary,secondary:t.text.secondary,disabled:t.text.disabled},action:{active:t.text.primary},background:{default:t.background.dark,paper:t.background.main},error:{main:t.error.main,light:t.error.light,dark:t.error.dark,contrastText:t.error.contrastColor},warning:{main:t.warning.main,light:t.warning.light,dark:t.warning.dark,contrastText:t.warning.contrastColor},info:{main:t.info.main,light:t.info.light,dark:t.info.dark,contrastText:t.info.contrastColor},success:{main:t.success.main,light:t.success.light,dark:t.success.dark,contrastText:t.success.contrastColor}}})),[t]);return c.createElement(aH,{theme:r},n)},lH=UD("ThemeCard",["root","active","button","content","preview","preview-appbar","preview-logo-wrapper","preview-logo","preview-custom-logo","preview-breadcrumbs","preview-appbar-actions","preview-avatar","preview-content","preview-primary-button","preview-secondary-button","preview-text","preview-sidebar","preview-main","preview-main-actions","preview-error-button","preview-warning-button","preview-info-button","preview-success-button","preview-card","preview-collection-row","preview-collection-highlight"]),uH=({theme:e,onClick:t})=>{const[n,r]=(0,c.useState)(),i=function(e){const t=(0,c.useRef)(null),n=(0,c.useCallback)((n=>{n&&e(n),t.current=n}),[e]);return n}(r),o=pz(wG),a=pz(dC),s=(0,c.useCallback)((()=>{t(e.name)}),[t,e.name]);return c.createElement(sH,{theme:e,element:n},c.createElement(QG,{className:qD(lH.root,e.name.toLowerCase()===o&&lH.active)},c.createElement(AG,{onClick:s,className:lH.button},c.createElement("div",{ref:i,className:lH.preview},c.createElement("div",{className:lH["preview-appbar"]},c.createElement("div",{className:lH["preview-breadcrumbs"]},c.createElement("div",{className:lH["preview-logo-wrapper"]},null!=a&&a.logo_url?c.createElement("div",{className:qD(lH["preview-logo"],lH["preview-custom-logo"]),style:{backgroundImage:`url('${a.logo_url}')`}}):c.createElement(aG,{className:lH["preview-logo"]})),c.createElement("div",{className:lH["preview-text"]}),c.createElement("div",{className:lH["preview-text"]})),c.createElement("div",{className:lH["preview-appbar-actions"]},c.createElement("div",{className:lH["preview-primary-button"]}),c.createElement("div",{className:lH["preview-avatar"]}))),c.createElement("div",{className:lH["preview-content"]},c.createElement("div",{className:lH["preview-sidebar"]},c.createElement("div",{className:lH["preview-primary-button"]}),c.createElement("div",{className:lH["preview-secondary-button"]}),c.createElement("div",{className:lH["preview-secondary-button"]}),c.createElement("div",{className:lH["preview-secondary-button"]})),c.createElement("div",{className:lH["preview-main"]},c.createElement("div",{className:lH["preview-main-actions"]},c.createElement("div",{className:lH["preview-error-button"]}),c.createElement("div",{className:lH["preview-warning-button"]}),c.createElement("div",{className:lH["preview-info-button"]}),c.createElement("div",{className:lH["preview-success-button"]})),c.createElement("div",{className:lH["preview-card"]},c.createElement("div",{className:lH["preview-collection-row"]}),c.createElement("div",{className:qD(lH["preview-collection-row"],lH["preview-collection-highlight"])}),c.createElement("div",{className:lH["preview-collection-row"]}),c.createElement("div",{className:lH["preview-collection-row"]}),c.createElement("div",{className:lH["preview-collection-row"]}))))),c.createElement("div",{className:lH.content},e.name))))},cH=UD("ThemeSelectorDialog",["root","header","title","grid"]),dH=({open:e,onClose:t})=>{const n=hz(),r=LD(),i=pz(wG),o=TG(),a=(0,c.useCallback)((e=>{n(DA(e))}),[n]);return c.createElement(FM,{open:e,onClose:t,className:cH.root},c.createElement("div",{className:cH.header},c.createElement("h2",{className:cH.title},r("ui.settingsDropdown.theme")),c.createElement(FN,{icon:yG,variant:"text",onClick:t,"aria-label":"close"})),c.createElement("div",{className:cH.grid},o.map(((e,t)=>c.createElement(uH,{key:t,theme:e,currentTheme:i,onClick:a})))))},fH=UD("SettingsDropdown",["root","in-editor","avatar-image","avatar-icon","sr-label"]),hH=({imageUrl:e})=>e?c.createElement("img",{className:fH["avatar-image"],src:e}):c.createElement(mG,{className:fH["avatar-icon"]}),pH=({inEditor:e})=>{const t=LD(),n=hz(),r=pz(gG),[i,o]=(0,c.useState)(!1),a=(0,c.useCallback)((()=>{o(!0)}),[]),s=(0,c.useCallback)((()=>{o(!1)}),[]),l=(0,c.useCallback)((()=>{n(WA())}),[n]);return c.createElement(c.Fragment,null,c.createElement(NZ,{label:c.createElement(c.Fragment,null,c.createElement("span",{className:fH["sr-label"]},"Open user menu"),c.createElement(hH,{imageUrl:null==r?void 0:r.avatar_url})),color:"secondary",variant:"outlined",rounded:!(null!=r&&r.avatar_url)||"no-padding",hideDropdownIcon:!0,rootClassName:qD(fH.root,e&&fH["in-editor"]),"aria-label":"account options dropdown"},c.createElement(FZ,null,c.createElement(OG,{key:"dark-mode",onClick:a,startIcon:pG},t("ui.settingsDropdown.theme"))),c.createElement(FZ,null,c.createElement(OG,{key:"log-out",onClick:l,startIcon:hG},t("ui.settingsDropdown.logOut")))),c.createElement(dH,{open:i,onClose:s}))},mH=UD("Navbar",["root","in-editor","content-wrapper","content","breadcrumbs","logo-wrapper","logo","custom-logo","actions","site-url","site-url-mobile","site-url-label","site-url-icon","quick-create"]),gH=({showQuickCreate:e=!1,navbarActions:t=null,breadcrumbs:n=[]})=>{const r=hz(),i=pz(dC),o=pz(mC);(0,c.useEffect)((()=>{const e=setInterval((()=>{r((async(e,t)=>{try{const n=t(),r=n.config.config;if(n.status.isFetching||!r)return;e({type:hQ});const i=DC(r),o=await i.status(),a="ui.toast.onBackendDown",s=n.snackbar.messages.filter((e=>"string"!=typeof e.message&&e.message.key===a));if(!1===o.api.status)return 0===s.length&&e($A({type:"error",message:{key:"ui.toast.onBackendDown",options:{details:o.api.statusPage}}})),e(rG(o));if(!0===o.api.status&&s.length>0&&s.forEach((t=>{e(QA(t.id))})),!1===o.auth.status){const t="ui.toast.onLoggedOut",r=n.snackbar.messages.find((e=>"string"!=typeof e.message&&e.message.key===t));r||e($A({type:"error",message:{key:"ui.toast.onLoggedOut"}}))}e(rG(o))}catch(t){console.error(t),t instanceof Error&&e(function(e){return{type:mQ,payload:{error:e}}}(t))}}))}),3e5);return()=>{clearInterval(e)}}),[r]);const a=(0,c.useMemo)((()=>Boolean(n.length>0&&n[n.length-1].editor)),[n]);return c.createElement("nav",{className:qD(mH.root,a&&mH["in-editor"])},c.createElement("div",{key:"nav",className:mH["content-wrapper"]},c.createElement("div",{className:mH.content},c.createElement("div",{className:mH.breadcrumbs},c.createElement("div",{className:mH["logo-wrapper"]},null!=i&&i.logo_url?i.logo_link?c.createElement("a",{href:i.logo_link},c.createElement("div",{className:qD(mH.logo,mH["custom-logo"]),style:{backgroundImage:`url('${i.logo_url}')`}})):c.createElement("div",{className:qD(mH.logo,mH["custom-logo"]),style:{backgroundImage:`url('${i.logo_url}')`}}):null!=i&&i.logo_link?c.createElement("a",{href:i.logo_link},c.createElement(aG,{className:mH.logo})):c.createElement(aG,{className:mH.logo})),c.createElement(fG,{breadcrumbs:n,inEditor:a})),c.createElement("div",{className:mH.actions},o?c.createElement(c.Fragment,null,c.createElement(GD,{variant:"text",className:mH["site-url"],href:o},c.createElement("div",{className:mH["site-url-label"]},o),c.createElement(IN,{className:mH["site-url-icon"]})),c.createElement(FN,{icon:IN,variant:"text",href:o,title:o,rootClassName:mH["site-url-mobile"],iconClassName:mH["site-url-icon"],"aria-label":"go to site"})):null,e?c.createElement(eG,{key:"quick-create",rootClassName:mH["quick-create"]}):null,t,c.createElement(pH,{inEditor:a})))))},vH=()=>c.createElement("aside",{className:WY.root,"aria-label":"sidebar"},c.createElement(LY,null)),OH=UD("MainView",["root","body","show-left-nav","no-margin","no-scroll"]);yD().config({barColors:{0:"#000","1.0":"#000"},shadowBlur:0,barThickness:2});const yH=({children:e,breadcrumbs:t,showQuickCreate:n=!1,showLeftNav:r=!1,noMargin:i=!1,noScroll:o=!1,navbarActions:a,collection:s})=>c.createElement(c.Fragment,null,c.createElement(gH,{breadcrumbs:t,showQuickCreate:n,navbarActions:a}),c.createElement("div",{className:OH.root},r?c.createElement(vH,null):null,c.createElement("div",{id:"main-view",className:qD(OH.body,r&&OH["show-left-nav"],i&&OH["no-margin"],o&&OH["no-scroll"],"CMS_Scrollbar_root")},e)),c.createElement(nG,{collection:s})),bH=UD("Collection",["root","content","search-query","description","description-card","controls","header-wrapper","header","header-icon","header-label","new-entry-button","new-entry-button-text"]);var wH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),c.createElement("path",{d:"M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"}))}));wH.displayName="Grid";var kH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 8H5c-1.1 0-2-.9-2-2s.9-2 2-2h14c1.1 0 2 .9 2 2s-.9 2-2 2zm0 2H5c-1.1 0-2 .9-2 2s.9 2 2 2h14c1.1 0 2-.9 2-2s-.9-2-2-2zm0 6H5c-1.1 0-2 .9-2 2s.9 2 2 2h14c1.1 0 2-.9 2-2s-.9-2-2-2z"}))}));kH.displayName="TableRows";const xH="table",_H="grid",SH=[xH,_H],PH="compact",EH=UD("ViewStyleControl",["root","button","icon"]),CH=({viewStyle:e,onChangeViewStyle:t})=>c.createElement("div",{className:EH.root},c.createElement(FN,{icon:kH,color:e===xH?"primary":"secondary",variant:"text",rootClassName:EH.button,"aria-label":"table view option",onClick:()=>t(xH)}),c.createElement(FN,{icon:wH,color:e===_H?"primary":"secondary",variant:"text",rootClassName:EH.button,"aria-label":"grid view option",onClick:()=>t(_H)}));var TH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}))}));TH.displayName="Check";const $H=UD("Checkbox",["root","sm","md","disabled","input","custom-input","checkmark"]),QH=({id:e,size:t="md",checked:n,disabled:r=!1,readOnly:i=!1,onChange:o})=>{const a=(0,c.useRef)(null),s=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault()}),[]),l=(0,c.useCallback)((e=>{var t;"Enter"!==e.code&&"Space"!==e.code||(e.stopPropagation(),e.preventDefault(),null===(t=a.current)||void 0===t||t.click())}),[]),u=(0,c.useCallback)((e=>{var t;e.stopPropagation(),e.preventDefault(),null===(t=a.current)||void 0===t||t.click()}),[]);return c.createElement("label",{className:qD($H.root,$H[t],r&&$H.disabled),onClick:s,onKeyDown:l},c.createElement("input",{id:e,"data-testid":"switch-input",ref:a,type:"checkbox",checked:n,className:$H.input,disabled:r,readOnly:i,onChange:o,onClick:s,onKeyDown:l}),c.createElement("div",{className:$H["custom-input"],onClick:u,onKeyDown:l},n?c.createElement(TH,{className:$H.checkmark,onClick:u,onKeyDown:l}):null))},RH=UD("FilterControl",["root","filter","filter-label","list-root","list-label","list-filter","list-filter-label"]),AH=({filter:e={},viewFilters:t=[],variant:n="menu",onFilterClick:r})=>{const i=LD(),o=(0,c.useMemo)((()=>Object.keys(e).some((t=>{var n;return null===(n=e[t])||void 0===n?void 0:n.active}))),[e]),a=(0,c.useCallback)((e=>t=>{t.stopPropagation(),t.preventDefault(),null==r||r(e)}),[r]);return"list"===n?c.createElement("div",{key:"filter-by-list",className:RH["list-root"]},c.createElement("h3",{className:RH["list-label"]},i("collection.collectionTop.filterBy")),t.map((t=>{var n,r;const i=null!==(n=Boolean(t.id&&(null===(r=e[null==t?void 0:t.id])||void 0===r?void 0:r.active)))&&void 0!==n&&n,o=`filter-list-label-${t.label}`;return c.createElement("div",{key:t.id,className:RH["list-filter"],onClick:a(t)},c.createElement("input",{key:`${o}-${i}`,id:o,type:"checkbox",value:"",checked:i,readOnly:!0}),c.createElement("label",{className:RH["list-filter-label"]},t.label))}))):c.createElement(NZ,{key:"filter-by-menu",label:i("collection.collectionTop.filterBy"),color:o?"primary":"secondary",variant:o?"contained":"outlined",rootClassName:RH.root,"aria-label":"filter options dropdown","data-testid":"filter-by"},c.createElement(FZ,null,t.map((t=>{var n,r;const i=null!==(n=Boolean(t.id&&(null===(r=e[null==t?void 0:t.id])||void 0===r?void 0:r.active)))&&void 0!==n&&n,o=`filter-list-label-${t.label}`;return c.createElement(OG,{key:t.id,onClick:a(t),rootClassName:RH.filter,"data-testid":`filter-by-option-${t.label}`},c.createElement(QH,{key:`${o}-${i}`,id:o,checked:i,size:"sm",readOnly:!0}),c.createElement("label",{className:RH["filter-label"]},t.label))}))))},jH=UD("GroupControl",["root","option","list","list-label","list-option","list-option-label","list-option-checked-icon","list-option-not-checked"]),DH=({viewGroups:e=[],group:t={},variant:n="menu",onGroupClick:r})=>{const i=LD(),o=(0,c.useMemo)((()=>Object.values(t).find((e=>!0===e.active))),[t]),a=(0,c.useCallback)((e=>t=>{t.stopPropagation(),t.preventDefault(),null==r||r(e)}),[r]);return"list"===n?c.createElement("div",{key:"filter-by-list",className:jH.list},c.createElement("h3",{className:jH["list-label"]},i("collection.collectionTop.groupBy")),e.map((e=>{var n,r;const i=null!==(n=Boolean(e.id&&(null===(r=t[null==e?void 0:e.id])||void 0===r?void 0:r.active)))&&void 0!==n&&n;return c.createElement("div",{key:e.id,className:jH["list-option"],onClick:a(e)},c.createElement("label",{className:jH["list-option-label"]},e.label),i?c.createElement(TH,{key:"checkmark",className:jH["list-option-checked-icon"]}):c.createElement("div",{key:"not-checked",className:jH["list-option-not-checked"]}))}))):c.createElement(NZ,{label:i("collection.collectionTop.groupBy"),color:o?"primary":"secondary",variant:o?"contained":"outlined",rootClassName:jH.root,"aria-label":"group by options dropdown","data-testid":"group-by"},c.createElement(FZ,null,e.map((e=>c.createElement(OG,{key:e.id,onClick:()=>null==r?void 0:r(e),endIcon:e.id===(null==o?void 0:o.id)?TH:void 0,rootClassName:jH.option,"data-testid":`group-by-option-${e.label}`},e.label)))))};var MH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}))}));MH.displayName="FilterList";const IH=UD("MobileCollectionControls",["root","content","toggle"]);var zH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}))}));zH.displayName="KeyboardArrowUp";const WH=UD("SortControl",["root","option","list","list-label","list-option","list-option-label","list-option-sorted-icon","list-option-not-sorted"]);function NH(e){switch(e){case qT:return BT;case BT:return VT;default:return qT}}const LH=({fields:e=[],sort:t={},variant:n="menu",onSortClick:r})=>{const i=LD(),o=(0,c.useMemo)((()=>{if(!t)return{key:void 0,direction:void 0};const e=Object.values(t);return Object.values(e).length<1||e[0].direction===VT?{key:void 0,direction:void 0}:e[0]}),[t]),a=(0,c.useCallback)(((e,t)=>n=>{n.stopPropagation(),n.preventDefault(),null==r||r(e,t)}),[r]);return"list"===n?c.createElement("div",{key:"filter-by-list",className:WH.list},c.createElement("h3",{className:WH["list-label"]},i("collection.collectionTop.sortBy")),e.map((e=>{var n,r,i;const s=NH(null!==(n=null==t||null===(r=t[e.name])||void 0===r?void 0:r.direction)&&void 0!==n?n:VT);return c.createElement("div",{key:e.name,className:WH["list-option"],onClick:a(e.name,s)},c.createElement("label",{className:WH["list-option-label"]},null!==(i=e.label)&&void 0!==i?i:e.name),e.name===o.key?o.direction===qT?c.createElement(zH,{key:"checkmark",className:WH["list-option-sorted-icon"]}):c.createElement(zZ,{key:"checkmark",className:WH["list-option-sorted-icon"]}):c.createElement("div",{key:"not-checked",className:WH["list-option-not-sorted"]}))}))):c.createElement(NZ,{label:i("collection.collectionTop.sortBy"),color:o.key?"primary":"secondary",variant:o.key?"contained":"outlined",rootClassName:WH.root,"aria-label":"sort options dropdown"},c.createElement(FZ,null,e.map((e=>{var n,r,i;const s=NH(null!==(n=null==t||null===(r=t[e.name])||void 0===r?void 0:r.direction)&&void 0!==n?n:VT);return c.createElement(OG,{key:e.name,onClick:a(e.name,s),active:e.name===o.key,endIcon:e.name===o.key?o.direction===qT?zH:zZ:void 0,rootClassName:WH.option},null!==(i=e.label)&&void 0!==i?i:e.name)}))))},FH=({mobileOpen:e,onMobileOpenToggle:t,showFilterControl:n,filter:r,viewFilters:i,onFilterClick:o,showGroupControl:a,group:s,viewGroups:l,onGroupClick:u,showSortControl:d,sort:f,fields:h,onSortClick:p})=>{const m=(0,c.useMemo)((()=>"undefined"!=typeof window?window.document.body:void 0),[]);return c.createElement(ZB,{container:m,variant:"temporary",open:e,onClose:t,anchor:"right",ModalProps:{keepMounted:!0},slotProps:{root:{className:IH.root}}},c.createElement("div",{onClick:t,className:qD(IH.content,"CMS_Scrollbar_root")},d?c.createElement(LH,{fields:h,sort:f,onSortClick:p,variant:"list"}):null,n?c.createElement(AH,{viewFilters:i,onFilterClick:o,filter:r,variant:"list"}):null,a?c.createElement(DH,{viewGroups:l,onGroupClick:u,group:s,variant:"list"}):null))};function UH(){return UH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[t,n]=(0,c.useState)(!1),r=(0,c.useCallback)((()=>{n((e=>!e))}),[]);return c.createElement(c.Fragment,null,c.createElement(FN,{icon:MH,variant:"text",onClick:r,rootClassName:IH.toggle,"aria-label":"toggle menu"}),c.createElement(FH,UH({},e,{mobileOpen:t,onMobileOpenToggle:r})))},qH=({viewStyle:e,onChangeViewStyle:t,sortableFields:n,onSortClick:r,sort:i,viewFilters:o,viewGroups:a,onFilterClick:s,onGroupClick:l,filter:u,group:d})=>{const f=(0,c.useMemo)((()=>Boolean(a&&l&&d&&a.length>0)),[d,l,a]),h=(0,c.useMemo)((()=>Boolean(o&&s&&u&&o.length>0)),[u,s,o]),p=(0,c.useMemo)((()=>Boolean(n&&r&&i&&n.length>0)),[r,i,n]);return c.createElement(c.Fragment,null,c.createElement("div",{className:bH.controls},c.createElement(CH,{viewStyle:e,onChangeViewStyle:t}),f||h||h?c.createElement(XH,{showFilterControl:h,viewFilters:o,onFilterClick:s,filter:u,showGroupControl:f,viewGroups:a,onGroupClick:l,group:d,showSortControl:p,fields:n,sort:i,onSortClick:r}):null,f?c.createElement(DH,{viewGroups:a,onGroupClick:l,group:d}):null,h?c.createElement(AH,{viewFilters:o,onFilterClick:s,filter:u}):null,p?c.createElement(LH,{fields:n,sort:i,onSortClick:r}):null))};function BH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VH(e){for(var t=1;t{const t=LD(),n=e.label,r=e.label_singular,i=re(),o=(0,c.useMemo)((()=>i["*"]),[i]),a=zN(e,o),s=(l=e.icon,(0,c.useMemo)((()=>eV(l)),[l]));var l;const u=yz(e),d=(0,c.useMemo)((()=>{var t;if("nested"in e&&null!==(t=e.nested)&&void 0!==t&&t.path&&o){const t=u.reduce(((e,t)=>(e[t.path]=t,e)),{});if(Ne(o)){const n=bP(e);let r=t[`${e.folder}/${o}/${e.nested.path.index_file}.${n}`];if(r)return r=VH(VH({},r),{},{data:Mx(r.path,r.data)}),PP(e,r)}}return n}),[e,n,u,o]);return c.createElement("div",{className:bH["header-wrapper"]},c.createElement("h2",{className:bH.header},c.createElement("div",{className:bH["header-icon"]},s),c.createElement("div",{className:bH["header-label"]},d)),a?c.createElement(GD,{to:a,className:bH["new-entry-button"]},c.createElement("div",{className:bH["new-entry-button-text"]},t("collection.collectionTop.newButton",{collectionLabel:null!=r?r:d}))):null)};function GH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HH(e){for(var t=1;tc.createElement("div",{role:"status",className:qD(JH.root,e),"data-testid":t},c.createElement("svg",{"aria-hidden":"true",className:qD(JH.svg,"medium"===n&&JH.md,"small"===n&&JH.sm),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})),c.createElement("span",{className:JH["sr-label"]},"Loading...")),tK=UD("Loader",["root"]),nK=({children:e})=>{const[t,n]=(0,c.useState)(0),r=(0,c.useMemo)((()=>{if(e)return"string"==typeof e?e:Array.isArray(e)&&t{if(!Array.isArray(e))return;const r=setInterval((()=>{const r=t===(null==e?void 0:e.length)-1?0:t+1;n(r)}),5e3);return()=>{clearInterval(r)}}),[e,t]),c.createElement("div",{className:tK.root},c.createElement(eK,null),c.createElement("div",null,r))},rK=UD("Entries",["no-entries","group","group-content-wrapper","group-content","group-button","entry-listing","entry-listing-loading","entry-listing-grid","entry-listing-grid-container","entry-listing-cards","entry-listing-cards-grid-wrapper","entry-listing-cards-grid","entry-listing-table","entry-listing-table-content","entry-listing-table-row","entry-listing-local-backup"]);let iK;iK="undefined"!=typeof window?window:"undefined"!=typeof self?self:__webpack_require__.g;let oK=null,aK=null;const sK=iK.clearTimeout,lK=iK.setTimeout,uK=iK.cancelAnimationFrame||iK.mozCancelAnimationFrame||iK.webkitCancelAnimationFrame,cK=iK.requestAnimationFrame||iK.mozRequestAnimationFrame||iK.webkitRequestAnimationFrame;null==uK||null==cK?(oK=sK,aK=function(e){return lK(e,20)}):(oK=function([e,t]){uK(e),sK(t)},aK=function(e){const t=cK((function(){sK(n),e()})),n=lK((function(){uK(t),e()}),20);return[t,n]});class dK extends c.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,i,o,a;const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(null!==(r=s.paddingLeft)&&void 0!==r?r:"0"),u=parseFloat(null!==(i=s.paddingRight)&&void 0!==i?i:"0"),c=parseFloat(null!==(o=s.paddingTop)&&void 0!==o?o:"0"),d=parseFloat(null!==(a=s.paddingBottom)&&void 0!==a?a:"0"),f=this._parentNode.getBoundingClientRect(),h=f.height-c-d,p=f.width-l-u,m=this._parentNode.offsetHeight-c-d,g=this._parentNode.offsetWidth-l-u;(e||this.state.height===m&&this.state.scaledHeight===h)&&(t||this.state.width===g&&this.state.scaledWidth===p)||(this.setState({height:m,width:g,scaledHeight:h,scaledWidth:p}),"function"==typeof n&&n({height:m,scaledHeight:h,scaledWidth:p,width:g}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=function(e){let t,n,r,i,o,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&oK(this.__resizeRAF__),this.__resizeRAF__=aK((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const u="Webkit Moz O ms".split(" ");let c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const c=l.createElement("div");c.className="expand-trigger",c.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(c),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,nonce:o,onResize:a,style:s={},tagName:l="div",...u}=this.props,{height:d,scaledHeight:f,scaledWidth:h,width:p}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=f),i||(0===p&&(v=!0),m.width=0,g.width=p,g.scaledWidth=h),(0,c.createElement)(l,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function fK(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var hK=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function pK(e,t){if(e.length!==t.length)return!1;for(var n=0;n0?yK="positive-descending":(t.scrollLeft=1,yK=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),yK}return yK}var wK=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function kK(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,o=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,d=e.getRowHeight,f=e.getRowOffset,h=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,fK(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:fK(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=mK((function(e,t,n,i,o,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=mK((function(e,t,n,i,o){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var i,a=r.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,c=r._getItemStyleCache(g&&s,g&&l,g&&u),h=e+":"+t;if(c.hasOwnProperty(h))i=c[h];else{var p=n(r.props,t,r._instanceProps),m="rtl"===l;c[h]=i={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:f(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:o(r.props,t,r._instanceProps)}}return i},r._getItemStyleCache=void 0,r._getItemStyleCache=mK((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=r.props.direction,u=o;if("rtl"===t)switch(bK()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Nq(t,e),t.getDerivedStateFromProps=function(e,t){return xK(e,t),v(e),null};var O=t.prototype;return O.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLefth?v:0,b=O>d?v:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,b):m,scrollTop:void 0!==i?u(this.props,i,n,g,this._instanceProps,y):g})},O.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},O.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(bK()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},O.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vK(this._resetIsScrollingTimeoutId)},O.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,i=e.direction,o=e.height,l=e.innerRef,u=e.innerElementType,d=e.innerTagName,f=e.itemData,h=e.itemKey,p=void 0===h?wK:h,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,O=e.style,y=e.useIsScrolling,b=e.width,w=this.state.isScrolling,k=this._getHorizontalRangeToRender(),x=k[0],_=k[1],S=this._getVerticalRangeToRender(),P=S[0],E=S[1],C=[];if(r>0&&v)for(var T=P;T<=E;T++)for(var $=x;$<=_;$++)C.push((0,c.createElement)(t,{columnIndex:$,data:f,isScrolling:y?w:void 0,key:p({columnIndex:$,data:f,rowIndex:T}),rowIndex:T,style:this._getItemStyle(T,$)}));var Q=a(this.props,this._instanceProps),R=s(this.props,this._instanceProps);return(0,c.createElement)(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:tT({position:"relative",height:o,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},O)},(0,c.createElement)(u||d||"div",{children:C,ref:l,style:{height:Q,pointerEvents:w?"none":void 0,width:R}}))},O._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[3],c=this._getVerticalRangeToRender(),d=c[0],f=c[1],h=c[2],p=c[3];this._callOnItemsRendered(a,s,d,f,l,u,h,p)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,O=m.scrollTop,y=m.scrollUpdateWasRequested,b=m.verticalScrollDirection;this._callOnScroll(v,O,g,b,y)}},O._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,f=n||o||a||1;if(0===t||0===s)return[0,0,0,0];var h=r(this.props,d,this._instanceProps),p=i(this.props,h,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,f),g=c&&"forward"!==u?1:Math.max(1,f);return[Math.max(0,h-m),Math.max(0,Math.min(t-1,p+g)),h,p]},O._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)return[0,0,0,0];var d=h(this.props,u,this._instanceProps),f=p(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(o-1,f+g)),d,f]},t}(c.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var xK=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},_K=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},SK=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},PK=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},EK=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?CK(e,t,n,o,0,r):TK(e,t,n,Math.max(0,o),r)},CK=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=PK(e,t,a,n).offset;if(s===o)return a;so&&(r=a-1)}return i>0?i-1:0},TK=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return i>=d&&i<=c?i:d>c||ic.createElement("div",{className:$G.content},e);var jK=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))}));function DK(){return DK=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const l=pz(JM),u=Sz(e,i,o,null!=a?a:l);return We(e)?c.createElement(jK,{className:qD(MK.root,MK.empty,n)}):c.createElement("img",{key:"image",role:"presentation",src:u,alt:t,"data-testid":null!=s?s:"image",className:qD(MK.root,n),style:r})},zK=({collection:e,field:t})=>n=>c.createElement(IK,DK({},n,{collection:e,field:t})),WK=IK,NK=({image:e,width:t,height:n,alt:r="",collection:i,field:o,entry:a})=>c.createElement(WK,{className:$G.media,style:{width:t?`${t}px`:void 0,height:n?`${n}px`:void 0},src:e,alt:r,collection:i,field:o,entry:a});function LK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FK(e){for(var t=1;te.name===s));return l?[l.name,FK(FK({},l),{},{name:`${n}`})]:["",l]}function YK(e){var t;const n=ZK(e),r=null!==(t=e[XK])&&void 0!==t?t:[];return e=>{const t=e[n];return r.find((e=>e.name===t))}}function ZK(e){return qK in e&&e[qK]||BK}function GK(e,t){var n;const r=ZK(e),i=null!==(n=null==t?void 0:t[r])&&void 0!==n?n:{};let o;return o=i?`Error: item has illegal '${r}' property: '${i}'`:`Error: item has no '${r}' property`,o}const HK=["previewComponent"],KK=e=>{let{previewComponent:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;re.name===n));if(!u)return null;const d=null==s?void 0:s[u.name];let f=u;"fields"in u&&u.fields?f=eJ(eJ({},f),{},{renderedFields:iJ(e,t,r,i,o,u.fields,d)}):"types"in u&&u.types&&(f=eJ(eJ({},f),{},{renderedFields:oJ(e,t,u,i,o,d)}));const h=Object.entries(o).filter((([e])=>mx(t,e)===f)).map((([,e])=>e))[0];let p=d;if(h)p=h.defaultPreview(ze(d)?"":String(d));else if(d&&f.widget&&-1!==["string","text","number"].indexOf(f.widget)&&d.toString().length<50){var m;p=c.createElement("div",{key:u.name},c.createElement(c.Fragment,null,c.createElement("strong",{className:nJ.label},null!==(m=u.label)&&void 0!==m?m:u.name,":"),d))}return p?function(e,t,n,r,i,o=null){if(!t.widget)return null;const a=PE(t.widget),s=o?t.name+"_"+o:t.name;if("hidden"===t.widget||!a.preview)return null;const l=function(e){return(0,c.isValidElement)(e)}(r)||function(e){return e.type?e.type===c.Fragment:e===c.Fragment}(r)?r:a.converters.deserialize(r&&"object"==typeof r&&!Array.isArray(r)&&t.name in r?r[t.name]:r,t);return a.preview?c.createElement(KK,{previewComponent:a.preview,key:s,field:t,config:e,collection:n,value:l,entry:i}):null}(e,f,t,p,i,l):null}function iJ(e,t,n,r,i,o,a){return Array.isArray(a)?a.flatMap((a=>aJ(e,t,n,r,i,o,a))):aJ(e,t,n,r,i,o,a)}function oJ(e,t,n,r,i,o){return null==o?void 0:o.flatMap(((o,a)=>{const[s,l]=VK(n,null!=o?o:{},a);return l?aJ(e,t,l.fields,r,i,l.fields,o,a):null})).filter(Boolean)}function aJ(e,t,n,r,i,o,a,s=null){return o.map((l=>rJ(e,t,l.name,n,r,i,o,a,s))).filter((e=>Boolean(e)))}function sJ(e,t,n,r,i=r.data){const o=function(e){return(0,c.useMemo)((()=>{const t=jP(e,"title"),n=jP(e,"shortTitle"),r=jP(e,"author"),i={};return t&&(i[t]=Qo.title),n&&(i[n]=Qo.shortTitle),r&&(i[r]=Qo.author),i}),[e])}(t),a=(0,c.useCallback)((a=>e?rJ(e,t,a,n,r,o,n,i):null),[t,e,i,r,n,o]),s=(0,c.useCallback)((i=>{var a,s;if(!e)return{data:null,widgets:{}};const l=n.find((e=>e.name===i));if(!l||!("fields"in l))return{data:null,widgets:{}};const u=null===(a=r.data)||void 0===a?void 0:a[l.name],d=l&&"fields"in l&&null!==(s=l.fields)&&void 0!==s?s:[];if("list"===l.widget||Array.isArray(u)){let i;return i=!u||"object"!=typeof u||u instanceof Date?[]:Array.isArray(u)?u:[u],i.filter((e=>"object"==typeof e)).map((i=>{const a=d.reduce(((a,s,l)=>(a[s.name]=c.createElement("div",{key:l},rJ(e,t,s.name,n,r,o,d,i,l)),a)),{});return{data:i,widgets:a}}))}return"object"!=typeof u||u instanceof Date?{data:{},widgets:{}}:{data:u,widgets:d.reduce(((i,a,s)=>(i[a.name]=c.createElement("div",{key:s},rJ(e,t,a.name,n,r,o,d,u,s)),i)),{})}}),[t,e,r,n,o]);return{widgetFor:a,widgetsFor:s}}const lJ=UD("Pill",["root","no-wrap","primary","default","info","warning","error","success","disabled"]),uJ=({children:e,noWrap:t,className:n,disabled:r=!1,color:i="default"})=>c.createElement("span",{className:qD(n,lJ.root,t&&lJ["no-wrap"],r&&lJ.disabled,lJ[i])},e),cJ=({status:e,className:t})=>{const n=LD(),[r,i]=(0,c.useMemo)((()=>{switch(e){case De.DRAFT:return[n("editor.editorToolbar.draft"),"info"];case De.PENDING_REVIEW:return[n("editor.editorToolbar.inReview"),"warning"];case De.PENDING_PUBLISH:return[n("editor.editorToolbar.ready"),"success"];default:return[n("editor.editorToolbar.published"),"default"]}}),[e,n]);return c.createElement(uJ,{color:i,className:t},r)},dJ=UD("EntryCard",["root","no-margin","content-wrapper","content","card","card-content","summary-wrapper","summary","description","date","local-backup-icon","workflow-status"]),fJ=({collection:e,entry:t,imageFieldName:n,descriptionFieldName:r,dateFieldName:i,dateFormats:o,noMargin:a=!1,backTo:s,children:l,useWorkflow:u})=>{const d=LD(),f=t.data,h=(0,c.useMemo)((()=>`/collections/${e.name}/entries/${t.slug}${s?`?backTo=${s}`:""}`),[s,e.name,t.slug]),p=(0,c.useMemo)((()=>{var t;return"fields"in e?null===(t=e.fields)||void 0===t?void 0:t.find((e=>e.name===n&&"image"===e.widget)):void 0}),[e,n]),m=(0,c.useMemo)((()=>{let e=n?null==f?void 0:f[n]:void 0;return e&&(e=e.trim()),e}),[f,n]),g=(0,c.useMemo)((()=>{let e=r?null==f?void 0:f[r]:void 0;return e&&(e=e.trim()),e}),[f,r]),v=(0,c.useMemo)((()=>{let e=i?null==f?void 0:f[i]:void 0;if(e&&o){const t=ls(e,o.storageFormat,new Date);isNaN(t.getTime())||(e=Ta(t,o.displayFormat))}return e}),[i,f,o]),O=(0,c.useMemo)((()=>PP(e,t)),[e,t]),y=(0,c.useMemo)((()=>IP(e,t.slug)),[e,t.slug]),b=pz(dC),{widgetFor:w,widgetsFor:k}=sJ(b,e,y,t),x=(0,c.useMemo)((()=>SP(e,t.slug)),[e,t.slug]),_=(0,c.useMemo)((()=>{var e,t;return null!==(e=null===(t=wE(x))||void 0===t?void 0:t.component)&&void 0!==e?e:null}),[x]),[S,P]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{if(null!=b&&b.disable_local_backup)return;let n=!0;const r=async()=>{const r=LE(e.name,t.slug),i=await ZS.getItem(r);n&&P(Boolean(i))};return r(),setTimeout((()=>{r()}),250),()=>{n=!1}}),[e.name,null==b?void 0:b.disable_local_backup,t.slug]),_?c.createElement("div",{className:qD(dJ.root,a&&dJ["no-margin"])},c.createElement("div",{className:dJ["content-wrapper"]},c.createElement("div",{className:dJ.content},c.createElement(QG,null,c.createElement(AG,{to:h},c.createElement(_,{collection:e,fields:y,entry:t,widgetFor:w,widgetsFor:k,hasLocalBackup:S})),l)))):c.createElement("div",{className:qD(dJ.root,a&&dJ["no-margin"])},c.createElement("div",{className:dJ["content-wrapper"]},c.createElement("div",{className:dJ.content},c.createElement(QG,{className:dJ.card,title:O},c.createElement(AG,{to:h},m&&p?c.createElement(NK,{height:"140",image:m,collection:e,field:p,entry:t}):null,c.createElement(AK,null,c.createElement("div",{className:dJ["card-content"]},c.createElement("div",{className:dJ["summary-wrapper"]},c.createElement("div",{className:dJ.summary},O),S?c.createElement(RK,{className:dJ["local-backup-icon"],title:d("ui.localBackup.hasLocalBackup")}):null,u?c.createElement(cJ,{status:t.status,className:dJ["workflow-status"]}):null),g?c.createElement("div",{className:dJ.description},g):null,v?c.createElement("div",{className:dJ.date},String(v)):null))),l))))};function hJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pJ(e){for(var t=1;t{const s=(0,c.useMemo)((()=>{var e;return parseFloat(`${"number"==typeof n.left?null!==(e=n.left)&&void 0!==e?e:10*t:n.left}`)+4}),[t,n.left]),l=(0,c.useMemo)((()=>{var e;return parseFloat(`${"number"==typeof n.top?null!==(e=n.top)&&void 0!==e?e:0:n.top}`)+4}),[n.top]),u=e*r+t;if(u>=o.length)return null;const d=o[u],f=u{const r=LD(),i=pz(vC),[o,a]=(0,c.useState)(0),s=(0,c.useCallback)((()=>{a((e=>e+1))}),[]),l=(0,c.useCallback)((e=>{var t,n;return null!==(t=null===(n=wE(SP(e.collection,e.entry.slug)))||void 0===n?void 0:n.getHeight)&&void 0!==t?t:null}),[]),u=(0,c.useCallback)((e=>{const t=Ie(null==e?void 0:e.imageFieldName)?204:56;return Ie(null==e?void 0:e.dateFieldName)?t+24:t}),[]),[d,f]=(0,c.useState)([]),h=(0,c.useMemo)((()=>{const t=[...d],n=t.length,r=e.length;for(let i=n;i{h.length!==d.length&&f(h)}),[h,d.length]),c.createElement("div",{className:rK["entry-listing-cards"]},c.createElement(dK,{onResize:s},(({height:a=0,width:s=0})=>{const l=s-4,d=Math.max(Math.floor(l/250),1),f=1/d*((l-10*d)/l),p=Math.ceil(e.length/d);return c.createElement("div",{key:o,className:rK["entry-listing-cards-grid-wrapper"],style:{width:l,height:a}},c.createElement(QK,{columnCount:d,columnWidth:e=>e+1===d?l*f:l*f+10,rowCount:p,rowHeight:e=>{const t=(e+1)*d-1;let n=0;for(let r=e*d;r<=t&&!(h.length<=r);r++)h[r]>n&&h[r]&&(n=h[r]+20);return 0===n&&(n=u()+20),n},width:l,height:a,itemData:{entryData:e,cardHeights:h,columnCount:d,useWorkflow:i,t:r},outerRef:t,onScroll:n,className:qD(rK["entry-listing-cards-grid"],"CMS_Scrollbar_root"),style:{position:"unset"},overscanRowCount:5},gJ))})))},OJ=({entryData:e,canLoadMore:t,isLoadingEntries:n,onLoadMore:r})=>{const i=LD(),o=(0,c.useRef)(null),a=pz(bG),s=(0,c.useCallback)(((e,n,i)=>{Ie(e)&&Ie(n)&&Ie(i)&&e-n-i<300&&!a&&t&&r()}),[a,t,r]),l=(0,c.useCallback)((()=>{var e;const{scrollHeight:t,scrollTop:n,clientHeight:r}=null!==(e=o.current)&&void 0!==e?e:{};s(t,n,r)}),[s]);return(0,c.useEffect)((()=>{const e=setInterval((()=>{l()}),100);return()=>{clearInterval(e)}}),[l]),c.createElement("div",{className:rK["entry-listing-grid"]},c.createElement("div",{ref:o,className:rK["entry-listing-grid-container"]},c.createElement(vJ,{key:"grid",entryData:e,scrollContainerRef:o,onScroll:l})),n?c.createElement("div",{key:"loading",className:rK["entry-listing-loading"]},i("collection.entries.loadingEntries")):null)};function yJ(){return yJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;o--){var a=e[o];if(!r.has(a.lane)){var s=i.get(a.lane);if(null==s||a.end>s.end?i.set(a.lane,a):a.end0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0;t.pendingMeasuredCacheIndexes=[];for(var l=t.measurementsCache.slice(0,s),u=s;u0&&n>0?function(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,i=t.length-1,o=$J(0,i,(function(e){return t[e].start}),r),a=o;a=t.scrollOffset+r?"end":"start"),"start"===n||("end"===n?e-=r:"center"===n&&(e-=r/2));var i=t.options.horizontal?"scrollWidth":"scrollHeight",o=(t.scrollElement?"document"in t.scrollElement?t.scrollElement.document.documentElement[i]:t.scrollElement[i]:0)-t.getSize();return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=function(e,n){void 0===n&&(n="auto"),e=Math.max(0,Math.min(e,t.options.count-1));var r=kJ(t.getMeasurements()[e]);if("auto"===n)if(r.end>=t.scrollOffset+t.getSize()-t.options.scrollPaddingEnd)n="end";else{if(!(r.start<=t.scrollOffset+t.options.scrollPaddingStart))return[t.scrollOffset,n];n="start"}var i="end"===n?r.end+t.options.scrollPaddingEnd:r.start-t.options.scrollPaddingStart;return[t.getOffsetForAlignment(i,n),n]},this.isDynamicMode=function(){return t.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==t.scrollToIndexTimeoutId&&(clearTimeout(t.scrollToIndexTimeoutId),t.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,n){var r=void 0===n?{}:n,i=r.align,o=void 0===i?"start":i,a=r.behavior;t.cancelScrollToIndex(),"smooth"===a&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.getOffsetForAlignment(e,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=function(e,n){var r=void 0===n?{}:n,i=r.align,o=void 0===i?"auto":i,a=r.behavior;e=Math.max(0,Math.min(e,t.options.count-1)),t.cancelScrollToIndex(),"smooth"===a&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var s=t.getOffsetForIndex(e,o),l=s[0],u=s[1];t._scrollToOffset(l,{adjustments:void 0,behavior:a}),"smooth"!==a&&t.isDynamicMode()&&(t.scrollToIndexTimeoutId=setTimeout((function(){t.scrollToIndexTimeoutId=null,t.measureElementCache.has(t.options.getItemKey(e))&&function(e,t){return Math.abs(e-t)<1}(t.getOffsetForIndex(e,u)[0],t.scrollOffset)||t.scrollToIndex(e,{align:u,behavior:a})})))},this.scrollBy=function(e,n){var r=(void 0===n?{}:n).behavior;t.cancelScrollToIndex(),"smooth"===r&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.scrollOffset+e,{adjustments:void 0,behavior:r})},this.getTotalSize=function(){var e;return((null==(e=t.getMeasurements()[t.options.count-1])?void 0:e.end)||t.options.paddingStart)-t.options.scrollMargin+t.options.paddingEnd},this._scrollToOffset=function(e,n){var r=n.adjustments,i=n.behavior;t.options.scrollToFn(e,{behavior:i,adjustments:r},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},$J=function(e,t,n,r){for(;e<=t;){var i=(e+t)/2|0,o=n(i);if(or))return i;t=i-1}}return e>0?e-1:0},QJ="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;const RJ=UD("Table",["root","table","header","header-row","header-cell","header-cell-content","body","body-row","body-cell","body-cell-has-link","body-cell-emphasis","body-cell-shrink","body-cell-content","body-cell-link"]),AJ=({children:e})=>c.createElement("th",{scope:"col",className:RJ["header-cell"]},c.createElement("div",{className:RJ["header-cell-content"]},"string"==typeof e&&We(e)?c.createElement(c.Fragment,null," "):e)),jJ=({columns:e,children:t})=>c.createElement("div",{className:RJ.root},c.createElement("table",{className:RJ.table},c.createElement("thead",{className:RJ.header},c.createElement("tr",{className:RJ["header-row"]},e.map(((e,t)=>c.createElement(AJ,{key:t},e))))),c.createElement("tbody",{className:RJ.body},t))),DJ=({children:e,emphasis:t=!1,to:n,shrink:r=!1})=>{const i=(0,c.useMemo)((()=>n?c.createElement(NT,{to:n,className:RJ["body-cell-link"],tabIndex:-1},e):e),[e,n]);return c.createElement("td",{className:qD(RJ["body-cell"],n&&RJ["body-cell-has-link"],t&&RJ["body-cell-emphasis"],r&&RJ["body-cell-shrink"])},c.createElement("div",{className:RJ["body-cell-content"]},i))},MJ=({children:e,className:t,to:n})=>{const r=ne(),i=(0,c.useCallback)((e=>{n&&("Enter"!==e.key&&"Space"!==e.key||r(n))}),[r,n]);return c.createElement("tr",{className:qD(RJ["body-row"],t),tabIndex:n?0:-1,onKeyDown:i},e)};function IJ(e,t,n,r){const i=null!=n&&null!=e.i18n&&null!=e.i18n[n]?e.i18n[n].data:e.data;if(Dx(t).length<=0)return Ee()(i,t);const o=Mx(e.path,i);return jx(t,null,e.slug,o,r)}function zJ(e,t,n,r){const i=t.value_field,o=t.display_fields||[t.value_field];return e.reduce(((e,t)=>{const a=Rx({data:t.data,path:i});for(let i=0;i{var o,a;const l=Rx({data:t.data,path:e}),u=null!==(o=l[i])&&void 0!==o?o:l[0];return ze(u)||We(u)?s:IJ(t,null!==(a=l[i])&&void 0!==a?a:l[0],n,r)})).join(" ");e.push({data:t.data,value:s,label:l})}return e}),[])}function WJ(e,t,n){if(n&&Array.isArray(e)){const n=function(e){return e&&Array.isArray(e)?e:null}(e);if(null===n)return null;const r=n.map((e=>t.find((t=>t.value===e)))).filter(Boolean).map((e=>"string"==typeof e?e:null==e?void 0:e.value));return r}var r,i;return null!==(r=null===(i=t.find((t=>t.value===e)))||void 0===i?void 0:i.value)&&void 0!==r?r:null}const NJ=UD("WidgetRelation",["root","error","required","disabled","for-single-list","values","loading"]),LJ=({value:e,field:t,locale:n,entry:r})=>{var i;const[o,a]=(0,c.useState)([]),s=pz((e=>tI(e,t.collection))),l=(0,c.useMemo)((()=>IP(s,r.slug)),[r.slug,s]),u=(0,c.useMemo)((()=>{var e;return null!==(e=t.multiple)&&void 0!==e&&e}),[t.multiple]),[d,f]=(0,c.useState)(null),h=(0,c.useMemo)((()=>!d),[d]),p=pz(dC);(0,c.useEffect)((()=>{h&&s&&p&&(async()=>{const r=DC(p),i=await r.listAllEntries(s,p);f(i);const o=zJ(i,t,n,l).reduce(((e,t)=>(e[t.value]=t,e)),{}),u=Array.isArray(e)?e.filter((e=>e&&String(e)in o)):String(e)in o?[e]:[],c=u.map((e=>o[String(e)]));a(c)})()}),[s,p,h,t,n,l]);const m=(0,c.useMemo)((()=>o.reduce(((e,t)=>(e[t.value]=t,e)),{})),[o]),g=(0,c.useMemo)((()=>{let t=WJ(e,o,u);return u&&!t&&(t=[]),t}),[u,o,e]);return c.createElement("span",null,Array.isArray(g)?c.createElement("div",{className:NJ.values},g.map((e=>{var t;const n=m[String(e)];return c.createElement(uJ,{key:String(e),noWrap:!0},null!==(t=null==n?void 0:n.label)&&void 0!==t?t:e)}))):g?null!==(i=m[String(g)].label)&&void 0!==i?i:String(g):String(e))},FJ=({collection:e,entry:t,collectionLabel:n,columnFields:r,t:i})=>{var o;const a=(0,c.useMemo)((()=>`/collections/${e.name}/entries/${t.slug}`),[e.name,t.slug]),{default_locale:s}=null!==(o=(0,c.useMemo)((()=>Kk(e)),[e]))&&void 0!==o?o:{},l=(0,c.useMemo)((()=>PP(e,t)),[e,t]),u=(0,c.useMemo)((()=>IP(e,t.slug)),[e,t.slug]),d=pz(dC),f=pz(vC),h=(0,c.useMemo)((()=>SP(e,t.slug)),[e,t.slug]),[p,m]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{if(null!=d&&d.disable_local_backup)return;let n=!0;const r=async()=>{const r=LE(e.name,t.slug),i=await ZS.getItem(r);n&&m(Boolean(i))};return r(),setTimeout((()=>{r()}),250),()=>{n=!1}}),[e.name,null==d?void 0:d.disable_local_backup,t.slug]),c.createElement(MJ,{className:rK["entry-listing-table-row"],to:a},n?c.createElement(DJ,{key:"collectionLabel",to:a},n):null,r.map((n=>{if("summary"===n)return c.createElement(DJ,{key:n,to:a},l);const r=u.find((e=>e.name===n)),i=Ee()(t.data,n),o=kE(h,n);return c.createElement(DJ,{key:n,to:a},r&&o?c.createElement(o,{collection:e,field:r,value:i}):ze(i)?"":"relation"===(null==r?void 0:r.widget)?c.createElement(LJ,{field:r,value:i,locale:s,entry:t}):String(i))})),c.createElement(DJ,{key:"unsavedChanges",to:a,shrink:!0},p?c.createElement(RK,{className:rK["entry-listing-local-backup"],title:i("ui.localBackup.hasLocalBackup")}):null),f?c.createElement(DJ,{key:"status",to:a,shrink:!0},c.createElement(cJ,{status:t.status})):null)},UJ=({isSingleCollectionInList:e,entryData:t,summaryFields:n,canLoadMore:r,isLoadingEntries:i,loadNext:o})=>{var a;const s=LD(),l=pz(bG),u=(0,c.useRef)(null),d=(f={getScrollElement:()=>u.current,count:t.length,overscan:10,estimateSize:()=>45},function(e){var t=c.useReducer((function(){return{}}),{})[1],n=yJ({},e,{onChange:function(n,r){r?(0,NC.flushSync)(t):t(),null==e.onChange||e.onChange(n,r)}}),r=c.useState((function(){return new TJ(n)}))[0];return r.setOptions(n),c.useEffect((function(){return r._didMount()}),[]),QJ((function(){return r._willUpdate()})),r}(yJ({observeElementRect:SJ,observeElementOffset:PJ,scrollToFn:CJ},f)));var f;const h=d.getVirtualItems(),p=(0,c.useMemo)((()=>{var e;return h.length>0&&(null==h||null===(e=h[0])||void 0===e?void 0:e.start)||0}),[h]),m=(0,c.useMemo)((()=>{var e;return h.length>0?d.getTotalSize()-((null==h||null===(e=h[h.length-1])||void 0===e?void 0:e.end)||0):0}),[d,h]),g=(0,c.useCallback)(((e,t,n)=>{Ie(e)&&Ie(t)&&Ie(n)&&e-t-n<300&&!l&&r&&o()}),[l,r,o]),{scrollHeight:v,scrollTop:O,clientHeight:y}=null!==(a=u.current)&&void 0!==a?a:{};(0,c.useEffect)((()=>{g(v,O,y)}),[y,g,v,O]);const b=pz(vC),w=(0,c.useMemo)((()=>{const t=[...n.map((e=>e.label)),""];return e||t.unshift(s("collection.table.collection")),b&&t.push(""),t}),[e,n,s,b]),k=(0,c.useMemo)((()=>[...n.map((e=>e.name))]),[n]);return c.createElement("div",{className:rK["entry-listing-table"]},c.createElement("div",{ref:u,className:qD(rK["entry-listing-table-content"],"CMS_Scrollbar_root","CMS_Scrollbar_secondary")},c.createElement(jJ,{columns:w},p>0&&c.createElement("tr",null,c.createElement("td",{style:{height:`${p}px`}})),d.getVirtualItems().map((e=>{const n=t[e.index];return c.createElement(FJ,{key:e.index,collection:n.collection,collectionLabel:n.collectionLabel,entry:n.entry,columnFields:k,t:s})})),m>0&&c.createElement("tr",null,c.createElement("td",{style:{height:`${m}px`}})))),i?c.createElement("div",{key:"loading",className:rK["entry-listing-loading"]},s("collection.entries.loadingEntries")):null)},XJ=["entries","cursor","viewStyle","isLoadingEntries","filterTerm","handleCursorActions"],qJ=e=>{let{entries:t,cursor:n,viewStyle:r,isLoadingEntries:i,filterTerm:o,handleCursorActions:a}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var e;return null==n||null===(e=n.actions)||void 0===e?void 0:e.has("append_next")}),[null==n?void 0:n.actions]),d=(0,c.useCallback)((()=>{u&&(null==a||a("append_next"))}),[a,u]),f=(0,c.useCallback)((e=>DP(e)),[]),h=(0,c.useMemo)((()=>!("collections"in s)||1===Object.keys(s.collections).length),[s]),p=(0,c.useMemo)((()=>{const e=[{name:"summary",label:l("collection.table.summary")}];if(!h)return e;if(!("collection"in s)||ze(s.collection.summary_fields))return e;const t=s.collection.summary_fields,n=IP(s.collection).reduce(((e,t)=>(e[t.name]=t,e)),{});return t.map((e=>{var t;const r=n[e];return{name:e,label:r?null!==(t=r.label)&&void 0!==t?t:Fe(r.name):Fe(e)}}))}),[h,s,l]),m=(0,c.useMemo)((()=>{if("collection"in s){var e;const n=f(s.collection),i="fields"in s.collection?null===(e=s.collection.fields)||void 0===e?void 0:e.find((e=>e.name===n.date&&"datetime"===e.widget)):void 0,o=$O(i);return t.map((e=>({collection:s.collection,imageFieldName:n.image,descriptionFieldName:n.description,dateFieldName:n.date,dateFormats:o,viewStyle:r,entry:e,key:e.slug})))}return t.map((e=>{var t;const n=e.collection,i=Object.values(s.collections).find((e=>e.name===n)),o=f(i),a=i&&"fields"in i?null===(t=i.fields)||void 0===t?void 0:t.find((e=>e.name===o.date&&"datetime"===e.widget)):void 0,l=$O(a),u=h||null==i?void 0:i.label;return i?{collection:i,entry:e,imageFieldName:o.image,descriptionFieldName:o.description,dateFieldName:o.date,dateFormats:l,viewStyle:r,collectionLabel:u,key:e.slug}:null})).filter((e=>e))}),[t,f,h,s,r]);return r===xH?c.createElement("div",{className:rK["entry-listing"]},c.createElement(UJ,{key:"table",entryData:m,isSingleCollectionInList:h,summaryFields:p,loadNext:d,canLoadMore:Boolean(u&&d),isLoadingEntries:i})):c.createElement(OJ,{key:"collection"in s?s.collection.name:`search-grid-${o}`,entryData:m,onLoadMore:d,canLoadMore:Boolean(u&&d),isLoadingEntries:i})},BJ=["entries","isFetching","viewStyle","cursor","filterTerm","handleCursorActions","page"],VJ=e=>{var t;let{entries:n,isFetching:r,viewStyle:i,cursor:o,filterTerm:a,handleCursorActions:s,page:l}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r[d("collection.entries.loadingEntries"),d("collection.entries.cachingEntries"),d("collection.entries.longerLoading")]),[d]);return r&&void 0===l?c.createElement(nK,null,f):n&&n.length>0||(null==o||null===(t=o.actions)||void 0===t?void 0:t.has("append_next"))?"collection"in u?c.createElement(qJ,{key:"collection-listing",collection:u.collection,entries:n,viewStyle:i,cursor:o,handleCursorActions:s,page:l,isLoadingEntries:r&&void 0!==l&&n.length>0,filterTerm:a}):c.createElement(qJ,{key:"search-listing",collections:u.collections,entries:n,viewStyle:i,cursor:o,handleCursorActions:s,page:l,isLoadingEntries:r&&void 0!==l&&n.length>0,filterTerm:a}):c.createElement("div",{className:rK["no-entries"]},d("collection.entries.noEntries"))};function YJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZJ(e){for(var t=1;tt.has(e.path)))}const KJ=xT((function(e,t){var n;const{collection:r,viewStyle:i,filterTerm:o}=t,a=null===(n=e.entries.pages[r.name])||void 0===n?void 0:n.page,s=DD(e,r.name),l=MD(e,r.name),u=xD(e,r.name),c=j_.create(u).clearData();return ZJ(ZJ({},t),{},{page:a,filterTerm:o,entriesLoaded:s,isFetching:l,viewStyle:i,cursor:c})}),{}),JJ=KJ((({collection:e,filterTerm:t,isFetching:n,viewStyle:r,cursor:i,page:o,entriesLoaded:a})=>{const s=LD(),l=hz(),[u,d]=(0,c.useState)(e),f=function(e){const t=mz(e),n=pz((t=>PD(t,e)));return(0,c.useMemo)((()=>{if(void 0===n)return[];let e={};const r=AO()(t,(t=>{const r=function(e,t){const n=t.label,r=t.field,i=Ee()(e.data,r);if(void 0===i)return{id:"missing_value",label:n,value:i};const o=String(i);if(t.pattern){const e=t.pattern;let i="";try{const t=new RegExp(e),n=o.match(t);n&&(i=n[0])}catch(t){console.warn(`[StaticCMS] Invalid view group pattern '${e}' for field '${r}'`,t)}return{id:`${n}${i}`,label:n,value:i}}return{id:`${n}${i}`,label:n,value:"boolean"==typeof i?i:o}}(t,n);return e=HH(HH({},e),{},{[r.id]:r}),r.id})),i=Object.entries(r).map((([t,n])=>HH(HH({},e[t]),{},{paths:new Set(n.map((e=>e.path)))})));return i}),[t,n])}(e.name),h=yz(e),p=pz(vC),m=(0,c.useMemo)((()=>{if("nested"in e){var n;const r=null!==(n=e.folder)&&void 0!==n?n:"";return function(e,t,n){return n.filter((n=>{const r=n.path.slice(t.length+1);return!!r.startsWith(e)&&(e?2===r.slice(e.length+1).split("/").length:r.split("/").length<=2)}))}(t||"",r,h)}return h}),[e,h,t]);(0,c.useEffect)((()=>{e&&!a&&u!==e&&l(qI(e)),d(e)}),[e,l,a,u,p]);const g=(0,c.useCallback)((t=>{l(BI(e,t))}),[e,l]),[v,O]=(0,c.useState)(0),y=(0,c.useCallback)((e=>()=>{O(e)}),[]);return f&&f.length>0?c.createElement(c.Fragment,null,c.createElement("div",{className:rK.group},c.createElement("div",{className:rK["group-content-wrapper"]},c.createElement("div",{className:qD(rK["group-content"],"CMS_Scrollbar_hide")},f.map(((e,t)=>{const n=function(e,t){const{label:n,value:r}=e;return void 0===r?t("collection.groups.other"):"boolean"==typeof r?r?n:t("collection.groups.negateLabel",{label:n}):`${n} ${r}`.trim()}(e,s);return c.createElement(GD,{key:t,variant:t===v?"contained":"text",onClick:y(t),className:rK["group-button"],"aria-label":`group by ${n}`,"data-testid":`group-by-${n}`},n)}))))),c.createElement(VJ,{key:`entries-with-group-${f[v].id}`,collection:e,entries:HJ(m,f[v].paths),isFetching:n,viewStyle:r,cursor:i,handleCursorActions:g,page:o,filterTerm:t})):c.createElement(VJ,{key:"entries-without-group",collection:e,entries:m,isFetching:n,viewStyle:r,cursor:i,handleCursorActions:g,page:o,filterTerm:t})}));function e0(e){return{type:dQ,payload:{error:e}}}const t0={searchEntries:function(e,t,n=0){return async(r,i)=>{const o=i(),{search:a}=o,s=o.config;if(!s.config)return;const l=DC(s.config),u=t||Object.keys(o.collections);if(!a.isFetching||a.term!==e||!tP()(u,a.collections)){r(function(e,t,n){return{type:aQ,payload:{searchTerm:e,searchCollections:t,page:n}}}(e,u,n));try{const t=await l.search(Object.entries(o.collections).filter((([e,t])=>-1!==u.indexOf(e))).map((([e,t])=>t)),e,s.config);return r(function(e,t){return{type:sQ,payload:{entries:e,page:t}}}(t.entries,n))}catch(e){if(console.error(e),e instanceof Error)return r(function(e){return{type:lQ,payload:{error:e}}}(e))}}}},clearSearch:function(){return{type:fQ}}},n0=xT((function(e,t){const{searchTerm:n,filterTerm:r,collections:i,viewStyle:o}=t,a=Object.keys(i);return{isFetching:e.search.isFetching,page:e.search.page,collections:i,viewStyle:o,entries:ID(e,a),searchTerm:n,filterTerm:r}}),t0)((({collections:e,entries:t,isFetching:n,page:r,searchTerm:i,filterTerm:o,viewStyle:a,searchEntries:s,clearSearch:l})=>{const u=(0,c.useMemo)((()=>Object.keys(e)),[e]),d=(0,c.useCallback)((()=>j_.create({actions:Number.isNaN(r)?[]:["append_next"]})),[r]);(0,c.useEffect)((()=>()=>{l()}),[]);const[f,h]=(0,c.useState)(""),[p,m]=(0,c.useState)([]);return(0,c.useEffect)((()=>{f===i&&tP()(p,u)||(h(i),m(u),setTimeout((()=>{s(i,u)})))}),[u,p,f,i]),c.createElement(VJ,{cursor:d(),collections:e,entries:t,isFetching:n,viewStyle:a,filterTerm:o})})),r0=({name:e,isSearchResults:t,isSingleSearchResult:n,searchTerm:r="",filterTerm:i=""})=>{var o,a;const s=LD(),l=hz(),u=pz(eI),d=(0,c.useMemo)((()=>e?u[e]:u[0]),[e,u]),f=pz(TD),h=pz((t=>ED(t,e))),p=(0,c.useMemo)((()=>function(e){return null==e?void 0:e.view_filters}(d)),[d]),m=(0,c.useMemo)((()=>function(e){return null==e?void 0:e.view_groups}(d)),[d]),g=(0,c.useMemo)((()=>function(e,t){var n,r;if(!e)return[];const i=(null!==(n=null===(r=e.sortable_fields)||void 0===r?void 0:r.fields)&&void 0!==n?n:[]).map((n=>{if(n===io)return{key:n,field:{name:n,label:t("collection.defaultFields.updatedOn.label")}};const r=mx(e,n);return n!==ro||r?{key:n,field:r}:{key:n,field:{name:n,label:t("collection.defaultFields.author.label")}}})).filter((e=>!!e.field)).map((e=>vP(vP({},e.field),{},{key:e.key})));return i}(d,s)),[d,s]),v=pz((e=>_D(e,null==d?void 0:d.name))),O=pz((e=>SD(e,null==d?void 0:d.name))),y=(0,c.useMemo)((()=>"collection.collectionTop.searchResults"+(n?"InCollection":"")),[n]),b=(0,c.useMemo)((()=>{if(t){let e=u;if(n){const t=Object.values(u).filter((e=>e===d));1===t.length&&(e={[t[0].name]:t[0]})}return c.createElement(n0,{key:"search",collections:e,searchTerm:r,filterTerm:i,viewStyle:f})}return d?c.createElement(JJ,{collection:d,viewStyle:f,filterTerm:i}):null}),[d,u,i,t,n,r,f]),w=(0,c.useCallback)((async(e,t)=>{d&&await l(function(e,t,n=qT){return async(r,i)=>{const o=i(),a=MD(o,e.name);if(r(function(e,t,n){return{type:u$,payload:{collection:e.name,key:t,direction:n}}}(e,t,n)),!a)try{const i=await DI(o,e);r(function(e,t,n,r){return{type:c$,payload:{collection:e.name,key:t,direction:n,entries:r}}}(e,t,n,i))}catch(i){console.error(i),r(function(e,t,n,r){return{type:d$,payload:{collection:e.name,key:t,direction:n,error:r}}}(e,t,n,i))}}}(d,e,t))}),[d,l]),k=(0,c.useCallback)((async e=>{d&&await l(function(e,t){return async(n,r)=>{const i=r(),o=MD(i,e.name);if(n(function(e,t){return{type:f$,payload:{collection:e.name,filter:t}}}(e,t)),!o)try{const r=await DI(i,e);n(function(e,t,n){return{type:h$,payload:{collection:e.name,filter:t,entries:n}}}(e,t,r))}catch(r){n(function(e,t,n){return{type:p$,payload:{collection:e.name,filter:t,error:n}}}(e,t,r))}}}(d,e))}),[d,l]),x=(0,c.useCallback)((async e=>{d&&await l(function(e,t){return async(n,r)=>{const i=r(),o=MD(i,e.name);if(n(function(e,t){return{type:m$,payload:{collection:e.name,group:t}}}(e,t)),!o)try{const r=await DI(i,e);n(function(e,t,n){return{type:g$,payload:{collection:e.name,group:t,entries:n}}}(e,t,r))}catch(r){n({type:v$,payload:{collection:e.name,group:t,error:r}})}}}(d,e))}),[d,l]),_=(0,c.useCallback)((e=>{l(function(e){return{type:D$,payload:{style:e}}}(e))}),[l]),S=null==d?void 0:d.description;return c.createElement("div",{className:bH.root},c.createElement("div",{className:bH.content},t?c.createElement(c.Fragment,null,c.createElement("div",{className:bH["search-query"]},c.createElement("div",null,s(y,{searchTerm:r,collection:null==d?void 0:d.label}))),c.createElement(qH,{viewStyle:f,onChangeViewStyle:_})):c.createElement(c.Fragment,null,d?c.createElement(ZH,{collection:d}):null,c.createElement(qH,{viewStyle:f,onChangeViewStyle:_,sortableFields:g,onSortClick:w,sort:h,viewFilters:null!==(o=null==p?void 0:p.filters)&&void 0!==o?o:[],viewGroups:null!==(a=null==m?void 0:m.groups)&&void 0!==a?a:[],onFilterClick:k,onGroupClick:x,filter:v,group:O}))),S?c.createElement("div",{className:bH.description},c.createElement(QG,{className:bH["description-card"]},S)):null,b)},i0=["name","searchTerm"],o0=["name","searchTerm"];function a0(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const e=re(),{name:t,searchTerm:n}=e,r=a0(e,i0)["*"];return c.createElement(yH,{breadcrumbs:[{name:"Search"}],showQuickCreate:!0,showLeftNav:!0,noScroll:!0,noMargin:!0},c.createElement(r0,{name:t,searchTerm:n,filterTerm:r,isSearchResults:!0,isSingleSearchResult:!1}))},l0=({collection:e,isSearchResults:t,isSingleSearchResult:n})=>{const r=re(),{name:i,searchTerm:o}=r,a=a0(r,o0)["*"],s=iW(e,a);return c.createElement(yH,{breadcrumbs:s,collection:e,showQuickCreate:!0,showLeftNav:!0,noScroll:!0,noMargin:!0},c.createElement(r0,{name:i,searchTerm:o,filterTerm:a,isSearchResults:t,isSingleSearchResult:n}))},u0=({collection:e,isSearchResults:t,isSingleSearchResult:n})=>e?c.createElement(l0,{collection:e,isSearchResults:t,isSingleSearchResult:n}):c.createElement(s0,null),c0=({isSearchResults:e,isSingleSearchResult:t})=>{var n;const{name:r,searchTerm:i}=re(),[o]=XT(),a=o.has("noredirect"),s=pz((e=>tI(e,r))),l=Jz(pz(eI));if(!(i||r&&s))return c.createElement(pe,{to:l});if(s&&"files"in s&&1===(null===(n=s.files)||void 0===n?void 0:n.length)&&!a){const e=window.location.href;return e.includes("noredirect")||window.history.replaceState(null,document.title,`${e}?noredirect`),c.createElement(pe,{to:`/collections/${s.name}/entries/${s.files[0].name}`})}return c.createElement(u0,{collection:s,isSearchResults:e,isSingleSearchResult:t})};var d0;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(d0||(d0={}));var f0="beforeunload";function h0(e){e.preventDefault(),e.returnValue=""}function p0(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function m0(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function g0(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var v0=__webpack_require__(72408),O0=__webpack_require__.n(v0);function y0(e,t){const n=(0,c.useRef)(),r=(0,c.useRef)();function i(){r.current&&clearTimeout(r.current)}return(0,c.useEffect)((()=>i),[]),(0,c.useCallback)((function(...o){n.current=o,i(),r.current=setTimeout((()=>{n.current&&e(...n.current)}),t)}),[e,t])}class b0 extends CustomEvent{constructor(e){super("data:update",{detail:e})}}async function w0(e,t,n,r,i){const o=Ee()(i,e),a=Ee()(r,e);let s=fE()(r);if(!tP()(o,a)){const r=e.join(".");s=await RE({name:"change",collection:t,fieldName:n.name,field:r,data:s});const i=Ee()(s,e);window.dispatchEvent(new b0({field:n.name,fieldPath:`${t}.${r}`,value:i}))}if("fields"in n&&n.fields)for(const r of n.fields)s=await w0([...e,r.name],t,r,s,i);return s}const k0=e=>e.scroll.isScrolling;var x0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}))}));x0.displayName="ArrowUpward";var _0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"}))}));_0.displayName="CreateNewFolder";var S0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}))}));S0.displayName="FolderOpen";var P0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}))}));P0.displayName="Home";var E0=__webpack_require__(96368),C0=__webpack_require__.n(E0);function T0(e){const[{dragOverActive:t},n]=(0,c.useState)({dragOverActive:!1,counter:0}),r=(0,c.useCallback)((e=>{e.preventDefault(),n((e=>({dragOverActive:!0,counter:e.counter+1})))}),[]),i=(0,c.useCallback)((e=>{e.preventDefault()}),[]),o=(0,c.useCallback)((e=>{e.preventDefault(),n((e=>({dragOverActive:!(e.counter-1<=0)&&e.dragOverActive,counter:e.counter-1})))}),[]),a=(0,c.useCallback)((t=>{t.preventDefault(),n({dragOverActive:!1,counter:0}),e(t)}),[e]);return(0,c.useMemo)((()=>({dragOverActive:t,handleDragEnter:r,handleDragOver:i,handleDragLeave:o,handleDrop:a})),[t,r,o,i,a])}class $0 extends CustomEvent{constructor(){super("mediaLibraryClose",{})}}const Q0=UD("InlineEditTextField",["root","editable","label","preview","input"]),R0=({label:e,placeholder:t,value:n,onChange:r})=>{const[i,o]=(0,c.useState)(null!=n?n:"");(0,c.useEffect)((()=>{o(null!=n?n:"")}),[n]);const[a,s]=(0,c.useState)(!1),l=(0,c.useRef)(null),u=(0,c.useCallback)((()=>{r&&(s(!0),setTimeout((()=>{var e;null===(e=l.current)||void 0===e||e.focus()}),10))}),[r]),d=(0,c.useCallback)((()=>{r&&(s(!1),i!==n&&r(i))}),[i,r,n]),f=(0,c.useCallback)((()=>{d()}),[d]),h=(0,c.useCallback)((e=>{"Enter"===e.key&&d()}),[d]),p=(0,c.useCallback)((e=>{o(e.target.value)}),[]);return c.createElement("div",{className:qD(Q0.root,r&&Q0.editable)},c.createElement("label",{htmlFor:e,className:Q0.label},e),a&&r?c.createElement("input",{key:"input",id:e,ref:l,className:Q0.input,value:i,placeholder:t,onChange:p,onKeyDown:h,onBlur:f}):c.createElement("div",{key:"value",tabIndex:0,className:Q0.preview,onClick:u,onFocus:u},i))},A0=UD("MediaLibrary",["root","is-dialog","supports-folders","for-image","content-wrapper","content","drop-area","drop-area-active","controls","upload-controls","upload-button","upload-button-icon","upload-button-input","header","title","title-icon-wrapper","title-icon","folder-controls","folder","folder-icon","copy-to-clipboard-button","copy-to-clipboard-button-icon","preview","preview-image","preview-details","empty","files","grid-wrapper","grid","search-form","search-label","search-wrapper","search-icon-wrapper","search-icon","search-input"]),j0=({collection:e,field:t,canInsert:n,url:r,alt:i,insertOptions:o,forImage:a,replaceIndex:s,onUrlChange:l,onAltChange:u})=>t&&n?Array.isArray(r)&&ze(s)?null:Array.isArray(r)||null!=o&&o.chooseUrl||null!=o&&o.showAlt||"string"==typeof r&&!We(r)?c.createElement("div",{className:A0.preview},a?c.createElement(WK,{key:"image-preview",src:Array.isArray(r)?r[s]:r,collection:e,field:t,className:qD(A0["preview-image"],"group/media-card")}):null,c.createElement("div",{className:A0["preview-details"]},c.createElement(R0,{label:"URL",value:Array.isArray(r)?r[s]:r,onChange:null!=o&&o.chooseUrl?l:void 0}),null!=o&&o.showAlt?c.createElement(R0,{label:a?"Alt":"Text",value:i,onChange:u}):null)):null:null,D0=({content:e})=>c.createElement("div",{className:A0.empty},c.createElement("h3",null,e));var M0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}))}));M0.displayName="FileUpload";const I0=({imagesOnly:e,onChange:t})=>{const n=LD(),r=(0,c.useRef)(null),i=pz(uI),o=pz(cI),a=YD("contained","primary","medium",!1),s=(0,c.useCallback)((e=>{var t;"Enter"===e.key&&(null===(t=r.current)||void 0===t||t.click())}),[]);return c.createElement("label",{ref:r,role:"button",className:qD(A0["upload-button"],a),tabIndex:0,onKeyUp:s},c.createElement(M0,{className:A0["upload-button-icon"]}),n(i?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),c.createElement("input",{hidden:!0,multiple:!0,type:"file",accept:e?"image/*":"*/*",onChange:t,disabled:o||i,className:A0["upload-button-input"]}))};function z0(e){return RM("MuiInput",e)}AM("MuiInput",["root","formControl","focused","disabled","error","multiline","input","inputMultiline","inputTypeSearch","adornedStart","adornedEnd"]);const W0=c.createContext(void 0);const N0=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","endAdornment","error","id","multiline","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","startAdornment","value","type","rows","slotProps","slots","minRows","maxRows"],L0=c.forwardRef((function(e,t){var n,r,i;const{"aria-describedby":o,"aria-label":a,"aria-labelledby":s,autoComplete:l,autoFocus:u,className:d,defaultValue:f,disabled:h,endAdornment:p,error:m,id:g,multiline:v=!1,name:O,onClick:y,onChange:b,onKeyDown:w,onKeyUp:k,onFocus:x,onBlur:_,placeholder:S,readOnly:P,required:E,startAdornment:C,value:T,type:$,rows:Q,slotProps:R={},slots:A={},minRows:j,maxRows:D}=e,M=KD(e,N0),{getRootProps:I,getInputProps:z,focused:W,formControlContext:N,error:L,disabled:F}=function(e={}){const{defaultValue:t,disabled:n=!1,error:r=!1,onBlur:i,onChange:o,onFocus:a,required:s=!1,value:l,inputRef:u}=e,d=c.useContext(W0);let f,h,p,m,g;var v,O,y;d?(f=void 0,h=null!=(v=d.disabled)&&v,p=null!=(O=d.error)&&O,m=null!=(y=d.required)&&y,g=d.value):(f=t,h=n,p=r,m=s,g=l);const{current:b}=c.useRef(null!=g),w=c.useCallback((e=>{}),[]),k=c.useRef(null),x=eM(k,u,w),[_,S]=c.useState(!1);c.useEffect((()=>{!d&&h&&_&&(S(!1),null==i||i())}),[d,h,_,i]);const P=e=>t=>{var n,r;null!=d&&d.disabled?t.stopPropagation():(null==(n=e.onFocus)||n.call(e,t),d&&d.onFocus?null==d||null==(r=d.onFocus)||r.call(d):S(!0))},E=e=>(t,...n)=>{var r,i;if(!b&&null==(t.target||k.current))throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{const t=HD({},{onBlur:i,onChange:o,onFocus:a},iM(e)),n=HD({},t,{onBlur:(r=t,e=>{var t;null==(t=r.onBlur)||t.call(r,e),d&&d.onBlur?d.onBlur():S(!1)}),onChange:E(t),onFocus:P(t)});var r;return HD({},n,{"aria-invalid":p||void 0,defaultValue:f,value:g,required:m,disabled:h},e,{ref:x},n)},getRootProps:(t={})=>{const n=HD({},iM(e,["onBlur","onChange","onFocus"]),iM(t));return HD({},t,n,{onClick:(r=n,e=>{var t;k.current&&e.currentTarget===e.target&&k.current.focus(),null==(t=r.onClick)||t.call(r,e)})});var r},inputRef:x,required:m,value:g}}({disabled:h,defaultValue:f,error:m,onBlur:_,onClick:y,onChange:b,onFocus:x,required:E,value:T}),U=v?void 0:null!=$?$:"text",X=HD({},e,{disabled:F,error:L,focused:W,formControlContext:N,multiline:v,type:U}),q=(e=>{const{disabled:t,error:n,focused:r,formControlContext:i,multiline:o,startAdornment:a,endAdornment:s}=e;return hM({root:["root",t&&"disabled",n&&"error",r&&"focused",Boolean(i)&&"formControl",o&&"multiline",Boolean(a)&&"adornedStart",Boolean(s)&&"adornedEnd"],input:["input",t&&"disabled",o&&"multiline"]},fM(z0))})(X),B={"aria-describedby":o,"aria-label":a,"aria-labelledby":s,autoComplete:l,autoFocus:u,id:g,onKeyDown:w,onKeyUp:k,name:O,placeholder:S,readOnly:P,type:U},V=null!=(n=A.root)?n:"div",Y=sM({elementType:V,getSlotProps:I,externalSlotProps:R.root,externalForwardedProps:M,additionalProps:{ref:t},ownerState:X,className:[q.root,d]}),Z=v?null!=(r=A.textarea)?r:"textarea":null!=(i=A.input)?i:"input",G=sM({elementType:Z,getSlotProps:e=>z(HD({},B,e)),externalSlotProps:R.input,additionalProps:HD({rows:v?Q:void 0},v&&!tM(Z)&&{minRows:Q||j,maxRows:Q||D}),ownerState:X,className:q.input});return(0,lM.jsxs)(V,HD({},Y,{children:[C,(0,lM.jsx)(Z,HD({},G)),p]}))}));function F0(e,t){return(0,c.useMemo)((()=>t?"default":e),[e,t])}const U0=["value","type","data-testid","cursor","variant","inputRef","readonly","disabled","onChange","onClick","startAdornment","endAdornment","rootClassName","inputClassName"];function X0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q0(e){for(var t=1;t{let{value:t,type:n,"data-testid":r,cursor:i="default",variant:o="borderless",inputRef:a,readonly:s,disabled:l=!1,onChange:u,onClick:d,startAdornment:f,endAdornment:h,rootClassName:p,inputClassName:m}=e,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const r=LD(),[i,o]=(0,c.useState)(""),a=(0,c.useCallback)((e=>{o(e.target.value)}),[]),s=(0,c.useCallback)((()=>{We(i)||(n(i),o(""))}),[i,n]),l=(0,c.useCallback)((()=>{t(),o("")}),[t]);return c.createElement(FM,{open:e,onClose:l,className:Z0.root},c.createElement("div",{className:Z0.header},c.createElement("h3",{className:Z0.title},r("mediaLibrary.folderSupport.createNewFolder")),c.createElement(FN,{icon:yG,variant:"text","aria-label":"close",onClick:l,rootClassName:Z0["close-button"],iconClassName:Z0["close-button-icon"]})),c.createElement("div",{className:Z0["name-input-wrapper"]},c.createElement(Y0,{id:"folder_name",type:"text",value:i,onChange:a,key:"mobile-time-input","data-testid":"time-input",cursor:"pointer",variant:"contained",placeholder:r("mediaLibrary.folderSupport.enterFolderName"),rootClassName:Z0["name-input"]})),c.createElement("div",{className:Z0.actions},c.createElement(GD,{variant:"text","aria-label":"cancel",onClick:l,className:Z0["cancel-button"]},r("ui.common.cancel")),c.createElement(GD,{variant:"contained","aria-label":"create",onClick:s,disabled:We(i),className:Z0["create-button"]},r("mediaLibrary.folderSupport.create"))))};var H0=!("undefined"==typeof window||!window.document||!window.document.createElement),K0=void 0;function J0(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function e1(e){this.target=e,this.events={}}e1.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},e1.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},e1.prototype.add=function(e,t,n){var r=this,i=this.getEventHandlers(e,n);J0(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,J0(i);var a=i.nextHandlers.indexOf(t);i.nextHandlers.splice(a,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}};var t1="__consolidated_events_handlers__";function n1(e,t,n,r){e[t1]||(e[t1]=new e1(e));var i=function(e){if(e)return void 0===K0&&(K0=function(){if(!H0)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),K0?e:!!e.capture}(r);return e[t1].add(t,n,i)}function r1(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof i?i*t:void 0}var i1,o1="above",a1="inside",s1="below",l1="invisible";function u1(e){return"string"==typeof e.type}var c1=[];function d1(e){c1.push(e),i1||(i1=setTimeout((function(){var e;for(i1=null;e=c1.shift();)e()}),0));var t=!0;return function(){if(t){t=!1;var n=c1.indexOf(e);-1!==n&&(c1.splice(n,1),!c1.length&&i1&&(clearTimeout(i1),i1=null))}}}var f1="undefined"!=typeof window,h1=function(e){function t(t){var n;return(n=e.call(this,t)||this).refElement=function(e){n._ref=e},n}Nq(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;f1&&(this.cancelOnNextTick=d1((function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug,function(e,t){if(e&&!u1(e)&&!t)throw new Error(" needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g.
) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=n1(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=n1(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)})))},n.componentDidUpdate=function(){var e=this;f1&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=d1((function(){e.cancelOnNextTick=null,e._handleScroll(null)}))))},n.componentWillUnmount=function(){f1&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())},n._findScrollableAncestor=function(){var e=this.props,t=e.horizontal,n=e.scrollableAncestor;if(n)return function(e){return"window"===e?__webpack_require__.g.window:e}(n);for(var r=this._ref;r.parentNode;){if((r=r.parentNode)===document.body)return window;var i=window.getComputedStyle(r),o=(t?i.getPropertyValue("overflow-x"):i.getPropertyValue("overflow-y"))||i.getPropertyValue("overflow");if("auto"===o||"scroll"===o||"overlay"===o)return r}return window},n._handleScroll=function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?l1:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?a1:e.viewportBottom0&&i.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}return n.remove(),o&&(i.removeAllRanges(),i.addRange(o)),r&&r.focus(),a}g1.displayName="ContentCopy";const O1=({draft:e,path:t,name:n})=>{const r=LD(),[i,o]=(0,c.useState)(!1);(0,c.useEffect)((()=>{let e=!0;const t=setTimeout((()=>{e&&o(!1)}),1500);return()=>{e=!1,clearTimeout(t)}}),[]);const a=(0,c.useCallback)((()=>{t&&n&&(v1(PS(t)||!e?t:n),o(!0))}),[e,n,t]),s=(0,c.useCallback)((()=>i?r("mediaLibrary.mediaLibraryCard.copied"):t?PS(t)?r("mediaLibrary.mediaLibraryCard.copyUrl"):r(e?"mediaLibrary.mediaLibraryCard.copyName":"mediaLibrary.mediaLibraryCard.copyPath"):r("mediaLibrary.mediaLibraryCard.copy")),[i,e,t,r]);return c.createElement(GD,{variant:"text",title:s(),onClick:a,className:A0["copy-to-clipboard-button"]},c.createElement(g1,{className:A0["copy-to-clipboard-button-icon"]}))},y1=UD("MediaLibraryCard",["root","action","handle","outline","text","controls-overlay","controls","control-icon","download-button","delete-button","details","selection-overlay","draft-pill","image","folder","folder-icon","file"]),b1=({isSelected:e=!1,displayURL:t,path:n,text:r,draftText:i,type:o,isViewableImage:a,isDraft:s,isDirectory:l,collection:u,field:d,currentFolder:f,hasSelection:h,allowMultiple:p,onSelect:m,onDirectoryOpen:g,loadDisplayURL:v,onDelete:O})=>{const y=LD(),b=Sz(n,u,d,pz(JM),f,l),w=(0,c.useCallback)((()=>{const e=t.url;if(!e)return;const n=document.createElement("a");n.setAttribute("href",e),n.setAttribute("download",r),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}),[t.url,r]);(0,c.useEffect)((()=>{t.url||v()}),[t.url,v]);const k=(0,c.useMemo)((()=>r.length<=28?r:`${r.slice(0,14)}…${r.slice(-13)}`),[r]),x=(0,c.useCallback)((e=>{"Enter"!==e.code&&"Space"!==e.code||m("replace")}),[m]),_=(0,c.useCallback)((()=>{m("replace")}),[m]),S=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),m(e.target.checked?"add":"remove")}),[m]);return c.createElement("div",{className:y1.root,tabIndex:-1},c.createElement("div",{onClick:_,onDoubleClick:l?g:void 0,"data-testid":`media-card-${t.url}`,className:y1.action},c.createElement("div",{key:"handle",onKeyUp:x,"data-testid":`media-card-handle-${t.url}`,tabIndex:0,className:y1.handle}),e?c.createElement("div",{key:"selected",className:y1.outline}):null,c.createElement("div",{className:y1["controls-overlay"]},l?null:c.createElement("div",{className:y1.controls},c.createElement(O1,{path:t.url,name:r,draft:s}),c.createElement(GD,{variant:"text",onClick:w,title:y("mediaLibrary.mediaLibraryModal.download"),className:y1["download-button"]},c.createElement(m1,{className:y1["control-icon"]})),c.createElement(GD,{variant:"text",color:"error",onClick:O,title:y("mediaLibrary.mediaLibraryModal.deleteSelected"),className:y1["delete-button"]},c.createElement(p1,{className:y1["control-icon"]})))),c.createElement("div",{className:y1.details},c.createElement("div",{className:y1["selection-overlay"]},h&&p?c.createElement(QH,{checked:e,onChange:S}):null,s?c.createElement(uJ,{"data-testid":"draft-text",color:"primary",className:y1["draft-pill"]},i):null),b&&a?c.createElement(WK,{src:b,className:y1.image}):l?c.createElement("div",{"data-testid":"card-folder-icon",className:y1.folder},c.createElement(S0,{className:y1["folder-icon"]})):c.createElement("div",{"data-testid":"card-file-icon",className:y1.file},c.createElement("span",null,o))),c.createElement("div",{className:y1.text},k)))};function w1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k1(e){for(var t=1;t{var O,y,b;const w=(0,c.useMemo)((()=>{var e;return parseFloat(`${"number"==typeof n.left?null!==(e=n.left)&&void 0!==e?e:10*t:n.left}`)+20}),[t,n.left]),k=(0,c.useMemo)((()=>{var e;return parseFloat(`${"number"==typeof n.top?null!==(e=n.top)&&void 0!==e?e:0:n.top}`)+4}),[n.top]),x=e*f+t;if(x>=r.length)return null;const _=r[x];return c.createElement("div",{style:k1(k1({},n),{},{left:w,top:k,width:n.width,height:n.height})},c.createElement(b1,{key:_.key,isSelected:i(_),text:_.name,onSelect:e=>o(_,e),onDirectoryOpen:()=>a(_.path),currentFolder:s,isDraft:_.draft,draftText:l,displayURL:null!==(O=u[_.id])&&void 0!==O?O:_.url?{url:_.url}:{},path:_.path,loadDisplayURL:()=>d(_),type:_.type,isViewableImage:null!==(y=_.isViewableImage)&&void 0!==y&&y,isDirectory:null!==(b=_.isDirectory)&&void 0!==b&&b,collection:h,field:p,onDelete:()=>m(_),hasSelection:g,allowMultiple:v}))},S1=e=>{const{mediaItems:t,scrollContainerRef:n,canLoadMore:r,isDialog:i,onLoadMore:o,field:a,collection:s,collectionFile:l}=e,u=bz({config:pz(dC),collection:s,collectionFile:l,field:a}),[d,f]=(0,c.useState)(0),h=(0,c.useCallback)((()=>{f((e=>e+1))}),[]);return c.createElement("div",{className:A0.files},c.createElement(dK,{onResize:h},(({height:a=0,width:s=0})=>{const l=Math.floor((s-40)/250),f=Math.ceil(t.length/l);return c.createElement("div",{key:d,className:A0["grid-wrapper"],style:{width:s,height:a}},c.createElement(QK,{columnCount:l,columnWidth:e=>e+1===l?240:250,rowCount:f,rowHeight:()=>250,width:s,height:a-(u?0:20),itemData:k1(k1({},e),{},{columnCount:l}),outerRef:n,className:qD(A0.grid,"CMS_Scrollbar_root",i&&"CMS_Scrollbar_secondary"),style:{position:"unset"}},_1),r?c.createElement(h1,{onEnter:o}):null)})))},P1=({value:e="",onChange:t,onKeyDown:n,placeholder:r,disabled:i})=>c.createElement("form",{className:A0["search-form"]},c.createElement("label",{htmlFor:"default-search",className:A0["search-label"]},"Search"),c.createElement("div",{className:"relative"},c.createElement("div",{className:A0["search-icon-wrapper"]},c.createElement(_Y,{className:A0["search-icon"]})),c.createElement("input",{type:"search",id:"default-search",className:A0["search-input"],value:e,placeholder:r,disabled:i,onChange:t,onKeyDown:n})));function E1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C1(e){for(var t=1;t{var n,r;const i=LD(),[o,a]=(0,c.useState)(void 0),[s,l]=(0,c.useState)(null),[u,d]=(0,c.useState)(void 0),f=pz(dC),h=hz(),{isVisible:p,displayURLs:m,dynamicSearch:g,dynamicSearchActive:v,forImage:O=!1,forFolder:y=!1,isLoading:b,hasNextPage:w,isPaginating:k,config:x=(null!==(n=null==f?void 0:f.media_library)&&void 0!==n?n:{}),dynamicSearchQuery:_,page:S,collection:P,collectionFile:E,field:C,value:T,alt:$,insertOptions:Q,replaceIndex:R}=pz(iI),A=pz(JM),[j,D]=(0,c.useState)(null!=T?T:""),[M,I]=(0,c.useState)($),[z,W]=(0,c.useState)(!1);(0,c.useEffect)((()=>{!z&&p?(l(null),d(""),a(void 0),h(vI())):z&&!p&&window.dispatchEvent(new $0),W(p)}),[p,h,z]);const N=Tz(C,o),L=(0,c.useCallback)((e=>{h(function(e){return async(t,n)=>{const{displayURL:r,id:i}=e,o=n(),a=o.config.config;if(!a)return Promise.reject();const s=sI(o,i);if(!i||!r||s.url||s.isFetching||s.err)return Promise.resolve();if("string"==typeof r)return t(wI(i)),void t(kI(i,r));try{const e=DC(a);t(wI(i));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(kI(i,n))}catch(e){console.error(e),e instanceof Error&&t(function(e,t){return{type:rQ,payload:{key:e,err:t}}}(i,e))}}}(e))}),[h]),F=(0,c.useCallback)((e=>e.filter((e=>{const t=TS(e.name).toLowerCase();return Q1.includes(t)||e.isDirectory}))),[]),U=(0,c.useCallback)((e=>{const t=e&&e.map((({key:e,name:t,id:n,size:r,path:i,queryOrder:o,displayURL:a,draft:s,isDirectory:l})=>{const u=TS(t).toLowerCase();return{key:e,id:n,name:t,path:i,type:u.toUpperCase(),size:r,queryOrder:o,displayURL:a,draft:s,isImage:Q1.includes(u),isViewableImage:$1.includes(u),isDirectory:l}}));return t}),[]),X=(0,c.useCallback)((()=>{h(mI()),setTimeout((()=>{D(void 0),I(void 0)}),500)}),[h]),q=(0,c.useCallback)(((t,n)=>{if(!(!e||!y&&t.isDirectory||y&&!t.isDirectory))if("replace"!==n)if("add"!==n){if("remove"===n){if(null==C||!C.multiple)return;const e=Array.isArray(s)?[...s]:s?[s]:[],n=e.indexOf(t.path);if(n<0)return;return e.splice(n,1),void l(e)}}else{if(null==C||!C.multiple)return;const e=Array.isArray(s)?s:s?[s]:[];if(e.includes(t.path))return;l([...e,t.path])}else{if(s===t.path)return;l(null!=C&&C.multiple?[t.path]:t.path)}}),[e,null==C?void 0:C.multiple,y,s]),B=(0,c.useRef)(null),V=()=>{B.current&&(B.current.scrollTop=0)},Y=zz({mediaConfig:x,field:C,currentFolder:o,callback:(e,t)=>{1===t.length&&t[0]?l(t[0].path):null!=C&&C.multiple&&l(t.filter((e=>e)).map((e=>e.path))),V()}}),{dragOverActive:Z,handleDragEnter:G,handleDragLeave:H,handleDragOver:K,handleDrop:J}=T0(Y),ee=(0,c.useCallback)((e=>{D(e),h(gI(e,C,M,o))}),[M,h,C,o]),te=(0,c.useCallback)((e=>{(j||s)&&(I(e),h(gI(null!=j?j:s,C,e,o)))}),[h,C,s,j,o]),ne=(0,c.useCallback)((e=>{if(!f)return;const t=mP(f,P,A,e,C,o);l(null),d(""),a(t),h(vI({currentFolder:t}))}),[h,o,P,f,A,C]),re=(0,c.useMemo)((()=>{if(f)return hP(f,P,A,C)}),[P,f,A,C]),ie=(0,c.useMemo)((()=>{if(f&&o)return(0,Re.dirname)(o)}),[f,o]),oe=(0,c.useCallback)((e=>{l(null),d(""),a(e),h(vI({currentFolder:e}))}),[h]),ae=(0,c.useCallback)((()=>{oe(void 0)}),[oe]),se=(0,c.useCallback)((()=>{re&&oe(null!=ie&&ie.includes(re)&&ie!==re?ie:void 0)}),[oe,re,ie]),[le,ue]=(0,c.useState)(!1),ce=(0,c.useCallback)((()=>{ue(!0)}),[]),de=(0,c.useCallback)((()=>{ue(!1)}),[]),fe=(0,c.useCallback)((async e=>{const t=null!=o?o:re;if(!t)return;ue(!1);const n=new File([""],".gitkeep",{type:"text/plain"});await h(OI(n,{field:C},(0,Re.join)(t,e),null!=o?o:re))}),[o,h,C,re]),he=(0,c.useCallback)((()=>{s&&(D(s),h(gI(s,C,M,o)),null!=Q&&Q.chooseUrl||null!=Q&&Q.showAlt||X())}),[s,h,C,M,Q,X,o]),pe=(0,c.useCallback)((async e=>{if(!await YM({title:"mediaLibrary.mediaLibrary.onDeleteTitle",body:"mediaLibrary.mediaLibrary.onDeleteBody",color:"error"}))return;const t=N.find((t=>(null==e?void 0:e.key)===t.key));t&&h(yI(t)).then((()=>{l(null)}))}),[h,N]),me=(0,c.useCallback)((()=>{h(vI({query:_,page:(null!=S?S:0)+1}))}),[_,h,S]),ge=(0,c.useCallback)((async e=>{"Enter"===e.key&&g&&(await h(vI({query:u})),V())}),[g,h,u]),ve=(0,c.useCallback)((e=>{d(e.target.value)}),[]),Oe=(0,c.useCallback)(((e,t)=>{const n=e.replace(/ /g,""),r=we().filter(n,t,{extract:e=>e.name});return r.map(((e,n)=>C1(C1({},t[e.index]),{},{queryIndex:n})))}),[]),ye=O?F(N):N,be=!g&&u?Oe(u,ye):ye,ke=U(be),xe=N&&!!N.length,_e=ye&&!!ye.length,Se=be&&!!be.length,Pe=Se,Ee=b&&!Pe&&i("app.app.loading")||v&&i("mediaLibrary.mediaLibraryModal.noResults")||!xe&&i("mediaLibrary.mediaLibraryModal.noAssetsFound")||!_e&&i("mediaLibrary.mediaLibraryModal.noImagesFound")||!Se&&i("mediaLibrary.mediaLibraryModal.noResults")||"",Ce=Pe&&!C0()(s),Te=bz({config:f,collection:P,collectionFile:E,field:C});return c.createElement(c.Fragment,null,c.createElement("div",{onDrop:J,onDragEnter:G,onDragLeave:H,onDragOver:K,className:qD(A0.root,t&&A0["is-dialog"],Z&&A0["drop-area-active"],O&&A0["for-image"],Te&&A0["supports-folders"])},c.createElement("div",{className:A0["content-wrapper"]},c.createElement("div",{className:A0.content},c.createElement(j0,{collection:P,field:C,canInsert:e,url:j,alt:M,insertOptions:Q,forImage:O,replaceIndex:R,onUrlChange:ee,onAltChange:te}),c.createElement("div",{className:A0.controls},c.createElement("div",{className:A0.header},c.createElement("h2",{className:A0.title},c.createElement("div",{className:A0["title-icon-wrapper"]},c.createElement(HB,{className:A0["title-icon"]})),i("app.header.media")),c.createElement(P1,{value:u,onChange:ve,onKeyDown:ge,placeholder:i("mediaLibrary.mediaLibraryModal.search"),disabled:!v&&!_e}),Te?c.createElement("div",{className:A0["folder-controls"]},c.createElement(FN,{icon:P0,onClick:ae,title:i("mediaLibrary.folderSupport.home"),color:"secondary",disabled:!o,"aria-label":"go to home"}),c.createElement(FN,{icon:x0,onClick:se,title:ie?i("mediaLibrary.folderSupport.upToFolder",{folder:ie}):i("mediaLibrary.folderSupport.up"),color:"secondary",disabled:!ie,"aria-label":"go to parent folder"}),c.createElement(FN,{icon:_0,onClick:ce,title:i("mediaLibrary.folderSupport.newFolder"),color:"secondary","aria-label":"create folder"})):null),c.createElement("div",{className:A0["upload-controls"]},c.createElement(I0,{imagesOnly:O,onChange:Y}),e?c.createElement(GD,{key:"choose-selected",color:"success",variant:"contained",onClick:he,disabled:!Ce,"data-testid":"choose-selected"},i("mediaLibrary.mediaLibraryModal.chooseSelected")):null)),Te?c.createElement("div",{className:A0.folder},c.createElement(S0,{className:A0["folder-icon"]}),null!=o?o:re):null,Pe?c.createElement(S1,{scrollContainerRef:B,mediaItems:ke,isSelectedFile:e=>Array.isArray(s)&&null!=C&&C.multiple?s.includes(e.path):s===e.path,onAssetSelect:q,canLoadMore:w,onLoadMore:me,onDirectoryOpen:ne,currentFolder:o,isPaginating:k,paginatingMessage:i("app.app.loading"),cardDraftText:i("mediaLibrary.mediaLibraryCard.draft"),loadDisplayURL:L,displayURLs:m,collection:P,field:C,isDialog:t,onDelete:pe,hasSelection:Array.isArray(s)?s.length>0:Boolean(s),allowMultiple:void 0===R&&null!==(r=null==C?void 0:C.multiple)&&void 0!==r&&r}):c.createElement(D0,{content:Ee})),c.createElement("div",{className:A0["drop-area"]},i("mediaLibrary.mediaLibraryModal."+(O?"dropImages":"dropFiles"))))),c.createElement(G0,{open:le,onClose:de,onCreate:fe}))},A1=UD("MediaLibraryModal",["root","close-button"]),j1=()=>{const e=hz(),t=pz(dI),n=(0,c.useCallback)((()=>{e(mI())}),[e]);return c.createElement(FM,{open:t,onClose:n,className:A1.root},c.createElement(FN,{icon:yG,rootClassName:A1["close-button"],color:"secondary",variant:"outlined","aria-label":"close media library",onClick:n,rounded:!0}),c.createElement(R1,{canInsert:!0,isDialog:!0}))};var D1=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}))}));D1.displayName="DragHandle";const{createElement:M1,createContext:I1,forwardRef:z1,useCallback:W1,useContext:N1,useEffect:L1,useImperativeHandle:F1,useLayoutEffect:U1,useMemo:X1,useRef:q1,useState:B1}=d,V1=d["useId".toString()],Y1=U1,Z1="function"==typeof V1?V1:()=>null;let G1=0;function H1(e=null){const t=Z1(),n=q1(e||t||null);return null===n.current&&(n.current=""+G1++),n.current}const K1=I1(null);function J1({children:e=null,className:t="",collapsedSize:n=0,collapsible:r=!1,defaultSize:i=null,forwardedRef:o,id:a=null,maxSize:s=null,minSize:l,onCollapse:u=null,onResize:c=null,order:d=null,style:f={},tagName:h="div"}){const p=N1(K1);if(null===p)throw Error("Panel components must be rendered within a PanelGroup container");const m=H1(a),{collapsePanel:g,expandPanel:v,getPanelSize:O,getPanelStyle:y,registerPanel:b,resizePanel:w,units:k,unregisterPanel:x}=p;null==l&&(l="percentages"===k?10:0);const _=q1({onCollapse:u,onResize:c});L1((()=>{_.current.onCollapse=u,_.current.onResize=c}));const S=y(m,i),P=q1({size:t2(S)}),E=q1({callbacksRef:_,collapsedSize:n,collapsible:r,defaultSize:i,id:m,idWasAutoGenerated:null==a,maxSize:s,minSize:l,order:d});return Y1((()=>{P.current.size=t2(S),E.current.callbacksRef=_,E.current.collapsedSize=n,E.current.collapsible=r,E.current.defaultSize=i,E.current.id=m,E.current.idWasAutoGenerated=null==a,E.current.maxSize=s,E.current.minSize=l,E.current.order=d})),Y1((()=>(b(m,E),()=>{x(m)})),[d,m,b,x]),F1(o,(()=>({collapse:()=>g(m),expand:()=>v(m),getCollapsed:()=>0===P.current.size,getId:()=>m,getSize:e=>O(m,e),resize:(e,t)=>w(m,e,t)})),[g,v,O,m,w]),M1(h,{children:e,className:t,"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-id":m,"data-panel-size":parseFloat(""+S.flexGrow).toFixed(1),id:`data-panel-id-${m}`,style:{...S,...f}})}K1.displayName="PanelGroupContext";const e2=z1(((e,t)=>M1(J1,{...e,forwardedRef:t})));function t2(e){const{flexGrow:t}=e;return"string"==typeof t?parseFloat(t):t}J1.displayName="Panel",e2.displayName="forwardRef(Panel)";const n2=10;function r2(e,t,n,r,i,o,a,s){const{id:l,panels:u,units:c}=t,d="pixels"===c?a2(l):NaN,{sizes:f}=s||{},h=f||o,p=h2(u),m=h.concat();let g=0;{const t=i<0?r:n,o=p.findIndex((e=>e.current.id===t)),s=p[o],l=h[o],u=p2(c,d,s,l,l+Math.abs(i),e);if(l===u)return h;0===u&&l>0&&a.set(t,l),i=i<0?l-u:u-l}let v=i<0?n:r,O=p.findIndex((e=>e.current.id===v));for(;;){const t=p[O],n=h[O],r=p2(c,d,t,n,n-(Math.abs(i)-Math.abs(g)),e);if(n!==r&&(0===r&&n>0&&a.set(t.current.id,n),g+=n-r,m[O]=r,g.toPrecision(n2).localeCompare(Math.abs(i).toPrecision(n2),void 0,{numeric:!0})>=0))break;if(i<0){if(--O<0)break}else if(++O>=p.length)break}return 0===g?h:(v=i<0?r:n,O=p.findIndex((e=>e.current.id===v)),m[O]=h[O]+g,m)}function i2(e,t,n){t.forEach(((t,r)=>{const i=e[r];if(!i)return;const{callbacksRef:o,collapsedSize:a,collapsible:s,id:l}=i.current,u=n[l];if(u!==t){n[l]=t;const{onCollapse:e,onResize:r}=o.current;r&&r(t,u),s&&e&&(null!=u&&u!==a||t===a?u!==a&&t===a&&e(!0):e(!1))}}))}function o2(e,t){if(t.length<2)return[null,null];const n=t.findIndex((t=>t.current.id===e));if(n<0)return[null,null];const r=n===t.length-1;return[r?t[n-1].current.id:e,r?e:t[n+1].current.id]}function a2(e){const t=l2(e);if(null==t)return NaN;const n=t.getAttribute("data-panel-group-direction"),r=d2(e);return"horizontal"===n?t.offsetWidth-r.reduce(((e,t)=>e+t.offsetWidth),0):t.offsetHeight-r.reduce(((e,t)=>e+t.offsetHeight),0)}function s2(e,t,n){if(1===e.size)return"100";const r=n[h2(e).findIndex((e=>e.current.id===t))];return null==r?"0":r.toPrecision(n2)}function l2(e){return document.querySelector(`[data-panel-group-id="${e}"]`)||null}function u2(e){return document.querySelector(`[data-panel-resize-handle-id="${e}"]`)||null}function c2(){return Array.from(document.querySelectorAll("[data-panel-resize-handle-id]"))}function d2(e){return Array.from(document.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function f2(e,t,n){const r=u2(t),i=d2(e),o=r?i.indexOf(r):-1;return[n[o]?.current?.id??null,n[o+1]?.current?.id??null]}function h2(e){return Array.from(e.values()).sort(((e,t)=>{const n=e.current.order,r=t.current.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}))}function p2(e,t,n,r,i,o=null){let{collapsedSize:a,collapsible:s,maxSize:l,minSize:u}=n.current;if("pixels"===e&&(a=a/t*100,null!=l&&(l=l/t*100),u=u/t*100),s)if(r>a){if(i<=u/2+a)return a}else{const e=o?.type?.startsWith("key");if(!e&&i{const{minSize:t,order:n}=e.current;return n?`${n}:${t}`:`${t}`})).sort(((e,t)=>e.localeCompare(t))).join(",")}function S2(e,t){try{const n=t.getItem(`PanelGroup:sizes:${e}`);if(n){const e=JSON.parse(n);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function P2(e,t,n,r){const i=_2(t),o=S2(e,r)||{};o[i]=n;try{r.setItem(`PanelGroup:sizes:${e}`,JSON.stringify(o))}catch(e){console.error(e)}}const E2={};function C2(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}const T2={getItem:e=>(C2(T2),T2.getItem(e)),setItem:(e,t)=>{C2(T2),T2.setItem(e,t)}};function $2({autoSaveId:e,children:t=null,className:n="",direction:r,disablePointerEventsDuringResize:i=!1,forwardedRef:o,id:a=null,onLayout:s,storage:l=T2,style:u={},tagName:c="div",units:d="percentages"}){const f=H1(a),[h,p]=B1(null),[m,g]=B1(new Map),v=q1(null);q1({didLogDefaultSizeWarning:!1,didLogIdAndOrderWarning:!1,didLogInvalidLayoutWarning:!1,prevPanelIds:[]});const O=q1({onLayout:s});L1((()=>{O.current.onLayout=s}));const y=q1({}),[b,w]=B1([]),k=q1(new Map),x=q1(0),_=q1({direction:r,id:f,panels:m,sizes:b,units:d});F1(o,(()=>({getId:()=>f,getLayout:e=>{const{sizes:t,units:n}=_.current;if("pixels"===(e??n)){const e=a2(f);return t.map((t=>t/100*e))}return t},setLayout:(e,t)=>{const{id:n,panels:r,sizes:i,units:o}=_.current;if("pixels"===(t||o)){const t=a2(n);e=e.map((e=>e/t*100))}const a=y.current,s=h2(r),l=m2({groupId:n,panels:r,nextSizes:e,prevSizes:i,units:o});v2(i,l)||(w(l),i2(s,l,a))}})),[f]),Y1((()=>{_.current.direction=r,_.current.id=f,_.current.panels=m,_.current.sizes=b,_.current.units=d})),function({committedValuesRef:e,groupId:t,panels:n,setSizes:r,sizes:i,panelSizeBeforeCollapse:o}){L1((()=>{const{direction:n,panels:a}=e.current,s=l2(t);g2(null!=s,`No group found for id "${t}"`);const{height:l,width:u}=s.getBoundingClientRect(),c=d2(t).map((s=>{const c=s.getAttribute("data-panel-resize-handle-id"),d=h2(a),[f,h]=f2(t,c,d);if(null==f||null==h)return()=>{};let p=0,m=100,g=0,v=0;d.forEach((e=>{const{id:t,maxSize:n,minSize:r}=e.current;t===f?(p=r,m=null!=n?n:100):(g+=r,v+=null!=n?n:100)}));const O=Math.min(m,100-g),y=Math.max(p,100*(d.length-1)-v),b=s2(a,f,i);s.setAttribute("aria-valuemax",""+Math.round(O)),s.setAttribute("aria-valuemin",""+Math.round(y)),s.setAttribute("aria-valuenow",""+Math.round(parseInt(b)));const w=t=>{if(!t.defaultPrevented)switch(t.key){case"Enter":{t.preventDefault();const a=d.findIndex((e=>e.current.id===f));if(a>=0){const s=d[a],c=i[a];if(null!=c){let a=0;a=c.toPrecision(n2)<=s.current.minSize.toPrecision(n2)?"horizontal"===n?u:l:-("horizontal"===n?u:l);const d=r2(t,e.current,f,h,a,i,o.current,null);i!==d&&r(d)}}break}}};s.addEventListener("keydown",w);const k=function(e){return document.querySelector(`[data-panel-id="${e}"]`)||null}(f);return null!=k&&s.setAttribute("aria-controls",k.id),()=>{s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow"),s.removeEventListener("keydown",w),null!=k&&s.removeAttribute("aria-controls")}}));return()=>{c.forEach((e=>e()))}}),[e,t,n,o,r,i])}({committedValuesRef:_,groupId:f,panels:m,setSizes:w,sizes:b,panelSizeBeforeCollapse:k}),L1((()=>{const{onLayout:e}=O.current,{panels:t,sizes:n}=_.current;if(n.length>0){e&&e(n);const r=y.current;i2(h2(t),n,r)}}),[b]),Y1((()=>{const{id:t,sizes:n,units:r}=_.current;if(n.length===m.size)return;let i=null;if(e){const t=h2(m);i=function(e,t,n){const r=S2(e,n);return r?r[_2(t)]??null:null}(e,t,l)}if(null!=i){const e=m2({groupId:t,panels:m,nextSizes:i,prevSizes:i,units:r});w(e)}else{const e=function({groupId:e,panels:t,units:n}){const r="pixels"===n?a2(e):NaN,i=h2(t),o=Array(i.length);let a=0,s=100;for(let e=0;e{if(e){if(0===b.length||b.length!==m.size)return;const t=h2(m);E2[e]||(E2[e]=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(P2,100)),E2[e](e,t,b,l)}}),[e,m,b,l]),Y1((()=>{if("pixels"===d){const e=new ResizeObserver((()=>{const{panels:e,sizes:t}=_.current,n=m2({groupId:f,panels:e,nextSizes:t,prevSizes:t,units:d});v2(t,n)||w(n)}));return e.observe(l2(f)),()=>{e.disconnect()}}}),[f,d]);const S=W1(((e,t)=>{const{panels:n,units:r}=_.current,i=h2(n).findIndex((t=>t.current.id===e)),o=b[i];return"pixels"===(t??r)?o/100*a2(f):o}),[f,b]),P=W1(((e,t)=>{const{panels:n}=_.current;return 0===n.size?{flexBasis:0,flexGrow:null!=t?t:void 0,flexShrink:1,overflow:"hidden"}:{flexBasis:0,flexGrow:s2(n,e,b),flexShrink:1,overflow:"hidden",pointerEvents:i&&null!==h?"none":void 0}}),[h,i,b]),E=W1(((e,t)=>{const{units:n}=_.current;!function(e,t){const{collapsible:n,defaultSize:r,maxSize:i,minSize:o}=t.current;(o<0||"percentages"===e&&o>100)&&(t.current.minSize=0),null!=i&&(i<0||"percentages"===e&&i>100)&&(t.current.maxSize=null),null!==r&&(r<0||"percentages"===e&&r>100?t.current.defaultSize=null:ri&&(t.current.defaultSize=i))}(n,t),g((n=>{if(n.has(e))return n;const r=new Map(n);return r.set(e,t),r}))}),[]),C=W1((e=>t=>{t.preventDefault();const{direction:n,panels:r,sizes:i}=_.current,o=h2(r),[a,s]=f2(f,e,o);if(null==a||null==s)return;let l=function(e,t,n,r,i,o,a){const{dragOffset:s=0,dragHandleRect:l,sizes:u}=a||{},c=u||o;if(function(e){return"keydown"===e.type}(e)){const o="horizontal"===i,a=l2(t).getBoundingClientRect(),s=o?a.width:a.height,l=s/(e.shiftKey?10:100);let u=0;switch(e.key){case"ArrowDown":u=o?0:l;break;case"ArrowLeft":u=o?-l:0;break;case"ArrowRight":u=o?l:0;break;case"ArrowUp":u=o?0:-l;break;case"End":u=s;break;case"Home":u=-s}const[d,f]=f2(t,n,r),h=u<0?d:f,p=r.findIndex((e=>e.current.id===h)),m=r[p];if(m.current.collapsible){const e=c[p];0!==e&&e.toPrecision(n2)!==m.current.minSize.toPrecision(n2)||(u=u<0?-m.current.minSize*s:m.current.minSize*s)}return u}return O2(e,n,i,s,l)}(t,f,e,o,n,i,v.current);if(0===l)return;const u=l2(f).getBoundingClientRect(),c="horizontal"===n;"rtl"===document.dir&&c&&(l=-l);const d=l/(c?u.width:u.height)*100,h=r2(t,_.current,a,s,d,i,k.current,v.current),p=!v2(i,h);if((y2(t)||b2(t))&&x.current!=d&&function(e){if(w2===e)return;w2=e;const t=x2(e);null===k2&&(k2=document.createElement("style"),document.head.appendChild(k2)),k2.innerHTML=`*{cursor: ${t}!important;}`}(p?c?"horizontal":"vertical":c?l<0?"horizontal-min":"horizontal-max":l<0?"vertical-min":"vertical-max"),p){const e=y.current;w(h),i2(o,h,e)}x.current=d}),[f]),T=W1((e=>{g((t=>{if(!t.has(e))return t;const n=new Map(t);return n.delete(e),n}))}),[]),$=W1((e=>{const{panels:t,sizes:n}=_.current,r=t.get(e);if(null==r)return;const{collapsedSize:i,collapsible:o}=r.current;if(!o)return;const a=h2(t),s=a.indexOf(r);if(s<0)return;const l=n[s];if(l===i)return;k.current.set(e,l);const[u,c]=o2(e,a);if(null==u||null==c)return;const d=s===a.length-1?l:i-l,f=r2(null,_.current,u,c,d,n,k.current,null);if(n!==f){const e=y.current;w(f),i2(a,f,e)}}),[]),Q=W1((e=>{const{panels:t,sizes:n}=_.current,r=t.get(e);if(null==r)return;const{collapsedSize:i,minSize:o}=r.current,a=k.current.get(e)||o;if(!a)return;const s=h2(t),l=s.indexOf(r);if(l<0)return;if(n[l]!==i)return;const[u,c]=o2(e,s);if(null==u||null==c)return;const d=l===s.length-1?i-a:a,f=r2(null,_.current,u,c,d,n,k.current,null);if(n!==f){const e=y.current;w(f),i2(s,f,e)}}),[]),R=W1(((e,t,n)=>{const{id:r,panels:i,sizes:o,units:a}=_.current;"pixels"===(n||a)&&(t=t/a2(r)*100);const s=i.get(e);if(null==s)return;let{collapsedSize:l,collapsible:u,maxSize:c,minSize:d}=s.current;if("pixels"===a){const e=a2(r);d=d/e*100,null!=c&&(c=c/e*100)}const f=h2(i),h=f.indexOf(s);if(h<0)return;const p=o[h];if(p===t)return;u&&t===l||(t=Math.min(null!=c?c:100,Math.max(d,t)));const[m,g]=o2(e,f);if(null==m||null==g)return;const v=h===f.length-1?p-t:t-p,O=r2(null,_.current,m,g,v,o,k.current,null);if(o!==O){const e=y.current;w(O),i2(f,O,e)}}),[]),A=X1((()=>({activeHandleId:h,collapsePanel:$,direction:r,expandPanel:Q,getPanelSize:S,getPanelStyle:P,groupId:f,registerPanel:E,registerResizeHandle:C,resizePanel:R,startDragging:(e,t)=>{if(p(e),y2(t)||b2(t)){const n=u2(e);v.current={dragHandleRect:n.getBoundingClientRect(),dragOffset:O2(t,e,r),sizes:_.current.sizes}}},stopDragging:()=>{null!==k2&&(document.head.removeChild(k2),w2=null,k2=null),p(null),v.current=null},units:d,unregisterPanel:T})),[h,$,r,Q,S,P,f,E,C,R,d,T]),j={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return M1(K1.Provider,{children:M1(c,{children:t,className:n,"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":f,"data-panel-group-units":d,style:{...j,...u}}),value:A})}const Q2=z1(((e,t)=>M1($2,{...e,forwardedRef:t})));function R2({children:e=null,className:t="",disabled:n=!1,id:r=null,onDragging:i,style:o={},tagName:a="div"}){const s=q1(null),l=q1({onDragging:i});L1((()=>{l.current.onDragging=i}));const u=N1(K1);if(null===u)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{activeHandleId:c,direction:d,groupId:f,registerResizeHandle:h,startDragging:p,stopDragging:m}=u,g=H1(r),v=c===g,[O,y]=B1(!1),[b,w]=B1(null),k=W1((()=>{s.current.blur(),m();const{onDragging:e}=l.current;e&&e(!1)}),[m]);L1((()=>{if(n)w(null);else{const e=h(g);w((()=>e))}}),[n,g,h]),L1((()=>{if(n||null==b||!v)return;const e=e=>{b(e)},t=e=>{b(e)},r=s.current.ownerDocument;return r.body.addEventListener("contextmenu",k),r.body.addEventListener("mousemove",e),r.body.addEventListener("touchmove",e),r.body.addEventListener("mouseleave",t),window.addEventListener("mouseup",k),window.addEventListener("touchend",k),()=>{r.body.removeEventListener("contextmenu",k),r.body.removeEventListener("mousemove",e),r.body.removeEventListener("touchmove",e),r.body.removeEventListener("mouseleave",t),window.removeEventListener("mouseup",k),window.removeEventListener("touchend",k)}}),[d,n,v,b,k]),function({disabled:e,handleId:t,resizeHandler:n}){L1((()=>{if(e||null==n)return;const r=u2(t);if(null==r)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=c2(),r=function(e){const t=c2().findIndex((t=>t.getAttribute("data-panel-resize-handle-id")===e));return t??null}(t);g2(null!==r),n[e.shiftKey?r>0?r-1:n.length-1:r+1{r.removeEventListener("keydown",i)}}),[e,t,n])}({disabled:n,handleId:g,resizeHandler:b});const x={cursor:x2(d),touchAction:"none",userSelect:"none"};return M1(a,{children:e,className:t,"data-resize-handle-active":v?"pointer":O?"keyboard":void 0,"data-panel-group-direction":d,"data-panel-group-id":f,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":g,onBlur:()=>y(!1),onFocus:()=>y(!0),onMouseDown:e=>{p(g,e.nativeEvent);const{onDragging:t}=l.current;t&&t(!0)},onMouseUp:k,onTouchCancel:k,onTouchEnd:k,onTouchStart:e=>{p(g,e.nativeEvent);const{onDragging:t}=l.current;t&&t(!0)},ref:s,role:"separator",style:{...x,...o},tabIndex:0})}function A2(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Tq(t.components[n].defaultProps,r):r}function j2(e,t,n,r,i){const[o,a]=c.useState((()=>i&&n?n(e).matches:r?r(e).matches:t));return rL((()=>{if(!n)return;const t=n(e),r=()=>{a(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}}),[e,n]),o}$2.displayName="PanelGroup",Q2.displayName="forwardRef(PanelGroup)",R2.displayName="PanelResizeHandle";const D2={...d}.useSyncExternalStore;function M2(e,t,n,r,i){const o=c.useCallback((()=>t),[t]),a=c.useMemo((()=>{if(i&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return o}),[o,e,r,i,n]),[s,l]=c.useMemo((()=>{if(null===n)return[o,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]}),[o,n,e]);return D2(l,s,a)}function I2(e={}){const{themeId:t}=e;return function(e,n={}){let r=Hq();r&&t&&(r=r[t]||r);const i="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(i?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:l=!1}=A2({name:"MuiUseMediaQuery",props:n,theme:r});let u="function"==typeof e?e(r):e;return u=u.replace(/^@media( ?)/m,""),(void 0!==D2?M2:j2)(u,o,a,s,l)}}I2();const z2=I2({themeId:kq});var W2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 48 48"},e,{ref:t}),c.createElement("path",{d:"M10.5 8.25c0-.97.78-1.75 1.75-1.75H24v8.75A3.75 3.75 0 0 0 27.75 19h9.75v20.75c0 .97-.78 1.75-1.75 1.75H24.26c-.52.9-1.16 1.75-1.88 2.5h13.37C38.1 44 40 42.1 40 39.75V18.41c0-.6-.24-1.16-.66-1.59L27.18 4.66c-.43-.42-1-.66-1.6-.66H12.26A4.25 4.25 0 0 0 8 8.25V23c.8-.34 1.63-.6 2.5-.76V8.25Zm24.98 8.25h-7.73c-.69 0-1.25-.56-1.25-1.25V7.52l8.98 8.98ZM24 35a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-10-7a1 1 0 1 0-2 0v6H6a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6v-6Z"}))}));W2.displayName="DocumentAdd";var N2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))}));N2.displayName="DocumentDuplicate";var L2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}))}));L2.displayName="Eye";var F2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5a17.92 17.92 0 0 1-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}));F2.displayName="GlobeAlt";var U2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}));U2.displayName="Trash";var X2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M13 6.99h1.79c.45 0 .67-.54.35-.85l-2.79-2.78a.513.513 0 0 0-.71 0L8.86 6.14c-.32.31-.1.85.35.85H11v10.02H9.21c-.45 0-.67.54-.35.85l2.79 2.78c.2.19.51.19.71 0l2.79-2.78c.32-.31.09-.85-.35-.85H13V6.99z"}))}));X2.displayName="Height";var q2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))}));q2.displayName="MoreVert";var B2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z"}))}));B2.displayName="Publish";var V2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M21.19 21.19 2.81 2.81 1.39 4.22l2.27 2.27A9.91 9.91 0 0 0 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.42zm-10.6-4.59-4.24-4.24 1.41-1.41 2.83 2.83.18-.18 1.41 1.41-1.59 1.59zm3-5.84-7.1-7.1A9.91 9.91 0 0 1 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51L15 12.17l2.65-2.65-1.41-1.41-2.65 2.65z"}))}));V2.displayName="Unpublished";const Y2=UD("EditorWorkflowToolbarButtons",["not-checked","status-label"]),Z2=({hasChanged:e,isPersisting:t,onPersist:n,currentStatus:r,isUpdatingStatus:i,onChangeStatus:o,disabled:a,isLoading:s,mobile:l,useOpenAuthoring:u})=>{const d=LD(),f=(0,c.useMemo)((()=>({[De.DRAFT]:d("editor.editorToolbar.draft"),[De.PENDING_REVIEW]:d("editor.editorToolbar.inReview"),[De.PENDING_PUBLISH]:d("editor.editorToolbar.ready")})),[d]),h=(0,c.useMemo)((()=>({[De.DRAFT]:"info",[De.PENDING_REVIEW]:"warning",[De.PENDING_PUBLISH]:"success"})),[]),p=(0,c.useCallback)((()=>{e&&n()}),[e,n]);return c.createElement(c.Fragment,null,r?u?c.createElement(c.Fragment,null,c.createElement(uJ,{className:Y2["status-label"],color:h[r]},f[r]),r===De.DRAFT?c.createElement(GD,{variant:"outlined",color:"warning",onClick:()=>o(De.PENDING_REVIEW)},d("workflow.openAuthoring.markReadyForReview")):null):c.createElement(NZ,{label:i?d("editor.editorToolbar.updating"):s?d("app.app.loading"):d("editor.editorToolbar.status",{status:f[r]}),color:"secondary",disabled:a,"aria-label":"change status options dropdown"},c.createElement(FZ,null,c.createElement(OG,{onClick:()=>o(De.DRAFT),startIcon:r===De.DRAFT?TH:void 0,contentClassName:r!==De.DRAFT?Y2["not-checked"]:""},f[De.DRAFT]),c.createElement(OG,{onClick:()=>o(De.PENDING_REVIEW),startIcon:r===De.PENDING_REVIEW?TH:void 0,contentClassName:r!==De.PENDING_REVIEW?Y2["not-checked"]:""},f[De.PENDING_REVIEW]),c.createElement(OG,{onClick:()=>o(De.PENDING_PUBLISH),startIcon:r===De.PENDING_PUBLISH?TH:void 0,contentClassName:r!==De.PENDING_PUBLISH?Y2["not-checked"]:""},f[De.PENDING_PUBLISH]))):l?c.createElement("div",null):null,c.createElement(GD,{disabled:!e||a,onClick:p,color:e?"primary":"secondary",variant:e?"contained":"outlined","aria-label":"save unpublished entry"},d(t?"editor.editorToolbar.saving":"editor.editorToolbar.save")))},G2=UD("EditorToolbar",["root","more-menu","more-menu-button","more-menu-label-icon","preview-toggle","discard-button","delete-button","publish-button","publish-button-icon","publish-button-label","workflow-controls"]),H2=({hasChanged:e,collection:t,onDuplicate:n,isPersisting:r=!1,onPersist:i,onPersistAndDuplicate:o,onPersistAndNew:a,isNewEntry:s,isModification:l,onDelete:u,showPreviewToggle:d,previewActive:f,scrollSyncActive:h,showI18nToggle:p,i18nActive:m,togglePreview:g,toggleScrollSync:v,toggleI18n:O,slug:y,className:b,showMobilePreview:w,onMobilePreviewToggle:k,onDiscardDraft:x,currentStatus:_,isUpdatingStatus:S,onChangeStatus:P,hasUnpublishedChanges:E,isPublishing:C,onPublish:T,onUnPublish:$,onDeleteUnpublishedChanges:Q,onPublishAndNew:R,onPublishAndDuplicate:A,disabled:j})=>{const D=LD(),M=pz(kG),I=(0,c.useMemo)((()=>{var e;return null!==(e="folder"in t&&t.create)&&void 0!==e&&e}),[t]),z=(0,c.useMemo)((()=>_P(t)),[t]),W=(0,c.useMemo)((()=>function(e,t){var n;const r=yP(e,t);return r?r.publish:!("publish"in e)||null===(n=e.publish)||void 0===n||n}(t,y)&&!M),[t,y,M]),N=(0,c.useMemo)((()=>!s&&!e),[e,s]),L=pz(bG),F=pz(vC),U=hz(),X=(0,c.useCallback)((async()=>{y&&await YM({title:"editor.editorToolbar.discardChangesTitle",body:{key:"editor.editorToolbar.discardChangesBody"},color:"warning"})&&(await U(LI(t,y)),F?await U(Yz(t,y)):await U(FI(t,y)),x())}),[t,U,x,y,F]),q=(0,c.useCallback)((()=>{F?T():i()}),[i,T,F]),B=(0,c.useCallback)((()=>{F?R():a()}),[a,R,F]),V=(0,c.useCallback)((()=>{F?A():o()}),[o,A,F]),Y=(0,c.useMemo)((()=>{const e=[];!F&&!N||F&&E?(e.push(c.createElement(OG,{key:"publishNow",onClick:q,startIcon:B2,"data-testid":"publish-now-button"},D("editor.editorToolbar.publishNow"))),I&&e.push(c.createElement(OG,{key:"publishAndCreateNew",onClick:B,startIcon:W2,"data-testid":"publish-and-create-new-button"},D("editor.editorToolbar.publishAndCreateNew")),c.createElement(OG,{key:"publishAndDuplicate",onClick:V,startIcon:N2,"data-testid":"publish-and-duplicate-button"},D("editor.editorToolbar.publishAndDuplicate")))):I&&e.push(c.createElement(OG,{key:"duplicate",onClick:n,startIcon:N2,"data-testid":"duplicate-button"},D("editor.editorToolbar.duplicate")));const t=[e];return F&&I&&W&&z&&t.push([c.createElement(OG,{key:"unpublish",onClick:$,startIcon:V2,color:"warning","data-testid":"unpublish-button"},D("editor.editorToolbar.unpublish"))]),t}),[I,z,W,V,B,q,E,N,n,$,D,F]),Z=(0,c.useMemo)((()=>E?l?"editor.editorToolbar.deleteUnpublishedChanges":s||!l?"editor.editorToolbar.deleteUnpublishedEntry":void 0:s||l?void 0:"editor.editorToolbar.deletePublishedEntry"),[E,l,s]),G=(0,c.useMemo)((()=>F?C?"editor.editorToolbar.publishing":E?"editor.editorToolbar.publish":s?void 0:"editor.editorToolbar.published":r?"editor.editorToolbar.publishing":N?"editor.editorToolbar.published":"editor.editorToolbar.publish"),[E,s,r,N,C,F]);return c.createElement("div",{className:qD(G2.root,b)},p||d||z||e?c.createElement(NZ,{key:"extra-menu",label:c.createElement(q2,{className:G2["more-menu-label-icon"]}),color:"secondary",variant:"text",rootClassName:G2["more-menu"],buttonClassName:G2["more-menu-button"],hideDropdownIcon:!0,"aria-label":"more options dropdown",disabled:j,"data-testid":"editor-extra-menu"},p||d?c.createElement(FZ,null,p&&c.createElement(OG,{onClick:O,startIcon:F2,endIcon:m?TH:void 0},D("editor.editorInterface.sideBySideI18n")),d&&c.createElement(c.Fragment,null,c.createElement(OG,{onClick:g,disabled:L,startIcon:L2,endIcon:f&&!m?TH:void 0},D("editor.editorInterface.preview")),c.createElement(OG,{onClick:v,disabled:L||!m&&!f,startIcon:X2,endIcon:h&&(m||f)?TH:void 0},D("editor.editorInterface.toggleScrollSync")))):null,e?c.createElement(FZ,{key:"discard-button"},c.createElement(OG,{key:"discardChanges",onClick:X,startIcon:U2,color:"warning","data-testid":"discard-button"},D("editor.editorToolbar.discardChanges"))):null,!z||M&&!E||F&&!Z?null:c.createElement(FZ,{key:"delete-button"},c.createElement(OG,{onClick:F&&Z&&"editor.editorToolbar.deletePublishedEntry"!==Z?Q:u,startIcon:U2,color:"error","data-testid":"delete-button"},D(F?Z:"editor.editorToolbar.deleteEntry")))):null,d?c.createElement(FN,{icon:L2,key:"show-preview-button",title:D("editor.editorInterface.preview"),variant:w?"contained":"text",onClick:k,rootClassName:G2["preview-toggle"],"aria-label":"toggle preview",disabled:j}):null,e?c.createElement(FN,{icon:U2,key:"discard-button",title:D("editor.editorToolbar.discardChanges"),color:"warning",variant:"text",onClick:X,rootClassName:G2["discard-button"],"aria-label":"discard chnages",disabled:j}):!z||M&&!E||F&&!Z?null:c.createElement(FN,{icon:U2,key:"delete-button",title:D(F?Z:"editor.editorToolbar.deleteEntry"),color:"error",variant:"text",onClick:F&&Z&&"editor.editorToolbar.deletePublishedEntry"!==Z?Q:u,rootClassName:G2["delete-button"],"aria-label":"delete",disabled:j}),F?c.createElement("div",{className:G2["workflow-controls"]},c.createElement(Z2,{hasChanged:e,isPersisting:r,onPersist:i,currentStatus:_,isUpdatingStatus:S,disabled:j,onChangeStatus:P,isLoading:L,useOpenAuthoring:M})):null,!M&&G?c.createElement(NZ,{label:D(G),color:"editor.editorToolbar.published"===G?"success":"primary",disabled:j||1==Y.length&&0===Y[0].length,startIcon:B2,rootClassName:G2["publish-button"],iconClassName:G2["publish-button-icon"],labelClassName:G2["publish-button-label"],hideDropdownIconOnMobile:!0,"aria-label":"publish options dropdown","data-testid":"publish-dropdown"},Y.map(((e,t)=>c.createElement(FZ,{key:`menu-group-${t}`},e)))):null)};function K2(e){return null==e||Array.isArray(e)&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||"string"==typeof e&&""===e}function J2({field:e,value:t,t:n}){var r,i;return!(null!==(r=e.required)&&void 0!==r&&!r||!K2(t))&&{type:FE.PRESENCE,message:n("editor.editorControlPane.widget.required",{fieldLabel:null!==(i=e.label)&&void 0!==i?i:e.name})}}function e3({field:e,value:t,t:n}){var r;const i=null!==(r=e.pattern)&&void 0!==r&&r;if(K2(t))return!1;let o;var a;return o="string"==typeof t?t:"number"==typeof t||"boolean"==typeof t?`${t}`:JSON.stringify(t),!(!i||K2(o)||RegExp(i[0]).test(o))&&{type:FE.PATTERN,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:null!==(a=e.label)&&void 0!==a?a:e.name,pattern:i[1]})}}const t3=cC([function(e){return e.medias}],(e=>Object.values(e).some((e=>e.isLoading))));function n3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r3(e){for(var t=1;t{a(function(e,t){return{type:uQ,payload:{searchTerm:e,request:void 0}}}(r));const l=s(),u=l.config;if(!u.config)return a(e0(new Error("Config not found")));const c=DC(u.config),d=Object.values(l.collections).find((e=>e.name===t));if(!d)return a(e0(new Error("Collection not found")));try{const t=await c.query(d,u.config,n,r,i,o);return a(function(e,t){return{type:cQ,payload:{namespace:e,hits:t}}}(e,t.hits))}catch(e){if(console.error(e),e instanceof Error)return a(e0(e))}}}},s3=xT((function(e,t){var n;const{collections:r,entryDraft:i}=e,o=i.entry,a=i.entry?r[i.entry.collection]:null,s=yP(a,null===(n=i.entry)||void 0===n?void 0:n.slug),l=t3(e);return r3(r3({},t),{},{config:e.config,entry:o,collection:a,collectionFile:s,isLoadingAsset:l})}),a3),l3=s3((({collection:e,collectionFile:t,config:n,entry:r,field:i,fieldsErrors:o,submitted:a,disabled:s,parentDuplicate:l=!1,locale:u,parentPath:d,query:f,value:h,forList:p=!1,listItemPath:m,forSingleList:g=!1,changeDraftField:v,i18n:O,fieldName:y,isMeta:b=!1,controlled:w=!1})=>{const k=LD(),x=hz(),_=Wz(),S=i.widget,P=PE(S),E=(0,c.useMemo)((()=>d.length>0?`${d}.${null!=y?y:i.name}`:null!=y?y:i.name),[i.name,y,d]),C=function(e,t){const n=(0,c.useRef)(e),r=n.current,i=t(r,e);return(0,c.useEffect)((()=>{i||(n.current=e)})),i?r:e}(h,tP()),[T,$]=(0,c.useState)((()=>P.converters.deserialize(C,i))),[Q,R]=(0,c.useState)(!C0()(P.getValidValue(T,i))),A=pz((e=>HM(e,E,O,b))),j=(a||Q)&&Boolean(A.length),D=(0,c.useMemo)((()=>l||Jk(i,u,null==O?void 0:O.defaultLocale)),[i,null==O?void 0:O.defaultLocale,l,u]),M=(0,c.useMemo)((()=>function(e,t,n){return t!==n&&e.i18n===Gk}(i,u,null==O?void 0:O.defaultLocale)||Jk(i,u,null==O?void 0:O.defaultLocale)),[i,null==O?void 0:O.defaultLocale,u]),I=function(e,t,n){return(0,c.useMemo)((()=>function(e,t,n){return!(!e.condition||!t||(Array.isArray(e.condition)?e.condition.find((e=>hx(t,e,n))):hx(t,e.condition,n)))}(e,t,n)),[t,e,n])}(i,r,m);(0,c.useEffect)((()=>{(["list","object"].includes(i.widget)||M)&&$(C)}),[C]),(0,c.useEffect)((()=>{I?x(zI(E,[],O,b)):!Q&&!a||s||M||p&&"object"===i.widget&&1===i.fields.length||!1===(null==O?void 0:O.enforceRequiredNonDefault)&&(null==O?void 0:O.currentLocale)!==(null==O?void 0:O.defaultLocale)||(async()=>{const e=await async function(e,t,n,r){const i=n.getValidValue(t,e),o=[],a=[J2,e3,n.validator];for(const t of a){const n=await t({field:e,value:i,t:r});n&&o.push(n)}return o}(i,T,P,k);x(zI(E,e,O,b))})()}),[Q,x,i,O,I,E,a,k,T,P,s,b,M,p,g]);const z=(0,c.useCallback)((()=>{x(function(e,t,n){return{type:x$,payload:{path:e,i18n:t,isMeta:n}}}(E,O,b))}),[x,O,b,E]),W=y0((0,c.useCallback)((async e=>{R((t=>t||!C0()(P.getValidValue(e,i)))),$(e),v({path:E,field:i,value:P.converters.serialize(e,i),i18n:O,isMeta:b})}),[v,i,O,b,E,P]),250),N=(0,c.useMemo)((()=>n.config),[n.config]),[L,F]=(0,c.useState)(0);return(0,c.useEffect)((()=>{if(!Ie(T))return"default"in i&&Ie(!i.default)?(P.getDefaultValue?W(P.getDefaultValue(i.default,i)):W(i.default),void F((e=>e+1))):void(P.getDefaultValue&&(W(P.getDefaultValue(null,i)),F((e=>e+1))))}),[i,T,W,P]),(0,c.useMemo)((()=>e&&r&&N&&"hidden"!==i.widget?c.createElement("div",{className:qD(o3.root,I&&o3.hidden),"aria-label":null==S?void 0:S.concat(" field")},(0,c.createElement)(P.control,{key:`${_}-${L}`,collection:e,collectionFile:t,config:N,entry:r,field:i,fieldsErrors:o,submitted:a,disabled:s||D||w||M,duplicate:D,label:gx(i,k),locale:u,onChange:W,clearChildValidation:z,path:E,query:f,t:k,value:T,forList:p,listItemPath:m,forSingleList:g,i18n:O,hasErrors:j,errors:A,controlled:w||M})):null),[e,N,i,I,P.control,_,L,o,a,s,D,k,u,W,E,f,T,p,m,g,O,j,A])})),u3={};function c3(e,t){const n=c.useRef(u3);return n.current===u3&&(n.current=e(t)),n}const d3=[];class f3{static create(){return new f3}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function h3(){const e=c3(f3.create).current;return function(e){c.useEffect(e,d3)}(e.disposeEffect),e}function p3(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function m3(e){return`scale(${e}, ${e**2})`}const g3={entering:{opacity:1,transform:m3(1)},entered:{opacity:1,transform:"none"}},v3="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),O3=c.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:h,style:p,timeout:m="auto",TransitionComponent:g=Gq,...v}=e,O=h3(),y=c.useRef(),b=eB(),w=c.useRef(null),k=rB(w,HN(i),t),x=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},_=x(u),S=x(((e,t)=>{tB(e);const{duration:n,delay:r,easing:i}=nB({style:p,timeout:m,easing:o},{mode:"enter"});let a;"auto"===m?(a=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:v3?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),P=x(l),E=x(h),C=x((e=>{const{duration:t,delay:n,easing:r}=nB({style:p,timeout:m,easing:o},{mode:"exit"});let i;"auto"===m?(i=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:v3?i:.666*i,delay:v3?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=m3(.75),d&&d(e)})),T=x(f);return(0,lM.jsx)(g,{appear:r,in:a,nodeRef:w,onEnter:S,onEntered:P,onEntering:_,onExit:C,onExited:T,onExiting:E,addEndListener:e=>{"auto"===m&&O.start(y.current||0,e),n&&n(w.current,e)},timeout:"auto"===m?null:m,...v,children:(e,{ownerState:t,...n})=>c.cloneElement(i,{style:{opacity:0,transform:m3(.75),visibility:"exited"!==e||a?void 0:"hidden",...g3[e],...p,...i.props.style},ref:k,...n})})}));O3&&(O3.muiSupportAuto=!0);const y3=O3,b3=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:jq(n,r),{props:s,internalRef:l}=Iq({...o,externalSlotProps:a}),u=GN(l,a?.ref,e.additionalProps?.ref);return Aq(t,{...s,ref:u},r)};function w3(e){return cB("MuiPopper",e)}function k3(e){return"function"==typeof e?e():e}dB("MuiPopper",["root"]);const x3={},_3=c.forwardRef((function(e,t){const{anchorEl:n,children:r,direction:i,disablePortal:o,modifiers:a,open:s,placement:l,popperOptions:u,popperRef:d,slotProps:f={},slots:h={},TransitionProps:p,ownerState:m,...g}=e,v=c.useRef(null),O=GN(v,t),y=c.useRef(null),b=GN(y,d),w=c.useRef(b);rL((()=>{w.current=b}),[b]),c.useImperativeHandle(d,(()=>y.current),[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(l,i),[x,_]=c.useState(k),[S,P]=c.useState(k3(n));c.useEffect((()=>{y.current&&y.current.forceUpdate()})),c.useEffect((()=>{n&&P(k3(n))}),[n]),rL((()=>{if(!S||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{_(e.placement)})(e)}}];null!=a&&(e=e.concat(a)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=gY(S,v.current,{placement:k,...u,modifiers:e});return w.current(t),()=>{t.destroy(),w.current(null)}}),[S,o,a,s,u,k]);const E={placement:x};null!==p&&(E.TransitionProps=p);const C=(e=>{const{classes:t}=e;return qN({root:["root"]},w3,t)})(e),T=h.root??"div",$=b3({elementType:T,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:C.root});return(0,lM.jsx)(T,{...$,children:"function"==typeof r?r(E):r})})),S3=c.forwardRef((function(e,t){const{anchorEl:n,children:r,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:d="bottom",popperOptions:f=x3,popperRef:h,style:p,transition:m=!1,slotProps:g={},slots:v={},...O}=e,[y,b]=c.useState(!0);if(!s&&!u&&(!m||y))return null;let w;if(i)w=i;else if(n){const e=k3(n);w=e&&void 0!==e.nodeType?KN(e).body:KN(null).body}const k=u||!s||m&&!y?void 0:"none",x=m?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return(0,lM.jsx)(iL,{disablePortal:a,container:w,children:(0,lM.jsx)(_3,{anchorEl:n,direction:o,disablePortal:a,modifiers:l,ref:t,open:m?!y:u,placement:d,popperOptions:f,popperRef:h,slotProps:g,slots:v,...O,style:{position:"fixed",top:0,left:0,display:k,...p},TransitionProps:x,children:r})})})),P3=Pq(S3,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E3=c.forwardRef((function(e,t){const n=VN(),r=Rq({props:e,name:"MuiPopper"}),{anchorEl:i,component:o,components:a,componentsProps:s,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:f,placement:h,popperOptions:p,popperRef:m,transition:g,slots:v,slotProps:O,...y}=r,b=v?.root??a?.Root,w={anchorEl:i,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:f,placement:h,popperOptions:p,popperRef:m,transition:g,...y};return(0,lM.jsx)(P3,{as:o,direction:n?"rtl":"ltr",slots:{root:b},slotProps:O??s,...w,ref:t})})),C3=E3,T3=gB;let $3=0;const Q3={...d}.useId;function R3(e){if(void 0!==Q3){const t=Q3();return e??t}return function(e){const[t,n]=c.useState(e),r=e||t;return c.useEffect((()=>{null==t&&($3+=1,n(`mui-${$3}`))}),[t]),r}(e)}const A3=R3;function j3({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=c.useRef(void 0!==e),[o,a]=c.useState(t);return[i?e:o,c.useCallback((e=>{i||a(e)}),[])]}const D3=j3;function M3(e){return cB("MuiTooltip",e)}const I3=dB("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),z3=Pq(C3,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Cq((({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${I3.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${I3.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${I3.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${I3.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${I3.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${I3.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${I3.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${I3.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),W3=Pq("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${LB(n.placement.split("-")[0])}`]]}})(Cq((({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xX(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${I3.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${I3.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${I3.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${I3.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${I3.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${I3.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${I3.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${I3.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${I3.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]})))),N3=Pq("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Cq((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xX(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let L3=!1;const F3=new f3;let U3={x:0,y:0};function X3(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const q3=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:i,classes:o,components:a={},componentsProps:s={},describeChild:l=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:g=700,followCursor:v=!1,id:O,leaveDelay:y=0,leaveTouchDelay:b=1500,onClose:w,onOpen:k,open:x,placement:_="bottom",PopperComponent:S,PopperProps:P={},slotProps:E={},slots:C={},title:T,TransitionComponent:$,TransitionProps:Q,...R}=n,A=c.isValidElement(i)?i:(0,lM.jsx)("span",{children:i}),j=eB(),D=VN(),[M,I]=c.useState(),[z,W]=c.useState(null),N=c.useRef(!1),L=f||v,F=h3(),U=h3(),X=h3(),q=h3(),[B,V]=D3({controlled:x,default:!1,name:"Tooltip",state:"open"});let Y=B;const Z=A3(O),G=c.useRef(),H=T3((()=>{void 0!==G.current&&(document.body.style.WebkitUserSelect=G.current,G.current=void 0),q.clear()}));c.useEffect((()=>H),[H]);const K=e=>{F3.clear(),L3=!0,V(!0),k&&!Y&&k(e)},J=T3((e=>{F3.start(800+y,(()=>{L3=!1})),V(!1),w&&Y&&w(e),F.start(j.transitions.duration.shortest,(()=>{N.current=!1}))})),ee=e=>{N.current&&"touchstart"!==e.type||(M&&M.removeAttribute("title"),U.clear(),X.clear(),p||L3&&m?U.start(L3?m:p,(()=>{K(e)})):K(e))},te=e=>{U.clear(),X.start(y,(()=>{J(e)}))},[,ne]=c.useState(!1),re=e=>{p3(e.target)||(ne(!1),te(e))},ie=e=>{M||I(e.currentTarget),p3(e.target)&&(ne(!0),ee(e))},oe=e=>{N.current=!0;const t=A.props;t.onTouchStart&&t.onTouchStart(e)};c.useEffect((()=>{if(Y)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&J(e)}}),[J,Y]);const ae=rB(HN(A),I,t);T||0===T||(Y=!1);const se=c.useRef(),le={},ue="string"==typeof T;l?(le.title=Y||!ue||d?null:T,le["aria-describedby"]=Y?Z:null):(le["aria-label"]=ue?T:null,le["aria-labelledby"]=Y&&!ue?Z:null);const ce={...le,...R,...A.props,className:XN(R.className,A.props.className),onTouchStart:oe,ref:ae,...v?{onMouseMove:e=>{const t=A.props;t.onMouseMove&&t.onMouseMove(e),U3={x:e.clientX,y:e.clientY},se.current&&se.current.update()}}:{}},de={};h||(ce.onTouchStart=e=>{oe(e),X.clear(),F.clear(),H(),G.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",q.start(g,(()=>{document.body.style.WebkitUserSelect=G.current,ee(e)}))},ce.onTouchEnd=e=>{A.props.onTouchEnd&&A.props.onTouchEnd(e),H(),X.start(b,(()=>{J(e)}))}),d||(ce.onMouseOver=X3(ee,ce.onMouseOver),ce.onMouseLeave=X3(te,ce.onMouseLeave),L||(de.onMouseOver=ee,de.onMouseLeave=te)),u||(ce.onFocus=X3(ie,ce.onFocus),ce.onBlur=X3(re,ce.onBlur),L||(de.onFocus=ie,de.onBlur=re));const fe={...n,isRtl:D,arrow:r,disableInteractive:L,placement:_,PopperComponentProp:S,touch:N.current},he="function"==typeof E.popper?E.popper(fe):E.popper,pe=c.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(z),options:{element:z,padding:4}}];return P.popperOptions?.modifiers&&(e=e.concat(P.popperOptions.modifiers)),he?.popperOptions?.modifiers&&(e=e.concat(he.popperOptions.modifiers)),{...P.popperOptions,...he?.popperOptions,modifiers:e}}),[z,P.popperOptions,he?.popperOptions]),me=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e;return qN({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${LB(o.split("-")[0])}`],arrow:["arrow"]},M3,t)})(fe),ge="function"==typeof E.transition?E.transition(fe):E.transition,ve={slots:{popper:a.Popper,transition:a.Transition??$,tooltip:a.Tooltip,arrow:a.Arrow,...C},slotProps:{arrow:E.arrow??s.arrow,popper:{...P,...he??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...Q,...ge??s.transition}}},[Oe,ye]=zq("popper",{elementType:z3,externalForwardedProps:ve,ownerState:fe,className:XN(me.popper,P?.className)}),[be,we]=zq("transition",{elementType:y3,externalForwardedProps:ve,ownerState:fe}),[ke,xe]=zq("tooltip",{elementType:W3,className:me.tooltip,externalForwardedProps:ve,ownerState:fe}),[_e,Se]=zq("arrow",{elementType:N3,className:me.arrow,externalForwardedProps:ve,ownerState:fe,ref:W});return(0,lM.jsxs)(c.Fragment,{children:[c.cloneElement(A,ce),(0,lM.jsx)(Oe,{as:S??C3,placement:_,anchorEl:v?{getBoundingClientRect:()=>({top:U3.y,left:U3.x,right:U3.x,bottom:U3.y,width:0,height:0})}:M,popperRef:se,open:!!M&&Y,id:Z,transition:!0,...de,...ye,popperOptions:pe,children:({TransitionProps:e})=>(0,lM.jsx)(be,{timeout:j.transitions.duration.shorter,...e,...we,children:(0,lM.jsxs)(ke,{...xe,children:[T,r?(0,lM.jsx)(_e,{...Se}):null]})})})]})})),B3=q3;var V3=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}));V3.displayName="Error";const Y3=UD("LocaleDropdown",["root","dropdown","errors-icon","no-edit"]),Z3=({locale:e,locales:t,defaultLocale:n,dropdownText:r,canChangeLocale:i,onLocaleChange:o,excludeLocales:a=[n]})=>{const s=pz(GM),l=(0,c.useMemo)((()=>t.reduce(((r,i)=>{if(i===e||a.includes(i))return r;const o=ZM({currentLocale:i,defaultLocale:n,locales:t},!1).join(".");return r.push(...Object.keys(s).reduce(((e,t)=>(t.startsWith(o)&&e.push(...s[t].filter((e=>e.message)).map((e=>`${i}: ${e.message}`))),e)),[])),r}),[]).map(((e,t)=>0===t?e:c.createElement(c.Fragment,null,c.createElement("br",null),e)))),[s,n,a,e,t]);return i?c.createElement("div",{className:Y3.root},c.createElement(NZ,{label:r,rootClassName:Y3.dropdown,"aria-label":"locale options dropdown"},c.createElement(FZ,null,t.filter((e=>!a.includes(e))).map((e=>c.createElement(OG,{key:e,onClick:()=>null==o?void 0:o(e)},e))))),l.length>0?c.createElement(B3,{title:l},c.createElement(V3,{className:Y3["errors-icon"]})):null):c.createElement("div",{className:qD(Y3.root,"CMS_Button_root",Y3["no-edit"])},r)},G3=UD("EditorControlPane",["root","no-border","locale_dropdown_wrapper"]),H3=({collection:e,entry:t,fields:n,fieldsErrors:r,submitted:i,locale:o,canChangeLocale:a=!1,hideBorder:s,slug:l,onLocaleChange:u,allowDefaultLocale:d=!1,context:f="default",listItemPath:h,disabled:p})=>{var m,g,v;const O=LD(),y=(0,c.useMemo)((()=>{var t,n;return{name:"path",label:"nested"in e&&null!==(t=e.nested)&&void 0!==t&&null!==(n=t.path)&&void 0!==n&&n.label?e.nested.path.label:"Path",widget:"string",i18n:"none",hint:""}}),[e]),b=pz(dC),w=(0,c.useMemo)((()=>GE(e,t,l,null==b?void 0:b.slug)),[e,b,t,l]),k=(0,c.useMemo)((()=>{if(Hk(e)){const{locales:t,default_locale:n,enforce_required_non_default:r}=Kk(e);return{currentLocale:null!=o?o:null==t?void 0:t[0],locales:t,defaultLocale:n,enforceRequiredNonDefault:r}}}),[e,o]);return e&&n&&t&&!0!==t.partial?c.createElement("div",{className:qD(G3.root,s&&G3["no-border"])},null!=k&&k.locales&&o?c.createElement("div",{className:G3.locale_dropdown_wrapper},c.createElement(Z3,{locale:o,locales:k.locales,defaultLocale:k.defaultLocale,dropdownText:O("editor.editorControlPane.i18n.writingInLocale",{locale:null==o?void 0:o.toUpperCase()}),canChangeLocale:a,onLocaleChange:u,excludeLocales:d||"i18nSplit"!==f?[]:[k.defaultLocale]})):null,"nested"in e&&null!==(m=e.nested)&&void 0!==m&&m.path?c.createElement(l3,{key:"entry-path",field:y,value:null!==(g=null===(v=t.meta)||void 0===v?void 0:v.path)&&void 0!==g?g:w,fieldsErrors:r,submitted:i,locale:o,parentPath:"",i18n:k,listItemPath:h,controlled:!0,isMeta:!0,disabled:p}):null,n.map((e=>{const n=function(e,t,n){return t!==n&&e.i18n===Yk}(e,o,null==k?void 0:k.defaultLocale),a=k?`field-${o}_${e.name}`:`field-${e.name}`;return c.createElement(l3,{key:a,field:e,value:yx(e,t,n,o),fieldsErrors:r,submitted:i,locale:o,parentPath:"",i18n:k,listItemPath:h,disabled:p})}))):null};var K3=__webpack_require__(15836);class J3 extends CustomEvent{constructor(){super("livePreviewLoaded",{})}}const e4=/\s+at.*[(\s](.*)\)?/,t4=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;function n4(e,{pretty:t=!1,basePath:n,pathFilter:r}={}){const i=n&&new RegExp(`(file://)?${function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(n.replace(/\\/g,"/"))}/?`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(e4);if(null===t||!t[1])return!0;const n=t[1];return!(n.includes(".app/Contents/Resources/electron.asar")||n.includes(".app/Contents/Resources/default_app.asar")||n.includes("node_modules/electron/dist/resources/electron.asar")||n.includes("node_modules/electron/dist/resources/default_app.asar"))&&(r?!t4.test(n)&&r(n):!t4.test(n))})).filter((e=>""!==e.trim())).map((e=>(i&&(e=e.replace(i,"")),t&&(e=e.replace(e4,((e,t)=>e.replace(t,t.replace("","~"))))),e))).join("\n")}const r4=UD("ErrorBoundary",["root","header","title","report-link","content","details-title","error-line"]),i4="https://github.com/StaticJsCMS/static-cms/issues/new?";function o4(e,t){try{const n=function(e){var t,n;let r="";r="@staticcms/app@4.3.0";const i=function(e,t,n,r){return`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Static CMS version: \`${e}\`\n - Git provider: \`${t}\`\n - Browser version: \`${n}\`\n\n**CMS configuration**\n\`\`\`\n${r}\n\`\`\`\n\n**Additional context**\n`}("@staticcms/app@4.3.0",null!==(t=null==e||null===(n=e.backend)||void 0===n?void 0:n.name)&&void 0!==t?t:"Unknown",navigator.userAgent,Ri.stringify(e));return i}(t),r=new URLSearchParams;return r.append("title",fs()(e,{length:100})),r.append("body",fs()(n,{length:4e3,omission:"\n..."})),r.append("labels","type: bug"),`${i4}${r.toString()}`}catch(e){return console.error(e),`${i4}template=bug_report.md`}}const a4=({entry:e})=>{const t=LD();return console.info("[StaticCMS] Recovered entry",e),c.createElement(c.Fragment,null,c.createElement("hr",null),c.createElement("h2",null,t("ui.errorBoundary.recoveredEntry.heading")),c.createElement("strong",null,t("ui.errorBoundary.recoveredEntry.warning")),c.createElement("button",{onClick:()=>v1(e)},t("ui.errorBoundary.recoveredEntry.copyButtonLabel")),c.createElement("pre",null,c.createElement("code",null,e)))};class s4 extends c.Component{constructor(...e){super(...e),function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"state",{hasError:!1,errorMessage:"",errorTitle:"",backup:""})}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:n4(e.stack,{basePath:window.location.origin||""}),errorTitle:e.toString()}}shouldComponentUpdate(e,t){return!this.props.showBackup||this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup}async componentDidUpdate(){if(this.props.showBackup){const e=await ZS.getItem("backup");e&&(console.info("[StaticCMS] Recovered backup",e),this.setState({backup:e}))}}render(){const{hasError:e,errorMessage:t,backup:n,errorTitle:r}=this.state,{showBackup:i,t:o}=this.props;return e?c.createElement("div",{key:"error-boundary-container",className:r4.root},c.createElement("div",{className:r4.header},c.createElement("h1",{className:r4.title},o("ui.errorBoundary.title")),c.createElement("p",null,c.createElement("span",null,o("ui.errorBoundary.details")),c.createElement("a",{href:o4(r,this.props.config),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url",className:r4["report-link"]},o("ui.errorBoundary.reportIt"))),c.createElement("p",null,o("ui.errorBoundary.privacyWarning").split("\n").map(((e,t)=>[c.createElement("span",{key:`private-warning-${t}`},e),c.createElement("br",{key:`break-${t}`})])))),c.createElement("hr",null),c.createElement("div",{className:r4.content},c.createElement("h2",{className:r4["details-title"]},o("ui.errorBoundary.detailsHeading")),c.createElement("p",null,t.split("\n").map(((e,t)=>[c.createElement("span",{key:`error-line-${t}`,className:r4["error-line"]},e),c.createElement("br",{key:`error-break-${t}`})]))),n&&i&&c.createElement(a4,{key:"backup",entry:n}))):this.props.children}}const l4=s4,u4=({collection:e,fields:t,widgetFor:n})=>e&&t?c.createElement("div",null,t.map((e=>c.createElement("div",{key:e.name},n(e.name))))):null,c4=(0,c.memo)((({previewComponent:e,previewProps:t})=>e?(0,c.createElement)(e,t):null));c4.displayName="EditorPreviewContent";const d4=c4;function f4(){const e=TG(),t=pz(wG);return(0,c.useMemo)((()=>{var n;return null!==(n=e.find((e=>e.name.toLowerCase()===t)))&&void 0!==n?n:SG[0]}),[e,t])}function h4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p4(e){for(var t=1;t{const n=(0,c.useRef)(),r=f4();return c.createElement(K3.Kr,null,(i=>{var o,a;return n.current||(n.current=null===(a=i.document)||void 0===a?void 0:a.scrollingElement),c.createElement(sH,{theme:r,element:null===(o=i.document)||void 0===o?void 0:o.documentElement},c.createElement(vD.ScrollSyncPane,{key:"preview-frame-scroll-sync",attachTo:n},c.createElement("div",{className:g4.root},c.createElement("div",{className:g4.content},c.createElement(d4,{key:"preview-frame-content",previewComponent:e,previewProps:p4(p4({},t),{},{document:i.document,window:i.window})})))))}))};function O4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y4(e){for(var t=1;t{const t=LD(),{editorSize:n,entry:r,collection:i,fields:o,previewInFrame:a,livePreviewUrlTemplate:s,showMobilePreview:l}=e,u=pz(fC),d=pz(dC),{widgetFor:f,widgetsFor:h}=sJ(d,i,o,r),p=(0,c.useMemo)((()=>{const e=yE().map(((e,t)=>e.raw?c.createElement("style",{key:t},e.value):c.createElement("link",{key:t,href:e.value,type:"text/css",rel:"stylesheet"})));return 0===e.length?c.createElement("style",{key:"global"},'\n body {\n margin: 0;\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n }\n\n img {\n max-width: 100%;\n }\n\n a {\n color: var(--primary-main);\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n .frame-content {\n padding: 8px 12px 8px 0;\n }\n\n @media (max-width: 1024px) {\n .frame-content {\n padding: 8px 12px;\n }\n }\n\n .CMS_PreviewFrameContent_content {\n color: var(--text-primary);\n }\n\n .CMS_Scrollbar_root {\n --scrollbar-foreground: var(--scrollbar-main);\n --scrollbar-background: var(--background-dark);\n }\n\n .CMS_Scrollbar_root.CMS_Scrollbar_secondary {\n --scrollbar-foreground: var(--scrollbar-light);\n --scrollbar-background: var(--background-main);\n }\n\n .CMS_Scrollbar_root {\n /* Foreground, Background */\n scrollbar-color: var(--scrollbar-foreground) var(--scrollbar-background);\n }\n\n .CMS_Scrollbar_root::-webkit-scrollbar {\n width: 10px; /* Mostly for vertical scrollbars */\n height: 10px; /* Mostly for horizontal scrollbars */\n }\n\n .CMS_Scrollbar_root::-webkit-scrollbar-corner {\n background: rgba(0,0,0,0);\n }\n\n .CMS_Scrollbar_root::-webkit-scrollbar-thumb {\n /* Foreground */\n background: var(--scrollbar-foreground);\n }\n\n .CMS_Scrollbar_root::-webkit-scrollbar-track {\n /* Background */\n background: var(--scrollbar-background);\n }\n'):e}),[]),m=(0,c.useMemo)((()=>{var e;return null!==(e=bE(SP(i,r.slug)))&&void 0!==e?e:u4}),[i,r.slug]),g=(0,c.useMemo)((()=>'\n \n \n \n \n \n \n
\n \n \n '),[]),v=(0,c.useMemo)((()=>document.getElementById("cms-root")),[]),O=pz(wG),y=(0,c.useMemo)((()=>y4(y4({},e),{},{theme:O,widgetFor:f,widgetsFor:h})),[e,O,f,h]),b=(0,c.useRef)(null);XD("data:update",(0,c.useCallback)((e=>{var t;b.current&&(null===(t=b.current.contentWindow)||void 0===t||t.postMessage({message:"data:update",value:{fieldPath:e.detail.fieldPath,value:e.detail.value}}))}),[]));const w=(0,c.useCallback)((()=>{window.dispatchEvent(new J3)}),[]);return(0,c.useMemo)((()=>v?c.createElement("div",{className:qD(w4.root,n===PH&&w4.compact,!l&&w4["show-mobile-preview"])},c.createElement(l4,{config:u,t},s?c.createElement("iframe",{key:"live-preview-frame",ref:b,src:`${s}?useCmsData=true`,className:w4["live-preview"],onLoad:w}):a?c.createElement(K3.ZP,{key:"preview-frame",id:"preview-pane",head:p,initialContent:g,className:w4.frame},i?c.createElement(v4,{key:"preview-frame-content",previewComponent:m,previewProps:y4({},y)}):t("collection.notFound")):c.createElement(vD.ScrollSyncPane,{key:"preview-wrapper-scroll-sync"},c.createElement("div",{key:"preview-wrapper",id:"preview-pane",className:qD(w4.inline,"CMS_Scrollbar_root")},i?c.createElement(c.Fragment,null,p,c.createElement(d4,{key:"preview-wrapper-content",previewComponent:m,previewProps:y4(y4({},y),{},{document,window})})):t("collection.notFound"))))):null),[i,n,v,w,g,s,u,m,a,y,p,l,t])},x4=UD("Editor",["root","default","i18n","i18n-panel","i18n-active","split-view","wrapper-preview","wrapper-i18n-side-by-side","compact","toolbar","content","content-wrapper","resize-handle","resize-handle-icon","mobile-root","workflow","mobile-preview","mobile-preview-active","mobile-workflow-controls"]),_4="cms.preview-visible",S4="cms.i18n-visible",P4=({i18nActive:e,previewActive:t,editor:n,editorSideBySideLocale:r,editorWithPreview:i})=>e?r:t?i:c.createElement("div",{className:x4["content-wrapper"]},c.createElement("div",{className:x4.content},n)),E4=({collection:e,entry:t,fields:n=[],fieldsErrors:r,onDelete:i,onDuplicate:o,onPersist:a,hasChanged:s,isNewEntry:l,isModification:u,draftKey:d,scrollSyncActive:f,loadScroll:h,toggleScroll:p,submitted:m,slug:g,onDiscardDraft:v,currentStatus:O,isUpdatingStatus:y,onChangeStatus:b,hasUnpublishedChanges:w,isPublishing:k,onPublish:x,onUnPublish:_,onDeleteUnpublishedChanges:S})=>{var P,E;const C=pz(dC),T=pz(vC),$=pz(kG),Q=z2("(max-width: 1024px)"),R=pz(bG),A=(0,c.useMemo)((()=>Boolean(R||t.isPersisting||k||y||t.isDeleting)),[t.isDeleting,t.isPersisting,R,k,y]),j=(0,c.useMemo)((()=>Boolean(A||t.openAuthoring)),[A,t.openAuthoring]),{locales:D,default_locale:M}=null!==(P=(0,c.useMemo)((()=>Kk(e)),[e]))&&void 0!==P?P:{},I=(0,c.useMemo)((()=>{var e;return null!==(e=Q?D:null==D?void 0:D.filter((e=>e!==M)))&&void 0!==e?e:[]}),[Q,D,M]),[z,W]=(0,c.useState)("false"!==localStorage.getItem(_4)),N=(0,c.useMemo)((()=>D&&D.length>0),[D]),[L,F]=(0,c.useState)(Boolean("false"!==localStorage.getItem(S4)&&N)),[U,X]=(0,c.useState)(null!==(E=L?null==I?void 0:I[0]:M)&&void 0!==E?E:"en");(0,c.useEffect)((()=>{var e;X(null!==(e=L?null==I?void 0:I[0]:M)&&void 0!==e?e:"en")}),[M,L,I]),(0,c.useEffect)((()=>{h()}),[h]);const q=(0,c.useCallback)((async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;a({createNew:t,duplicate:n})}),[a]),B=(0,c.useCallback)((async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;x({createNew:t,duplicate:n})}),[x]),V=(0,c.useCallback)((()=>{p()}),[p]),Y=(0,c.useCallback)((()=>{const e=!L;F(e),X((t=>e&&t===M?null==I?void 0:I[0]:t)),localStorage.setItem(S4,`${e}`)}),[L,X,I,M]),Z=(0,c.useCallback)((()=>{let e=!0;L?Y():e=!z,W(e),localStorage.setItem(_4,`${e}`)}),[Y,L,z]),G=(0,c.useCallback)((e=>{X(e)}),[]),H=TP(e,t.slug),{livePreviewUrlTemplate:K,showPreviewToggle:J,previewInFrame:ee,editorSize:te}=(0,c.useMemo)((()=>{var n,r,i;let o="string"==typeof(null===(n=e.editor)||void 0===n?void 0:n.live_preview)&&e.editor.live_preview,a=!0,s=!0,l=null!==(r=null===(i=e.editor)||void 0===i?void 0:i.size)&&void 0!==r?r:PH;var u,c,d;e.editor&&("preview"in e.editor&&(a=null===(u=e.editor.preview)||void 0===u||u),"frame"in e.editor&&(s=null===(c=e.editor.frame)||void 0===c||c));return"files"in e&&null!=H&&H.editor&&("string"==typeof H.editor.live_preview&&(o=H.editor.live_preview),"preview"in H.editor&&void 0!==H.editor.preview&&(a=H.editor.preview),"frame"in H.editor&&void 0!==H.editor.frame&&(s=H.editor.frame),void 0!==(null==H||null===(d=H.editor)||void 0===d?void 0:d.size)&&(l=H.editor.size)),{livePreviewUrlTemplate:o?VP(o,t,e,null==C?void 0:C.slug):void 0,showPreviewToggle:a,previewInFrame:s,editorSize:l}}),[e,null==C?void 0:C.slug,t,null==H?void 0:H.editor]),ne=(0,c.useMemo)((()=>J&&z),[z,J]),re=Hk(e),[ie,oe]=(0,c.useState)(!1),ae=(0,c.useCallback)((()=>{z||Z(),oe((e=>!e))}),[Z,z]),se=(0,c.useMemo)((()=>c.createElement("div",{key:M,id:"control-pane",className:qD(x4.default,(ne||L)&&`${x4["split-view"]} CMS_Scrollbar_root`)},c.createElement(H3,{collection:e,entry:t,fields:n,fieldsErrors:r,locale:L?M:U,submitted:m,hideBorder:!ne&&!L,canChangeLocale:N&&!L,onLocaleChange:G,slug:g,disabled:j}))),[M,ne,L,e,t,n,r,U,m,N,G,g,j]),le=(0,c.useMemo)((()=>null==D?void 0:D.filter((e=>Q||e!==M)).map((i=>c.createElement(vD.ScrollSyncPane,{key:i},c.createElement("div",{className:qD(x4.i18n,U===i&&x4["i18n-active"],"CMS_Scrollbar_root")},c.createElement(H3,{collection:e,entry:t,fields:n,fieldsErrors:r,locale:i,onLocaleChange:G,allowDefaultLocale:Q,submitted:m,canChangeLocale:!0,context:Q?void 0:"i18nSplit",hideBorder:!0,disabled:j})))))),[D,M,U,e,t,n,r,G,Q,m,j]),ue=(0,c.useMemo)((()=>re?dx(e,t,U,M):t),[re,e,M,t,U]),ce=c.createElement("div",{className:x4["mobile-preview"]},c.createElement(k4,{collection:e,previewInFrame:ee,livePreviewUrlTemplate:K,entry:ue,fields:n,editorSize:te,showMobilePreview:ie})),de=c.createElement(c.Fragment,null,Q?c.createElement("div",{className:qD(x4["mobile-root"],ie&&x4["mobile-preview-active"],T&&x4.workflow)},se,ce):c.createElement(Q2,{key:"editor-with-preview",autoSaveId:`editor-with-preview-${e.name}${H?`-${H.name}`:""}`,direction:"horizontal",units:te===PH?"pixels":"percentages",className:qD(x4.root,te===PH&&x4.compact),disablePointerEventsDuringResize:!0},c.createElement(e2,{defaultSize:te===PH?450:50,minSize:te===PH?450:30},c.createElement(vD.ScrollSyncPane,null,se)),c.createElement(R2,{className:x4["resize-handle"]},c.createElement(D1,{className:x4["resize-handle-icon"]})),c.createElement(e2,{defaultSize:te===PH?void 0:50,minSize:te===PH?300:30},c.createElement(k4,{collection:e,previewInFrame:ee,livePreviewUrlTemplate:K,entry:ue,fields:n,editorSize:te,showMobilePreview:ie})))),fe=c.createElement(c.Fragment,null,Q?c.createElement("div",{className:qD(x4["mobile-root"],ie&&x4["mobile-preview-active"],T&&x4.workflow)},le,ce):c.createElement(Q2,{key:"editor-side-by-side-locale",autoSaveId:`editor-side-by-side-locale-${e.name}`,direction:"horizontal",className:qD(x4.root,x4["wrapper-i18n-side-by-side"])},c.createElement(e2,{defaultSize:50,minSize:30},c.createElement(vD.ScrollSyncPane,null,se)),c.createElement(R2,{className:x4["resize-handle"]},c.createElement(D1,{className:x4["resize-handle-icon"]})),c.createElement(e2,{defaultSize:50,minSize:30,className:x4["i18n-panel"]},c.createElement(vD.ScrollSyncPane,null,c.createElement(c.Fragment,null,le))))),he=(0,c.useMemo)((()=>PP(e,t)),[e,t]),pe=(0,c.useMemo)((()=>YE(e,t.slug)),[e,t.slug]),me=iW(e,pe,{isNewEntry:l,summary:he}),ge=(0,c.useMemo)((()=>Boolean(t.isPersisting)),[t.isPersisting]);return c.createElement(yH,{breadcrumbs:me,noMargin:!0,noScroll:ne||L,navbarActions:c.createElement(H2,{isPersisting:ge,onPersist:q,onPersistAndNew:()=>q({createNew:!0}),onPersistAndDuplicate:()=>q({createNew:!0,duplicate:!0}),onDelete:i,onDuplicate:o,hasChanged:s,collection:e,isNewEntry:l,isModification:u,showPreviewToggle:J,previewActive:ne,scrollSyncActive:f,showI18nToggle:re,i18nActive:L,togglePreview:Z,toggleScrollSync:V,toggleI18n:Y,slug:g,showMobilePreview:ie,onMobilePreviewToggle:ae,className:x4.toolbar,onDiscardDraft:v,currentStatus:O,isUpdatingStatus:y,onChangeStatus:b,hasUnpublishedChanges:w,isPublishing:k,onDeleteUnpublishedChanges:S,onPublish:x,onUnPublish:_,onPublishAndNew:()=>B({createNew:!0}),onPublishAndDuplicate:()=>B({createNew:!0,duplicate:!0}),disabled:A})},T?c.createElement("div",{className:x4["mobile-workflow-controls"]},c.createElement(Z2,{hasChanged:s,isPersisting:ge,onPersist:a,currentStatus:O,isUpdatingStatus:y,disabled:A,onChangeStatus:b,isLoading:R,useOpenAuthoring:$,mobile:!0})):null,c.createElement(P4,{key:d,i18nActive:L,previewActive:ne&&!L,editor:se,editorSideBySideLocale:fe,editorWithPreview:de}))},C4=({name:e,slug:t,newRecord:n})=>{var r,i,o,a,s;const l=LD(),[u]=XT(),[d,f]=(0,c.useState)(0),h=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=g0(n.location.hash.substr(1)),t=e.pathname,i=void 0===t?"/":t,o=e.search,a=void 0===o?"":o,s=e.hash,l=void 0===s?"":s,u=r.state||{};return[u.idx,{pathname:i,search:a,hash:l,state:u.usr||null,key:u.key||"default"}]}var o=null;function a(){if(o)f.call(o),o=null;else{var e=d0.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(null!=n){var a=u-n;a&&(o={action:e,location:r,retry:function(){O(-1*a)}},O(a))}}else v(e)}}n.addEventListener("popstate",a),n.addEventListener("hashchange",(function(){m0(i()[1])!==m0(c)&&a()}));var s=d0.Pop,l=i(),u=l[0],c=l[1],d=p0(),f=p0();function h(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,i=r.indexOf("#");t=-1===i?r:r.slice(0,i)}return t}()+"#"+("string"==typeof e?e:m0(e))}function p(e,t){return void 0===t&&(t=null),tT({pathname:c.pathname,hash:"",search:""},"string"==typeof e?g0(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function m(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function v(e){s=e;var t=i();u=t[0],c=t[1],d.call({action:s,location:c})}function O(e){r.go(e)}return null==u&&(u=0,r.replaceState(tT({},r.state,{idx:u}),"")),{get action(){return s},get location(){return c},createHref:h,push:function e(t,i){var o=d0.Push,a=p(t,i);if(g(o,a,(function(){e(t,i)}))){var s=m(a,u+1),l=s[0],c=s[1];try{r.pushState(l,"",c)}catch(e){n.location.assign(c)}v(o)}},replace:function e(t,n){var i=d0.Replace,o=p(t,n);if(g(i,o,(function(){e(t,n)}))){var a=m(o,u),s=a[0],l=a[1];r.replaceState(s,"",l),v(i)}},go:O,back:function(){O(-1)},forward:function(){O(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return 1===f.length&&n.addEventListener(f0,h0),function(){t(),f.length||n.removeEventListener(f0,h0)}}}}(),p=hz(),m=ne(),g=pz(dC),v=pz(KM),O=pz((t=>tI(t,e))),y=pz(vC),b=pz((n=>vz(n,e,t))),w=(0,c.useMemo)((()=>Boolean(y&&b)),[b,y]),k=(0,c.useMemo)((()=>b&&b.status),[b]),x=(0,c.useMemo)((()=>{var e,t;return null!==(e=null===(t=v.entry)||void 0===t?void 0:t.isModification)&&void 0!==e&&e}),[null===(r=v.entry)||void 0===r?void 0:r.isModification]),_=(0,c.useMemo)((()=>v.hasChanged),[v.hasChanged]),S=(0,c.useMemo)((()=>{var e;return Boolean(null===(e=v.entry)||void 0===e?void 0:e.isUpdatingStatus)}),[null===(i=v.entry)||void 0===i?void 0:i.isUpdatingStatus]),P=(0,c.useMemo)((()=>{var e;return Boolean(null===(e=v.entry)||void 0===e?void 0:e.isPublishing)}),[null===(o=v.entry)||void 0===o?void 0:o.isPublishing]),E=pz((n=>RD(n,e,t))),C=(0,c.useMemo)((()=>IP(O,t)),[O,t]),T=pz(k0),$=(0,c.useMemo)((()=>O0()((function(e,n){null!=g&&g.disable_local_backup||!t||p(function(e,t){return(n,r)=>{const i=r().config;if(!i.config)throw new Error("Config not loaded");return DC(i.config).persistLocalDraftBackup(e,t,i.config)}}(e,n))}),2e3)),[g]),Q=(0,c.useCallback)((()=>{!O||null!=g&&g.disable_local_backup||($.cancel(),t&&p(LI(O,t)),p({type:P$}))}),[null==g?void 0:g.disable_local_backup,$,t,p,O]),[R,A]=(0,c.useState)(!1),j=(0,c.useCallback)(((e={})=>{const{createNew:n=!1,duplicate:r=!1}=e;O&&v.entry&&(A(!0),setTimeout((async()=>{try{Q(),y?await p(function(e,t,n,r){return async(i,o)=>{const a=o();if(!a.config.config)return;const s=a.entryDraft,l=s.fieldsErrors,u=Oz(a,e.name),c=jD(a,e.name).concat(u);if(!a.editorialWorkflow.ids&&i(Zz(a.collections)),Object.keys(l).length>0){return Object.values(l).find((e=>e.some((e=>e.type&&e.type===FE.PRESENCE))))&&i($A({type:"error",message:{key:"ui.toast.missingRequiredField"}})),Promise.reject()}const d=DC(a.config.config),f=s.entry;if(!f)return;f.status=De.DRAFT;const h=YI({entry:f});let p=ZI(e,f);p=Fz(Fz({},p),{},{raw:d.entryToRaw(e,p,a.config.config)});const m=Fz(Fz({},s),{},{entry:p});i(qz(e,f.slug));const g=n?d.persistUnpublishedEntry:d.persistEntry;try{const n=await g.call(d,{config:a.config.config,collection:e,entryDraft:m,assetProxies:h,rootSlug:t,usedSlugs:c,status:De.DRAFT});if(i($A({type:"success",message:{key:"ui.toast.entrySaved"}})),i(Bz(e,p)),f.slug!==n)return void r(`/collections/${e.name}/entries/${n}`)}catch(t){return i($A({type:"error",message:{key:"ui.toast.onFailToPersist",options:{details:t}}})),Promise.reject(i(Vz(t,e,f.slug)))}}}(O,t,w,m)):await p(function(e,t,n){return async(r,i)=>{const o=i(),a=o.entryDraft,s=a.fieldsErrors,l=jD(o,e.name);if(Object.keys(s).length>0){if(Object.values(s).find((e=>e.some((e=>e.type&&e.type===FE.PRESENCE)))))r($A({type:"error",message:{key:"ui.toast.missingRequiredField"}}));else{const e=Object.values(s).flatMap((e=>e.map((e=>e.message))))[0];e&&r($A({type:"error",message:e}))}return Promise.reject()}const u=o.config;if(!u.config)throw new Error("Config not loaded");const c=DC(u.config),d=a.entry;if(!d)return Promise.reject();const f=YI({entry:d}),h=ZI(e,d),p=$I($I({},a),{},{entry:h});return r(function(e,t){return{type:T$,payload:{collectionName:e.name,entrySlug:t.slug}}}(e,h)),c.persistEntry({config:u.config,rootSlug:t,collection:e,entryDraft:p,assetProxies:f,usedSlugs:l,status:d.status}).then((async t=>{r($A({type:"success",message:{key:"ui.toast.entrySaved"}})),f.length>0&&await r(vI()),r(function(e,t,n){return{type:$$,payload:{collectionName:e.name,entrySlug:t.slug,slug:n}}}(e,h,t)),"nested"in e&&await r(qI(e)),d.slug!==t?(await r(FI(e,t)),n(`/collections/${e.name}/entries/${t}`)):await r(FI(e,t,!0))})).catch((t=>(console.error(t),r($A({type:"error",message:{key:"ui.toast.onFailToPersist",options:{details:t}}})),Promise.reject(r(function(e,t,n){return{type:Q$,error:"Failed to persist entry",payload:{collectionName:e.name,entrySlug:t.slug,error:n.toString()}}}(e,h,t))))))}}(O,t,m)),f(d+1),n&&(r&&v.entry?(m(`/collections/${O.name}/new?duplicate=true`,{replace:!0}),p(NI(v.entry))):(A(!1),setTimeout((async()=>{await p(vI()),m(`/collections/${O.name}/new`,{replace:!0})}),100)))}catch(e){}}),100))}),[O,Q,p,v.entry,w,m,t,y,d]),D=y0(j,250),M=(0,c.useCallback)((e=>{O&&t&&k&&(v.hasChanged?Iz({title:"editor.editor.onUpdatingWithUnsavedChangesTitle",body:{key:"editor.editor.onUpdatingWithUnsavedChangesBody"}}):p(Gz(O.name,t,k,e)))}),[O,k,p,v.hasChanged,t]),I=(0,c.useCallback)((async(e={})=>{if(!O||!t||!v.entry)return;const{createNew:n=!1,duplicate:r=!1}=e;if(k===De.PENDING_PUBLISH){if(v.hasChanged)Iz({title:"editor.editor.onPublishingWithUnsavedChangesTitle",body:{key:"editor.editor.onPublishingWithUnsavedChangesBody"}});else if(await YM({title:"editor.editor.onPublishingTitle",body:"editor.editor.onPublishingBody"})){if(await p(Kz(O.name,t,m)),Q(),!n)return r?(p(NI(v.entry)),void m(`/collections/${O.name}/new?duplicate=true`,{replace:!0})):void 0;m(`/collections/${O.name}/new?duplicate=true`,{replace:!0})}}else Iz({title:"editor.editor.onPublishingNotReadyTitle",body:{key:"editor.editor.onPublishingNotReadyBody"}})}),[O,k,Q,p,v.entry,v.hasChanged,m,t]),z=(0,c.useCallback)((async()=>{if(O&&t&&await YM({title:"editor.editor.onUnpublishingTitle",body:"editor.editor.onUnpublishingBody",color:"error"}))return await p(function(e,t){return(n,r)=>{const i=r();if(!i.config.config)return;const o=DC(i.config.config),a=RD(i,e.name,t);if(!a)return;const s={entry:a,fieldsErrors:{}};return n(qz(e,t)),o.deleteEntry(i,e,t).then((()=>o.persistEntry({config:i.config.config,collection:e,entryDraft:s,assetProxies:[],usedSlugs:[],rootSlug:t,status:De.PENDING_PUBLISH}))).then((async()=>{n(Bz(e,a)),n(MI(e,t)),await n(Yz(e,t)),n($A({type:"success",message:{key:"ui.toast.entryUnpublished"}}))})).catch((t=>{n($A({type:"error",message:{key:"ui.toast.onFailToUnpublishEntry",options:{details:t}}})),n(Vz(t,e,a.slug))}))}}(O,t)),m(`/collections/${O.name}?noredirect`)}),[O,p,m,t]),W=(0,c.useCallback)((()=>{O&&v.entry&&(p(NI(v.entry)),m(`/collections/${O.name}/new?duplicate=true`,{replace:!0}))}),[O,p,v.entry,m]),N=(0,c.useCallback)((async()=>{if(O){if(v.hasChanged){if(!await YM({title:"editor.editor.onDeleteWithUnsavedChangesTitle",body:"editor.editor.onDeleteWithUnsavedChangesBody",color:"error"}))return}else if(!await YM({title:"editor.editor.onDeletePublishedEntryTitle",body:"editor.editor.onDeletePublishedEntryBody",color:"error"}))return;if(!t||n)return m(`/collections/${O.name}?noredirect`);setTimeout((async()=>(await p(function(e,t){return(n,r)=>{const i=r(),o=i.config;if(!o.config)throw new Error("Config not loaded");const a=DC(o.config);return n(function(e,t){return{type:"ENTRY_DELETE_REQUEST",payload:{collectionName:e.name,entrySlug:t}}}(e,t)),a.deleteEntry(i,e,t).then((()=>n(MI(e,t)))).catch((r=>(n($A({type:"error",message:{key:"ui.toast.onFailToDelete",options:{details:r}}})),console.error(r),Promise.reject(n(function(e,t,n){return{type:"ENTRY_DELETE_FAILURE",payload:{collectionName:e.name,entrySlug:t,error:n.toString()}}}(e,t,r))))))}}(O,t)),Q(),p($A({type:"success",message:{key:"ui.toast."+(y?"onDeletePublishedEntry":"entryDeleted")}})),m(`/collections/${O.name}?noredirect`))),0)}}),[O,Q,p,v.hasChanged,m,n,t,y]),L=(0,c.useCallback)((async()=>{if(O){if(v.hasChanged){if(v.hasChanged&&!await YM({title:"editor.editor.onDeleteUnpublishedChangesWithUnsavedChangesTitle",body:"editor.editor.onDeleteUnpublishedChangesWithUnsavedChangesBody",color:"error"}))return}else if(!await YM({title:"editor.editor.onDeleteUnpublishedChangesTitle",body:"editor.editor.onDeleteUnpublishedChangesBody",color:"error"}))return;if(!t||n)return m(`/collections/${O.name}?noredirect`);setTimeout((async()=>{if(await p(Hz(O.name,t)),Q(),p($A({type:"success",message:{key:"ui.toast.onDeleteUnpublishedChanges"}})),!x)return m(`/collections/${O.name}?noredirect`);p(FI(O,t))}),0)}}),[O,Q,p,v.hasChanged,x,m,n,t]);(0,c.useEffect)((()=>{if(O&&!R)return _&&v.entry&&$(v.entry,O),()=>{$.flush()}}),[O,$,v.entry,_,R]);const F=(0,c.useMemo)((()=>{var e;if(!O)return!1;let t="string"==typeof(null===(e=O.editor)||void 0===e?void 0:e.live_preview);if("files"in O&&v.entry){const e=TP(O,v.entry.slug);null!=e&&e.editor&&(t=t||"string"==typeof e.editor.live_preview)}return t}),[O,v.entry]);!function({hasLivePreview:e,slug:t,collection:n,callback:r}){const i=hz(),[o,a]=(0,c.useState)(!1),s=pz(JM),[l,u]=(0,c.useState)(fE()(null==s?void 0:s.data)),d=(0,c.useCallback)((async()=>{if(n&&(!e||o)&&!tP()(l,null==s?void 0:s.data)&&s){const e=yP(n,t);let o=s.data;if(e)for(const t of e.fields)o=await w0([t.name],n.name,t,o,l);else if("fields"in n)for(const e of n.fields)o=await w0([e.name],n.name,e,o,l);if(!tP()(o,s.data))return u(o),i(function({data:e}){return{type:w$,payload:{data:e}}}({data:o})),void r();u(null==s?void 0:s.data)}}),[s,o]),f=y0(d,200);(0,c.useEffect)((()=>{f()}),[f]),XD("livePreviewLoaded",(0,c.useCallback)((()=>{a(!0)}),[]))}({hasLivePreview:F,collection:O,slug:t,callback:()=>{f((e=>e+1))}});const[U,X]=(0,c.useState)(null),[q,B]=(0,c.useState)(null);(0,c.useEffect)((()=>{O&&(n&&t!==q?setTimeout((async()=>{await p(vI()),u.has("duplicate")&&"true"===u.get("duplicate")&&void 0!==v.entry||await p(VI(O,location.search))})):n||!t||U===O&&q===t||setTimeout((async()=>{y?await p(Yz(O,t)):await p(FI(O,t)),null!=g&&g.disable_local_backup||await p(function(e,t){return async(n,r)=>{const i=r().config;if(!i.config)throw new Error("Config not loaded");const o=DC(i.config),{entry:a}=await o.getLocalDraftBackup(e,i.config,t);if(a){const t=a.mediaFiles||[],i=await Promise.all(t.filter((e=>!e.isDirectory)).map((t=>t.file||t.url?ND({path:t.path,file:t.file,url:t.url,field:t.field}):CI(e,a,t.path,t.field)(n,r))));return n(xI(i)),n(function(e){return{type:S$,payload:{entry:e}}}(a))}}}(O,t)),R&&null!=g&&g.disable_local_backup||(p(((e,t)=>{t().entryDraft.localBackup&&e({type:E$})})),f(d+1))})),X(O),B(t))}),[O,v.entry,q,U,t,p,n,null==g?void 0:g.disable_local_backup,y,R,d,u]);const V=(0,c.useMemo)((()=>l("editor.editor.onLeavePage")),[l]);XD("beforeunload",(0,c.useCallback)((e=>{if(v.hasChanged)return e.returnValue=V,V}),[v.hasChanged,V]));const Y=(0,c.useCallback)((({location:e,action:t})=>{var n,r;if(!O)return;const i=null===(n=v.entry)||void 0===n?void 0:n.isPersisting,o=null===(r=v.entry)||void 0===r?void 0:r.newRecord,a=`/collections/${O.name}/new`;return i&&o&&e.pathname.startsWith(a)&&"PUSH"===t?void 0:_?V:void 0}),[O,null===(a=v.entry)||void 0===a?void 0:a.isPersisting,null===(s=v.entry)||void 0===s?void 0:s.newRecord,_,V]);(0,c.useEffect)((()=>{const e=h.block(Y);return()=>{e()}}),[null==O?void 0:O.name,h,Y]);const Z=(0,c.useCallback)((async()=>{await p((async(e,t)=>e({type:iQ})))}),[p]),G=(0,c.useCallback)((async()=>{await p({type:oQ,payload:"false"!==localStorage.getItem(YT)})}),[p]),H=(0,c.useCallback)((()=>{f((e=>e+1))}),[]);return E&&E.error?c.createElement("div",null,c.createElement("h3",null,E.error)):!O||null==v||void 0===v.entry||E&&E.isFetching?c.createElement(nK,null,l("editor.editor.loadingEntry")):c.createElement(c.Fragment,null,c.createElement(E4,{key:`editor-${d}`,draftKey:v.key,entry:v.entry,collection:O,fields:C,fieldsErrors:v.fieldsErrors,onPersist:D,onDelete:N,onDuplicate:W,hasChanged:_,isNewEntry:n,isModification:x,toggleScroll:Z,scrollSyncActive:T,loadScroll:G,onDiscardDraft:H,submitted:R,slug:t,currentStatus:k,isUpdatingStatus:S,onChangeStatus:M,onPublish:I,onUnPublish:z,onDeleteUnpublishedChanges:L,hasUnpublishedChanges:w,isPublishing:P}),c.createElement(j1,null))},T4=["name"],$4=({newRecord:e=!1,collections:t})=>{const n=re(),{name:r}=n,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r!!r&&!t[r]),[t,r]),s=Jz(t);return a||!r||!e&&!o?c.createElement(pe,{to:s}):c.createElement(C4,{name:r,slug:o,newRecord:e})},Q4=()=>{const e=LD(),t=hz();return(0,c.useEffect)((()=>{t(vI({}))}),[t]),c.createElement(yH,{breadcrumbs:[{name:e("app.header.media")}],showQuickCreate:!0,showLeftNav:!0,noMargin:!0,noScroll:!0},c.createElement(R1,null))},R4=()=>{const{id:e}=re(),{data:t,title:n}=(0,c.useMemo)((()=>{if(!e)return{data:"",title:""};const t=function(e){return vE.additionalLinks[e]}(e);return t||{data:"",title:""}}),[e]),r=(0,c.useMemo)((()=>t?c.createElement("div",null,c.createElement(t,null)):c.createElement("div",null,"Page not found")),[t]);return c.createElement(yH,{breadcrumbs:[{name:n}],showQuickCreate:!0,showLeftNav:!0},r)};function A4(e){return e.substring(2).toLowerCase()}function j4(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=c.useRef(!1),s=c.useRef(null),l=c.useRef(!1),u=c.useRef(!1);c.useEffect((()=>(setTimeout((()=>{l.current=!0}),0),()=>{l.current=!1})),[]);const d=GN(HN(t),s),f=gB((e=>{const t=u.current;u.current=!1;const r=KN(s.current);if(!l.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidthn=>{u.current=!0;const r=t.props[e];r&&r(n)},p={ref:d};return!1!==o&&(p[o]=h(o)),c.useEffect((()=>{if(!1!==o){const e=A4(o),t=KN(s.current),n=()=>{a.current=!0};return t.addEventListener(e,f),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,f),t.removeEventListener("touchmove",n)}}}),[f,o]),!1!==r&&(p[r]=h(r)),c.useEffect((()=>{if(!1!==r){const e=A4(r),t=KN(s.current);return t.addEventListener(e,f),()=>{t.removeEventListener(e,f)}}}),[f,r]),c.cloneElement(t,p)}function D4(e){return cB("MuiSnackbarContent",e)}dB("MuiSnackbarContent",["root","message","action"]);const M4=Pq(NB,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Cq((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=TX(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}}))),I4=Pq("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),z4=Pq("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),W4=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiSnackbarContent"}),{action:r,className:i,message:o,role:a="alert",...s}=n,l=n,u=(e=>{const{classes:t}=e;return qN({root:["root"],action:["action"],message:["message"]},D4,t)})(l);return(0,lM.jsxs)(M4,{role:a,square:!0,elevation:6,className:XN(u.root,i),ownerState:l,ref:t,...s,children:[(0,lM.jsx)(I4,{className:u.message,ownerState:l,children:o}),r?(0,lM.jsx)(z4,{className:u.action,ownerState:l,children:r}):null]})})),N4=W4;function L4(e){return cB("MuiSnackbar",e)}dB("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const F4=Pq("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${LB(n.anchorOrigin.vertical)}${LB(n.anchorOrigin.horizontal)}`]]}})(Cq((({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]})))),U4=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiSnackbar"}),r=eB(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:o,anchorOrigin:{vertical:a,horizontal:s}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:h,disableWindowBlurListener:p=!1,message:m,onBlur:g,onClose:v,onFocus:O,onMouseEnter:y,onMouseLeave:b,open:w,resumeHideDuration:k,TransitionComponent:x=y3,transitionDuration:_=i,TransitionProps:{onEnter:S,onExited:P,...E}={},...C}=n,T={...n,anchorOrigin:{vertical:a,horizontal:s},autoHideDuration:l,disableWindowBlurListener:p,TransitionComponent:x,transitionDuration:_},$=(e=>{const{classes:t,anchorOrigin:n}=e;return qN({root:["root",`anchorOrigin${LB(n.vertical)}${LB(n.horizontal)}`]},L4,t)})(T),{getRootProps:Q,onClickAway:R}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,a=h3();c.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"===e.key&&r?.(e,"escapeKeyDown")}}),[i,r]);const s=gB(((e,t)=>{r?.(e,t)})),l=gB((e=>{r&&null!=e&&a.start(e,(()=>{s(null,"timeout")}))}));c.useEffect((()=>(i&&l(t),a.clear)),[i,t,l,a]);const u=a.clear,d=c.useCallback((()=>{null!=t&&l(null!=o?o:.5*t)}),[t,o,l]),f=e=>t=>{const n=e.onFocus;n?.(t),u()},h=e=>t=>{const n=e.onMouseEnter;n?.(t),u()},p=e=>t=>{const n=e.onMouseLeave;n?.(t),d()};return c.useEffect((()=>{if(!n&&i)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[n,i,d,u]),{getRootProps:(t={})=>{const n={...Dq(e),...Dq(t)};return{role:"presentation",...t,...n,onBlur:(r=n,e=>{const t=r.onBlur;t?.(e),d()}),onFocus:f(n),onMouseEnter:h(n),onMouseLeave:p(n)};var r},onClickAway:e=>{r?.(e,"clickaway")}}}({...T}),[A,j]=c.useState(!0),D=b3({elementType:F4,getSlotProps:Q,externalForwardedProps:C,ownerState:T,additionalProps:{ref:t},className:[$.root,d]});return!w&&A?null:(0,lM.jsx)(j4,{onClickAway:R,...f,children:(0,lM.jsx)(F4,{...D,children:(0,lM.jsx)(x,{appear:!0,in:w,timeout:_,direction:"top"===a?"down":"up",onEnter:(e,t)=>{j(!1),S&&S(e,t)},onExited:e=>{j(!0),P&&P(e)},...E,children:u||(0,lM.jsx)(N4,{message:m,action:o,...h})})})})})),X4=U4;var q4=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))}));q4.displayName="ErrorOutline";var B4=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10L22 5.18zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44A9.9 9.9 0 0 0 12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39l-1.61 1.61z"}))}));B4.displayName="TaskAlt";var V4=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2z"}),c.createElement("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"}))}));V4.displayName="WarningAmber";const Y4=UD("SnackbarAlert",["root","error","success","warning","info","icon-wrapper","icon","message","close-button","close-button-sr-label","close-button-icon"]),Z4=(0,c.forwardRef)((({data:e,onClose:t},n)=>{const r=LD(),{type:i,message:o}=e,a=(0,c.useMemo)((()=>{if("string"==typeof o)return o;const{key:e,options:t}=o;return r(e,t)}),[o,r]),s=(0,c.useMemo)((()=>{switch(i){case"error":return c.createElement(q4,{className:Y4.icon});case"success":return c.createElement(B4,{className:Y4.icon});case"warning":return c.createElement(V4,{className:Y4.icon});default:return c.createElement(RK,{className:Y4.icon})}}),[i]);return c.createElement("div",{id:"toast-default",className:qD(Y4.root,"error"===i&&Y4.error,"success"===i&&Y4.success,"warning"===i&&Y4.warning,"info"===i&&Y4.info),role:"alert",ref:n},c.createElement("div",{className:Y4["icon-wrapper"]},s),c.createElement("div",{className:Y4.message,"data-testid":"toast-messages"},a),c.createElement(FN,{icon:yG,variant:"text",color:"secondary",onClick:t,rootClassName:Y4["close-button"],size:"small","aria-label":"close"}))}));Z4.displayName="SnackbarAlert";const G4=Z4;function H4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K4(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const J4=()=>{const[e,t]=(0,c.useState)(!1),[n,r]=(0,c.useState)(void 0),i=pz(RA),o=hz();(0,c.useEffect)((()=>{if(i.length&&!n){const e=function(e){for(var t=1;t{ze(a)||a===(null==n?void 0:n.id)&&t(!1)}),[a,null==n?void 0:n.id]);const s=(0,c.useCallback)(((e,n)=>{"clickaway"!==n&&t(!1)}),[]);return c.createElement(X4,{key:n?n.id:void 0,open:e,autoHideDuration:6e3,onClose:s,TransitionProps:{onExited:()=>{r(void 0)}},anchorOrigin:{vertical:"bottom",horizontal:"right"}},n?c.createElement(G4,{data:n,onClose:s}):void 0)},e5="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function t5(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function n5(e){return"nodeType"in e}function r5(e){var t,n;return e?t5(e)?e:n5(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function i5(e){const{Document:t}=r5(e);return e instanceof t}function o5(e){return!t5(e)&&e instanceof r5(e).HTMLElement}function a5(e){return e instanceof r5(e).SVGElement}function s5(e){return e?t5(e)?e.document:n5(e)?i5(e)?e:o5(e)||a5(e)?e.ownerDocument:document:document:document}const l5=e5?c.useLayoutEffect:c.useEffect;function u5(e){const t=(0,c.useRef)(e);return l5((()=>{t.current=e})),(0,c.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r{n.current!==e&&(n.current=e)}),t),n}function d5(e,t){const n=(0,c.useRef)();return(0,c.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function f5(e){const t=u5(e),n=(0,c.useRef)(null),r=(0,c.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function h5(e){const t=(0,c.useRef)();return(0,c.useEffect)((()=>{t.current=e}),[e]),t.current}let p5={};function m5(e,t){return(0,c.useMemo)((()=>{if(t)return t;const n=null==p5[e]?0:p5[e]+1;return p5[e]=n,e+"-"+n}),[e,t])}function g5(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const v5=g5(1),O5=g5(-1);function y5(e){if(!e)return!1;const{KeyboardEvent:t}=r5(e.target);return t&&e instanceof t}function b5(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=r5(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const w5=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[w5.Translate.toString(e),w5.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),k5="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function x5(e){return e.matches(k5)?e:e.querySelector(k5)}const _5={display:"none"};function S5(e){let{id:t,value:n}=e;return c.createElement("div",{id:t,style:_5},n)}function P5(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return c.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const E5=(0,c.createContext)(null),C5={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},T5={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function $5(e){let{announcements:t=T5,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=C5}=e;const{announce:o,announcement:a}=function(){const[e,t]=(0,c.useState)("");return{announce:(0,c.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),s=m5("DndLiveRegion"),[l,u]=(0,c.useState)(!1);if((0,c.useEffect)((()=>{u(!0)}),[]),function(e){const t=(0,c.useContext)(E5);(0,c.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)}),[e,t])}((0,c.useMemo)((()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;o(t.onDragCancel({active:n,over:r}))}})),[o,t])),!l)return null;const d=c.createElement(c.Fragment,null,c.createElement(S5,{id:r,value:i.draggable}),c.createElement(P5,{id:s,announcement:a}));return n?(0,NC.createPortal)(d,n):d}var Q5;function R5(){}function A5(e,t){return(0,c.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function j5(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Q5||(Q5={}));const D5=Object.freeze({x:0,y:0});function M5(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function I5(e,t){const n=b5(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function z5(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function W5(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function N5(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function L5(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function F5(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const U5=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=F5(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=M5(F5(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(z5)};function X5(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=X5(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(W5)};function B5(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:D5}function V5(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const Y5=V5(1);function Z5(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const G5={ignoreTransform:!1};function H5(e,t){void 0===t&&(t=G5);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=r5(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=Z5(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function K5(e){return H5(e,{ignoreTransform:!0})}function J5(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(i5(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!o5(i)||a5(i))return n;if(n.includes(i))return n;const o=r5(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=r5(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=r5(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function e6(e){const[t]=J5(e,1);return null!=t?t:null}function t6(e){return e5&&e?t5(e)?e:n5(e)?i5(e)||e===s5(e).scrollingElement?window:o5(e)?e:null:null:null}function n6(e){return t5(e)?e.scrollX:e.scrollLeft}function r6(e){return t5(e)?e.scrollY:e.scrollTop}function i6(e){return{x:n6(e),y:r6(e)}}var o6;function a6(e){return!(!e5||!e)&&e===document.scrollingElement}function s6(e){const t={x:0,y:0},n=a6(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(o6||(o6={}));const l6={x:.2,y:.2};function u6(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=l6);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=s6(e),h={x:0,y:0},p={x:0,y:0},m=t.height*i.y,g=t.width*i.x;return!u&&o<=t.top+m?(h.y=o6.Backward,p.y=r*Math.abs((t.top+m-o)/m)):!c&&l>=t.bottom-m&&(h.y=o6.Forward,p.y=r*Math.abs((t.bottom-m-l)/m)),!f&&s>=t.right-g?(h.x=o6.Forward,p.x=r*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(h.x=o6.Backward,p.x=r*Math.abs((t.left+g-a)/g)),{direction:h,speed:p}}function c6(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function d6(e){return e.reduce(((e,t)=>v5(e,i6(t))),D5)}function f6(e,t){if(void 0===t&&(t=H5),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);e6(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const h6=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+n6(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+r6(t)),0)}]];class p6{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=J5(t),r=d6(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of h6)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class m6{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function g6(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var v6,O6;function y6(e){e.preventDefault()}function b6(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(v6||(v6={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(O6||(O6={}));const w6={start:[O6.Space,O6.Enter],cancel:[O6.Esc],end:[O6.Space,O6.Enter]},k6=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case O6.Right:return{...n,x:n.x+25};case O6.Left:return{...n,x:n.x-25};case O6.Down:return{...n,y:n.y+25};case O6.Up:return{...n,y:n.y-25}}};class x6{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new m6(s5(t)),this.windowListeners=new m6(r5(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(v6.Resize,this.handleCancel),this.windowListeners.add(v6.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(v6.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&f6(n),t(D5)}handleKeyDown(e){if(y5(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=w6,coordinateGetter:o=k6,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:D5;this.referenceCoordinates||(this.referenceCoordinates=u);const c=o(e,{active:t,context:n.current,currentCoordinates:u});if(c){const t=O5(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=s6(n),h=c6(n),p={x:Math.min(i===O6.Right?h.right-h.width/2:h.right,Math.max(i===O6.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===O6.Down?h.bottom-h.height/2:h.bottom,Math.max(i===O6.Down?h.top:h.top+h.height/2,c.y))},m=i===O6.Right&&!s||i===O6.Left&&!l,g=i===O6.Down&&!u||i===O6.Up&&!o;if(m&&p.x!==c.x){const e=n.scrollLeft+t.x,o=i===O6.Right&&e<=d.x||i===O6.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===O6.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(g&&p.y!==c.y){const e=n.scrollTop+t.y,o=i===O6.Down&&e<=d.y||i===O6.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===O6.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,v5(O5(c,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function _6(e){return Boolean(e&&"distance"in e)}function S6(e){return Boolean(e&&"delay"in e)}x6.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=w6,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class P6{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=r5(e);return e instanceof t?e:s5(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=s5(o),this.documentListeners=new m6(this.document),this.listeners=new m6(n),this.windowListeners=new m6(r5(o)),this.initialCoordinates=null!=(r=b5(i))?r:D5,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(v6.Resize,this.handleCancel),this.windowListeners.add(v6.DragStart,y6),this.windowListeners.add(v6.VisibilityChange,this.handleCancel),this.windowListeners.add(v6.ContextMenu,y6),this.documentListeners.add(v6.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(S6(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(_6(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(v6.Click,b6,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(v6.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(t=b5(e))?t:D5,l=O5(r,s);if(!n&&a){if(_6(a)){if(null!=a.tolerance&&g6(l,a.tolerance))return this.handleCancel();if(g6(l,a.distance))return this.handleStart()}return S6(a)&&g6(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===O6.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const E6={move:{name:"pointermove"},end:{name:"pointerup"}};class C6 extends P6{constructor(e){const{event:t}=e,n=s5(t.target);super(e,E6,n)}}C6.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const T6={move:{name:"mousemove"},end:{name:"mouseup"}};var $6;!function(e){e[e.RightClick=2]="RightClick"}($6||($6={}));class Q6 extends P6{constructor(e){super(e,T6,s5(e.event.target))}}Q6.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==$6.RightClick&&(null==r||r({event:n}),!0)}}];const R6={move:{name:"touchmove"},end:{name:"touchend"}};var A6,j6;(class extends P6{constructor(e){super(e,R6)}static setup(){return window.addEventListener(R6.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(R6.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(A6||(A6={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(j6||(j6={}));const D6={x:{[o6.Backward]:!1,[o6.Forward]:!1},y:{[o6.Backward]:!1,[o6.Forward]:!1}};var M6,I6;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(M6||(M6={})),function(e){e.Optimized="optimized"}(I6||(I6={}));const z6=new Map;function W6(e,t){return d5((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function N6(e){let{callback:t,disabled:n}=e;const r=u5(t),i=(0,c.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,c.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function L6(e){return new p6(H5(e),e)}function F6(e,t,n){void 0===t&&(t=L6);const[r,i]=(0,c.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}),null),o=function(e){let{callback:t,disabled:n}=e;const r=u5(t),i=(0,c.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,c.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),a=N6({callback:i});return l5((()=>{i(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())}),[e]),r}const U6=[];function X6(e,t){void 0===t&&(t=[]);const n=(0,c.useRef)(null);return(0,c.useEffect)((()=>{n.current=null}),t),(0,c.useEffect)((()=>{const t=e!==D5;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?O5(e,n.current):D5}function q6(e){return(0,c.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const B6=[];function V6(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return o5(t)?t:e}const Y6=[{sensor:C6,options:{}},{sensor:x6,options:{}}],Z6={current:{}},G6={draggable:{measure:K5},droppable:{measure:K5,strategy:M6.WhileDragging,frequency:I6.Optimized},dragOverlay:{measure:H5}};class H6 extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const K6={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new H6,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:R5},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:G6,measureDroppableContainers:R5,windowRect:null,measuringScheduled:!1},J6={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:R5,draggableNodes:new Map,over:null,measureDroppableContainers:R5},e9=(0,c.createContext)(J6),t9=(0,c.createContext)(K6);function n9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new H6}}}function r9(e,t){switch(t.type){case Q5.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Q5.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Q5.DragEnd:case Q5.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Q5.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new H6(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Q5.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new H6(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Q5.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new H6(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function i9(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,c.useContext)(e9),o=h5(r),a=h5(null==n?void 0:n.id);return(0,c.useEffect)((()=>{if(!t&&!r&&o&&null!=a){if(!y5(o))return;if(document.activeElement===o.target)return;const e=i.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=x5(e);if(t){t.focus();break}}}))}}),[r,t,i,a,o]),null}function o9(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const a9=(0,c.createContext)({...D5,scaleX:1,scaleY:1});var s9;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(s9||(s9={}));const l9=(0,c.memo)((function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:l,sensors:u=Y6,collisionDetection:d=q5,measuring:f,modifiers:h,...p}=e;const m=(0,c.useReducer)(r9,void 0,n9),[g,v]=m,[O,y]=function(){const[e]=(0,c.useState)((()=>new Set)),t=(0,c.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),n=(0,c.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[n,t]}(),[b,w]=(0,c.useState)(s9.Uninitialized),k=b===s9.Initialized,{draggable:{active:x,nodes:_,translate:S},droppable:{containers:P}}=g,E=x?_.get(x):null,C=(0,c.useRef)({initial:null,translated:null}),T=(0,c.useMemo)((()=>{var e;return null!=x?{id:x,data:null!=(e=null==E?void 0:E.data)?e:Z6,rect:C}:null}),[x,E]),$=(0,c.useRef)(null),[Q,R]=(0,c.useState)(null),[A,j]=(0,c.useState)(null),D=c5(p,Object.values(p)),M=m5("DndDescribedBy",o),I=(0,c.useMemo)((()=>P.getEnabled()),[P]),z=(B=f,(0,c.useMemo)((()=>({draggable:{...G6.draggable,...null==B?void 0:B.draggable},droppable:{...G6.droppable,...null==B?void 0:B.droppable},dragOverlay:{...G6.dragOverlay,...null==B?void 0:B.dragOverlay}})),[null==B?void 0:B.draggable,null==B?void 0:B.droppable,null==B?void 0:B.dragOverlay])),{droppableRects:W,measureDroppableContainers:N,measuringScheduled:L}=function(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=(0,c.useState)(null),{frequency:s,measure:l,strategy:u}=i,d=(0,c.useRef)(e),f=function(){switch(u){case M6.Always:return!1;case M6.BeforeDragging:return n;default:return!n}}(),h=c5(f),p=(0,c.useCallback)((function(e){void 0===e&&(e=[]),h.current||a((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),m=(0,c.useRef)(null),g=d5((t=>{if(f&&!n)return z6;if(!t||t===z6||d.current!==e||null!=o){const t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new p6(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,o,n,f,l]);return(0,c.useEffect)((()=>{d.current=e}),[e]),(0,c.useEffect)((()=>{f||p()}),[n,f]),(0,c.useEffect)((()=>{o&&o.length>0&&a(null)}),[JSON.stringify(o)]),(0,c.useEffect)((()=>{f||"number"!=typeof s||null!==m.current||(m.current=setTimeout((()=>{p(),m.current=null}),s))}),[s,f,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:null!=o}}(I,{dragging:k,dependencies:[S.x,S.y],config:z.droppable}),F=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return d5((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(_,x),U=(0,c.useMemo)((()=>A?b5(A):null),[A]),X=function(){const e=!1===(null==Q?void 0:Q.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,n=k&&!e&&!t;return"object"==typeof s?{...s,enabled:n}:{enabled:n}}(),q=function(e,t){return W6(e,t)}(F,z.draggable.measure);var B;!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=(0,c.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;l5((()=>{if(!a&&!s||!t)return void(o.current=!1);if(o.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=B5(n(e),r);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=e6(e);t&&t.scrollBy({top:i.y,left:i.x})}}),[t,a,s,r,n])}({activeNode:x?_.get(x):null,config:X.layoutShiftCompensation,initialRect:q,measure:z.draggable.measure});const V=F6(F,z.draggable.measure,q),Y=F6(F?F.parentElement:null),Z=(0,c.useRef)({activatorEvent:null,active:null,activeNode:F,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=P.getNodeFor(null==(t=Z.current.over)?void 0:t.id),H=function(e){let{measure:t}=e;const[n,r]=(0,c.useState)(null),i=(0,c.useCallback)((e=>{for(const{target:n}of e)if(o5(n)){r((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t]),o=N6({callback:i}),a=(0,c.useCallback)((e=>{const n=V6(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)}),[t,o]),[s,l]=f5(a);return(0,c.useMemo)((()=>({nodeRef:s,rect:n,setRef:l})),[n,s,l])}({measure:z.dragOverlay.measure}),K=null!=(n=H.nodeRef.current)?n:F,J=k?null!=(r=H.rect)?r:V:null,ee=Boolean(H.nodeRef.current&&H.rect),te=B5(ne=ee?null:V,W6(ne));var ne;const re=q6(K?r5(K):null),ie=function(e){const t=(0,c.useRef)(e),n=d5((n=>e?n&&n!==U6&&e&&t.current&&e.parentNode===t.current.parentNode?n:J5(e):U6),[e]);return(0,c.useEffect)((()=>{t.current=e}),[e]),n}(k?null!=G?G:F:null),oe=function(e,t){void 0===t&&(t=H5);const[n]=e,r=q6(n?r5(n):null),[i,o]=(0,c.useReducer)((function(){return e.length?e.map((e=>a6(e)?r:new p6(t(e),e))):B6}),B6),a=N6({callback:o});return e.length>0&&i===B6&&o(),l5((()=>{e.length?e.forEach((e=>null==a?void 0:a.observe(e))):(null==a||a.disconnect(),o())}),[e]),i}(ie),ae=o9(h,{transform:{x:S.x-te.x,y:S.y-te.y,scaleX:1,scaleY:1},activatorEvent:A,active:T,activeNodeRect:V,containerNodeRect:Y,draggingNodeRect:J,over:Z.current.over,overlayNodeRect:H.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:re}),se=U?v5(U,S):null,le=function(e){const[t,n]=(0,c.useState)(null),r=(0,c.useRef)(e),i=(0,c.useCallback)((e=>{const t=t6(e.target);t&&n((e=>e?(e.set(t,i6(t)),new Map(e)):null))}),[]);return(0,c.useEffect)((()=>{const t=r.current;if(e!==t){o(t);const a=e.map((e=>{const t=t6(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,i6(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach((e=>{const t=t6(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,c.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>v5(e,t)),D5):d6(e):D5),[e,t])}(ie),ue=X6(le),ce=X6(le,[V]),de=v5(ae,ue),fe=J?Y5(J,ae):null,he=T&&fe?d({active:T,collisionRect:fe,droppableRects:W,droppableContainers:I,pointerCoordinates:se}):null,pe=L5(he,"id"),[me,ge]=(0,c.useState)(null),ve=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:v5(ae,ce),null!=(i=null==me?void 0:me.rect)?i:null,V),Oe=(0,c.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==$.current)return;const i=_.get($.current);if(!i)return;const o=e.nativeEvent,a=new n({active:$.current,activeNode:i,event:o,options:r,context:Z,onStart(e){const t=$.current;if(null==t)return;const n=_.get(t);if(!n)return;const{onDragStart:r}=D.current,i={active:{id:t,data:n.data,rect:C}};(0,NC.unstable_batchedUpdates)((()=>{null==r||r(i),w(s9.Initializing),v({type:Q5.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:i})}))},onMove(e){v({type:Q5.DragMove,coordinates:e})},onEnd:s(Q5.DragEnd),onCancel:s(Q5.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Z.current;let a=null;if(t&&i){const{cancelDrop:s}=D.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===Q5.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=Q5.DragCancel)}$.current=null,(0,NC.unstable_batchedUpdates)((()=>{v({type:e}),w(s9.Uninitialized),ge(null),R(null),j(null);const t=e===Q5.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=D.current[t];null==e||e(a),O({type:t,event:a})}}))}}(0,NC.unstable_batchedUpdates)((()=>{R(a),j(e.nativeEvent)}))}),[_]),ye=(0,c.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=_.get(r);if(null!==$.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},$.current=r,Oe(n,t))}),[_,Oe]),be=function(e,t){return(0,c.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(u,ye);!function(e){(0,c.useEffect)((()=>{if(!e5)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(u),l5((()=>{V&&b===s9.Initializing&&w(s9.Initialized)}),[V,b]),(0,c.useEffect)((()=>{const{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=Z.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:i};(0,NC.unstable_batchedUpdates)((()=>{null==e||e(o),O({type:"onDragMove",event:o})}))}),[de.x,de.y]),(0,c.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Z.current;if(!e||null==$.current||!t||!i)return;const{onDragOver:o}=D.current,a=r.get(pe),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,NC.unstable_batchedUpdates)((()=>{ge(s),null==o||o(l),O({type:"onDragOver",event:l})}))}),[pe]),l5((()=>{Z.current={activatorEvent:A,active:T,activeNode:F,collisionRect:fe,collisions:he,droppableRects:W,draggableNodes:_,draggingNode:K,draggingNodeRect:J,droppableContainers:P,over:me,scrollableAncestors:ie,scrollAdjustedTranslate:de},C.current={initial:J,translated:fe}}),[T,F,he,fe,_,K,J,W,P,me,ie,de]),function(e){let{acceleration:t,activator:n=A6.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=j6.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:h}=e;const p=function(e){let{delta:t,disabled:n}=e;const r=h5(t);return d5((e=>{if(n||!r||!e)return D6;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[o6.Backward]:e.x[o6.Backward]||-1===i,[o6.Forward]:e.x[o6.Forward]||1===i},y:{[o6.Backward]:e.y[o6.Backward]||-1===o,[o6.Forward]:e.y[o6.Forward]||1===o}}}),[n,t,r])}({delta:f,disabled:!o}),[m,g]=function(){const e=(0,c.useRef)(null),t=(0,c.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]);return[t,(0,c.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),v=(0,c.useRef)({x:0,y:0}),O=(0,c.useRef)({x:0,y:0}),y=(0,c.useMemo)((()=>{switch(n){case A6.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case A6.DraggableRect:return i}}),[n,i,l]),b=(0,c.useRef)(null),w=(0,c.useCallback)((()=>{const e=b.current;if(!e)return;const t=v.current.x*O.current.x,n=v.current.y*O.current.y;e.scrollBy(t,n)}),[]),k=(0,c.useMemo)((()=>s===j6.TreeOrder?[...u].reverse():u),[s,u]);(0,c.useEffect)((()=>{if(o&&u.length&&y){for(const e of k){if(!1===(null==r?void 0:r(e)))continue;const n=u.indexOf(e),i=d[n];if(!i)continue;const{direction:o,speed:s}=u6(e,i,y,t,h);for(const e of["x","y"])p[e][o[e]]||(s[e]=0,o[e]=0);if(s.x>0||s.y>0)return g(),b.current=e,m(w,a),v.current=s,void(O.current=o)}v.current={x:0,y:0},O.current={x:0,y:0},g()}else g()}),[t,w,r,g,o,a,JSON.stringify(y),JSON.stringify(p),m,u,k,d,JSON.stringify(h)])}({...X,delta:S,draggingRect:fe,pointerCoordinates:se,scrollableAncestors:ie,scrollableAncestorRects:oe});const we=(0,c.useMemo)((()=>({active:T,activeNode:F,activeNodeRect:V,activatorEvent:A,collisions:he,containerNodeRect:Y,dragOverlay:H,draggableNodes:_,droppableContainers:P,droppableRects:W,over:me,measureDroppableContainers:N,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:z,measuringScheduled:L,windowRect:re})),[T,F,V,A,he,Y,H,_,P,W,me,N,ie,oe,z,L,re]),ke=(0,c.useMemo)((()=>({activatorEvent:A,activators:be,active:T,activeNodeRect:V,ariaDescribedById:{draggable:M},dispatch:v,draggableNodes:_,over:me,measureDroppableContainers:N})),[A,be,T,V,v,M,_,me,N]);return c.createElement(E5.Provider,{value:y},c.createElement(e9.Provider,{value:ke},c.createElement(t9.Provider,{value:we},c.createElement(a9.Provider,{value:ve},l)),c.createElement(i9,{disabled:!1===(null==a?void 0:a.restoreFocus)})),c.createElement($5,{...a,hiddenTextDescribedById:M}))})),u9=(0,c.createContext)(null),c9="button",d9="Droppable";function f9(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=m5(d9),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:h}=(0,c.useContext)(e9),{role:p=c9,roleDescription:m="draggable",tabIndex:g=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,O=(0,c.useContext)(v?a9:u9),[y,b]=f5(),[w,k]=f5(),x=function(e,t){return(0,c.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(a,t),_=c5(n);return l5((()=>(f.set(t,{id:t,key:o,node:y,activatorNode:w,data:_}),()=>{const e=f.get(t);e&&e.key===o&&f.delete(t)})),[f,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,c.useMemo)((()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!v||p!==c9)||void 0,"aria-roledescription":m,"aria-describedby":d.draggable})),[r,p,g,v,m,d.draggable]),isDragging:v,listeners:r?void 0:x,node:y,over:h,setNodeRef:b,setActivatorNodeRef:k,transform:O}}function h9(){return(0,c.useContext)(t9)}const p9="Droppable",m9={timeout:25};function g9(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=m5(p9),{active:a,dispatch:s,over:l,measureDroppableContainers:u}=(0,c.useContext)(e9),d=(0,c.useRef)({disabled:n}),f=(0,c.useRef)(!1),h=(0,c.useRef)(null),p=(0,c.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:v}={...m9,...i},O=c5(null!=g?g:r),y=N6({callback:(0,c.useCallback)((()=>{f.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{u(Array.isArray(O.current)?O.current:[O.current]),p.current=null}),v)):f.current=!0}),[v]),disabled:m||!a}),b=(0,c.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))}),[y]),[w,k]=f5(b),x=c5(t);return(0,c.useEffect)((()=>{y&&w.current&&(y.disconnect(),f.current=!1,y.observe(w.current))}),[w,y]),l5((()=>(s({type:Q5.RegisterDroppable,element:{id:r,key:o,disabled:n,node:w,rect:h,data:x}}),()=>s({type:Q5.UnregisterDroppable,key:o,id:r}))),[r]),(0,c.useEffect)((()=>{n!==d.current.disabled&&(s({type:Q5.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)}),[r,o,n,s]),{active:a,rect:h,isOver:(null==l?void 0:l.id)===r,node:w,over:l,setNodeRef:k}}function v9(e){let{animation:t,children:n}=e;const[r,i]=(0,c.useState)(null),[o,a]=(0,c.useState)(null),s=h5(n);return n||r||!s||i(s),l5((()=>{if(!o)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,o)).then((()=>{i(null)})):i(null)}),[t,r,o]),c.createElement(c.Fragment,null,n,r?(0,c.cloneElement)(r,{ref:a}):null)}const O9={x:0,y:0,scaleX:1,scaleY:1};function y9(e){let{children:t}=e;return c.createElement(e9.Provider,{value:J6},c.createElement(a9.Provider,{value:O9},t))}const b9={position:"fixed",touchAction:"none"},w9=e=>y5(e)?"transform 250ms ease":void 0,k9=(0,c.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:a,rect:s,style:l,transform:u,transition:d=w9}=e;if(!s)return null;const f=i?u:{...u,scaleX:1,scaleY:1},h={...b9,width:s.width,height:s.height,top:s.top,left:s.left,transform:w5.Transform.toString(f),transformOrigin:i&&r?I5(r,s):void 0,transition:"function"==typeof d?d(r):d,...l};return c.createElement(n,{className:a,style:h,ref:t},o)})),x9=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},_9={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:w5.Transform.toString(t)},{transform:w5.Transform.toString(n)}]},sideEffects:x9({styles:{active:{opacity:"0"}}})};let S9=0;function P9(e){return(0,c.useMemo)((()=>{if(null!=e)return S9++,S9}),[e])}const E9=c.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:o,modifiers:a,wrapperElement:s="div",className:l,zIndex:u=999}=e;const{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:g,dragOverlay:v,over:O,measuringConfiguration:y,scrollableAncestors:b,scrollableAncestorRects:w,windowRect:k}=h9(),x=(0,c.useContext)(a9),_=P9(null==f?void 0:f.id),S=o9(a,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:v.rect,over:O,overlayNodeRect:v.rect,scrollableAncestors:b,scrollableAncestorRects:w,transform:x,windowRect:k}),P=W6(h),E=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return u5(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const l=V6(o);if(!l)return;const{transform:u}=r5(o).getComputedStyle(o),c=Z5(u);if(!c)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={..._9,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const u=a.rect.left-o.rect.left,c=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-u,y:s.y-c,...d},h=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[p]=h,m=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;const g=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==g||g(),e()}}))}}(t);return f6(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:c})}))}({config:r,draggableNodes:m,droppableContainers:g,measuringConfiguration:y}),C=P?v.setRef:void 0;return c.createElement(y9,null,c.createElement(v9,{animation:E},f&&_?c.createElement(k9,{key:_,id:f.id,ref:C,as:s,activatorEvent:d,adjustScale:t,className:l,transition:o,rect:P,style:{zIndex:u,...i},transform:S},n):null))}));function C9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T9 extends C6{}C9(T9,"activators",[{eventName:"onPointerDown",handler:({nativeEvent:e})=>Q9(e.target)}]),C9(class extends Q6{},"activators",[{eventName:"onMouseDown",handler:({nativeEvent:e})=>Q9(e.target)}]);class $9 extends x6{}function Q9(e){let t=e;for(;t;){if(t.dataset&&t.dataset.noDnd)return!1;t=t.parentElement}return!0}C9($9,"activators",[{eventName:"onKeyDown",handler:({nativeEvent:e})=>Q9(e.target)}]);const R9=({entry:e})=>{const t=pz((t=>tI(t,e.collection))),n=MP(t),r=(0,c.useMemo)((()=>{var e;return t&&"fields"in t?null===(e=t.fields)||void 0===e?void 0:e.find((e=>e.name===n.date&&"image"===e.widget)):void 0}),[t,n.date]),i=QO(r);return t?c.createElement(fJ,{entry:e,imageFieldName:n.image,descriptionFieldName:n.description,dateFieldName:n.date,dateFormats:i,collection:t,useWorkflow:!0,noMargin:!0}):null};function A9(){return A9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const n=LD(),r=hz(),{isDragging:i,setNodeRef:o,listeners:a}=f9({id:`${e.collection}|${e.slug}`,disabled:t}),s=pz((t=>tI(t,e.collection))),l=MP(s),u=(0,c.useMemo)((()=>{var e;return s&&"fields"in s?null===(e=s.fields)||void 0===e?void 0:e.find((e=>e.name===l.date&&"datetime"===e.widget)):void 0}),[s,l.date]),d=QO(u),f=(0,c.useMemo)((()=>{let t=null;var n,r,i;s&&(t=null!==(n=null===(r=wE(SP(s,e.slug)))||void 0===r||null===(i=r.getHeight)||void 0===i?void 0:i.call(r,{collection:s,entry:e}))&&void 0!==n?n:null);return ze(t)&&(t=Ie(l.image)?204:56),t}),[s,e,l.image]),h=(0,c.useCallback)((async t=>{t.stopPropagation(),await YM({title:"editor.editor.onDeleteUnpublishedChangesTitle",body:"editor.editor.onDeleteUnpublishedChangesBody",color:"error"})&&await r(Hz(e.collection,e.slug))}),[r,e.collection,e.slug]),p=(0,c.useCallback)((async t=>{t.stopPropagation(),e.status===De.PENDING_PUBLISH?await YM({title:"editor.editor.onPublishingTitle",body:"editor.editor.onPublishingBody"})&&await r(Kz(e.collection,e.slug)):alert({title:"editor.editor.onPublishingNotReadyTitle",body:{key:"editor.editor.onPublishingNotReadyBody"}})}),[r,e.collection,e.slug,e.status]),m=(0,c.useMemo)((()=>PP(s,e)),[s,e]);return s?c.createElement("div",A9({ref:o,className:qD(j9.root,i&&j9.dragging),style:{height:f,opacity:i?0:void 0},"data-testid":`drag-handle-${m}`},a),c.createElement(fJ,{entry:e,imageFieldName:l.image,descriptionFieldName:l.description,dateFieldName:l.date,dateFormats:d,collection:s,backTo:"/dashboard",useWorkflow:!0,noMargin:!0},c.createElement("div",{className:j9.actions},c.createElement(FN,{icon:p1,variant:"text",color:"error",rootClassName:j9["action-button"],onClick:h,title:n("workflow.workflowCard.deleteChanges"),"aria-label":"delete unpublished changes","data-testid":"workflow-dashboard-delete"}),e.status===De.PENDING_PUBLISH?c.createElement(FN,{icon:B2,variant:"text",color:"secondary",rootClassName:j9["action-button"],onClick:p,title:n("workflow.workflowCard.publishChanges"),"aria-label":"publish changes","data-testid":"workflow-dashboard-publish"}):null))):null},M9=UD("WorkflowColumn",["root","dragging","over","content","header","draft","pending_review","pending_publish"]),I9=({entries:e,status:t,dragging:n,useOpenAuthoring:r})=>{const i=LD(),{isOver:o,setNodeRef:a}=g9({id:t,disabled:r});return c.createElement("div",{ref:a,className:qD(M9.root,n&&M9.dragging,o&&M9.over),"aria-label":"droppable region draft","data-testid":`drop-zone-${t}`},c.createElement("div",{className:qD(M9.header,M9[t])},i(`workflow.workflowList.${t}`)),c.createElement("div",{className:M9.content},e.map((e=>c.createElement(D9,{key:`${e.collection}|${e.slug}`,entry:e,useOpenAuthoring:r})))))};function z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W9(e){for(var t=1;tObject.values(t).filter((t=>t.status===e))),[t,e])}function F9(e){return`${e.collection}|${e.slug}`}function U9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X9(e){for(var t=1;t{const e=LD(),t=hz(),n=pz(kG),{boardSections:r,entriesById:i,setBoardSections:o}=function(){const[e,t]=(0,c.useState)({[De.DRAFT]:[],[De.PENDING_REVIEW]:[],[De.PENDING_PUBLISH]:[]}),n=pz(gz),r=(0,c.useMemo)((()=>Object.keys(e).reduce(((t,n)=>(t.push(...e[n].map((e=>W9(W9({},e),{},{boardStatus:n})))),t)),[]).reduce(((e,t)=>(e[`${t.collection}|${t.slug}`]=t,e)),{})),[e]);return(0,c.useEffect)((()=>{t(Object.values(n).reduce(((e,t)=>(t.status&&e[t.status].push(t),e)),{[De.DRAFT]:[],[De.PENDING_REVIEW]:[],[De.PENDING_PUBLISH]:[]}))}),[n]),{boardSections:e,entriesById:r,setBoardSections:t}}(),a=L9(De.PENDING_REVIEW),s=L9(De.PENDING_PUBLISH),[l,u]=(0,c.useState)(!1),[d,f]=(0,c.useState)(null),h=(0,c.useCallback)((({active:e})=>{u(!0),f(e.id)}),[]),p=(0,c.useCallback)((({over:e,active:n})=>{const r=i[n.id];r&&r.status&&e&&t(Gz(r.collection,r.slug,r.status,e.id)),u(!1),f(null)}),[t,i]),m=(0,c.useCallback)((()=>{u(!1),f(null)}),[]),g=(0,c.useMemo)((()=>d?i[d]:null),[d,i]),v=j5(A5(T9,{activationConstraint:{distance:8}}));return c.createElement(yH,{breadcrumbs:[{name:"Dashboard"}],showQuickCreate:!0,showLeftNav:!0,noMargin:!0},c.createElement("div",{className:qD(B9.root,l&&B9.dragging)},c.createElement("div",{className:B9["header-wrapper"]},c.createElement("h2",{className:B9.header},c.createElement("div",{className:B9["header-icon-wrapper"]},c.createElement(GB,{className:B9["header-icon"]})),c.createElement("div",{className:B9["header-label"]},e("workflow.workflow.workflowHeading"))),c.createElement("div",{className:B9["header-description"]},e("workflow.workflow.description",{smart_count:a.length,readyCount:s.length}))),c.createElement(l9,{onDragStart:h,onDragEnd:p,onDragOver:({active:e,over:t})=>{const n=i[e.id].boardStatus,a=null==t?void 0:t.id;n&&a&&n!==a&&o((t=>{const i=t[n].findIndex((t=>F9(t)===e.id));return X9(X9({},t),{},{[n]:[...t[n].filter((t=>F9(t)!==e.id))],[a]:[r[n][i],...t[a]]})}))},onDragCancel:m,sensors:v},c.createElement("div",{className:qD(B9.board,"CMS_Scrollbar_root")},Object.keys(r).filter((e=>!n||e!==De.PENDING_PUBLISH)).map((e=>c.createElement(I9,{key:e,entries:r[e],status:e,dragging:l,useOpenAuthoring:n})))),c.createElement(E9,{dropAnimation:_9},g?c.createElement(R9,{entry:g}):null))))},Y9=["name"],Z9=UD("App",["root","content"]);function G9(){const{name:e}=re();return c.createElement(pe,{to:`/collections/${e}`})}function H9(){const e=re(),{name:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const r=n();if(!r.config.config)return;const i=DC(r.config.config);return t(MA()),i.authenticate(e).then((e=>{e.useOpenAuthoring&&t(jA()),t(IA(e))})).catch((e=>{console.error(e),e instanceof Error&&(t($A({type:"warning",message:{key:"ui.toast.onFailToAuth",options:{details:e.message}}})),t(zA(e)))}))}}})((({auth:e,user:t,config:n,collections:r,loginUser:i,isFetching:o,scrollSyncEnabled:a})=>{var s,l;const u=LD(),d=ne(),f=hz(),h=f4(),p=(0,c.useCallback)((e=>c.createElement("div",null,c.createElement("h1",null,u("app.app.errorHeader")),c.createElement("div",null,c.createElement("strong",null,u("app.app.configErrors"),":"),c.createElement("div",null,null!=e?e:n.error),c.createElement("span",null,u("app.app.checkConfigYml"))))),[n.error,u]),m=(0,c.useCallback)((e=>{i(e)}),[i]),g=(0,c.useMemo)((()=>{if(!n.config)return null;const e=DC(n.config);return null==e?void 0:e.authComponent()}),[n.config]),v=(0,c.useMemo)((()=>n.config?null==g?c.createElement("div",null,c.createElement("h1",null,u("app.app.waitingBackend"))):c.createElement(g,{key:"auth-page",onLogin:m,error:e.error,inProgress:e.isFetching,siteId:n.config.backend.site_domain,base_url:n.config.backend.base_url,authEndpoint:n.config.backend.auth_endpoint,config:n.config,clearHash:()=>d("/",{replace:!0})}):null),[g,e.error,e.isFetching,n.config,m,d,u]),O=pz(vC),y=Jz(r),{pathname:b}=ee(),[w]=XT();(0,c.useEffect)((()=>{/\/collections\/[a-zA-Z0-9_-]+\/entries\/[a-zA-Z0-9_-]+/g.test(b)||/\/collections\/[a-zA-Z0-9_-]+\/new/g.test(b)&&"true"===w.get("duplicate")||f({type:b$})}),[f,b,w]),(0,c.useEffect)((()=>{t&&O&&f(Zz(r))}),[r,f,O,t]);const[k,x]=(0,c.useState)(t);(0,c.useEffect)((()=>{var e;!k&&t&&RE({name:"login",data:{login:t.login,name:null!==(e=t.name)&&void 0!==e?e:""}}),x(t)}),[k,t]);const _=(0,c.useMemo)((()=>t?c.createElement(c.Fragment,null,o&&c.createElement(yD(),null),c.createElement(ve,null,c.createElement(me,{path:"/",element:c.createElement(pe,{to:y})}),c.createElement(me,{path:"/dashboard",element:O?c.createElement(V9,null):c.createElement(pe,{to:y})}),c.createElement(me,{path:"/search",element:c.createElement(pe,{to:y})}),c.createElement(me,{path:"/collections/:name/search/",element:c.createElement(G9,null)}),c.createElement(me,{path:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",element:c.createElement(pe,{to:y})}),c.createElement(me,{path:"/collections",element:c.createElement(c0,null)}),c.createElement(me,{path:"/collections/:name",element:c.createElement(c0,null)}),c.createElement(me,{path:"/collections/:name/new",element:c.createElement($4,{collections:r,newRecord:!0})}),c.createElement(me,{path:"/collections/:name/new/*",element:c.createElement($4,{collections:r,newRecord:!0})}),c.createElement(me,{path:"/collections/:name/entries/*",element:c.createElement($4,{collections:r})}),c.createElement(me,{path:"/collections/:name/search/:searchTerm",element:c.createElement(c0,{isSearchResults:!0,isSingleSearchResult:!0})}),c.createElement(me,{path:"/collections/:name/filter/*",element:c.createElement(c0,null)}),c.createElement(me,{path:"/search/:searchTerm",element:c.createElement(c0,{isSearchResults:!0})}),c.createElement(me,{path:"/edit/:name/*",element:c.createElement(H9,null)}),c.createElement(me,{path:"/page/:id",element:c.createElement(R4,null)}),c.createElement(me,{path:"/media",element:c.createElement(Q4,null)}),c.createElement(me,{element:c.createElement(eW,null)}))):v),[v,r,y,o,O,t]);return(0,c.useEffect)((()=>{setTimeout((()=>{RE({name:"mounted"})}))}),[]),(0,c.useEffect)((()=>{var e,t;const r=null===(e=n.config)||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.default_theme;We(r)||Ie(localStorage.getItem("color-theme"))||f(DA(r))}),[null===(s=n.config)||void 0===s||null===(l=s.theme)||void 0===l?void 0:l.default_theme,f]),n.config?n.error?p():n.isFetching?c.createElement(nK,null,u("app.app.loadingConfig")):c.createElement(sH,{theme:h,element:document.documentElement},c.createElement(vD.ScrollSync,{key:"scroll-sync",enabled:a},c.createElement(c.Fragment,null,c.createElement("div",{key:"back-to-top-anchor",id:"back-to-top-anchor"}),c.createElement("div",{key:"cms-root",id:"cms-root",className:Z9.root},c.createElement("div",{key:"cms-wrapper",className:Z9.content},c.createElement(J4,{key:"snackbars"}),_,c.createElement(Mz,{key:"alert"}),c.createElement(VM,{key:"confirm"})))))):p(u("app.app.configNotFound"))})),J9=UD("WidgetUnknown",["root"]),e8=UD("WidgetUnknownPreview",["root"]);xE("unknown",(({field:e})=>{const t=LD();return c.createElement("div",{className:J9.root},t("editor.editorWidgets.unknownControl.noControl",{widget:e.widget}))}),(({field:e})=>{const t=LD();return c.createElement("div",{className:e8.root},t("editor.editorWidgets.unknownPreview.noPreview",{widget:e.widget}))}));var t8=__webpack_require__(68883);let n8=function(e){return e.Other="other",e.Success="success",e}({});function r8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o8=function(e){return e.MERGED="MERGED",e.SUPERSEDED="SUPERSEDED",e.OPEN="OPEN",e.DECLINED="DECLINED",e}(o8||{}),a8=function(e){return e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="INPROGRESS",e.Stopped="STOPPED",e}(a8||{});const s8="Bitbucket",l8="application/json; charset=utf-8";function u8(e){return e&&404===e.status?(console.info("[StaticCMS] This 404 was expected and handled appropriately."),{size:0,values:[]}):Promise.reject(e)}class c8{constructor(e){i8(this,"apiRoot",void 0),i8(this,"branch",void 0),i8(this,"repo",void 0),i8(this,"requestFunction",void 0),i8(this,"repoURL",void 0),i8(this,"commitAuthor",void 0),i8(this,"mergeStrategy",void 0),i8(this,"initialWorkflowStatus",void 0),i8(this,"cmsLabelPrefix",void 0),i8(this,"buildRequest",(e=>{const t=i_.withRoot(this.apiRoot)(e);return"cache"in t?t:i_.withNoCache(t)})),i8(this,"request",(e=>{try{return c_(this,e)}catch(e){if(e instanceof Error)throw new a_(e.message,null,s8);throw new a_("Unknown api error",null,s8)}})),i8(this,"responseToJSON",V_({format:"json",apiName:s8})),i8(this,"responseToBlob",V_({format:"blob",apiName:s8})),i8(this,"responseToText",V_({format:"text",apiName:s8})),i8(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),i8(this,"requestText",(e=>this.request(e).then(this.responseToText))),i8(this,"user",(()=>this.requestJSON("/user"))),i8(this,"hasWriteAccess",(async()=>{const e=await this.request(this.repoURL);if(404===e.status)throw Error("Repo not found");return e.ok})),i8(this,"getBranch",(async e=>await this.requestJSON(`${this.repoURL}/refs/branches/${e}`))),i8(this,"branchCommitSha",(async e=>{const{target:{hash:t}}=await this.getBranch(e);return t})),i8(this,"defaultBranchCommitSha",(()=>this.branchCommitSha(this.branch))),i8(this,"isFile",(({type:e})=>"commit_file"===e)),i8(this,"getFileId",((e,t)=>`${e}/${t}`)),i8(this,"processFile",(e=>function(e){for(var t=1;te.filter((e=>!!t||this.isFile(e))).map(this.processFile))),i8(this,"readFile",(async(e,t,{parseText:n=!0,branch:r=this.branch,head:i=""}={})=>{const o=await d_(t,(async()=>{const t=i||await this.branchCommitSha(r);return await this.request({url:`${this.repoURL}/src/${t}/${e}`,cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)}),ZS,n);return o})),i8(this,"getEntriesAndCursor",(e=>{const{size:t,page:n,pagelen:r,next:i,previous:o,values:a}=e,s=r&&t?Math.ceil(t/r):void 0;return{entries:a,cursor:j_.create({actions:[...i?["next"]:[],...o?["prev"]:[]],meta:{page:n,count:t,pageSize:r,pageCount:s},data:{links:{next:i,prev:o}}})}})),i8(this,"listFiles",(async(e,t=1,n,r)=>{const i=await this.branchCommitSha(r),o=await this.requestJSON({url:`${this.repoURL}/src/${i}/${e}`,params:{max_depth:`${t}`,pagelen:`${n}`}}).catch(u8),{entries:a,cursor:s}=this.getEntriesAndCursor(o);return{entries:this.processFiles(a),cursor:s}})),i8(this,"traverseCursor",(async(e,t)=>{var n;return uo()([this.requestJSON,GS(this.getEntriesAndCursor),GS((({cursor:e,entries:t})=>({cursor:e,entries:this.processFiles(t)})))])((null===(n=e.data)||void 0===n?void 0:n.links)[t])})),i8(this,"listAllFiles",(async(e,t,n,r)=>{const{cursor:i,entries:o}=await this.listFiles(e,t,100,n),a=[...o];let s=i;for(;s&&s.actions.has("next");){const{cursor:e,entries:t}=await this.traverseCursor(s,"next");a.push(...t),s=e}return this.processFiles(a,r)})),i8(this,"deleteFiles",((e,t)=>{const n=new FormData;if(e.forEach((e=>{n.append("files",e)})),n.append("branch",this.branch),t&&n.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.append("author",`${e} <${t}>`)}return this.request(i_.withBody(n,i_.withMethod("POST",`${this.repoURL}/src`)))})),this.apiRoot=e.apiRoot||"https://api.bitbucket.org/2.0",this.branch=e.branch||"main",this.repo=e.repo||"",this.requestFunction=e.requestFunction||i_.performRequest,this.hasWriteAccess=e.hasWriteAccess||this.hasWriteAccess,this.repoURL=this.repo?`/repositories/${this.repo}`:"",this.mergeStrategy=e.squashMerges?"squash":"merge_commit",this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t){const n=await f_(t,(async()=>{try{const{values:t}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{path:e,include:this.branch}}),n=t[0];return{author:n.author.user?n.author.user.display_name||n.author.user.nickname:n.author.raw,updatedOn:n.date}}catch(e){return{author:"",updatedOn:""}}}),ZS);return n}async isShaExistsInBranch(e,t){var n;const r=await this.requestJSON({url:`${this.repoURL}/commits`,params:{include:e,pagelen:"100"}}).catch((t=>(console.info(`[StaticCMS] Failed getting commits for branch '${e}'`,t),[])));return null==r||null===(n=r.values)||void 0===n?void 0:n.some((e=>e.hash===t))}async uploadFiles(e,{commitMessage:t,branch:n,parentSha:r}){const i=new FormData,o=[];e.forEach((e=>{if(e.delete)i.append("files",e.path);else if(e.newPath){const t=Ee()(e,"fileObj",new Blob([e.raw]));o.push({from:e.path,to:e.newPath,contentBlob:t})}else{const t=Ee()(e,"fileObj",new Blob([e.raw]));i.append(e.path,t,ES(e.path))}}));for(const{from:e,to:t,contentBlob:a}of o){const o=(0,Re.dirname)(e),s=(0,Re.dirname)(t),l=r?this.branch:n,u=await this.listAllFiles(o,100,l);for(const t of u){i.append("files",t.path);const n=t.path===e?a:await this.readFile(t.path,null,{branch:l,parseText:!1});i.append(t.path.replace(o,s),n,ES(t.path))}}if(t&&i.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;i.append("author",`${e} <${t}>`)}i.append("branch",n),r&&i.append("parents",r);try{await this.requestText({url:`${this.repoURL}/src`,method:"POST",body:i})}catch(e){if(e instanceof Error){const t=e.message||"";r&&t.includes("Something went wrong")&&await h_(n,(e=>this.getBranch(e)),s8)}throw e}return e}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}return this.uploadFiles(r,{commitMessage:n.commitMessage,branch:this.branch})}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestText({url:`${this.repoURL}/diff/${e}..${t}`,params:{binary:"false"}}),r=(0,t8.parse)(n).map((e=>{var t,n;const r=(null===(t=e.oldPath)||void 0===t?void 0:t.replace(/b\//,""))||"",i=(null===(n=e.newPath)||void 0===n?void 0:n.replace(/b\//,""))||"",o=i||r;return{oldPath:r,newPath:i,status:e.status,newFile:"added"===e.status,path:o,binary:e.binary||/.svg$/.test(o)}}));return r}async listUnpublishedBranches(){return console.info("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),(await this.getPullRequests()).map((e=>e.source.branch.name))}async getPullRequestLabel(e){const t=await this.requestJSON({url:`${this.repoURL}/pullrequests/${e}/comments`,params:{pagelen:"100"}});return t.values.map((e=>e.content.raw))[t.values.length-1]}async getPullRequests(e){const t=e?`source.branch.name = "${e}"`:`source.branch.name ~ "${g_}/"`,n=await this.requestJSON({url:`${this.repoURL}/pullrequests`,params:{pagelen:"50",q:uE` + `),!n)throw Error(`Widget "${t}" registered without \`controlComponent\`.`);vE.widgets[t]={control:n,preview:r,validator:i,converters:o,getValidValue:a,getDefaultValue:s,schema:l}}else console.error("`registerWidget` failed, called with incorrect arguments.")}function _E(e){return vE.widgets[e]}function SE(){return Object.entries(vE.widgets).map((([e,t])=>pE({name:e},t)))}function PE(e){return _E(e||"string")||_E("unknown")}function EE(e){return vE.widgetValueSerializers[e]}function CE(e,t){e&&t?vE.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):vE.backends[e]={init:(e,n)=>new t(e,n)}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")}function TE(e){return vE.backends[e]}function $E(e){if(!gE.includes(e))throw new Error(`Invalid event name '${e}'`)}function QE(e){const{name:t,collection:n,file:r,field:i}=e;$E(t);const o=[];var a,s,l,u,c,d,f,h,p,m,g;return"change"===t?(o.push(...vE.eventHandlers[t].all),n?(o.push(...null!==(a=vE.eventHandlers[t].collections[n])&&void 0!==a?a:[]),r||i?(i&&o.push(...null!==(f=null===(h=vE.eventHandlers[t].collectionField[n])||void 0===h?void 0:h[i])&&void 0!==f?f:[]),r?(o.push(...null!==(s=null===(l=vE.eventHandlers[t].files[n])||void 0===l?void 0:l[r])&&void 0!==s?s:[]),i?(o.push(...null!==(u=null===(c=vE.eventHandlers[t].fileField[n])||void 0===c||null===(d=c[r])||void 0===d?void 0:d[i])&&void 0!==u?u:[]),o):o):o):o):o):"prePublish"===t||"postPublish"===t||"preSave"===t||"postSave"===t?(o.push(...vE.eventHandlers[t].all),n?(o.push(...null!==(p=vE.eventHandlers[t].collections[n])&&void 0!==p?p:[]),r?(o.push(...null!==(m=null===(g=vE.eventHandlers[t].files[n])||void 0===g?void 0:g[r])&&void 0!==m?m:[]),o):o):o):[...vE.eventHandlers[t]]}async function RE(e){const{name:t,data:n,collection:r,file:i,fieldName:o,field:a}=e;if($E(t),"mounted"===t||"logout"===t){console.info(`[StaticCMS] Firing ${t} event`);const e=vE.eventHandlers[t];for(const t of e)t();return}if("login"===t){console.info("[StaticCMS] Firing login event",n);const e=vE.eventHandlers[t];for(const t of e)t({author:n});return}if("postSave"===t||"prePublish"===t||"postPublish"===t){if(!r)return;const e=QE({name:t,collection:r,file:i});console.info(`[StaticCMS] Firing post save event for${i?` "${i}" file in`:""} "${r}" collection`,n);for(const t of e)t({data:n,collection:r,file:i});return}if("change"===t){if(!r||!a||!n)return;const s=QE({name:t,collection:r,file:i,field:a});let l=fE()(n);console.info(`[StaticCMS] Firing change event for field "${null!=o?o:a}" for${e.file?` "${e.file}" file in`:""} "${r}" collection`);for(const e of s){const t=await e({data:l,collection:r,file:i,field:a});void 0!==l&&t&&(l=t)}return l}if(!r)return;let s=fE()(n);console.info(`[StaticCMS] Firing pre save event for${e.file?` "${e.file}" file in`:""} "${r}" collection`,n);const l=QE({name:t,collection:r,file:i});for(const e of l){const t=await e({data:s,collection:r,file:i});if(void 0!==s&&void 0!==t){const e=pE(pE({},s.entry),{},{data:t});s=pE(pE({},s),{},{entry:e})}}return s.entry.data}function AE(e,t){return e.filter((e=>e!==t))}function jE(e,t){e&&t?vE.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")}function DE(e){return vE.locales[e]}function ME(e){var t;return null!==(t=vE.icons[e])&&void 0!==t?t:null}function IE(){return vE.additionalLinks}function zE(e){return vE.shortcodes[e]}function WE(){return vE.shortcodes}function NE(){return vE.themes}function LE(e,t){const n="backup";return e?`${n}.${e}${t?`.${t}`:""}`:n}const FE={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"};function UE(e,t,n,r,i){var o;if("string"==typeof n||"number"==typeof n)return!1;const a=null!==(o=null==n?void 0:n.length)&&void 0!==o?o:0;function s(n){return{type:FE.RANGE,message:e(`editor.editorControlPane.widget.${n}`,{fieldLabel:t,minCount:r,maxCount:i,count:a})}}return[r,i].every((e=>e&&!isNaN(e)))&&(ai)?s(r===i?"rangeCountExact":"rangeCount"):r&&!isNaN(r)&&r>0&&ai)&&s("rangeMax")}function XE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qE(e){for(var t=1;tqE(qE({},e),{},{path:e.path.slice(r.length)}))),o=i.reduce(((e,t)=>{let n=(0,Re.dirname)(t.path);for(;n&&!e[n]&&"/"!==n;){const t=n.split("/");e[n]=t.pop(),n=t.length?t.join("/"):void 0}return e}),{});"nested"in e&&null!==(n=e.nested)&&void 0!==n&&n.summary?e=qE(qE({},e),{},{summary:e.nested.summary}):delete(e=qE({},e)).summary;const a=[{title:e.label,path:"/",isDir:!0,isRoot:!0},...Object.entries(o).map((([e,t])=>({title:t,path:e,isDir:!0,isRoot:!1}))),...i.map(((n,r)=>{let i=t[r];i=qE(qE({},i),{},{data:VE(i.path,i.data)});const o=PP(e,i);return qE(qE({},n),{},{title:o,isDir:!1,isRoot:!1})}))],s=a.reduce(((e,t)=>{const n="/"===t.path?"":(0,Re.dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e}),{}),l=s[""].reduce((function e(t,n){const r=n;let i=[];return s[r.path]&&(i=s[r.path].reduce(e,[])),t.push(qE(qE({},r),{},{children:i})),t}),[]);return l}var KE=__webpack_require__(74225),JE=__webpack_require__.n(KE);function eC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tC(e){for(var t=1;t!(!e||Array.isArray(e)||"object"!=typeof e||e instanceof Date)));return t.length>0?be.filter(n,t,{extract:e=>String(e[i[0]])}).sort(oC).map((e=>e.original)):[]}return e.map((e=>rC(e,i,n)))}if(e&&"object"==typeof e&&!(e instanceof Date)){const r=tC({},e),[i,...o]=t,a=r[i];return!a||!Array.isArray(a)&&("object"!=typeof a||a instanceof Date)||(r[i]=rC(a,o,n)),r}return e}function iC(e,t,n){return e?[tC(tC({},e),{},{data:t.reduce(((t,r)=>JE()(t,rC(e.data,r.split("."),n))),{})})]:[]}function oC(e,t){return e.score>t.score?-1:e.score-1){var i=n[r];return r>0&&(n.splice(r,1),n.unshift(i)),i.value}return aC}return{get:r,put:function(t,i){r(t)===aC&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,l);function c(){var t=u.get(arguments);if(t===aC){if(t=e.apply(null,arguments),s){var n=u.getEntries().find((function(e){return s(e.value,t)}));n&&(t=n.value)}u.put(arguments,t)}return t}return c.clearCache=function(){return u.clear()},c}function uC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!1!==e)),pC=cC([function(e){var t,n;return null===(t=e.config.config)||void 0===t||null===(n=t.media_library)||void 0===n?void 0:n.display_in_navigation}],(e=>!1!==e));function mC(e){var t;return null===(t=e.config.config)||void 0===t?void 0:t.display_url}function gC(e){return(null==e?void 0:e.publish_mode)===je}const vC=cC([function(e){var t;return null===(t=e.config.config)||void 0===t?void 0:t.publish_mode}],(e=>e===je));var OC=__webpack_require__(1869),yC=__webpack_require__.n(OC);function bC(e,t="",n="",r={}){return{collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:yC()(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||void 0,i18n:r.i18n||{},meta:r.meta||void 0,openAuthoring:r.openAuthoring}}const wC=["field"];function kC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xC(e){for(var t=1;t1?r[1]:null;return null===i?null:Co(n,i).replace(/\/\//g,"")}function PC(e,t){if(ze(e)||"number"==typeof e||"boolean"==typeof e||e instanceof Date)return e;if(Array.isArray(e))return e.map((e=>PC(e,t)));if("object"==typeof e)return Object.keys(e).reduce(((n,r)=>(n[r]=PC(e[r],t),n)),{});return SC(t,e)||e}class EC{constructor(){_C(this,"storageKey","static-cms-user")}retrieve(){const e=window.localStorage.getItem(this.storageKey);return e&&JSON.parse(e)}store(e){window.localStorage.setItem(this.storageKey,JSON.stringify(e))}logout(){window.localStorage.removeItem(this.storageKey)}}function CC(e,t){const n=Ee()(t.data,e);if(n)return String(n);{const n=e.split(".")[0];return t[n]?String(t[n]):""}}function TC(e){return t=>e.reduce(((e,n)=>{const r=CC(n,t);return r?`${e} ${r}`:e}),"")}function $C(e,t){const n=e.reduce(((e,n)=>{const r=t.reduce(((e,t)=>{const r=Rx({data:n.data,path:t});return e.push(...r),e}),[]);for(let t=0;te.field)),n={},r=e.reduce(((e,t)=>{if(!e[t.slug]){const{field:r}=t,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var i;let o=null!==(i=r[e].data)&&void 0!==i?i:{};for(const r of n[e]){const e=Ee()(o,r),n=e.filter(((e,n)=>t.some((e=>`${e}.`.startsWith(`${r}.${n}.`)))));n.sort(((n,i)=>{const o=e.indexOf(n),a=e.indexOf(i),s=`${r}.${o}.`,l=`${r}.${a}.`,u=t.findIndex((e=>`${e}.`.startsWith(s))),c=t.findIndex((e=>`${e}.`.startsWith(l)));return u-c})),o=Lk(o,r,n)}return xC(xC({},r[e]),{},{data:o})}))}function RC(e,t){return function(e){var t;return Boolean("folder"in e&&(null===(t=e.meta)||void 0===t?void 0:t.path))}(t)?(0,Re.dirname)(e).slice(t.folder.length+1)||"/":e}function AC(e){var t,n;let r;return r="nested"in e&&(null===(t=e.nested)||void 0===t?void 0:t.depth)||G_(null!==(n=e.path)&&void 0!==n?n:""),Hk(e)&&(r=function(e,t){const n=Kk(e);if(n){const{structure:e}=n;if(e===qk)return t+1}return t}(e,r)),r}class jC{constructor(e,{backendName:t,authStore:n,config:r}){if(_C(this,"implementation",void 0),_C(this,"backendName",void 0),_C(this,"config",void 0),_C(this,"authStore",void 0),_C(this,"user",void 0),_C(this,"backupSync",void 0),_C(this,"updateUserCredentials",(e=>{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user=xC(xC({},t),e),this.authStore.store(this.user),this.user})),_C(this,"getToken",(()=>this.implementation.getToken())),_C(this,"backendPromise",{}),this.deleteAnonymousBackup(),this.config=r,this.implementation=e.init(this.config,{useWorkflow:gC(this.config),updateUserCredentials:this.updateUserCredentials,initialWorkflowStatus:De.DRAFT}),this.backendName=t,this.authStore=n,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=Wx()}async status(){let e={auth:{status:!0},api:{status:!0,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every((e=>!0===e.status)))return e;await new Promise((e=>setTimeout(e,1e3*t)))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then((e=>(this.user=xC(xC({},e),{},{backendName:this.backendName}),this.authStore.store(this.user),this.user))):Promise.resolve(null)}authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then((e=>(this.user=xC(xC({},e),{},{backendName:this.backendName}),this.authStore&&this.authStore.store(this.user),this.user)))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}async entryExist(e,t,n,r){const i=r&&await this.implementation.unpublishedEntry({collection:e.name,slug:n}).catch((e=>e.name===I_&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e)));if(i)return i;const o=await this.implementation.getEntry(t).then((({data:e})=>e)).catch((()=>Promise.resolve(!1)));return o}async generateUniqueSlug(e,t,n,r,i){const o=n.slug;let a;if(i)a=ZE(e,i);else{const n=IP(e,t.slug);a=BP(e,t.data,o,n)}let s=1,l=a;for(;r.includes(l)||await this.entryExist(e,kP(e,l),l,gC(n));)l=`${a}${Po(" ",o)}${s++}`;return l}processEntries(e,t,n){const r=e.map((e=>bC(t.name,xP(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn}))).map(this.entryWithFormat(t,n)),i=t.filter,o=i?this.filterEntries({entries:r},i):r;if(Hk(t)){const e=bP(t);return lx(t,e,o)}return o}async listEntries(e,t){var n;const r=bP(e);let i;if("folder"in e)i=()=>{const t=AC(e);return this.implementation.entriesByFolder(e.folder,r,t)};else{const t=e.files.map((e=>({path:e.file,label:e.label})));i=()=>this.implementation.entriesByFiles(t)}const o=await i(),a=j_.create(o[D_]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(o,e,t),pagination:null===(n=a.meta)||void 0===n?void 0:n.page,cursor:a}}async listAllEntriesExecutor(e,t){if("folder"in e&&e.folder&&this.implementation.allEntriesByFolder){const n=AC(e),r=bP(e);return this.implementation.allEntriesByFolder(e.folder,r,n,function(e){let t="";return"folder"in e&&e.path&&(t=`${e.folder}/${e.path}`.replace(/{{.*}}/gm,"(.*)")),Hk(e)&&(t=function(e,{default_locale:t,structure:n}){return n===qk?`${t}\\/${e}`:n===Bk?`${e}\\.${t}\\..*`:e}(t,Kk(e))),t?new RegExp(t):void 0}(e)).then((n=>this.processEntries(n,e,t)))}const n=await this.listEntries(e,t),{entries:r}=n;let{cursor:i}=n;for(;i&&null!==(o=i.actions)&&void 0!==o&&o.has("next");){var o;const{entries:e,cursor:n}=await this.traverseCursor(i,"next",t);r.push(...e),i=n}return r}async listAllEntries(e,t){const n=(new Date).getTime();if(e.name in this.backendPromise){const t=this.backendPromise[e.name];if(t&&t.expires>=n){if(t.data)return Promise.resolve(t.data);if(t.promise)return t.promise}delete this.backendPromise[e.name]}const r=new Promise((n=>{this.listAllEntriesExecutor(e,t).then((t=>{const r=(new Date).getTime();this.backendPromise[e.name]={expires:r+5e3,data:t},n(t)}))}));return this.backendPromise[e.name]={expires:n+5e3,promise:r},r}printError(e){return`\n\n${e.stack}`}async search(e,t,n){const r=[],i=e.map((async e=>{var r;const i=Dx(null!==(r=e.summary)&&void 0!==r?r:"");let o=[];"files"in e?e.files.forEach((e=>{const t=e.fields.map((e=>e.name));o=[...o,...t]})):o=[jP(e,"title"),jP(e,"shortTitle"),jP(e,"author"),...i.map((t=>Cx[t]?jP(e,"date"):t))];const a=o.filter(Boolean),s=await this.listAllEntries(e,n);return be.filter(t,s,{extract:TC(Qe()(a))})})).map((e=>e.catch((e=>(r.push(e),[]))))),o=await Promise.all(i).then((e=>Se()(e)));if(r.length>0)throw new Error(`Errors occurred while searching entries locally!${r.map(this.printError)}`);const a=o.filter((({score:e})=>e>3)).sort(oC).map((e=>e.original));return{entries:a,pagination:1}}async query(e,t,n,r,i,o){const a=await this.listAllEntries(e,t);if(i){let e=iC(a.find((e=>e.slug===i)),n,r);return void 0!==o&&o>0&&(e=e.slice(0,o)),{query:r,hits:e}}const s=$C(a,n);let l=be.filter(r,s,{extract:e=>CC(e.field,e)}).sort(oC).map((e=>e.original));return void 0!==o&&o>0&&(l=l.slice(0,o)),{query:r,hits:QC(l)}}traverseCursor(e,t,n){const[r,i]=e.unwrapData(),o=r.collection;return this.implementation.traverseCursor(i,t).then((async({entries:e,cursor:t})=>({entries:this.processEntries(e,o,n),cursor:j_.create(t).wrapData({cursorType:"collectionEntries",collection:o})})))}async getLocalDraftBackup(e,t,n){const r=LE(e.name,n),i=await ZS.getItem(r);if(!i||!i.raw.trim())return{entry:null};const{raw:o,path:a}=i;let{mediaFiles:s=[]}=i;s=s.map((e=>e.file?xC(xC({},e),{},{url:URL.createObjectURL(e.file)}):e));const l=wP(e,n),u=r=>this.entryWithFormat(e,t)(bC(e.name,n,a,{raw:r,label:l,mediaFiles:s})),c=u(o);if(Hk(e)&&i.i18n){const e=function(e,t){return Object.entries(e).reduce(((e,[n,{raw:r}])=>{const i=t(r);return Uk(Uk({},e),{},{[n]:{data:i.data}})}),{})}(i.i18n,u);c.i18n=e}return{entry:c}}async persistLocalDraftBackup(e,t,n){try{await this.backupSync.acquire();const r=LE(t.name,e.slug),i=this.entryToRaw(t,e,n);if(!i.trim())return;const o=await Promise.all(e.mediaFiles.map((async e=>{var t;if(null!==(t=e.url)&&void 0!==t&&t.startsWith("blob:")){const t=await fetch(e.url).then((e=>e.blob()));return xC(xC({},e),{},{file:zS(e.name,t)})}return e})));let a;return Hk(t)&&(a=function(e,t,n){const r=Kk(e);if(!r)return{};const{locales:i,default_locale:o}=r,a=i.filter((e=>e!==o)).reduce(((e,r)=>{const i=tx(r,o),a=Ee()(t,i);return a?Uk(Uk({},e),{},{[r]:{raw:n(Uk(Uk({},t),{},{data:a}))}}):e}),{});return a}(t,e,(e=>this.entryToRaw(t,e,n)))),await ZS.setItem(r,xC({raw:i,path:e.path,mediaFiles:o},a&&{i18n:a})),await ZS.setItem(LE(),i)}catch(e){console.warn("[StaticCMS] persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{return await this.backupSync.acquire(),await ZS.removeItem(LE(e.name,t)),t&&await ZS.removeItem(LE(e.name)),await this.deleteAnonymousBackup()}catch(e){console.warn("[StaticCMS] deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return ZS.removeItem(LE())}async getEntry(e,t,n,r){const i=kP(t,r),o=wP(t,r),a=bP(t),s=async i=>{const a=await this.implementation.getEntry(i);let s=bC(t.name,r,a.file.path,{raw:a.data,label:o,mediaFiles:[]});return s=this.entryWithFormat(t,n)(s),s=await this.processEntry(e,t,s),s};let l;return l=Hk(t)?await async function(e,t,n,r,i){let o=Kk(e);o||(o={structure:Vk,locales:[],enforce_required_non_default:!0});const{structure:a,locales:s,default_locale:l}=o;let u;if(a===Vk)u=sx(await i(n),l,s);else{const o=(await Promise.all(s.map((async e=>{const o=nx(a,t,n,r,e);return{value:await i(o).catch((()=>null)),locale:e}})))).filter((e=>null!==e.value));u=ax(e,a,l,o)}return u}(t,a,i,r,s):await s(i),l}getMedia(e,t,n){return this.implementation.getMedia(e,t,n)}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e,t){return n=>{const r=no(e,n);if(n&&void 0!==n.raw){const e=r&&xe()(r.fromFile.bind(r,n.raw,t))||{};return Te()(e)&&console.error(e),Object.assign(n,{data:Te()(e)?{}:e})}return n}}async processEntry(e,t,n){const r=e.config;if(!r.config)throw new Error("Config not loaded");const i=function(e,t,n){const r=function(e,t){var n;return CP("folder"in e?e.fields:(null===(n=TP(e,t))||void 0===n?void 0:n.fields)||[])}(t,n.slug),i=r.map((r=>hP(e,t,n,r)));if("files"in t)TP(t,n.slug)&&i.unshift(hP(e,t,n,void 0));else if("media_folder"in t){const r=vP({},t);i.unshift(hP(e,r,n,void 0))}return[...new Set(i)]}(r.config,t,n);if(i.length>0){const e=await Promise.all(i.map((e=>{var i,o;const a=pP(r.config,t,"",n,void 0);return this.implementation.getMedia(e,null!==(i=null===(o=t.media_library)||void 0===o?void 0:o.folder_support)&&void 0!==i&&i,a)})));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.files||[]);return n}async persistEntry({config:e,rootSlug:t,collection:n,entryDraft:r,assetProxies:i,usedSlugs:o,unpublished:a=!1,status:s}){var l;const u=await this.invokePreSaveEvent(r.entry,n),c=u?xC(xC({},r),{},{entry:xC(xC({},r.entry),{},{data:u})}):r,d=null!==(l=c.entry.newRecord)&&void 0!==l&&l,f=gC(e),h=function(e,t,n,r){var i,o,a;if(!("nested"in t)||null===(i=t.nested)||void 0===i||!i.path)return;const s=t.nested.path.index_file,l=bP(t),u=null!==(o=null===(a=e.meta)||void 0===a?void 0:a.path)&&void 0!==o?o:GE(t,e,n,r);return(0,Re.join)(t.folder,u,`${s}.${l}`)}(r.entry,n,t,e.slug);let p;if(d){var m;if(!function(e){var t;return"fields"in e&&(null===(t=e.create)||void 0===t||t)}(n))throw new Error("Not allowed to create new entries in this collection");const t=await this.generateUniqueSlug(n,c.entry,e,o,h),r=h||(null!==(m=kP(n,t))&&void 0!==m?m:"");c.entry.path=r,c.entry.data=PC(c.entry.data,r),function(e,t){e.forEach((e=>{const n=SC(t,e.path);n&&(e.path=n)}))}(i,r),p={path:r,slug:t,raw:this.entryToRaw(n,c.entry,e)}}else{const t=c.entry.slug;p={path:c.entry.path,slug:h&&!f?ZE(n,h):t,raw:this.entryToRaw(n,c.entry,e),newPath:h}}const{slug:g,path:v,newPath:O}=p;let y=[p];if(Hk(n)){const t=bP(n);y=function(e,t,n,r,i,o,a){const s=Kk(e);if(!s)return[];const{structure:l=Vk,default_locale:u,locales:c}=s;if(l===Vk){const e=c.reduce(((e,t)=>{const r=tx(t,u);return e&&(e[t]=Ee()(n,r)),e}),{});return n.data=e,[Uk({path:nx(l,t,i,o,c[0]),slug:o,raw:r(n)},a&&{newPath:nx(l,t,a,o,c[0])})]}return c.map((e=>{const s=tx(e,u);return n.data=Ee()(n,s),Uk({path:nx(l,t,i,o,e),slug:o,raw:n.data?r(n):""},a&&{newPath:nx(l,t,a,o,e)})})).filter((e=>e.raw))}(n,t,c.entry,(t=>this.entryToRaw(n,t,e)),v,g,O)}const b=await this.currentUser(),w={newEntry:d,commitMessage:UP(d?"create":"update",e,{collection:n,slug:g,path:v,authorLogin:b.login,authorName:b.name,data:c.entry.data},b.useOpenAuthoring),collectionName:n.name,useWorkflow:f,unpublished:a,status:s};return f||await this.invokePrePublishEvent(c.entry,n),await this.implementation.persistEntry({dataFiles:y,assets:i},w),await this.invokePostSaveEvent(c.entry,n),f||await this.invokePostPublishEvent(c.entry,n),g}async getEventData(e){const{login:t,name:n=""}=await this.currentUser();return{entry:e,author:{login:t,name:n}}}async invokePrePublishEvent(e,t){const n=await this.getEventData(e);return await RE({name:"prePublish",collection:t.name,data:n})}async invokePostPublishEvent(e,t){const n=await this.getEventData(e);return await RE({name:"postPublish",collection:t.name,data:n})}async invokePreSaveEvent(e,t){const n=await this.getEventData(e);return await RE({name:"preSave",collection:t.name,data:n})}async invokePostSaveEvent(e,t){const n=await this.getEventData(e);await RE({name:"postSave",collection:t.name,data:n})}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:UP("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async deleteEntry(e,t,n){const r=e.config;if(!r.config)throw new Error("Config not loaded");const i=kP(t,n),o=bP(t);if(!_P(t))throw new Error("Not allowed to delete entries in this collection");const a=await this.currentUser(),s=UP("delete",r.config,{collection:t,slug:n,path:i,authorLogin:a.login,authorName:a.name},a.useOpenAuthoring);let l=[i];Hk(t)&&(l=ix(t,o,i,n)),await this.implementation.deleteFiles(l,s)}async deleteMedia(e,t){const n=await this.currentUser(),r=UP("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring);return this.implementation.deleteFiles([t],r)}entryToRaw(e,t,n){var r;const i=no(e,t),o=this.fieldsOrder(e,t),a=function(e,t){let n=[];if("folder"in e)n=e.fields;else if("files"in e){const r=e.files.find((e=>(null==e?void 0:e.name)===t.slug));r&&(n=r.fields)}const r={};return $P(n).forEach((t=>{const n=mx(e,t);n&&"comment"in n&&(r[t]=n.comment)})),r}(e,t);return i?i.toFile(null!==(r=t.data)&&void 0!==r?r:{},n,o,a):""}fieldsOrder(e,t){var n,r,i,o,a;if("fields"in e)return null!==(o=null===(a=e.fields)||void 0===a?void 0:a.map((e=>e.name)))&&void 0!==o?o:[];const s=null!==(r=null===(i=(null!==(n=e.files)&&void 0!==n?n:[]).filter((e=>e.name===t.slug)))||void 0===i?void 0:i[0])&&void 0!==r?r:null;if(null==s)throw new Error(`No file found for ${t.slug} in ${e.name}`);return s.fields.map((e=>e.name))}filterEntries(e,t){return function(e,t,n){return e.filter((e=>Array.isArray(t)?t.every((t=>px(e,t,n))):px(e,t,n)))}(e.entries,t,void 0)}async processUnpublishedEntry(e,t,n,r){const{slug:i,openAuthoring:o}=n;let a;if("files"in e){const t=e.files.find((e=>(null==e?void 0:e.name)===i));a=t?(0,Re.extname)(t.file):Ji.json}else a=bP(e);const s=[];if(r){const t=n.diffs.filter((e=>!e.path.endsWith(a))),r=await Promise.all(t.map((t=>this.implementation.unpublishedEntryMediaFile(e.name,i,t.path,t.id))));s.push(...r.map((e=>xC(xC({},e),{},{draft:!0}))))}const l=n.diffs.filter((e=>e.path.endsWith(a)));l.sort(((e,t)=>e.path.length-t.path.length));const u=(r,a,l)=>{const u=bC(e.name,i,a,{raw:r,isModification:!l,label:e&&wP(e,i),mediaFiles:s,updatedOn:n.updatedAt,author:n.pullRequestAuthor,status:Me(n.status),meta:{path:RC(a,e)},openAuthoring:o});return this.entryWithFormat(e,t)(u)},c=async t=>{const r=await this.implementation.unpublishedEntryDataFile(e.name,n.slug,t.path,t.id);return u(r,t.path,t.newFile)};if(l.length<=0){const t=await this.implementation.getEntry(kP(e,i));return u(t.data,t.file.path,!1)}if(Hk(e)){const t=kP(e,i),n=function(e,t,n,r,i){const o=Kk(e);if(!o)return[];const{structure:a}=o;if(a===Vk)return i;const s=ix(e,t,n,r).reduce(((e,t)=>{const n=i.find((e=>e.path===t));return n?[...e,n]:[...e,{path:t,id:"",newFile:!1}]}),[]);return s}(e,a,t,i,l);let r=await Promise.all(n.map((e=>c(e).catch((()=>null)))));return r=r.filter(Boolean),(await lx(e,a,r))[0]}return c(l[0])}async unpublishedEntries(e,t){const n=await this.implementation.unpublishedEntries(),r=(await Promise.all(n.map((async n=>{const r=await this.implementation.unpublishedEntry({id:n}),i=r.collection,o=Object.values(e).find((e=>e.name===i));return o?this.processUnpublishedEntry(o,t,r,!1):(console.warn(`Missing collection '${i}' for unpublished entry '${n}'`),null)})))).filter(Boolean);return{pagination:0,entries:r}}async unpublishedEntry(e,t,n,r){const i=await this.implementation.unpublishedEntry({collection:t.name,slug:r});let o=await this.processUnpublishedEntry(t,n,i,!0);return o=await this.processEntry(e,t,o),o}persistUnpublishedEntry(e){return this.persistEntry(xC(xC({},e),{},{unpublished:!0}))}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}async publishUnpublishedEntry(e,t){await this.invokePrePublishEvent(t,e),await this.implementation.publishUnpublishedEntry(e.name,t.slug),await this.invokePostPublishEvent(t,e)}}const DC=function(){let e;return t=>e||(e=function(e){if(null==e||!e.backend.name)throw new Error("No backend defined in configuration");const{name:t}=e.backend,n=new EC,r=TE(t);if(r)return new jC(r,{backendName:t,authStore:n,config:e});throw new Error(`Backend not found: ${t}`)}(t))}();__webpack_require__(47213);var MC=__webpack_require__(6279),IC=__webpack_require__(52323),zC=__webpack_require__(84559),WC=__webpack_require__(52123),NC=__webpack_require__(42457),LC=__webpack_require__.t(NC,2);let FC=function(e){e()};const UC=()=>FC,XC=Symbol.for("react-redux-context"),qC="undefined"!=typeof globalThis?globalThis:{};function BC(){var e;if(!c.createContext)return{};const t=null!=(e=qC[XC])?e:qC[XC]=new Map;let n=t.get(c.createContext);return n||(n=c.createContext(null),t.set(c.createContext,n)),n}const VC=BC();function YC(e=VC){return function(){return(0,c.useContext)(e)}}const ZC=YC(),GC=()=>{throw new Error("uSES not initialized!")};let HC=GC;const KC=(e,t)=>e===t;function JC(e=VC){const t=e===VC?ZC:YC(e);return function(e,n={}){const{equalityFn:r=KC,stabilityCheck:i,noopCheck:o}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:s,getServerState:l,stabilityCheck:u,noopCheck:d}=t(),f=((0,c.useRef)(!0),(0,c.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,i])),h=HC(s.addNestedSub,a.getState,l||a.getState,f,r);return(0,c.useDebugValue)(h),h}}const eT=JC();function tT(){return tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var rT=__webpack_require__(69060),iT=__webpack_require__.n(rT),oT=__webpack_require__(5356);const aT=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function sT(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,u,c,d,f=!1;return function(h,p){return f?function(f,h){const p=!o(h,l),m=!i(f,s,h,l);return s=f,l=h,p&&m?(u=e(s,l),t.dependsOnOwnProps&&(c=t(r,l)),d=n(u,c,l),d):p?(e.dependsOnOwnProps&&(u=e(s,l)),t.dependsOnOwnProps&&(c=t(r,l)),d=n(u,c,l),d):m?function(){const t=e(s,l),r=!a(t,u);return u=t,r&&(d=n(u,c,l)),d}():d}(h,p):(s=h,l=p,u=e(s,l),c=t(r,l),d=n(u,c,l),f=!0,d)}}function lT(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function uT(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function cT(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=uT(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=uT(i),i=r(t,n)),i},r}}function dT(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function fT(e,t,n){return tT({},n,e,t)}const hT={notify(){},get:()=>[]};function pT(e,t){let n,r=hT,i=0,o=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=UC();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=hT)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return u}const mT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function gT(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function vT(e,t){if(gT(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r({})))}(e),h=function(e){return e&&"object"==typeof e?lT((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"==typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"==typeof e?cT(e):dT(e,"mapDispatchToProps"):lT((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,o=!1;return function(t,n,a){const s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):dT(e,"mergeProps"):()=>fT}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function u(t){const[n,i,o]=c.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=nT(t,OT);return[t.context,e,n]}),[t]),a=c.useMemo((()=>n&&n.Consumer&&(0,oT.isContextConsumer)(c.createElement(n.Consumer,null))?n:d),[n,d]),s=c.useContext(a),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store),f=l?t.store:s.store,h=u?s.getServerState:f.getState,p=c.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=nT(t,aT);return sT(n(e,o),r(e,o),i(e,o),e,o)}(f.dispatch,r)),[f]),[g,v]=c.useMemo((()=>{if(!m)return bT;const e=pT(f,l?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,l,s]),O=c.useMemo((()=>l?s:tT({},s,{subscription:g})),[l,s,g]),y=c.useRef(),b=c.useRef(o),w=c.useRef(),k=c.useRef(!1),x=(c.useRef(!1),c.useRef(!1)),_=c.useRef();mT((()=>(x.current=!0,()=>{x.current=!1})),[]);const S=c.useMemo((()=>()=>w.current&&o===b.current?w.current:p(f.getState(),o)),[f,o]),P=c.useMemo((()=>e=>g?function(e,t,n,r,i,o,a,s,l,u,c){if(!e)return()=>{};let d=!1,f=null;const h=()=>{if(d||!s.current)return;const e=t.getState();let n,h;try{n=r(e,i.current)}catch(e){h=e,f=e}h||(f=null),n===o.current?a.current||u():(o.current=n,l.current=n,a.current=!0,c())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,p,b,y,k,x,w,v,e):()=>{}),[g]);var E,C;let T;E=wT,C=[b,y,k,o,w,v],mT((()=>E(...C)),undefined);try{T=yT(P,S,h?()=>p(h(),o):S)}catch(e){throw _.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${_.current.stack}\n\n`),e}mT((()=>{_.current=void 0,w.current=void 0,y.current=T}));const $=c.useMemo((()=>c.createElement(e,tT({},T,{ref:i}))),[i,e,T]);return c.useMemo((()=>m?c.createElement(a.Provider,{value:O},$):$),[a,$,O])}const g=c.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,l){const t=c.forwardRef((function(e,t){return c.createElement(g,tT({},e,{reactReduxForwardedRef:t}))})),r=t;return r.displayName=n,r.WrappedComponent=e,iT()(r,e)}return iT()(g,e)}},_T=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=c.useMemo((()=>{const t=pT(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}}),[e,r,i,o]),s=c.useMemo((()=>e.getState()),[e]);mT((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const l=t||VC;return c.createElement(l.Provider,{value:a},n)};function ST(e=VC){const t=e===VC?ZC:YC(e);return function(){const{store:e}=t();return e}}const PT=ST();function ET(e=VC){const t=e===VC?PT:ST(e);return function(){return t().dispatch}}const CT=ET();var TT;function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function RT(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}(e=>{HC=e})(WC.useSyncExternalStoreWithSelector),(e=>{yT=e})(zC.useSyncExternalStore),TT=NC.unstable_batchedUpdates,FC=TT,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const AT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],jT=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],DT=c.createContext({isTransitioning:!1});new Map;const MT=d.startTransition;function IT(e){let{basename:t,children:n,future:r,window:i}=e,o=c.useRef();var a;null==o.current&&(o.current=(void 0===(a={window:i,v5Compat:!0})&&(a={}),function(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=u.Pop,l=null,c=d();function d(){return(a.state||{idx:null}).idx}function m(){s=u.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:s,location:b.location,delta:t})}function y(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:O(e);return p(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,a.replaceState(f({},a.state,{idx:c}),""));let b={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(h,m),l=e,()=>{i.removeEventListener(h,m),l=null}},createHref:e=>t(i,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=u.Push;let r=v(b.location,e,t);n&&n(r,e),c=d()+1;let f=g(r,c),h=b.createHref(r);try{a.pushState(f,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(h)}o&&l&&l({action:s,location:b.location,delta:1})},replace:function(e,t){s=u.Replace;let r=v(b.location,e,t);n&&n(r,e),c=d();let i=g(r,c),f=b.createHref(r);a.replaceState(i,"",f),o&&l&&l({action:s,location:b.location,delta:0})},go:e=>a.go(e)};return b}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=y(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),v("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:O(t))}),(function(e,t){m("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),a)));let s=o.current,[l,d]=c.useState({action:s.action,location:s.location}),{v7_startTransition:b}=r||{},w=c.useCallback((e=>{b&&MT?MT((()=>d(e))):d(e)}),[d,b]);return c.useLayoutEffect((()=>s.listen(w)),[s,w]),c.createElement(ge,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}LC.flushSync;const zT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,WT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NT=c.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:d,unstable_viewTransition:f}=e,h=QT(e,AT),{basename:m}=c.useContext(Z),g=!1;if("string"==typeof u&&WT.test(u)&&(n=u,zT))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=D(t.pathname,m);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:g=!0}catch(e){}let v=function(e,t){let{relative:n}=void 0===t?{}:t;J()||p(!1);let{basename:r,navigator:i}=c.useContext(Z),{hash:o,pathname:a,search:s}=ie(e,{relative:n}),l=a;return"/"!==r&&(l="/"===a?r:W([r,a])),i.createHref({pathname:l,search:s,hash:o})}(u,{relative:i}),y=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=void 0===t?{}:t,l=ne(),u=ee(),d=ie(e,{relative:a});return c.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:O(u)===O(d);l(e,{replace:n,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}}),[u,l,d,r,i,n,e,o,a,s])}(u,{replace:a,state:s,target:l,preventScrollReset:d,relative:i,unstable_viewTransition:f});return c.createElement("a",$T({},h,{href:n||v,onClick:g||o?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:l}))})),LT=c.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:a,to:s,unstable_viewTransition:l,children:u}=e,d=QT(e,jT),f=ie(s,{relative:d.relative}),h=ee(),m=c.useContext(Y),{navigator:g}=c.useContext(Z),v=null!=m&&function(e,t){void 0===t&&(t={});let n=c.useContext(DT);null==n&&p(!1);let{basename:r}=function(e){let t=c.useContext(V);return t||p(!1),t}(FT.useViewTransitionState),i=ie(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=D(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=D(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=A(i.pathname,a)||null!=A(i.pathname,o)}(f)&&!0===l,O=g.encodeLocation?g.encodeLocation(f).pathname:f.pathname,y=h.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;r||(y=y.toLowerCase(),b=b?b.toLowerCase():null,O=O.toLowerCase());const w="/"!==O&&O.endsWith("/")?O.length-1:O.length;let k,x=y===O||!o&&y.startsWith(O)&&"/"===y.charAt(w),_=null!=b&&(b===O||!o&&b.startsWith(O)&&"/"===b.charAt(O.length)),S={isActive:x,isPending:_,isTransitioning:v},P=x?n:void 0;k="function"==typeof i?i(S):[i,x?"active":null,_?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof a?a(S):a;return c.createElement(NT,$T({},d,{"aria-current":P,className:k,ref:t,style:E,to:s,unstable_viewTransition:l}),"function"==typeof u?u(S):u)}));var FT,UT;function XT(e){let t=c.useRef(RT(e)),n=c.useRef(!1),r=ee(),i=c.useMemo((()=>function(e,t){let n=RT(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),o=ne(),a=c.useCallback(((e,t)=>{const r=RT("function"==typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(FT||(FT={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(UT||(UT={}));const qT="Ascending",BT="Descending",VT="None",YT="cms.scroll-sync-enabled",ZT="AUTH_REQUEST",GT="AUTH_SUCCESS",HT="AUTH_FAILURE",KT="AUTH_REQUEST_DONE",JT="LOGOUT",e$="CONFIG_REQUEST",t$="CONFIG_SUCCESS",n$="CONFIG_FAILURE",r$="ENTRY_REQUEST",i$="ENTRY_SUCCESS",o$="ENTRY_FAILURE",a$="ENTRIES_REQUEST",s$="ENTRIES_SUCCESS",l$="ENTRIES_FAILURE",u$="SORT_ENTRIES_REQUEST",c$="SORT_ENTRIES_SUCCESS",d$="SORT_ENTRIES_FAILURE",f$="FILTER_ENTRIES_REQUEST",h$="FILTER_ENTRIES_SUCCESS",p$="FILTER_ENTRIES_FAILURE",m$="GROUP_ENTRIES_REQUEST",g$="GROUP_ENTRIES_SUCCESS",v$="GROUP_ENTRIES_FAILURE",O$="DRAFT_CREATE_FROM_ENTRY",y$="DRAFT_CREATE_EMPTY",b$="DRAFT_DISCARD",w$="DRAFT_UPDATE",k$="DRAFT_CHANGE_FIELD",x$="DRAFT_CLEAR_CHILD_VALIDATION",_$="DRAFT_VALIDATION_ERRORS",S$="DRAFT_LOCAL_BACKUP_RETRIEVED",P$="DRAFT_LOCAL_BACKUP_DELETE",E$="DRAFT_CREATE_FROM_LOCAL_BACKUP",C$="DRAFT_CREATE_DUPLICATE_FROM_ENTRY",T$="ENTRY_PERSIST_REQUEST",$$="ENTRY_PERSIST_SUCCESS",Q$="ENTRY_PERSIST_FAILURE",R$="ENTRY_DELETE_SUCCESS",A$="ADD_DRAFT_ENTRY_MEDIA_FILE",j$="REMOVE_DRAFT_ENTRY_MEDIA_FILE",D$="CHANGE_VIEW_STYLE",M$="ADD_ASSETS",I$="ADD_ASSET",z$="REMOVE_ASSET",W$="LOAD_ASSET_REQUEST",N$="LOAD_ASSET_SUCCESS",L$="LOAD_ASSET_FAILURE",F$="MEDIA_LIBRARY_OPEN",U$="MEDIA_LIBRARY_CLOSE",X$="MEDIA_INSERT",q$="MEDIA_REMOVE_INSERTED",B$="MEDIA_LOAD_REQUEST",V$="MEDIA_LOAD_SUCCESS",Y$="MEDIA_LOAD_FAILURE",Z$="MEDIA_PERSIST_REQUEST",G$="MEDIA_PERSIST_SUCCESS",H$="MEDIA_PERSIST_FAILURE",K$="MEDIA_DELETE_REQUEST",J$="MEDIA_DELETE_SUCCESS",eQ="MEDIA_DELETE_FAILURE",tQ="MEDIA_DISPLAY_URL_REQUEST",nQ="MEDIA_DISPLAY_URL_SUCCESS",rQ="MEDIA_DISPLAY_URL_FAILURE",iQ="TOGGLE_SCROLL",oQ="SET_SCROLL",aQ="SEARCH_ENTRIES_REQUEST",sQ="SEARCH_ENTRIES_SUCCESS",lQ="SEARCH_ENTRIES_FAILURE",uQ="QUERY_REQUEST",cQ="QUERY_SUCCESS",dQ="QUERY_FAILURE",fQ="SEARCH_CLEAR",hQ="STATUS_REQUEST",pQ="STATUS_SUCCESS",mQ="STATUS_FAILURE",gQ="THEME_CHANGE",vQ="USE_OPEN_AUTHORING",OQ="UNPUBLISHED_ENTRY_REQUEST",yQ="UNPUBLISHED_ENTRY_SUCCESS",bQ="UNPUBLISHED_ENTRY_REDIRECT",wQ="UNPUBLISHED_ENTRIES_REQUEST",kQ="UNPUBLISHED_ENTRIES_SUCCESS",xQ="UNPUBLISHED_ENTRY_PERSIST_REQUEST",_Q="UNPUBLISHED_ENTRY_PERSIST_SUCCESS",SQ="UNPUBLISHED_ENTRY_PERSIST_FAILURE",PQ="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",EQ="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",CQ="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",TQ="UNPUBLISHED_ENTRY_PUBLISH_REQUEST",$Q="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",QQ="UNPUBLISHED_ENTRY_PUBLISH_FAILURE",RQ="UNPUBLISHED_ENTRY_DELETE_SUCCESS";function AQ(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:LQ(e)?2:FQ(e)?3:0}function zQ(e,t){return 2===IQ(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function WQ(e,t,n){var r=IQ(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function NQ(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function LQ(e){return gR&&e instanceof Map}function FQ(e){return vR&&e instanceof Set}function UQ(e){return e.o||e.t}function XQ(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=SR(e);delete t[wR];for(var n=_R(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=BQ),Object.freeze(e),t&&MQ(e,(function(e,t){return qQ(t,!0)}),!0)),e}function BQ(){AQ(2)}function VQ(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function YQ(e){var t=PR[e];return t||AQ(18,e),t}function ZQ(e,t){PR[e]||(PR[e]=t)}function GQ(){return pR}function HQ(e,t){t&&(YQ("Patches"),e.u=[],e.s=[],e.v=t)}function KQ(e){JQ(e),e.p.forEach(tR),e.p=null}function JQ(e){e===pR&&(pR=e.l)}function eR(e){return pR={p:[],l:pR,h:e,m:!0,_:0}}function tR(e){var t=e[wR];0===t.i||1===t.i?t.j():t.g=!0}function nR(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||YQ("ES5").S(t,e,r),r?(n[wR].P&&(KQ(t),AQ(4)),DQ(e)&&(e=rR(t,e),t.l||oR(t,e)),t.u&&YQ("Patches").M(n[wR].t,e,t.u,t.s)):e=rR(t,n,[]),KQ(t),t.u&&t.v(t.u,t.s),e!==yR?e:void 0}function rR(e,t,n){if(VQ(t))return t;var r=t[wR];if(!r)return MQ(t,(function(i,o){return iR(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return oR(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=XQ(r.k):r.o,o=i,a=!1;3===r.i&&(o=new Set(i),i.clear(),a=!0),MQ(o,(function(t,o){return iR(e,r,i,t,o,n,a)})),oR(e,i,!1),n&&e.u&&YQ("Patches").N(r,n,e.u,e.s)}return r.o}function iR(e,t,n,r,i,o,a){if(jQ(i)){var s=rR(e,i,o&&t&&3!==t.i&&!zQ(t.R,r)?o.concat(r):void 0);if(WQ(n,r,s),!jQ(s))return;e.m=!1}else a&&n.add(i);if(DQ(i)&&!VQ(i)){if(!e.h.D&&e._<1)return;rR(e,i),t&&t.A.l||oR(e,i)}}function oR(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&qQ(t,n)}function aR(e,t){var n=e[wR];return(n?UQ(n):e)[t]}function sR(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function lR(e){e.P||(e.P=!0,e.l&&lR(e.l))}function uR(e){e.o||(e.o=XQ(e.t))}function cR(e,t,n){var r=LQ(t)?YQ("MapSet").F(t,n):FQ(t)?YQ("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:GQ(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=ER;n&&(i=[r],o=CR);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):YQ("ES5").J(t,n);return(n?n.A:GQ()).p.push(r),r}function dR(e){return jQ(e)||AQ(22,e),function e(t){if(!DQ(t))return t;var n,r=t[wR],i=IQ(t);if(r){if(!r.P&&(r.i<4||!YQ("ES5").K(r)))return r.t;r.I=!0,n=fR(t,i),r.I=!1}else n=fR(t,i);return MQ(n,(function(t,i){r&&function(e,t){return 2===IQ(e)?e.get(t):e[t]}(r.t,t)===i||WQ(n,t,e(i))})),3===i?new Set(n):n}(e)}function fR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return XQ(e)}var hR,pR,mR="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),gR="undefined"!=typeof Map,vR="undefined"!=typeof Set,OR="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,yR=mR?Symbol.for("immer-nothing"):((hR={})["immer-nothing"]=!0,hR),bR=mR?Symbol.for("immer-draftable"):"__$immer_draftable",wR=mR?Symbol.for("immer-state"):"__$immer_state",kR="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",xR=""+Object.prototype.constructor,_R="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,SR=Object.getOwnPropertyDescriptors||function(e){var t={};return _R(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},PR={},ER={get:function(e,t){if(t===wR)return e;var n=UQ(e);if(!zQ(n,t))return function(e,t,n){var r,i=sR(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!DQ(r)?r:r===aR(e.t,t)?(uR(e),e.o[t]=cR(e.A.h,r,e)):r},has:function(e,t){return t in UQ(e)},ownKeys:function(e){return Reflect.ownKeys(UQ(e))},set:function(e,t,n){var r=sR(UQ(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=aR(UQ(e),t),o=null==i?void 0:i[wR];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(NQ(n,i)&&(void 0!==n||zQ(e.t,t)))return!0;uR(e),lR(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==aR(e.t,t)||t in e.t?(e.R[t]=!1,uR(e),lR(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=UQ(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){AQ(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){AQ(12)}},CR={};MQ(ER,(function(e,t){CR[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),CR.deleteProperty=function(e,t){return CR.set.call(this,e,t,void 0)},CR.set=function(e,t,n){return ER.set.call(this,e[0],t,n,e[0])};var TR=function(){function e(e){var t=this;this.O=OR,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s1?r-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=YQ("Patches").$;return jQ(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),$R=new TR,QR=$R.produce,RR=($R.produceWithPatches.bind($R),$R.setAutoFreeze.bind($R)),AR=($R.setUseProxies.bind($R),$R.applyPatches.bind($R),$R.createDraft.bind($R)),jR=$R.finishDraft.bind($R);const DR=QR;function MR(e){return MR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MR(e)}function IR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==MR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==MR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===MR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WR(e){for(var t=1;t0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;t--){var i=e[t][wR];if(!i.P)switch(i.i){case 5:r(i)&&lR(i);break;case 4:n(i)&&lR(i)}}}function n(e){for(var t=e.t,n=e.k,r=_R(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==wR){var a=t[o];if(void 0===a&&!zQ(t,o))return!0;var s=n[o],l=s&&s[wR];if(l?l.t!==a:!NQ(s,a))return!0}}var u=!!t[wR];return r.length!==_R(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r{e.messages.push(function(e){for(var t=1;t{e.messages=e.messages.filter((e=>e.id!==t.payload))}}}),{addSnackbar:$A,removeSnackbarById:QA}=TA.actions,RA=e=>e.snackbar.messages,AA=TA.reducer;function jA(){return{type:vQ}}function DA(e){return{type:gQ,payload:e}}function MA(){return{type:ZT}}function IA(e){return{type:GT,payload:e}}function zA(e){return{type:HT,error:"Failed to authenticate",payload:e}}function WA(){return(e,t)=>{const n=t();if(!n.config.config)return;const r=DC(n.config.config);Promise.resolve(r.logout()).then((()=>{e((RE({name:"logout"}),{type:JT}))}))}}var NA=Symbol.for("immer-nothing"),LA=Symbol.for("immer-draftable"),FA=Symbol.for("immer-state");function UA(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var XA=Object.getPrototypeOf;function qA(e){return!!e&&!!e[FA]}function BA(e){return!!e&&(YA(e)||Array.isArray(e)||!!e[LA]||!!e.constructor?.[LA]||JA(e)||ej(e))}var VA=Object.prototype.constructor.toString();function YA(e){if(!e||"object"!=typeof e)return!1;const t=XA(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===VA}function ZA(e,t){0===GA(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function GA(e){const t=e[FA];return t?t.type_:Array.isArray(e)?1:JA(e)?2:ej(e)?3:0}function HA(e,t){return 2===GA(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function KA(e,t,n){const r=GA(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function JA(e){return e instanceof Map}function ej(e){return e instanceof Set}function tj(e){return e.copy_||e.base_}function nj(e,t){if(JA(e))return new Map(e);if(ej(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&YA(e)){if(!XA(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[FA];let r=Reflect.ownKeys(n);for(let t=0;t1&&(e.set=e.add=e.clear=e.delete=ij),Object.freeze(e),t&&ZA(e,((e,t)=>rj(t,!0)))),e}function ij(){UA(2)}function oj(e){return Object.isFrozen(e)}var aj,sj={};function lj(e){const t=sj[e];return t||UA(0),t}function uj(){return aj}function cj(e,t){t&&(lj("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function dj(e){fj(e),e.drafts_.forEach(pj),e.drafts_=null}function fj(e){e===aj&&(aj=e.parent_)}function hj(e){return aj={drafts_:[],parent_:aj,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pj(e){const t=e[FA];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function mj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[FA].modified_&&(dj(t),UA(4)),BA(e)&&(e=gj(t,e),t.parent_||Oj(t,e)),t.patches_&&lj("Patches").generateReplacementPatches_(n[FA].base_,e,t.patches_,t.inversePatches_)):e=gj(t,n,[]),dj(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==NA?e:void 0}function gj(e,t,n){if(oj(t))return t;const r=t[FA];if(!r)return ZA(t,((i,o)=>vj(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return Oj(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),ZA(i,((i,a)=>vj(e,r,t,i,a,n,o))),Oj(e,t,!1),n&&e.patches_&&lj("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function vj(e,t,n,r,i,o,a){if(qA(i)){const a=gj(e,i,o&&t&&3!==t.type_&&!HA(t.assigned_,r)?o.concat(r):void 0);if(KA(n,r,a),!qA(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(BA(i)&&!oj(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;gj(e,i),t&&t.scope_.parent_||Oj(e,i)}}function Oj(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&rj(t,n)}var yj={get(e,t){if(t===FA)return e;const n=tj(e);if(!HA(n,t))return function(e,t,n){const r=kj(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!BA(r)?r:r===wj(e.base_,t)?(_j(e),e.copy_[t]=Sj(r,e)):r},has:(e,t)=>t in tj(e),ownKeys:e=>Reflect.ownKeys(tj(e)),set(e,t,n){const r=kj(tj(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=wj(tj(e),t),i=r?.[FA];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||HA(e.base_,t)))return!0;_j(e),xj(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==wj(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,_j(e),xj(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=tj(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){UA(11)},getPrototypeOf:e=>XA(e.base_),setPrototypeOf(){UA(12)}},bj={};function wj(e,t){const n=e[FA];return(n?tj(n):e)[t]}function kj(e,t){if(!(t in e))return;let n=XA(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=XA(n)}}function xj(e){e.modified_||(e.modified_=!0,e.parent_&&xj(e.parent_))}function _j(e){e.copy_||(e.copy_=nj(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Sj(e,t){const n=JA(e)?lj("MapSet").proxyMap_(e,t):ej(e)?lj("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:uj(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=yj;n&&(i=[r],o=bj);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:uj()).drafts_.push(n),n}function Pj(e){if(!BA(e)||oj(e))return e;const t=e[FA];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=nj(e,t.scope_.immer_.useStrictShallowCopy_)}else n=nj(e,!0);return ZA(n,((e,t)=>{KA(n,e,Pj(t))})),t&&(t.finalized_=!1),n}ZA(yj,((e,t)=>{bj[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),bj.deleteProperty=function(e,t){return bj.set.call(this,e,t,void 0)},bj.set=function(e,t,n){return yj.set.call(this,e[0],t,n,e[0])};var Ej=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let r;if("function"!=typeof t&&UA(6),void 0!==n&&"function"!=typeof n&&UA(7),BA(e)){const i=hj(this),o=Sj(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?dj(i):fj(i)}return cj(i,n),mj(r,i)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===NA&&(r=void 0),this.autoFreeze_&&rj(r,!0),n){const t=[],i=[];lj("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}UA(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;const i=this.produce(e,t,((e,t)=>{n=e,r=t}));return[i,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;BA(e)||UA(8),qA(e)&&(qA(t=e)||UA(10),e=Pj(t));const n=hj(this),r=Sj(e,void 0);return r[FA].isManual_=!0,fj(n),r}finishDraft(e,t){const n=e&&e[FA];n&&n.isManual_||UA(9);const{scope_:r}=n;return cj(r,t),mj(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=lj("Patches").applyPatches_;return qA(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Cj=Ej.produce;Ej.produceWithPatches.bind(Ej),Ej.setAutoFreeze.bind(Ej),Ej.setUseStrictShallowCopy.bind(Ej),Ej.applyPatches.bind(Ej),Ej.createDraft.bind(Ej),Ej.finishDraft.bind(Ej);var Tj=__webpack_require__(32440),$j=__webpack_require__.n(Tj),Qj=__webpack_require__(86910),Rj=__webpack_require__.n(Qj),Aj=__webpack_require__(71118),jj=__webpack_require__.n(Aj),Dj=__webpack_require__(42379),Mj=__webpack_require__.n(Dj),Ij=__webpack_require__(87842),zj=__webpack_require__.n(Ij),Wj=__webpack_require__(31335),Nj=__webpack_require__.n(Wj),Lj=__webpack_require__(73064),Fj=__webpack_require__.n(Lj);function Uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xj(e){for(var t=1;t({type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastColor:{type:"string"}},required:e?["main","light","dark","contrastColor"]:[]}),eD=e=>({type:"object",properties:Xj(Xj({name:{type:"string"}},e?{}:{extends:{type:"string"}}),{},{text:{type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},disabled:{type:"string"}},required:e?["primary","secondary","disabled"]:[]},background:{type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},divider:{type:"string"}},required:e?["main","light","dark","divider"]:[]},scrollbar:{type:"object",properties:{main:{type:"string"},light:{type:"string"}},required:e?["main","light"]:[]},button:{type:"object",properties:{disabled:{type:"string"}},required:e?["disabled"]:[]},primary:Jj(e),error:Jj(e),warning:Jj(e),info:Jj(e),success:Jj(e),codemirror:{type:"object",properties:{theme:{type:"string",examples:["light","dark"],enum:["light","dark"]}},required:e?["theme"]:[]}}),required:e?["name","text","background","scrollbar","button","primary","error","warning","info","success","codemirror"]:["name","extends"]});function tD(){const e=PA();return{$id:`fields_${e}`,type:"array",minItems:1,items:{$id:`field_${e}`,type:"object",properties:{name:{type:"string"},label:{type:"string"},widget:{type:"string"},required:{type:"boolean"},i18n:Gj,hint:{type:"string"},pattern:{type:"array",minItems:2,maxItems:2,items:[{oneOf:[{type:"string"},{instanceof:"RegExp"}]},{type:"string"}]},field:{$ref:`field_${e}`},fields:{$ref:`fields_${e}`},types:{$ref:`fields_${e}`}},select:{$data:"0/widget"},selectCases:Xj({},Xj({},SE().reduce(((e,t)=>{var n;return e[t.name]=null!==(n=t.schema)&&void 0!==n?n:{},e}),{}))),required:["name"]},uniqueItemProperties:["name"]}}const nD={type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},field:{type:"string"},pattern:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},required:["name","label","field","pattern"]}},rD={type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},field:{type:"string"},pattern:{type:"string"}},required:["name","label","field"]}};class iD extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){super(e.map((({message:e,schemaPath:t})=>{const n=t.slice(1).split("/").map((e=>e.match(/^\d+$/)?`[${e}]`:`.${e}`)).join("").slice(1);return`${n?`'${n}'`:"config"} ${e}`})).join("\n"))}toString(){return this.message}}function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aD(e){for(var t=1;t{const n=t(e);return"fields"in n&&n.fields?aD(aD({},n),{},{fields:lD(n.fields,t)}):"list"===n.widget&&n.types?aD(aD({},n),{},{types:lD(n.types,t)}):n}))}const uD=(e,t,n)=>r=>{return"media_folder"in r&&!("public_folder"in r)?aD(aD({},r),{},{public_folder:r.media_folder}):("image"!==r.widget&&"file"!==r.widget&&"markdown"!==r.widget||(r.media_library=aD(aD(aD(aD({},null!==(i=t.media_library)&&void 0!==i?i:{}),null!==(o=null==n?void 0:n.media_library)&&void 0!==o?o:{}),null!==(a=e.media_library)&&void 0!==a?a:{}),null!==(s=r.media_library)&&void 0!==s?s:{})),r);var i,o,a,s};function cD(e){return!0===e.i18n?aD(aD({},e),{},{i18n:Yk}):!1!==e.i18n&&e.i18n?e:aD(aD({},e),{},{i18n:Gk})}function dD(e,{default_locale:t,locales:n=["en"],structure:r=Vk,enforce_required_non_default:i=!0}){if("boolean"==typeof e)return{default_locale:t,locales:n,structure:r,enforce_required_non_default:i};{var o;const a=JE()({default_locale:t,locales:n,structure:r,enforce_required_non_default:i},e);return a.locales=null!==(o=e.locales)&&void 0!==o?o:n,a.default_locale=e.default_locale||(null==n?void 0:n[0]),a.enforce_required_non_default=e.enforce_required_non_default||!0,pD(a),a}}function fD(e,t){return lD(e,t?cD:e=>{const t=aD({},e);return delete t.i18n,t})}function hD(e){if(e&&e.structure!==Vk)throw new Error(`i18n configuration for files collections is limited to ${Vk} structure`)}function pD(e){var t,n;if(e&&e.default_locale&&(null===(t=e.locales)||void 0===t||!t.includes(e.default_locale)))throw new Error(`i18n locales '${null===(n=e.locales)||void 0===n?void 0:n.join(", ")}' are missing the default locale ${e.default_locale}`)}function mD(e,t){var n,r,i,o,a,s;let l,u;u=t.i18n&&e.i18n?dD(e.i18n,t.i18n):void 0,l="folder"in e?function(e,t,n){var r;const i=aD(aD({},e),{},{view_filters:void 0,view_groups:void 0,i18n:t});return i.path&&!i.media_folder&&(i.media_folder=""),"media_folder"in i&&!("public_folder"in i)&&(i.public_folder=i.media_folder),"fields"in i&&i.fields&&(i.fields=lD(i.fields,uD(i,n))),i.folder=go()(i.folder,"/"),i.publish=null===(r=i.publish)||void 0===r||r,i}(e,u,t):function(e,t,n){const r=aD(aD({},e),{},{i18n:t,view_filters:void 0,view_groups:void 0,files:e.files.map((r=>function(e,t,n,r){var i,o;const a=aD(aD({},e),{},{i18n:void 0});let s;return a.file=$j()(a.file,"/"),"media_folder"in a&&!("public_folder"in a)&&(a.public_folder=a.media_folder),a.media_library=aD(aD({},null!==(i=t.media_library)&&void 0!==i?i:{}),null!==(o=a.media_library)&&void 0!==o?o:{}),a.fields&&(a.fields=lD(a.fields,uD(t,r,a))),e.i18n&&n?(s=dD(e.i18n,{locales:n.locales,default_locale:n.default_locale,structure:n.structure,enforce_required_non_default:n.enforce_required_non_default}),a.i18n=s):(s=void 0,delete a.i18n),hD(s),a.fields&&(a.fields=fD(a.fields,Boolean(s))),t.editor&&!a.editor&&(a.editor=t.editor),a}(r,e,t,n)))});return hD(t),r}(e,u,t),t.editor&&!l.editor&&(l.editor=t.editor),l.media_library=aD(aD({},null!==(n=t.media_library)&&void 0!==n?n:{}),null!==(r=l.media_library)&&void 0!==r?r:{}),"fields"in l&&l.fields&&(l.fields=fD(l.fields,Boolean(u)));const{view_filters:c,view_groups:d}=e;return l.sortable_fields||(l.sortable_fields={fields:EP(l,t)}),l.view_filters={default:null===(i=e.view_filters)||void 0===i?void 0:i.default,filters:(null!==(o=null==c?void 0:c.filters)&&void 0!==o?o:[]).map((e=>aD(aD({},e),{},{id:`${e.field}__${e.pattern}`})))},l.view_groups={default:null===(a=e.view_groups)||void 0===a?void 0:a.default,groups:(null!==(s=null==d?void 0:d.groups)&&void 0!==s?s:[]).map((e=>aD(aD({},e),{},{id:`${e.field}__${e.pattern}`})))},l}function gD(e,t){return async n=>{n({type:e$});try{let r;if(window.CMS_CONFIG)r=window.CMS_CONFIG;else{const t=function(){const e=document.querySelector('link[rel="cms-config-url"]');return e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&e.href?(console.info(`[StaticCMS] Using config file path: "${e.href}"`),e.href):`${window.location.origin}${window.location.pathname.slice(0,window.location.pathname.lastIndexOf("/"))}/config.yml`}();r=e||await async function(e){var t;const n=await fetch(e,{credentials:"same-origin"}).catch((e=>e));if(n instanceof Error||200!==n.status){const e=n instanceof Error?n.message:n.status;throw new Error(`Failed to load config.yml (${e})`)}const r=null!==(t=n.headers.get("Content-Type"))&&void 0!==t?t:"Not-Found";return-1!==r.indexOf("yaml")||console.info(`[StaticCMS] Response for ${e} was not yaml. (Content-Type: ${r})`),function(e){const t=Ri.parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});if("undefined"!=typeof window&&"string"==typeof window.CMS_ENV&&t[window.CMS_ENV]){const e=Object.keys(t[window.CMS_ENV]);for(const n of e)t[n]=t[window.CMS_ENV][n]}return t}(await n.text())}(t)}!function(e){const t=new(Rj())({allErrors:!0,allowUnionTypes:!0,$data:!0});if(Fj()(t),Nj()(t),Mj()(t),zj()(t),jj()(t),!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},repo:{type:"string"},branch:{type:"string"},api_root:{type:"string"},site_domain:{type:"string"},base_url:{type:"string"},auth_endpoint:{type:"string"},app_id:{type:"string"},auth_type:{type:"string",examples:["implicit","pkce"],enum:["implicit","pkce"]},proxy_url:{type:"string"},large_media_url:{type:"string"},login:{type:"boolean"},identity_url:{type:"string"},gateway_url:{type:"string"},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},commit_messages:{type:"object",properties:{create:{type:"string"},update:{type:"string"},delete:{type:"string"},uploadMedia:{type:"string"},deleteMedia:{type:"string"}}},use_large_media_transforms_in_media_library:{type:"boolean"},always_fork:{type:"boolean"},open_authoring:{type:"boolean"},squash_merges:{type:"boolean"},cms_label_prefix:{type:"string"}},required:["name"]},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},description:{type:"string"},icon:{type:"string"},summary:{type:"string"},summary_fields:{type:"array",items:{type:"string"}},filter:Kj,label_singular:{type:"string"},label:{type:"string"},sortable_fields:{type:"object",properties:{default:{type:"object",properties:{field:{type:"string"},direction:{type:"string"}},required:["field"]},fields:{type:"array",items:{type:"string"}}},required:["fields"]},view_filters:{type:"object",properties:{default:{type:"string"},filters:nD},required:["filters"]},view_groups:{type:"object",properties:{default:{type:"string"},groups:rD},required:["groups"]},i18n:Zj,hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"},frame:{type:"boolean"}}},identifier_field:{type:"string"},path:{type:"string"},extension:{type:"string"},format:{type:"string",enum:Object.keys(Ji)},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},slug:{type:"string"},media_folder:{type:"string"},public_folder:{type:"string"},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}},folder:{type:"string"},fields:tD(),create:{type:"boolean"},delete:{type:"boolean"},nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},summary:{type:"string"},path:{type:"object",properties:{label:{type:"string"},index_file:{type:"string"}},required:["index_file"]}},required:["depth"]},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},file:{type:"string"},fields:tD(),label_singular:{type:"string"},description:{type:"string"},media_folder:{type:"string"},public_folder:{type:"string"},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}},i18n:Zj,editor:{type:"object",properties:{preview:{type:"boolean"},frame:{type:"boolean"}}}},required:["name","label","file","fields"]},uniqueItemProperties:["name"]}},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(eo)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:Ki}},required:["format"]}}},uniqueItemProperties:["name"]},locale:{type:"string",examples:["en","fr","de"]},site_id:{type:"string"},site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},base_url:{type:"string"},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},logo_link:{type:"string",examples:["https://example.com"]},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_library:{type:"object",properties:{display_in_navigation:{type:"boolean"},max_file_size:{type:"number"},folder_support:{type:"boolean"}}},publish_mode:{type:"string",enum:["simple","editorial_workflow"],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"},sanitize_replacement:{type:"string"}}},i18n:Yj,local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}}}]},disable_local_backup:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"},frame:{type:"boolean"}}},search:{type:"boolean"},theme:{type:"object",properties:{defaultTheme:{type:"string"},includeStandardThemes:{type:"boolean"},themes:{type:"array",items:{oneOf:[eD(!0),eD(!1)]}}}}},required:["backend","collections","media_folder"]},e)){var n;const e=null===(n=t.errors)||void 0===n?void 0:n.map((e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.schemaPath||"";let n=e;return t.endsWith("/fields")?n=Xj(Xj({},e),{},{message:"fields names must be unique"}):t.endsWith("/files")?n=Xj(Xj({},e),{},{message:"files names must be unique"}):t.endsWith("/collections")&&(n=Xj(Xj({},e),{},{message:"collections names must be unique"})),n}case"instanceof":{const t=e.schemaPath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n=Xj(Xj({},e),{},{message:"should be a regular expression"})),n}default:return e}}));throw console.error("Config Errors",e),new iD(null!=e?e:[])}}(r);const i=function(e){var t,n,r,i;const o=fE()(e),a=o.i18n;var s,l;a&&(a.default_locale=null!==(s=a.default_locale)&&void 0!==s?s:a.locales[0],a.enforce_required_non_default=null===(l=a.enforce_required_non_default)||void 0===l||l),pD(a);const u=aD(aD({},o),{},{collections:(null!==(t=o.collections)&&void 0!==t?t:[]).map((e=>mD(e,o)))});u.publish_mode=null!==(n=u.publish_mode)&&void 0!==n?n:"simple",u.slug=null!==(r=u.slug)&&void 0!==r?r:{},u.collections=null!==(i=u.collections)&&void 0!==i?i:[],!u.display_url&&u.site_url&&(u.display_url=u.site_url);const c=`/${$j()(u.media_folder,"/")}`;return"public_folder"in u||(u.public_folder=c),"encoding"in u.slug||(u.slug.encoding="unicode"),"clean_accents"in u.slug||(u.slug.clean_accents=!1),"sanitize_replacement"in u.slug||(u.slug.sanitize_replacement="-"),u}(await async function(e){if(!e.local_backend)return e;const{proxyUrl:t,publish_modes:n,type:r}=await async function(e){if(!["localhost","127.0.0.1",..."boolean"==typeof e?[]:(null==e?void 0:e.allowed_hosts)||[]].includes(location.hostname)||!e)return{};const t="http://localhost:8081/api/v1",n=!0===e?t:e.url||t.replace("localhost",location.hostname);try{console.info(`[StaticCMS] Looking for Static CMS Proxy Server at '${n}'`);const e=await fetch(`${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}),{repo:t,publish_modes:r,type:i}=await e.json();return"string"==typeof t&&Array.isArray(r)&&"string"==typeof i?(console.info(`[StaticCMS] Detected Static CMS Proxy Server at '${n}' with repo: '${t}'`),{proxyUrl:n,publish_modes:r,type:i}):(console.info(`[StaticCMS] Static CMS Proxy Server not detected at '${n}'`),{})}catch{return console.info(`[StaticCMS] Static CMS Proxy Server not detected at '${n}'`),{}}}(e.local_backend);return t?Cj(e,(e=>{e.backend.name="proxy",e.backend.proxy_url=t,e.publish_mode&&(e.publish_mode=function(e,t,n){if(e.publish_mode&&t&&!t.includes(e.publish_mode)){const r=t[0];return console.info(`'${e.publish_mode}' is not supported by '${n}' backend, switching to '${r}'`),r}return e.publish_mode}(e,n,r))})):e}(r));n(function(e,t){return{type:t$,payload:{config:e,originalConfig:t}}}(i,r)),"function"==typeof t&&t(i)}catch(e){throw console.error(e),e instanceof Error&&n({type:n$,error:"Error loading config",payload:e}),e}}}var vD=__webpack_require__(69731),OD=__webpack_require__(99092),yD=__webpack_require__.n(OD),bD=__webpack_require__(39488),wD=__webpack_require__.n(bD);function kD(e,t,n){var r;let i=null!==(r=null==t?void 0:t.reduce(((t,r)=>{const i=r.name,o=null==e?void 0:e[i],a="widget"in r&&r.widget?EE(r.widget):void 0,s="fields"in r?r.fields:void 0;if(s&&Array.isArray(o)){for(const e of o)"object"==typeof e&&(t[i]=kD(e,s,n));return t}return s&&"object"==typeof o?(t[i]=kD(o,s,n),t):a&&!ze(o)?(t[i]=a[n](o),t):(ze(o)||(t[i]=o),t)}),{}))&&void 0!==r?r:{};return i=wD()(e,i),i}function xD(e,t){return new j_(e.cursors.cursorsByType.collectionEntries[t])}const _D=cC([e=>e.entries.filter,(e,t)=>t],((e,t)=>{var n;return t&&null!==(n=null==e?void 0:e[t])&&void 0!==n?n:{}})),SD=cC([e=>e.entries.group,(e,t)=>t],((e,t)=>{var n;return t&&null!==(n=null==e?void 0:e[t])&&void 0!==n?n:{}})),PD=cC([SD],(e=>Object.values(e).find((e=>!0===(null==e?void 0:e.active))))),ED=cC([e=>e.entries.sort,(e,t)=>t],((e,t)=>{var n;return t&&null!==(n=e[t])&&void 0!==n?n:{}})),CD=cC([ED],(e=>Object.values(e).find((e=>(null==e?void 0:e.direction)!==VT))));function TD(e){return e.entries.viewStyle}function $D(e){return e.entries.entries}function QD(e,t,n){return e[`${t}.${n}`]}const RD=cC([$D,(e,t)=>t,(e,t,n)=>n],((e,t,n)=>n?QD(e,t,n):null)),AD=(e,t)=>e.entries.pages[t],jD=cC([AD],(e=>{var t;return null!==(t=null==e?void 0:e.ids)&&void 0!==t?t:[]}));cC([$D,(e,t)=>t,jD],((e,t,n)=>n.map((n=>QD(e,t,n))))),cC([jD,(e,t)=>t,(e,t,n)=>n,$D],((e,t,n,r)=>e.map((e=>QD(r,t,e))).find((e=>(null==e?void 0:e.path)===n))));const DD=cC([AD],(e=>Boolean(e))),MD=cC([AD],(e=>{var t;return null!==(t=null==e?void 0:e.isFetching)&&void 0!==t&&t})),ID=cC([function(e){return e.search.entryIds},$D,(e,t)=>t],((e,t,n)=>{return null!==(i=null==(r=e.filter((e=>-1!==n.indexOf(e.collection))).map((e=>QD(t,e.collection,e.slug))))?void 0:r.filter(Ie))&&void 0!==i?i:[];var r,i}));function zD(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class WD{constructor({url:e,file:t,path:n,field:r}){zD(this,"url",void 0),zD(this,"fileObj",void 0),zD(this,"path",void 0),zD(this,"field",void 0),this.url=e||(t?window.URL.createObjectURL(t):""),this.fileObj=t,this.path=n,this.field=r}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then((e=>e.blob()));if(e.size<=0)return"";const t=await new Promise((t=>{const n=new FileReader;n.onload=e=>{var n;const r=(null===(n=e.target)||void 0===n?void 0:n.result)||"";t(r.toString().split("base64,")[1])},n.readAsDataURL(e)}));return t}}function ND({url:e,file:t,path:n,field:r}){return new WD({url:e,file:t,path:n,field:r})}function LD(){return(0,IC.qM)()}class FD extends CustomEvent{constructor(e){super("confirm",{detail:e})}}function UD(e,t){return t.reduce(((t,n)=>(t[n]=`CMS_${e}_${n}`,t)),{})}function XD(e,t){(0,c.useEffect)((()=>(window.addEventListener(e,t),()=>{window.removeEventListener(e,t)})),[t,e])}function qD(...e){return e.filter(Boolean).map((e=>e.replace(/\n/g," ").replace(/[ ]+/g," ").trim())).join(" ")}const BD=UD("Button",["root-sm","root","root-rounded-no-padding","root-rounded-sm","root-rounded","contained-primary","contained-secondary","contained-success","contained-error","contained-warning","outlined-primary","outlined-secondary","outlined-success","outlined-error","outlined-warning","text-primary","text-secondary","text-success","text-error","text-warning","start-icon","end-icon"]),VD={contained:{primary:"CMS_Button_contained-primary",secondary:"CMS_Button_contained-secondary",success:"CMS_Button_contained-success",error:"CMS_Button_contained-error",warning:"CMS_Button_contained-warning",info:"CMS_Button_contained-info"},outlined:{primary:"CMS_Button_outlined-primary",secondary:"CMS_Button_outlined-secondary",success:"CMS_Button_outlined-success",error:"CMS_Button_outlined-error",warning:"CMS_Button_outlined-warning",info:"CMS_Button_outlined-info"},text:{primary:"CMS_Button_text-primary",secondary:"CMS_Button_text-secondary",success:"CMS_Button_text-success",error:"CMS_Button_text-error",warning:"CMS_Button_text-warning",info:"CMS_Button_text-info"}};function YD(e,t,n,r){let i="small"===n?"CMS_Button_root-sm":"CMS_Button_root";return"no-padding"===r?i="CMS_Button_root-rounded-no-padding":r&&(i="small"===n?"CMS_Button_root-rounded-sm":"CMS_Button_root-rounded"),(0,c.useMemo)((()=>`${i} ${VD[e][t]}`),[t,i,e])}const ZD=["variant","color","size","rounded","children","className","style","startIcon","endIcon","title","data-testid"],GD=e=>{let{variant:t="contained",color:n="primary",size:r="medium",rounded:i=!1,children:o,className:a,style:s,startIcon:l,endIcon:u,title:d,"data-testid":f}=e,h=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rqD(a,p)),[p,a]),g=(0,c.useMemo)((()=>c.createElement(c.Fragment,null,l?c.createElement(l,{className:BD["start-icon"]}):null,o,u?c.createElement(u,{className:BD["end-icon"]}):null)),[u,l,o]);return"to"in h?c.createElement(NT,{ref:h.linkRef,to:h.to,title:d,"data-testid":f,className:m,onClick:h.onClick,style:s},g):"href"in h?c.createElement("a",{ref:h.linkRef,href:h.href,title:d,"data-testid":f,className:m,onClick:h.onClick,style:s,target:"_blank",rel:"noreferrer"},g):c.createElement("button",{ref:h.buttonRef,title:d,"data-testid":f,className:m,style:s,disabled:h.disabled,onClick:h.onClick,"aria-label":h["aria-label"],type:"button",role:"button",tabIndex:0,"data-no-dnd":"true"},g)};function HD(){return HD=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function JD(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function eM(...e){return c.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{JD(e,t)}))}),e)}function tM(e){return"string"==typeof e}function nM(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;tn.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function oM(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const aM=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function sM(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=KD(e,aM),s=o?{}:function(e,t,n){return"function"==typeof e?e(t,void 0):e}(r,i),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=rM(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=HD({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=HD({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=iM(HD({},i,r)),s=oM(r),l=oM(i),u=t(a),c=rM(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=HD({},null==u?void 0:u.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),f=HD({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}(HD({},a,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||tM(e)?t:HD({},t,{ownerState:HD({},t.ownerState,n)})}(n,HD({},l,{ref:eM(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return c}var lM=__webpack_require__(43188),uM=__webpack_require__.t(lM,2);const cM={disableDefaultClasses:!1},dM=c.createContext(cM);function fM(e){const{disableDefaultClasses:t}=c.useContext(dM);return n=>t?"":e(n)}function hM(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const pM="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,mM=c.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=c.useState(null),s=eM(c.isValidElement(n)?n.ref:null,t);if(pM((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),pM((()=>{if(o&&!i)return JD(t,o),()=>{JD(t,null)}}),[t,o,i]),i){if(c.isValidElement(n)){const e={ref:s};return c.cloneElement(n,e)}return(0,lM.jsx)(c.Fragment,{children:n})}return(0,lM.jsx)(c.Fragment,{children:o?NC.createPortal(n,o):o})}));function gM(e){return e&&e.ownerDocument||document}const vM=function(e){const t=c.useRef(e);return pM((()=>{t.current=e})),c.useRef(((...e)=>(0,t.current)(...e))).current};function OM(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function yM(e){return gM(e).defaultView||window}function bM(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wM(e){return parseInt(yM(e).getComputedStyle(e).paddingRight,10)||0}function kM(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&bM(e,i)}))}function xM(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}const _M=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bM(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);kM(t,e.mount,e.modalRef,r,!0);const i=xM(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=xM(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=gM(e);return t.body===e?yM(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(gM(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wM(r)+e}px`;const t=gM(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wM(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=gM(r).body;else{const t=r.parentElement,n=yM(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=xM(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&bM(e.modalRef,t),kM(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&bM(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const SM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function PM(e){const t=[],n=[];return Array.from(e.querySelectorAll(SM)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function EM(){return!0}function CM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=PM,isEnabled:a=EM,open:s}=e,l=c.useRef(!1),u=c.useRef(null),d=c.useRef(null),f=c.useRef(null),h=c.useRef(null),p=c.useRef(!1),m=c.useRef(null),g=eM(t.ref,m),v=c.useRef(null);c.useEffect((()=>{s&&m.current&&(p.current=!n)}),[n,s]),c.useEffect((()=>{if(!s||!m.current)return;const e=gM(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}}),[s]),c.useEffect((()=>{if(!s||!m.current)return;const e=gM(m.current),t=t=>{v.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=o(m.current)),n.length>0){var i,s;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=v.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const O=e=>{null===f.current&&(f.current=e.relatedTarget),p.current=!0};return(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("div",{tabIndex:s?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),p.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,lM.jsx)("div",{tabIndex:s?0:-1,onFocus:O,ref:d,"data-testid":"sentinelEnd"})]})}const TM=e=>e,$M=(()=>{let e=TM;return{configure(t){e=t},generate:t=>e(t),reset(){e=TM}}})(),QM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function RM(e,t,n="Mui"){const r=QM[t];return r?`${n}-${r}`:`${$M.generate(e)}-${t}`}function AM(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=RM(e,t,n)})),r}function jM(e){return RM("MuiModal",e)}AM("MuiModal",["root","hidden","backdrop"]);const DM=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],MM=c.forwardRef((function(e,t){var n;const{children:r,closeAfterTransition:i=!1,container:o,disableAutoFocus:a=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:l=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:f=!1,hideBackdrop:h=!1,keepMounted:p=!1,onBackdropClick:m,open:g,slotProps:v={},slots:O={}}=e,y=KD(e,DM),b=HD({},e,{closeAfterTransition:i,disableAutoFocus:a,disableEnforceFocus:s,disableEscapeKeyDown:l,disablePortal:u,disableRestoreFocus:d,disableScrollLock:f,hideBackdrop:h,keepMounted:p}),{getRootProps:w,getBackdropProps:k,getTransitionProps:x,portalRef:_,isTopModal:S,exited:P,hasTransition:E}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=_M,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:f}=e,h=c.useRef({}),p=c.useRef(null),m=c.useRef(null),g=eM(m,f),[v,O]=c.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const w=()=>(h.current.modalRef=m.current,h.current.mount=p.current,h.current),k=()=>{i.mount(w(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},x=vM((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||gM(p.current).body;i.add(w(),e),m.current&&k()})),_=c.useCallback((()=>i.isTopModal(w())),[i]),S=vM((e=>{p.current=e,e&&(d&&_()?k():m.current&&bM(m.current,b))})),P=c.useCallback((()=>{i.remove(w(),b)}),[b,i]);c.useEffect((()=>()=>{P()}),[P]),c.useEffect((()=>{d?x():y&&o||P()}),[d,P,y,o,x]);const E=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&_()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},C=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=iM(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=HD({},n,t);return HD({role:"presentation"},r,{onKeyDown:E(r),ref:g})},getBackdropProps:(e={})=>HD({"aria-hidden":!0},e,{onClick:C(e),open:d}),getTransitionProps:()=>({onEnter:OM((()=>{O(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:OM((()=>{O(!0),s&&s(),o&&P()}),null==l?void 0:l.props.onExited)}),rootRef:g,portalRef:S,isTopModal:_,exited:v,hasTransition:y}}(HD({},b,{rootRef:t})),C=HD({},b,{exited:P,hasTransition:E}),T=(e=>{const{open:t,exited:n}=e;return hM({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fM(jM))})(C),$={};if(void 0===r.props.tabIndex&&($.tabIndex="-1"),E){const{onEnter:e,onExited:t}=x();$.onEnter=e,$.onExited=t}const Q=null!=(n=O.root)?n:"div",R=sM({elementType:Q,externalSlotProps:v.root,externalForwardedProps:y,getSlotProps:w,className:T.root,ownerState:C}),A=O.backdrop,j=sM({elementType:A,externalSlotProps:v.backdrop,getSlotProps:e=>k(HD({},e,{onClick:t=>{m&&m(t),null!=e&&e.onClick&&e.onClick(t)}})),className:T.backdrop,ownerState:C});return p||g||E&&!P?(0,lM.jsx)(mM,{ref:_,container:o,disablePortal:u,children:(0,lM.jsxs)(Q,HD({},R,{children:[!h&&A?(0,lM.jsx)(A,HD({},j)):null,(0,lM.jsx)(CM,{disableEnforceFocus:s,disableAutoFocus:a,disableRestoreFocus:d,isEnabled:S,open:g,children:c.cloneElement(r,$)})]}))}):null})),IM=UD("Modal",["root","content","backdrop"]),zM=["open","className","ownerState"];function WM(){return WM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{open:n,className:r,ownerState:i}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const i=(0,c.useCallback)((()=>{null==r||r()}),[r]);return c.createElement(MM,{open:e,onClose:i,slots:{backdrop:LM},slotProps:{root:{className:IM.root}}},c.createElement("div",{className:qD(IM.content,n)},t))};function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XM(e){for(var t=1;t{const e=LD(),[t,n]=(0,c.useState)(null),{resolve:r,title:i,body:o,cancel:a="ui.common.no",confirm:s="ui.common.yes",color:l="primary"}=null!=t?t:{};XD("confirm",(0,c.useCallback)((e=>{n(e.detail)}),[]));const u=(0,c.useCallback)((()=>{n(null)}),[]),d=(0,c.useCallback)((()=>{null==r||r(!1),u()}),[u,r]),f=(0,c.useCallback)((()=>{null==r||r(!0),u()}),[u,r]),h=(0,c.useMemo)((()=>i?"string"==typeof i?e(i):e(i.key,i.options):""),[i,e]),p=(0,c.useMemo)((()=>o?"string"==typeof o?e(o):e(o.key,o.options):""),[o,e]),m=(0,c.useMemo)((()=>"string"==typeof a?e(a):e(a.key,a.options)),[a,e]),g=(0,c.useMemo)((()=>"string"==typeof s?e(s):e(s.key,s.options)),[s,e]);return t?c.createElement(FM,{open:!0,onClose:d,className:BM.root,"aria-labelledby":"confirm-dialog-title","aria-describedby":"confirm-dialog-description"},c.createElement("div",{className:BM.title},h),c.createElement("div",{className:BM.content},p),c.createElement("div",{className:BM.actions},c.createElement(GD,{onClick:d,variant:"text",color:"secondary",className:BM["cancel-button"],"data-testid":"cancel-button"},m),c.createElement(GD,{onClick:f,variant:"contained",color:l,className:BM["confirm-button"],"data-testid":"confirm-button"},g))):null},YM=e=>new Promise((t=>{window.dispatchEvent(new FD(XM(XM({},e),{},{resolve:t})))})),ZM=(e,t)=>t?["meta"]:e&&tx(e.currentLocale,e.defaultLocale)||["data"],GM=e=>e.entryDraft.fieldsErrors,HM=cC([GM,(e,t)=>t,(e,t,n)=>n,(e,t,n,r)=>r],((e,t,n,r)=>{var i;return null!==(i=e[`${ZM(n,r).join(".")}.${t}`])&&void 0!==i?i:[]}));function KM(e){return e.entryDraft}function JM(e){return e.entryDraft.entry}const eI=e=>e.collections,tI=cC([eI,(e,t)=>t],((e,t)=>{if(t)return Object.values(e).find((e=>e.name===t))}));function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iI=e=>e.mediaLibrary,oI=cC([iI,KM,eI,dC,(e,t)=>t],((e,t,n,r,i)=>{let o=[];if(t.entry){var a,s;const e=null!==(a=null==t||null===(s=t.entry)||void 0===s?void 0:s.mediaFiles)&&void 0!==a?a:[],l=t.entry,u=null!=l&&l.collection?n[l.collection]:null;if(r){const t=hP(r,u,l,i);o=e.filter((e=>(0,Re.dirname)(e.path)===t)).map((e=>function(e){for(var t=1;te.mediaLibrary.files,sI=cC([iI,(e,t)=>t],((e,t)=>{var n;return null!==(n=Ee()(e,["displayURLs",t]))&&void 0!==n?n:{}})),lI=(e,t)=>e.mediaLibrary.controlMedia[t],uI=e=>e.mediaLibrary.isPersisting,cI=e=>e.mediaLibrary.isDeleting,dI=e=>e.mediaLibrary.isVisible;function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t{var a;const s=o(),l=s.config.config,u=s.entryDraft.entry,c=null===(a=s.entryDraft.entry)||void 0===a?void 0:a.collection;if(!c||!l)return;const d=s.collections[c];i(function(e,t){return{type:X$,payload:{mediaPath:e,alt:t}}}(e=Array.isArray(e)?e.map((e=>pP(l,d,e,u,t,r))):pP(l,d,e,u,t,r),n))}}function vI(e={}){const{delay:t=0,page:n=1,currentFolder:r}=e;return async(e,i)=>{const o=i().config.config;if(!o)return;const a=DC(o);function s(){var t,n;return a.getMedia(r,null!==(t=null==o||null===(n=o.media_library)||void 0===n?void 0:n.folder_support)&&void 0!==t&&t).then((t=>e(bI(t)))).catch((t=>{console.error(t),404===t.status?(console.info("[StaticCMS] This 404 was expected and handled appropriately."),e(bI([]))):e({type:Y$})}))}return e(function(e){return{type:B$,payload:{page:e}}}(n)),t>0?new Promise((e=>{setTimeout((()=>e(s())),t)})):s()}}function OI(e,t={},n,r){const{field:i}=t;return async(t,o)=>{const a=o(),s=a.config.config;if(!s)return null;const l=DC(s),u=oI(a,i),c=Eo(e.name.toLowerCase(),s.slug),d=u.find((e=>e.name.toLowerCase()===c)),f=JM(a);if(d){if(!await YM({title:"mediaLibrary.mediaLibrary.alreadyExistsTitle",body:{key:"mediaLibrary.mediaLibrary.alreadyExistsBody",options:{filename:d.name}},color:"error"}))return null;await t(yI(d))}f||t({type:Z$});try{const o=a.entryDraft.entry,u=mP(s,null!=o&&o.collection?a.collections[o.collection]:null,o,c,i,n),d=ND({file:e,path:u,field:i});let h;return t(_I(d)),f?(h=function({id:e,file:t,assetProxy:n,draft:r}){return{id:e,name:ES(n.path),displayURL:n.url,draft:r,file:t,size:t.size,url:n.url,path:n.path,field:n.field}}({id:`${d.path}/${await K_(e)}`,file:e,assetProxy:d,draft:Boolean(f)}),await t(function(e){return{type:A$,payload:e}}(h)),d):(h=await l.persistMedia(s,d),await t(function(e,t){return{type:G$,payload:{file:e,currentFolder:t}}}(h,r)),d)}catch(e){return console.error(e),t($A({type:"error",message:{key:"ui.toast.onFailToPersistMedia",options:{details:e}}})),await t({type:H$}),null}}}function yI(e){return async(t,n)=>{const r=n(),i=r.config.config;if(!i)return;const o=DC(i);try{if(e.draft)t(SI(e.path)),t(WI({id:e.id}));else{const n=JM(r);t({type:K$}),t(SI(e.path)),await o.deleteMedia(i,e.path),t(function(e){return{type:J$,payload:{file:e}}}(e)),n&&t(WI({id:e.id}))}}catch(e){return console.error(e),e instanceof Error&&t($A({type:"error",message:{key:"ui.toast.onFailToDeleteMedia",options:{details:e.message}}})),t({type:eQ})}}}function bI(e,t={}){return{type:V$,payload:hI({files:e},t)}}function wI(e){return{type:tQ,payload:{key:e}}}function kI(e,t){return{type:nQ,payload:{key:e,url:t}}}function xI(e){return{type:M$,payload:e}}function _I(e){return{type:I$,payload:e}}function SI(e){return{type:z$,payload:e}}const PI=ND({path:"empty.svg",file:new File([''],"empty.svg",{type:"image/svg+xml"})});const EI={};function CI(e,t,n,r,i){return(o,a)=>{const s=a();if(!s.config.config)return Promise.resolve(PI);const l=mP(s.config.config,e,t,n,r,i),{asset:u,isLoading:c}=s.medias[l]||{};if(c)return EI[l];if(u)return Promise.resolve(u);const d=new Promise((e=>{(async function(e,t,n){try{t({type:W$,payload:{path:e}});const{url:r}=await async function(e,t){const n=e.config.config;if(!n)return{url:""};const r=DC(n),{url:i}=await r.getMediaFile(t);return{url:i}}(n(),e),i=ND({path:e,url:r});return t(_I(i)),t(function(e){return{type:N$,payload:{path:e}}}(e)),i}catch(n){return console.error(n),n instanceof Error&&t(function(e,t){return{type:L$,payload:{path:e,error:t}}}(e,n)),PI}})(l,o,a).then((t=>{e(t)}))}));return EI[l]=d,d}}function TI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t{const i=r().config;if(!i.config)throw new Error("Config not loaded");return DC(i.config).deleteLocalDraftBackup(e,t)}}function FI(e,t,n=!1){return async(r,i)=>{n||r(function(e,t){return{type:r$,payload:{collection:e.name,slug:t}}}(e,t));try{await r(vI());const n=await async function(e,t,n){const r=e.config;if(!r.config)throw new Error("Config not loaded");const i=DC(r.config);return await i.getEntry(e,t,r.config,n)}(i(),e,t);r(II(e,n)),r(function(e,t){return{type:i$,payload:{collection:e.name,entry:t}}}(e,n))}catch(n){console.error(n),n instanceof Error&&(r($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:n.message}}})),r(function(e,t,n){return{type:o$,payload:{error:e,collection:t.name,slug:n}}}(n,e,t)))}}}const UI={append_next:{action:"next",append:!0}};function XI(e){return j_.create(e).updateStore((e=>$I($I({},e),{},{actions:new Set([...e.actions,...Object.entries(UI).filter((([t,n])=>e.actions.has(n.action))).map((([e,t])=>e))])})))}function qI(e,t=0){return async(n,r)=>{if(e.isFetching)return;const i=r().config;if(!i.config)throw new Error("Config not loaded");const o=DC(i.config),a="nested"in e||Hk(e),s=!!(t&&!isNaN(t)&&t>0)&&!a;n(RI(e));try{var l;const r=await(a?o.listAllEntries(e,i.config).then((e=>({entries:e}))):o.listEntries(e,i.config)),u=$I($I({},r),{},{cursor:"cursor"in r&&r.cursor?j_.create(r.cursor):j_.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:a?-1:t+1}})});n(AI(e,u.cursor.meta.usingOldPaginationAPI?r.entries.reverse():r.entries,null!==(l=r.pagination)&&void 0!==l?l:1,XI(u.cursor),s))}catch(t){return console.error(t),t instanceof Error?(n($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:t.message}}})),Promise.reject(n(jI(e,t)))):Promise.reject()}}}function BI(e,t){return async(n,r)=>{var i,o,a,s;const l=r(),u=e.name;if(null!==(i=l.entries.pages)&&void 0!==i&&null!==(o=i[u])&&void 0!==o&&o.isFetching)return;const c=l.config;if(!c.config)throw new Error("Config not loaded");const d=DC(c.config),{action:f,append:h}=t in UI?UI[t]:{action:t,append:!1},p=xD(l,e.name);if(null!==(a=null===(s=p.meta)||void 0===s?void 0:s.usingOldPaginationAPI)&&void 0!==a&&a){var m;const t=null!==(m=p.data.nextPage)&&void 0!==m?m:-1;if(t<0)return;return n(qI(e,t))}try{var g;n(RI(e));const{entries:t,cursor:r}=await function(e,t,n,r){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n,r)}(d,p,f,c.config),i=null===(g=r.meta)||void 0===g?void 0:g.page;return n(AI(e,t,i,XI(r),h))}catch(t){return console.error(t),t instanceof Error?(n($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:t.message}}})),Promise.reject(n(jI(e,t)))):Promise.reject()}}}function VI(e,t){return async(n,r)=>{var i;if("files"in e)return;new URLSearchParams(t).forEach(((t,n)=>{e=RP(e,n,(e=>{var n;return"default"in e&&(e.default=!!["true","True","TRUE"].includes(n=t)||!["false","False","FALSE"].includes(n)&&function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}(n)),e}))}));const o=null!==(i=e.fields)&&void 0!==i?i:[],a=rP(o),s=r(),l=s.config;if(!l.config)throw new Error("Config not loaded");const u=DC(l.config),c=function(e,t){return Hk(e)?function(e,t){const n=Kk(e);if(!n)return{};const{locales:r,default_locale:i}=n;return Object.fromEntries(r.filter((e=>e!==i)).map((e=>[e,{data:t}])))}(e,rP(t,(function(e){return e.i18n!==Zk&&e.i18n!==Yk}))):{}}(e,o);let d=bC(e.name,"","",{data:a,i18n:c,mediaFiles:[]});d=await u.processEntry(s,e,d),n({type:y$,payload:d})}}function YI({entry:e}){const t=e.mediaFiles.filter((e=>e.draft)).map((e=>ND({path:e.path,file:e.file,url:e.url,field:e.field})));return t}function ZI(e,t){const n=IP(e,t.slug);function r(e){return function(e,t){return kD(e,t,"serialize")}(e,n)}let i=$I($I({},t),{},{data:r(t.data)});return Hk(e)&&(i=function(e,t,n){const r=Kk(e);if(!r)return t;const{locales:i,default_locale:o}=r;return i.filter((e=>e!==o)).forEach((e=>{const r=ex(e);t=Lk(t,r.join("."),n(Ee()(t,r)))})),t}(e,i,r)),i}function GI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class HI{constructor(e){GI(this,"err",void 0),this.err=e}toString(){return this.err&&this.err.message}}const KI=class{constructor(e={}){GI(this,"site_id",void 0),GI(this,"base_url",void 0),GI(this,"auth_endpoint",void 0),GI(this,"authWindow",void 0),this.site_id=e.site_id||null,this.base_url=cs()(e.base_url,"/")||"https://api.netlify.com",this.auth_endpoint=go()(e.auth_endpoint,"/")||"auth",this.authWindow=null}handshakeCallback(e,t){const n=r=>{var i;if(r.data==="authorizing:"+e.provider&&r.origin===new URL(this.base_url).origin)return window.removeEventListener("message",n,!1),window.addEventListener("message",this.authorizeCallback(e,t),!1),null===(i=this.authWindow)||void 0===i?void 0:i.postMessage(r.data,r.origin)};return n}authorizeCallback(e,t){const n=r=>{if(r.origin===new URL(this.base_url).origin){if(0===r.data.indexOf("authorization:"+e.provider+":success:")){var i,o,a;const s=JSON.parse(null!==(i=null===(o=r.data.match(new RegExp("^authorization:"+e.provider+":success:(.+)$")))||void 0===o?void 0:o[1])&&void 0!==i?i:"");window.removeEventListener("message",n,!1),null===(a=this.authWindow)||void 0===a||a.close(),t(null,s)}if(0===r.data.indexOf("authorization:"+e.provider+":error:")){var s,l,u;const i=JSON.parse(null!==(s=null===(l=r.data.match(new RegExp("^authorization:"+e.provider+":error:(.+)$")))||void 0===l?void 0:l[1])&&void 0!==s?s:"");window.removeEventListener("message",n,!1),null===(u=this.authWindow)||void 0===u||u.close(),t(new HI(i))}}};return n}getSiteID(){if(this.site_id)return this.site_id;const e=document.location.host.split(":")[0];return"localhost"===e?"cms.netlify.com":e}authenticate(e,t){var n;const{provider:r}=e,i=this.getSiteID();if(!r)return t(new HI(new Error("You must specify a provider when calling netlify.authenticate")));if(!i)return t(new HI(new Error("You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make authentication work from localhost")));window.addEventListener("message",this.handshakeCallback(e,t),!1);let o=`${this.base_url}/${this.auth_endpoint}?provider=${e.provider}&site_id=${i}`;e.scope&&(o+="&scope="+e.scope),!0===e.login&&(o+="&login=true"),e.beta_invite&&(o+="&beta_invite="+e.beta_invite),e.invite_code&&(o+="&invite_code="+e.invite_code),this.authWindow=window.open(o,"Netlify Authorization"),null===(n=this.authWindow)||void 0===n||n.focus()}refresh(e,t){const{provider:n,refresh_token:r}=e,i=this.getSiteID(),o=t||Promise.reject.bind(Promise);if(!n||!r)return o(new HI(new Error("You must specify a provider and refresh token when calling netlify.refresh")));if(!i)return o(new HI(new Error("You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make token refresh work from localhost")));const a=`${this.base_url}/${this.auth_endpoint}/refresh?provider=${n}&site_id=${i}&refresh_token=${r}`,s=fetch(a,{method:"POST",body:""}).then((e=>e.json()));if(!t)return s;s.then((e=>t(null,e))).catch(t)}};function JI(){const e=PA();return window.sessionStorage.setItem("static-cms-auth",JSON.stringify({nonce:e})),e}function ez(e){const t=window.sessionStorage.getItem("static-cms-auth"),n=t&&JSON.parse(t).nonce;return window.localStorage.removeItem("static-cms-auth"),e===n}function tz(){return"https:"!==document.location.protocol&&"localhost"!==document.location.hostname&&"127.0.0.1"!==document.location.hostname}const nz=["access_token"];function rz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iz(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class oz{constructor(e={}){var t,n;iz(this,"auth_url",void 0),iz(this,"appID",void 0),iz(this,"clearHash",void 0);const r=cs()(e.base_url,"/"),i=go()(e.auth_endpoint,"/");this.auth_url=`${r}/${i}`,this.appID=null!==(t=e.app_id)&&void 0!==t?t:"",this.clearHash=null!==(n=e.clearHash)&&void 0!==n?n:()=>{}}authenticate(e,t){if(tz())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","token"),n.searchParams.set("scope",e.scope),null!=e.prompt&&null!=e.prompt&&n.searchParams.set("prompt",e.prompt),null!=e.resource&&null!=e.resource&&n.searchParams.set("resource",e.resource);const r=JSON.stringify({auth_type:"implicit",nonce:JI()});n.searchParams.set("state",r),document.location.assign(n.href)}completeAuth(e){var t;const n=new URLSearchParams(document.location.hash.replace(/^#?\/?/,""));if(!n.has("access_token")&&!n.has("error"))return;this.clearHash();const r=[...n.entries()].reduce(((e,[t,n])=>(e[t]=n,e)),{}),{nonce:i}=JSON.parse(null!==(t=r.state)&&void 0!==t?t:"");if(!ez(i))return e(new Error("Invalid nonce"));if("error"in n)return e(new Error(`${r.error}: ${r.error_description}`));if("access_token"in r){const{access_token:t}=r,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-."[e%64])).join("");return window.sessionStorage.setItem(lz,e),e}(),o=await async function(e){const t=await async function(e){const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t);return String.fromCharCode(...new Uint8Array(n))}(e);return btoa(t).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_")}(i);n.searchParams.set("code_challenge",o),document.location.assign(n.href)}async completeAuth(e){var t;const n=[...new URLSearchParams(document.location.search).entries()].reduce(((e,[t,n])=>(e[t]=n,e)),{});if(window.history.replaceState(null,"",document.location.pathname),!("code"in n)&&!("error"in n))return;const{nonce:r}=JSON.parse(null!==(t=n.state)&&void 0!==t?t:"");if(!ez(r))return e(new Error("Invalid nonce"));if("error"in n)return e(new Error(`${n.error}: ${n.error_description}`));if("code"in n){var i;const t=n.code,r=new URL(this.auth_token_url),o=await fetch(r.href,{method:"POST",body:JSON.stringify({client_id:this.appID,code:null!=t?t:"",grant_type:"authorization_code",redirect_uri:document.location.origin+document.location.pathname,code_verifier:null!==(i=window.sessionStorage.getItem(lz))&&void 0!==i?i:""}),headers:{"Content-Type":"application/json; charset=utf-8"}}),a=await o.json();window.sessionStorage.removeItem(lz),e(null,function(e){for(var t=1;t"undefined"!=typeof window&&"true"===new URLSearchParams(window.location.search).get("useCmsData")),[]),a=(0,c.useCallback)((async e=>{if(!o||!t||"data:update"!==e.data.message)return;const{fieldPath:r,value:a}=e.data.value;r===t&&i(n?await n(a):a)}),[o,t,n]);return(0,c.useEffect)((()=>{if(o&&"undefined"!=typeof window)return window.addEventListener("message",a),()=>{window.removeEventListener("message",a)}}),[o,a]),null!=r?r:e}var dz=__webpack_require__(64720),fz=__webpack_require__.n(dz);const hz=()=>CT(),pz=eT;function mz(e){const t=pz((t=>jD(t,e))),n=pz($D);return(0,c.useMemo)((()=>t&&t.map((t=>n[`${e}.${t}`]))),[e,n,t])}const gz=e=>e.editorialWorkflow.entries,vz=cC([gz,(e,t)=>t,(e,t,n)=>n],((e,t,n)=>{if(n)return e[`${t}.${n}`]})),Oz=(cC([gz,(e,t)=>t],((e,t)=>Object.values(e).filter((e=>e.status===t)))),cC([gz,(e,t)=>t],((e,t)=>Object.entries(e).filter((([e])=>e.startsWith(`${t}.`))).map((([e,t])=>t.slug)))));function yz(e){const t=mz(e.name),n=function(e,t=!1){const n=pz(gz);return(0,c.useMemo)((()=>Object.values(n).filter((n=>!(n.collection!==e||t&&n.isModification)))),[n,e,t])}(e.name),r=(0,c.useMemo)((()=>t.filter((e=>!n.find((t=>t.slug===e.slug))))),[t,n]),i=pz((t=>CD(t,e.name))),o=function(e){const t=pz((t=>_D(t,e)));return(0,c.useMemo)((()=>Object.values(null!=t?t:{}).filter((e=>!0===(null==e?void 0:e.active)))||[]),[t])}(e.name);return(0,c.useMemo)((()=>{let t=[...n,...r];if(i){const n=function(e,t){return t===io?"updatedOn":t!==ro||mx(e,t)?`data.${t}`:"author"}(e,i.key),r=i.direction===qT?"asc":"desc";t=fz()(t,n,r)}return o&&o.length>0&&(t=t.filter((e=>{const t=o.every((t=>{const n=t.pattern,r=t.field,i=e.data||{},o=Ee()(i,r);return void 0!==o&&new RegExp(String(n)).test(String(o))}));return t}))),t}),[e,o,r,i,n])}function bz(e){return(0,c.useMemo)((()=>function({config:e,collection:t,collectionFile:n,field:r}){var i,o,a,s,l;return null!==(i=null===(o=null!==(s=null!==(l=null!=r?r:n)&&void 0!==l?l:t)&&void 0!==s?s:e)||void 0===o||null===(a=o.media_library)||void 0===a?void 0:a.folder_support)&&void 0!==i&&i}(e)),[e])}function wz(e,t,n,r){return(0,c.useMemo)((()=>{const i=`${ZM(n,r)}.${e}`;return Boolean(Object.keys(t).find((e=>e.startsWith(i))))}),[t,n,r,e])}function kz(e,t){const[n,r]=(0,c.useState)(e);return(0,c.useEffect)((()=>{if(0===t)return void r(e);const n=setTimeout((()=>{r(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),0===t?e:n}function xz(e,t,n,r,i){const o=hz(),[a,s]=(0,c.useState)(!1),l=kz(e,200);return(0,c.useEffect)((()=>{if(We(l))return;let e=!0;return(async()=>{const a=await o(CI(t,r,l,n,i));e&&s(Boolean(a&&a!==PI&&Ne(a.toString())&&a.fileObj))})(),()=>{e=!1}}),[l]),a}function _z(e,t,n,r,i=!1){const o=hz();return(0,c.useCallback)((async a=>{const s=!!Ne(a)&&/^(?:[a-z+]+:)?\/\//g.test(a);if(!a||s||a.startsWith("blob:")||i)return a;const l=await o(CI(e,n,a,t,r));var u;return l!==PI&&null!==(u=null==l?void 0:l.toString())&&void 0!==u?u:""}),[e,r,o,n,t,i])}function Sz(e,t,n,r,i,o){const a=(0,c.useMemo)((()=>!!Ne(e)&&/^(?:[a-z+]+:)?\/\//g.test(e)),[e]),s=hz(),[l,u]=(0,c.useState)(a?e:""),d=kz(e,200);return(0,c.useEffect)((()=>{if(!d||a||d.startsWith("blob:")||o)return;let e=!0;return(async()=>{const o=await s(CI(t,r,d,n,i));var a;e&&u(null!==(a=null==o?void 0:o.toString())&&void 0!==a?a:"")})(),()=>{e=!1}}),[d]),(0,c.useMemo)((()=>null!=d&&d.startsWith("blob:")?d:null!=l?l:""),[l,d])}function Pz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ez(e){for(var t=1;ttI(e,null==o?void 0:o.collection))),l=(0,c.useMemo)((()=>yP(s,null==o?void 0:o.slug)),[s,null==o?void 0:o.slug]),u=bz({config:a,collection:s,collectionFile:l,field:e});(0,c.useEffect)((()=>{if(!t||!a||!o)return void r(null);let e=!0;return(async()=>{const{media_folder:n,public_folder:i}=null!=a?a:{},o=DC(a),s=await o.getMedia(t,u,i?go()(t,"/").replace(go()(n,"/"),i):t);e&&r(s)})(),r([]),()=>{e=!1}}),[t,a,o,u]);const d=(0,c.useMemo)((()=>{var r;if(!o||!a)return null!=i?i:[];const l=null!==(r=o.mediaFiles)&&void 0!==r?r:[],u=hP(a,s,o,e,t),c=l.filter((e=>{if(".gitkeep"===e.name){const t=(0,Re.dirname)(e.path);return(0,Re.dirname)(t)===go()(u,"/")}return(0,Re.dirname)(e.path)===go()(u,"/")})).map((e=>{if(".gitkeep"===e.name){const t=(0,Re.dirname)(e.path);return{key:t,id:t,name:(0,Re.basename)(t),path:t,isDirectory:!0,draft:!0}}return Ez({key:e.id},e)}));if(n){const e=[...n];if(l.length>0){const t=c.filter((t=>1==t.draft&&!e.find((e=>e.id===t.id))));e.push(...t)}return e.map((e=>Ez({key:e.id},e)))}return c}),[s,a,n,o,e,i,t]);return(0,c.useMemo)((()=>d.filter((e=>".gitkeep"!==e.name&&(u||!e.isDirectory))).sort(((e,t)=>{var n,r,i,o;const a=null!==(n=e.isDirectory)&&void 0!==n&&n;if(a!==(null!==(r=t.isDirectory)&&void 0!==r&&r))return a?-1:1;const s=null!==(i=e.draft)&&void 0!==i&&i;return s!==(null!==(o=t.draft)&&void 0!==o&&o)?s?-1:1:e.name.localeCompare(t.name)}))),[d,u])}function $z(e,t,n){const r=hz(),{controlID:i,collection:o,field:a,forImage:s=!1,forFolder:l=!1,insertOptions:u}=t,d=(0,c.useMemo)((()=>null!=i?i:PA()),[i]),f=pz((e=>lI(e,d)));(0,c.useEffect)((()=>{!f||e&&f.path===e.path&&f.alt===e.alt||setTimeout((()=>{n(f),r(function(e){return{type:q$,payload:{controlID:e}}}(d))}))}),[n,d,r,f,e]);const h=(0,c.useCallback)(((t,{replaceIndex:n,forImage:i,forFolder:c}={})=>{null==t||t.preventDefault(),r(function(e={}){const{controlID:t,value:n,alt:r,config:i={},allowMultiple:o,forImage:a,forFolder:s,replaceIndex:l,collection:u,collectionFile:c,field:d,insertOptions:f}=e;return{type:F$,payload:{controlID:t,forImage:a,forFolder:s,value:n,alt:r,allowMultiple:o,replaceIndex:l,config:i,collection:u,collectionFile:c,field:d,insertOptions:f}}}({controlID:d,forImage:null!=i?i:s,forFolder:null!=c?c:l,value:a.multiple?e?[...Array.isArray(e.path)?e.path:[e.path]]:[]:null==e?void 0:e.path,alt:null==e?void 0:e.alt,replaceIndex:n,config:a.media_library,collection:o,field:a,insertOptions:u}))}),[r,d,s,l,e,o,a,u]);return h}class Qz extends CustomEvent{constructor(e){super("alert",{detail:e})}}function Rz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Az(e){for(var t=1;t{const e=LD(),[t,n]=(0,c.useState)(null),{resolve:r,title:i,body:o,okay:a="ui.common.okay",color:s="primary"}=null!=t?t:{};XD("alert",(0,c.useCallback)((e=>{n(e.detail)}),[]));const l=(0,c.useCallback)((()=>{n(null),null==r||r()}),[r]),u=(0,c.useMemo)((()=>i?"string"==typeof i?e(i):e(i.key,i.options):""),[i,e]),d=(0,c.useMemo)((()=>o?"string"==typeof o?e(o):e(o.key,o.options):""),[o,e]),f=(0,c.useMemo)((()=>"string"==typeof a?e(a):e(a.key,a.options)),[a,e]);return t?c.createElement(FM,{open:!0,onClose:l,className:Dz.root,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},c.createElement("div",{className:Dz.title},u),c.createElement("div",{className:Dz.content},d),c.createElement("div",{className:Dz.actions},c.createElement(GD,{onClick:l,variant:"contained",color:s,className:Dz["confirm-button"]},f))):null},Iz=e=>new Promise((t=>{window.dispatchEvent(new Qz(Az(Az({},e),{},{resolve:t})))}));function zz({mediaConfig:e,field:t,currentFolder:n,callback:r}){const i=hz();return(0,c.useCallback)((async o=>{let a;var s,l;if("dataTransfer"in o?a=null!==(s=null===(l=o.dataTransfer)||void 0===l?void 0:l.files)&&void 0!==s?s:null:(o.persist(),a=o.target.files),!a)return;o.stopPropagation(),o.preventDefault();const u=[...Array.from(a)],c="number"==typeof(null==e?void 0:e.max_file_size)?e.max_file_size:512e3,d=[];for(const e of u)if(c&&e.size>c)Iz({title:"mediaLibrary.mediaLibrary.fileTooLargeTitle",body:{key:"mediaLibrary.mediaLibrary.fileTooLargeBody",options:{size:Math.floor(c/1e3)}}});else{const r=await i(OI(e,{field:t},n));d.push(r)}d.length>0&&(null==r||r(u,d)),"dataTransfer"in o||(o.target.value="")}),[null==e?void 0:e.max_file_size,i,t,n,r])}function Wz(){return(0,c.useMemo)((()=>PA()),[])}function Nz(){const e=pz(dC);return(0,c.useMemo)((()=>{if(e)return DC(e)}),[e])}function Lz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fz(e){for(var t=1;t{const i=r();if(!i.config.config)return;const o=DC(i.config.config);if(!i.editorialWorkflow.ids)try{const{entries:e,pagination:t}=await o.unpublishedEntries(i.collections,i.config.config);n(Xz(e,t))}catch(e){}n(function(e,t){return{type:OQ,payload:{collection:e.name,slug:t}}}(e,t));try{const r=await o.unpublishedEntry(i,e,i.config.config,t),a=await Promise.all(r.mediaFiles.filter((e=>e.draft)).map((({url:e,file:t,path:n})=>ND({path:n,url:e,file:t}))));n(xI(a)),n(function(e,t){return{type:yQ,payload:{collection:e.name,entry:t}}}(e,r)),n(II(e,r))}catch(r){r instanceof z_&&r.notUnderEditorialWorkflow?(n(function(e,t){return{type:bQ,payload:{collection:e.name,slug:t}}}(e,t)),n(FI(e,t))):(console.error(r),n($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:r}}})))}}}function Zz(e){return(t,n)=>{const r=n();if(!r.config.config)return;const i=DC(r.config.config);r.config.config.publish_mode===je&&(t({type:wQ}),i.unpublishedEntries(e,r.config.config).then((e=>t(Xz(e.entries,e.pagination)))).catch((e=>{console.error(e),t($A({type:"error",message:{key:"ui.toast.onFailToLoadEntries",options:{details:e}}})),t(function(e){return{type:"UNPUBLISHED_ENTRIES_FAILURE",error:"Failed to load entries",payload:e}}(e)),Promise.reject(e)})))}}function Gz(e,t,n,r){return(i,o)=>{if(n===r)return;const a=o();if(!a.config.config)return;const s=DC(a.config.config);i(function(e,t){return{type:PQ,payload:{collection:e,slug:t}}}(e,t)),s.updateUnpublishedEntryStatus(e,t,r).then((()=>{i($A({type:"success",message:{key:"ui.toast.entryUpdated"}})),i(function(e,t,n){return{type:EQ,payload:{collection:e,slug:t,newStatus:n}}}(e,t,r))})).catch((n=>{i($A({type:"error",message:{key:"ui.toast.onFailToUpdateStatus",options:{details:n}}})),i(function(e,t){return{type:CQ,payload:{collection:e,slug:t}}}(e,t))}))}}function Hz(e,t){return(n,r)=>{const i=r();if(!i.config.config)return;const o=DC(i.config.config);return n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_REQUEST",payload:{collection:e,slug:t}}}(e,t)),o.deleteUnpublishedEntry(e,t).then((()=>{n($A({type:"success",message:{key:"ui.toast.onDeleteUnpublishedChanges"}})),n(function(e,t){return{type:RQ,payload:{collection:e,slug:t}}}(e,t))})).catch((r=>{n($A({type:"error",message:{key:"ui.toast.onDeleteUnpublishedChanges",options:{details:r}}})),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_FAILURE",payload:{collection:e,slug:t}}}(e,t))}))}}function Kz(e,t,n){return async(r,i)=>{const o=i();if(!o.config.config)return;const a=o.collections,s=DC(o.config.config),l=vz(o,e,t);if(l){r(function(e,t){return{type:TQ,payload:{collection:e,slug:t}}}(e,t));try{const i=a[e];if(!i)return;if(await s.publishUnpublishedEntry(i,l),r(vI()),r($A({type:"success",message:{key:"ui.toast.entryPublished"}})),r(function(e,t){return{type:$Q,payload:{collection:e,slug:t}}}(e,t)),!("nested"in i))return r(FI(i,t));{r(qI(i));const e=ZE(i,l.path);FI(i,e),t!==e&&JM(o)&&(null==n||n(`/collections/${i.name}/entries/${e}`))}}catch(n){r($A({type:"error",message:{key:"ui.toast.onFailToPublishEntry",options:{details:n}}})),r(function(e,t){return{type:QQ,payload:{collection:e,slug:t}}}(e,t))}}}}function Jz(e){const t=pz(vC);return(0,c.useMemo)((()=>function(e,t){if(t)return"/dashboard";if(0===Object.keys(e).length)throw new Error("No collections found");let n=Object.values(e).filter((e=>{var t,n;return!0!==e.hide&&(!("files"in e)||(null!==(t=null===(n=e.files)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>1)}));return 0===n.length&&(n=Object.values(e)),`/collections/${n[0].name}`}(e,t)),[e,t])}const eW=()=>{const e=LD();return c.createElement("div",null,c.createElement("h2",null,e("app.notFoundPage.header")))};function tW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nW(e){for(var t=1;t{i&&0!==i.length||o(qI(e))}),[]),(0,c.useMemo)((()=>{var o;const a=[{name:e.label,to:`/collections/${e.name}?noredirect`}];if("nested"in e&&null!==(o=e.nested)&&void 0!==o&&o.path&&t){const n=i.reduce(((e,t)=>(e[t.path]=t,e)),{}),r=t.split("/");if(r.length>0){const t=bP(e);for(let i=0;ih)&&(W=(F=F.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var SW=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&_W(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=CW&&(CW=t+1),PW.set(e,t),EW.set(t,e)},RW="style["+wW+'][data-styled-version="5.3.11"]',AW=new RegExp("^"+wW+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),jW=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(wW))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(wW,"active"),r.setAttribute("data-styled-version","5.3.11");var a=MW();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},zW=function(){function e(e){var t=this.element=IW(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),XW=/(a)(d)/gi,qW=function(e){return String.fromCharCode(e+(e>25?39:97))};function BW(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=qW(t%52)+n;return(qW(t%52)+n).replace(XW,"$1-$2")}var VW=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},YW=function(e){return VW(5381,e)};function ZW(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=VW(this.baseHash,n.hash),c="",d=0;d>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),KW=/^\s*\/\/.*$/gm,JW=[":","[",".","#"];function eN(e){var t,n,r,i,o=void 0===e?vW:e,a=o.options,s=void 0===a?vW:a,l=o.plugins,u=void 0===l?gW:l,c=new sW(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,o){return 0===r&&-1!==JW.indexOf(o[n.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var l=e.replace(KW,""),u=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(a||!o?"":o,u)}return c.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),p.hash=u.length?u.reduce((function(e,t){return t.name||_W(15),VW(e,t.name)}),5381).toString():"",p}var tN=c.createContext(),nN=(tN.Consumer,c.createContext()),rN=(nN.Consumer,new UW),iN=eN();function oN(){return(0,c.useContext)(tN)||rN}function aN(e){var t=(0,c.useState)(e.stylisPlugins),n=t[0],r=t[1],i=oN(),o=(0,c.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,c.useMemo)((function(){return eN({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,c.useEffect)((function(){aW()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),c.createElement(tN.Provider,{value:o},c.createElement(nN.Provider,{value:a},e.children))}var sN=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=iN);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return _W(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=iN),this.name+e.hash},e}(),lN=/([A-Z])/,uN=/([A-Z])/g,cN=/^ms-/,dN=function(e){return"-"+e.toLowerCase()};function fN(e){return lN.test(e)?e.replace(uN,dN).replace(cN,"-ms-"):e}var hN=function(e){return null==e||!1===e||""===e};function pN(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,ON=/(^-|-$)/g;function yN(e){return e.replace(vN,"-").replace(ON,"")}function bN(e){return"string"==typeof e&&!0}var wN=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},kN=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function xN(e,t,n){var r=e[n];wN(t)&&wN(r)?_N(r,t):e[n]=t}function _N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.11"+n+PN[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,u=t.displayName,d=void 0===u?function(e){return bN(e)?"styled."+e:"Styled("+yW(e)+")"}(e):u,f=t.displayName&&t.componentId?yN(t.displayName)+"-"+t.componentId:t.componentId||l,h=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;r&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var m,g=new HW(n,f,r?e.componentStyle:void 0),v=g.isStatic&&0===a.length,O=function(e,t){return function(e,t,n,r){var i=e.attrs,o=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,d=e.target,f=function(e,t,n){void 0===e&&(e=vW);var r=hW({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in OW(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(function(e,t,n){return void 0===n&&(n=vW),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,c.useContext)(SN),a)||vW,t,i),h=f[0],p=f[1],m=function(e,t,n,r){var i=oN(),o=(0,c.useContext)(nN)||iN;return t?e.generateAndInjectStyles(vW,i,o):e.generateAndInjectStyles(n,i,o)}(o,r,h),g=n,v=p.$as||t.$as||p.as||t.as||d,O=bN(v),y=p!==t?hW({},t,{},p):t,b={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?b.as=y[w]:(l?l(w,dW,v):!O||dW(w))&&(b[w]=y[w]));return t.style&&p.style!==t.style&&(b.style=hW({},t.style,{},p.style)),b.className=Array.prototype.concat(s,u,m!==u?m:null,t.className,p.className).filter(Boolean).join(" "),b.ref=g,(0,c.createElement)(v,b)}(m,e,t,v)};return O.displayName=d,(m=c.forwardRef(O)).attrs=h,m.componentStyle=g,m.displayName=d,m.shouldForwardProp=p,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):gW,m.styledComponentId=f,m.target=r?e.target:e,m.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(bN(e)?e:yN(yW(e)));return EN(e,hW({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?_N({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),i&&iT()(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var CN=function(e){return function e(t,n,r){if(void 0===r&&(r=vW),!(0,oT.isValidElementType)(n))return _W(1,String(n));var i=function(){return t(n,r,gN.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,hW({},r,{},i))},i.attrs=function(i){return e(t,n,hW({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(EN,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){CN[e]=CN(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=ZW(e),UW.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,n,r){var i=r(pN(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},e.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.renderStyles=function(e,t,n,r){e>2&&UW.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=MW();return""},this.getStyleTags=function(){return e.sealed?_W(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return _W(2);var n=((t={})[wW]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=MW();return r&&(n.nonce=r),[c.createElement("style",hW({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new UW({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?_W(2):c.createElement(aN,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return _W(3)}}();const TN=CN;var $N=["children","iconAttrs","iconVerticalAlign","iconViewBox","size","title"];function QN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RN(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,$N),l=RN(RN({viewBox:i,height:void 0!==e.height?e.height:o,width:void 0!==e.width?e.width:o,"aria-hidden":null==a?"true":void 0,focusable:"false",role:null!=a?"img":void 0},r),s);return c.createElement("svg",tT({},l,{ref:t}),a&&c.createElement("title",{key:"icon-title"},a),n)})),jN=TN(AN).withConfig({displayName:"StyledIconBase",componentId:"sc-ea9ulj-0"})(["display:inline-block;vertical-align:",";overflow:hidden;"],(function(e){return e.iconVerticalAlign})),DN=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}))}));DN.displayName="Add";var MN=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}))}));MN.displayName="Menu";var IN=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}))}));function zN(e,t){return(0,c.useMemo)((()=>{if(e)return"fields"in e&&e.create?`${yo(e.name)}${Ne(t)?`/${t}`:""}`:""}),[e,t])}IN.displayName="OpenInNew";const WN=["icon","size","rootClassName","iconClassName"];function NN(){return NN=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{icon:t,size:n="medium",rootClassName:r,iconClassName:i}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rc.useContext(BN)??!1,YN=function({value:e,...t}){return(0,lM.jsx)(BN.Provider,{value:e??!0,...t})};function ZN(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function GN(...e){return c.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ZN(e,t)}))}),e)}function HN(e){return parseInt(c.version,10)>=19?e?.props?.ref||null:e?.ref||null}function KN(e){return e&&e.ownerDocument||document}const JN=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function eL(e){const t=[],n=[];return Array.from(e.querySelectorAll(JN)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function tL(){return!0}const nL=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=eL,isEnabled:a=tL,open:s}=e,l=c.useRef(!1),u=c.useRef(null),d=c.useRef(null),f=c.useRef(null),h=c.useRef(null),p=c.useRef(!1),m=c.useRef(null),g=GN(HN(t),m),v=c.useRef(null);c.useEffect((()=>{s&&m.current&&(p.current=!n)}),[n,s]),c.useEffect((()=>{if(!s||!m.current)return;const e=KN(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}}),[s]),c.useEffect((()=>{if(!s||!m.current)return;const e=KN(m.current),t=t=>{v.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=o(m.current)),n.length>0){const e=Boolean(v.current?.shiftKey&&"Tab"===v.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,a,s,o]);const O=e=>{null===f.current&&(f.current=e.relatedTarget),p.current=!0};return(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("div",{tabIndex:s?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),p.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,lM.jsx)("div",{tabIndex:s?0:-1,onFocus:O,ref:d,"data-testid":"sentinelEnd"})]})},rL="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,iL=c.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=c.useState(null),s=GN(c.isValidElement(n)?HN(n):null,t);if(rL((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),rL((()=>{if(o&&!i)return ZN(t,o),()=>{ZN(t,null)}}),[t,o,i]),i){if(c.isValidElement(n)){const e={ref:s};return c.cloneElement(n,e)}return n}return o?NC.createPortal(n,o):o}));var oL=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?fL(kL,--bL):0,OL--,10===wL&&(OL=1,vL--),wL}function PL(){return wL=bL2||$L(wL)>3?"":" "}function DL(e,t){for(;--t&&PL()&&!(wL<48||wL>102||wL>57&&wL<65||wL>70&&wL<97););return TL(e,CL()+(t<6&&32==EL()&&32==PL()))}function ML(e){for(;PL();)switch(wL){case e:return bL;case 34:case 39:34!==e&&39!==e&&ML(wL);break;case 40:41===e&&ML(e);break;case 92:PL()}return bL}function IL(e,t){for(;PL()&&e+wL!==57&&(e+wL!==84||47!==EL()););return"/*"+TL(t,bL-1)+"*"+sL(47===e?e:PL())}function zL(e){for(;!$L(EL());)PL();return TL(e,bL)}var WL="-ms-",NL="-moz-",LL="-webkit-",FL="comm",UL="rule",XL="decl",qL="@keyframes";function BL(e,t){for(var n="",r=mL(e),i=0;i0&&pL(x)-d&&gL(h>32?KL(x+";",r,n,d-1):KL(cL(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(gL(k=GL(x,t,n,u,c,i,s,y,b=[],w=[],d),o),123===O)if(0===c)ZL(x,t,k,k,b,o,d,s,w);else switch(99===f&&110===fL(x,3)?100:f){case 100:case 108:case 109:case 115:ZL(e,k,k,r&&gL(GL(e,k,k,0,0,i,s,y,i,b=[],d),w),i,w,d,s,r?b:w);break;default:ZL(x,k,k,k,[""],w,0,s,w)}}u=c=h=0,m=v=1,y=x="",d=a;break;case 58:d=1+pL(x),h=p;default:if(m<1)if(123==O)--m;else if(125==O&&0==m++&&125==SL())continue;switch(x+=sL(O),O*m){case 38:v=c>0?1:(x+="\f",-1);break;case 44:s[u++]=(pL(x)-1)*v,v=1;break;case 64:45===EL()&&(x+=AL(PL())),f=EL(),c=d=pL(y=x+=zL(CL())),O++;break;case 45:45===p&&2==pL(x)&&(m=0)}}return o}function GL(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=0===i?o:[""],h=mL(f),p=0,m=0,g=0;p0?f[v]+" "+O:cL(O,/&\f/g,f[v])))&&(l[g++]=y);return xL(e,t,n,0===i?UL:s,l,u,c)}function HL(e,t,n){return xL(e,t,n,FL,sL(wL),hL(e,2,-2),0)}function KL(e,t,n,r){return xL(e,t,n,XL,hL(e,0,r),hL(e,r+1,-1),r)}var JL=function(e,t,n){for(var r=0,i=0;r=i,i=EL(),38===r&&12===i&&(t[n]=1),!$L(i);)PL();return TL(e,bL)},eF=new WeakMap,tF=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||eF.get(n))&&!r){eF.set(e,!0);for(var i=[],o=function(e,t){return RL(function(e,t){var n=-1,r=44;do{switch($L(r)){case 0:38===r&&12===EL()&&(t[n]=1),e[n]+=JL(bL-1,t,n);break;case 2:e[n]+=AL(r);break;case 4:if(44===r){e[++n]=58===EL()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=sL(r)}}while(r=PL());return e}(QL(e),t))}(t,i),a=n.props,s=0,l=0;s6)switch(fL(e,t+1)){case 109:if(45!==fL(e,t+4))break;case 102:return cL(e,/(.+:)(.+)-([^]+)/,"$1"+LL+"$2-$3$1"+NL+(108==fL(e,t+3)?"$3":"$2-$3"))+e;case 115:return~dL(e,"stretch")?rF(cL(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==fL(e,t+1))break;case 6444:switch(fL(e,pL(e)-3-(~dL(e,"!important")&&10))){case 107:return cL(e,":",":"+LL)+e;case 101:return cL(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+LL+(45===fL(e,14)?"inline-":"")+"box$3$1"+LL+"$2$3$1"+WL+"$2box$3")+e}break;case 5936:switch(fL(e,t+11)){case 114:return LL+e+WL+cL(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return LL+e+WL+cL(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return LL+e+WL+cL(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return LL+e+WL+e+e}return e}var iF=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case XL:e.return=rF(e.value,e.length);break;case qL:return BL([_L(e,{value:cL(e.value,"@","@"+LL)})],r);case UL:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return BL([_L(e,{props:[cL(t,/:(read-\w+)/,":"+NL+"$1")]})],r);case"::placeholder":return BL([_L(e,{props:[cL(t,/:(plac\w+)/,":"+LL+"input-$1")]}),_L(e,{props:[cL(t,/:(plac\w+)/,":"+NL+"$1")]}),_L(e,{props:[cL(t,/:(plac\w+)/,WL+"input-$1")]})],r)}return""}))}}],oF=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||iF,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var sF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lF=/[A-Z]|^ms/g,uF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cF=function(e){return 45===e.charCodeAt(1)},dF=function(e){return null!=e&&"boolean"!=typeof e},fF=uW((function(e){return cF(e)?e:e.replace(lF,"-$&").toLowerCase()})),hF=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(uF,(function(e,t,n){return mF={name:t,styles:n,next:mF},t}))}return 1===sF[e]||cF(e)||"number"!=typeof t||0===t?t:t+"px"};function pF(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return mF={name:n.name,styles:n.styles,next:mF},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)mF={name:r.name,styles:r.styles,next:mF},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?DF:MF},zF=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},WF=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return _F(t,n,r),yF((function(){return SF(t,n,r)})),null},NF=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=zF(t,n,o),l=s||IF(a),u=!l("as");return function(){var d=arguments,f=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var h=d.length,p=1;p=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:KF}}(eU)}function nU(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function rU(e){if(c.isValidElement(e)||!nU(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=rU(e[n])})),t}function iU(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return nU(e)&&nU(t)&&Object.keys(t).forEach((i=>{c.isValidElement(t[i])?r[i]=t[i]:nU(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&nU(e[i])?r[i]=iU(e[i],t[i],n):n.clone?r[i]=nU(t[i])?rU(t[i]):t[i]:r[i]=t[i]})),r}const oU={borderRadius:4},aU={xs:0,sm:600,md:900,lg:1200,xl:1536},sU={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${aU[e]}px)`},lU={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:aU[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function uU(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sU;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||sU;return Object.keys(t).reduce(((i,o)=>{if(a=e.keys,"@"===(s=o)||s.startsWith("@")&&(a.some((e=>s.startsWith(`@${e}`)))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}(r.containerQueries?r:lU,o);e&&(i[e]=n(t[o],o))}else if(Object.keys(e.values||aU).includes(o))i[e.up(o)]=n(t[o],o);else{const e=o;i[e]=t[e]}var a,s;return i}),{})}return n(t)}function cU(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}function dU(e){if("string"!=typeof e)throw new Error(cU(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fU(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function hU(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:fU(e,n)||r,t&&(i=t(i,r,e)),i}const pU=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=fU(e.theme,r)||{};return uU(e,o,(e=>{let r=hU(a,i,e);return e===r&&"string"==typeof e&&(r=hU(a,i,`${t}${"default"===e?"":dU(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o},mU=function(e,t){return t?iU(e,t,{clone:!1}):e},gU={m:"margin",p:"padding"},vU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},OU={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yU=function(e){const t={};return e=>(void 0===t[e]&&(t[e]=(e=>{if(e.length>2){if(!OU[e])return[e];e=OU[e]}const[t,n]=e.split(""),r=gU[t],i=vU[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})(e)),t[e])}(),bU=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wU=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],kU=[...bU,...wU];function xU(e,t,n,r){const i=fU(e,t,!0)??n;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=i[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof i?i:()=>{}}function _U(e){return xU(e,"spacing",8)}function SU(e,t){return"string"==typeof t||null==t?t:e(t)}function PU(e,t){const n=_U(e.theme);return Object.keys(e).map((r=>function(e,t,n,r){if(!t.includes(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=SU(t,n),e)),{})}(yU(n),r);return uU(e,e[n],i)}(e,t,r,n))).reduce(mU,{})}function EU(e){return PU(e,bU)}function CU(e){return PU(e,wU)}function TU(e){return PU(e,kU)}function $U(e=8,t=_U({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}EU.propTypes={},EU.filterProps=bU,CU.propTypes={},CU.filterProps=wU,TU.propTypes={},TU.filterProps=kU;const QU=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?mU(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};function RU(e){return"number"!=typeof e?e:`${e}px solid`}function AU(e,t){return pU({prop:e,themeKey:"borders",transform:t})}const jU=AU("border",RU),DU=AU("borderTop",RU),MU=AU("borderRight",RU),IU=AU("borderBottom",RU),zU=AU("borderLeft",RU),WU=AU("borderColor"),NU=AU("borderTopColor"),LU=AU("borderRightColor"),FU=AU("borderBottomColor"),UU=AU("borderLeftColor"),XU=AU("outline",RU),qU=AU("outlineColor"),BU=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xU(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:SU(t,e)});return uU(e,e.borderRadius,n)}return null};BU.propTypes={},BU.filterProps=["borderRadius"],QU(jU,DU,MU,IU,zU,WU,NU,LU,FU,UU,BU,XU,qU);const VU=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xU(e.theme,"spacing",8),n=e=>({gap:SU(t,e)});return uU(e,e.gap,n)}return null};VU.propTypes={},VU.filterProps=["gap"];const YU=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xU(e.theme,"spacing",8),n=e=>({columnGap:SU(t,e)});return uU(e,e.columnGap,n)}return null};YU.propTypes={},YU.filterProps=["columnGap"];const ZU=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xU(e.theme,"spacing",8),n=e=>({rowGap:SU(t,e)});return uU(e,e.rowGap,n)}return null};function GU(e,t){return"grey"===t?t:e}function HU(e){return e<=1&&0!==e?100*e+"%":e}ZU.propTypes={},ZU.filterProps=["rowGap"],QU(VU,YU,ZU,pU({prop:"gridColumn"}),pU({prop:"gridRow"}),pU({prop:"gridAutoFlow"}),pU({prop:"gridAutoColumns"}),pU({prop:"gridAutoRows"}),pU({prop:"gridTemplateColumns"}),pU({prop:"gridTemplateRows"}),pU({prop:"gridTemplateAreas"}),pU({prop:"gridArea"})),QU(pU({prop:"color",themeKey:"palette",transform:GU}),pU({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:GU}),pU({prop:"backgroundColor",themeKey:"palette",transform:GU}));const KU=pU({prop:"width",transform:HU}),JU=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||aU[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:HU(t)}};return uU(e,e.maxWidth,t)}return null};JU.filterProps=["maxWidth"];const eX=pU({prop:"minWidth",transform:HU}),tX=pU({prop:"height",transform:HU}),nX=pU({prop:"maxHeight",transform:HU}),rX=pU({prop:"minHeight",transform:HU}),iX=(pU({prop:"size",cssProperty:"width",transform:HU}),pU({prop:"size",cssProperty:"height",transform:HU}),QU(KU,JU,eX,tX,nX,rX,pU({prop:"boxSizing"})),{border:{themeKey:"borders",transform:RU},borderTop:{themeKey:"borders",transform:RU},borderRight:{themeKey:"borders",transform:RU},borderBottom:{themeKey:"borders",transform:RU},borderLeft:{themeKey:"borders",transform:RU},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:RU},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:BU},color:{themeKey:"palette",transform:GU},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:GU},backgroundColor:{themeKey:"palette",transform:GU},p:{style:CU},pt:{style:CU},pr:{style:CU},pb:{style:CU},pl:{style:CU},px:{style:CU},py:{style:CU},padding:{style:CU},paddingTop:{style:CU},paddingRight:{style:CU},paddingBottom:{style:CU},paddingLeft:{style:CU},paddingX:{style:CU},paddingY:{style:CU},paddingInline:{style:CU},paddingInlineStart:{style:CU},paddingInlineEnd:{style:CU},paddingBlock:{style:CU},paddingBlockStart:{style:CU},paddingBlockEnd:{style:CU},m:{style:EU},mt:{style:EU},mr:{style:EU},mb:{style:EU},ml:{style:EU},mx:{style:EU},my:{style:EU},margin:{style:EU},marginTop:{style:EU},marginRight:{style:EU},marginBottom:{style:EU},marginLeft:{style:EU},marginX:{style:EU},marginY:{style:EU},marginInline:{style:EU},marginInlineStart:{style:EU},marginInlineEnd:{style:EU},marginBlock:{style:EU},marginBlockStart:{style:EU},marginBlockEnd:{style:EU},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:VU},rowGap:{style:ZU},columnGap:{style:YU},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:HU},maxWidth:{style:JU},minWidth:{transform:HU},height:{transform:HU},maxHeight:{transform:HU},minHeight:{transform:HU},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),oX=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=fU(n,s)||{};return u?u(i):uU(i,t,(t=>{let n=hU(c,l,t);return t===n&&"string"==typeof t&&(n=hU(c,l,`${e}${"default"===t?"":dU(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??iX;function a(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const a=function(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach((n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=a)if("object"==typeof a)if(o[n])l=mU(l,e(n,a,i,o));else{const e=uU({theme:i},a,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,a)?l=mU(l,e):l[n]=t({sx:a,theme:i})}else l=mU(l,e(n,a,i,o))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}(i,(u=l,s.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),u)));var u}return Array.isArray(r)?r.map(a):a(r)}}();oX.filterProps=["sx"];const aX=oX;function sX(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const lX=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e,s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}(l),l.applyStyles=sX,l=t.reduce(((e,t)=>iU(e,t)),l),l.unstable_sxConfig={...iX,...a?.unstable_sxConfig},l.unstable_sx=function(e){return aX({sx:e,theme:this})},l};function uX(e){const{variants:t,...n}=e,r={variants:t,style:tU(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=tU(e.style))})),r}const cX=lX();function dX(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function fX(e){return e?(t,n)=>n[e]:null}function hX(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>hX(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return pX(e,n.variants,[t])}return n?.isProcessed?n.style:n}function pX(e,t,n=[]){let r;e:for(let i=0;i=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(cU(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(cU(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const yX=(e,t)=>{try{return(e=>{const t=OX(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(t){return e}};function bX(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function wX(e){e=OX(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),bX({type:s,values:l})}function kX(e){let t="hsl"===(e=OX(e)).type||"hsla"===e.type?OX(wX(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function xX(e,t){return e=OX(e),t=vX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,bX(e)}function _X(e,t,n){try{return xX(e,t)}catch(t){return e}}function SX(e,t){if(e=OX(e),t=vX(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return bX(e)}function PX(e,t,n){try{return SX(e,t)}catch(t){return e}}function EX(e,t){if(e=OX(e),t=vX(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return bX(e)}function CX(e,t,n){try{return EX(e,t)}catch(t){return e}}function TX(e,t=.15){return kX(e)>.5?SX(e,t):EX(e,t)}function $X(e,t,n){try{return TX(e,t)}catch(t){return e}}const QX={black:"#000",white:"#fff"},RX={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},AX={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},jX={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},DX={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},MX={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},IX={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},zX={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function WX(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:QX.white,default:QX.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const NX=WX();function LX(){return{text:{primary:QX.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:QX.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const FX=LX();function UX(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=EX(e.main,i):"dark"===t&&(e.dark=SX(e.main,o)))}function XX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||function(e="light"){return"dark"===e?{main:MX[200],light:MX[50],dark:MX[400]}:{main:MX[700],light:MX[400],dark:MX[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:AX[200],light:AX[50],dark:AX[400]}:{main:AX[500],light:AX[300],dark:AX[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:jX[500],light:jX[300],dark:jX[700]}:{main:jX[700],light:jX[400],dark:jX[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:IX[400],light:IX[300],dark:IX[700]}:{main:IX[700],light:IX[500],dark:IX[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:zX[400],light:zX[300],dark:zX[700]}:{main:zX[800],light:zX[500],dark:zX[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:DX[400],light:DX[300],dark:DX[700]}:{main:"#ed6c02",light:DX[500],dark:DX[900]}}(t);function d(e){const t=function(e,t){const n=kX(e),r=kX(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,FX.text.primary)>=n?FX.text.primary:NX.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(cU(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(cU(12,t?` (${t})`:"",JSON.stringify(e.main)));return UX(e,"light",i,r),UX(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e};let h;return"light"===t?h=WX():"dark"===t&&(h=LX()),iU({common:{...QX},mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:RX,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...h},i)}function qX(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}function BX(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const VX=(e,t,n,r=[])=>{let i=e;t.forEach(((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])}))};function YX(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[r]:l}),VX(o,e,`var(${r})`,s),VX(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach((([t,i])=>{(!l||l&&!l([...n,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...n,t],Array.isArray(i)?[...r,t]:r):s([...n,t],i,r))}))}(e),{css:i,vars:o,varsWithDefaults:a};var s,l}const ZX={textTransform:"uppercase"},GX='"Roboto", "Helvetica", "Arial", sans-serif';function HX(e,t){const{fontFamily:n=GX,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,f=r/14,h=c||(e=>e/l*f+"rem"),p=(e,t,r,i,o)=>{return{fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r,...n===GX?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5+"em")}:{},...o,...u};var a},m={h1:p(i,96,1.167,-1.5),h2:p(i,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(a,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(a,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(a,14,1.75,.4,ZX),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,ZX),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return iU({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function KX(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const JX=["none",KX(0,2,1,-1,0,1,1,0,0,1,3,0),KX(0,3,1,-2,0,2,2,0,0,1,5,0),KX(0,3,3,-2,0,3,4,0,0,1,8,0),KX(0,2,4,-1,0,4,5,0,0,1,10,0),KX(0,3,5,-1,0,5,8,0,0,1,14,0),KX(0,3,5,-1,0,6,10,0,0,1,18,0),KX(0,4,5,-2,0,7,10,1,0,2,16,1),KX(0,5,5,-3,0,8,10,1,0,3,14,2),KX(0,5,6,-3,0,9,12,1,0,3,16,2),KX(0,6,6,-3,0,10,14,1,0,4,18,3),KX(0,6,7,-4,0,11,15,1,0,4,20,3),KX(0,7,8,-4,0,12,17,2,0,5,22,4),KX(0,7,8,-4,0,13,19,2,0,5,24,4),KX(0,7,9,-4,0,14,21,2,0,5,26,4),KX(0,8,9,-5,0,15,22,2,0,6,28,5),KX(0,8,10,-5,0,16,24,2,0,6,30,5),KX(0,8,11,-5,0,17,26,2,0,6,32,5),KX(0,9,11,-5,0,18,28,2,0,7,34,6),KX(0,9,12,-6,0,19,29,2,0,7,36,6),KX(0,10,13,-6,0,20,31,3,0,8,38,7),KX(0,10,13,-6,0,21,33,3,0,8,40,7),KX(0,10,14,-6,0,22,35,3,0,8,42,7),KX(0,11,14,-7,0,23,36,3,0,9,44,8),KX(0,11,15,-7,0,24,38,3,0,9,46,8)],eq={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},tq={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nq(e){return`${Math.round(e)}ms`}function rq(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function iq(e){const t={...eq,...e.easing},n={...tq,...e.duration};return{getAutoHeightDuration:rq,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:nq(i)} ${o} ${"string"==typeof a?a:nq(a)}`)).join(",")},...e,easing:t,duration:n}}const oq={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function aq(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let i=0;iiU(e,t)),f),f.unstable_sxConfig={...iX,...u?.unstable_sxConfig},f.unstable_sx=function(e){return aX({sx:e,theme:this})},f.toRuntimeSource=aq,f};function lq(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const uq=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=lq(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function cq(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function dq(e){return"dark"===e?uq:[]}function fq(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const hq=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return(a=e.cssVarPrefix,[...[...Array(25)].map(((e,t)=>`--${a?`${a}-`:""}overlays-${t}`)),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach((e=>{i[e]=n[e],delete n[e]})),"media"===o?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",t)]:i,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(t))}`}else if(t){if("media"===o)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}var a;return r};function pq(e,t,n){!e[t]&&n&&(e[t]=n)}function mq(e){return"string"==typeof e&&e.startsWith("hsl")?wX(e):e}function gq(e,t){`${t}Channel`in e||(e[`${t}Channel`]=yX(mq(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const vq=e=>{try{return e()}catch(e){}};function Oq(e,t,n,r){if(!t)return;t=!0===t?{}:t;const i="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=XX(t);return{palette:o,opacity:{...cq(o.mode),...n},overlays:r||dq(o.mode),...i}}({...t,palette:{mode:i,...t?.palette}}));const{palette:o,...a}=sq({...n,palette:{mode:i,...t?.palette}});return e[r]={...t,palette:o,opacity:{...cq(i),...t?.opacity},overlays:t?.overlays||dq(i)},a}function yq(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:XX({...!0===n?{}:n.palette,mode:t})})}function bq(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],u={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return sq(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const i=sq({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=u,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==u.light&&u.light,palette:i.palette},yq(i,"dark",u.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:i.palette},yq(i,"light",u.light)),i}return n||"light"in u||"light"!==s||(u.light=!0),function(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=fq,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&"light"!==c?"light":c),f=((e="mui")=>qX(e))(o),{[d]:h,light:p,dark:m,...g}=n,v={...g};let O=h;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(O=!0),!O)throw new Error(cU(21,d));const y=Oq(v,O,u,d);p&&!v.light&&Oq(v,p,void 0,"light"),m&&!v.dark&&Oq(v,m,void 0,"dark");let b={defaultColorScheme:d,...y,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:v,font:{...BX(y.typography),...y.font},spacing:(w=u.spacing,"number"==typeof w?`${w}px`:"string"==typeof w||"function"==typeof w||Array.isArray(w)?w:"8px")};var w;Object.keys(b.colorSchemes).forEach((e=>{const t=b.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],i=n[2];return f(e,t[r][i])};if("light"===t.mode&&(pq(t.common,"background","#fff"),pq(t.common,"onBackground","#000")),"dark"===t.mode&&(pq(t.common,"background","#000"),pq(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{r[e]||(r[e]={})})),"light"===t.mode){pq(t.Alert,"errorColor",PX(t.error.light,.6)),pq(t.Alert,"infoColor",PX(t.info.light,.6)),pq(t.Alert,"successColor",PX(t.success.light,.6)),pq(t.Alert,"warningColor",PX(t.warning.light,.6)),pq(t.Alert,"errorFilledBg",n("palette-error-main")),pq(t.Alert,"infoFilledBg",n("palette-info-main")),pq(t.Alert,"successFilledBg",n("palette-success-main")),pq(t.Alert,"warningFilledBg",n("palette-warning-main")),pq(t.Alert,"errorFilledColor",vq((()=>t.getContrastText(t.error.main)))),pq(t.Alert,"infoFilledColor",vq((()=>t.getContrastText(t.info.main)))),pq(t.Alert,"successFilledColor",vq((()=>t.getContrastText(t.success.main)))),pq(t.Alert,"warningFilledColor",vq((()=>t.getContrastText(t.warning.main)))),pq(t.Alert,"errorStandardBg",CX(t.error.light,.9)),pq(t.Alert,"infoStandardBg",CX(t.info.light,.9)),pq(t.Alert,"successStandardBg",CX(t.success.light,.9)),pq(t.Alert,"warningStandardBg",CX(t.warning.light,.9)),pq(t.Alert,"errorIconColor",n("palette-error-main")),pq(t.Alert,"infoIconColor",n("palette-info-main")),pq(t.Alert,"successIconColor",n("palette-success-main")),pq(t.Alert,"warningIconColor",n("palette-warning-main")),pq(t.AppBar,"defaultBg",n("palette-grey-100")),pq(t.Avatar,"defaultBg",n("palette-grey-400")),pq(t.Button,"inheritContainedBg",n("palette-grey-300")),pq(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),pq(t.Chip,"defaultBorder",n("palette-grey-400")),pq(t.Chip,"defaultAvatarColor",n("palette-grey-700")),pq(t.Chip,"defaultIconColor",n("palette-grey-700")),pq(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),pq(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),pq(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),pq(t.LinearProgress,"primaryBg",CX(t.primary.main,.62)),pq(t.LinearProgress,"secondaryBg",CX(t.secondary.main,.62)),pq(t.LinearProgress,"errorBg",CX(t.error.main,.62)),pq(t.LinearProgress,"infoBg",CX(t.info.main,.62)),pq(t.LinearProgress,"successBg",CX(t.success.main,.62)),pq(t.LinearProgress,"warningBg",CX(t.warning.main,.62)),pq(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),pq(t.Slider,"primaryTrack",CX(t.primary.main,.62)),pq(t.Slider,"secondaryTrack",CX(t.secondary.main,.62)),pq(t.Slider,"errorTrack",CX(t.error.main,.62)),pq(t.Slider,"infoTrack",CX(t.info.main,.62)),pq(t.Slider,"successTrack",CX(t.success.main,.62)),pq(t.Slider,"warningTrack",CX(t.warning.main,.62));const e=$X(t.background.default,.8);pq(t.SnackbarContent,"bg",e),pq(t.SnackbarContent,"color",vq((()=>t.getContrastText(e)))),pq(t.SpeedDialAction,"fabHoverBg",$X(t.background.paper,.15)),pq(t.StepConnector,"border",n("palette-grey-400")),pq(t.StepContent,"border",n("palette-grey-400")),pq(t.Switch,"defaultColor",n("palette-common-white")),pq(t.Switch,"defaultDisabledColor",n("palette-grey-100")),pq(t.Switch,"primaryDisabledColor",CX(t.primary.main,.62)),pq(t.Switch,"secondaryDisabledColor",CX(t.secondary.main,.62)),pq(t.Switch,"errorDisabledColor",CX(t.error.main,.62)),pq(t.Switch,"infoDisabledColor",CX(t.info.main,.62)),pq(t.Switch,"successDisabledColor",CX(t.success.main,.62)),pq(t.Switch,"warningDisabledColor",CX(t.warning.main,.62)),pq(t.TableCell,"border",CX(_X(t.divider,1),.88)),pq(t.Tooltip,"bg",_X(t.grey[700],.92))}var r;if("dark"===t.mode){pq(t.Alert,"errorColor",CX(t.error.light,.6)),pq(t.Alert,"infoColor",CX(t.info.light,.6)),pq(t.Alert,"successColor",CX(t.success.light,.6)),pq(t.Alert,"warningColor",CX(t.warning.light,.6)),pq(t.Alert,"errorFilledBg",n("palette-error-dark")),pq(t.Alert,"infoFilledBg",n("palette-info-dark")),pq(t.Alert,"successFilledBg",n("palette-success-dark")),pq(t.Alert,"warningFilledBg",n("palette-warning-dark")),pq(t.Alert,"errorFilledColor",vq((()=>t.getContrastText(t.error.dark)))),pq(t.Alert,"infoFilledColor",vq((()=>t.getContrastText(t.info.dark)))),pq(t.Alert,"successFilledColor",vq((()=>t.getContrastText(t.success.dark)))),pq(t.Alert,"warningFilledColor",vq((()=>t.getContrastText(t.warning.dark)))),pq(t.Alert,"errorStandardBg",PX(t.error.light,.9)),pq(t.Alert,"infoStandardBg",PX(t.info.light,.9)),pq(t.Alert,"successStandardBg",PX(t.success.light,.9)),pq(t.Alert,"warningStandardBg",PX(t.warning.light,.9)),pq(t.Alert,"errorIconColor",n("palette-error-main")),pq(t.Alert,"infoIconColor",n("palette-info-main")),pq(t.Alert,"successIconColor",n("palette-success-main")),pq(t.Alert,"warningIconColor",n("palette-warning-main")),pq(t.AppBar,"defaultBg",n("palette-grey-900")),pq(t.AppBar,"darkBg",n("palette-background-paper")),pq(t.AppBar,"darkColor",n("palette-text-primary")),pq(t.Avatar,"defaultBg",n("palette-grey-600")),pq(t.Button,"inheritContainedBg",n("palette-grey-800")),pq(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),pq(t.Chip,"defaultBorder",n("palette-grey-700")),pq(t.Chip,"defaultAvatarColor",n("palette-grey-300")),pq(t.Chip,"defaultIconColor",n("palette-grey-300")),pq(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),pq(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),pq(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),pq(t.LinearProgress,"primaryBg",PX(t.primary.main,.5)),pq(t.LinearProgress,"secondaryBg",PX(t.secondary.main,.5)),pq(t.LinearProgress,"errorBg",PX(t.error.main,.5)),pq(t.LinearProgress,"infoBg",PX(t.info.main,.5)),pq(t.LinearProgress,"successBg",PX(t.success.main,.5)),pq(t.LinearProgress,"warningBg",PX(t.warning.main,.5)),pq(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),pq(t.Slider,"primaryTrack",PX(t.primary.main,.5)),pq(t.Slider,"secondaryTrack",PX(t.secondary.main,.5)),pq(t.Slider,"errorTrack",PX(t.error.main,.5)),pq(t.Slider,"infoTrack",PX(t.info.main,.5)),pq(t.Slider,"successTrack",PX(t.success.main,.5)),pq(t.Slider,"warningTrack",PX(t.warning.main,.5));const e=$X(t.background.default,.98);pq(t.SnackbarContent,"bg",e),pq(t.SnackbarContent,"color",vq((()=>t.getContrastText(e)))),pq(t.SpeedDialAction,"fabHoverBg",$X(t.background.paper,.15)),pq(t.StepConnector,"border",n("palette-grey-600")),pq(t.StepContent,"border",n("palette-grey-600")),pq(t.Switch,"defaultColor",n("palette-grey-300")),pq(t.Switch,"defaultDisabledColor",n("palette-grey-600")),pq(t.Switch,"primaryDisabledColor",PX(t.primary.main,.55)),pq(t.Switch,"secondaryDisabledColor",PX(t.secondary.main,.55)),pq(t.Switch,"errorDisabledColor",PX(t.error.main,.55)),pq(t.Switch,"infoDisabledColor",PX(t.info.main,.55)),pq(t.Switch,"successDisabledColor",PX(t.success.main,.55)),pq(t.Switch,"warningDisabledColor",PX(t.warning.main,.55)),pq(t.TableCell,"border",PX(_X(t.divider,1),.68)),pq(t.Tooltip,"bg",_X(t.grey[700],.92))}gq(t.background,"default"),gq(t.background,"paper"),gq(t.common,"background"),gq(t.common,"onBackground"),gq(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&pq(t[e],"mainChannel",yX(mq(n.main))),n.light&&pq(t[e],"lightChannel",yX(mq(n.light))),n.dark&&pq(t[e],"darkChannel",yX(mq(n.dark))),n.contrastText&&pq(t[e],"contrastTextChannel",yX(mq(n.contrastText))),"text"===e&&(gq(t[e],"primary"),gq(t[e],"secondary")),"action"===e&&(n.active&&gq(t[e],"active"),n.selected&&gq(t[e],"selected")))}))})),b=t.reduce(((e,t)=>iU(e,t)),b);const k={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:hq(b)},{vars:x,generateThemeVars:_,generateStyleSheets:S}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:u,css:c,varsWithDefaults:d}=YX(l,t);let f=d;const h={},{[s]:p,...m}=o;if(Object.entries(m||{}).forEach((([e,n])=>{const{vars:r,css:i,varsWithDefaults:o}=YX(n,t);f=iU(f,o),h[e]={css:i,vars:r}})),p){const{css:e,vars:n,varsWithDefaults:r}=YX(p,t);f=iU(f,r),h[s]={css:e,vars:n}}function g(t,n){let r=i;if("class"===i&&(r=".%s"),"data"===i&&(r="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(r=`[${i}="%s"]`),t){if("media"===r)return e.defaultColorScheme===t?":root":{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach((([,{vars:t}])=>{e=iU(e,t)})),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...c}),c);const{[i]:s,...l}=h;if(s){const{css:e}=s,t=o[i]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};a(n(i,{...l}),l)}return Object.entries(l).forEach((([e,{css:t}])=>{const i=o[e]?.palette?.mode,s=!r&&i?{colorScheme:i,...t}:{...t};a(n(e,{...s}),s)})),t}}}(b,k);return b.vars=x,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach((([e,t])=>{b[e]=t})),b.generateThemeVars=_,b.generateStyleSheets=S,b.generateSpacing=function(){return $U(u.spacing,_U(this))},b.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=a,b.unstable_sxConfig={...iX,...u?.unstable_sxConfig},b.unstable_sx=function(e){return aX({sx:e,theme:this})},b.toRuntimeSource=aq,b}({...a,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const wq=bq(),kq="$$material",xq=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},_q=e=>xq(e)&&"classes"!==e,Sq=function(e={}){const{themeId:t,defaultTheme:n=cX,rootShouldForwardProp:r=dX,slotShouldForwardProp:i=dX}=e;function o(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=(e=>e.filter((e=>e!==aX)))(e.__emotion_styles))}(e);const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:u=fX(mX(a)),...c}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let h=dX;"Root"===a||"root"===a?h=r:a?h=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const p=function(e,t){return NF(e,t)}(e,{shouldForwardProp:h,label:void 0,...c}),m=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return hX(t,e)};if(nU(e)){const t=uX(e);return t.variants?function(e){return hX(e,t)}:t.style}return e},g=(...t)=>{const r=[],i=t.map(m),a=[];if(r.push(o),n&&u&&a.push((function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const i={};for(const t in r)i[t]=hX(e,r[t]);return u(e,i)})),n&&!d&&a.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?pX(e,r):null})),f||a.push(aX),Array.isArray(i[0])){const e=i.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let o;o=[...t,...e,...n],o.raw=[...t,...e.raw,...n],r.unshift(o)}const s=[...r,...i,...a],l=p(...s);return e.muiName&&(l.muiName=e.muiName),l};return p.withConfig&&(g.withConfig=p.withConfig),g}}({themeId:kq,defaultTheme:wq,rootShouldForwardProp:_q}),Pq=Sq,Eq={theme:void 0},Cq=function(e){let t,n;return function(r){let i=t;return void 0!==i&&r.theme===n||(Eq.theme=r.theme,i=uX(e(Eq)),t=i,n=r.theme),i}};function Tq(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if("components"===i||"slots"===i)n[i]={...e[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){const r=e[i],o=t[i];if(o)if(r){n[i]={...o};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[i][t]=Tq(r[t],o[t])}}else n[i]=o;else n[i]=r||{}}else void 0===n[i]&&(n[i]=e[i])}return n}const $q=c.createContext(void 0);const Qq=function({value:e,children:t}){return(0,lM.jsx)($q.Provider,{value:e,children:t})};function Rq(e){return function({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Tq(i.defaultProps,r):i.styleOverrides||i.variants?r:Tq(i,r)}({props:e,name:t,theme:{components:c.useContext($q)}})}(e)}const Aq=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},jq=function(e,t,n){return"function"==typeof e?e(t,n):e},Dq=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n},Mq=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t},Iq=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=XN(n?.className,o,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Dq({...i,...r}),s=Mq(r),l=Mq(i),u=t(a),c=XN(u?.className,n?.className,o,i?.className,r?.className),d={...u?.style,...n?.style,...i?.style,...r?.style},f={...u,...n,...l,...s};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}};function zq(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,...s}=t,{component:l,slots:u={[e]:void 0},slotProps:c={[e]:void 0},...d}=o,f=u[e]||r,h=jq(c[e],i),{props:{component:p,...m},internalRef:g}=Iq({className:n,...s,externalForwardedProps:"root"===e?d:void 0,externalSlotProps:h}),v=GN(g,h?.ref,t.ref),O="root"===e?p||l:p;return[f,Aq(f,{..."root"===e&&!l&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...m,...O&&{as:O},ref:v},i)]}function Wq(e,t){return Wq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wq(e,t)}function Nq(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wq(e,t)}const Lq=c.createContext(null);var Fq=function(e){return e.scrollTop},Uq="unmounted",Xq="exited",qq="entering",Bq="entered",Vq="exiting",Yq=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Xq,r.appearStatus=qq):i=Bq:i=t.unmountOnExit||t.mountOnEnter?Uq:Xq,r.state={status:i},r.nextCallback=null,r}Nq(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Uq?{status:Xq}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==qq&&n!==Bq&&(t=qq):n!==qq&&n!==Bq||(t=Vq)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===qq){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:NC.findDOMNode(this);n&&Fq(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xq&&this.setState({status:Uq})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[NC.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:qq},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Bq},(function(){t.props.onEntered(o,a)}))}))}))):this.safeSetState({status:Bq},(function(){t.props.onEntered(o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:NC.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Vq},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Xq},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Xq},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:NC.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Uq)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,nT(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return c.createElement(Lq.Provider,{value:null},"function"==typeof n?n(e,r):c.cloneElement(c.Children.only(n),r))},t}(c.Component);function Zq(){}Yq.contextType=Lq,Yq.propTypes={},Yq.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zq,onEntering:Zq,onEntered:Zq,onExit:Zq,onExiting:Zq,onExited:Zq},Yq.UNMOUNTED=Uq,Yq.EXITED=Xq,Yq.ENTERING=qq,Yq.ENTERED=Bq,Yq.EXITING=Vq;const Gq=Yq,Hq=function(e=null){const t=c.useContext(xF);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},Kq=lX(),Jq=function(e=Kq){return Hq(e)};function eB(){const e=Jq(wq);return e[kq]||e}const tB=e=>e.scrollTop;function nB(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:i.transitionDelay}}const rB=GN,iB={entering:{opacity:1},entered:{opacity:1}},oB=c.forwardRef((function(e,t){const n=eB(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:p,onExiting:m,style:g,timeout:v=r,TransitionComponent:O=Gq,...y}=e,b=c.useRef(null),w=rB(b,HN(a),t),k=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},x=k(f),_=k(((e,t)=>{tB(e);const r=nB({style:g,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),S=k(d),P=k(m),E=k((e=>{const t=nB({style:g,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)})),C=k(p);return(0,lM.jsx)(O,{appear:o,in:l,nodeRef:b,onEnter:_,onEntered:S,onEntering:x,onExit:E,onExited:C,onExiting:P,addEndListener:e=>{i&&i(b.current,e)},timeout:v,...y,children:(e,{ownerState:t,...n})=>c.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...iB[e],...g,...a.props.style},ref:w,...n})})})),aB=oB,sB=e=>e,lB=(()=>{let e=sB;return{configure(t){e=t},generate:t=>e(t),reset(){e=sB}}})(),uB={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cB(e,t,n="Mui"){const r=uB[t];return r?`${n}-${r}`:`${lB.generate(e)}-${t}`}function dB(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=cB(e,t,n)})),r}function fB(e){return cB("MuiBackdrop",e)}dB("MuiBackdrop",["root","invisible"]);const hB=Pq("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),pB=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiBackdrop"}),{children:r,className:i,component:o="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:f,transitionDuration:h,...p}=n,m={...n,component:o,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return qN({root:["root",n&&"invisible"]},fB,t)})(m),v={slots:{transition:f,root:l.Root,...d},slotProps:{...u,...c}},[O,y]=zq("root",{elementType:hB,externalForwardedProps:v,className:XN(g.root,i),ownerState:m}),[b,w]=zq("transition",{elementType:aB,externalForwardedProps:v,ownerState:m});return(0,lM.jsx)(b,{in:s,timeout:h,...p,...w,children:(0,lM.jsx)(O,{"aria-hidden":!0,...y,classes:g,ref:t,children:r})})})),mB=pB,gB=function(e){const t=c.useRef(e);return rL((()=>{t.current=e})),c.useRef(((...e)=>(0,t.current)(...e))).current};function vB(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function OB(e){return KN(e).defaultView||window}function yB(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function bB(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wB(e){return parseInt(OB(e).getComputedStyle(e).paddingRight,10)||0}function kB(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=!o.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&bB(e,i)}))}function xB(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}const _B=()=>{},SB=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bB(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);kB(t,e.mount,e.modalRef,r,!0);const i=xB(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=xB(this.containers,(t=>t.modals.includes(e))),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=KN(e);return t.body===e?OB(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yB(OB(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wB(r)+e}px`;const t=KN(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wB(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=KN(r).body;else{const t=r.parentElement,n=OB(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=xB(this.containers,(t=>t.modals.includes(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&bB(e.modalRef,t),kB(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&bB(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function PB(e){return cB("MuiModal",e)}dB("MuiModal",["root","hidden","backdrop"]);const EB=Pq("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Cq((({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]})))),CB=Pq(mB,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),TB=c.forwardRef((function(e,t){const n=Rq({name:"MuiModal",props:e}),{BackdropComponent:r=CB,BackdropProps:i,classes:o,className:a,closeAfterTransition:s=!1,children:l,container:u,component:d,components:f={},componentsProps:h={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:v=!1,disableRestoreFocus:O=!1,disableScrollLock:y=!1,hideBackdrop:b=!1,keepMounted:w=!1,onBackdropClick:k,onClose:x,onTransitionEnter:_,onTransitionExited:S,open:P,slotProps:E={},slots:C={},theme:T,...$}=n,Q={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:v,disableRestoreFocus:O,disableScrollLock:y,hideBackdrop:b,keepMounted:w},{getRootProps:R,getBackdropProps:A,getTransitionProps:j,portalRef:D,isTopModal:M,exited:I,hasTransition:z}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:u,rootRef:d}=e,f=c.useRef({}),h=c.useRef(null),p=c.useRef(null),m=GN(p,d),[g,v]=c.useState(!u),O=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const b=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),w=()=>{SB.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=gB((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||KN(h.current).body;SB.add(b(),e),p.current&&w()})),x=()=>SB.isTopModal(b()),_=gB((e=>{h.current=e,e&&(u&&x()?w():p.current&&bB(p.current,y))})),S=c.useCallback((()=>{SB.remove(b(),y)}),[y]);c.useEffect((()=>()=>{S()}),[S]),c.useEffect((()=>{u?k():O&&i||S()}),[u,S,O,i,k]);const P=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&x()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},E=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Dq(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:P(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:E(t),open:u}},getTransitionProps:()=>({onEnter:vB((()=>{v(!1),o&&o()}),s?.props.onEnter??_B),onExited:vB((()=>{v(!0),a&&a(),i&&S()}),s?.props.onExited??_B)}),rootRef:m,portalRef:_,isTopModal:x,exited:g,hasTransition:O}}({...Q,rootRef:t}),W={...Q,exited:I},N=(e=>{const{open:t,exited:n,classes:r}=e;return qN({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},PB,r)})(W),L={};if(void 0===l.props.tabIndex&&(L.tabIndex="-1"),z){const{onEnter:e,onExited:t}=j();L.onEnter=e,L.onExited=t}const F={...$,slots:{root:f.Root,backdrop:f.Backdrop,...C},slotProps:{...h,...E}},[U,X]=zq("root",{elementType:EB,externalForwardedProps:F,getSlotProps:R,additionalProps:{ref:t,as:d},ownerState:W,className:XN(a,N?.root,!W.open&&W.exited&&N?.hidden)}),[q,B]=zq("backdrop",{elementType:r,externalForwardedProps:F,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{k&&k(t),e?.onClick&&e.onClick(t)}}),className:XN(i?.className,N?.backdrop),ownerState:W}),V=rB(i?.ref,B.ref);return w||P||z&&!I?(0,lM.jsx)(iL,{ref:D,container:u,disablePortal:v,children:(0,lM.jsxs)(U,{...X,children:[!b&&r?(0,lM.jsx)(q,{...B,ref:V}):null,(0,lM.jsx)(nL,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:O,isEnabled:M,open:P,children:c.cloneElement(l,L)})]})}):null})),$B=TB;function QB(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}const RB=QB,AB=OB;function jB(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=AB(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:"right"===e?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const DB=c.forwardRef((function(e,t){const n=eB(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,container:l,direction:u="down",easing:d=r,in:f,onEnter:h,onEntered:p,onEntering:m,onExit:g,onExited:v,onExiting:O,style:y,timeout:b=i,TransitionComponent:w=Gq,...k}=e,x=c.useRef(null),_=rB(HN(s),x,t),S=e=>t=>{e&&(void 0===t?e(x.current):e(x.current,t))},P=S(((e,t)=>{jB(u,e,l),tB(e),h&&h(e,t)})),E=S(((e,t)=>{const r=nB({timeout:b,style:y,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),C=S(p),T=S(O),$=S((e=>{const t=nB({timeout:b,style:y,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),jB(u,e,l),g&&g(e)})),Q=S((e=>{e.style.webkitTransition="",e.style.transition="",v&&v(e)})),R=c.useCallback((()=>{x.current&&jB(u,x.current,l)}),[u,l]);return c.useEffect((()=>{if(f||"down"===u||"right"===u)return;const e=RB((()=>{x.current&&jB(u,x.current,l)})),t=AB(x.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,f,l]),c.useEffect((()=>{f||R()}),[f,R]),(0,lM.jsx)(w,{nodeRef:x,onEnter:P,onEntered:C,onEntering:E,onExit:$,onExited:Q,onExiting:T,addEndListener:e=>{o&&o(x.current,e)},appear:a,in:f,timeout:b,...k,children:(e,{ownerState:t,...n})=>c.cloneElement(s,{ref:_,style:{visibility:"exited"!==e||f?void 0:"hidden",...y,...s.props.style},...n})})})),MB=DB;function IB(e){return cB("MuiPaper",e)}dB("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const zB=Pq("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Cq((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]})))),WB=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiPaper"}),r=eB(),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:o,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return qN({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},IB,i)})(c);return(0,lM.jsx)(zB,{as:o,ownerState:c,className:XN(d.root,i),ref:t,...u,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${xX("#fff",lq(a))}, ${xX("#fff",lq(a))})`}},...u.style}})})),NB=WB,LB=dU;function FB(e){return cB("MuiDrawer",e)}dB("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const UB=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},XB=Pq($B,{name:"MuiDrawer",slot:"Root",overridesResolver:UB})(Cq((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})))),qB=Pq("div",{shouldForwardProp:_q,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:UB})({flex:"0 0 auto"}),BB=Pq(NB,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${LB(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${LB(n.anchor)}`]]}})(Cq((({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]})))),VB={left:"right",right:"left",top:"down",bottom:"up"},YB=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDrawer"}),r=eB(),i=VN(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h,...p}={},onClose:m,open:g=!1,PaperProps:v={},SlideProps:O,TransitionComponent:y=MB,transitionDuration:b=o,variant:w="temporary",...k}=n,x=c.useRef(!1);c.useEffect((()=>{x.current=!0}),[]);const _=function({direction:e},t){return"rtl"===e&&function(e){return["left","right"].includes(e)}(t)?VB[t]:t}({direction:i?"rtl":"ltr"},a),S=a,P={...n,anchor:S,elevation:d,open:g,variant:w,...k},E=(e=>{const{classes:t,anchor:n,variant:r}=e;return qN({root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${LB(n)}`,"temporary"!==r&&`paperAnchorDocked${LB(n)}`]},FB,t)})(P),C=(0,lM.jsx)(BB,{elevation:"temporary"===w?d:0,square:!0,...v,className:XN(E.paper,v.className),ownerState:P,children:l});if("permanent"===w)return(0,lM.jsx)(qB,{className:XN(E.root,E.docked,u),ownerState:P,ref:t,...k,children:C});const T=(0,lM.jsx)(y,{in:g,direction:VB[_],timeout:b,appear:x.current,...O,children:C});return"persistent"===w?(0,lM.jsx)(qB,{className:XN(E.root,E.docked,u),ownerState:P,ref:t,...k,children:T}):(0,lM.jsx)(XB,{BackdropProps:{...s,...h,transitionDuration:b},className:XN(E.root,E.modal,u),open:g,ownerState:P,onClose:m,hideBackdrop:f,ref:t,...k,...p,children:T})})),ZB=YB;var GB=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"}))}));GB.displayName="Dashboard";var HB=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}))}));HB.displayName="Photo";var KB=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))}));KB.displayName="Article";const JB=UD("Icon",["root","icon"]);function eV(e){let t=c.createElement(KB,{className:JB.icon});if(e){const n=ME(e);n&&(t=c.createElement(n,null))}return c.createElement("div",{className:qD(JB.root,"cms-icon")},t)}function tV(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nV(e){return e instanceof tV(e).Element||e instanceof Element}function rV(e){return e instanceof tV(e).HTMLElement||e instanceof HTMLElement}function iV(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tV(e).ShadowRoot||e instanceof ShadowRoot)}var oV=Math.max,aV=Math.min,sV=Math.round;function lV(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function uV(){return!/^((?!chrome|android).)*safari/i.test(lV())}function cV(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&rV(e)&&(i=e.offsetWidth>0&&sV(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&sV(r.height)/e.offsetHeight||1);var a=(nV(e)?tV(e):window).visualViewport,s=!uV()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,c=r.width/i,d=r.height/o;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function dV(e){var t=tV(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fV(e){return e?(e.nodeName||"").toLowerCase():null}function hV(e){return((nV(e)?e.ownerDocument:e.document)||window.document).documentElement}function pV(e){return cV(hV(e)).left+dV(e).scrollLeft}function mV(e){return tV(e).getComputedStyle(e)}function gV(e){var t=mV(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vV(e,t,n){void 0===n&&(n=!1);var r=rV(t),i=rV(t)&&function(e){var t=e.getBoundingClientRect(),n=sV(t.width)/e.offsetWidth||1,r=sV(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=hV(t),a=cV(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==fV(t)||gV(o))&&(s=function(e){return e!==tV(e)&&rV(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:dV(e);var t}(t)),rV(t)?((l=cV(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=pV(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function OV(e){var t=cV(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function yV(e){return"html"===fV(e)?e:e.assignedSlot||e.parentNode||(iV(e)?e.host:null)||hV(e)}function bV(e){return["html","body","#document"].indexOf(fV(e))>=0?e.ownerDocument.body:rV(e)&&gV(e)?e:bV(yV(e))}function wV(e,t){var n;void 0===t&&(t=[]);var r=bV(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=tV(r),a=i?[o].concat(o.visualViewport||[],gV(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(wV(yV(a)))}function kV(e){return["table","td","th"].indexOf(fV(e))>=0}function xV(e){return rV(e)&&"fixed"!==mV(e).position?e.offsetParent:null}function _V(e){for(var t=tV(e),n=xV(e);n&&kV(n)&&"static"===mV(n).position;)n=xV(n);return n&&("html"===fV(n)||"body"===fV(n)&&"static"===mV(n).position)?t:n||function(e){var t=/firefox/i.test(lV());if(/Trident/i.test(lV())&&rV(e)&&"fixed"===mV(e).position)return null;var n=yV(e);for(iV(n)&&(n=n.host);rV(n)&&["html","body"].indexOf(fV(n))<0;){var r=mV(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var SV="top",PV="bottom",EV="right",CV="left",TV="auto",$V=[SV,PV,EV,CV],QV="start",RV="end",AV="viewport",jV="popper",DV=$V.reduce((function(e,t){return e.concat([t+"-"+QV,t+"-"+RV])}),[]),MV=[].concat($V,[TV]).reduce((function(e,t){return e.concat([t,t+"-"+QV,t+"-"+RV])}),[]),IV=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zV(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function WV(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var NV={placement:"bottom",modifiers:[],strategy:"absolute"};function LV(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function YV(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?qV(i):null,a=i?BV(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case SV:t={x:s,y:n.y-r.height};break;case PV:t={x:s,y:n.y+n.height};break;case EV:t={x:n.x+n.width,y:l};break;case CV:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?VV(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case QV:t[u]=t[u]-(n[c]/2-r[c]/2);break;case RV:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var ZV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GV(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,m=void 0===p?0:p,g="function"==typeof c?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=a.hasOwnProperty("x"),O=a.hasOwnProperty("y"),y=CV,b=SV,w=window;if(u){var k=_V(n),x="clientHeight",_="clientWidth";k===tV(n)&&"static"!==mV(k=hV(n)).position&&"absolute"===s&&(x="scrollHeight",_="scrollWidth"),(i===SV||(i===CV||i===EV)&&o===RV)&&(b=PV,m-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[x])-r.height,m*=l?1:-1),i!==CV&&(i!==SV&&i!==PV||o!==RV)||(y=EV,h-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[_])-r.width,h*=l?1:-1)}var S,P=Object.assign({position:s},u&&ZV),E=!0===c?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:sV(n*i)/i||0,y:sV(r*i)/i||0}}({x:h,y:m},tV(n)):{x:h,y:m};return h=E.x,m=E.y,l?Object.assign({},P,((S={})[b]=O?"0":"",S[y]=v?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},P,((t={})[b]=O?m+"px":"",t[y]=v?h+"px":"",t.transform="",t))}const HV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:qV(t.placement),variation:BV(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,GV(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,GV(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},KV={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];rV(i)&&fV(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});rV(r)&&fV(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},JV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=MV.reduce((function(e,n){return e[n]=function(e,t,n){var r=qV(e),i=[CV,SV].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[CV,EV].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var eY={left:"right",right:"left",bottom:"top",top:"bottom"};function tY(e){return e.replace(/left|right|bottom|top/g,(function(e){return eY[e]}))}var nY={start:"end",end:"start"};function rY(e){return e.replace(/start|end/g,(function(e){return nY[e]}))}function iY(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iV(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oY(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aY(e,t,n){return t===AV?oY(function(e,t){var n=tV(e),r=hV(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=uV();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+pV(e),y:l}}(e,n)):nV(t)?function(e,t){var n=cV(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):oY(function(e){var t,n=hV(e),r=dV(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=oV(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=oV(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+pV(e),l=-r.scrollTop;return"rtl"===mV(i||n).direction&&(s+=oV(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(hV(e)))}function sY(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lY(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function uY(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?AV:u,d=n.elementContext,f=void 0===d?jV:d,h=n.altBoundary,p=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,v=sY("number"!=typeof g?g:lY(g,$V)),O=f===jV?"reference":jV,y=e.rects.popper,b=e.elements[p?O:f],w=function(e,t,n,r){var i="clippingParents"===t?function(e){var t=wV(yV(e)),n=["absolute","fixed"].indexOf(mV(e).position)>=0&&rV(e)?_V(e):e;return nV(n)?t.filter((function(e){return nV(e)&&iY(e,n)&&"body"!==fV(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=aY(e,n,r);return t.top=oV(i.top,t.top),t.right=aV(i.right,t.right),t.bottom=aV(i.bottom,t.bottom),t.left=oV(i.left,t.left),t}),aY(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(nV(b)?b:b.contextElement||hV(e.elements.popper),l,c,a),k=cV(e.elements.reference),x=YV({reference:k,element:y,strategy:"absolute",placement:i}),_=oY(Object.assign({},y,x)),S=f===jV?_:k,P={top:w.top-S.top+v.top,bottom:S.bottom-w.bottom+v.bottom,left:w.left-S.left+v.left,right:S.right-w.right+v.right},E=e.modifiersData.offset;if(f===jV&&E){var C=E[i];Object.keys(P).forEach((function(e){var t=[EV,PV].indexOf(e)>=0?1:-1,n=[SV,PV].indexOf(e)>=0?"y":"x";P[e]+=C[n]*t}))}return P}const cY={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=qV(g),O=l||(v!==g&&p?function(e){if(qV(e)===TV)return[];var t=tY(e);return[rY(e),t,rY(t)]}(g):[tY(g)]),y=[g].concat(O).reduce((function(e,n){return e.concat(qV(n)===TV?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?MV:l,c=BV(r),d=c?s?DV:DV.filter((function(e){return BV(e)===c})):$V,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=uY(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[qV(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,w=t.rects.popper,k=new Map,x=!0,_=y[0],S=0;S=0,$=T?"width":"height",Q=uY(t,{placement:P,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),R=T?C?EV:CV:C?PV:SV;b[$]>w[$]&&(R=tY(R));var A=tY(R),j=[];if(o&&j.push(Q[E]<=0),s&&j.push(Q[R]<=0,Q[A]<=0),j.every((function(e){return e}))){_=P,x=!1;break}k.set(P,j)}if(x)for(var D=function(e){var t=y.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},M=p?3:1;M>0&&"break"!==D(M);M--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dY(e,t,n){return oV(e,aV(t,n))}const fY={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,m=void 0===p?0:p,g=uY(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=qV(t.placement),O=BV(t.placement),y=!O,b=VV(v),w="x"===b?"y":"x",k=t.modifiersData.popperOffsets,x=t.rects.reference,_=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,P="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(k){if(o){var T,$="y"===b?SV:CV,Q="y"===b?PV:EV,R="y"===b?"height":"width",A=k[b],j=A+g[$],D=A-g[Q],M=h?-_[R]/2:0,I=O===QV?x[R]:_[R],z=O===QV?-_[R]:-x[R],W=t.elements.arrow,N=h&&W?OV(W):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=L[$],U=L[Q],X=dY(0,x[R],N[R]),q=y?x[R]/2-M-X-F-P.mainAxis:I-X-F-P.mainAxis,B=y?-x[R]/2+M+X+U+P.mainAxis:z+X+U+P.mainAxis,V=t.elements.arrow&&_V(t.elements.arrow),Y=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,Z=null!=(T=null==E?void 0:E[b])?T:0,G=A+B-Z,H=dY(h?aV(j,A+q-Z-Y):j,A,h?oV(D,G):D);k[b]=H,C[b]=H-A}if(s){var K,J="x"===b?SV:CV,ee="x"===b?PV:EV,te=k[w],ne="y"===w?"height":"width",re=te+g[J],ie=te-g[ee],oe=-1!==[SV,CV].indexOf(v),ae=null!=(K=null==E?void 0:E[w])?K:0,se=oe?re:te-x[ne]-_[ne]-ae+P.altAxis,le=oe?te+x[ne]+_[ne]-ae-P.altAxis:ie,ue=h&&oe?function(e,t,n){var r=dY(e,t,n);return r>n?n:r}(se,te,le):dY(h?se:re,te,h?le:ie);k[w]=ue,C[w]=ue-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},hY={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=qV(n.placement),l=VV(s),u=[CV,EV].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return sY("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lY(e,$V))}(i.padding,n),d=OV(o),f="y"===l?SV:CV,h="y"===l?PV:EV,p=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=_V(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,O=p/2-m/2,y=c[f],b=v-d[u]-c[h],w=v/2-d[u]/2+O,k=dY(y,w,b),x=l;n.modifiersData[r]=((t={})[x]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&iY(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pY(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function mY(e){return[SV,EV,PV,CV].some((function(t){return e[t]>=0}))}var gY=FV({defaultModifiers:[XV,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=YV({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},HV,KV,JV,cY,fY,hY,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=uY(t,{elementContext:"reference"}),s=uY(t,{altBoundary:!0}),l=pY(a,r),u=pY(s,i,o),c=mY(l),d=mY(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function vY(e){return RM("MuiPopper",e)}AM("MuiPopper",["root"]);const OY=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],yY=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function bY(e){return"function"==typeof e?e():e}const wY={},kY=c.forwardRef((function(e,t){var n;const{anchorEl:r,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:p={},TransitionProps:m}=e,g=KD(e,OY),v=c.useRef(null),O=eM(v,t),y=c.useRef(null),b=eM(y,f),w=c.useRef(b);pM((()=>{w.current=b}),[b]),c.useImperativeHandle(f,(()=>y.current),[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,o),[x,_]=c.useState(k),[S,P]=c.useState(bY(r));c.useEffect((()=>{y.current&&y.current.forceUpdate()})),c.useEffect((()=>{r&&P(bY(r))}),[r]),pM((()=>{if(!S||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{_(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=gY(S,v.current,HD({placement:k},d,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[S,a,s,l,d,k]);const E={placement:x};null!==m&&(E.TransitionProps=m);const C=hM({root:["root"]},fM(vY)),T=null!=(n=p.root)?n:"div",$=sM({elementType:T,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:C.root});return(0,lM.jsx)(T,HD({},$,{children:"function"==typeof i?i(E):i}))})),xY=c.forwardRef((function(e,t){const{anchorEl:n,children:r,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:d="bottom",popperOptions:f=wY,popperRef:h,style:p,transition:m=!1,slotProps:g={},slots:v={}}=e,O=KD(e,yY),[y,b]=c.useState(!0);if(!s&&!u&&(!m||y))return null;let w;if(i)w=i;else if(n){const e=bY(n);w=e&&void 0!==e.nodeType?gM(e).body:gM(null).body}const k=u||!s||m&&!y?void 0:"none",x=m?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return(0,lM.jsx)(mM,{disablePortal:a,container:w,children:(0,lM.jsx)(kY,HD({anchorEl:n,direction:o,disablePortal:a,modifiers:l,ref:t,open:m?!y:u,placement:d,popperOptions:f,popperRef:h,slotProps:g,slots:v},O,{style:HD({position:"fixed",top:0,left:0,display:k},p),TransitionProps:x,children:r}))})}));var _Y=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))}));_Y.displayName="Search";const SY=UD("CollectionSearch",["root","content","icon-wrapper","icon","input","search-in","search-in-content","search-in-label","search-in-option"]),PY=({collections:e,collection:t,searchTerm:n="",onSubmit:r})=>{const i=LD(),o=(0,c.useRef)(),[a,s]=(0,c.useState)(n),[l,u]=(0,c.useState)(null),d=Boolean(l),f=(0,c.useMemo)((()=>Object.values(e)),[e]),h=(0,c.useCallback)((()=>{var e;u(null),null===(e=o.current)||void 0===e||e.blur()}),[]),p=(0,c.useCallback)((e=>{u(e.currentTarget)}),[]),m=(0,c.useCallback)((()=>{u(null)}),[]),g=(0,c.useCallback)((()=>t?f.findIndex((e=>e.name===t.name)):-1),[t,f]),[v,O]=(0,c.useState)(g()),[y,b]=(0,c.useState)(t);(0,c.useEffect)((()=>{y!==t&&O(g()),b(t)}),[t,g,y]);const w=(0,c.useCallback)((()=>{O(Math.min(v+1,f.length-1))}),[f,v]),k=(0,c.useCallback)((()=>{O(Math.max(v-1,-1))}),[v]),x=(0,c.useCallback)((()=>{O(-1)}),[]),_=(0,c.useCallback)((e=>{var t;-1!==e?r(a,null===(t=f[e])||void 0===t?void 0:t.name):r(a),h()}),[f,h,r,a]),S=(0,c.useCallback)((e=>{"Enter"===e.key&&_(v),d&&("Escape"===e.key&&h(),"ArrowDown"===e.key?(w(),e.preventDefault()):"ArrowUp"===e.key&&(k(),e.preventDefault()))}),[h,d,w,k,v,_]),P=(0,c.useCallback)((e=>{const t=e.target.value;s(t),""===t?(x(),h()):u(e.currentTarget)}),[h,x]),E=(0,c.useCallback)(((e,t)=>{e.preventDefault(),O(t),_(t)}),[_]),C=(0,c.useCallback)((e=>{e.stopPropagation(),u(e.currentTarget)}),[]);return c.createElement("div",{className:SY.root},c.createElement("div",{className:SY.content},c.createElement("div",{className:SY["icon-wrapper"]},c.createElement(_Y,{className:SY.icon})),c.createElement("input",{type:"text",id:"first_name",className:SY.input,placeholder:i("collection.sidebar.searchAll"),onKeyDown:S,onBlur:m,onFocus:p,value:a,onChange:P,onClick:C})),c.createElement(xY,{open:d,placement:"top",anchorEl:l,tabIndex:0,className:SY["search-in"],slots:{root:"div"}},c.createElement("div",{key:"edit-content",contentEditable:!1,className:SY["search-in-content"]},c.createElement("div",{className:SY["search-in-label"]},i("collection.sidebar.searchIn")),c.createElement("div",{className:SY["search-in-option"],onClick:e=>E(e,-1),onMouseDown:e=>e.preventDefault()},i("collection.sidebar.allCollections")),f.map(((e,t)=>c.createElement("div",{key:t,onClick:e=>E(e,t),onMouseDown:e=>e.preventDefault(),className:SY["search-in-option"]},e.label))))))};var EY=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))}));EY.displayName="ChevronRight";const CY=["icon","children","className","data-testid","onClick"],TY=UD("NavLink",["root","link","external","external-content","external-icon","content","icon","label"]),$Y=e=>{let{icon:t,children:n,className:r,"data-testid":i,onClick:o}=e,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rc.createElement("div",{className:TY.content},c.createElement("span",{className:TY.icon},t),c.createElement("span",{className:TY.label},n))),[n,t]),{pathname:l}=ee();return"href"in a?c.createElement("li",{className:qD(TY.root,r)},c.createElement("a",{href:a.href,target:"_blank",rel:"noreferrer",className:qD(BD.root,BD["text-secondary"],TY.link),"data-testid":i,onClick:o},c.createElement("div",{className:TY.external},c.createElement("div",{className:TY["external-content"]},s),c.createElement(IN,{className:TY["external-icon"]})))):c.createElement("li",{className:qD(TY.root,r)},c.createElement(LT,{to:a.to,className:qD(BD.root,l===a.to?BD["contained-primary"]:BD["text-secondary"],TY.link),"data-testid":i,onClick:o},s))};function QY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RY(e){for(var t=1;t!e.isDir&&e.title)))||void 0===t?void 0:t.title)||e.title}const MY=({collection:e,treeData:t,rootIsActive:n,path:r,depth:i=0,onToggle:o})=>{const a=e.name,s=(0,c.useCallback)(((e,t,i)=>{n&&(null==e||e.stopPropagation(),null==e||e.preventDefault(),o(e?{node:t,expanded:i}:{node:t,expanded:r!==t.path||i}))}),[o,r,n]),l=wS()(t,DY);return 0===i||n?c.createElement(c.Fragment,null,l.map((t=>{var l;if(t.children.length<=1&&(null===(l=t.children[0])||void 0===l||!l.isDir)&&i>0)return null;let u=`/collections/${a}`;i>0&&(u=`${u}/filter${t.path}`);const d=DY(t),f=0===i||t.children.some((e=>e.children.some((e=>e.isDir))));return c.createElement(c.Fragment,{key:t.path},c.createElement("div",{className:qD(0===i?jY["root-node"]:jY.node,0===i&&n&&jY.active,t.expanded&&jY.expanded)},c.createElement($Y,{to:u,onClick:()=>s(void 0,t,!t.expanded),"data-testid":t.path,className:jY.link,icon:c.createElement(KB,{className:qD(0===i?jY["root-node-icon"]:jY["node-icon"])})},c.createElement("div",{className:jY["node-content"]},c.createElement("div",null,d),f&&c.createElement(EY,{onClick:e=>s(e,t,!t.expanded),className:jY["node-children-icon"]}))),c.createElement("div",{className:jY["node-children"]},t.expanded&&c.createElement(MY,{rootIsActive:n,collection:e,path:r,depth:i+1,treeData:t.children,onToggle:o}))))}))):null};function IY(e,t){return function e(n){for(const r of n)t(r),e(r.children)}(e)}const zY=({collection:e,filterTerm:t})=>{const n=yz(e),[r,i]=(0,c.useState)(HE(e,n)),[o,a]=(0,c.useState)(!0),[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)(null),[f,h]=(0,c.useState)(null),[p,m]=(0,c.useState)(null),{pathname:g}=ee(),v=(0,c.useMemo)((()=>g.startsWith(`/collections/${e.name}`)),[e.name,g]),O=(0,c.useMemo)((()=>`/${t}`),[t]);(0,c.useEffect)((()=>{if(v!==s||e!==u||n!==f||O!==p){const t={};IY(r,(e=>{v?e.expanded&&(t[e.path]=!0):t[e.path]=!1}));const a=HE(e,n);IY(a,(e=>{v?(e.isRoot||t[e.path]||o&&O.startsWith(e.path))&&(e.expanded=!0):e.expanded=!1})),i(a)}l(v),d(e),h(n),m(O)}),[e,n,t,O,g,u,f,p,s,v,r,o]);const y=(0,c.useCallback)((({node:e,expanded:t})=>{i(function(e,t,n){let r=!1;return function e(i){if(r)return i;for(let e=0;ee(t.children))),i}([...e])}(r,e,(e=>RY(RY({},e),{},{expanded:t})))),a(!1)}),[r]);return c.createElement(MY,{collection:e,treeData:r,onToggle:y,rootIsActive:v,path:O})},WY=UD("Sidebar",["root","content","items","icon"]),NY=["name","searchTerm"],LY=({isMobile:e=!1})=>{const t=LD(),n=re(),{name:r,searchTerm:i}=n,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var e;return null!==(e=o["*"])&&void 0!==e?e:""}),[o]),s=ne(),l=pz(hC),u=pz(pC),d=pz(eI),f=pz(vC),h=(0,c.useMemo)((()=>r?d[r]:d[0]),[d,r]),p=(0,c.useMemo)((()=>Object.values(d).filter((e=>!0!==e.hide)).map((t=>{const n=t.name,r=eV(t.icon);return"nested"in t?c.createElement(zY,{key:`nested-${n}`,collection:t,filterTerm:a,"data-testid":n}):c.createElement($Y,{key:n,to:`/collections/${n}`,icon:r,"data-testid":`${e?"mobile-collection-nav":"sidebar-collection-nav"}-${t.label}`},t.label)}))),[d,a,e]),m=(0,c.useMemo)((()=>IE()),[]),g=(0,c.useMemo)((()=>Object.values(m).map((({id:t,title:n,data:r,options:{icon:i}={}})=>{const o=eV(i);return"string"==typeof r?c.createElement($Y,{key:n,href:r,icon:o,"data-testid":`${e?"mobile-external-nav":"sidebar-external-nav"}-${n}`},n):c.createElement($Y,{key:n,to:`/page/${t}`,icon:o,"data-testid":`${e?"mobile-page-nav":"sidebar-page-nav"}-${n}`},n)}))),[m,e]),v=(0,c.useCallback)(((e,t)=>{e&&s(t?`/collections/${t}/search/${e}`:`/search/${e}`)}),[s]);return c.createElement("div",{className:qD(WY.content,"CMS_Scrollbar_root","CMS_Scrollbar_secondary")},c.createElement("ul",{className:WY.items},l&&c.createElement(PY,{searchTerm:i,collections:d,collection:h,onSubmit:(e,t)=>v(e,t)}),f?c.createElement($Y,{key:"Dashboard",to:"/dashboard",icon:c.createElement(GB,{className:WY.icon}),"data-testid":(e?"mobile-nav":"sidebar-nav")+"-Dashboard"},t("workflow.workflow.dashboard")):null,p,g,u?c.createElement($Y,{key:"Media",to:"/media",icon:c.createElement(HB,{className:WY.icon}),"data-testid":(e?"mobile-nav":"sidebar-nav")+"-Media"},t("app.header.media")):null))},FY=UD("NavigationDrawer",["root","content"]),UY=({mobileOpen:e,onMobileOpenToggle:t})=>{const n=(0,c.useMemo)((()=>"undefined"!=typeof window?window.document.body:void 0),[]);return c.createElement(ZB,{container:n,variant:"temporary",open:e,onClose:t,ModalProps:{keepMounted:!0},slotProps:{root:{className:FY.root}},sx:{"& .MuiBackdrop-root":{width:"100%"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:"80%",maxWidth:320}}},c.createElement("div",{onClick:t,className:FY.content},c.createElement(LY,{isMobile:!0})))},XY=c.createContext(null);function qY(e,t){return e===t}const BY={},VY=()=>{};function YY(e,t){const n=HD({},e);return Object.keys(t).forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n}function ZY(e){const t=c.useRef(null),{reducer:n,initialState:r,controlledProps:i=BY,stateComparers:o=BY,onStateChange:a=VY,actionContext:s,componentName:l=""}=e;c.useRef(i);const u=c.useCallback(((e,r)=>{t.current=r;const o=YY(e,i);return n(o,r)}),[i,n]),[d,f]=c.useReducer(u,r),h=c.useCallback((e=>{f(HD({},e,{context:s}))}),[s]);return function(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:i,controlledProps:o,lastActionRef:a}=e,s=c.useRef(n);c.useEffect((()=>{if(null===a.current)return;const e=YY(s.current,o);Object.keys(t).forEach((n=>{var o;const s=null!=(o=r[n])?o:qY,l=t[n],u=e[n];var c,d;(null==u&&null!=l||null!=u&&null==l||null!=u&&null!=l&&!s(l,u))&&(null==i||i(null!=(c=a.current.event)?c:null,n,l,null!=(d=a.current.type)?d:"",t))})),s.current=t,a.current=null}),[s,t,a,i,r,o])}({nextState:d,initialState:r,stateComparers:null!=o?o:BY,onStateChange:null!=a?a:VY,controlledProps:i,lastActionRef:t}),[YY(d,i),h]}const GY={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"};function HY(e,t){switch(t.type){case GY.blur:case GY.escapeKeyDown:return{open:!1};case GY.toggle:return{open:!e.open};case GY.open:return{open:!0};case GY.close:return{open:!1};default:throw new Error("Unhandled action")}}function KY(e){const{children:t,open:n,defaultOpen:r,onOpenChange:i}=e,{contextValue:o}=function(e={}){const{defaultOpen:t,onOpenChange:n,open:r,componentName:i="useDropdown"}=e,[o,a]=c.useState(""),[s,l]=c.useState(null),u=c.useRef(null),d=c.useCallback(((e,t,r,i)=>{"open"===t&&(null==n||n(e,r)),u.current=i}),[n]),f=c.useMemo((()=>void 0!==r?{open:r}:{}),[r]),[h,p]=ZY({controlledProps:f,initialState:t?{open:!0}:{open:!1},onStateChange:d,reducer:HY,componentName:i});return c.useEffect((()=>{h.open||null===u.current||u.current===GY.blur||null==s||s.focus()}),[h.open,s]),{contextValue:{state:h,dispatch:p,popupId:o,registerPopup:a,registerTrigger:l,triggerElement:s},open:h.open}}({defaultOpen:r,onOpenChange:i,open:n});return(0,lM.jsx)(XY.Provider,{value:o,children:t})}function JY(e){return RM("MuiMenu",e)}AM("MuiMenu",["root","listbox","expanded"]);let eZ=0;const tZ=d["useId".toString()];function nZ(e){if(void 0!==tZ){const t=tZ();return null!=e?e:t}return function(e){const[t,n]=c.useState(e),r=e||t;return c.useEffect((()=>{null==t&&(eZ+=1,n(`mui-${eZ}`))}),[t]),r}(e)}const rZ={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function iZ(e,t,n){var r;const{items:i,isItemDisabled:o,disableListWrap:a,disabledItemsFocusable:s,itemComparer:l,focusManagement:u}=n,c="DOM"===u?0:-1,d=i.length-1,f=null==e?-1:i.findIndex((t=>l(t,e)));let h,p,m=!a;switch(t){case"reset":if(-1===c)return null;h=0,p="next",m=!1;break;case"start":h=0,p="next",m=!1;break;case"end":h=d,p="previous",m=!1;break;default:{const e=f+t;e<0?!m&&-1!==f||Math.abs(t)>1?(h=0,p="next"):(h=d,p="previous"):e>d?!m||Math.abs(t)>1?(h=d,p="previous"):(h=0,p="next"):(h=e,p=t>=0?"next":"previous")}}const g=function(e,t,n,r,i,o){if(0===n.length||!r&&n.every(((e,t)=>i(e,t))))return-1;let a=e;for(;;){if(!o&&"next"===t&&a===n.length||!o&&"previous"===t&&-1===a)return-1;if(r||!i(n[a],a))return a;a+="next"===t?1:-1,o&&(a=(a+n.length)%n.length)}}(h,p,i,s,o,m);return-1!==g||null===e||o(e,f)?null!=(r=i[g])?r:null:e}function oZ(e,t,n){const{itemComparer:r,isItemDisabled:i,selectionMode:o,items:a}=n,{selectedValues:s}=t,l=a.findIndex((t=>r(e,t)));if(i(e,l))return t;const u=function(e,t,n,r){return"none"===n?[]:"single"===n?r(t[0],e)?t:[e]:t.some((t=>r(t,e)))?t.filter((t=>!r(t,e))):[...t,e]}(e,s,o,r);return HD({},t,{selectedValues:u,highlightedValue:e})}function aZ(e,t,n){var r;const i=null==(r=n(e))?void 0:r.trim().toLowerCase();return!(!i||0===i.length)&&0===i.indexOf(t)}function sZ(e,t){const{type:n,context:r}=t;switch(n){case rZ.keyDown:return function(e,t,n){const r=t.highlightedValue,{orientation:i,pageSize:o}=n;switch(e){case"Home":return HD({},t,{highlightedValue:iZ(r,"start",n)});case"End":return HD({},t,{highlightedValue:iZ(r,"end",n)});case"PageUp":return HD({},t,{highlightedValue:iZ(r,-o,n)});case"PageDown":return HD({},t,{highlightedValue:iZ(r,o,n)});case"ArrowUp":if("vertical"!==i)break;return HD({},t,{highlightedValue:iZ(r,-1,n)});case"ArrowDown":if("vertical"!==i)break;return HD({},t,{highlightedValue:iZ(r,1,n)});case"ArrowLeft":if("vertical"===i)break;return HD({},t,{highlightedValue:iZ(r,"horizontal-ltr"===i?-1:1,n)});case"ArrowRight":if("vertical"===i)break;return HD({},t,{highlightedValue:iZ(r,"horizontal-ltr"===i?1:-1,n)});case"Enter":case" ":return null===t.highlightedValue?t:oZ(t.highlightedValue,t,n)}return t}(t.key,e,r);case rZ.itemClick:return oZ(t.item,e,r);case rZ.blur:return function(e,t){return"DOM"===t.focusManagement?e:HD({},e,{highlightedValue:null})}(e,r);case rZ.textNavigation:return function(e,t,n){const{items:r,isItemDisabled:i,disabledItemsFocusable:o,getItemAsString:a}=n,s=t.length>1;let l=s?e.highlightedValue:iZ(e.highlightedValue,1,n);for(let u=0;uo(e,n.highlightedValue))))?l:null:"DOM"===a&&0===t.length&&(s=iZ(null,"reset",r));const u=(null!=(i=n.selectedValues)?i:[]).filter((t=>e.some((e=>o(e,t)))));return HD({},n,{highlightedValue:s,selectedValues:u})}(t.items,t.previousItems,e,r);case rZ.resetHighlight:return function(e,t){return HD({},e,{highlightedValue:iZ(null,"reset",t)})}(e,r);case rZ.clearSelection:return function(e,t){return HD({},e,{selectedValues:[],highlightedValue:iZ(null,"reset",t)})}(e,r);default:return e}}function lZ(e,t){if(t.type===rZ.itemHover)return e;const n=sZ(e,t);if(null===n.highlightedValue&&t.context.items.length>0)return HD({},n,{highlightedValue:t.context.items[0]});if(t.type===rZ.keyDown&&"Escape"===t.event.key)return HD({},n,{open:!1});var r;if(t.type===rZ.blur&&(null==(r=t.context.listboxRef.current)||!r.contains(t.event.relatedTarget))){var i,o;const e=null==(i=t.context.listboxRef.current)?void 0:i.getAttribute("id"),r=null==(o=t.event.relatedTarget)?void 0:o.getAttribute("aria-controls");return e&&r&&e===r?n:HD({},n,{open:!1,highlightedValue:t.context.items[0]})}return n}function uZ(e,t,n=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}const cZ=500,dZ={},fZ=()=>{},hZ=(e,t)=>e===t,pZ=()=>!1,mZ=e=>"string"==typeof e?e:String(e),gZ=()=>({highlightedValue:null,selectedValues:[]});function vZ(e){const{controlledProps:t=dZ,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:i="activeDescendant",getInitialState:o=gZ,getItemDomElement:a,getItemId:s,isItemDisabled:l=pZ,rootRef:u,onStateChange:d=fZ,items:f,itemComparer:h=hZ,getItemAsString:p=mZ,onChange:m,onHighlightChange:g,onItemsChange:v,orientation:O="vertical",pageSize:y=5,reducerActionContext:b=dZ,selectionMode:w="single",stateReducer:k,componentName:x="useList"}=e,_=c.useRef(null),S=eM(u,_),P=c.useCallback(((e,t,n)=>{var r;null==g||g(e,t,n),"DOM"!==i||null==t||n!==rZ.itemClick&&n!==rZ.keyDown&&n!==rZ.textNavigation||null==a||null==(r=a(t))||r.focus()}),[a,g,i]),E=c.useMemo((()=>({highlightedValue:h,selectedValues:(e,t)=>uZ(e,t,h)})),[h]),C=c.useCallback(((e,t,n,r,i)=>{switch(null==d||d(e,t,n,r,i),t){case"highlightedValue":P(e,n,r);break;case"selectedValues":null==m||m(e,n,r)}}),[P,m,d]),T=c.useMemo((()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:i,isItemDisabled:l,itemComparer:h,items:f,getItemAsString:p,onHighlightChange:P,orientation:O,pageSize:y,selectionMode:w,stateComparers:E})),[n,r,i,l,h,f,p,P,O,y,w,E]),$=o(),Q=null!=k?k:sZ,R=c.useMemo((()=>HD({},b,T)),[b,T]),[A,j]=ZY({reducer:Q,actionContext:R,initialState:$,controlledProps:t,stateComparers:E,onStateChange:C,componentName:x}),{highlightedValue:D,selectedValues:M}=A,I=function(e){const t=c.useRef({searchString:"",lastTime:null});return c.useCallback((n=>{if(1===n.key.length&&" "!==n.key){const r=t.current,i=n.key.toLowerCase(),o=performance.now();r.searchString.length>0&&r.lastTime&&o-r.lastTime>cZ?r.searchString=i:1===r.searchString.length&&i===r.searchString||(r.searchString+=i),r.lastTime=o,e(r.searchString,n)}}),[e])}(((e,t)=>j({type:rZ.textNavigation,event:t,searchString:e}))),z=c.useRef([]);c.useEffect((()=>{uZ(z.current,f,h)||(j({type:rZ.itemsChange,event:null,items:f,previousItems:z.current}),z.current=f,null==v||v(f))}),[f,h,j,v]);const W=e=>t=>{var n;if(null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented)return;const r=["Home","End","PageUp","PageDown"];"vertical"===O?r.push("ArrowUp","ArrowDown"):r.push("ArrowLeft","ArrowRight"),"activeDescendant"===i&&r.push(" ","Enter"),r.includes(t.key)&&t.preventDefault(),j({type:rZ.keyDown,key:t.key,event:t}),I(t)},N=c.useCallback((e=>{const t=(null!=M?M:[]).some((t=>null!=t&&h(e,t))),n=null!=D&&h(e,D);return{focusable:"DOM"===i,highlighted:n,selected:t}}),[h,M,D,i]),L=c.useMemo((()=>({dispatch:j,getItemState:N})),[j,N]);return c.useDebugValue({state:A}),{contextValue:L,dispatch:j,getRootProps:(e={})=>{const t=iM(e);return HD({},e,{"aria-activedescendant":"activeDescendant"===i&&null!=D?s(D):void 0,tabIndex:"DOM"===i?-1:0,ref:S},t,{onBlur:(n=t,e=>{var t,r;null==(t=n.onBlur)||t.call(n,e),e.defaultMuiPrevented||null!=(r=_.current)&&r.contains(e.relatedTarget)||j({type:rZ.blur,event:e})}),onKeyDown:W(t)});var n},rootRef:S,state:A}}const OZ=c.createContext(null);function yZ(){const[e,t]=c.useState(new Map),n=c.useRef(new Set),r=c.useCallback((function(e){n.current.delete(e),t((t=>{const n=new Map(t);return n.delete(e),n}))}),[]),i=c.useCallback((function(e,i){let o;return o="function"==typeof e?e(n.current):e,n.current.add(o),t((e=>{const t=new Map(e);return t.set(o,i),t})),{id:o,deregister:()=>r(o)}}),[r]),o=c.useMemo((()=>function(e){const t=Array.from(e.keys()).map((t=>({key:t,subitem:e.get(t)})));return t.sort(((e,t)=>{const n=e.subitem.ref.current,r=t.subitem.ref.current;return null===n||null===r||n===r?0:n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1})),new Map(t.map((e=>[e.key,e.subitem])))}(e)),[e]),a=c.useCallback((function(e){return Array.from(o.keys()).indexOf(e)}),[o]);return{contextValue:c.useMemo((()=>({getItemIndex:a,registerItem:i,totalSubitemCount:e.size})),[a,i,e.size]),subitems:o}}function bZ(e,t){return function(n={}){const r=HD({},n,e(n));return HD({},r,t(r))}}OZ.displayName="CompoundComponentContext";const wZ={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0},triggerElement:null},kZ=c.createContext(null);function xZ(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:i,getItemState:o,registerItem:a,totalSubitemCount:s}=t,l=c.useMemo((()=>({dispatch:r,getItemState:o,getItemIndex:i})),[r,i,o]),u=c.useMemo((()=>({getItemIndex:i,registerItem:a,totalSubitemCount:s})),[a,i,s]);return(0,lM.jsx)(OZ.Provider,{value:u,children:(0,lM.jsx)(kZ.Provider,{value:l,children:n})})}const _Z=["actions","anchor","children","onItemsChange","slotProps","slots"],SZ=c.forwardRef((function(e,t){var n,r;const{actions:i,anchor:o,children:a,onItemsChange:s,slotProps:l={},slots:u={}}=e,d=KD(e,_Z),{contextValue:f,getListboxProps:h,dispatch:p,open:m,triggerElement:g}=function(e={}){var t,n;const{listboxRef:r,onItemsChange:i,id:o,disabledItemsFocusable:a=!0,disableListWrap:s=!1,autoFocus:l=!0,componentName:u="useMenu"}=e,d=c.useRef(null),f=eM(d,r),h=null!=(t=nZ(o))?t:"",{state:{open:p},dispatch:m,triggerElement:g,registerPopup:v}=null!=(n=c.useContext(XY))?n:wZ,O=c.useRef(p),{subitems:y,contextValue:b}=yZ(),w=c.useMemo((()=>Array.from(y.keys())),[y]),k=c.useCallback((e=>{var t,n;return null==e?null:null!=(t=null==(n=y.get(e))?void 0:n.ref.current)?t:null}),[y]),x=c.useCallback((e=>{var t;return(null==y||null==(t=y.get(e))?void 0:t.disabled)||!1}),[y]),_=c.useCallback((e=>{var t,n;return(null==(t=y.get(e))?void 0:t.label)||(null==(n=y.get(e))||null==(n=n.ref.current)?void 0:n.innerText)}),[y]),S=c.useMemo((()=>({listboxRef:d})),[d]),{dispatch:P,getRootProps:E,contextValue:C,state:{highlightedValue:T},rootRef:$}=vZ({disabledItemsFocusable:a,disableListWrap:s,focusManagement:"DOM",getItemDomElement:k,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:x,items:w,getItemAsString:_,rootRef:f,onItemsChange:i,reducerActionContext:S,selectionMode:"none",stateReducer:lZ,componentName:u});pM((()=>{v(h)}),[h,v]),c.useEffect((()=>{var e;p&&l&&T&&!O.current&&(null==(e=y.get(T))||null==(e=e.ref)||null==(e=e.current)||e.focus())}),[p,l,T,y,w]),c.useEffect((()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==T&&(null==y||null==(t=y.get(T))||null==(t=t.ref.current)||t.focus())}),[T,y]);const Q=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(r=d.current)&&r.contains(t.relatedTarget)||t.relatedTarget===g||m({type:GY.blur,event:t})},R=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"Escape"===t.key&&m({type:GY.escapeKeyDown,event:t})},A=(e={})=>({onBlur:Q(e),onKeyDown:R(e)});return c.useDebugValue({subitems:y,highlightedValue:T}),{contextValue:HD({},b,C),dispatch:P,getListboxProps:(e={})=>{const t=bZ(A,E),n=iM(e);return HD({},e,n,t(n),{id:h,role:"menu"})},highlightedValue:T,listboxRef:$,menuItems:y,open:p,triggerElement:g}}({onItemsChange:s,componentName:"Menu"}),v=null!=o?o:g;c.useImperativeHandle(i,(()=>({dispatch:p,resetHighlight:()=>p({type:rZ.resetHighlight,event:null})})),[p]);const O=HD({},e,{open:m}),y=function(e){const{open:t}=e;return hM({root:["root",t&&"expanded"],listbox:["listbox",t&&"expanded"]},fM(JY))}(O),b=null!=(n=u.root)?n:"div",w=sM({elementType:b,externalSlotProps:l.root,externalForwardedProps:d,additionalProps:{ref:t,role:void 0},className:y.root,ownerState:O}),k=null!=(r=u.listbox)?r:"ul",x=sM({elementType:k,getSlotProps:h,externalSlotProps:l.listbox,className:y.listbox,ownerState:O});return!0===m&&null==v?(0,lM.jsx)(b,HD({},w,{children:(0,lM.jsx)(k,HD({},x,{children:(0,lM.jsx)(xZ,{value:f,children:a})}))})):(0,lM.jsx)(xY,HD({},w,{open:m,anchorEl:v,slots:{root:b},children:(0,lM.jsx)(k,HD({},x,{children:(0,lM.jsx)(xZ,{value:f,children:a})}))}))}));let PZ,EZ=!0,CZ=!1;const TZ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $Z(e){e.metaKey||e.altKey||e.ctrlKey||(EZ=!0)}function QZ(){EZ=!1}function RZ(){"hidden"===this.visibilityState&&CZ&&(EZ=!0)}function AZ(){const e=c.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",$Z,!0),t.addEventListener("mousedown",QZ,!0),t.addEventListener("pointerdown",QZ,!0),t.addEventListener("touchstart",QZ,!0),t.addEventListener("visibilitychange",RZ,!0))}),[]),t=c.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return EZ||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!TZ[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(CZ=!0,window.clearTimeout(PZ),PZ=window.setTimeout((()=>{CZ=!1}),100),t.current=!1,!0)},ref:e}}function jZ(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:i,tabIndex:o,to:a,type:s}=e,l=c.useRef(),[u,d]=c.useState(!1),{isFocusVisibleRef:f,onFocus:h,onBlur:p,ref:m}=AZ(),[g,v]=c.useState(!1);t&&!n&&g&&v(!1),c.useEffect((()=>{f.current=g}),[g,f]);const[O,y]=c.useState(""),b=e=>t=>{var n;g&&t.preventDefault(),null==(n=e.onMouseLeave)||n.call(e,t)},w=e=>t=>{var n,r;l.current||(l.current=t.currentTarget),h(t),!0===f.current&&(v(!0),null==(r=e.onFocusVisible)||r.call(e,t)),null==(n=e.onFocus)||n.call(e,t)},k=()=>{const e=l.current;return"BUTTON"===O||"INPUT"===O&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===O&&(null==e?void 0:e.href)},x=e=>n=>{var r;t||null==(r=e.onClick)||r.call(e,n)},_=e=>n=>{var r;t||(d(!0),document.addEventListener("mouseup",(()=>{d(!1)}),{once:!0})),null==(r=e.onMouseDown)||r.call(e,n)},S=e=>n=>{var r,i;null==(r=e.onKeyDown)||r.call(e,n),n.defaultMuiPrevented||(n.target!==n.currentTarget||k()||" "!==n.key||n.preventDefault(),n.target!==n.currentTarget||" "!==n.key||t||d(!0),n.target!==n.currentTarget||k()||"Enter"!==n.key||t||(null==(i=e.onClick)||i.call(e,n),n.preventDefault()))},P=e=>n=>{var r,i;n.target===n.currentTarget&&d(!1),null==(r=e.onKeyUp)||r.call(e,n),n.target!==n.currentTarget||k()||t||" "!==n.key||n.defaultMuiPrevented||null==(i=e.onClick)||i.call(e,n)},E=eM(c.useCallback((e=>{var t;y(null!=(t=null==e?void 0:e.tagName)?t:"")}),[]),i,m,l),C={};return void 0!==o&&(C.tabIndex=o),"BUTTON"===O?(C.type=null!=s?s:"button",n?C["aria-disabled"]=t:C.disabled=t):""!==O&&(r||a||(C.role="button",C.tabIndex=null!=o?o:0),t&&(C["aria-disabled"]=t,C.tabIndex=n?null!=o?o:0:-1)),{getRootProps:(t={})=>{const n=HD({},iM(e),iM(t)),r=HD({type:s},n,C,t,{onBlur:(i=n,e=>{var t;p(e),!1===f.current&&v(!1),null==(t=i.onBlur)||t.call(i,e)}),onClick:x(n),onFocus:w(n),onKeyDown:S(n),onKeyUp:P(n),onMouseDown:_(n),onMouseLeave:b(n),ref:E});var i;return delete r.onFocusVisible,r},focusVisible:g,setFocusVisible:v,active:u,rootRef:E}}function DZ(e){return RM("MuiMenuButton",e)}AM("MuiMenuButton",["root","active","disabled","expanded"]);const MZ=["children","disabled","label","slots","slotProps","focusableWhenDisabled"],IZ=c.forwardRef((function(e,t){const{children:n,disabled:r=!1,slots:i={},slotProps:o={},focusableWhenDisabled:a=!1}=e,s=KD(e,MZ),{getRootProps:l,open:u,active:d}=function(e={}){const{disabled:t=!1,focusableWhenDisabled:n,rootRef:r}=e,i=c.useContext(XY);if(null===i)throw new Error("useMenuButton: no menu context available.");const{state:o,dispatch:a,registerTrigger:s,popupId:l}=i,{getRootProps:u,rootRef:d,active:f}=jZ({disabled:t,focusableWhenDisabled:n,rootRef:r}),h=eM(d,s),p=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||a({type:GY.toggle,event:t})},m=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),a({type:GY.open,event:t}))},g=(e={})=>({onClick:p(e),onKeyDown:m(e)});return{active:f,getRootProps:(e={})=>{const t=iM(e),n=bZ(u,g);return HD({"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":l},e,t,n(t),{tabIndex:0,ref:h})},open:o.open,rootRef:h}}({disabled:r,focusableWhenDisabled:a,rootRef:t}),f=HD({},e,{open:u,active:d,disabled:r,focusableWhenDisabled:a}),h=(e=>{const{active:t,disabled:n,open:r}=e;return hM({root:["root",n&&"disabled",t&&"active",r&&"expanded"]},fM(DZ))})(f),p=i.root||"button",m=sM({elementType:p,getSlotProps:l,externalForwardedProps:s,externalSlotProps:o.root,additionalProps:{ref:t,type:"button"},ownerState:f,className:h.root});return(0,lM.jsx)(p,HD({},m,{children:n}))}));var zZ=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}))}));zZ.displayName="KeyboardArrowDown";const WZ=UD("Menu",["root","hide-dropdown-icon","hide-label","hide-dropdown-icon-mobile","dropdown","dropdown-start-icon","dropdown-icon","label","menu"]),NZ=({label:e,startIcon:t,variant:n="contained",color:r="primary",size:i="medium",rounded:o=!1,rootClassName:a,iconClassName:s,buttonClassName:l,labelClassName:u,children:d,hideDropdownIcon:f=!1,hideDropdownIconOnMobile:h=!1,hideLabel:p=!1,disabled:m=!1,keepMounted:g=!1,"data-testid":v,"aria-label":O})=>{const y=YD(n,r,i,o),b=(0,c.useMemo)((()=>qD(y,l,WZ.dropdown)),[y,l]);return c.createElement(KY,null,c.createElement("div",{className:qD(WZ.root,p&&WZ["hide-label"],f&&WZ["hide-dropdown-icon"],h&&WZ["hide-dropdown-icon-mobile"],a)},c.createElement(IZ,{"aria-haspopup":"menu","data-testid":v,className:b,disabled:m,"aria-label":O},t?c.createElement(t,{className:qD(WZ["dropdown-start-icon"],s)}):null,p?null:c.createElement("div",{className:qD(WZ.label,u)},e),f?null:c.createElement(zZ,{className:WZ["dropdown-icon"],"aria-hidden":"true"})),c.createElement(SZ,{slotProps:{root:{className:WZ.menu,keepMounted:g}}},d)))},LZ=UD("MenuGroup",["root"]),FZ=({children:e})=>c.createElement("div",{className:LZ.root},e);function UZ(e){return RM("MuiMenuItem",e)}function XZ(e){const{handlePointerOverEvents:t=!1,item:n}=e,r=c.useContext(kZ);if(!r)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:o}=r,{highlighted:a,selected:s,focusable:l}=o(n),u=c.useCallback((e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.defaultPrevented||i({type:rZ.itemClick,item:n,event:t})}),[i,n]),d=c.useCallback((e=>t=>{var r;null==(r=e.onMouseOver)||r.call(e,t),t.defaultPrevented||i({type:rZ.itemHover,item:n,event:t})}),[i,n]);let f;return l&&(f=a?0:-1),{getRootProps:(e={})=>{const n=iM(e);return HD({},e,{onClick:u(n),onPointerOver:t?d(n):void 0,tabIndex:f})},highlighted:a,selected:s}}function qZ(e,t){const n=c.useContext(OZ);if(null===n)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[i,o]=c.useState("function"==typeof e?void 0:e);return pM((()=>{const{id:n,deregister:i}=r(e,t);return o(n),i}),[r,t,e]),{id:i,index:void 0!==i?n.getItemIndex(i):-1,totalItemCount:n.totalSubitemCount}}function BZ(e){return`menu-item-${e.size}`}AM("MuiMenuItem",["root","disabled","focusVisible"]);const VZ={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0},triggerElement:null},YZ=["children","disabled","label","id","slotProps","slots"],ZZ=c.memo(c.forwardRef((function(e,t){var n;const{children:r,disabled:i=!1,label:o,id:a,slotProps:s={},slots:l={}}=e,u=KD(e,YZ),{getRootProps:d,disabled:f,focusVisible:h,highlighted:p}=function(e){var t;const{disabled:n=!1,id:r,rootRef:i,label:o}=e,a=nZ(r),s=c.useRef(null),l=c.useMemo((()=>({disabled:n,id:null!=a?a:"",label:o,ref:s})),[n,a,o]),{dispatch:u}=null!=(t=c.useContext(XY))?t:VZ,{getRootProps:d,highlighted:f}=XZ({item:a}),{index:h,totalItemCount:p}=qZ(null!=a?a:BZ,l),{getRootProps:m,focusVisible:g,rootRef:v}=jZ({disabled:n,focusableWhenDisabled:!0}),O=eM(v,i,s);c.useDebugValue({id:a,highlighted:f,disabled:n,label:o});const y=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||u({type:GY.close,event:t})},b=(e={})=>HD({},e,{onClick:y(e)});function w(e={}){const t=iM(e);return HD({},e,t,bZ(b,bZ(m,d))(t),{id:a,ref:O,role:"menuitem"})}return void 0===a?{getRootProps:w,disabled:!1,focusVisible:g,highlighted:!1,index:-1,totalItemCount:0,rootRef:O}:{getRootProps:w,disabled:n,focusVisible:g,highlighted:f,index:h,totalItemCount:p,rootRef:O}}({id:a,disabled:i,rootRef:t,label:o}),m=HD({},e,{disabled:f,focusVisible:h,highlighted:p}),g=function(e){const{disabled:t,focusVisible:n}=e;return hM({root:["root",t&&"disabled",n&&"focusVisible"]},fM(UZ))}(m),v=null!=(n=l.root)?n:"li",O=sM({elementType:v,getSlotProps:d,externalSlotProps:s.root,externalForwardedProps:u,className:g.root,ownerState:m});return(0,lM.jsx)(v,HD({},O,{children:r}))}))),GZ=c.forwardRef((function(e,t){const{id:n}=e,{contextValue:r,id:i}=function(e){const t=c.useContext(kZ);if(!t)throw new Error("MenuItem: ListContext was not found.");const n=nZ(e),{getItemState:r,dispatch:i}=t;let o;o=null!=n?r(n):{focusable:!0,highlighted:!1,selected:!1};const{highlighted:a,selected:s,focusable:l}=o,u=c.useCallback((e=>{if(e!==n)throw new Error(["Base UI MenuItem: Tried to access the state of another MenuItem.",`itemValue: ${e} | id: ${n}`,"This is unsupported when the MenuItem uses the MenuItemContextStabilizer as a performance optimization."].join("/n"));return{highlighted:a,selected:s,focusable:l}}),[a,s,l,n]);return{contextValue:c.useMemo((()=>({dispatch:i,getItemState:u})),[i,u]),id:n}}(n);return(0,lM.jsx)(kZ.Provider,{value:r,children:(0,lM.jsx)(ZZ,HD({},e,{id:i,ref:t}))})})),HZ=UD("MenuItemLink",["root","active","content","start-icon","end-icon"]),KZ=({href:e,children:t,className:n,active:r=!1,startIcon:i,endIcon:o})=>c.createElement(LT,{to:e},c.createElement(GZ,{slotProps:{root:{className:qD(n,HZ.root,r&&HZ.active)}}},c.createElement("div",{className:HZ.content},i?c.createElement(i,{className:HZ["start-icon"]}):null,t),o?c.createElement(o,{className:HZ["end-icon"]}):null));function JZ(){return JZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const t=LD(),n=pz(eI),r=(0,c.useMemo)((()=>Object.values(n).filter((e=>{var t;return"folder"in e&&null!==(t=e.create)&&void 0!==t&&t}))),[n]);return c.createElement(NZ,JZ({label:t("app.header.quickAdd"),startIcon:DN},e,{"aria-label":"create entry options dropdown"}),c.createElement(FZ,null,r.map((e=>c.createElement(KZ,{key:e.name,href:yo(e.name)},e.label_singular||e.label)))))},tG=UD("BottomNavigation",["root","menu-button","menu-button-icon","add-button","add-button-icon","quick-create","quick-create-button","site-url-button","site-url-button-icon"]),nG=({collection:e})=>{const t=re(),n=zN(e,(0,c.useMemo)((()=>t["*"]),[t])),r=pz(mC),[i,o]=(0,c.useState)(!1),a=(0,c.useCallback)((()=>{o((e=>!e))}),[]);return c.createElement(c.Fragment,null,c.createElement("div",{className:tG.root},c.createElement(FN,{icon:MN,variant:"text",onClick:a,rootClassName:tG["menu-button"],iconClassName:tG["menu-button-icon"],"aria-label":"toggle menu"}),Ne(n)?c.createElement(FN,{icon:DN,to:n,variant:"text",rootClassName:tG["add-button"],iconClassName:tG["add-button-icon"],"aria-label":"create entry"}):c.createElement(eG,{key:"quick-create",variant:"text",rootClassName:tG["quick-create"],buttonClassName:tG["quick-create-button"],hideDropdownIcon:!0,hideLabel:!0}),r?c.createElement(FN,{icon:IN,variant:"text",href:r,rootClassName:tG["site-url-button"],iconClassName:tG["site-url-button-icon"],"aria-label":"go to site"}):null),c.createElement(UY,{mobileOpen:i,onMobileOpenToggle:a}))};function rG(e){return{type:pQ,payload:{status:e}}}const iG=["styles"];function oG(){return oG=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var n;const[r]=XT(),i=r.get("backTo"),o=(0,c.useMemo)((()=>{const t=e.filter((e=>!e.editor));if(0!==t.length)return t[t.length-1]}),[e]);return c.createElement("div",{className:dG.root},c.createElement("div",{className:dG["links-wrapper"]},c.createElement("div",{className:dG.links},e.map(((t,n)=>t.name?c.createElement(c.Fragment,{key:`breadcrumb-${n}`},n>0?c.createElement("span",{key:`separator-${n}`},">"):null,t.to?c.createElement(NT,{key:`link-${n}`,"data-testid":"breadcrumb-link",className:qD(dG["breadcrumb-link"],n+1===e.length&&dG["breadcrumb-truncated"]),to:t.to},t.name):c.createElement("span",{key:`text-${n}`,className:qD(dG["breadcrumb-text"],n+1===e.length&&dG["breadcrumb-truncated"])},t.name)):null)))),o?o.to||i?c.createElement(NT,{key:"final-non-editor-breadcrumb-link",className:dG["mobile-current-breadcrumb-link"],"data-testid":"breadcrumb-link",to:i||o.to},t?c.createElement(cG,{className:dG["mobile-backlink"]}):null,o.name):c.createElement("div",{key:"final-non-editor-breadcrumb-text",className:dG["mobile-current-breadcrumb-text"]},null!==(n=null==o?void 0:o.name)&&void 0!==n?n:""):null)};var hG=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}))}));hG.displayName="Logout";var pG=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10a2.5 2.5 0 0 0 2.5-2.5c0-.61-.23-1.2-.64-1.67a.528.528 0 0 1-.13-.33c0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9zm5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9zM5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5zm6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5z"}))}));pG.displayName="Palette";var mG=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}))}));mG.displayName="Person";const gG=e=>e.auth.user,vG=UD("MenuItemButton",["root","disabled","active","default","warning","error","content","start-icon","end-icon"]),OG=({active:e=!1,onClick:t,children:n,rootClassName:r,contentClassName:i,disabled:o=!1,startIcon:a,endIcon:s,color:l="default","data-testid":u})=>c.createElement(GZ,{slotProps:{root:{className:qD(r,vG.root,o&&vG.disabled,e&&vG.active,"default"===l&&vG.default,"warning"===l&&vG.warning,"error"===l&&vG.error)}},onClick:t,disabled:o,"data-testid":u},c.createElement("div",{className:qD(i,vG.content)},a?c.createElement(a,{className:vG["start-icon"]}):null,n),s?c.createElement(s,{className:vG["end-icon"]}):null);var yG=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))}));function bG(e){return e.globalUI.isFetching}function wG(e){return e.globalUI.theme}function kG(e){return e.globalUI.useOpenAuthoring}yG.displayName="Close";const xG={name:"Dark",common:{gray:"#334155"},text:{primary:"#fff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},background:{main:"#1e293b",light:"#2c3b55",dark:"#0f172a",divider:"#2c3b55"},scrollbar:{main:"#1e293b",light:"#2c3b55"},primary:{main:"#339ef4",light:"#6bb9f7",dark:"#0c82e0",contrastColor:"#ffffff"},error:{main:"#f44336",light:"#e57373",dark:"#d32f2f",contrastColor:"#ffffff"},warning:{main:"#ffa726",light:"#ffb74d",dark:"#f57c00",contrastColor:"#ffffff"},info:{main:"#29b6f6",light:"#4fc3f7",dark:"#0288d1",contrastColor:"#ffffff"},success:{main:"#66bb6a",light:"#81c784",dark:"#388e3c",contrastColor:"#ffffff"},codemirror:{theme:"dark"}},_G={name:"Light",common:{gray:"#d1d5db"},text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},background:{main:"#ffffff",light:"#ffffff",dark:"#f8fafc",divider:"#94a3b8"},scrollbar:{main:"rgba(100, 116, 139, .25)",light:"rgba(100, 116, 139, .25)"},primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0",contrastColor:"#ffffff"},error:{main:"#d32f2f",light:"#ef5350",dark:"#c62828",contrastColor:"#ffffff"},warning:{main:"#ed6c02",light:"#ff9800",dark:"#e65100",contrastColor:"#ffffff"},info:{main:"#0288d1",light:"#03a9f4",dark:"#01579b",contrastColor:"#ffffff"},success:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20",contrastColor:"#ffffff"},codemirror:{theme:"light"}},SG=[xG,_G];function PG(e,t,n){return e||(t?SX(t,.125):n)}function EG(e,t,n){return e||(t?EX(t,.125):n)}function CG(e,t){var n,r;return{main:null!==(n=null==e?void 0:e.main)&&void 0!==n?n:t.main,light:EG(null==e?void 0:e.light,null==e?void 0:e.main,t.light),dark:PG(null==e?void 0:e.dark,null==e?void 0:e.main,t.dark),contrastColor:null!==(r=null==e?void 0:e.contrastColor)&&void 0!==r?r:t.contrastColor}}function TG(){var e,t,n;const r=pz(dC);return(0,c.useMemo)((()=>{var e,t,n,i;const o=[];o.push(...[...null!==(e=null==r||null===(t=r.theme)||void 0===t?void 0:t.themes)&&void 0!==e?e:[],...NE()].map((e=>"extends"in e?function(e){var t,n,r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,O,y,b,w,k;const x="light"===e.extends?_G:xG;return{name:e.name,common:{gray:null!==(t=null===(n=e.common)||void 0===n?void 0:n.gray)&&void 0!==t?t:x.common.gray},text:{primary:null!==(r=null===(i=e.text)||void 0===i?void 0:i.primary)&&void 0!==r?r:x.text.primary,secondary:null!==(o=null===(a=e.text)||void 0===a?void 0:a.secondary)&&void 0!==o?o:x.text.secondary,disabled:null!==(s=null===(l=e.text)||void 0===l?void 0:l.disabled)&&void 0!==s?s:x.text.disabled},background:{main:null!==(u=null===(c=e.background)||void 0===c?void 0:c.main)&&void 0!==u?u:x.background.main,light:EG(null===(d=e.background)||void 0===d?void 0:d.light,null===(f=e.background)||void 0===f?void 0:f.main,x.background.light),dark:PG(null===(h=e.background)||void 0===h?void 0:h.dark,null===(p=e.background)||void 0===p?void 0:p.main,x.background.dark),divider:null!==(m=null===(g=e.background)||void 0===g?void 0:g.divider)&&void 0!==m?m:x.background.divider},scrollbar:{main:null!==(v=null===(O=e.scrollbar)||void 0===O?void 0:O.main)&&void 0!==v?v:x.scrollbar.main,light:EG(null===(y=e.scrollbar)||void 0===y?void 0:y.light,null===(b=e.scrollbar)||void 0===b?void 0:b.main,x.scrollbar.light)},primary:CG(e.primary,x.primary),error:CG(e.error,x.error),warning:CG(e.warning,x.warning),info:CG(e.info,x.info),success:CG(e.success,x.success),codemirror:{theme:null!==(w=null===(k=e.codemirror)||void 0===k?void 0:k.theme)&&void 0!==w?w:x.codemirror.theme}}}(e):e))),0!==o.length&&!1===(null==r||null===(n=r.theme)||void 0===n?void 0:n.include_built_in_themes)||o.push(...SG);const a=null==r||null===(i=r.theme)||void 0===i?void 0:i.default_theme;return Ne(a)&&o.sort(((e,t)=>e.name.toLowerCase()===a.toLowerCase()?-1:t.name.toLowerCase()===a.toLowerCase()?1:0)),o}),[null==r||null===(e=r.theme)||void 0===e?void 0:e.default_theme,null==r||null===(t=r.theme)||void 0===t?void 0:t.include_built_in_themes,null==r||null===(n=r.theme)||void 0===n?void 0:n.themes])}const $G=UD("Card",["root","header","content","media","link-action","button-action"]),QG=({children:e,className:t,title:n})=>c.createElement("div",{className:qD($G.root,t),title:n},e),RG=["children","className"],AG=e=>{let{children:t,className:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const e=null===r?{...n}:function(e,t){return"function"==typeof t?t(e):{...e,...t}}(r,n);return null!=e&&(e[MG]=null!==r),e}),[n,r]);return(0,lM.jsx)(jG.Provider,{value:i,children:t})},zG={};function WG(e,t,n,r=!1){return c.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?{...t,[e]:o}:o;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}}),[e,t,n,r])}const NG=function(e){const{children:t,theme:n,themeId:r}=e,i=Hq(zG),o=DG()||zG,a=WG(r,i,n),s=WG(r,o,n,!0),l="rtl"===(r?a[r]:a).direction;return(0,lM.jsx)(IG,{theme:s,children:(0,lM.jsx)(xF.Provider,{value:a,children:(0,lM.jsx)(YN,{value:l,children:(0,lM.jsx)(Qq,{value:r?a[r].components:a.components,children:t})})})})};function LG({theme:e,...t}){const n=kq in e?e[kq]:void 0;return(0,lM.jsx)(NG,{...t,themeId:n?kq:void 0,theme:n||e})}var FG=kF((function(e,t){var n=e.styles,r=vF([n],void 0,c.useContext(xF)),i=c.useRef();return bF((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}}),[t]),bF((function(){var e=i.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&SF(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function UG(){for(var e=arguments.length,t=new Array(e),n=0;n{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,lM.jsx)(FG,{styles:r})}const BG="mode",VG="color-scheme",YG="data-color-scheme";function ZG(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function GG(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function HG(e,t){if("undefined"==typeof window)return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}const KG="mui-color-scheme",JG="light",eH="dark",tH="mui-mode",{CssVarsProvider:nH,useColorScheme:rH,getInitColorSchemeScript:iH}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=BG,colorSchemeStorageKey:i=VG,disableTransitionOnChange:o=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=c.createContext(void 0),d={},f={},h="string"==typeof a?a:a.light,p="string"==typeof a?a:a.dark;return{CssVarsProvider:function(e){const{children:l,theme:h,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:g=o,storageWindow:v=("undefined"==typeof window?void 0:window),documentNode:O=("undefined"==typeof document?void 0:document),colorSchemeNode:y=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:b=!1,disableStyleSheetGeneration:w=!1,defaultMode:k="system",noSsr:x}=e,_=c.useRef(!1),S=DG(),P=c.useContext(u),E=!!P&&!b,C=c.useMemo((()=>h||("function"==typeof n?n():n)),[h]),T=C[t],$=T||C,{colorSchemes:Q=d,components:R=f,cssVarPrefix:A}=$,j=Object.keys(Q).filter((e=>!!Q[e])).join(","),D=c.useMemo((()=>j.split(",")),[j]),M="string"==typeof a?a:a.light,I="string"==typeof a?a:a.dark,z=Q[M]&&Q[I]?k:Q[$.defaultColorScheme]?.palette?.mode||$.palette?.mode,{mode:W,setMode:N,systemMode:L,lightColorScheme:F,darkColorScheme:U,colorScheme:X,setColorScheme:q}=function(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:o=BG,colorSchemeStorageKey:a=VG,storageWindow:s=("undefined"==typeof window?void 0:window),noSsr:l=!1}=e,u=i.join(","),d=i.length>1,[f,h]=c.useState((()=>{const e=HG(o,t),i=HG(`${a}-light`,n),s=HG(`${a}-dark`,r);return{mode:e,systemMode:ZG(e),lightColorScheme:i,darkColorScheme:s}})),[p,m]=c.useState(l||!d);c.useEffect((()=>{m(!0)}),[]);const g=function(e){return GG(e,(t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0))}(f),v=c.useCallback((e=>{h((n=>{if(e===n.mode)return n;const r=e??t;try{localStorage.setItem(o,r)}catch{}return{...n,mode:r,systemMode:ZG(r)}}))}),[o,t]),O=c.useCallback((e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):h((t=>{const n={...t};return GG(t,(t=>{try{localStorage.setItem(`${a}-${t}`,e)}catch{}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)})),n})):h((t=>{const i={...t},o=null===e.light?n:e.light,s=null===e.dark?r:e.dark;if(o)if(u.includes(o)){i.lightColorScheme=o;try{localStorage.setItem(`${a}-light`,o)}catch(e){}}else console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`);if(s)if(u.includes(s)){i.darkColorScheme=s;try{localStorage.setItem(`${a}-dark`,s)}catch(e){}}else console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`);return i})):h((e=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...e,lightColorScheme:n,darkColorScheme:r}}))}),[u,a,n,r]),y=c.useCallback((e=>{"system"===f.mode&&h((t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}}))}),[f.mode]),b=c.useRef(y);return b.current=y,c.useEffect((()=>{if("function"!=typeof window.matchMedia||!d)return;const e=(...e)=>b.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}}),[d]),c.useEffect((()=>{if(s&&d){const e=e=>{const n=e.newValue;"string"!=typeof e.key||!e.key.startsWith(a)||n&&!u.match(n)||(e.key.endsWith("light")&&O({light:n}),e.key.endsWith("dark")&&O({dark:n})),e.key!==o||n&&!["light","dark","system"].includes(n)||v(n||t)};return s.addEventListener("storage",e),()=>{s.removeEventListener("storage",e)}}}),[O,v,o,a,u,t,s,d]),{...f,mode:p?f.mode:void 0,systemMode:p?f.systemMode:void 0,colorScheme:p?g:void 0,setMode:v,setColorScheme:O}}({supportedColorSchemes:D,defaultLightColorScheme:M,defaultDarkColorScheme:I,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:z,storageWindow:v,noSsr:x});let B=W,V=X;E&&(B=P.mode,V=P.colorScheme);const Y=c.useMemo((()=>{const e=V||$.defaultColorScheme,t=$.generateThemeVars?.()||$.vars,n={...$,components:R,colorSchemes:Q,cssVarPrefix:A,vars:t};if("function"==typeof n.generateSpacing&&(n.spacing=n.generateSpacing()),e){const t=Q[e];t&&"object"==typeof t&&Object.keys(t).forEach((e=>{t[e]&&"object"==typeof t[e]?n[e]={...n[e],...t[e]}:n[e]=t[e]}))}return s?s(n):n}),[$,V,R,Q,A]),Z=$.colorSchemeSelector;c.useEffect((()=>{if(V&&y&&Z&&"media"!==Z){const e=Z;let t=Z;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))y.classList.remove(...D.map((e=>t.substring(1).replace("%s",e)))),y.classList.add(t.substring(1).replace("%s",V));else{const e=t.replace("%s",V).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||D.forEach((e=>{y.removeAttribute(t.replace(V,e))})),y.setAttribute(t,n?n.replace(/"|'/g,""):"")}else y.setAttribute(t,V)}}}),[V,Z,y,D]),c.useEffect((()=>{let e;if(g&&_.current&&O){const t=O.createElement("style");t.appendChild(O.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),O.head.appendChild(t),window.getComputedStyle(O.body),e=setTimeout((()=>{O.head.removeChild(t)}),1)}return()=>{clearTimeout(e)}}),[V,g,O]),c.useEffect((()=>(_.current=!0,()=>{_.current=!1})),[]);const G=c.useMemo((()=>({allColorSchemes:D,colorScheme:V,darkColorScheme:U,lightColorScheme:F,mode:B,setColorScheme:q,setMode:N,systemMode:L})),[D,V,U,F,B,q,N,L,Y.colorSchemeSelector]);let H=!0;(w||!1===$.cssVariables||E&&S?.cssVarPrefix===A)&&(H=!1);const K=(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(NG,{themeId:T?t:void 0,theme:Y,children:l}),H&&(0,lM.jsx)(qG,{styles:Y.generateStyleSheets?.()||[]})]});return E?K:(0,lM.jsx)(u.Provider,{value:G,children:K})},useColorScheme:()=>c.useContext(u)||l,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=BG,colorSchemeStorageKey:o=VG,attribute:a=YG,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let u="",c=a;if("class"===a&&(c=".%s"),"data"===a&&(c="[data-%s]"),c.startsWith(".")){const e=c.substring(1);u+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${s}.classList.add('${e}'.replace('%s', colorScheme));`}const d=c.match(/\[([^\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(u+=`${s}.removeAttribute('${e}'.replace('%s', light));\n ${s}.removeAttribute('${e}'.replace('%s', dark));`),u+=`\n ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else u+=`${s}.setAttribute('${c}', colorScheme);`;return(0,lM.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?l:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${i}') || '${t}';\n const dark = localStorage.getItem('${o}-dark') || '${r}';\n const light = localStorage.getItem('${o}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${u}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:i,defaultLightColorScheme:h,defaultDarkColorScheme:p,modeStorageKey:r,...e})}}({themeId:kq,theme:()=>bq({cssVariables:!0}),colorSchemeStorageKey:KG,modeStorageKey:tH,defaultColorScheme:{light:JG,dark:eH},resolveTheme:e=>{const t={...e,typography:HX(e.palette,e.typography)};return t.unstable_sx=function(e){return aX({sx:e,theme:this})},t}}),oH=nH;function aH({theme:e,...t}){return"function"==typeof e?(0,lM.jsx)(LG,{theme:e,...t}):"colorSchemes"in(kq in e?e[kq]:e)?(0,lM.jsx)(oH,{theme:e,...t}):(0,lM.jsx)(LG,{theme:e,...t})}const sH=({element:e,theme:t,children:n})=>{(0,c.useEffect)((()=>{e&&(e.style.setProperty("--text-primary",t.text.primary),e.style.setProperty("--text-secondary",t.text.secondary),e.style.setProperty("--text-disabled",t.text.disabled),e.style.setProperty("--background-main",t.background.main),e.style.setProperty("--background-light",t.background.light),e.style.setProperty("--background-dark",t.background.dark),e.style.setProperty("--background-divider",t.background.divider),e.style.setProperty("--scrollbar-main",t.scrollbar.main),e.style.setProperty("--scrollbar-light",t.scrollbar.light),e.style.setProperty("--common-gray",t.common.gray),e.style.setProperty("--primary-main",t.primary.main),e.style.setProperty("--primary-light",t.primary.light),e.style.setProperty("--primary-dark",t.primary.dark),e.style.setProperty("--primary-contrast-color",t.primary.contrastColor),e.style.setProperty("--error-main",t.error.main),e.style.setProperty("--error-light",t.error.light),e.style.setProperty("--error-dark",t.error.dark),e.style.setProperty("--error-contrast-color",t.error.contrastColor),e.style.setProperty("--warning-main",t.warning.main),e.style.setProperty("--warning-light",t.warning.light),e.style.setProperty("--warning-dark",t.warning.dark),e.style.setProperty("--warning-contrast-color",t.warning.contrastColor),e.style.setProperty("--info-main",t.info.main),e.style.setProperty("--info-light",t.info.light),e.style.setProperty("--info-dark",t.info.dark),e.style.setProperty("--info-contrast-color",t.info.contrastColor),e.style.setProperty("--success-main",t.success.main),e.style.setProperty("--success-light",t.success.light),e.style.setProperty("--success-dark",t.success.dark),e.style.setProperty("--success-contrast-color",t.success.contrastColor))}),[e,t]);const r=(0,c.useMemo)((()=>bq({palette:{primary:{main:t.primary.main,light:t.primary.light,dark:t.primary.dark,contrastText:t.primary.contrastColor},secondary:{main:t.common.gray,light:EX(t.common.gray,.125),dark:t.primary.main,contrastText:t.text.primary},text:{primary:t.text.primary,secondary:t.text.secondary,disabled:t.text.disabled},action:{active:t.text.primary},background:{default:t.background.dark,paper:t.background.main},error:{main:t.error.main,light:t.error.light,dark:t.error.dark,contrastText:t.error.contrastColor},warning:{main:t.warning.main,light:t.warning.light,dark:t.warning.dark,contrastText:t.warning.contrastColor},info:{main:t.info.main,light:t.info.light,dark:t.info.dark,contrastText:t.info.contrastColor},success:{main:t.success.main,light:t.success.light,dark:t.success.dark,contrastText:t.success.contrastColor}}})),[t]);return c.createElement(aH,{theme:r},n)},lH=UD("ThemeCard",["root","active","button","content","preview","preview-appbar","preview-logo-wrapper","preview-logo","preview-custom-logo","preview-breadcrumbs","preview-appbar-actions","preview-avatar","preview-content","preview-primary-button","preview-secondary-button","preview-text","preview-sidebar","preview-main","preview-main-actions","preview-error-button","preview-warning-button","preview-info-button","preview-success-button","preview-card","preview-collection-row","preview-collection-highlight"]),uH=({theme:e,onClick:t})=>{const[n,r]=(0,c.useState)(),i=function(e){const t=(0,c.useRef)(null),n=(0,c.useCallback)((n=>{n&&e(n),t.current=n}),[e]);return n}(r),o=pz(wG),a=pz(dC),s=(0,c.useCallback)((()=>{t(e.name)}),[t,e.name]);return c.createElement(sH,{theme:e,element:n},c.createElement(QG,{className:qD(lH.root,e.name.toLowerCase()===o&&lH.active)},c.createElement(AG,{onClick:s,className:lH.button},c.createElement("div",{ref:i,className:lH.preview},c.createElement("div",{className:lH["preview-appbar"]},c.createElement("div",{className:lH["preview-breadcrumbs"]},c.createElement("div",{className:lH["preview-logo-wrapper"]},null!=a&&a.logo_url?c.createElement("div",{className:qD(lH["preview-logo"],lH["preview-custom-logo"]),style:{backgroundImage:`url('${a.logo_url}')`}}):c.createElement(aG,{className:lH["preview-logo"]})),c.createElement("div",{className:lH["preview-text"]}),c.createElement("div",{className:lH["preview-text"]})),c.createElement("div",{className:lH["preview-appbar-actions"]},c.createElement("div",{className:lH["preview-primary-button"]}),c.createElement("div",{className:lH["preview-avatar"]}))),c.createElement("div",{className:lH["preview-content"]},c.createElement("div",{className:lH["preview-sidebar"]},c.createElement("div",{className:lH["preview-primary-button"]}),c.createElement("div",{className:lH["preview-secondary-button"]}),c.createElement("div",{className:lH["preview-secondary-button"]}),c.createElement("div",{className:lH["preview-secondary-button"]})),c.createElement("div",{className:lH["preview-main"]},c.createElement("div",{className:lH["preview-main-actions"]},c.createElement("div",{className:lH["preview-error-button"]}),c.createElement("div",{className:lH["preview-warning-button"]}),c.createElement("div",{className:lH["preview-info-button"]}),c.createElement("div",{className:lH["preview-success-button"]})),c.createElement("div",{className:lH["preview-card"]},c.createElement("div",{className:lH["preview-collection-row"]}),c.createElement("div",{className:qD(lH["preview-collection-row"],lH["preview-collection-highlight"])}),c.createElement("div",{className:lH["preview-collection-row"]}),c.createElement("div",{className:lH["preview-collection-row"]}),c.createElement("div",{className:lH["preview-collection-row"]}))))),c.createElement("div",{className:lH.content},e.name))))},cH=UD("ThemeSelectorDialog",["root","header","title","grid"]),dH=({open:e,onClose:t})=>{const n=hz(),r=LD(),i=pz(wG),o=TG(),a=(0,c.useCallback)((e=>{n(DA(e))}),[n]);return c.createElement(FM,{open:e,onClose:t,className:cH.root},c.createElement("div",{className:cH.header},c.createElement("h2",{className:cH.title},r("ui.settingsDropdown.theme")),c.createElement(FN,{icon:yG,variant:"text",onClick:t,"aria-label":"close"})),c.createElement("div",{className:cH.grid},o.map(((e,t)=>c.createElement(uH,{key:t,theme:e,currentTheme:i,onClick:a})))))},fH=UD("SettingsDropdown",["root","in-editor","avatar-image","avatar-icon","sr-label"]),hH=({imageUrl:e})=>e?c.createElement("img",{className:fH["avatar-image"],src:e}):c.createElement(mG,{className:fH["avatar-icon"]}),pH=({inEditor:e})=>{const t=LD(),n=hz(),r=pz(gG),[i,o]=(0,c.useState)(!1),a=(0,c.useCallback)((()=>{o(!0)}),[]),s=(0,c.useCallback)((()=>{o(!1)}),[]),l=(0,c.useCallback)((()=>{n(WA())}),[n]);return c.createElement(c.Fragment,null,c.createElement(NZ,{label:c.createElement(c.Fragment,null,c.createElement("span",{className:fH["sr-label"]},"Open user menu"),c.createElement(hH,{imageUrl:null==r?void 0:r.avatar_url})),color:"secondary",variant:"outlined",rounded:!(null!=r&&r.avatar_url)||"no-padding",hideDropdownIcon:!0,rootClassName:qD(fH.root,e&&fH["in-editor"]),"aria-label":"account options dropdown"},c.createElement(FZ,null,c.createElement(OG,{key:"dark-mode",onClick:a,startIcon:pG},t("ui.settingsDropdown.theme"))),c.createElement(FZ,null,c.createElement(OG,{key:"log-out",onClick:l,startIcon:hG},t("ui.settingsDropdown.logOut")))),c.createElement(dH,{open:i,onClose:s}))},mH=UD("Navbar",["root","in-editor","content-wrapper","content","breadcrumbs","logo-wrapper","logo","custom-logo","actions","site-url","site-url-mobile","site-url-label","site-url-icon","quick-create"]),gH=({showQuickCreate:e=!1,navbarActions:t=null,breadcrumbs:n=[]})=>{const r=hz(),i=pz(dC),o=pz(mC);(0,c.useEffect)((()=>{const e=setInterval((()=>{r((async(e,t)=>{try{const n=t(),r=n.config.config;if(n.status.isFetching||!r)return;e({type:hQ});const i=DC(r),o=await i.status(),a="ui.toast.onBackendDown",s=n.snackbar.messages.filter((e=>"string"!=typeof e.message&&e.message.key===a));if(!1===o.api.status)return 0===s.length&&e($A({type:"error",message:{key:"ui.toast.onBackendDown",options:{details:o.api.statusPage}}})),e(rG(o));if(!0===o.api.status&&s.length>0&&s.forEach((t=>{e(QA(t.id))})),!1===o.auth.status){const t="ui.toast.onLoggedOut",r=n.snackbar.messages.find((e=>"string"!=typeof e.message&&e.message.key===t));r||e($A({type:"error",message:{key:"ui.toast.onLoggedOut"}}))}e(rG(o))}catch(t){console.error(t),t instanceof Error&&e(function(e){return{type:mQ,payload:{error:e}}}(t))}}))}),3e5);return()=>{clearInterval(e)}}),[r]);const a=(0,c.useMemo)((()=>Boolean(n.length>0&&n[n.length-1].editor)),[n]);return c.createElement("nav",{className:qD(mH.root,a&&mH["in-editor"])},c.createElement("div",{key:"nav",className:mH["content-wrapper"]},c.createElement("div",{className:mH.content},c.createElement("div",{className:mH.breadcrumbs},c.createElement("div",{className:mH["logo-wrapper"]},null!=i&&i.logo_url?i.logo_link?c.createElement("a",{href:i.logo_link},c.createElement("div",{className:qD(mH.logo,mH["custom-logo"]),style:{backgroundImage:`url('${i.logo_url}')`}})):c.createElement("div",{className:qD(mH.logo,mH["custom-logo"]),style:{backgroundImage:`url('${i.logo_url}')`}}):null!=i&&i.logo_link?c.createElement("a",{href:i.logo_link},c.createElement(aG,{className:mH.logo})):c.createElement(aG,{className:mH.logo})),c.createElement(fG,{breadcrumbs:n,inEditor:a})),c.createElement("div",{className:mH.actions},o?c.createElement(c.Fragment,null,c.createElement(GD,{variant:"text",className:mH["site-url"],href:o},c.createElement("div",{className:mH["site-url-label"]},o),c.createElement(IN,{className:mH["site-url-icon"]})),c.createElement(FN,{icon:IN,variant:"text",href:o,title:o,rootClassName:mH["site-url-mobile"],iconClassName:mH["site-url-icon"],"aria-label":"go to site"})):null,e?c.createElement(eG,{key:"quick-create",rootClassName:mH["quick-create"]}):null,t,c.createElement(pH,{inEditor:a})))))},vH=()=>c.createElement("aside",{className:WY.root,"aria-label":"sidebar"},c.createElement(LY,null)),OH=UD("MainView",["root","body","show-left-nav","no-margin","no-scroll"]);yD().config({barColors:{0:"#000","1.0":"#000"},shadowBlur:0,barThickness:2});const yH=({children:e,breadcrumbs:t,showQuickCreate:n=!1,showLeftNav:r=!1,noMargin:i=!1,noScroll:o=!1,navbarActions:a,collection:s})=>c.createElement(c.Fragment,null,c.createElement(gH,{breadcrumbs:t,showQuickCreate:n,navbarActions:a}),c.createElement("div",{className:OH.root},r?c.createElement(vH,null):null,c.createElement("div",{id:"main-view",className:qD(OH.body,r&&OH["show-left-nav"],i&&OH["no-margin"],o&&OH["no-scroll"],"CMS_Scrollbar_root")},e)),c.createElement(nG,{collection:s})),bH=UD("Collection",["root","content","search-query","description","description-card","controls","header-wrapper","header","header-icon","header-label","new-entry-button","new-entry-button-text"]);var wH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),c.createElement("path",{d:"M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"}))}));wH.displayName="Grid";var kH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 8H5c-1.1 0-2-.9-2-2s.9-2 2-2h14c1.1 0 2 .9 2 2s-.9 2-2 2zm0 2H5c-1.1 0-2 .9-2 2s.9 2 2 2h14c1.1 0 2-.9 2-2s-.9-2-2-2zm0 6H5c-1.1 0-2 .9-2 2s.9 2 2 2h14c1.1 0 2-.9 2-2s-.9-2-2-2z"}))}));kH.displayName="TableRows";const xH="table",_H="grid",SH=[xH,_H],PH="compact",EH=UD("ViewStyleControl",["root","button","icon"]),CH=({viewStyle:e,onChangeViewStyle:t})=>c.createElement("div",{className:EH.root},c.createElement(FN,{icon:kH,color:e===xH?"primary":"secondary",variant:"text",rootClassName:EH.button,"aria-label":"table view option",onClick:()=>t(xH)}),c.createElement(FN,{icon:wH,color:e===_H?"primary":"secondary",variant:"text",rootClassName:EH.button,"aria-label":"grid view option",onClick:()=>t(_H)}));var TH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}))}));TH.displayName="Check";const $H=UD("Checkbox",["root","sm","md","disabled","input","custom-input","checkmark"]),QH=({id:e,size:t="md",checked:n,disabled:r=!1,readOnly:i=!1,onChange:o})=>{const a=(0,c.useRef)(null),s=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault()}),[]),l=(0,c.useCallback)((e=>{var t;"Enter"!==e.code&&"Space"!==e.code||(e.stopPropagation(),e.preventDefault(),null===(t=a.current)||void 0===t||t.click())}),[]),u=(0,c.useCallback)((e=>{var t;e.stopPropagation(),e.preventDefault(),null===(t=a.current)||void 0===t||t.click()}),[]);return c.createElement("label",{className:qD($H.root,$H[t],r&&$H.disabled),onClick:s,onKeyDown:l},c.createElement("input",{id:e,"data-testid":"switch-input",ref:a,type:"checkbox",checked:n,className:$H.input,disabled:r,readOnly:i,onChange:o,onClick:s,onKeyDown:l}),c.createElement("div",{className:$H["custom-input"],onClick:u,onKeyDown:l},n?c.createElement(TH,{className:$H.checkmark,onClick:u,onKeyDown:l}):null))},RH=UD("FilterControl",["root","filter","filter-label","list-root","list-label","list-filter","list-filter-label"]),AH=({filter:e={},viewFilters:t=[],variant:n="menu",onFilterClick:r})=>{const i=LD(),o=(0,c.useMemo)((()=>Object.keys(e).some((t=>{var n;return null===(n=e[t])||void 0===n?void 0:n.active}))),[e]),a=(0,c.useCallback)((e=>t=>{t.stopPropagation(),t.preventDefault(),null==r||r(e)}),[r]);return"list"===n?c.createElement("div",{key:"filter-by-list",className:RH["list-root"]},c.createElement("h3",{className:RH["list-label"]},i("collection.collectionTop.filterBy")),t.map((t=>{var n,r;const i=null!==(n=Boolean(t.id&&(null===(r=e[null==t?void 0:t.id])||void 0===r?void 0:r.active)))&&void 0!==n&&n,o=`filter-list-label-${t.label}`;return c.createElement("div",{key:t.id,className:RH["list-filter"],onClick:a(t)},c.createElement("input",{key:`${o}-${i}`,id:o,type:"checkbox",value:"",checked:i,readOnly:!0}),c.createElement("label",{className:RH["list-filter-label"]},t.label))}))):c.createElement(NZ,{key:"filter-by-menu",label:i("collection.collectionTop.filterBy"),color:o?"primary":"secondary",variant:o?"contained":"outlined",rootClassName:RH.root,"aria-label":"filter options dropdown","data-testid":"filter-by"},c.createElement(FZ,null,t.map((t=>{var n,r;const i=null!==(n=Boolean(t.id&&(null===(r=e[null==t?void 0:t.id])||void 0===r?void 0:r.active)))&&void 0!==n&&n,o=`filter-list-label-${t.label}`;return c.createElement(OG,{key:t.id,onClick:a(t),rootClassName:RH.filter,"data-testid":`filter-by-option-${t.label}`},c.createElement(QH,{key:`${o}-${i}`,id:o,checked:i,size:"sm",readOnly:!0}),c.createElement("label",{className:RH["filter-label"]},t.label))}))))},jH=UD("GroupControl",["root","option","list","list-label","list-option","list-option-label","list-option-checked-icon","list-option-not-checked"]),DH=({viewGroups:e=[],group:t={},variant:n="menu",onGroupClick:r})=>{const i=LD(),o=(0,c.useMemo)((()=>Object.values(t).find((e=>!0===e.active))),[t]),a=(0,c.useCallback)((e=>t=>{t.stopPropagation(),t.preventDefault(),null==r||r(e)}),[r]);return"list"===n?c.createElement("div",{key:"filter-by-list",className:jH.list},c.createElement("h3",{className:jH["list-label"]},i("collection.collectionTop.groupBy")),e.map((e=>{var n,r;const i=null!==(n=Boolean(e.id&&(null===(r=t[null==e?void 0:e.id])||void 0===r?void 0:r.active)))&&void 0!==n&&n;return c.createElement("div",{key:e.id,className:jH["list-option"],onClick:a(e)},c.createElement("label",{className:jH["list-option-label"]},e.label),i?c.createElement(TH,{key:"checkmark",className:jH["list-option-checked-icon"]}):c.createElement("div",{key:"not-checked",className:jH["list-option-not-checked"]}))}))):c.createElement(NZ,{label:i("collection.collectionTop.groupBy"),color:o?"primary":"secondary",variant:o?"contained":"outlined",rootClassName:jH.root,"aria-label":"group by options dropdown","data-testid":"group-by"},c.createElement(FZ,null,e.map((e=>c.createElement(OG,{key:e.id,onClick:()=>null==r?void 0:r(e),endIcon:e.id===(null==o?void 0:o.id)?TH:void 0,rootClassName:jH.option,"data-testid":`group-by-option-${e.label}`},e.label)))))};var MH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}))}));MH.displayName="FilterList";const IH=UD("MobileCollectionControls",["root","content","toggle"]);var zH=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}))}));zH.displayName="KeyboardArrowUp";const WH=UD("SortControl",["root","option","list","list-label","list-option","list-option-label","list-option-sorted-icon","list-option-not-sorted"]);function NH(e){switch(e){case qT:return BT;case BT:return VT;default:return qT}}const LH=({fields:e=[],sort:t={},variant:n="menu",onSortClick:r})=>{const i=LD(),o=(0,c.useMemo)((()=>{if(!t)return{key:void 0,direction:void 0};const e=Object.values(t);return Object.values(e).length<1||e[0].direction===VT?{key:void 0,direction:void 0}:e[0]}),[t]),a=(0,c.useCallback)(((e,t)=>n=>{n.stopPropagation(),n.preventDefault(),null==r||r(e,t)}),[r]);return"list"===n?c.createElement("div",{key:"filter-by-list",className:WH.list},c.createElement("h3",{className:WH["list-label"]},i("collection.collectionTop.sortBy")),e.map((e=>{var n,r,i;const s=NH(null!==(n=null==t||null===(r=t[e.name])||void 0===r?void 0:r.direction)&&void 0!==n?n:VT);return c.createElement("div",{key:e.name,className:WH["list-option"],onClick:a(e.name,s)},c.createElement("label",{className:WH["list-option-label"]},null!==(i=e.label)&&void 0!==i?i:e.name),e.name===o.key?o.direction===qT?c.createElement(zH,{key:"checkmark",className:WH["list-option-sorted-icon"]}):c.createElement(zZ,{key:"checkmark",className:WH["list-option-sorted-icon"]}):c.createElement("div",{key:"not-checked",className:WH["list-option-not-sorted"]}))}))):c.createElement(NZ,{label:i("collection.collectionTop.sortBy"),color:o.key?"primary":"secondary",variant:o.key?"contained":"outlined",rootClassName:WH.root,"aria-label":"sort options dropdown"},c.createElement(FZ,null,e.map((e=>{var n,r,i;const s=NH(null!==(n=null==t||null===(r=t[e.name])||void 0===r?void 0:r.direction)&&void 0!==n?n:VT);return c.createElement(OG,{key:e.name,onClick:a(e.name,s),active:e.name===o.key,endIcon:e.name===o.key?o.direction===qT?zH:zZ:void 0,rootClassName:WH.option},null!==(i=e.label)&&void 0!==i?i:e.name)}))))},FH=({mobileOpen:e,onMobileOpenToggle:t,showFilterControl:n,filter:r,viewFilters:i,onFilterClick:o,showGroupControl:a,group:s,viewGroups:l,onGroupClick:u,showSortControl:d,sort:f,fields:h,onSortClick:p})=>{const m=(0,c.useMemo)((()=>"undefined"!=typeof window?window.document.body:void 0),[]);return c.createElement(ZB,{container:m,variant:"temporary",open:e,onClose:t,anchor:"right",ModalProps:{keepMounted:!0},slotProps:{root:{className:IH.root}}},c.createElement("div",{onClick:t,className:qD(IH.content,"CMS_Scrollbar_root")},d?c.createElement(LH,{fields:h,sort:f,onSortClick:p,variant:"list"}):null,n?c.createElement(AH,{viewFilters:i,onFilterClick:o,filter:r,variant:"list"}):null,a?c.createElement(DH,{viewGroups:l,onGroupClick:u,group:s,variant:"list"}):null))};function UH(){return UH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[t,n]=(0,c.useState)(!1),r=(0,c.useCallback)((()=>{n((e=>!e))}),[]);return c.createElement(c.Fragment,null,c.createElement(FN,{icon:MH,variant:"text",onClick:r,rootClassName:IH.toggle,"aria-label":"toggle menu"}),c.createElement(FH,UH({},e,{mobileOpen:t,onMobileOpenToggle:r})))},qH=({viewStyle:e,onChangeViewStyle:t,sortableFields:n,onSortClick:r,sort:i,viewFilters:o,viewGroups:a,onFilterClick:s,onGroupClick:l,filter:u,group:d})=>{const f=(0,c.useMemo)((()=>Boolean(a&&l&&d&&a.length>0)),[d,l,a]),h=(0,c.useMemo)((()=>Boolean(o&&s&&u&&o.length>0)),[u,s,o]),p=(0,c.useMemo)((()=>Boolean(n&&r&&i&&n.length>0)),[r,i,n]);return c.createElement(c.Fragment,null,c.createElement("div",{className:bH.controls},c.createElement(CH,{viewStyle:e,onChangeViewStyle:t}),f||h||h?c.createElement(XH,{showFilterControl:h,viewFilters:o,onFilterClick:s,filter:u,showGroupControl:f,viewGroups:a,onGroupClick:l,group:d,showSortControl:p,fields:n,sort:i,onSortClick:r}):null,f?c.createElement(DH,{viewGroups:a,onGroupClick:l,group:d}):null,h?c.createElement(AH,{viewFilters:o,onFilterClick:s,filter:u}):null,p?c.createElement(LH,{fields:n,sort:i,onSortClick:r}):null))};function BH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VH(e){for(var t=1;t{const t=LD(),n=e.label,r=e.label_singular,i=re(),o=(0,c.useMemo)((()=>i["*"]),[i]),a=zN(e,o),s=(l=e.icon,(0,c.useMemo)((()=>eV(l)),[l]));var l;const u=yz(e),d=(0,c.useMemo)((()=>{var t;if("nested"in e&&null!==(t=e.nested)&&void 0!==t&&t.path&&o){const t=u.reduce(((e,t)=>(e[t.path]=t,e)),{});if(Ne(o)){const n=bP(e);let r=t[`${e.folder}/${o}/${e.nested.path.index_file}.${n}`];if(r)return r=VH(VH({},r),{},{data:Mx(r.path,r.data)}),PP(e,r)}}return n}),[e,n,u,o]);return c.createElement("div",{className:bH["header-wrapper"]},c.createElement("h2",{className:bH.header},c.createElement("div",{className:bH["header-icon"]},s),c.createElement("div",{className:bH["header-label"]},d)),a?c.createElement(GD,{to:a,className:bH["new-entry-button"]},c.createElement("div",{className:bH["new-entry-button-text"]},t("collection.collectionTop.newButton",{collectionLabel:null!=r?r:d}))):null)};function GH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HH(e){for(var t=1;tc.createElement("div",{role:"status",className:qD(JH.root,e),"data-testid":t},c.createElement("svg",{"aria-hidden":"true",className:qD(JH.svg,"medium"===n&&JH.md,"small"===n&&JH.sm),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})),c.createElement("span",{className:JH["sr-label"]},"Loading...")),tK=UD("Loader",["root"]),nK=({children:e})=>{const[t,n]=(0,c.useState)(0),r=(0,c.useMemo)((()=>{if(e)return"string"==typeof e?e:Array.isArray(e)&&t{if(!Array.isArray(e))return;const r=setInterval((()=>{const r=t===(null==e?void 0:e.length)-1?0:t+1;n(r)}),5e3);return()=>{clearInterval(r)}}),[e,t]),c.createElement("div",{className:tK.root},c.createElement(eK,null),c.createElement("div",null,r))},rK=UD("Entries",["no-entries","group","group-content-wrapper","group-content","group-button","entry-listing","entry-listing-loading","entry-listing-grid","entry-listing-grid-container","entry-listing-cards","entry-listing-cards-grid-wrapper","entry-listing-cards-grid","entry-listing-table","entry-listing-table-content","entry-listing-table-row","entry-listing-local-backup"]);let iK;iK="undefined"!=typeof window?window:"undefined"!=typeof self?self:__webpack_require__.g;let oK=null,aK=null;const sK=iK.clearTimeout,lK=iK.setTimeout,uK=iK.cancelAnimationFrame||iK.mozCancelAnimationFrame||iK.webkitCancelAnimationFrame,cK=iK.requestAnimationFrame||iK.mozRequestAnimationFrame||iK.webkitRequestAnimationFrame;null==uK||null==cK?(oK=sK,aK=function(e){return lK(e,20)}):(oK=function([e,t]){uK(e),sK(t)},aK=function(e){const t=cK((function(){sK(n),e()})),n=lK((function(){uK(t),e()}),20);return[t,n]});class dK extends c.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,i,o,a;const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(null!==(r=s.paddingLeft)&&void 0!==r?r:"0"),u=parseFloat(null!==(i=s.paddingRight)&&void 0!==i?i:"0"),c=parseFloat(null!==(o=s.paddingTop)&&void 0!==o?o:"0"),d=parseFloat(null!==(a=s.paddingBottom)&&void 0!==a?a:"0"),f=this._parentNode.getBoundingClientRect(),h=f.height-c-d,p=f.width-l-u,m=this._parentNode.offsetHeight-c-d,g=this._parentNode.offsetWidth-l-u;(e||this.state.height===m&&this.state.scaledHeight===h)&&(t||this.state.width===g&&this.state.scaledWidth===p)||(this.setState({height:m,width:g,scaledHeight:h,scaledWidth:p}),"function"==typeof n&&n({height:m,scaledHeight:h,scaledWidth:p,width:g}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=function(e){let t,n,r,i,o,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&oK(this.__resizeRAF__),this.__resizeRAF__=aK((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const u="Webkit Moz O ms".split(" ");let c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const c=l.createElement("div");c.className="expand-trigger",c.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(c),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,nonce:o,onResize:a,style:s={},tagName:l="div",...u}=this.props,{height:d,scaledHeight:f,scaledWidth:h,width:p}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=f),i||(0===p&&(v=!0),m.width=0,g.width=p,g.scaledWidth=h),(0,c.createElement)(l,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function fK(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var hK=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function pK(e,t){if(e.length!==t.length)return!1;for(var n=0;n0?yK="positive-descending":(t.scrollLeft=1,yK=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),yK}return yK}var wK=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function kK(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,o=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,d=e.getRowHeight,f=e.getRowOffset,h=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,fK(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:fK(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=mK((function(e,t,n,i,o,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=mK((function(e,t,n,i,o){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var i,a=r.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,c=r._getItemStyleCache(g&&s,g&&l,g&&u),h=e+":"+t;if(c.hasOwnProperty(h))i=c[h];else{var p=n(r.props,t,r._instanceProps),m="rtl"===l;c[h]=i={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:f(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:o(r.props,t,r._instanceProps)}}return i},r._getItemStyleCache=void 0,r._getItemStyleCache=mK((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=r.props.direction,u=o;if("rtl"===t)switch(bK()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Nq(t,e),t.getDerivedStateFromProps=function(e,t){return xK(e,t),v(e),null};var O=t.prototype;return O.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLefth?v:0,b=O>d?v:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,b):m,scrollTop:void 0!==i?u(this.props,i,n,g,this._instanceProps,y):g})},O.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},O.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(bK()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},O.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vK(this._resetIsScrollingTimeoutId)},O.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,i=e.direction,o=e.height,l=e.innerRef,u=e.innerElementType,d=e.innerTagName,f=e.itemData,h=e.itemKey,p=void 0===h?wK:h,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,O=e.style,y=e.useIsScrolling,b=e.width,w=this.state.isScrolling,k=this._getHorizontalRangeToRender(),x=k[0],_=k[1],S=this._getVerticalRangeToRender(),P=S[0],E=S[1],C=[];if(r>0&&v)for(var T=P;T<=E;T++)for(var $=x;$<=_;$++)C.push((0,c.createElement)(t,{columnIndex:$,data:f,isScrolling:y?w:void 0,key:p({columnIndex:$,data:f,rowIndex:T}),rowIndex:T,style:this._getItemStyle(T,$)}));var Q=a(this.props,this._instanceProps),R=s(this.props,this._instanceProps);return(0,c.createElement)(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:tT({position:"relative",height:o,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},O)},(0,c.createElement)(u||d||"div",{children:C,ref:l,style:{height:Q,pointerEvents:w?"none":void 0,width:R}}))},O._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[3],c=this._getVerticalRangeToRender(),d=c[0],f=c[1],h=c[2],p=c[3];this._callOnItemsRendered(a,s,d,f,l,u,h,p)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,O=m.scrollTop,y=m.scrollUpdateWasRequested,b=m.verticalScrollDirection;this._callOnScroll(v,O,g,b,y)}},O._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,f=n||o||a||1;if(0===t||0===s)return[0,0,0,0];var h=r(this.props,d,this._instanceProps),p=i(this.props,h,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,f),g=c&&"forward"!==u?1:Math.max(1,f);return[Math.max(0,h-m),Math.max(0,Math.min(t-1,p+g)),h,p]},O._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)return[0,0,0,0];var d=h(this.props,u,this._instanceProps),f=p(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(o-1,f+g)),d,f]},t}(c.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var xK=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},_K=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},SK=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},PK=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},EK=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?CK(e,t,n,o,0,r):TK(e,t,n,Math.max(0,o),r)},CK=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=PK(e,t,a,n).offset;if(s===o)return a;so&&(r=a-1)}return i>0?i-1:0},TK=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return i>=d&&i<=c?i:d>c||ic.createElement("div",{className:$G.content},e);var jK=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))}));function DK(){return DK=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const l=pz(JM),u=Sz(e,i,o,null!=a?a:l);return We(e)?c.createElement(jK,{className:qD(MK.root,MK.empty,n)}):c.createElement("img",{key:"image",role:"presentation",src:u,alt:t,"data-testid":null!=s?s:"image",className:qD(MK.root,n),style:r})},zK=({collection:e,field:t})=>n=>c.createElement(IK,DK({},n,{collection:e,field:t})),WK=IK,NK=({image:e,width:t,height:n,alt:r="",collection:i,field:o,entry:a})=>c.createElement(WK,{className:$G.media,style:{width:t?`${t}px`:void 0,height:n?`${n}px`:void 0},src:e,alt:r,collection:i,field:o,entry:a});function LK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FK(e){for(var t=1;te.name===s));return l?[l.name,FK(FK({},l),{},{name:`${n}`})]:["",l]}function YK(e){var t;const n=ZK(e),r=null!==(t=e[XK])&&void 0!==t?t:[];return e=>{const t=e[n];return r.find((e=>e.name===t))}}function ZK(e){return qK in e&&e[qK]||BK}function GK(e,t){var n;const r=ZK(e),i=null!==(n=null==t?void 0:t[r])&&void 0!==n?n:{};let o;return o=i?`Error: item has illegal '${r}' property: '${i}'`:`Error: item has no '${r}' property`,o}const HK=["previewComponent"],KK=e=>{let{previewComponent:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;re.name===n));if(!u)return null;const d=null==s?void 0:s[u.name];let f=u;"fields"in u&&u.fields?f=eJ(eJ({},f),{},{renderedFields:iJ(e,t,r,i,o,u.fields,d)}):"types"in u&&u.types&&(f=eJ(eJ({},f),{},{renderedFields:oJ(e,t,u,i,o,d)}));const h=Object.entries(o).filter((([e])=>mx(t,e)===f)).map((([,e])=>e))[0];let p=d;if(h)p=h.defaultPreview(ze(d)?"":String(d));else if(d&&f.widget&&-1!==["string","text","number"].indexOf(f.widget)&&d.toString().length<50){var m;p=c.createElement("div",{key:u.name},c.createElement(c.Fragment,null,c.createElement("strong",{className:nJ.label},null!==(m=u.label)&&void 0!==m?m:u.name,":"),d))}return p?function(e,t,n,r,i,o=null){if(!t.widget)return null;const a=PE(t.widget),s=o?t.name+"_"+o:t.name;if("hidden"===t.widget||!a.preview)return null;const l=function(e){return(0,c.isValidElement)(e)}(r)||function(e){return e.type?e.type===c.Fragment:e===c.Fragment}(r)?r:a.converters.deserialize(r&&"object"==typeof r&&!Array.isArray(r)&&t.name in r?r[t.name]:r,t);return a.preview?c.createElement(KK,{previewComponent:a.preview,key:s,field:t,config:e,collection:n,value:l,entry:i}):null}(e,f,t,p,i,l):null}function iJ(e,t,n,r,i,o,a){return Array.isArray(a)?a.flatMap((a=>aJ(e,t,n,r,i,o,a))):aJ(e,t,n,r,i,o,a)}function oJ(e,t,n,r,i,o){return null==o?void 0:o.flatMap(((o,a)=>{const[s,l]=VK(n,null!=o?o:{},a);return l?aJ(e,t,l.fields,r,i,l.fields,o,a):null})).filter(Boolean)}function aJ(e,t,n,r,i,o,a,s=null){return o.map((l=>rJ(e,t,l.name,n,r,i,o,a,s))).filter((e=>Boolean(e)))}function sJ(e,t,n,r,i=r.data){const o=function(e){return(0,c.useMemo)((()=>{const t=jP(e,"title"),n=jP(e,"shortTitle"),r=jP(e,"author"),i={};return t&&(i[t]=Qo.title),n&&(i[n]=Qo.shortTitle),r&&(i[r]=Qo.author),i}),[e])}(t),a=(0,c.useCallback)((a=>e?rJ(e,t,a,n,r,o,n,i):null),[t,e,i,r,n,o]),s=(0,c.useCallback)((i=>{var a,s;if(!e)return{data:null,widgets:{}};const l=n.find((e=>e.name===i));if(!l||!("fields"in l))return{data:null,widgets:{}};const u=null===(a=r.data)||void 0===a?void 0:a[l.name],d=l&&"fields"in l&&null!==(s=l.fields)&&void 0!==s?s:[];if("list"===l.widget||Array.isArray(u)){let i;return i=!u||"object"!=typeof u||u instanceof Date?[]:Array.isArray(u)?u:[u],i.filter((e=>"object"==typeof e)).map((i=>{const a=d.reduce(((a,s,l)=>(a[s.name]=c.createElement("div",{key:l},rJ(e,t,s.name,n,r,o,d,i,l)),a)),{});return{data:i,widgets:a}}))}return"object"!=typeof u||u instanceof Date?{data:{},widgets:{}}:{data:u,widgets:d.reduce(((i,a,s)=>(i[a.name]=c.createElement("div",{key:s},rJ(e,t,a.name,n,r,o,d,u,s)),i)),{})}}),[t,e,r,n,o]);return{widgetFor:a,widgetsFor:s}}const lJ=UD("Pill",["root","no-wrap","primary","default","info","warning","error","success","disabled"]),uJ=({children:e,noWrap:t,className:n,disabled:r=!1,color:i="default"})=>c.createElement("span",{className:qD(n,lJ.root,t&&lJ["no-wrap"],r&&lJ.disabled,lJ[i])},e),cJ=({status:e,className:t})=>{const n=LD(),[r,i]=(0,c.useMemo)((()=>{switch(e){case De.DRAFT:return[n("editor.editorToolbar.draft"),"info"];case De.PENDING_REVIEW:return[n("editor.editorToolbar.inReview"),"warning"];case De.PENDING_PUBLISH:return[n("editor.editorToolbar.ready"),"success"];default:return[n("editor.editorToolbar.published"),"default"]}}),[e,n]);return c.createElement(uJ,{color:i,className:t},r)},dJ=UD("EntryCard",["root","no-margin","content-wrapper","content","card","card-content","summary-wrapper","summary","description","date","local-backup-icon","workflow-status"]),fJ=({collection:e,entry:t,imageFieldName:n,descriptionFieldName:r,dateFieldName:i,dateFormats:o,noMargin:a=!1,backTo:s,children:l,useWorkflow:u})=>{const d=LD(),f=t.data,h=(0,c.useMemo)((()=>`/collections/${e.name}/entries/${t.slug}${s?`?backTo=${s}`:""}`),[s,e.name,t.slug]),p=(0,c.useMemo)((()=>{var t;return"fields"in e?null===(t=e.fields)||void 0===t?void 0:t.find((e=>e.name===n&&"image"===e.widget)):void 0}),[e,n]),m=(0,c.useMemo)((()=>{let e=n?null==f?void 0:f[n]:void 0;return e&&(e=e.trim()),e}),[f,n]),g=(0,c.useMemo)((()=>{let e=r?null==f?void 0:f[r]:void 0;return e&&(e=e.trim()),e}),[f,r]),v=(0,c.useMemo)((()=>{let e=i?null==f?void 0:f[i]:void 0;if(e&&o){const t=ls(e,o.storageFormat,new Date);isNaN(t.getTime())||(e=Ta(t,o.displayFormat))}return e}),[i,f,o]),O=(0,c.useMemo)((()=>PP(e,t)),[e,t]),y=(0,c.useMemo)((()=>IP(e,t.slug)),[e,t.slug]),b=pz(dC),{widgetFor:w,widgetsFor:k}=sJ(b,e,y,t),x=(0,c.useMemo)((()=>SP(e,t.slug)),[e,t.slug]),_=(0,c.useMemo)((()=>{var e,t;return null!==(e=null===(t=wE(x))||void 0===t?void 0:t.component)&&void 0!==e?e:null}),[x]),[S,P]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{if(null!=b&&b.disable_local_backup)return;let n=!0;const r=async()=>{const r=LE(e.name,t.slug),i=await ZS.getItem(r);n&&P(Boolean(i))};return r(),setTimeout((()=>{r()}),250),()=>{n=!1}}),[e.name,null==b?void 0:b.disable_local_backup,t.slug]),_?c.createElement("div",{className:qD(dJ.root,a&&dJ["no-margin"])},c.createElement("div",{className:dJ["content-wrapper"]},c.createElement("div",{className:dJ.content},c.createElement(QG,null,c.createElement(AG,{to:h},c.createElement(_,{collection:e,fields:y,entry:t,widgetFor:w,widgetsFor:k,hasLocalBackup:S})),l)))):c.createElement("div",{className:qD(dJ.root,a&&dJ["no-margin"])},c.createElement("div",{className:dJ["content-wrapper"]},c.createElement("div",{className:dJ.content},c.createElement(QG,{className:dJ.card,title:O},c.createElement(AG,{to:h},m&&p?c.createElement(NK,{height:"140",image:m,collection:e,field:p,entry:t}):null,c.createElement(AK,null,c.createElement("div",{className:dJ["card-content"]},c.createElement("div",{className:dJ["summary-wrapper"]},c.createElement("div",{className:dJ.summary},O),S?c.createElement(RK,{className:dJ["local-backup-icon"],title:d("ui.localBackup.hasLocalBackup")}):null,u?c.createElement(cJ,{status:t.status,className:dJ["workflow-status"]}):null),g?c.createElement("div",{className:dJ.description},g):null,v?c.createElement("div",{className:dJ.date},String(v)):null))),l))))};function hJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pJ(e){for(var t=1;t{const s=(0,c.useMemo)((()=>{var e;return parseFloat(`${"number"==typeof n.left?null!==(e=n.left)&&void 0!==e?e:10*t:n.left}`)+4}),[t,n.left]),l=(0,c.useMemo)((()=>{var e;return parseFloat(`${"number"==typeof n.top?null!==(e=n.top)&&void 0!==e?e:0:n.top}`)+4}),[n.top]),u=e*r+t;if(u>=o.length)return null;const d=o[u],f=u{const r=LD(),i=pz(vC),[o,a]=(0,c.useState)(0),s=(0,c.useCallback)((()=>{a((e=>e+1))}),[]),l=(0,c.useCallback)((e=>{var t,n;return null!==(t=null===(n=wE(SP(e.collection,e.entry.slug)))||void 0===n?void 0:n.getHeight)&&void 0!==t?t:null}),[]),u=(0,c.useCallback)((e=>{const t=Ie(null==e?void 0:e.imageFieldName)?204:56;return Ie(null==e?void 0:e.dateFieldName)?t+24:t}),[]),[d,f]=(0,c.useState)([]),h=(0,c.useMemo)((()=>{const t=[...d],n=t.length,r=e.length;for(let i=n;i{h.length!==d.length&&f(h)}),[h,d.length]),c.createElement("div",{className:rK["entry-listing-cards"]},c.createElement(dK,{onResize:s},(({height:a=0,width:s=0})=>{const l=s-4,d=Math.max(Math.floor(l/250),1),f=1/d*((l-10*d)/l),p=Math.ceil(e.length/d);return c.createElement("div",{key:o,className:rK["entry-listing-cards-grid-wrapper"],style:{width:l,height:a}},c.createElement(QK,{columnCount:d,columnWidth:e=>e+1===d?l*f:l*f+10,rowCount:p,rowHeight:e=>{const t=(e+1)*d-1;let n=0;for(let r=e*d;r<=t&&!(h.length<=r);r++)h[r]>n&&h[r]&&(n=h[r]+20);return 0===n&&(n=u()+20),n},width:l,height:a,itemData:{entryData:e,cardHeights:h,columnCount:d,useWorkflow:i,t:r},outerRef:t,onScroll:n,className:qD(rK["entry-listing-cards-grid"],"CMS_Scrollbar_root"),style:{position:"unset"},overscanRowCount:5},gJ))})))},OJ=({entryData:e,canLoadMore:t,isLoadingEntries:n,onLoadMore:r})=>{const i=LD(),o=(0,c.useRef)(null),a=pz(bG),s=(0,c.useCallback)(((e,n,i)=>{Ie(e)&&Ie(n)&&Ie(i)&&e-n-i<300&&!a&&t&&r()}),[a,t,r]),l=(0,c.useCallback)((()=>{var e;const{scrollHeight:t,scrollTop:n,clientHeight:r}=null!==(e=o.current)&&void 0!==e?e:{};s(t,n,r)}),[s]);return(0,c.useEffect)((()=>{const e=setInterval((()=>{l()}),100);return()=>{clearInterval(e)}}),[l]),c.createElement("div",{className:rK["entry-listing-grid"]},c.createElement("div",{ref:o,className:rK["entry-listing-grid-container"]},c.createElement(vJ,{key:"grid",entryData:e,scrollContainerRef:o,onScroll:l})),n?c.createElement("div",{key:"loading",className:rK["entry-listing-loading"]},i("collection.entries.loadingEntries")):null)};function yJ(){return yJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;o--){var a=e[o];if(!r.has(a.lane)){var s=i.get(a.lane);if(null==s||a.end>s.end?i.set(a.lane,a):a.end0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0;t.pendingMeasuredCacheIndexes=[];for(var l=t.measurementsCache.slice(0,s),u=s;u0&&n>0?function(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,i=t.length-1,o=$J(0,i,(function(e){return t[e].start}),r),a=o;a=t.scrollOffset+r?"end":"start"),"start"===n||("end"===n?e-=r:"center"===n&&(e-=r/2));var i=t.options.horizontal?"scrollWidth":"scrollHeight",o=(t.scrollElement?"document"in t.scrollElement?t.scrollElement.document.documentElement[i]:t.scrollElement[i]:0)-t.getSize();return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=function(e,n){void 0===n&&(n="auto"),e=Math.max(0,Math.min(e,t.options.count-1));var r=kJ(t.getMeasurements()[e]);if("auto"===n)if(r.end>=t.scrollOffset+t.getSize()-t.options.scrollPaddingEnd)n="end";else{if(!(r.start<=t.scrollOffset+t.options.scrollPaddingStart))return[t.scrollOffset,n];n="start"}var i="end"===n?r.end+t.options.scrollPaddingEnd:r.start-t.options.scrollPaddingStart;return[t.getOffsetForAlignment(i,n),n]},this.isDynamicMode=function(){return t.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==t.scrollToIndexTimeoutId&&(clearTimeout(t.scrollToIndexTimeoutId),t.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,n){var r=void 0===n?{}:n,i=r.align,o=void 0===i?"start":i,a=r.behavior;t.cancelScrollToIndex(),"smooth"===a&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.getOffsetForAlignment(e,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=function(e,n){var r=void 0===n?{}:n,i=r.align,o=void 0===i?"auto":i,a=r.behavior;e=Math.max(0,Math.min(e,t.options.count-1)),t.cancelScrollToIndex(),"smooth"===a&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var s=t.getOffsetForIndex(e,o),l=s[0],u=s[1];t._scrollToOffset(l,{adjustments:void 0,behavior:a}),"smooth"!==a&&t.isDynamicMode()&&(t.scrollToIndexTimeoutId=setTimeout((function(){t.scrollToIndexTimeoutId=null,t.measureElementCache.has(t.options.getItemKey(e))&&function(e,t){return Math.abs(e-t)<1}(t.getOffsetForIndex(e,u)[0],t.scrollOffset)||t.scrollToIndex(e,{align:u,behavior:a})})))},this.scrollBy=function(e,n){var r=(void 0===n?{}:n).behavior;t.cancelScrollToIndex(),"smooth"===r&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.scrollOffset+e,{adjustments:void 0,behavior:r})},this.getTotalSize=function(){var e;return((null==(e=t.getMeasurements()[t.options.count-1])?void 0:e.end)||t.options.paddingStart)-t.options.scrollMargin+t.options.paddingEnd},this._scrollToOffset=function(e,n){var r=n.adjustments,i=n.behavior;t.options.scrollToFn(e,{behavior:i,adjustments:r},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},$J=function(e,t,n,r){for(;e<=t;){var i=(e+t)/2|0,o=n(i);if(or))return i;t=i-1}}return e>0?e-1:0},QJ="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;const RJ=UD("Table",["root","table","header","header-row","header-cell","header-cell-content","body","body-row","body-cell","body-cell-has-link","body-cell-emphasis","body-cell-shrink","body-cell-content","body-cell-link"]),AJ=({children:e})=>c.createElement("th",{scope:"col",className:RJ["header-cell"]},c.createElement("div",{className:RJ["header-cell-content"]},"string"==typeof e&&We(e)?c.createElement(c.Fragment,null," "):e)),jJ=({columns:e,children:t})=>c.createElement("div",{className:RJ.root},c.createElement("table",{className:RJ.table},c.createElement("thead",{className:RJ.header},c.createElement("tr",{className:RJ["header-row"]},e.map(((e,t)=>c.createElement(AJ,{key:t},e))))),c.createElement("tbody",{className:RJ.body},t))),DJ=({children:e,emphasis:t=!1,to:n,shrink:r=!1})=>{const i=(0,c.useMemo)((()=>n?c.createElement(NT,{to:n,className:RJ["body-cell-link"],tabIndex:-1},e):e),[e,n]);return c.createElement("td",{className:qD(RJ["body-cell"],n&&RJ["body-cell-has-link"],t&&RJ["body-cell-emphasis"],r&&RJ["body-cell-shrink"])},c.createElement("div",{className:RJ["body-cell-content"]},i))},MJ=({children:e,className:t,to:n})=>{const r=ne(),i=(0,c.useCallback)((e=>{n&&("Enter"!==e.key&&"Space"!==e.key||r(n))}),[r,n]);return c.createElement("tr",{className:qD(RJ["body-row"],t),tabIndex:n?0:-1,onKeyDown:i},e)};function IJ(e,t,n,r){const i=null!=n&&null!=e.i18n&&null!=e.i18n[n]?e.i18n[n].data:e.data;if(Dx(t).length<=0)return Ee()(i,t);const o=Mx(e.path,i);return jx(t,null,e.slug,o,r)}function zJ(e,t,n,r){const i=t.value_field,o=t.display_fields||[t.value_field];return e.reduce(((e,t)=>{const a=Rx({data:t.data,path:i});for(let i=0;i{var o,a;const l=Rx({data:t.data,path:e}),u=null!==(o=l[i])&&void 0!==o?o:l[0];return ze(u)||We(u)?s:IJ(t,null!==(a=l[i])&&void 0!==a?a:l[0],n,r)})).join(" ");e.push({data:t.data,value:s,label:l})}return e}),[])}function WJ(e,t,n){if(n&&Array.isArray(e)){const n=function(e){return e&&Array.isArray(e)?e:null}(e);if(null===n)return null;const r=n.map((e=>t.find((t=>t.value===e)))).filter(Boolean).map((e=>"string"==typeof e?e:null==e?void 0:e.value));return r}var r,i;return null!==(r=null===(i=t.find((t=>t.value===e)))||void 0===i?void 0:i.value)&&void 0!==r?r:null}const NJ=UD("WidgetRelation",["root","error","required","disabled","for-single-list","values","loading"]),LJ=({value:e,field:t,locale:n,entry:r})=>{var i;const[o,a]=(0,c.useState)([]),s=pz((e=>tI(e,t.collection))),l=(0,c.useMemo)((()=>IP(s,r.slug)),[r.slug,s]),u=(0,c.useMemo)((()=>{var e;return null!==(e=t.multiple)&&void 0!==e&&e}),[t.multiple]),[d,f]=(0,c.useState)(null),h=(0,c.useMemo)((()=>!d),[d]),p=pz(dC);(0,c.useEffect)((()=>{h&&s&&p&&(async()=>{const r=DC(p),i=await r.listAllEntries(s,p);f(i);const o=zJ(i,t,n,l).reduce(((e,t)=>(e[t.value]=t,e)),{}),u=Array.isArray(e)?e.filter((e=>e&&String(e)in o)):String(e)in o?[e]:[],c=u.map((e=>o[String(e)]));a(c)})()}),[s,p,h,t,n,l]);const m=(0,c.useMemo)((()=>o.reduce(((e,t)=>(e[t.value]=t,e)),{})),[o]),g=(0,c.useMemo)((()=>{let t=WJ(e,o,u);return u&&!t&&(t=[]),t}),[u,o,e]);return c.createElement("span",null,Array.isArray(g)?c.createElement("div",{className:NJ.values},g.map((e=>{var t;const n=m[String(e)];return c.createElement(uJ,{key:String(e),noWrap:!0},null!==(t=null==n?void 0:n.label)&&void 0!==t?t:e)}))):g?null!==(i=m[String(g)].label)&&void 0!==i?i:String(g):String(e))},FJ=({collection:e,entry:t,collectionLabel:n,columnFields:r,t:i})=>{var o;const a=(0,c.useMemo)((()=>`/collections/${e.name}/entries/${t.slug}`),[e.name,t.slug]),{default_locale:s}=null!==(o=(0,c.useMemo)((()=>Kk(e)),[e]))&&void 0!==o?o:{},l=(0,c.useMemo)((()=>PP(e,t)),[e,t]),u=(0,c.useMemo)((()=>IP(e,t.slug)),[e,t.slug]),d=pz(dC),f=pz(vC),h=(0,c.useMemo)((()=>SP(e,t.slug)),[e,t.slug]),[p,m]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{if(null!=d&&d.disable_local_backup)return;let n=!0;const r=async()=>{const r=LE(e.name,t.slug),i=await ZS.getItem(r);n&&m(Boolean(i))};return r(),setTimeout((()=>{r()}),250),()=>{n=!1}}),[e.name,null==d?void 0:d.disable_local_backup,t.slug]),c.createElement(MJ,{className:rK["entry-listing-table-row"],to:a},n?c.createElement(DJ,{key:"collectionLabel",to:a},n):null,r.map((n=>{if("summary"===n)return c.createElement(DJ,{key:n,to:a},l);const r=u.find((e=>e.name===n)),i=Ee()(t.data,n),o=kE(h,n);return c.createElement(DJ,{key:n,to:a},r&&o?c.createElement(o,{collection:e,field:r,value:i}):ze(i)?"":"relation"===(null==r?void 0:r.widget)?c.createElement(LJ,{field:r,value:i,locale:s,entry:t}):String(i))})),c.createElement(DJ,{key:"unsavedChanges",to:a,shrink:!0},p?c.createElement(RK,{className:rK["entry-listing-local-backup"],title:i("ui.localBackup.hasLocalBackup")}):null),f?c.createElement(DJ,{key:"status",to:a,shrink:!0},c.createElement(cJ,{status:t.status})):null)},UJ=({isSingleCollectionInList:e,entryData:t,summaryFields:n,canLoadMore:r,isLoadingEntries:i,loadNext:o})=>{var a;const s=LD(),l=pz(bG),u=(0,c.useRef)(null),d=(f={getScrollElement:()=>u.current,count:t.length,overscan:10,estimateSize:()=>45},function(e){var t=c.useReducer((function(){return{}}),{})[1],n=yJ({},e,{onChange:function(n,r){r?(0,NC.flushSync)(t):t(),null==e.onChange||e.onChange(n,r)}}),r=c.useState((function(){return new TJ(n)}))[0];return r.setOptions(n),c.useEffect((function(){return r._didMount()}),[]),QJ((function(){return r._willUpdate()})),r}(yJ({observeElementRect:SJ,observeElementOffset:PJ,scrollToFn:CJ},f)));var f;const h=d.getVirtualItems(),p=(0,c.useMemo)((()=>{var e;return h.length>0&&(null==h||null===(e=h[0])||void 0===e?void 0:e.start)||0}),[h]),m=(0,c.useMemo)((()=>{var e;return h.length>0?d.getTotalSize()-((null==h||null===(e=h[h.length-1])||void 0===e?void 0:e.end)||0):0}),[d,h]),g=(0,c.useCallback)(((e,t,n)=>{Ie(e)&&Ie(t)&&Ie(n)&&e-t-n<300&&!l&&r&&o()}),[l,r,o]),{scrollHeight:v,scrollTop:O,clientHeight:y}=null!==(a=u.current)&&void 0!==a?a:{};(0,c.useEffect)((()=>{g(v,O,y)}),[y,g,v,O]);const b=pz(vC),w=(0,c.useMemo)((()=>{const t=[...n.map((e=>e.label)),""];return e||t.unshift(s("collection.table.collection")),b&&t.push(""),t}),[e,n,s,b]),k=(0,c.useMemo)((()=>[...n.map((e=>e.name))]),[n]);return c.createElement("div",{className:rK["entry-listing-table"]},c.createElement("div",{ref:u,className:qD(rK["entry-listing-table-content"],"CMS_Scrollbar_root","CMS_Scrollbar_secondary")},c.createElement(jJ,{columns:w},p>0&&c.createElement("tr",null,c.createElement("td",{style:{height:`${p}px`}})),d.getVirtualItems().map((e=>{const n=t[e.index];return c.createElement(FJ,{key:e.index,collection:n.collection,collectionLabel:n.collectionLabel,entry:n.entry,columnFields:k,t:s})})),m>0&&c.createElement("tr",null,c.createElement("td",{style:{height:`${m}px`}})))),i?c.createElement("div",{key:"loading",className:rK["entry-listing-loading"]},s("collection.entries.loadingEntries")):null)},XJ=["entries","cursor","viewStyle","isLoadingEntries","filterTerm","handleCursorActions"],qJ=e=>{let{entries:t,cursor:n,viewStyle:r,isLoadingEntries:i,filterTerm:o,handleCursorActions:a}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var e;return null==n||null===(e=n.actions)||void 0===e?void 0:e.has("append_next")}),[null==n?void 0:n.actions]),d=(0,c.useCallback)((()=>{u&&(null==a||a("append_next"))}),[a,u]),f=(0,c.useCallback)((e=>DP(e)),[]),h=(0,c.useMemo)((()=>!("collections"in s)||1===Object.keys(s.collections).length),[s]),p=(0,c.useMemo)((()=>{const e=[{name:"summary",label:l("collection.table.summary")}];if(!h)return e;if(!("collection"in s)||ze(s.collection.summary_fields))return e;const t=s.collection.summary_fields,n=IP(s.collection).reduce(((e,t)=>(e[t.name]=t,e)),{});return t.map((e=>{var t;const r=n[e];return{name:e,label:r?null!==(t=r.label)&&void 0!==t?t:Fe(r.name):Fe(e)}}))}),[h,s,l]),m=(0,c.useMemo)((()=>{if("collection"in s){var e;const n=f(s.collection),i="fields"in s.collection?null===(e=s.collection.fields)||void 0===e?void 0:e.find((e=>e.name===n.date&&"datetime"===e.widget)):void 0,o=$O(i);return t.map((e=>({collection:s.collection,imageFieldName:n.image,descriptionFieldName:n.description,dateFieldName:n.date,dateFormats:o,viewStyle:r,entry:e,key:e.slug})))}return t.map((e=>{var t;const n=e.collection,i=Object.values(s.collections).find((e=>e.name===n)),o=f(i),a=i&&"fields"in i?null===(t=i.fields)||void 0===t?void 0:t.find((e=>e.name===o.date&&"datetime"===e.widget)):void 0,l=$O(a),u=h||null==i?void 0:i.label;return i?{collection:i,entry:e,imageFieldName:o.image,descriptionFieldName:o.description,dateFieldName:o.date,dateFormats:l,viewStyle:r,collectionLabel:u,key:e.slug}:null})).filter((e=>e))}),[t,f,h,s,r]);return r===xH?c.createElement("div",{className:rK["entry-listing"]},c.createElement(UJ,{key:"table",entryData:m,isSingleCollectionInList:h,summaryFields:p,loadNext:d,canLoadMore:Boolean(u&&d),isLoadingEntries:i})):c.createElement(OJ,{key:"collection"in s?s.collection.name:`search-grid-${o}`,entryData:m,onLoadMore:d,canLoadMore:Boolean(u&&d),isLoadingEntries:i})},BJ=["entries","isFetching","viewStyle","cursor","filterTerm","handleCursorActions","page"],VJ=e=>{var t;let{entries:n,isFetching:r,viewStyle:i,cursor:o,filterTerm:a,handleCursorActions:s,page:l}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r[d("collection.entries.loadingEntries"),d("collection.entries.cachingEntries"),d("collection.entries.longerLoading")]),[d]);return r&&void 0===l?c.createElement(nK,null,f):n&&n.length>0||(null==o||null===(t=o.actions)||void 0===t?void 0:t.has("append_next"))?"collection"in u?c.createElement(qJ,{key:"collection-listing",collection:u.collection,entries:n,viewStyle:i,cursor:o,handleCursorActions:s,page:l,isLoadingEntries:r&&void 0!==l&&n.length>0,filterTerm:a}):c.createElement(qJ,{key:"search-listing",collections:u.collections,entries:n,viewStyle:i,cursor:o,handleCursorActions:s,page:l,isLoadingEntries:r&&void 0!==l&&n.length>0,filterTerm:a}):c.createElement("div",{className:rK["no-entries"]},d("collection.entries.noEntries"))};function YJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZJ(e){for(var t=1;tt.has(e.path)))}const KJ=xT((function(e,t){var n;const{collection:r,viewStyle:i,filterTerm:o}=t,a=null===(n=e.entries.pages[r.name])||void 0===n?void 0:n.page,s=DD(e,r.name),l=MD(e,r.name),u=xD(e,r.name),c=j_.create(u).clearData();return ZJ(ZJ({},t),{},{page:a,filterTerm:o,entriesLoaded:s,isFetching:l,viewStyle:i,cursor:c})}),{}),JJ=KJ((({collection:e,filterTerm:t,isFetching:n,viewStyle:r,cursor:i,page:o,entriesLoaded:a})=>{const s=LD(),l=hz(),[u,d]=(0,c.useState)(e),f=function(e){const t=mz(e),n=pz((t=>PD(t,e)));return(0,c.useMemo)((()=>{if(void 0===n)return[];let e={};const r=AO()(t,(t=>{const r=function(e,t){const n=t.label,r=t.field,i=Ee()(e.data,r);if(void 0===i)return{id:"missing_value",label:n,value:i};const o=String(i);if(t.pattern){const e=t.pattern;let i="";try{const t=new RegExp(e),n=o.match(t);n&&(i=n[0])}catch(t){console.warn(`[StaticCMS] Invalid view group pattern '${e}' for field '${r}'`,t)}return{id:`${n}${i}`,label:n,value:i}}return{id:`${n}${i}`,label:n,value:"boolean"==typeof i?i:o}}(t,n);return e=HH(HH({},e),{},{[r.id]:r}),r.id})),i=Object.entries(r).map((([t,n])=>HH(HH({},e[t]),{},{paths:new Set(n.map((e=>e.path)))})));return i}),[t,n])}(e.name),h=yz(e),p=pz(vC),m=(0,c.useMemo)((()=>{if("nested"in e){var n;const r=null!==(n=e.folder)&&void 0!==n?n:"";return function(e,t,n){return n.filter((n=>{const r=n.path.slice(t.length+1);return!!r.startsWith(e)&&(e?2===r.slice(e.length+1).split("/").length:r.split("/").length<=2)}))}(t||"",r,h)}return h}),[e,h,t]);(0,c.useEffect)((()=>{e&&!a&&u!==e&&l(qI(e)),d(e)}),[e,l,a,u,p]);const g=(0,c.useCallback)((t=>{l(BI(e,t))}),[e,l]),[v,O]=(0,c.useState)(0),y=(0,c.useCallback)((e=>()=>{O(e)}),[]);return f&&f.length>0?c.createElement(c.Fragment,null,c.createElement("div",{className:rK.group},c.createElement("div",{className:rK["group-content-wrapper"]},c.createElement("div",{className:qD(rK["group-content"],"CMS_Scrollbar_hide")},f.map(((e,t)=>{const n=function(e,t){const{label:n,value:r}=e;return void 0===r?t("collection.groups.other"):"boolean"==typeof r?r?n:t("collection.groups.negateLabel",{label:n}):`${n} ${r}`.trim()}(e,s);return c.createElement(GD,{key:t,variant:t===v?"contained":"text",onClick:y(t),className:rK["group-button"],"aria-label":`group by ${n}`,"data-testid":`group-by-${n}`},n)}))))),c.createElement(VJ,{key:`entries-with-group-${f[v].id}`,collection:e,entries:HJ(m,f[v].paths),isFetching:n,viewStyle:r,cursor:i,handleCursorActions:g,page:o,filterTerm:t})):c.createElement(VJ,{key:"entries-without-group",collection:e,entries:m,isFetching:n,viewStyle:r,cursor:i,handleCursorActions:g,page:o,filterTerm:t})}));function e0(e){return{type:dQ,payload:{error:e}}}const t0={searchEntries:function(e,t,n=0){return async(r,i)=>{const o=i(),{search:a}=o,s=o.config;if(!s.config)return;const l=DC(s.config),u=t||Object.keys(o.collections);if(!a.isFetching||a.term!==e||!tP()(u,a.collections)){r(function(e,t,n){return{type:aQ,payload:{searchTerm:e,searchCollections:t,page:n}}}(e,u,n));try{const t=await l.search(Object.entries(o.collections).filter((([e,t])=>-1!==u.indexOf(e))).map((([e,t])=>t)),e,s.config);return r(function(e,t){return{type:sQ,payload:{entries:e,page:t}}}(t.entries,n))}catch(e){if(console.error(e),e instanceof Error)return r(function(e){return{type:lQ,payload:{error:e}}}(e))}}}},clearSearch:function(){return{type:fQ}}},n0=xT((function(e,t){const{searchTerm:n,filterTerm:r,collections:i,viewStyle:o}=t,a=Object.keys(i);return{isFetching:e.search.isFetching,page:e.search.page,collections:i,viewStyle:o,entries:ID(e,a),searchTerm:n,filterTerm:r}}),t0)((({collections:e,entries:t,isFetching:n,page:r,searchTerm:i,filterTerm:o,viewStyle:a,searchEntries:s,clearSearch:l})=>{const u=(0,c.useMemo)((()=>Object.keys(e)),[e]),d=(0,c.useCallback)((()=>j_.create({actions:Number.isNaN(r)?[]:["append_next"]})),[r]);(0,c.useEffect)((()=>()=>{l()}),[]);const[f,h]=(0,c.useState)(""),[p,m]=(0,c.useState)([]);return(0,c.useEffect)((()=>{f===i&&tP()(p,u)||(h(i),m(u),setTimeout((()=>{s(i,u)})))}),[u,p,f,i]),c.createElement(VJ,{cursor:d(),collections:e,entries:t,isFetching:n,viewStyle:a,filterTerm:o})})),r0=({name:e,isSearchResults:t,isSingleSearchResult:n,searchTerm:r="",filterTerm:i=""})=>{var o,a;const s=LD(),l=hz(),u=pz(eI),d=(0,c.useMemo)((()=>e?u[e]:u[0]),[e,u]),f=pz(TD),h=pz((t=>ED(t,e))),p=(0,c.useMemo)((()=>function(e){return null==e?void 0:e.view_filters}(d)),[d]),m=(0,c.useMemo)((()=>function(e){return null==e?void 0:e.view_groups}(d)),[d]),g=(0,c.useMemo)((()=>function(e,t){var n,r;if(!e)return[];const i=(null!==(n=null===(r=e.sortable_fields)||void 0===r?void 0:r.fields)&&void 0!==n?n:[]).map((n=>{if(n===io)return{key:n,field:{name:n,label:t("collection.defaultFields.updatedOn.label")}};const r=mx(e,n);return n!==ro||r?{key:n,field:r}:{key:n,field:{name:n,label:t("collection.defaultFields.author.label")}}})).filter((e=>!!e.field)).map((e=>vP(vP({},e.field),{},{key:e.key})));return i}(d,s)),[d,s]),v=pz((e=>_D(e,null==d?void 0:d.name))),O=pz((e=>SD(e,null==d?void 0:d.name))),y=(0,c.useMemo)((()=>"collection.collectionTop.searchResults"+(n?"InCollection":"")),[n]),b=(0,c.useMemo)((()=>{if(t){let e=u;if(n){const t=Object.values(u).filter((e=>e===d));1===t.length&&(e={[t[0].name]:t[0]})}return c.createElement(n0,{key:"search",collections:e,searchTerm:r,filterTerm:i,viewStyle:f})}return d?c.createElement(JJ,{collection:d,viewStyle:f,filterTerm:i}):null}),[d,u,i,t,n,r,f]),w=(0,c.useCallback)((async(e,t)=>{d&&await l(function(e,t,n=qT){return async(r,i)=>{const o=i(),a=MD(o,e.name);if(r(function(e,t,n){return{type:u$,payload:{collection:e.name,key:t,direction:n}}}(e,t,n)),!a)try{const i=await DI(o,e);r(function(e,t,n,r){return{type:c$,payload:{collection:e.name,key:t,direction:n,entries:r}}}(e,t,n,i))}catch(i){console.error(i),r(function(e,t,n,r){return{type:d$,payload:{collection:e.name,key:t,direction:n,error:r}}}(e,t,n,i))}}}(d,e,t))}),[d,l]),k=(0,c.useCallback)((async e=>{d&&await l(function(e,t){return async(n,r)=>{const i=r(),o=MD(i,e.name);if(n(function(e,t){return{type:f$,payload:{collection:e.name,filter:t}}}(e,t)),!o)try{const r=await DI(i,e);n(function(e,t,n){return{type:h$,payload:{collection:e.name,filter:t,entries:n}}}(e,t,r))}catch(r){n(function(e,t,n){return{type:p$,payload:{collection:e.name,filter:t,error:n}}}(e,t,r))}}}(d,e))}),[d,l]),x=(0,c.useCallback)((async e=>{d&&await l(function(e,t){return async(n,r)=>{const i=r(),o=MD(i,e.name);if(n(function(e,t){return{type:m$,payload:{collection:e.name,group:t}}}(e,t)),!o)try{const r=await DI(i,e);n(function(e,t,n){return{type:g$,payload:{collection:e.name,group:t,entries:n}}}(e,t,r))}catch(r){n({type:v$,payload:{collection:e.name,group:t,error:r}})}}}(d,e))}),[d,l]),_=(0,c.useCallback)((e=>{l(function(e){return{type:D$,payload:{style:e}}}(e))}),[l]),S=null==d?void 0:d.description;return c.createElement("div",{className:bH.root},c.createElement("div",{className:bH.content},t?c.createElement(c.Fragment,null,c.createElement("div",{className:bH["search-query"]},c.createElement("div",null,s(y,{searchTerm:r,collection:null==d?void 0:d.label}))),c.createElement(qH,{viewStyle:f,onChangeViewStyle:_})):c.createElement(c.Fragment,null,d?c.createElement(ZH,{collection:d}):null,c.createElement(qH,{viewStyle:f,onChangeViewStyle:_,sortableFields:g,onSortClick:w,sort:h,viewFilters:null!==(o=null==p?void 0:p.filters)&&void 0!==o?o:[],viewGroups:null!==(a=null==m?void 0:m.groups)&&void 0!==a?a:[],onFilterClick:k,onGroupClick:x,filter:v,group:O}))),S?c.createElement("div",{className:bH.description},c.createElement(QG,{className:bH["description-card"]},S)):null,b)},i0=["name","searchTerm"],o0=["name","searchTerm"];function a0(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const e=re(),{name:t,searchTerm:n}=e,r=a0(e,i0)["*"];return c.createElement(yH,{breadcrumbs:[{name:"Search"}],showQuickCreate:!0,showLeftNav:!0,noScroll:!0,noMargin:!0},c.createElement(r0,{name:t,searchTerm:n,filterTerm:r,isSearchResults:!0,isSingleSearchResult:!1}))},l0=({collection:e,isSearchResults:t,isSingleSearchResult:n})=>{const r=re(),{name:i,searchTerm:o}=r,a=a0(r,o0)["*"],s=iW(e,a);return c.createElement(yH,{breadcrumbs:s,collection:e,showQuickCreate:!0,showLeftNav:!0,noScroll:!0,noMargin:!0},c.createElement(r0,{name:i,searchTerm:o,filterTerm:a,isSearchResults:t,isSingleSearchResult:n}))},u0=({collection:e,isSearchResults:t,isSingleSearchResult:n})=>e?c.createElement(l0,{collection:e,isSearchResults:t,isSingleSearchResult:n}):c.createElement(s0,null),c0=({isSearchResults:e,isSingleSearchResult:t})=>{var n;const{name:r,searchTerm:i}=re(),[o]=XT(),a=o.has("noredirect"),s=pz((e=>tI(e,r))),l=Jz(pz(eI));if(!(i||r&&s))return c.createElement(pe,{to:l});if(s&&"files"in s&&1===(null===(n=s.files)||void 0===n?void 0:n.length)&&!a){const e=window.location.href;return e.includes("noredirect")||window.history.replaceState(null,document.title,`${e}?noredirect`),c.createElement(pe,{to:`/collections/${s.name}/entries/${s.files[0].name}`})}return c.createElement(u0,{collection:s,isSearchResults:e,isSingleSearchResult:t})};var d0;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(d0||(d0={}));var f0="beforeunload";function h0(e){e.preventDefault(),e.returnValue=""}function p0(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function m0(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function g0(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var v0=__webpack_require__(72408),O0=__webpack_require__.n(v0);function y0(e,t){const n=(0,c.useRef)(),r=(0,c.useRef)();function i(){r.current&&clearTimeout(r.current)}return(0,c.useEffect)((()=>i),[]),(0,c.useCallback)((function(...o){n.current=o,i(),r.current=setTimeout((()=>{n.current&&e(...n.current)}),t)}),[e,t])}class b0 extends CustomEvent{constructor(e){super("data:update",{detail:e})}}async function w0(e,t,n,r,i){const o=Ee()(i,e),a=Ee()(r,e);let s=fE()(r);if(!tP()(o,a)){const r=e.join(".");s=await RE({name:"change",collection:t,fieldName:n.name,field:r,data:s});const i=Ee()(s,e);window.dispatchEvent(new b0({field:n.name,fieldPath:`${t}.${r}`,value:i}))}if("fields"in n&&n.fields)for(const r of n.fields)s=await w0([...e,r.name],t,r,s,i);return s}const k0=e=>e.scroll.isScrolling;var x0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}))}));x0.displayName="ArrowUpward";var _0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"}))}));_0.displayName="CreateNewFolder";var S0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}))}));S0.displayName="FolderOpen";var P0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}))}));P0.displayName="Home";var E0=__webpack_require__(96368),C0=__webpack_require__.n(E0);function T0(e){const[{dragOverActive:t},n]=(0,c.useState)({dragOverActive:!1,counter:0}),r=(0,c.useCallback)((e=>{e.preventDefault(),n((e=>({dragOverActive:!0,counter:e.counter+1})))}),[]),i=(0,c.useCallback)((e=>{e.preventDefault()}),[]),o=(0,c.useCallback)((e=>{e.preventDefault(),n((e=>({dragOverActive:!(e.counter-1<=0)&&e.dragOverActive,counter:e.counter-1})))}),[]),a=(0,c.useCallback)((t=>{t.preventDefault(),n({dragOverActive:!1,counter:0}),e(t)}),[e]);return(0,c.useMemo)((()=>({dragOverActive:t,handleDragEnter:r,handleDragOver:i,handleDragLeave:o,handleDrop:a})),[t,r,o,i,a])}class $0 extends CustomEvent{constructor(){super("mediaLibraryClose",{})}}const Q0=UD("InlineEditTextField",["root","editable","label","preview","input"]),R0=({label:e,placeholder:t,value:n,onChange:r})=>{const[i,o]=(0,c.useState)(null!=n?n:"");(0,c.useEffect)((()=>{o(null!=n?n:"")}),[n]);const[a,s]=(0,c.useState)(!1),l=(0,c.useRef)(null),u=(0,c.useCallback)((()=>{r&&(s(!0),setTimeout((()=>{var e;null===(e=l.current)||void 0===e||e.focus()}),10))}),[r]),d=(0,c.useCallback)((()=>{r&&(s(!1),i!==n&&r(i))}),[i,r,n]),f=(0,c.useCallback)((()=>{d()}),[d]),h=(0,c.useCallback)((e=>{"Enter"===e.key&&d()}),[d]),p=(0,c.useCallback)((e=>{o(e.target.value)}),[]);return c.createElement("div",{className:qD(Q0.root,r&&Q0.editable)},c.createElement("label",{htmlFor:e,className:Q0.label},e),a&&r?c.createElement("input",{key:"input",id:e,ref:l,className:Q0.input,value:i,placeholder:t,onChange:p,onKeyDown:h,onBlur:f}):c.createElement("div",{key:"value",tabIndex:0,className:Q0.preview,onClick:u,onFocus:u},i))},A0=UD("MediaLibrary",["root","is-dialog","supports-folders","for-image","content-wrapper","content","drop-area","drop-area-active","controls","upload-controls","upload-button","upload-button-icon","upload-button-input","header","title","title-icon-wrapper","title-icon","folder-controls","folder","folder-icon","copy-to-clipboard-button","copy-to-clipboard-button-icon","preview","preview-image","preview-details","empty","files","grid-wrapper","grid","search-form","search-label","search-wrapper","search-icon-wrapper","search-icon","search-input"]),j0=({collection:e,field:t,canInsert:n,url:r,alt:i,insertOptions:o,forImage:a,replaceIndex:s,onUrlChange:l,onAltChange:u})=>t&&n?Array.isArray(r)&&ze(s)?null:Array.isArray(r)||null!=o&&o.chooseUrl||null!=o&&o.showAlt||"string"==typeof r&&!We(r)?c.createElement("div",{className:A0.preview},a?c.createElement(WK,{key:"image-preview",src:Array.isArray(r)?r[s]:r,collection:e,field:t,className:qD(A0["preview-image"],"group/media-card")}):null,c.createElement("div",{className:A0["preview-details"]},c.createElement(R0,{label:"URL",value:Array.isArray(r)?r[s]:r,onChange:null!=o&&o.chooseUrl?l:void 0}),null!=o&&o.showAlt?c.createElement(R0,{label:a?"Alt":"Text",value:i,onChange:u}):null)):null:null,D0=({content:e})=>c.createElement("div",{className:A0.empty},c.createElement("h3",null,e));var M0=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}))}));M0.displayName="FileUpload";const I0=({imagesOnly:e,onChange:t})=>{const n=LD(),r=(0,c.useRef)(null),i=pz(uI),o=pz(cI),a=YD("contained","primary","medium",!1),s=(0,c.useCallback)((e=>{var t;"Enter"===e.key&&(null===(t=r.current)||void 0===t||t.click())}),[]);return c.createElement("label",{ref:r,role:"button",className:qD(A0["upload-button"],a),tabIndex:0,onKeyUp:s},c.createElement(M0,{className:A0["upload-button-icon"]}),n(i?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),c.createElement("input",{hidden:!0,multiple:!0,type:"file",accept:e?"image/*":"*/*",onChange:t,disabled:o||i,className:A0["upload-button-input"]}))};function z0(e){return RM("MuiInput",e)}AM("MuiInput",["root","formControl","focused","disabled","error","multiline","input","inputMultiline","inputTypeSearch","adornedStart","adornedEnd"]);const W0=c.createContext(void 0);const N0=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","endAdornment","error","id","multiline","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","startAdornment","value","type","rows","slotProps","slots","minRows","maxRows"],L0=c.forwardRef((function(e,t){var n,r,i;const{"aria-describedby":o,"aria-label":a,"aria-labelledby":s,autoComplete:l,autoFocus:u,className:d,defaultValue:f,disabled:h,endAdornment:p,error:m,id:g,multiline:v=!1,name:O,onClick:y,onChange:b,onKeyDown:w,onKeyUp:k,onFocus:x,onBlur:_,placeholder:S,readOnly:P,required:E,startAdornment:C,value:T,type:$,rows:Q,slotProps:R={},slots:A={},minRows:j,maxRows:D}=e,M=KD(e,N0),{getRootProps:I,getInputProps:z,focused:W,formControlContext:N,error:L,disabled:F}=function(e={}){const{defaultValue:t,disabled:n=!1,error:r=!1,onBlur:i,onChange:o,onFocus:a,required:s=!1,value:l,inputRef:u}=e,d=c.useContext(W0);let f,h,p,m,g;var v,O,y;d?(f=void 0,h=null!=(v=d.disabled)&&v,p=null!=(O=d.error)&&O,m=null!=(y=d.required)&&y,g=d.value):(f=t,h=n,p=r,m=s,g=l);const{current:b}=c.useRef(null!=g),w=c.useCallback((e=>{}),[]),k=c.useRef(null),x=eM(k,u,w),[_,S]=c.useState(!1);c.useEffect((()=>{!d&&h&&_&&(S(!1),null==i||i())}),[d,h,_,i]);const P=e=>t=>{var n,r;null!=d&&d.disabled?t.stopPropagation():(null==(n=e.onFocus)||n.call(e,t),d&&d.onFocus?null==d||null==(r=d.onFocus)||r.call(d):S(!0))},E=e=>(t,...n)=>{var r,i;if(!b&&null==(t.target||k.current))throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{const t=HD({},{onBlur:i,onChange:o,onFocus:a},iM(e)),n=HD({},t,{onBlur:(r=t,e=>{var t;null==(t=r.onBlur)||t.call(r,e),d&&d.onBlur?d.onBlur():S(!1)}),onChange:E(t),onFocus:P(t)});var r;return HD({},n,{"aria-invalid":p||void 0,defaultValue:f,value:g,required:m,disabled:h},e,{ref:x},n)},getRootProps:(t={})=>{const n=HD({},iM(e,["onBlur","onChange","onFocus"]),iM(t));return HD({},t,n,{onClick:(r=n,e=>{var t;k.current&&e.currentTarget===e.target&&k.current.focus(),null==(t=r.onClick)||t.call(r,e)})});var r},inputRef:x,required:m,value:g}}({disabled:h,defaultValue:f,error:m,onBlur:_,onClick:y,onChange:b,onFocus:x,required:E,value:T}),U=v?void 0:null!=$?$:"text",X=HD({},e,{disabled:F,error:L,focused:W,formControlContext:N,multiline:v,type:U}),q=(e=>{const{disabled:t,error:n,focused:r,formControlContext:i,multiline:o,startAdornment:a,endAdornment:s}=e;return hM({root:["root",t&&"disabled",n&&"error",r&&"focused",Boolean(i)&&"formControl",o&&"multiline",Boolean(a)&&"adornedStart",Boolean(s)&&"adornedEnd"],input:["input",t&&"disabled",o&&"multiline"]},fM(z0))})(X),B={"aria-describedby":o,"aria-label":a,"aria-labelledby":s,autoComplete:l,autoFocus:u,id:g,onKeyDown:w,onKeyUp:k,name:O,placeholder:S,readOnly:P,type:U},V=null!=(n=A.root)?n:"div",Y=sM({elementType:V,getSlotProps:I,externalSlotProps:R.root,externalForwardedProps:M,additionalProps:{ref:t},ownerState:X,className:[q.root,d]}),Z=v?null!=(r=A.textarea)?r:"textarea":null!=(i=A.input)?i:"input",G=sM({elementType:Z,getSlotProps:e=>z(HD({},B,e)),externalSlotProps:R.input,additionalProps:HD({rows:v?Q:void 0},v&&!tM(Z)&&{minRows:Q||j,maxRows:Q||D}),ownerState:X,className:q.input});return(0,lM.jsxs)(V,HD({},Y,{children:[C,(0,lM.jsx)(Z,HD({},G)),p]}))}));function F0(e,t){return(0,c.useMemo)((()=>t?"default":e),[e,t])}const U0=["value","type","data-testid","cursor","variant","inputRef","readonly","disabled","onChange","onClick","startAdornment","endAdornment","rootClassName","inputClassName"];function X0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q0(e){for(var t=1;t{let{value:t,type:n,"data-testid":r,cursor:i="default",variant:o="borderless",inputRef:a,readonly:s,disabled:l=!1,onChange:u,onClick:d,startAdornment:f,endAdornment:h,rootClassName:p,inputClassName:m}=e,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const r=LD(),[i,o]=(0,c.useState)(""),a=(0,c.useCallback)((e=>{o(e.target.value)}),[]),s=(0,c.useCallback)((()=>{We(i)||(n(i),o(""))}),[i,n]),l=(0,c.useCallback)((()=>{t(),o("")}),[t]);return c.createElement(FM,{open:e,onClose:l,className:Z0.root},c.createElement("div",{className:Z0.header},c.createElement("h3",{className:Z0.title},r("mediaLibrary.folderSupport.createNewFolder")),c.createElement(FN,{icon:yG,variant:"text","aria-label":"close",onClick:l,rootClassName:Z0["close-button"],iconClassName:Z0["close-button-icon"]})),c.createElement("div",{className:Z0["name-input-wrapper"]},c.createElement(Y0,{id:"folder_name",type:"text",value:i,onChange:a,key:"mobile-time-input","data-testid":"time-input",cursor:"pointer",variant:"contained",placeholder:r("mediaLibrary.folderSupport.enterFolderName"),rootClassName:Z0["name-input"]})),c.createElement("div",{className:Z0.actions},c.createElement(GD,{variant:"text","aria-label":"cancel",onClick:l,className:Z0["cancel-button"]},r("ui.common.cancel")),c.createElement(GD,{variant:"contained","aria-label":"create",onClick:s,disabled:We(i),className:Z0["create-button"]},r("mediaLibrary.folderSupport.create"))))};var H0=!("undefined"==typeof window||!window.document||!window.document.createElement),K0=void 0;function J0(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function e1(e){this.target=e,this.events={}}e1.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},e1.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},e1.prototype.add=function(e,t,n){var r=this,i=this.getEventHandlers(e,n);J0(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,J0(i);var a=i.nextHandlers.indexOf(t);i.nextHandlers.splice(a,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}};var t1="__consolidated_events_handlers__";function n1(e,t,n,r){e[t1]||(e[t1]=new e1(e));var i=function(e){if(e)return void 0===K0&&(K0=function(){if(!H0)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),K0?e:!!e.capture}(r);return e[t1].add(t,n,i)}function r1(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof i?i*t:void 0}var i1,o1="above",a1="inside",s1="below",l1="invisible";function u1(e){return"string"==typeof e.type}var c1=[];function d1(e){c1.push(e),i1||(i1=setTimeout((function(){var e;for(i1=null;e=c1.shift();)e()}),0));var t=!0;return function(){if(t){t=!1;var n=c1.indexOf(e);-1!==n&&(c1.splice(n,1),!c1.length&&i1&&(clearTimeout(i1),i1=null))}}}var f1="undefined"!=typeof window,h1=function(e){function t(t){var n;return(n=e.call(this,t)||this).refElement=function(e){n._ref=e},n}Nq(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;f1&&(this.cancelOnNextTick=d1((function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug,function(e,t){if(e&&!u1(e)&&!t)throw new Error(" needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g.
) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=n1(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=n1(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)})))},n.componentDidUpdate=function(){var e=this;f1&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=d1((function(){e.cancelOnNextTick=null,e._handleScroll(null)}))))},n.componentWillUnmount=function(){f1&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())},n._findScrollableAncestor=function(){var e=this.props,t=e.horizontal,n=e.scrollableAncestor;if(n)return function(e){return"window"===e?__webpack_require__.g.window:e}(n);for(var r=this._ref;r.parentNode;){if((r=r.parentNode)===document.body)return window;var i=window.getComputedStyle(r),o=(t?i.getPropertyValue("overflow-x"):i.getPropertyValue("overflow-y"))||i.getPropertyValue("overflow");if("auto"===o||"scroll"===o||"overlay"===o)return r}return window},n._handleScroll=function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?l1:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?a1:e.viewportBottom0&&i.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}return n.remove(),o&&(i.removeAllRanges(),i.addRange(o)),r&&r.focus(),a}g1.displayName="ContentCopy";const O1=({draft:e,path:t,name:n})=>{const r=LD(),[i,o]=(0,c.useState)(!1);(0,c.useEffect)((()=>{let e=!0;const t=setTimeout((()=>{e&&o(!1)}),1500);return()=>{e=!1,clearTimeout(t)}}),[]);const a=(0,c.useCallback)((()=>{t&&n&&(v1(PS(t)||!e?t:n),o(!0))}),[e,n,t]),s=(0,c.useCallback)((()=>i?r("mediaLibrary.mediaLibraryCard.copied"):t?PS(t)?r("mediaLibrary.mediaLibraryCard.copyUrl"):r(e?"mediaLibrary.mediaLibraryCard.copyName":"mediaLibrary.mediaLibraryCard.copyPath"):r("mediaLibrary.mediaLibraryCard.copy")),[i,e,t,r]);return c.createElement(GD,{variant:"text",title:s(),onClick:a,className:A0["copy-to-clipboard-button"]},c.createElement(g1,{className:A0["copy-to-clipboard-button-icon"]}))},y1=UD("MediaLibraryCard",["root","action","handle","outline","text","controls-overlay","controls","control-icon","download-button","delete-button","details","selection-overlay","draft-pill","image","folder","folder-icon","file"]),b1=({isSelected:e=!1,displayURL:t,path:n,text:r,draftText:i,type:o,isViewableImage:a,isDraft:s,isDirectory:l,collection:u,field:d,currentFolder:f,hasSelection:h,allowMultiple:p,onSelect:m,onDirectoryOpen:g,loadDisplayURL:v,onDelete:O})=>{const y=LD(),b=Sz(n,u,d,pz(JM),f,l),w=(0,c.useCallback)((()=>{const e=t.url;if(!e)return;const n=document.createElement("a");n.setAttribute("href",e),n.setAttribute("download",r),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}),[t.url,r]);(0,c.useEffect)((()=>{l||t.url||v()}),[t.url,v,l]);const k=(0,c.useMemo)((()=>r.length<=28?r:`${r.slice(0,14)}…${r.slice(-13)}`),[r]),x=(0,c.useCallback)((e=>{"Enter"!==e.code&&"Space"!==e.code||m("replace")}),[m]),_=(0,c.useCallback)((()=>{m("replace")}),[m]),S=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),m(e.target.checked?"add":"remove")}),[m]);return c.createElement("div",{className:y1.root,tabIndex:-1},c.createElement("div",{onClick:_,onDoubleClick:l?g:void 0,"data-testid":`media-card-${t.url}`,className:y1.action},c.createElement("div",{key:"handle",onKeyUp:x,"data-testid":`media-card-handle-${t.url}`,tabIndex:0,className:y1.handle}),e?c.createElement("div",{key:"selected",className:y1.outline}):null,c.createElement("div",{className:y1["controls-overlay"]},l?null:c.createElement("div",{className:y1.controls},c.createElement(O1,{path:t.url,name:r,draft:s}),c.createElement(GD,{variant:"text",onClick:w,title:y("mediaLibrary.mediaLibraryModal.download"),className:y1["download-button"]},c.createElement(m1,{className:y1["control-icon"]})),c.createElement(GD,{variant:"text",color:"error",onClick:O,title:y("mediaLibrary.mediaLibraryModal.deleteSelected"),className:y1["delete-button"]},c.createElement(p1,{className:y1["control-icon"]})))),c.createElement("div",{className:y1.details},c.createElement("div",{className:y1["selection-overlay"]},h&&p?c.createElement(QH,{checked:e,onChange:S}):null,s?c.createElement(uJ,{"data-testid":"draft-text",color:"primary",className:y1["draft-pill"]},i):null),b&&a?c.createElement(WK,{src:b,className:y1.image}):l?c.createElement("div",{"data-testid":"card-folder-icon",className:y1.folder},c.createElement(S0,{className:y1["folder-icon"]})):c.createElement("div",{"data-testid":"card-file-icon",className:y1.file},c.createElement("span",null,o))),c.createElement("div",{className:y1.text},k)))};function w1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k1(e){for(var t=1;t{var O,y,b;const w=(0,c.useMemo)((()=>{var e;return parseFloat(`${"number"==typeof n.left?null!==(e=n.left)&&void 0!==e?e:10*t:n.left}`)+20}),[t,n.left]),k=(0,c.useMemo)((()=>{var e;return parseFloat(`${"number"==typeof n.top?null!==(e=n.top)&&void 0!==e?e:0:n.top}`)+4}),[n.top]),x=e*f+t;if(x>=r.length)return null;const _=r[x];return c.createElement("div",{style:k1(k1({},n),{},{left:w,top:k,width:n.width,height:n.height})},c.createElement(b1,{key:_.key,isSelected:i(_),text:_.name,onSelect:e=>o(_,e),onDirectoryOpen:()=>a(_.path),currentFolder:s,isDraft:_.draft,draftText:l,displayURL:null!==(O=u[_.id])&&void 0!==O?O:_.url?{url:_.url}:{},path:_.path,loadDisplayURL:()=>d(_),type:_.type,isViewableImage:null!==(y=_.isViewableImage)&&void 0!==y&&y,isDirectory:null!==(b=_.isDirectory)&&void 0!==b&&b,collection:h,field:p,onDelete:()=>m(_),hasSelection:g,allowMultiple:v}))},S1=e=>{const{mediaItems:t,scrollContainerRef:n,canLoadMore:r,isDialog:i,onLoadMore:o,field:a,collection:s,collectionFile:l}=e,u=bz({config:pz(dC),collection:s,collectionFile:l,field:a}),[d,f]=(0,c.useState)(0),h=(0,c.useCallback)((()=>{f((e=>e+1))}),[]);return c.createElement("div",{className:A0.files},c.createElement(dK,{onResize:h},(({height:a=0,width:s=0})=>{const l=Math.floor((s-40)/250),f=Math.ceil(t.length/l);return c.createElement("div",{key:d,className:A0["grid-wrapper"],style:{width:s,height:a}},c.createElement(QK,{columnCount:l,columnWidth:e=>e+1===l?240:250,rowCount:f,rowHeight:()=>250,width:s,height:a-(u?0:20),itemData:k1(k1({},e),{},{columnCount:l}),outerRef:n,className:qD(A0.grid,"CMS_Scrollbar_root",i&&"CMS_Scrollbar_secondary"),style:{position:"unset"}},_1),r?c.createElement(h1,{onEnter:o}):null)})))},P1=({value:e="",onChange:t,onKeyDown:n,placeholder:r,disabled:i})=>c.createElement("form",{className:A0["search-form"]},c.createElement("label",{htmlFor:"default-search",className:A0["search-label"]},"Search"),c.createElement("div",{className:"relative"},c.createElement("div",{className:A0["search-icon-wrapper"]},c.createElement(_Y,{className:A0["search-icon"]})),c.createElement("input",{type:"search",id:"default-search",className:A0["search-input"],value:e,placeholder:r,disabled:i,onChange:t,onKeyDown:n})));function E1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C1(e){for(var t=1;t{var n,r;const i=LD(),[o,a]=(0,c.useState)(void 0),[s,l]=(0,c.useState)(null),[u,d]=(0,c.useState)(void 0),f=pz(dC),h=hz(),{isVisible:p,displayURLs:m,dynamicSearch:g,dynamicSearchActive:v,forImage:O=!1,forFolder:y=!1,isLoading:b,hasNextPage:w,isPaginating:k,config:x=(null!==(n=null==f?void 0:f.media_library)&&void 0!==n?n:{}),dynamicSearchQuery:_,page:S,collection:P,collectionFile:E,field:C,value:T,alt:$,insertOptions:Q,replaceIndex:R}=pz(iI),A=pz(JM),[j,D]=(0,c.useState)(null!=T?T:""),[M,I]=(0,c.useState)($),[z,W]=(0,c.useState)(!1);(0,c.useEffect)((()=>{!z&&p?(l(null),d(""),a(void 0),h(vI())):z&&!p&&window.dispatchEvent(new $0),W(p)}),[p,h,z]);const N=Tz(C,o),L=(0,c.useCallback)((e=>{h(function(e){return async(t,n)=>{const{displayURL:r,id:i}=e,o=n(),a=o.config.config;if(!a)return Promise.reject();const s=sI(o,i);if(!i||!r||s.url||s.isFetching||s.err)return Promise.resolve();if("string"==typeof r)return t(wI(i)),void t(kI(i,r));try{const e=DC(a);t(wI(i));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(kI(i,n))}catch(e){console.error(e),e instanceof Error&&t(function(e,t){return{type:rQ,payload:{key:e,err:t}}}(i,e))}}}(e))}),[h]),F=(0,c.useCallback)((e=>e.filter((e=>{const t=TS(e.name).toLowerCase();return Q1.includes(t)||e.isDirectory}))),[]),U=(0,c.useCallback)((e=>{const t=e&&e.map((({key:e,name:t,id:n,size:r,path:i,queryOrder:o,displayURL:a,draft:s,isDirectory:l})=>{const u=TS(t).toLowerCase();return{key:e,id:n,name:t,path:i,type:u.toUpperCase(),size:r,queryOrder:o,displayURL:a,draft:s,isImage:Q1.includes(u),isViewableImage:$1.includes(u),isDirectory:l}}));return t}),[]),X=(0,c.useCallback)((()=>{h(mI()),setTimeout((()=>{D(void 0),I(void 0)}),500)}),[h]),q=(0,c.useCallback)(((t,n)=>{if(!(!e||!y&&t.isDirectory||y&&!t.isDirectory))if("replace"!==n)if("add"!==n){if("remove"===n){if(null==C||!C.multiple)return;const e=Array.isArray(s)?[...s]:s?[s]:[],n=e.indexOf(t.path);if(n<0)return;return e.splice(n,1),void l(e)}}else{if(null==C||!C.multiple)return;const e=Array.isArray(s)?s:s?[s]:[];if(e.includes(t.path))return;l([...e,t.path])}else{if(s===t.path)return;l(null!=C&&C.multiple?[t.path]:t.path)}}),[e,null==C?void 0:C.multiple,y,s]),B=(0,c.useRef)(null),V=()=>{B.current&&(B.current.scrollTop=0)},Y=zz({mediaConfig:x,field:C,currentFolder:o,callback:(e,t)=>{1===t.length&&t[0]?l(t[0].path):null!=C&&C.multiple&&l(t.filter((e=>e)).map((e=>e.path))),V()}}),{dragOverActive:Z,handleDragEnter:G,handleDragLeave:H,handleDragOver:K,handleDrop:J}=T0(Y),ee=(0,c.useCallback)((e=>{D(e),h(gI(e,C,M,o))}),[M,h,C,o]),te=(0,c.useCallback)((e=>{(j||s)&&(I(e),h(gI(null!=j?j:s,C,e,o)))}),[h,C,s,j,o]),ne=(0,c.useCallback)((e=>{if(!f)return;const t=mP(f,P,A,e,C,o);l(null),d(""),a(t),h(vI({currentFolder:t}))}),[h,o,P,f,A,C]),re=(0,c.useMemo)((()=>{if(f)return hP(f,P,A,C)}),[P,f,A,C]),ie=(0,c.useMemo)((()=>{if(f&&o)return(0,Re.dirname)(o)}),[f,o]),oe=(0,c.useCallback)((e=>{l(null),d(""),a(e),h(vI({currentFolder:e}))}),[h]),ae=(0,c.useCallback)((()=>{oe(void 0)}),[oe]),se=(0,c.useCallback)((()=>{re&&oe(null!=ie&&ie.includes(re)&&ie!==re?ie:void 0)}),[oe,re,ie]),[le,ue]=(0,c.useState)(!1),ce=(0,c.useCallback)((()=>{ue(!0)}),[]),de=(0,c.useCallback)((()=>{ue(!1)}),[]),fe=(0,c.useCallback)((async e=>{const t=null!=o?o:re;if(!t)return;ue(!1);const n=new File([""],".gitkeep",{type:"text/plain"});await h(OI(n,{field:C},(0,Re.join)(t,e),null!=o?o:re))}),[o,h,C,re]),he=(0,c.useCallback)((()=>{s&&(D(s),h(gI(s,C,M,o)),null!=Q&&Q.chooseUrl||null!=Q&&Q.showAlt||X())}),[s,h,C,M,Q,X,o]),pe=(0,c.useCallback)((async e=>{if(!await YM({title:"mediaLibrary.mediaLibrary.onDeleteTitle",body:"mediaLibrary.mediaLibrary.onDeleteBody",color:"error"}))return;const t=N.find((t=>(null==e?void 0:e.key)===t.key));t&&h(yI(t)).then((()=>{l(null)}))}),[h,N]),me=(0,c.useCallback)((()=>{h(vI({query:_,page:(null!=S?S:0)+1}))}),[_,h,S]),ge=(0,c.useCallback)((async e=>{"Enter"===e.key&&g&&(await h(vI({query:u})),V())}),[g,h,u]),ve=(0,c.useCallback)((e=>{d(e.target.value)}),[]),Oe=(0,c.useCallback)(((e,t)=>{const n=e.replace(/ /g,""),r=we().filter(n,t,{extract:e=>e.name});return r.map(((e,n)=>C1(C1({},t[e.index]),{},{queryIndex:n})))}),[]),ye=O?F(N):N,be=!g&&u?Oe(u,ye):ye,ke=U(be),xe=N&&!!N.length,_e=ye&&!!ye.length,Se=be&&!!be.length,Pe=Se,Ee=b&&!Pe&&i("app.app.loading")||v&&i("mediaLibrary.mediaLibraryModal.noResults")||!xe&&i("mediaLibrary.mediaLibraryModal.noAssetsFound")||!_e&&i("mediaLibrary.mediaLibraryModal.noImagesFound")||!Se&&i("mediaLibrary.mediaLibraryModal.noResults")||"",Ce=Pe&&!C0()(s),Te=bz({config:f,collection:P,collectionFile:E,field:C});return c.createElement(c.Fragment,null,c.createElement("div",{onDrop:J,onDragEnter:G,onDragLeave:H,onDragOver:K,className:qD(A0.root,t&&A0["is-dialog"],Z&&A0["drop-area-active"],O&&A0["for-image"],Te&&A0["supports-folders"])},c.createElement("div",{className:A0["content-wrapper"]},c.createElement("div",{className:A0.content},c.createElement(j0,{collection:P,field:C,canInsert:e,url:j,alt:M,insertOptions:Q,forImage:O,replaceIndex:R,onUrlChange:ee,onAltChange:te}),c.createElement("div",{className:A0.controls},c.createElement("div",{className:A0.header},c.createElement("h2",{className:A0.title},c.createElement("div",{className:A0["title-icon-wrapper"]},c.createElement(HB,{className:A0["title-icon"]})),i("app.header.media")),c.createElement(P1,{value:u,onChange:ve,onKeyDown:ge,placeholder:i("mediaLibrary.mediaLibraryModal.search"),disabled:!v&&!_e}),Te?c.createElement("div",{className:A0["folder-controls"]},c.createElement(FN,{icon:P0,onClick:ae,title:i("mediaLibrary.folderSupport.home"),color:"secondary",disabled:!o,"aria-label":"go to home"}),c.createElement(FN,{icon:x0,onClick:se,title:ie?i("mediaLibrary.folderSupport.upToFolder",{folder:ie}):i("mediaLibrary.folderSupport.up"),color:"secondary",disabled:!ie,"aria-label":"go to parent folder"}),c.createElement(FN,{icon:_0,onClick:ce,title:i("mediaLibrary.folderSupport.newFolder"),color:"secondary","aria-label":"create folder"})):null),c.createElement("div",{className:A0["upload-controls"]},c.createElement(I0,{imagesOnly:O,onChange:Y}),e?c.createElement(GD,{key:"choose-selected",color:"success",variant:"contained",onClick:he,disabled:!Ce,"data-testid":"choose-selected"},i("mediaLibrary.mediaLibraryModal.chooseSelected")):null)),Te?c.createElement("div",{className:A0.folder},c.createElement(S0,{className:A0["folder-icon"]}),null!=o?o:re):null,Pe?c.createElement(S1,{scrollContainerRef:B,mediaItems:ke,isSelectedFile:e=>Array.isArray(s)&&null!=C&&C.multiple?s.includes(e.path):s===e.path,onAssetSelect:q,canLoadMore:w,onLoadMore:me,onDirectoryOpen:ne,currentFolder:o,isPaginating:k,paginatingMessage:i("app.app.loading"),cardDraftText:i("mediaLibrary.mediaLibraryCard.draft"),loadDisplayURL:L,displayURLs:m,collection:P,field:C,isDialog:t,onDelete:pe,hasSelection:Array.isArray(s)?s.length>0:Boolean(s),allowMultiple:void 0===R&&null!==(r=null==C?void 0:C.multiple)&&void 0!==r&&r}):c.createElement(D0,{content:Ee})),c.createElement("div",{className:A0["drop-area"]},i("mediaLibrary.mediaLibraryModal."+(O?"dropImages":"dropFiles"))))),c.createElement(G0,{open:le,onClose:de,onCreate:fe}))},A1=UD("MediaLibraryModal",["root","close-button"]),j1=()=>{const e=hz(),t=pz(dI),n=(0,c.useCallback)((()=>{e(mI())}),[e]);return c.createElement(FM,{open:t,onClose:n,className:A1.root},c.createElement(FN,{icon:yG,rootClassName:A1["close-button"],color:"secondary",variant:"outlined","aria-label":"close media library",onClick:n,rounded:!0}),c.createElement(R1,{canInsert:!0,isDialog:!0}))};var D1=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}))}));D1.displayName="DragHandle";const{createElement:M1,createContext:I1,forwardRef:z1,useCallback:W1,useContext:N1,useEffect:L1,useImperativeHandle:F1,useLayoutEffect:U1,useMemo:X1,useRef:q1,useState:B1}=d,V1=d["useId".toString()],Y1=U1,Z1="function"==typeof V1?V1:()=>null;let G1=0;function H1(e=null){const t=Z1(),n=q1(e||t||null);return null===n.current&&(n.current=""+G1++),n.current}const K1=I1(null);function J1({children:e=null,className:t="",collapsedSize:n=0,collapsible:r=!1,defaultSize:i=null,forwardedRef:o,id:a=null,maxSize:s=null,minSize:l,onCollapse:u=null,onResize:c=null,order:d=null,style:f={},tagName:h="div"}){const p=N1(K1);if(null===p)throw Error("Panel components must be rendered within a PanelGroup container");const m=H1(a),{collapsePanel:g,expandPanel:v,getPanelSize:O,getPanelStyle:y,registerPanel:b,resizePanel:w,units:k,unregisterPanel:x}=p;null==l&&(l="percentages"===k?10:0);const _=q1({onCollapse:u,onResize:c});L1((()=>{_.current.onCollapse=u,_.current.onResize=c}));const S=y(m,i),P=q1({size:t2(S)}),E=q1({callbacksRef:_,collapsedSize:n,collapsible:r,defaultSize:i,id:m,idWasAutoGenerated:null==a,maxSize:s,minSize:l,order:d});return Y1((()=>{P.current.size=t2(S),E.current.callbacksRef=_,E.current.collapsedSize=n,E.current.collapsible=r,E.current.defaultSize=i,E.current.id=m,E.current.idWasAutoGenerated=null==a,E.current.maxSize=s,E.current.minSize=l,E.current.order=d})),Y1((()=>(b(m,E),()=>{x(m)})),[d,m,b,x]),F1(o,(()=>({collapse:()=>g(m),expand:()=>v(m),getCollapsed:()=>0===P.current.size,getId:()=>m,getSize:e=>O(m,e),resize:(e,t)=>w(m,e,t)})),[g,v,O,m,w]),M1(h,{children:e,className:t,"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-id":m,"data-panel-size":parseFloat(""+S.flexGrow).toFixed(1),id:`data-panel-id-${m}`,style:{...S,...f}})}K1.displayName="PanelGroupContext";const e2=z1(((e,t)=>M1(J1,{...e,forwardedRef:t})));function t2(e){const{flexGrow:t}=e;return"string"==typeof t?parseFloat(t):t}J1.displayName="Panel",e2.displayName="forwardRef(Panel)";const n2=10;function r2(e,t,n,r,i,o,a,s){const{id:l,panels:u,units:c}=t,d="pixels"===c?a2(l):NaN,{sizes:f}=s||{},h=f||o,p=h2(u),m=h.concat();let g=0;{const t=i<0?r:n,o=p.findIndex((e=>e.current.id===t)),s=p[o],l=h[o],u=p2(c,d,s,l,l+Math.abs(i),e);if(l===u)return h;0===u&&l>0&&a.set(t,l),i=i<0?l-u:u-l}let v=i<0?n:r,O=p.findIndex((e=>e.current.id===v));for(;;){const t=p[O],n=h[O],r=p2(c,d,t,n,n-(Math.abs(i)-Math.abs(g)),e);if(n!==r&&(0===r&&n>0&&a.set(t.current.id,n),g+=n-r,m[O]=r,g.toPrecision(n2).localeCompare(Math.abs(i).toPrecision(n2),void 0,{numeric:!0})>=0))break;if(i<0){if(--O<0)break}else if(++O>=p.length)break}return 0===g?h:(v=i<0?r:n,O=p.findIndex((e=>e.current.id===v)),m[O]=h[O]+g,m)}function i2(e,t,n){t.forEach(((t,r)=>{const i=e[r];if(!i)return;const{callbacksRef:o,collapsedSize:a,collapsible:s,id:l}=i.current,u=n[l];if(u!==t){n[l]=t;const{onCollapse:e,onResize:r}=o.current;r&&r(t,u),s&&e&&(null!=u&&u!==a||t===a?u!==a&&t===a&&e(!0):e(!1))}}))}function o2(e,t){if(t.length<2)return[null,null];const n=t.findIndex((t=>t.current.id===e));if(n<0)return[null,null];const r=n===t.length-1;return[r?t[n-1].current.id:e,r?e:t[n+1].current.id]}function a2(e){const t=l2(e);if(null==t)return NaN;const n=t.getAttribute("data-panel-group-direction"),r=d2(e);return"horizontal"===n?t.offsetWidth-r.reduce(((e,t)=>e+t.offsetWidth),0):t.offsetHeight-r.reduce(((e,t)=>e+t.offsetHeight),0)}function s2(e,t,n){if(1===e.size)return"100";const r=n[h2(e).findIndex((e=>e.current.id===t))];return null==r?"0":r.toPrecision(n2)}function l2(e){return document.querySelector(`[data-panel-group-id="${e}"]`)||null}function u2(e){return document.querySelector(`[data-panel-resize-handle-id="${e}"]`)||null}function c2(){return Array.from(document.querySelectorAll("[data-panel-resize-handle-id]"))}function d2(e){return Array.from(document.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function f2(e,t,n){const r=u2(t),i=d2(e),o=r?i.indexOf(r):-1;return[n[o]?.current?.id??null,n[o+1]?.current?.id??null]}function h2(e){return Array.from(e.values()).sort(((e,t)=>{const n=e.current.order,r=t.current.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}))}function p2(e,t,n,r,i,o=null){let{collapsedSize:a,collapsible:s,maxSize:l,minSize:u}=n.current;if("pixels"===e&&(a=a/t*100,null!=l&&(l=l/t*100),u=u/t*100),s)if(r>a){if(i<=u/2+a)return a}else{const e=o?.type?.startsWith("key");if(!e&&i{const{minSize:t,order:n}=e.current;return n?`${n}:${t}`:`${t}`})).sort(((e,t)=>e.localeCompare(t))).join(",")}function S2(e,t){try{const n=t.getItem(`PanelGroup:sizes:${e}`);if(n){const e=JSON.parse(n);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function P2(e,t,n,r){const i=_2(t),o=S2(e,r)||{};o[i]=n;try{r.setItem(`PanelGroup:sizes:${e}`,JSON.stringify(o))}catch(e){console.error(e)}}const E2={};function C2(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}const T2={getItem:e=>(C2(T2),T2.getItem(e)),setItem:(e,t)=>{C2(T2),T2.setItem(e,t)}};function $2({autoSaveId:e,children:t=null,className:n="",direction:r,disablePointerEventsDuringResize:i=!1,forwardedRef:o,id:a=null,onLayout:s,storage:l=T2,style:u={},tagName:c="div",units:d="percentages"}){const f=H1(a),[h,p]=B1(null),[m,g]=B1(new Map),v=q1(null);q1({didLogDefaultSizeWarning:!1,didLogIdAndOrderWarning:!1,didLogInvalidLayoutWarning:!1,prevPanelIds:[]});const O=q1({onLayout:s});L1((()=>{O.current.onLayout=s}));const y=q1({}),[b,w]=B1([]),k=q1(new Map),x=q1(0),_=q1({direction:r,id:f,panels:m,sizes:b,units:d});F1(o,(()=>({getId:()=>f,getLayout:e=>{const{sizes:t,units:n}=_.current;if("pixels"===(e??n)){const e=a2(f);return t.map((t=>t/100*e))}return t},setLayout:(e,t)=>{const{id:n,panels:r,sizes:i,units:o}=_.current;if("pixels"===(t||o)){const t=a2(n);e=e.map((e=>e/t*100))}const a=y.current,s=h2(r),l=m2({groupId:n,panels:r,nextSizes:e,prevSizes:i,units:o});v2(i,l)||(w(l),i2(s,l,a))}})),[f]),Y1((()=>{_.current.direction=r,_.current.id=f,_.current.panels=m,_.current.sizes=b,_.current.units=d})),function({committedValuesRef:e,groupId:t,panels:n,setSizes:r,sizes:i,panelSizeBeforeCollapse:o}){L1((()=>{const{direction:n,panels:a}=e.current,s=l2(t);g2(null!=s,`No group found for id "${t}"`);const{height:l,width:u}=s.getBoundingClientRect(),c=d2(t).map((s=>{const c=s.getAttribute("data-panel-resize-handle-id"),d=h2(a),[f,h]=f2(t,c,d);if(null==f||null==h)return()=>{};let p=0,m=100,g=0,v=0;d.forEach((e=>{const{id:t,maxSize:n,minSize:r}=e.current;t===f?(p=r,m=null!=n?n:100):(g+=r,v+=null!=n?n:100)}));const O=Math.min(m,100-g),y=Math.max(p,100*(d.length-1)-v),b=s2(a,f,i);s.setAttribute("aria-valuemax",""+Math.round(O)),s.setAttribute("aria-valuemin",""+Math.round(y)),s.setAttribute("aria-valuenow",""+Math.round(parseInt(b)));const w=t=>{if(!t.defaultPrevented)switch(t.key){case"Enter":{t.preventDefault();const a=d.findIndex((e=>e.current.id===f));if(a>=0){const s=d[a],c=i[a];if(null!=c){let a=0;a=c.toPrecision(n2)<=s.current.minSize.toPrecision(n2)?"horizontal"===n?u:l:-("horizontal"===n?u:l);const d=r2(t,e.current,f,h,a,i,o.current,null);i!==d&&r(d)}}break}}};s.addEventListener("keydown",w);const k=function(e){return document.querySelector(`[data-panel-id="${e}"]`)||null}(f);return null!=k&&s.setAttribute("aria-controls",k.id),()=>{s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow"),s.removeEventListener("keydown",w),null!=k&&s.removeAttribute("aria-controls")}}));return()=>{c.forEach((e=>e()))}}),[e,t,n,o,r,i])}({committedValuesRef:_,groupId:f,panels:m,setSizes:w,sizes:b,panelSizeBeforeCollapse:k}),L1((()=>{const{onLayout:e}=O.current,{panels:t,sizes:n}=_.current;if(n.length>0){e&&e(n);const r=y.current;i2(h2(t),n,r)}}),[b]),Y1((()=>{const{id:t,sizes:n,units:r}=_.current;if(n.length===m.size)return;let i=null;if(e){const t=h2(m);i=function(e,t,n){const r=S2(e,n);return r?r[_2(t)]??null:null}(e,t,l)}if(null!=i){const e=m2({groupId:t,panels:m,nextSizes:i,prevSizes:i,units:r});w(e)}else{const e=function({groupId:e,panels:t,units:n}){const r="pixels"===n?a2(e):NaN,i=h2(t),o=Array(i.length);let a=0,s=100;for(let e=0;e{if(e){if(0===b.length||b.length!==m.size)return;const t=h2(m);E2[e]||(E2[e]=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(P2,100)),E2[e](e,t,b,l)}}),[e,m,b,l]),Y1((()=>{if("pixels"===d){const e=new ResizeObserver((()=>{const{panels:e,sizes:t}=_.current,n=m2({groupId:f,panels:e,nextSizes:t,prevSizes:t,units:d});v2(t,n)||w(n)}));return e.observe(l2(f)),()=>{e.disconnect()}}}),[f,d]);const S=W1(((e,t)=>{const{panels:n,units:r}=_.current,i=h2(n).findIndex((t=>t.current.id===e)),o=b[i];return"pixels"===(t??r)?o/100*a2(f):o}),[f,b]),P=W1(((e,t)=>{const{panels:n}=_.current;return 0===n.size?{flexBasis:0,flexGrow:null!=t?t:void 0,flexShrink:1,overflow:"hidden"}:{flexBasis:0,flexGrow:s2(n,e,b),flexShrink:1,overflow:"hidden",pointerEvents:i&&null!==h?"none":void 0}}),[h,i,b]),E=W1(((e,t)=>{const{units:n}=_.current;!function(e,t){const{collapsible:n,defaultSize:r,maxSize:i,minSize:o}=t.current;(o<0||"percentages"===e&&o>100)&&(t.current.minSize=0),null!=i&&(i<0||"percentages"===e&&i>100)&&(t.current.maxSize=null),null!==r&&(r<0||"percentages"===e&&r>100?t.current.defaultSize=null:ri&&(t.current.defaultSize=i))}(n,t),g((n=>{if(n.has(e))return n;const r=new Map(n);return r.set(e,t),r}))}),[]),C=W1((e=>t=>{t.preventDefault();const{direction:n,panels:r,sizes:i}=_.current,o=h2(r),[a,s]=f2(f,e,o);if(null==a||null==s)return;let l=function(e,t,n,r,i,o,a){const{dragOffset:s=0,dragHandleRect:l,sizes:u}=a||{},c=u||o;if(function(e){return"keydown"===e.type}(e)){const o="horizontal"===i,a=l2(t).getBoundingClientRect(),s=o?a.width:a.height,l=s/(e.shiftKey?10:100);let u=0;switch(e.key){case"ArrowDown":u=o?0:l;break;case"ArrowLeft":u=o?-l:0;break;case"ArrowRight":u=o?l:0;break;case"ArrowUp":u=o?0:-l;break;case"End":u=s;break;case"Home":u=-s}const[d,f]=f2(t,n,r),h=u<0?d:f,p=r.findIndex((e=>e.current.id===h)),m=r[p];if(m.current.collapsible){const e=c[p];0!==e&&e.toPrecision(n2)!==m.current.minSize.toPrecision(n2)||(u=u<0?-m.current.minSize*s:m.current.minSize*s)}return u}return O2(e,n,i,s,l)}(t,f,e,o,n,i,v.current);if(0===l)return;const u=l2(f).getBoundingClientRect(),c="horizontal"===n;"rtl"===document.dir&&c&&(l=-l);const d=l/(c?u.width:u.height)*100,h=r2(t,_.current,a,s,d,i,k.current,v.current),p=!v2(i,h);if((y2(t)||b2(t))&&x.current!=d&&function(e){if(w2===e)return;w2=e;const t=x2(e);null===k2&&(k2=document.createElement("style"),document.head.appendChild(k2)),k2.innerHTML=`*{cursor: ${t}!important;}`}(p?c?"horizontal":"vertical":c?l<0?"horizontal-min":"horizontal-max":l<0?"vertical-min":"vertical-max"),p){const e=y.current;w(h),i2(o,h,e)}x.current=d}),[f]),T=W1((e=>{g((t=>{if(!t.has(e))return t;const n=new Map(t);return n.delete(e),n}))}),[]),$=W1((e=>{const{panels:t,sizes:n}=_.current,r=t.get(e);if(null==r)return;const{collapsedSize:i,collapsible:o}=r.current;if(!o)return;const a=h2(t),s=a.indexOf(r);if(s<0)return;const l=n[s];if(l===i)return;k.current.set(e,l);const[u,c]=o2(e,a);if(null==u||null==c)return;const d=s===a.length-1?l:i-l,f=r2(null,_.current,u,c,d,n,k.current,null);if(n!==f){const e=y.current;w(f),i2(a,f,e)}}),[]),Q=W1((e=>{const{panels:t,sizes:n}=_.current,r=t.get(e);if(null==r)return;const{collapsedSize:i,minSize:o}=r.current,a=k.current.get(e)||o;if(!a)return;const s=h2(t),l=s.indexOf(r);if(l<0)return;if(n[l]!==i)return;const[u,c]=o2(e,s);if(null==u||null==c)return;const d=l===s.length-1?i-a:a,f=r2(null,_.current,u,c,d,n,k.current,null);if(n!==f){const e=y.current;w(f),i2(s,f,e)}}),[]),R=W1(((e,t,n)=>{const{id:r,panels:i,sizes:o,units:a}=_.current;"pixels"===(n||a)&&(t=t/a2(r)*100);const s=i.get(e);if(null==s)return;let{collapsedSize:l,collapsible:u,maxSize:c,minSize:d}=s.current;if("pixels"===a){const e=a2(r);d=d/e*100,null!=c&&(c=c/e*100)}const f=h2(i),h=f.indexOf(s);if(h<0)return;const p=o[h];if(p===t)return;u&&t===l||(t=Math.min(null!=c?c:100,Math.max(d,t)));const[m,g]=o2(e,f);if(null==m||null==g)return;const v=h===f.length-1?p-t:t-p,O=r2(null,_.current,m,g,v,o,k.current,null);if(o!==O){const e=y.current;w(O),i2(f,O,e)}}),[]),A=X1((()=>({activeHandleId:h,collapsePanel:$,direction:r,expandPanel:Q,getPanelSize:S,getPanelStyle:P,groupId:f,registerPanel:E,registerResizeHandle:C,resizePanel:R,startDragging:(e,t)=>{if(p(e),y2(t)||b2(t)){const n=u2(e);v.current={dragHandleRect:n.getBoundingClientRect(),dragOffset:O2(t,e,r),sizes:_.current.sizes}}},stopDragging:()=>{null!==k2&&(document.head.removeChild(k2),w2=null,k2=null),p(null),v.current=null},units:d,unregisterPanel:T})),[h,$,r,Q,S,P,f,E,C,R,d,T]),j={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return M1(K1.Provider,{children:M1(c,{children:t,className:n,"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":f,"data-panel-group-units":d,style:{...j,...u}}),value:A})}const Q2=z1(((e,t)=>M1($2,{...e,forwardedRef:t})));function R2({children:e=null,className:t="",disabled:n=!1,id:r=null,onDragging:i,style:o={},tagName:a="div"}){const s=q1(null),l=q1({onDragging:i});L1((()=>{l.current.onDragging=i}));const u=N1(K1);if(null===u)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{activeHandleId:c,direction:d,groupId:f,registerResizeHandle:h,startDragging:p,stopDragging:m}=u,g=H1(r),v=c===g,[O,y]=B1(!1),[b,w]=B1(null),k=W1((()=>{s.current.blur(),m();const{onDragging:e}=l.current;e&&e(!1)}),[m]);L1((()=>{if(n)w(null);else{const e=h(g);w((()=>e))}}),[n,g,h]),L1((()=>{if(n||null==b||!v)return;const e=e=>{b(e)},t=e=>{b(e)},r=s.current.ownerDocument;return r.body.addEventListener("contextmenu",k),r.body.addEventListener("mousemove",e),r.body.addEventListener("touchmove",e),r.body.addEventListener("mouseleave",t),window.addEventListener("mouseup",k),window.addEventListener("touchend",k),()=>{r.body.removeEventListener("contextmenu",k),r.body.removeEventListener("mousemove",e),r.body.removeEventListener("touchmove",e),r.body.removeEventListener("mouseleave",t),window.removeEventListener("mouseup",k),window.removeEventListener("touchend",k)}}),[d,n,v,b,k]),function({disabled:e,handleId:t,resizeHandler:n}){L1((()=>{if(e||null==n)return;const r=u2(t);if(null==r)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=c2(),r=function(e){const t=c2().findIndex((t=>t.getAttribute("data-panel-resize-handle-id")===e));return t??null}(t);g2(null!==r),n[e.shiftKey?r>0?r-1:n.length-1:r+1{r.removeEventListener("keydown",i)}}),[e,t,n])}({disabled:n,handleId:g,resizeHandler:b});const x={cursor:x2(d),touchAction:"none",userSelect:"none"};return M1(a,{children:e,className:t,"data-resize-handle-active":v?"pointer":O?"keyboard":void 0,"data-panel-group-direction":d,"data-panel-group-id":f,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":g,onBlur:()=>y(!1),onFocus:()=>y(!0),onMouseDown:e=>{p(g,e.nativeEvent);const{onDragging:t}=l.current;t&&t(!0)},onMouseUp:k,onTouchCancel:k,onTouchEnd:k,onTouchStart:e=>{p(g,e.nativeEvent);const{onDragging:t}=l.current;t&&t(!0)},ref:s,role:"separator",style:{...x,...o},tabIndex:0})}function A2(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Tq(t.components[n].defaultProps,r):r}function j2(e,t,n,r,i){const[o,a]=c.useState((()=>i&&n?n(e).matches:r?r(e).matches:t));return rL((()=>{if(!n)return;const t=n(e),r=()=>{a(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}}),[e,n]),o}$2.displayName="PanelGroup",Q2.displayName="forwardRef(PanelGroup)",R2.displayName="PanelResizeHandle";const D2={...d}.useSyncExternalStore;function M2(e,t,n,r,i){const o=c.useCallback((()=>t),[t]),a=c.useMemo((()=>{if(i&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return o}),[o,e,r,i,n]),[s,l]=c.useMemo((()=>{if(null===n)return[o,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]}),[o,n,e]);return D2(l,s,a)}function I2(e={}){const{themeId:t}=e;return function(e,n={}){let r=Hq();r&&t&&(r=r[t]||r);const i="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(i?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:l=!1}=A2({name:"MuiUseMediaQuery",props:n,theme:r});let u="function"==typeof e?e(r):e;return u=u.replace(/^@media( ?)/m,""),(void 0!==D2?M2:j2)(u,o,a,s,l)}}I2();const z2=I2({themeId:kq});var W2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 48 48"},e,{ref:t}),c.createElement("path",{d:"M10.5 8.25c0-.97.78-1.75 1.75-1.75H24v8.75A3.75 3.75 0 0 0 27.75 19h9.75v20.75c0 .97-.78 1.75-1.75 1.75H24.26c-.52.9-1.16 1.75-1.88 2.5h13.37C38.1 44 40 42.1 40 39.75V18.41c0-.6-.24-1.16-.66-1.59L27.18 4.66c-.43-.42-1-.66-1.6-.66H12.26A4.25 4.25 0 0 0 8 8.25V23c.8-.34 1.63-.6 2.5-.76V8.25Zm24.98 8.25h-7.73c-.69 0-1.25-.56-1.25-1.25V7.52l8.98 8.98ZM24 35a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-10-7a1 1 0 1 0-2 0v6H6a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6v-6Z"}))}));W2.displayName="DocumentAdd";var N2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))}));N2.displayName="DocumentDuplicate";var L2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}))}));L2.displayName="Eye";var F2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5a17.92 17.92 0 0 1-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}));F2.displayName="GlobeAlt";var U2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}));U2.displayName="Trash";var X2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M13 6.99h1.79c.45 0 .67-.54.35-.85l-2.79-2.78a.513.513 0 0 0-.71 0L8.86 6.14c-.32.31-.1.85.35.85H11v10.02H9.21c-.45 0-.67.54-.35.85l2.79 2.78c.2.19.51.19.71 0l2.79-2.78c.32-.31.09-.85-.35-.85H13V6.99z"}))}));X2.displayName="Height";var q2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))}));q2.displayName="MoreVert";var B2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z"}))}));B2.displayName="Publish";var V2=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M21.19 21.19 2.81 2.81 1.39 4.22l2.27 2.27A9.91 9.91 0 0 0 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.42zm-10.6-4.59-4.24-4.24 1.41-1.41 2.83 2.83.18-.18 1.41 1.41-1.59 1.59zm3-5.84-7.1-7.1A9.91 9.91 0 0 1 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51L15 12.17l2.65-2.65-1.41-1.41-2.65 2.65z"}))}));V2.displayName="Unpublished";const Y2=UD("EditorWorkflowToolbarButtons",["not-checked","status-label"]),Z2=({hasChanged:e,isPersisting:t,onPersist:n,currentStatus:r,isUpdatingStatus:i,onChangeStatus:o,disabled:a,isLoading:s,mobile:l,useOpenAuthoring:u})=>{const d=LD(),f=(0,c.useMemo)((()=>({[De.DRAFT]:d("editor.editorToolbar.draft"),[De.PENDING_REVIEW]:d("editor.editorToolbar.inReview"),[De.PENDING_PUBLISH]:d("editor.editorToolbar.ready")})),[d]),h=(0,c.useMemo)((()=>({[De.DRAFT]:"info",[De.PENDING_REVIEW]:"warning",[De.PENDING_PUBLISH]:"success"})),[]),p=(0,c.useCallback)((()=>{e&&n()}),[e,n]);return c.createElement(c.Fragment,null,r?u?c.createElement(c.Fragment,null,c.createElement(uJ,{className:Y2["status-label"],color:h[r]},f[r]),r===De.DRAFT?c.createElement(GD,{variant:"outlined",color:"warning",onClick:()=>o(De.PENDING_REVIEW)},d("workflow.openAuthoring.markReadyForReview")):null):c.createElement(NZ,{label:i?d("editor.editorToolbar.updating"):s?d("app.app.loading"):d("editor.editorToolbar.status",{status:f[r]}),color:"secondary",disabled:a,"aria-label":"change status options dropdown"},c.createElement(FZ,null,c.createElement(OG,{onClick:()=>o(De.DRAFT),startIcon:r===De.DRAFT?TH:void 0,contentClassName:r!==De.DRAFT?Y2["not-checked"]:""},f[De.DRAFT]),c.createElement(OG,{onClick:()=>o(De.PENDING_REVIEW),startIcon:r===De.PENDING_REVIEW?TH:void 0,contentClassName:r!==De.PENDING_REVIEW?Y2["not-checked"]:""},f[De.PENDING_REVIEW]),c.createElement(OG,{onClick:()=>o(De.PENDING_PUBLISH),startIcon:r===De.PENDING_PUBLISH?TH:void 0,contentClassName:r!==De.PENDING_PUBLISH?Y2["not-checked"]:""},f[De.PENDING_PUBLISH]))):l?c.createElement("div",null):null,c.createElement(GD,{disabled:!e||a,onClick:p,color:e?"primary":"secondary",variant:e?"contained":"outlined","aria-label":"save unpublished entry"},d(t?"editor.editorToolbar.saving":"editor.editorToolbar.save")))},G2=UD("EditorToolbar",["root","more-menu","more-menu-button","more-menu-label-icon","preview-toggle","discard-button","delete-button","publish-button","publish-button-icon","publish-button-label","workflow-controls"]),H2=({hasChanged:e,collection:t,onDuplicate:n,isPersisting:r=!1,onPersist:i,onPersistAndDuplicate:o,onPersistAndNew:a,isNewEntry:s,isModification:l,onDelete:u,showPreviewToggle:d,previewActive:f,scrollSyncActive:h,showI18nToggle:p,i18nActive:m,togglePreview:g,toggleScrollSync:v,toggleI18n:O,slug:y,className:b,showMobilePreview:w,onMobilePreviewToggle:k,onDiscardDraft:x,currentStatus:_,isUpdatingStatus:S,onChangeStatus:P,hasUnpublishedChanges:E,isPublishing:C,onPublish:T,onUnPublish:$,onDeleteUnpublishedChanges:Q,onPublishAndNew:R,onPublishAndDuplicate:A,disabled:j})=>{const D=LD(),M=pz(kG),I=(0,c.useMemo)((()=>{var e;return null!==(e="folder"in t&&t.create)&&void 0!==e&&e}),[t]),z=(0,c.useMemo)((()=>_P(t)),[t]),W=(0,c.useMemo)((()=>function(e,t){var n;const r=yP(e,t);return r?r.publish:!("publish"in e)||null===(n=e.publish)||void 0===n||n}(t,y)&&!M),[t,y,M]),N=(0,c.useMemo)((()=>!s&&!e),[e,s]),L=pz(bG),F=pz(vC),U=hz(),X=(0,c.useCallback)((async()=>{y&&await YM({title:"editor.editorToolbar.discardChangesTitle",body:{key:"editor.editorToolbar.discardChangesBody"},color:"warning"})&&(await U(LI(t,y)),F?await U(Yz(t,y)):await U(FI(t,y)),x())}),[t,U,x,y,F]),q=(0,c.useCallback)((()=>{F?T():i()}),[i,T,F]),B=(0,c.useCallback)((()=>{F?R():a()}),[a,R,F]),V=(0,c.useCallback)((()=>{F?A():o()}),[o,A,F]),Y=(0,c.useMemo)((()=>{const e=[];!F&&!N||F&&E?(e.push(c.createElement(OG,{key:"publishNow",onClick:q,startIcon:B2,"data-testid":"publish-now-button"},D("editor.editorToolbar.publishNow"))),I&&e.push(c.createElement(OG,{key:"publishAndCreateNew",onClick:B,startIcon:W2,"data-testid":"publish-and-create-new-button"},D("editor.editorToolbar.publishAndCreateNew")),c.createElement(OG,{key:"publishAndDuplicate",onClick:V,startIcon:N2,"data-testid":"publish-and-duplicate-button"},D("editor.editorToolbar.publishAndDuplicate")))):I&&e.push(c.createElement(OG,{key:"duplicate",onClick:n,startIcon:N2,"data-testid":"duplicate-button"},D("editor.editorToolbar.duplicate")));const t=[e];return F&&I&&W&&z&&t.push([c.createElement(OG,{key:"unpublish",onClick:$,startIcon:V2,color:"warning","data-testid":"unpublish-button"},D("editor.editorToolbar.unpublish"))]),t}),[I,z,W,V,B,q,E,N,n,$,D,F]),Z=(0,c.useMemo)((()=>E?l?"editor.editorToolbar.deleteUnpublishedChanges":s||!l?"editor.editorToolbar.deleteUnpublishedEntry":void 0:s||l?void 0:"editor.editorToolbar.deletePublishedEntry"),[E,l,s]),G=(0,c.useMemo)((()=>F?C?"editor.editorToolbar.publishing":E?"editor.editorToolbar.publish":s?void 0:"editor.editorToolbar.published":r?"editor.editorToolbar.publishing":N?"editor.editorToolbar.published":"editor.editorToolbar.publish"),[E,s,r,N,C,F]);return c.createElement("div",{className:qD(G2.root,b)},p||d||z||e?c.createElement(NZ,{key:"extra-menu",label:c.createElement(q2,{className:G2["more-menu-label-icon"]}),color:"secondary",variant:"text",rootClassName:G2["more-menu"],buttonClassName:G2["more-menu-button"],hideDropdownIcon:!0,"aria-label":"more options dropdown",disabled:j,"data-testid":"editor-extra-menu"},p||d?c.createElement(FZ,null,p&&c.createElement(OG,{onClick:O,startIcon:F2,endIcon:m?TH:void 0},D("editor.editorInterface.sideBySideI18n")),d&&c.createElement(c.Fragment,null,c.createElement(OG,{onClick:g,disabled:L,startIcon:L2,endIcon:f&&!m?TH:void 0},D("editor.editorInterface.preview")),c.createElement(OG,{onClick:v,disabled:L||!m&&!f,startIcon:X2,endIcon:h&&(m||f)?TH:void 0},D("editor.editorInterface.toggleScrollSync")))):null,e?c.createElement(FZ,{key:"discard-button"},c.createElement(OG,{key:"discardChanges",onClick:X,startIcon:U2,color:"warning","data-testid":"discard-button"},D("editor.editorToolbar.discardChanges"))):null,!z||M&&!E||F&&!Z?null:c.createElement(FZ,{key:"delete-button"},c.createElement(OG,{onClick:F&&Z&&"editor.editorToolbar.deletePublishedEntry"!==Z?Q:u,startIcon:U2,color:"error","data-testid":"delete-button"},D(F?Z:"editor.editorToolbar.deleteEntry")))):null,d?c.createElement(FN,{icon:L2,key:"show-preview-button",title:D("editor.editorInterface.preview"),variant:w?"contained":"text",onClick:k,rootClassName:G2["preview-toggle"],"aria-label":"toggle preview",disabled:j}):null,e?c.createElement(FN,{icon:U2,key:"discard-button",title:D("editor.editorToolbar.discardChanges"),color:"warning",variant:"text",onClick:X,rootClassName:G2["discard-button"],"aria-label":"discard chnages",disabled:j}):!z||M&&!E||F&&!Z?null:c.createElement(FN,{icon:U2,key:"delete-button",title:D(F?Z:"editor.editorToolbar.deleteEntry"),color:"error",variant:"text",onClick:F&&Z&&"editor.editorToolbar.deletePublishedEntry"!==Z?Q:u,rootClassName:G2["delete-button"],"aria-label":"delete",disabled:j}),F?c.createElement("div",{className:G2["workflow-controls"]},c.createElement(Z2,{hasChanged:e,isPersisting:r,onPersist:i,currentStatus:_,isUpdatingStatus:S,disabled:j,onChangeStatus:P,isLoading:L,useOpenAuthoring:M})):null,!M&&G?c.createElement(NZ,{label:D(G),color:"editor.editorToolbar.published"===G?"success":"primary",disabled:j||1==Y.length&&0===Y[0].length,startIcon:B2,rootClassName:G2["publish-button"],iconClassName:G2["publish-button-icon"],labelClassName:G2["publish-button-label"],hideDropdownIconOnMobile:!0,"aria-label":"publish options dropdown","data-testid":"publish-dropdown"},Y.map(((e,t)=>c.createElement(FZ,{key:`menu-group-${t}`},e)))):null)};function K2(e){return null==e||Array.isArray(e)&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||"string"==typeof e&&""===e}function J2({field:e,value:t,t:n}){var r,i;return!(null!==(r=e.required)&&void 0!==r&&!r||!K2(t))&&{type:FE.PRESENCE,message:n("editor.editorControlPane.widget.required",{fieldLabel:null!==(i=e.label)&&void 0!==i?i:e.name})}}function e3({field:e,value:t,t:n}){var r;const i=null!==(r=e.pattern)&&void 0!==r&&r;if(K2(t))return!1;let o;var a;return o="string"==typeof t?t:"number"==typeof t||"boolean"==typeof t?`${t}`:JSON.stringify(t),!(!i||K2(o)||RegExp(i[0]).test(o))&&{type:FE.PATTERN,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:null!==(a=e.label)&&void 0!==a?a:e.name,pattern:i[1]})}}const t3=cC([function(e){return e.medias}],(e=>Object.values(e).some((e=>e.isLoading))));function n3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r3(e){for(var t=1;t{a(function(e,t){return{type:uQ,payload:{searchTerm:e,request:void 0}}}(r));const l=s(),u=l.config;if(!u.config)return a(e0(new Error("Config not found")));const c=DC(u.config),d=Object.values(l.collections).find((e=>e.name===t));if(!d)return a(e0(new Error("Collection not found")));try{const t=await c.query(d,u.config,n,r,i,o);return a(function(e,t){return{type:cQ,payload:{namespace:e,hits:t}}}(e,t.hits))}catch(e){if(console.error(e),e instanceof Error)return a(e0(e))}}}},s3=xT((function(e,t){var n;const{collections:r,entryDraft:i}=e,o=i.entry,a=i.entry?r[i.entry.collection]:null,s=yP(a,null===(n=i.entry)||void 0===n?void 0:n.slug),l=t3(e);return r3(r3({},t),{},{config:e.config,entry:o,collection:a,collectionFile:s,isLoadingAsset:l})}),a3),l3=s3((({collection:e,collectionFile:t,config:n,entry:r,field:i,fieldsErrors:o,submitted:a,disabled:s,parentDuplicate:l=!1,locale:u,parentPath:d,query:f,value:h,forList:p=!1,listItemPath:m,forSingleList:g=!1,changeDraftField:v,i18n:O,fieldName:y,isMeta:b=!1,controlled:w=!1})=>{const k=LD(),x=hz(),_=Wz(),S=i.widget,P=PE(S),E=(0,c.useMemo)((()=>d.length>0?`${d}.${null!=y?y:i.name}`:null!=y?y:i.name),[i.name,y,d]),C=function(e,t){const n=(0,c.useRef)(e),r=n.current,i=t(r,e);return(0,c.useEffect)((()=>{i||(n.current=e)})),i?r:e}(h,tP()),[T,$]=(0,c.useState)((()=>P.converters.deserialize(C,i))),[Q,R]=(0,c.useState)(!C0()(P.getValidValue(T,i))),A=pz((e=>HM(e,E,O,b))),j=(a||Q)&&Boolean(A.length),D=(0,c.useMemo)((()=>l||Jk(i,u,null==O?void 0:O.defaultLocale)),[i,null==O?void 0:O.defaultLocale,l,u]),M=(0,c.useMemo)((()=>function(e,t,n){return t!==n&&e.i18n===Gk}(i,u,null==O?void 0:O.defaultLocale)||Jk(i,u,null==O?void 0:O.defaultLocale)),[i,null==O?void 0:O.defaultLocale,u]),I=function(e,t,n){return(0,c.useMemo)((()=>function(e,t,n){return!(!e.condition||!t||(Array.isArray(e.condition)?e.condition.find((e=>hx(t,e,n))):hx(t,e.condition,n)))}(e,t,n)),[t,e,n])}(i,r,m);(0,c.useEffect)((()=>{(["list","object"].includes(i.widget)||M)&&$(C)}),[C]),(0,c.useEffect)((()=>{I?x(zI(E,[],O,b)):!Q&&!a||s||M||p&&"object"===i.widget&&1===i.fields.length||!1===(null==O?void 0:O.enforceRequiredNonDefault)&&(null==O?void 0:O.currentLocale)!==(null==O?void 0:O.defaultLocale)||(async()=>{const e=await async function(e,t,n,r){const i=n.getValidValue(t,e),o=[],a=[J2,e3,n.validator];for(const t of a){const n=await t({field:e,value:i,t:r});n&&o.push(n)}return o}(i,T,P,k);x(zI(E,e,O,b))})()}),[Q,x,i,O,I,E,a,k,T,P,s,b,M,p,g]);const z=(0,c.useCallback)((()=>{x(function(e,t,n){return{type:x$,payload:{path:e,i18n:t,isMeta:n}}}(E,O,b))}),[x,O,b,E]),W=y0((0,c.useCallback)((async e=>{R((t=>t||!C0()(P.getValidValue(e,i)))),$(e),v({path:E,field:i,value:P.converters.serialize(e,i),i18n:O,isMeta:b})}),[v,i,O,b,E,P]),250),N=(0,c.useMemo)((()=>n.config),[n.config]),[L,F]=(0,c.useState)(0);return(0,c.useEffect)((()=>{if(!Ie(T))return"default"in i&&Ie(!i.default)?(P.getDefaultValue?W(P.getDefaultValue(i.default,i)):W(i.default),void F((e=>e+1))):void(P.getDefaultValue&&(W(P.getDefaultValue(null,i)),F((e=>e+1))))}),[i,T,W,P]),(0,c.useMemo)((()=>e&&r&&N&&"hidden"!==i.widget?c.createElement("div",{className:qD(o3.root,I&&o3.hidden),"aria-label":null==S?void 0:S.concat(" field")},(0,c.createElement)(P.control,{key:`${_}-${L}`,collection:e,collectionFile:t,config:N,entry:r,field:i,fieldsErrors:o,submitted:a,disabled:s||D||w||M,duplicate:D,label:gx(i,k),locale:u,onChange:W,clearChildValidation:z,path:E,query:f,t:k,value:T,forList:p,listItemPath:m,forSingleList:g,i18n:O,hasErrors:j,errors:A,controlled:w||M})):null),[e,N,i,I,P.control,_,L,o,a,s,D,k,u,W,E,f,T,p,m,g,O,j,A])})),u3={};function c3(e,t){const n=c.useRef(u3);return n.current===u3&&(n.current=e(t)),n}const d3=[];class f3{static create(){return new f3}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function h3(){const e=c3(f3.create).current;return function(e){c.useEffect(e,d3)}(e.disposeEffect),e}function p3(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function m3(e){return`scale(${e}, ${e**2})`}const g3={entering:{opacity:1,transform:m3(1)},entered:{opacity:1,transform:"none"}},v3="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),O3=c.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:h,style:p,timeout:m="auto",TransitionComponent:g=Gq,...v}=e,O=h3(),y=c.useRef(),b=eB(),w=c.useRef(null),k=rB(w,HN(i),t),x=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},_=x(u),S=x(((e,t)=>{tB(e);const{duration:n,delay:r,easing:i}=nB({style:p,timeout:m,easing:o},{mode:"enter"});let a;"auto"===m?(a=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:v3?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)})),P=x(l),E=x(h),C=x((e=>{const{duration:t,delay:n,easing:r}=nB({style:p,timeout:m,easing:o},{mode:"exit"});let i;"auto"===m?(i=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:v3?i:.666*i,delay:v3?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=m3(.75),d&&d(e)})),T=x(f);return(0,lM.jsx)(g,{appear:r,in:a,nodeRef:w,onEnter:S,onEntered:P,onEntering:_,onExit:C,onExited:T,onExiting:E,addEndListener:e=>{"auto"===m&&O.start(y.current||0,e),n&&n(w.current,e)},timeout:"auto"===m?null:m,...v,children:(e,{ownerState:t,...n})=>c.cloneElement(i,{style:{opacity:0,transform:m3(.75),visibility:"exited"!==e||a?void 0:"hidden",...g3[e],...p,...i.props.style},ref:k,...n})})}));O3&&(O3.muiSupportAuto=!0);const y3=O3,b3=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:jq(n,r),{props:s,internalRef:l}=Iq({...o,externalSlotProps:a}),u=GN(l,a?.ref,e.additionalProps?.ref);return Aq(t,{...s,ref:u},r)};function w3(e){return cB("MuiPopper",e)}function k3(e){return"function"==typeof e?e():e}dB("MuiPopper",["root"]);const x3={},_3=c.forwardRef((function(e,t){const{anchorEl:n,children:r,direction:i,disablePortal:o,modifiers:a,open:s,placement:l,popperOptions:u,popperRef:d,slotProps:f={},slots:h={},TransitionProps:p,ownerState:m,...g}=e,v=c.useRef(null),O=GN(v,t),y=c.useRef(null),b=GN(y,d),w=c.useRef(b);rL((()=>{w.current=b}),[b]),c.useImperativeHandle(d,(()=>y.current),[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(l,i),[x,_]=c.useState(k),[S,P]=c.useState(k3(n));c.useEffect((()=>{y.current&&y.current.forceUpdate()})),c.useEffect((()=>{n&&P(k3(n))}),[n]),rL((()=>{if(!S||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{_(e.placement)})(e)}}];null!=a&&(e=e.concat(a)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=gY(S,v.current,{placement:k,...u,modifiers:e});return w.current(t),()=>{t.destroy(),w.current(null)}}),[S,o,a,s,u,k]);const E={placement:x};null!==p&&(E.TransitionProps=p);const C=(e=>{const{classes:t}=e;return qN({root:["root"]},w3,t)})(e),T=h.root??"div",$=b3({elementType:T,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:C.root});return(0,lM.jsx)(T,{...$,children:"function"==typeof r?r(E):r})})),S3=c.forwardRef((function(e,t){const{anchorEl:n,children:r,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:d="bottom",popperOptions:f=x3,popperRef:h,style:p,transition:m=!1,slotProps:g={},slots:v={},...O}=e,[y,b]=c.useState(!0);if(!s&&!u&&(!m||y))return null;let w;if(i)w=i;else if(n){const e=k3(n);w=e&&void 0!==e.nodeType?KN(e).body:KN(null).body}const k=u||!s||m&&!y?void 0:"none",x=m?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return(0,lM.jsx)(iL,{disablePortal:a,container:w,children:(0,lM.jsx)(_3,{anchorEl:n,direction:o,disablePortal:a,modifiers:l,ref:t,open:m?!y:u,placement:d,popperOptions:f,popperRef:h,slotProps:g,slots:v,...O,style:{position:"fixed",top:0,left:0,display:k,...p},TransitionProps:x,children:r})})})),P3=Pq(S3,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E3=c.forwardRef((function(e,t){const n=VN(),r=Rq({props:e,name:"MuiPopper"}),{anchorEl:i,component:o,components:a,componentsProps:s,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:f,placement:h,popperOptions:p,popperRef:m,transition:g,slots:v,slotProps:O,...y}=r,b=v?.root??a?.Root,w={anchorEl:i,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:f,placement:h,popperOptions:p,popperRef:m,transition:g,...y};return(0,lM.jsx)(P3,{as:o,direction:n?"rtl":"ltr",slots:{root:b},slotProps:O??s,...w,ref:t})})),C3=E3,T3=gB;let $3=0;const Q3={...d}.useId;function R3(e){if(void 0!==Q3){const t=Q3();return e??t}return function(e){const[t,n]=c.useState(e),r=e||t;return c.useEffect((()=>{null==t&&($3+=1,n(`mui-${$3}`))}),[t]),r}(e)}const A3=R3;function j3({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=c.useRef(void 0!==e),[o,a]=c.useState(t);return[i?e:o,c.useCallback((e=>{i||a(e)}),[])]}const D3=j3;function M3(e){return cB("MuiTooltip",e)}const I3=dB("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),z3=Pq(C3,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Cq((({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${I3.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${I3.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${I3.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${I3.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${I3.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${I3.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${I3.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${I3.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),W3=Pq("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${LB(n.placement.split("-")[0])}`]]}})(Cq((({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xX(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${I3.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${I3.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${I3.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${I3.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${I3.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${I3.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${I3.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${I3.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${I3.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${I3.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]})))),N3=Pq("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Cq((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xX(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let L3=!1;const F3=new f3;let U3={x:0,y:0};function X3(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const q3=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:i,classes:o,components:a={},componentsProps:s={},describeChild:l=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:g=700,followCursor:v=!1,id:O,leaveDelay:y=0,leaveTouchDelay:b=1500,onClose:w,onOpen:k,open:x,placement:_="bottom",PopperComponent:S,PopperProps:P={},slotProps:E={},slots:C={},title:T,TransitionComponent:$,TransitionProps:Q,...R}=n,A=c.isValidElement(i)?i:(0,lM.jsx)("span",{children:i}),j=eB(),D=VN(),[M,I]=c.useState(),[z,W]=c.useState(null),N=c.useRef(!1),L=f||v,F=h3(),U=h3(),X=h3(),q=h3(),[B,V]=D3({controlled:x,default:!1,name:"Tooltip",state:"open"});let Y=B;const Z=A3(O),G=c.useRef(),H=T3((()=>{void 0!==G.current&&(document.body.style.WebkitUserSelect=G.current,G.current=void 0),q.clear()}));c.useEffect((()=>H),[H]);const K=e=>{F3.clear(),L3=!0,V(!0),k&&!Y&&k(e)},J=T3((e=>{F3.start(800+y,(()=>{L3=!1})),V(!1),w&&Y&&w(e),F.start(j.transitions.duration.shortest,(()=>{N.current=!1}))})),ee=e=>{N.current&&"touchstart"!==e.type||(M&&M.removeAttribute("title"),U.clear(),X.clear(),p||L3&&m?U.start(L3?m:p,(()=>{K(e)})):K(e))},te=e=>{U.clear(),X.start(y,(()=>{J(e)}))},[,ne]=c.useState(!1),re=e=>{p3(e.target)||(ne(!1),te(e))},ie=e=>{M||I(e.currentTarget),p3(e.target)&&(ne(!0),ee(e))},oe=e=>{N.current=!0;const t=A.props;t.onTouchStart&&t.onTouchStart(e)};c.useEffect((()=>{if(Y)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&J(e)}}),[J,Y]);const ae=rB(HN(A),I,t);T||0===T||(Y=!1);const se=c.useRef(),le={},ue="string"==typeof T;l?(le.title=Y||!ue||d?null:T,le["aria-describedby"]=Y?Z:null):(le["aria-label"]=ue?T:null,le["aria-labelledby"]=Y&&!ue?Z:null);const ce={...le,...R,...A.props,className:XN(R.className,A.props.className),onTouchStart:oe,ref:ae,...v?{onMouseMove:e=>{const t=A.props;t.onMouseMove&&t.onMouseMove(e),U3={x:e.clientX,y:e.clientY},se.current&&se.current.update()}}:{}},de={};h||(ce.onTouchStart=e=>{oe(e),X.clear(),F.clear(),H(),G.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",q.start(g,(()=>{document.body.style.WebkitUserSelect=G.current,ee(e)}))},ce.onTouchEnd=e=>{A.props.onTouchEnd&&A.props.onTouchEnd(e),H(),X.start(b,(()=>{J(e)}))}),d||(ce.onMouseOver=X3(ee,ce.onMouseOver),ce.onMouseLeave=X3(te,ce.onMouseLeave),L||(de.onMouseOver=ee,de.onMouseLeave=te)),u||(ce.onFocus=X3(ie,ce.onFocus),ce.onBlur=X3(re,ce.onBlur),L||(de.onFocus=ie,de.onBlur=re));const fe={...n,isRtl:D,arrow:r,disableInteractive:L,placement:_,PopperComponentProp:S,touch:N.current},he="function"==typeof E.popper?E.popper(fe):E.popper,pe=c.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(z),options:{element:z,padding:4}}];return P.popperOptions?.modifiers&&(e=e.concat(P.popperOptions.modifiers)),he?.popperOptions?.modifiers&&(e=e.concat(he.popperOptions.modifiers)),{...P.popperOptions,...he?.popperOptions,modifiers:e}}),[z,P.popperOptions,he?.popperOptions]),me=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e;return qN({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${LB(o.split("-")[0])}`],arrow:["arrow"]},M3,t)})(fe),ge="function"==typeof E.transition?E.transition(fe):E.transition,ve={slots:{popper:a.Popper,transition:a.Transition??$,tooltip:a.Tooltip,arrow:a.Arrow,...C},slotProps:{arrow:E.arrow??s.arrow,popper:{...P,...he??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...Q,...ge??s.transition}}},[Oe,ye]=zq("popper",{elementType:z3,externalForwardedProps:ve,ownerState:fe,className:XN(me.popper,P?.className)}),[be,we]=zq("transition",{elementType:y3,externalForwardedProps:ve,ownerState:fe}),[ke,xe]=zq("tooltip",{elementType:W3,className:me.tooltip,externalForwardedProps:ve,ownerState:fe}),[_e,Se]=zq("arrow",{elementType:N3,className:me.arrow,externalForwardedProps:ve,ownerState:fe,ref:W});return(0,lM.jsxs)(c.Fragment,{children:[c.cloneElement(A,ce),(0,lM.jsx)(Oe,{as:S??C3,placement:_,anchorEl:v?{getBoundingClientRect:()=>({top:U3.y,left:U3.x,right:U3.x,bottom:U3.y,width:0,height:0})}:M,popperRef:se,open:!!M&&Y,id:Z,transition:!0,...de,...ye,popperOptions:pe,children:({TransitionProps:e})=>(0,lM.jsx)(be,{timeout:j.transitions.duration.shorter,...e,...we,children:(0,lM.jsxs)(ke,{...xe,children:[T,r?(0,lM.jsx)(_e,{...Se}):null]})})})]})})),B3=q3;var V3=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}));V3.displayName="Error";const Y3=UD("LocaleDropdown",["root","dropdown","errors-icon","no-edit"]),Z3=({locale:e,locales:t,defaultLocale:n,dropdownText:r,canChangeLocale:i,onLocaleChange:o,excludeLocales:a=[n]})=>{const s=pz(GM),l=(0,c.useMemo)((()=>t.reduce(((r,i)=>{if(i===e||a.includes(i))return r;const o=ZM({currentLocale:i,defaultLocale:n,locales:t},!1).join(".");return r.push(...Object.keys(s).reduce(((e,t)=>(t.startsWith(o)&&e.push(...s[t].filter((e=>e.message)).map((e=>`${i}: ${e.message}`))),e)),[])),r}),[]).map(((e,t)=>0===t?e:c.createElement(c.Fragment,null,c.createElement("br",null),e)))),[s,n,a,e,t]);return i?c.createElement("div",{className:Y3.root},c.createElement(NZ,{label:r,rootClassName:Y3.dropdown,"aria-label":"locale options dropdown"},c.createElement(FZ,null,t.filter((e=>!a.includes(e))).map((e=>c.createElement(OG,{key:e,onClick:()=>null==o?void 0:o(e)},e))))),l.length>0?c.createElement(B3,{title:l},c.createElement(V3,{className:Y3["errors-icon"]})):null):c.createElement("div",{className:qD(Y3.root,"CMS_Button_root",Y3["no-edit"])},r)},G3=UD("EditorControlPane",["root","no-border","locale_dropdown_wrapper"]),H3=({collection:e,entry:t,fields:n,fieldsErrors:r,submitted:i,locale:o,canChangeLocale:a=!1,hideBorder:s,slug:l,onLocaleChange:u,allowDefaultLocale:d=!1,context:f="default",listItemPath:h,disabled:p})=>{var m,g,v;const O=LD(),y=(0,c.useMemo)((()=>{var t,n;return{name:"path",label:"nested"in e&&null!==(t=e.nested)&&void 0!==t&&null!==(n=t.path)&&void 0!==n&&n.label?e.nested.path.label:"Path",widget:"string",i18n:"none",hint:""}}),[e]),b=pz(dC),w=(0,c.useMemo)((()=>GE(e,t,l,null==b?void 0:b.slug)),[e,b,t,l]),k=(0,c.useMemo)((()=>{if(Hk(e)){const{locales:t,default_locale:n,enforce_required_non_default:r}=Kk(e);return{currentLocale:null!=o?o:null==t?void 0:t[0],locales:t,defaultLocale:n,enforceRequiredNonDefault:r}}}),[e,o]);return e&&n&&t&&!0!==t.partial?c.createElement("div",{className:qD(G3.root,s&&G3["no-border"])},null!=k&&k.locales&&o?c.createElement("div",{className:G3.locale_dropdown_wrapper},c.createElement(Z3,{locale:o,locales:k.locales,defaultLocale:k.defaultLocale,dropdownText:O("editor.editorControlPane.i18n.writingInLocale",{locale:null==o?void 0:o.toUpperCase()}),canChangeLocale:a,onLocaleChange:u,excludeLocales:d||"i18nSplit"!==f?[]:[k.defaultLocale]})):null,"nested"in e&&null!==(m=e.nested)&&void 0!==m&&m.path?c.createElement(l3,{key:"entry-path",field:y,value:null!==(g=null===(v=t.meta)||void 0===v?void 0:v.path)&&void 0!==g?g:w,fieldsErrors:r,submitted:i,locale:o,parentPath:"",i18n:k,listItemPath:h,controlled:!0,isMeta:!0,disabled:p}):null,n.map((e=>{const n=function(e,t,n){return t!==n&&e.i18n===Yk}(e,o,null==k?void 0:k.defaultLocale),a=k?`field-${o}_${e.name}`:`field-${e.name}`;return c.createElement(l3,{key:a,field:e,value:yx(e,t,n,o),fieldsErrors:r,submitted:i,locale:o,parentPath:"",i18n:k,listItemPath:h,disabled:p})}))):null};var K3=__webpack_require__(15836);class J3 extends CustomEvent{constructor(){super("livePreviewLoaded",{})}}const e4=/\s+at.*[(\s](.*)\)?/,t4=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;function n4(e,{pretty:t=!1,basePath:n,pathFilter:r}={}){const i=n&&new RegExp(`(file://)?${function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(n.replace(/\\/g,"/"))}/?`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(e4);if(null===t||!t[1])return!0;const n=t[1];return!(n.includes(".app/Contents/Resources/electron.asar")||n.includes(".app/Contents/Resources/default_app.asar")||n.includes("node_modules/electron/dist/resources/electron.asar")||n.includes("node_modules/electron/dist/resources/default_app.asar"))&&(r?!t4.test(n)&&r(n):!t4.test(n))})).filter((e=>""!==e.trim())).map((e=>(i&&(e=e.replace(i,"")),t&&(e=e.replace(e4,((e,t)=>e.replace(t,t.replace("","~"))))),e))).join("\n")}const r4=UD("ErrorBoundary",["root","header","title","report-link","content","details-title","error-line"]),i4="https://github.com/StaticJsCMS/static-cms/issues/new?";function o4(e,t){try{const n=function(e){var t,n;let r="";r="@staticcms/app@4.3.0";const i=function(e,t,n,r){return`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Static CMS version: \`${e}\`\n - Git provider: \`${t}\`\n - Browser version: \`${n}\`\n\n**CMS configuration**\n\`\`\`\n${r}\n\`\`\`\n\n**Additional context**\n`}("@staticcms/app@4.3.0",null!==(t=null==e||null===(n=e.backend)||void 0===n?void 0:n.name)&&void 0!==t?t:"Unknown",navigator.userAgent,Ri.stringify(e));return i}(t),r=new URLSearchParams;return r.append("title",fs()(e,{length:100})),r.append("body",fs()(n,{length:4e3,omission:"\n..."})),r.append("labels","type: bug"),`${i4}${r.toString()}`}catch(e){return console.error(e),`${i4}template=bug_report.md`}}const a4=({entry:e})=>{const t=LD();return console.info("[StaticCMS] Recovered entry",e),c.createElement(c.Fragment,null,c.createElement("hr",null),c.createElement("h2",null,t("ui.errorBoundary.recoveredEntry.heading")),c.createElement("strong",null,t("ui.errorBoundary.recoveredEntry.warning")),c.createElement("button",{onClick:()=>v1(e)},t("ui.errorBoundary.recoveredEntry.copyButtonLabel")),c.createElement("pre",null,c.createElement("code",null,e)))};class s4 extends c.Component{constructor(...e){super(...e),function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"state",{hasError:!1,errorMessage:"",errorTitle:"",backup:""})}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:n4(e.stack,{basePath:window.location.origin||""}),errorTitle:e.toString()}}shouldComponentUpdate(e,t){return!this.props.showBackup||this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup}async componentDidUpdate(){if(this.props.showBackup){const e=await ZS.getItem("backup");e&&(console.info("[StaticCMS] Recovered backup",e),this.setState({backup:e}))}}render(){const{hasError:e,errorMessage:t,backup:n,errorTitle:r}=this.state,{showBackup:i,t:o}=this.props;return e?c.createElement("div",{key:"error-boundary-container",className:r4.root},c.createElement("div",{className:r4.header},c.createElement("h1",{className:r4.title},o("ui.errorBoundary.title")),c.createElement("p",null,c.createElement("span",null,o("ui.errorBoundary.details")),c.createElement("a",{href:o4(r,this.props.config),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url",className:r4["report-link"]},o("ui.errorBoundary.reportIt"))),c.createElement("p",null,o("ui.errorBoundary.privacyWarning").split("\n").map(((e,t)=>[c.createElement("span",{key:`private-warning-${t}`},e),c.createElement("br",{key:`break-${t}`})])))),c.createElement("hr",null),c.createElement("div",{className:r4.content},c.createElement("h2",{className:r4["details-title"]},o("ui.errorBoundary.detailsHeading")),c.createElement("p",null,t.split("\n").map(((e,t)=>[c.createElement("span",{key:`error-line-${t}`,className:r4["error-line"]},e),c.createElement("br",{key:`error-break-${t}`})]))),n&&i&&c.createElement(a4,{key:"backup",entry:n}))):this.props.children}}const l4=s4,u4=({collection:e,fields:t,widgetFor:n})=>e&&t?c.createElement("div",null,t.map((e=>c.createElement("div",{key:e.name},n(e.name))))):null,c4=(0,c.memo)((({previewComponent:e,previewProps:t})=>e?(0,c.createElement)(e,t):null));c4.displayName="EditorPreviewContent";const d4=c4;function f4(){const e=TG(),t=pz(wG);return(0,c.useMemo)((()=>{var n;return null!==(n=e.find((e=>e.name.toLowerCase()===t)))&&void 0!==n?n:SG[0]}),[e,t])}function h4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p4(e){for(var t=1;t{const n=(0,c.useRef)(),r=f4();return c.createElement(K3.Kr,null,(i=>{var o,a;return n.current||(n.current=null===(a=i.document)||void 0===a?void 0:a.scrollingElement),c.createElement(sH,{theme:r,element:null===(o=i.document)||void 0===o?void 0:o.documentElement},c.createElement(vD.ScrollSyncPane,{key:"preview-frame-scroll-sync",attachTo:n},c.createElement("div",{className:g4.root},c.createElement("div",{className:g4.content},c.createElement(d4,{key:"preview-frame-content",previewComponent:e,previewProps:p4(p4({},t),{},{document:i.document,window:i.window})})))))}))};function O4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y4(e){for(var t=1;t{const t=LD(),{editorSize:n,entry:r,collection:i,fields:o,previewInFrame:a,livePreviewUrlTemplate:s,showMobilePreview:l}=e,u=pz(fC),d=pz(dC),{widgetFor:f,widgetsFor:h}=sJ(d,i,o,r),p=(0,c.useMemo)((()=>{const e=yE().map(((e,t)=>e.raw?c.createElement("style",{key:t},e.value):c.createElement("link",{key:t,href:e.value,type:"text/css",rel:"stylesheet"})));return 0===e.length?c.createElement("style",{key:"global"},'\n body {\n margin: 0;\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n }\n\n img {\n max-width: 100%;\n }\n\n a {\n color: var(--primary-main);\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n .frame-content {\n padding: 8px 12px 8px 0;\n }\n\n @media (max-width: 1024px) {\n .frame-content {\n padding: 8px 12px;\n }\n }\n\n .CMS_PreviewFrameContent_content {\n color: var(--text-primary);\n }\n\n .CMS_Scrollbar_root {\n --scrollbar-foreground: var(--scrollbar-main);\n --scrollbar-background: var(--background-dark);\n }\n\n .CMS_Scrollbar_root.CMS_Scrollbar_secondary {\n --scrollbar-foreground: var(--scrollbar-light);\n --scrollbar-background: var(--background-main);\n }\n\n .CMS_Scrollbar_root {\n /* Foreground, Background */\n scrollbar-color: var(--scrollbar-foreground) var(--scrollbar-background);\n }\n\n .CMS_Scrollbar_root::-webkit-scrollbar {\n width: 10px; /* Mostly for vertical scrollbars */\n height: 10px; /* Mostly for horizontal scrollbars */\n }\n\n .CMS_Scrollbar_root::-webkit-scrollbar-corner {\n background: rgba(0,0,0,0);\n }\n\n .CMS_Scrollbar_root::-webkit-scrollbar-thumb {\n /* Foreground */\n background: var(--scrollbar-foreground);\n }\n\n .CMS_Scrollbar_root::-webkit-scrollbar-track {\n /* Background */\n background: var(--scrollbar-background);\n }\n'):e}),[]),m=(0,c.useMemo)((()=>{var e;return null!==(e=bE(SP(i,r.slug)))&&void 0!==e?e:u4}),[i,r.slug]),g=(0,c.useMemo)((()=>'\n \n \n \n \n \n \n
\n \n \n '),[]),v=(0,c.useMemo)((()=>document.getElementById("cms-root")),[]),O=pz(wG),y=(0,c.useMemo)((()=>y4(y4({},e),{},{theme:O,widgetFor:f,widgetsFor:h})),[e,O,f,h]),b=(0,c.useRef)(null);XD("data:update",(0,c.useCallback)((e=>{var t;b.current&&(null===(t=b.current.contentWindow)||void 0===t||t.postMessage({message:"data:update",value:{fieldPath:e.detail.fieldPath,value:e.detail.value}}))}),[]));const w=(0,c.useCallback)((()=>{window.dispatchEvent(new J3)}),[]);return(0,c.useMemo)((()=>v?c.createElement("div",{className:qD(w4.root,n===PH&&w4.compact,!l&&w4["show-mobile-preview"])},c.createElement(l4,{config:u,t},s?c.createElement("iframe",{key:"live-preview-frame",ref:b,src:`${s}?useCmsData=true`,className:w4["live-preview"],onLoad:w}):a?c.createElement(K3.ZP,{key:"preview-frame",id:"preview-pane",head:p,initialContent:g,className:w4.frame},i?c.createElement(v4,{key:"preview-frame-content",previewComponent:m,previewProps:y4({},y)}):t("collection.notFound")):c.createElement(vD.ScrollSyncPane,{key:"preview-wrapper-scroll-sync"},c.createElement("div",{key:"preview-wrapper",id:"preview-pane",className:qD(w4.inline,"CMS_Scrollbar_root")},i?c.createElement(c.Fragment,null,p,c.createElement(d4,{key:"preview-wrapper-content",previewComponent:m,previewProps:y4(y4({},y),{},{document,window})})):t("collection.notFound"))))):null),[i,n,v,w,g,s,u,m,a,y,p,l,t])},x4=UD("Editor",["root","default","i18n","i18n-panel","i18n-active","split-view","wrapper-preview","wrapper-i18n-side-by-side","compact","toolbar","content","content-wrapper","resize-handle","resize-handle-icon","mobile-root","workflow","mobile-preview","mobile-preview-active","mobile-workflow-controls"]),_4="cms.preview-visible",S4="cms.i18n-visible",P4=({i18nActive:e,previewActive:t,editor:n,editorSideBySideLocale:r,editorWithPreview:i})=>e?r:t?i:c.createElement("div",{className:x4["content-wrapper"]},c.createElement("div",{className:x4.content},n)),E4=({collection:e,entry:t,fields:n=[],fieldsErrors:r,onDelete:i,onDuplicate:o,onPersist:a,hasChanged:s,isNewEntry:l,isModification:u,draftKey:d,scrollSyncActive:f,loadScroll:h,toggleScroll:p,submitted:m,slug:g,onDiscardDraft:v,currentStatus:O,isUpdatingStatus:y,onChangeStatus:b,hasUnpublishedChanges:w,isPublishing:k,onPublish:x,onUnPublish:_,onDeleteUnpublishedChanges:S})=>{var P,E;const C=pz(dC),T=pz(vC),$=pz(kG),Q=z2("(max-width: 1024px)"),R=pz(bG),A=(0,c.useMemo)((()=>Boolean(R||t.isPersisting||k||y||t.isDeleting)),[t.isDeleting,t.isPersisting,R,k,y]),j=(0,c.useMemo)((()=>Boolean(A||t.openAuthoring)),[A,t.openAuthoring]),{locales:D,default_locale:M}=null!==(P=(0,c.useMemo)((()=>Kk(e)),[e]))&&void 0!==P?P:{},I=(0,c.useMemo)((()=>{var e;return null!==(e=Q?D:null==D?void 0:D.filter((e=>e!==M)))&&void 0!==e?e:[]}),[Q,D,M]),[z,W]=(0,c.useState)("false"!==localStorage.getItem(_4)),N=(0,c.useMemo)((()=>D&&D.length>0),[D]),[L,F]=(0,c.useState)(Boolean("false"!==localStorage.getItem(S4)&&N)),[U,X]=(0,c.useState)(null!==(E=L?null==I?void 0:I[0]:M)&&void 0!==E?E:"en");(0,c.useEffect)((()=>{var e;X(null!==(e=L?null==I?void 0:I[0]:M)&&void 0!==e?e:"en")}),[M,L,I]),(0,c.useEffect)((()=>{h()}),[h]);const q=(0,c.useCallback)((async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;a({createNew:t,duplicate:n})}),[a]),B=(0,c.useCallback)((async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;x({createNew:t,duplicate:n})}),[x]),V=(0,c.useCallback)((()=>{p()}),[p]),Y=(0,c.useCallback)((()=>{const e=!L;F(e),X((t=>e&&t===M?null==I?void 0:I[0]:t)),localStorage.setItem(S4,`${e}`)}),[L,X,I,M]),Z=(0,c.useCallback)((()=>{let e=!0;L?Y():e=!z,W(e),localStorage.setItem(_4,`${e}`)}),[Y,L,z]),G=(0,c.useCallback)((e=>{X(e)}),[]),H=TP(e,t.slug),{livePreviewUrlTemplate:K,showPreviewToggle:J,previewInFrame:ee,editorSize:te}=(0,c.useMemo)((()=>{var n,r,i;let o="string"==typeof(null===(n=e.editor)||void 0===n?void 0:n.live_preview)&&e.editor.live_preview,a=!0,s=!0,l=null!==(r=null===(i=e.editor)||void 0===i?void 0:i.size)&&void 0!==r?r:PH;var u,c,d;e.editor&&("preview"in e.editor&&(a=null===(u=e.editor.preview)||void 0===u||u),"frame"in e.editor&&(s=null===(c=e.editor.frame)||void 0===c||c));return"files"in e&&null!=H&&H.editor&&("string"==typeof H.editor.live_preview&&(o=H.editor.live_preview),"preview"in H.editor&&void 0!==H.editor.preview&&(a=H.editor.preview),"frame"in H.editor&&void 0!==H.editor.frame&&(s=H.editor.frame),void 0!==(null==H||null===(d=H.editor)||void 0===d?void 0:d.size)&&(l=H.editor.size)),{livePreviewUrlTemplate:o?VP(o,t,e,null==C?void 0:C.slug):void 0,showPreviewToggle:a,previewInFrame:s,editorSize:l}}),[e,null==C?void 0:C.slug,t,null==H?void 0:H.editor]),ne=(0,c.useMemo)((()=>J&&z),[z,J]),re=Hk(e),[ie,oe]=(0,c.useState)(!1),ae=(0,c.useCallback)((()=>{z||Z(),oe((e=>!e))}),[Z,z]),se=(0,c.useMemo)((()=>c.createElement("div",{key:M,id:"control-pane",className:qD(x4.default,(ne||L)&&`${x4["split-view"]} CMS_Scrollbar_root`)},c.createElement(H3,{collection:e,entry:t,fields:n,fieldsErrors:r,locale:L?M:U,submitted:m,hideBorder:!ne&&!L,canChangeLocale:N&&!L,onLocaleChange:G,slug:g,disabled:j}))),[M,ne,L,e,t,n,r,U,m,N,G,g,j]),le=(0,c.useMemo)((()=>null==D?void 0:D.filter((e=>Q||e!==M)).map((i=>c.createElement(vD.ScrollSyncPane,{key:i},c.createElement("div",{className:qD(x4.i18n,U===i&&x4["i18n-active"],"CMS_Scrollbar_root")},c.createElement(H3,{collection:e,entry:t,fields:n,fieldsErrors:r,locale:i,onLocaleChange:G,allowDefaultLocale:Q,submitted:m,canChangeLocale:!0,context:Q?void 0:"i18nSplit",hideBorder:!0,disabled:j})))))),[D,M,U,e,t,n,r,G,Q,m,j]),ue=(0,c.useMemo)((()=>re?dx(e,t,U,M):t),[re,e,M,t,U]),ce=c.createElement("div",{className:x4["mobile-preview"]},c.createElement(k4,{collection:e,previewInFrame:ee,livePreviewUrlTemplate:K,entry:ue,fields:n,editorSize:te,showMobilePreview:ie})),de=c.createElement(c.Fragment,null,Q?c.createElement("div",{className:qD(x4["mobile-root"],ie&&x4["mobile-preview-active"],T&&x4.workflow)},se,ce):c.createElement(Q2,{key:"editor-with-preview",autoSaveId:`editor-with-preview-${e.name}${H?`-${H.name}`:""}`,direction:"horizontal",units:te===PH?"pixels":"percentages",className:qD(x4.root,te===PH&&x4.compact),disablePointerEventsDuringResize:!0},c.createElement(e2,{defaultSize:te===PH?450:50,minSize:te===PH?450:30},c.createElement(vD.ScrollSyncPane,null,se)),c.createElement(R2,{className:x4["resize-handle"]},c.createElement(D1,{className:x4["resize-handle-icon"]})),c.createElement(e2,{defaultSize:te===PH?void 0:50,minSize:te===PH?300:30},c.createElement(k4,{collection:e,previewInFrame:ee,livePreviewUrlTemplate:K,entry:ue,fields:n,editorSize:te,showMobilePreview:ie})))),fe=c.createElement(c.Fragment,null,Q?c.createElement("div",{className:qD(x4["mobile-root"],ie&&x4["mobile-preview-active"],T&&x4.workflow)},le,ce):c.createElement(Q2,{key:"editor-side-by-side-locale",autoSaveId:`editor-side-by-side-locale-${e.name}`,direction:"horizontal",className:qD(x4.root,x4["wrapper-i18n-side-by-side"])},c.createElement(e2,{defaultSize:50,minSize:30},c.createElement(vD.ScrollSyncPane,null,se)),c.createElement(R2,{className:x4["resize-handle"]},c.createElement(D1,{className:x4["resize-handle-icon"]})),c.createElement(e2,{defaultSize:50,minSize:30,className:x4["i18n-panel"]},c.createElement(vD.ScrollSyncPane,null,c.createElement(c.Fragment,null,le))))),he=(0,c.useMemo)((()=>PP(e,t)),[e,t]),pe=(0,c.useMemo)((()=>YE(e,t.slug)),[e,t.slug]),me=iW(e,pe,{isNewEntry:l,summary:he}),ge=(0,c.useMemo)((()=>Boolean(t.isPersisting)),[t.isPersisting]);return c.createElement(yH,{breadcrumbs:me,noMargin:!0,noScroll:ne||L,navbarActions:c.createElement(H2,{isPersisting:ge,onPersist:q,onPersistAndNew:()=>q({createNew:!0}),onPersistAndDuplicate:()=>q({createNew:!0,duplicate:!0}),onDelete:i,onDuplicate:o,hasChanged:s,collection:e,isNewEntry:l,isModification:u,showPreviewToggle:J,previewActive:ne,scrollSyncActive:f,showI18nToggle:re,i18nActive:L,togglePreview:Z,toggleScrollSync:V,toggleI18n:Y,slug:g,showMobilePreview:ie,onMobilePreviewToggle:ae,className:x4.toolbar,onDiscardDraft:v,currentStatus:O,isUpdatingStatus:y,onChangeStatus:b,hasUnpublishedChanges:w,isPublishing:k,onDeleteUnpublishedChanges:S,onPublish:x,onUnPublish:_,onPublishAndNew:()=>B({createNew:!0}),onPublishAndDuplicate:()=>B({createNew:!0,duplicate:!0}),disabled:A})},T?c.createElement("div",{className:x4["mobile-workflow-controls"]},c.createElement(Z2,{hasChanged:s,isPersisting:ge,onPersist:a,currentStatus:O,isUpdatingStatus:y,disabled:A,onChangeStatus:b,isLoading:R,useOpenAuthoring:$,mobile:!0})):null,c.createElement(P4,{key:d,i18nActive:L,previewActive:ne&&!L,editor:se,editorSideBySideLocale:fe,editorWithPreview:de}))},C4=({name:e,slug:t,newRecord:n})=>{var r,i,o,a,s;const l=LD(),[u]=XT(),[d,f]=(0,c.useState)(0),h=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=g0(n.location.hash.substr(1)),t=e.pathname,i=void 0===t?"/":t,o=e.search,a=void 0===o?"":o,s=e.hash,l=void 0===s?"":s,u=r.state||{};return[u.idx,{pathname:i,search:a,hash:l,state:u.usr||null,key:u.key||"default"}]}var o=null;function a(){if(o)f.call(o),o=null;else{var e=d0.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(null!=n){var a=u-n;a&&(o={action:e,location:r,retry:function(){O(-1*a)}},O(a))}}else v(e)}}n.addEventListener("popstate",a),n.addEventListener("hashchange",(function(){m0(i()[1])!==m0(c)&&a()}));var s=d0.Pop,l=i(),u=l[0],c=l[1],d=p0(),f=p0();function h(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,i=r.indexOf("#");t=-1===i?r:r.slice(0,i)}return t}()+"#"+("string"==typeof e?e:m0(e))}function p(e,t){return void 0===t&&(t=null),tT({pathname:c.pathname,hash:"",search:""},"string"==typeof e?g0(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function m(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function v(e){s=e;var t=i();u=t[0],c=t[1],d.call({action:s,location:c})}function O(e){r.go(e)}return null==u&&(u=0,r.replaceState(tT({},r.state,{idx:u}),"")),{get action(){return s},get location(){return c},createHref:h,push:function e(t,i){var o=d0.Push,a=p(t,i);if(g(o,a,(function(){e(t,i)}))){var s=m(a,u+1),l=s[0],c=s[1];try{r.pushState(l,"",c)}catch(e){n.location.assign(c)}v(o)}},replace:function e(t,n){var i=d0.Replace,o=p(t,n);if(g(i,o,(function(){e(t,n)}))){var a=m(o,u),s=a[0],l=a[1];r.replaceState(s,"",l),v(i)}},go:O,back:function(){O(-1)},forward:function(){O(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return 1===f.length&&n.addEventListener(f0,h0),function(){t(),f.length||n.removeEventListener(f0,h0)}}}}(),p=hz(),m=ne(),g=pz(dC),v=pz(KM),O=pz((t=>tI(t,e))),y=pz(vC),b=pz((n=>vz(n,e,t))),w=(0,c.useMemo)((()=>Boolean(y&&b)),[b,y]),k=(0,c.useMemo)((()=>b&&b.status),[b]),x=(0,c.useMemo)((()=>{var e,t;return null!==(e=null===(t=v.entry)||void 0===t?void 0:t.isModification)&&void 0!==e&&e}),[null===(r=v.entry)||void 0===r?void 0:r.isModification]),_=(0,c.useMemo)((()=>v.hasChanged),[v.hasChanged]),S=(0,c.useMemo)((()=>{var e;return Boolean(null===(e=v.entry)||void 0===e?void 0:e.isUpdatingStatus)}),[null===(i=v.entry)||void 0===i?void 0:i.isUpdatingStatus]),P=(0,c.useMemo)((()=>{var e;return Boolean(null===(e=v.entry)||void 0===e?void 0:e.isPublishing)}),[null===(o=v.entry)||void 0===o?void 0:o.isPublishing]),E=pz((n=>RD(n,e,t))),C=(0,c.useMemo)((()=>IP(O,t)),[O,t]),T=pz(k0),$=(0,c.useMemo)((()=>O0()((function(e,n){null!=g&&g.disable_local_backup||!t||p(function(e,t){return(n,r)=>{const i=r().config;if(!i.config)throw new Error("Config not loaded");return DC(i.config).persistLocalDraftBackup(e,t,i.config)}}(e,n))}),2e3)),[g]),Q=(0,c.useCallback)((()=>{!O||null!=g&&g.disable_local_backup||($.cancel(),t&&p(LI(O,t)),p({type:P$}))}),[null==g?void 0:g.disable_local_backup,$,t,p,O]),[R,A]=(0,c.useState)(!1),j=(0,c.useCallback)(((e={})=>{const{createNew:n=!1,duplicate:r=!1}=e;O&&v.entry&&(A(!0),setTimeout((async()=>{try{Q(),y?await p(function(e,t,n,r){return async(i,o)=>{const a=o();if(!a.config.config)return;const s=a.entryDraft,l=s.fieldsErrors,u=Oz(a,e.name),c=jD(a,e.name).concat(u);if(!a.editorialWorkflow.ids&&i(Zz(a.collections)),Object.keys(l).length>0){return Object.values(l).find((e=>e.some((e=>e.type&&e.type===FE.PRESENCE))))&&i($A({type:"error",message:{key:"ui.toast.missingRequiredField"}})),Promise.reject()}const d=DC(a.config.config),f=s.entry;if(!f)return;f.status=De.DRAFT;const h=YI({entry:f});let p=ZI(e,f);p=Fz(Fz({},p),{},{raw:d.entryToRaw(e,p,a.config.config)});const m=Fz(Fz({},s),{},{entry:p});i(qz(e,f.slug));const g=n?d.persistUnpublishedEntry:d.persistEntry;try{const n=await g.call(d,{config:a.config.config,collection:e,entryDraft:m,assetProxies:h,rootSlug:t,usedSlugs:c,status:De.DRAFT});if(i($A({type:"success",message:{key:"ui.toast.entrySaved"}})),i(Bz(e,p)),f.slug!==n)return void r(`/collections/${e.name}/entries/${n}`)}catch(t){return i($A({type:"error",message:{key:"ui.toast.onFailToPersist",options:{details:t}}})),Promise.reject(i(Vz(t,e,f.slug)))}}}(O,t,w,m)):await p(function(e,t,n){return async(r,i)=>{const o=i(),a=o.entryDraft,s=a.fieldsErrors,l=jD(o,e.name);if(Object.keys(s).length>0){if(Object.values(s).find((e=>e.some((e=>e.type&&e.type===FE.PRESENCE)))))r($A({type:"error",message:{key:"ui.toast.missingRequiredField"}}));else{const e=Object.values(s).flatMap((e=>e.map((e=>e.message))))[0];e&&r($A({type:"error",message:e}))}return Promise.reject()}const u=o.config;if(!u.config)throw new Error("Config not loaded");const c=DC(u.config),d=a.entry;if(!d)return Promise.reject();const f=YI({entry:d}),h=ZI(e,d),p=$I($I({},a),{},{entry:h});return r(function(e,t){return{type:T$,payload:{collectionName:e.name,entrySlug:t.slug}}}(e,h)),c.persistEntry({config:u.config,rootSlug:t,collection:e,entryDraft:p,assetProxies:f,usedSlugs:l,status:d.status}).then((async t=>{r($A({type:"success",message:{key:"ui.toast.entrySaved"}})),f.length>0&&await r(vI()),r(function(e,t,n){return{type:$$,payload:{collectionName:e.name,entrySlug:t.slug,slug:n}}}(e,h,t)),"nested"in e&&await r(qI(e)),d.slug!==t?(await r(FI(e,t)),n(`/collections/${e.name}/entries/${t}`)):await r(FI(e,t,!0))})).catch((t=>(console.error(t),r($A({type:"error",message:{key:"ui.toast.onFailToPersist",options:{details:t}}})),Promise.reject(r(function(e,t,n){return{type:Q$,error:"Failed to persist entry",payload:{collectionName:e.name,entrySlug:t.slug,error:n.toString()}}}(e,h,t))))))}}(O,t,m)),f(d+1),n&&(r&&v.entry?(m(`/collections/${O.name}/new?duplicate=true`,{replace:!0}),p(NI(v.entry))):(A(!1),setTimeout((async()=>{await p(vI()),m(`/collections/${O.name}/new`,{replace:!0})}),100)))}catch(e){}}),100))}),[O,Q,p,v.entry,w,m,t,y,d]),D=y0(j,250),M=(0,c.useCallback)((e=>{O&&t&&k&&(v.hasChanged?Iz({title:"editor.editor.onUpdatingWithUnsavedChangesTitle",body:{key:"editor.editor.onUpdatingWithUnsavedChangesBody"}}):p(Gz(O.name,t,k,e)))}),[O,k,p,v.hasChanged,t]),I=(0,c.useCallback)((async(e={})=>{if(!O||!t||!v.entry)return;const{createNew:n=!1,duplicate:r=!1}=e;if(k===De.PENDING_PUBLISH){if(v.hasChanged)Iz({title:"editor.editor.onPublishingWithUnsavedChangesTitle",body:{key:"editor.editor.onPublishingWithUnsavedChangesBody"}});else if(await YM({title:"editor.editor.onPublishingTitle",body:"editor.editor.onPublishingBody"})){if(await p(Kz(O.name,t,m)),Q(),!n)return r?(p(NI(v.entry)),void m(`/collections/${O.name}/new?duplicate=true`,{replace:!0})):void 0;m(`/collections/${O.name}/new?duplicate=true`,{replace:!0})}}else Iz({title:"editor.editor.onPublishingNotReadyTitle",body:{key:"editor.editor.onPublishingNotReadyBody"}})}),[O,k,Q,p,v.entry,v.hasChanged,m,t]),z=(0,c.useCallback)((async()=>{if(O&&t&&await YM({title:"editor.editor.onUnpublishingTitle",body:"editor.editor.onUnpublishingBody",color:"error"}))return await p(function(e,t){return(n,r)=>{const i=r();if(!i.config.config)return;const o=DC(i.config.config),a=RD(i,e.name,t);if(!a)return;const s={entry:a,fieldsErrors:{}};return n(qz(e,t)),o.deleteEntry(i,e,t).then((()=>o.persistEntry({config:i.config.config,collection:e,entryDraft:s,assetProxies:[],usedSlugs:[],rootSlug:t,status:De.PENDING_PUBLISH}))).then((async()=>{n(Bz(e,a)),n(MI(e,t)),await n(Yz(e,t)),n($A({type:"success",message:{key:"ui.toast.entryUnpublished"}}))})).catch((t=>{n($A({type:"error",message:{key:"ui.toast.onFailToUnpublishEntry",options:{details:t}}})),n(Vz(t,e,a.slug))}))}}(O,t)),m(`/collections/${O.name}?noredirect`)}),[O,p,m,t]),W=(0,c.useCallback)((()=>{O&&v.entry&&(p(NI(v.entry)),m(`/collections/${O.name}/new?duplicate=true`,{replace:!0}))}),[O,p,v.entry,m]),N=(0,c.useCallback)((async()=>{if(O){if(v.hasChanged){if(!await YM({title:"editor.editor.onDeleteWithUnsavedChangesTitle",body:"editor.editor.onDeleteWithUnsavedChangesBody",color:"error"}))return}else if(!await YM({title:"editor.editor.onDeletePublishedEntryTitle",body:"editor.editor.onDeletePublishedEntryBody",color:"error"}))return;if(!t||n)return m(`/collections/${O.name}?noredirect`);setTimeout((async()=>(await p(function(e,t){return(n,r)=>{const i=r(),o=i.config;if(!o.config)throw new Error("Config not loaded");const a=DC(o.config);return n(function(e,t){return{type:"ENTRY_DELETE_REQUEST",payload:{collectionName:e.name,entrySlug:t}}}(e,t)),a.deleteEntry(i,e,t).then((()=>n(MI(e,t)))).catch((r=>(n($A({type:"error",message:{key:"ui.toast.onFailToDelete",options:{details:r}}})),console.error(r),Promise.reject(n(function(e,t,n){return{type:"ENTRY_DELETE_FAILURE",payload:{collectionName:e.name,entrySlug:t,error:n.toString()}}}(e,t,r))))))}}(O,t)),Q(),p($A({type:"success",message:{key:"ui.toast."+(y?"onDeletePublishedEntry":"entryDeleted")}})),m(`/collections/${O.name}?noredirect`))),0)}}),[O,Q,p,v.hasChanged,m,n,t,y]),L=(0,c.useCallback)((async()=>{if(O){if(v.hasChanged){if(v.hasChanged&&!await YM({title:"editor.editor.onDeleteUnpublishedChangesWithUnsavedChangesTitle",body:"editor.editor.onDeleteUnpublishedChangesWithUnsavedChangesBody",color:"error"}))return}else if(!await YM({title:"editor.editor.onDeleteUnpublishedChangesTitle",body:"editor.editor.onDeleteUnpublishedChangesBody",color:"error"}))return;if(!t||n)return m(`/collections/${O.name}?noredirect`);setTimeout((async()=>{if(await p(Hz(O.name,t)),Q(),p($A({type:"success",message:{key:"ui.toast.onDeleteUnpublishedChanges"}})),!x)return m(`/collections/${O.name}?noredirect`);p(FI(O,t))}),0)}}),[O,Q,p,v.hasChanged,x,m,n,t]);(0,c.useEffect)((()=>{if(O&&!R)return _&&v.entry&&$(v.entry,O),()=>{$.flush()}}),[O,$,v.entry,_,R]);const F=(0,c.useMemo)((()=>{var e;if(!O)return!1;let t="string"==typeof(null===(e=O.editor)||void 0===e?void 0:e.live_preview);if("files"in O&&v.entry){const e=TP(O,v.entry.slug);null!=e&&e.editor&&(t=t||"string"==typeof e.editor.live_preview)}return t}),[O,v.entry]);!function({hasLivePreview:e,slug:t,collection:n,callback:r}){const i=hz(),[o,a]=(0,c.useState)(!1),s=pz(JM),[l,u]=(0,c.useState)(fE()(null==s?void 0:s.data)),d=(0,c.useCallback)((async()=>{if(n&&(!e||o)&&!tP()(l,null==s?void 0:s.data)&&s){const e=yP(n,t);let o=s.data;if(e)for(const t of e.fields)o=await w0([t.name],n.name,t,o,l);else if("fields"in n)for(const e of n.fields)o=await w0([e.name],n.name,e,o,l);if(!tP()(o,s.data))return u(o),i(function({data:e}){return{type:w$,payload:{data:e}}}({data:o})),void r();u(null==s?void 0:s.data)}}),[s,o]),f=y0(d,200);(0,c.useEffect)((()=>{f()}),[f]),XD("livePreviewLoaded",(0,c.useCallback)((()=>{a(!0)}),[]))}({hasLivePreview:F,collection:O,slug:t,callback:()=>{f((e=>e+1))}});const[U,X]=(0,c.useState)(null),[q,B]=(0,c.useState)(null);(0,c.useEffect)((()=>{O&&(n&&t!==q?setTimeout((async()=>{await p(vI()),u.has("duplicate")&&"true"===u.get("duplicate")&&void 0!==v.entry||await p(VI(O,location.search))})):n||!t||U===O&&q===t||setTimeout((async()=>{y?await p(Yz(O,t)):await p(FI(O,t)),null!=g&&g.disable_local_backup||await p(function(e,t){return async(n,r)=>{const i=r().config;if(!i.config)throw new Error("Config not loaded");const o=DC(i.config),{entry:a}=await o.getLocalDraftBackup(e,i.config,t);if(a){const t=a.mediaFiles||[],i=await Promise.all(t.filter((e=>!e.isDirectory)).map((t=>t.file||t.url?ND({path:t.path,file:t.file,url:t.url,field:t.field}):CI(e,a,t.path,t.field)(n,r))));return n(xI(i)),n(function(e){return{type:S$,payload:{entry:e}}}(a))}}}(O,t)),R&&null!=g&&g.disable_local_backup||(p(((e,t)=>{t().entryDraft.localBackup&&e({type:E$})})),f(d+1))})),X(O),B(t))}),[O,v.entry,q,U,t,p,n,null==g?void 0:g.disable_local_backup,y,R,d,u]);const V=(0,c.useMemo)((()=>l("editor.editor.onLeavePage")),[l]);XD("beforeunload",(0,c.useCallback)((e=>{if(v.hasChanged)return e.returnValue=V,V}),[v.hasChanged,V]));const Y=(0,c.useCallback)((({location:e,action:t})=>{var n,r;if(!O)return;const i=null===(n=v.entry)||void 0===n?void 0:n.isPersisting,o=null===(r=v.entry)||void 0===r?void 0:r.newRecord,a=`/collections/${O.name}/new`;return i&&o&&e.pathname.startsWith(a)&&"PUSH"===t?void 0:_?V:void 0}),[O,null===(a=v.entry)||void 0===a?void 0:a.isPersisting,null===(s=v.entry)||void 0===s?void 0:s.newRecord,_,V]);(0,c.useEffect)((()=>{const e=h.block(Y);return()=>{e()}}),[null==O?void 0:O.name,h,Y]);const Z=(0,c.useCallback)((async()=>{await p((async(e,t)=>e({type:iQ})))}),[p]),G=(0,c.useCallback)((async()=>{await p({type:oQ,payload:"false"!==localStorage.getItem(YT)})}),[p]),H=(0,c.useCallback)((()=>{f((e=>e+1))}),[]);return E&&E.error?c.createElement("div",null,c.createElement("h3",null,E.error)):!O||null==v||void 0===v.entry||E&&E.isFetching?c.createElement(nK,null,l("editor.editor.loadingEntry")):c.createElement(c.Fragment,null,c.createElement(E4,{key:`editor-${d}`,draftKey:v.key,entry:v.entry,collection:O,fields:C,fieldsErrors:v.fieldsErrors,onPersist:D,onDelete:N,onDuplicate:W,hasChanged:_,isNewEntry:n,isModification:x,toggleScroll:Z,scrollSyncActive:T,loadScroll:G,onDiscardDraft:H,submitted:R,slug:t,currentStatus:k,isUpdatingStatus:S,onChangeStatus:M,onPublish:I,onUnPublish:z,onDeleteUnpublishedChanges:L,hasUnpublishedChanges:w,isPublishing:P}),c.createElement(j1,null))},T4=["name"],$4=({newRecord:e=!1,collections:t})=>{const n=re(),{name:r}=n,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r!!r&&!t[r]),[t,r]),s=Jz(t);return a||!r||!e&&!o?c.createElement(pe,{to:s}):c.createElement(C4,{name:r,slug:o,newRecord:e})},Q4=()=>{const e=LD(),t=hz();return(0,c.useEffect)((()=>{t(vI({}))}),[t]),c.createElement(yH,{breadcrumbs:[{name:e("app.header.media")}],showQuickCreate:!0,showLeftNav:!0,noMargin:!0,noScroll:!0},c.createElement(R1,null))},R4=()=>{const{id:e}=re(),{data:t,title:n}=(0,c.useMemo)((()=>{if(!e)return{data:"",title:""};const t=function(e){return vE.additionalLinks[e]}(e);return t||{data:"",title:""}}),[e]),r=(0,c.useMemo)((()=>t?c.createElement("div",null,c.createElement(t,null)):c.createElement("div",null,"Page not found")),[t]);return c.createElement(yH,{breadcrumbs:[{name:n}],showQuickCreate:!0,showLeftNav:!0},r)};function A4(e){return e.substring(2).toLowerCase()}function j4(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=c.useRef(!1),s=c.useRef(null),l=c.useRef(!1),u=c.useRef(!1);c.useEffect((()=>(setTimeout((()=>{l.current=!0}),0),()=>{l.current=!1})),[]);const d=GN(HN(t),s),f=gB((e=>{const t=u.current;u.current=!1;const r=KN(s.current);if(!l.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidthn=>{u.current=!0;const r=t.props[e];r&&r(n)},p={ref:d};return!1!==o&&(p[o]=h(o)),c.useEffect((()=>{if(!1!==o){const e=A4(o),t=KN(s.current),n=()=>{a.current=!0};return t.addEventListener(e,f),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,f),t.removeEventListener("touchmove",n)}}}),[f,o]),!1!==r&&(p[r]=h(r)),c.useEffect((()=>{if(!1!==r){const e=A4(r),t=KN(s.current);return t.addEventListener(e,f),()=>{t.removeEventListener(e,f)}}}),[f,r]),c.cloneElement(t,p)}function D4(e){return cB("MuiSnackbarContent",e)}dB("MuiSnackbarContent",["root","message","action"]);const M4=Pq(NB,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Cq((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=TX(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}}))),I4=Pq("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),z4=Pq("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),W4=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiSnackbarContent"}),{action:r,className:i,message:o,role:a="alert",...s}=n,l=n,u=(e=>{const{classes:t}=e;return qN({root:["root"],action:["action"],message:["message"]},D4,t)})(l);return(0,lM.jsxs)(M4,{role:a,square:!0,elevation:6,className:XN(u.root,i),ownerState:l,ref:t,...s,children:[(0,lM.jsx)(I4,{className:u.message,ownerState:l,children:o}),r?(0,lM.jsx)(z4,{className:u.action,ownerState:l,children:r}):null]})})),N4=W4;function L4(e){return cB("MuiSnackbar",e)}dB("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const F4=Pq("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${LB(n.anchorOrigin.vertical)}${LB(n.anchorOrigin.horizontal)}`]]}})(Cq((({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]})))),U4=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiSnackbar"}),r=eB(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:o,anchorOrigin:{vertical:a,horizontal:s}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:h,disableWindowBlurListener:p=!1,message:m,onBlur:g,onClose:v,onFocus:O,onMouseEnter:y,onMouseLeave:b,open:w,resumeHideDuration:k,TransitionComponent:x=y3,transitionDuration:_=i,TransitionProps:{onEnter:S,onExited:P,...E}={},...C}=n,T={...n,anchorOrigin:{vertical:a,horizontal:s},autoHideDuration:l,disableWindowBlurListener:p,TransitionComponent:x,transitionDuration:_},$=(e=>{const{classes:t,anchorOrigin:n}=e;return qN({root:["root",`anchorOrigin${LB(n.vertical)}${LB(n.horizontal)}`]},L4,t)})(T),{getRootProps:Q,onClickAway:R}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,a=h3();c.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"===e.key&&r?.(e,"escapeKeyDown")}}),[i,r]);const s=gB(((e,t)=>{r?.(e,t)})),l=gB((e=>{r&&null!=e&&a.start(e,(()=>{s(null,"timeout")}))}));c.useEffect((()=>(i&&l(t),a.clear)),[i,t,l,a]);const u=a.clear,d=c.useCallback((()=>{null!=t&&l(null!=o?o:.5*t)}),[t,o,l]),f=e=>t=>{const n=e.onFocus;n?.(t),u()},h=e=>t=>{const n=e.onMouseEnter;n?.(t),u()},p=e=>t=>{const n=e.onMouseLeave;n?.(t),d()};return c.useEffect((()=>{if(!n&&i)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[n,i,d,u]),{getRootProps:(t={})=>{const n={...Dq(e),...Dq(t)};return{role:"presentation",...t,...n,onBlur:(r=n,e=>{const t=r.onBlur;t?.(e),d()}),onFocus:f(n),onMouseEnter:h(n),onMouseLeave:p(n)};var r},onClickAway:e=>{r?.(e,"clickaway")}}}({...T}),[A,j]=c.useState(!0),D=b3({elementType:F4,getSlotProps:Q,externalForwardedProps:C,ownerState:T,additionalProps:{ref:t},className:[$.root,d]});return!w&&A?null:(0,lM.jsx)(j4,{onClickAway:R,...f,children:(0,lM.jsx)(F4,{...D,children:(0,lM.jsx)(x,{appear:!0,in:w,timeout:_,direction:"top"===a?"down":"up",onEnter:(e,t)=>{j(!1),S&&S(e,t)},onExited:e=>{j(!0),P&&P(e)},...E,children:u||(0,lM.jsx)(N4,{message:m,action:o,...h})})})})})),X4=U4;var q4=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))}));q4.displayName="ErrorOutline";var B4=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10L22 5.18zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44A9.9 9.9 0 0 0 12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39l-1.61 1.61z"}))}));B4.displayName="TaskAlt";var V4=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2z"}),c.createElement("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"}))}));V4.displayName="WarningAmber";const Y4=UD("SnackbarAlert",["root","error","success","warning","info","icon-wrapper","icon","message","close-button","close-button-sr-label","close-button-icon"]),Z4=(0,c.forwardRef)((({data:e,onClose:t},n)=>{const r=LD(),{type:i,message:o}=e,a=(0,c.useMemo)((()=>{if("string"==typeof o)return o;const{key:e,options:t}=o;return r(e,t)}),[o,r]),s=(0,c.useMemo)((()=>{switch(i){case"error":return c.createElement(q4,{className:Y4.icon});case"success":return c.createElement(B4,{className:Y4.icon});case"warning":return c.createElement(V4,{className:Y4.icon});default:return c.createElement(RK,{className:Y4.icon})}}),[i]);return c.createElement("div",{id:"toast-default",className:qD(Y4.root,"error"===i&&Y4.error,"success"===i&&Y4.success,"warning"===i&&Y4.warning,"info"===i&&Y4.info),role:"alert",ref:n},c.createElement("div",{className:Y4["icon-wrapper"]},s),c.createElement("div",{className:Y4.message,"data-testid":"toast-messages"},a),c.createElement(FN,{icon:yG,variant:"text",color:"secondary",onClick:t,rootClassName:Y4["close-button"],size:"small","aria-label":"close"}))}));Z4.displayName="SnackbarAlert";const G4=Z4;function H4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K4(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const J4=()=>{const[e,t]=(0,c.useState)(!1),[n,r]=(0,c.useState)(void 0),i=pz(RA),o=hz();(0,c.useEffect)((()=>{if(i.length&&!n){const e=function(e){for(var t=1;t{ze(a)||a===(null==n?void 0:n.id)&&t(!1)}),[a,null==n?void 0:n.id]);const s=(0,c.useCallback)(((e,n)=>{"clickaway"!==n&&t(!1)}),[]);return c.createElement(X4,{key:n?n.id:void 0,open:e,autoHideDuration:6e3,onClose:s,TransitionProps:{onExited:()=>{r(void 0)}},anchorOrigin:{vertical:"bottom",horizontal:"right"}},n?c.createElement(G4,{data:n,onClose:s}):void 0)},e5="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function t5(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function n5(e){return"nodeType"in e}function r5(e){var t,n;return e?t5(e)?e:n5(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function i5(e){const{Document:t}=r5(e);return e instanceof t}function o5(e){return!t5(e)&&e instanceof r5(e).HTMLElement}function a5(e){return e instanceof r5(e).SVGElement}function s5(e){return e?t5(e)?e.document:n5(e)?i5(e)?e:o5(e)||a5(e)?e.ownerDocument:document:document:document}const l5=e5?c.useLayoutEffect:c.useEffect;function u5(e){const t=(0,c.useRef)(e);return l5((()=>{t.current=e})),(0,c.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r{n.current!==e&&(n.current=e)}),t),n}function d5(e,t){const n=(0,c.useRef)();return(0,c.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function f5(e){const t=u5(e),n=(0,c.useRef)(null),r=(0,c.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function h5(e){const t=(0,c.useRef)();return(0,c.useEffect)((()=>{t.current=e}),[e]),t.current}let p5={};function m5(e,t){return(0,c.useMemo)((()=>{if(t)return t;const n=null==p5[e]?0:p5[e]+1;return p5[e]=n,e+"-"+n}),[e,t])}function g5(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const v5=g5(1),O5=g5(-1);function y5(e){if(!e)return!1;const{KeyboardEvent:t}=r5(e.target);return t&&e instanceof t}function b5(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=r5(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const w5=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[w5.Translate.toString(e),w5.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),k5="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function x5(e){return e.matches(k5)?e:e.querySelector(k5)}const _5={display:"none"};function S5(e){let{id:t,value:n}=e;return c.createElement("div",{id:t,style:_5},n)}function P5(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return c.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const E5=(0,c.createContext)(null),C5={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},T5={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function $5(e){let{announcements:t=T5,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=C5}=e;const{announce:o,announcement:a}=function(){const[e,t]=(0,c.useState)("");return{announce:(0,c.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),s=m5("DndLiveRegion"),[l,u]=(0,c.useState)(!1);if((0,c.useEffect)((()=>{u(!0)}),[]),function(e){const t=(0,c.useContext)(E5);(0,c.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)}),[e,t])}((0,c.useMemo)((()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;o(t.onDragCancel({active:n,over:r}))}})),[o,t])),!l)return null;const d=c.createElement(c.Fragment,null,c.createElement(S5,{id:r,value:i.draggable}),c.createElement(P5,{id:s,announcement:a}));return n?(0,NC.createPortal)(d,n):d}var Q5;function R5(){}function A5(e,t){return(0,c.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function j5(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Q5||(Q5={}));const D5=Object.freeze({x:0,y:0});function M5(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function I5(e,t){const n=b5(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function z5(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function W5(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function N5(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function L5(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function F5(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const U5=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=F5(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=M5(F5(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(z5)};function X5(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=X5(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(W5)};function B5(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:D5}function V5(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const Y5=V5(1);function Z5(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const G5={ignoreTransform:!1};function H5(e,t){void 0===t&&(t=G5);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=r5(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=Z5(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function K5(e){return H5(e,{ignoreTransform:!0})}function J5(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(i5(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!o5(i)||a5(i))return n;if(n.includes(i))return n;const o=r5(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=r5(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=r5(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function e6(e){const[t]=J5(e,1);return null!=t?t:null}function t6(e){return e5&&e?t5(e)?e:n5(e)?i5(e)||e===s5(e).scrollingElement?window:o5(e)?e:null:null:null}function n6(e){return t5(e)?e.scrollX:e.scrollLeft}function r6(e){return t5(e)?e.scrollY:e.scrollTop}function i6(e){return{x:n6(e),y:r6(e)}}var o6;function a6(e){return!(!e5||!e)&&e===document.scrollingElement}function s6(e){const t={x:0,y:0},n=a6(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(o6||(o6={}));const l6={x:.2,y:.2};function u6(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=l6);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=s6(e),h={x:0,y:0},p={x:0,y:0},m=t.height*i.y,g=t.width*i.x;return!u&&o<=t.top+m?(h.y=o6.Backward,p.y=r*Math.abs((t.top+m-o)/m)):!c&&l>=t.bottom-m&&(h.y=o6.Forward,p.y=r*Math.abs((t.bottom-m-l)/m)),!f&&s>=t.right-g?(h.x=o6.Forward,p.x=r*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(h.x=o6.Backward,p.x=r*Math.abs((t.left+g-a)/g)),{direction:h,speed:p}}function c6(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function d6(e){return e.reduce(((e,t)=>v5(e,i6(t))),D5)}function f6(e,t){if(void 0===t&&(t=H5),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);e6(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const h6=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+n6(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+r6(t)),0)}]];class p6{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=J5(t),r=d6(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of h6)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class m6{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function g6(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var v6,O6;function y6(e){e.preventDefault()}function b6(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(v6||(v6={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(O6||(O6={}));const w6={start:[O6.Space,O6.Enter],cancel:[O6.Esc],end:[O6.Space,O6.Enter]},k6=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case O6.Right:return{...n,x:n.x+25};case O6.Left:return{...n,x:n.x-25};case O6.Down:return{...n,y:n.y+25};case O6.Up:return{...n,y:n.y-25}}};class x6{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new m6(s5(t)),this.windowListeners=new m6(r5(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(v6.Resize,this.handleCancel),this.windowListeners.add(v6.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(v6.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&f6(n),t(D5)}handleKeyDown(e){if(y5(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=w6,coordinateGetter:o=k6,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:D5;this.referenceCoordinates||(this.referenceCoordinates=u);const c=o(e,{active:t,context:n.current,currentCoordinates:u});if(c){const t=O5(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=s6(n),h=c6(n),p={x:Math.min(i===O6.Right?h.right-h.width/2:h.right,Math.max(i===O6.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===O6.Down?h.bottom-h.height/2:h.bottom,Math.max(i===O6.Down?h.top:h.top+h.height/2,c.y))},m=i===O6.Right&&!s||i===O6.Left&&!l,g=i===O6.Down&&!u||i===O6.Up&&!o;if(m&&p.x!==c.x){const e=n.scrollLeft+t.x,o=i===O6.Right&&e<=d.x||i===O6.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===O6.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(g&&p.y!==c.y){const e=n.scrollTop+t.y,o=i===O6.Down&&e<=d.y||i===O6.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===O6.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,v5(O5(c,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function _6(e){return Boolean(e&&"distance"in e)}function S6(e){return Boolean(e&&"delay"in e)}x6.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=w6,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class P6{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=r5(e);return e instanceof t?e:s5(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=s5(o),this.documentListeners=new m6(this.document),this.listeners=new m6(n),this.windowListeners=new m6(r5(o)),this.initialCoordinates=null!=(r=b5(i))?r:D5,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(v6.Resize,this.handleCancel),this.windowListeners.add(v6.DragStart,y6),this.windowListeners.add(v6.VisibilityChange,this.handleCancel),this.windowListeners.add(v6.ContextMenu,y6),this.documentListeners.add(v6.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(S6(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(_6(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(v6.Click,b6,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(v6.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(t=b5(e))?t:D5,l=O5(r,s);if(!n&&a){if(_6(a)){if(null!=a.tolerance&&g6(l,a.tolerance))return this.handleCancel();if(g6(l,a.distance))return this.handleStart()}return S6(a)&&g6(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===O6.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const E6={move:{name:"pointermove"},end:{name:"pointerup"}};class C6 extends P6{constructor(e){const{event:t}=e,n=s5(t.target);super(e,E6,n)}}C6.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const T6={move:{name:"mousemove"},end:{name:"mouseup"}};var $6;!function(e){e[e.RightClick=2]="RightClick"}($6||($6={}));class Q6 extends P6{constructor(e){super(e,T6,s5(e.event.target))}}Q6.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==$6.RightClick&&(null==r||r({event:n}),!0)}}];const R6={move:{name:"touchmove"},end:{name:"touchend"}};var A6,j6;(class extends P6{constructor(e){super(e,R6)}static setup(){return window.addEventListener(R6.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(R6.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(A6||(A6={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(j6||(j6={}));const D6={x:{[o6.Backward]:!1,[o6.Forward]:!1},y:{[o6.Backward]:!1,[o6.Forward]:!1}};var M6,I6;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(M6||(M6={})),function(e){e.Optimized="optimized"}(I6||(I6={}));const z6=new Map;function W6(e,t){return d5((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function N6(e){let{callback:t,disabled:n}=e;const r=u5(t),i=(0,c.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,c.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function L6(e){return new p6(H5(e),e)}function F6(e,t,n){void 0===t&&(t=L6);const[r,i]=(0,c.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}),null),o=function(e){let{callback:t,disabled:n}=e;const r=u5(t),i=(0,c.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,c.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),a=N6({callback:i});return l5((()=>{i(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())}),[e]),r}const U6=[];function X6(e,t){void 0===t&&(t=[]);const n=(0,c.useRef)(null);return(0,c.useEffect)((()=>{n.current=null}),t),(0,c.useEffect)((()=>{const t=e!==D5;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?O5(e,n.current):D5}function q6(e){return(0,c.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const B6=[];function V6(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return o5(t)?t:e}const Y6=[{sensor:C6,options:{}},{sensor:x6,options:{}}],Z6={current:{}},G6={draggable:{measure:K5},droppable:{measure:K5,strategy:M6.WhileDragging,frequency:I6.Optimized},dragOverlay:{measure:H5}};class H6 extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const K6={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new H6,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:R5},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:G6,measureDroppableContainers:R5,windowRect:null,measuringScheduled:!1},J6={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:R5,draggableNodes:new Map,over:null,measureDroppableContainers:R5},e9=(0,c.createContext)(J6),t9=(0,c.createContext)(K6);function n9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new H6}}}function r9(e,t){switch(t.type){case Q5.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Q5.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Q5.DragEnd:case Q5.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Q5.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new H6(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Q5.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new H6(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Q5.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new H6(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function i9(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,c.useContext)(e9),o=h5(r),a=h5(null==n?void 0:n.id);return(0,c.useEffect)((()=>{if(!t&&!r&&o&&null!=a){if(!y5(o))return;if(document.activeElement===o.target)return;const e=i.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=x5(e);if(t){t.focus();break}}}))}}),[r,t,i,a,o]),null}function o9(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const a9=(0,c.createContext)({...D5,scaleX:1,scaleY:1});var s9;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(s9||(s9={}));const l9=(0,c.memo)((function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:l,sensors:u=Y6,collisionDetection:d=q5,measuring:f,modifiers:h,...p}=e;const m=(0,c.useReducer)(r9,void 0,n9),[g,v]=m,[O,y]=function(){const[e]=(0,c.useState)((()=>new Set)),t=(0,c.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),n=(0,c.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[n,t]}(),[b,w]=(0,c.useState)(s9.Uninitialized),k=b===s9.Initialized,{draggable:{active:x,nodes:_,translate:S},droppable:{containers:P}}=g,E=x?_.get(x):null,C=(0,c.useRef)({initial:null,translated:null}),T=(0,c.useMemo)((()=>{var e;return null!=x?{id:x,data:null!=(e=null==E?void 0:E.data)?e:Z6,rect:C}:null}),[x,E]),$=(0,c.useRef)(null),[Q,R]=(0,c.useState)(null),[A,j]=(0,c.useState)(null),D=c5(p,Object.values(p)),M=m5("DndDescribedBy",o),I=(0,c.useMemo)((()=>P.getEnabled()),[P]),z=(B=f,(0,c.useMemo)((()=>({draggable:{...G6.draggable,...null==B?void 0:B.draggable},droppable:{...G6.droppable,...null==B?void 0:B.droppable},dragOverlay:{...G6.dragOverlay,...null==B?void 0:B.dragOverlay}})),[null==B?void 0:B.draggable,null==B?void 0:B.droppable,null==B?void 0:B.dragOverlay])),{droppableRects:W,measureDroppableContainers:N,measuringScheduled:L}=function(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=(0,c.useState)(null),{frequency:s,measure:l,strategy:u}=i,d=(0,c.useRef)(e),f=function(){switch(u){case M6.Always:return!1;case M6.BeforeDragging:return n;default:return!n}}(),h=c5(f),p=(0,c.useCallback)((function(e){void 0===e&&(e=[]),h.current||a((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),m=(0,c.useRef)(null),g=d5((t=>{if(f&&!n)return z6;if(!t||t===z6||d.current!==e||null!=o){const t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new p6(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,o,n,f,l]);return(0,c.useEffect)((()=>{d.current=e}),[e]),(0,c.useEffect)((()=>{f||p()}),[n,f]),(0,c.useEffect)((()=>{o&&o.length>0&&a(null)}),[JSON.stringify(o)]),(0,c.useEffect)((()=>{f||"number"!=typeof s||null!==m.current||(m.current=setTimeout((()=>{p(),m.current=null}),s))}),[s,f,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:null!=o}}(I,{dragging:k,dependencies:[S.x,S.y],config:z.droppable}),F=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return d5((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(_,x),U=(0,c.useMemo)((()=>A?b5(A):null),[A]),X=function(){const e=!1===(null==Q?void 0:Q.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,n=k&&!e&&!t;return"object"==typeof s?{...s,enabled:n}:{enabled:n}}(),q=function(e,t){return W6(e,t)}(F,z.draggable.measure);var B;!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=(0,c.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;l5((()=>{if(!a&&!s||!t)return void(o.current=!1);if(o.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=B5(n(e),r);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=e6(e);t&&t.scrollBy({top:i.y,left:i.x})}}),[t,a,s,r,n])}({activeNode:x?_.get(x):null,config:X.layoutShiftCompensation,initialRect:q,measure:z.draggable.measure});const V=F6(F,z.draggable.measure,q),Y=F6(F?F.parentElement:null),Z=(0,c.useRef)({activatorEvent:null,active:null,activeNode:F,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=P.getNodeFor(null==(t=Z.current.over)?void 0:t.id),H=function(e){let{measure:t}=e;const[n,r]=(0,c.useState)(null),i=(0,c.useCallback)((e=>{for(const{target:n}of e)if(o5(n)){r((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t]),o=N6({callback:i}),a=(0,c.useCallback)((e=>{const n=V6(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)}),[t,o]),[s,l]=f5(a);return(0,c.useMemo)((()=>({nodeRef:s,rect:n,setRef:l})),[n,s,l])}({measure:z.dragOverlay.measure}),K=null!=(n=H.nodeRef.current)?n:F,J=k?null!=(r=H.rect)?r:V:null,ee=Boolean(H.nodeRef.current&&H.rect),te=B5(ne=ee?null:V,W6(ne));var ne;const re=q6(K?r5(K):null),ie=function(e){const t=(0,c.useRef)(e),n=d5((n=>e?n&&n!==U6&&e&&t.current&&e.parentNode===t.current.parentNode?n:J5(e):U6),[e]);return(0,c.useEffect)((()=>{t.current=e}),[e]),n}(k?null!=G?G:F:null),oe=function(e,t){void 0===t&&(t=H5);const[n]=e,r=q6(n?r5(n):null),[i,o]=(0,c.useReducer)((function(){return e.length?e.map((e=>a6(e)?r:new p6(t(e),e))):B6}),B6),a=N6({callback:o});return e.length>0&&i===B6&&o(),l5((()=>{e.length?e.forEach((e=>null==a?void 0:a.observe(e))):(null==a||a.disconnect(),o())}),[e]),i}(ie),ae=o9(h,{transform:{x:S.x-te.x,y:S.y-te.y,scaleX:1,scaleY:1},activatorEvent:A,active:T,activeNodeRect:V,containerNodeRect:Y,draggingNodeRect:J,over:Z.current.over,overlayNodeRect:H.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:re}),se=U?v5(U,S):null,le=function(e){const[t,n]=(0,c.useState)(null),r=(0,c.useRef)(e),i=(0,c.useCallback)((e=>{const t=t6(e.target);t&&n((e=>e?(e.set(t,i6(t)),new Map(e)):null))}),[]);return(0,c.useEffect)((()=>{const t=r.current;if(e!==t){o(t);const a=e.map((e=>{const t=t6(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,i6(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach((e=>{const t=t6(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,c.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>v5(e,t)),D5):d6(e):D5),[e,t])}(ie),ue=X6(le),ce=X6(le,[V]),de=v5(ae,ue),fe=J?Y5(J,ae):null,he=T&&fe?d({active:T,collisionRect:fe,droppableRects:W,droppableContainers:I,pointerCoordinates:se}):null,pe=L5(he,"id"),[me,ge]=(0,c.useState)(null),ve=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:v5(ae,ce),null!=(i=null==me?void 0:me.rect)?i:null,V),Oe=(0,c.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==$.current)return;const i=_.get($.current);if(!i)return;const o=e.nativeEvent,a=new n({active:$.current,activeNode:i,event:o,options:r,context:Z,onStart(e){const t=$.current;if(null==t)return;const n=_.get(t);if(!n)return;const{onDragStart:r}=D.current,i={active:{id:t,data:n.data,rect:C}};(0,NC.unstable_batchedUpdates)((()=>{null==r||r(i),w(s9.Initializing),v({type:Q5.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:i})}))},onMove(e){v({type:Q5.DragMove,coordinates:e})},onEnd:s(Q5.DragEnd),onCancel:s(Q5.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Z.current;let a=null;if(t&&i){const{cancelDrop:s}=D.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===Q5.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=Q5.DragCancel)}$.current=null,(0,NC.unstable_batchedUpdates)((()=>{v({type:e}),w(s9.Uninitialized),ge(null),R(null),j(null);const t=e===Q5.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=D.current[t];null==e||e(a),O({type:t,event:a})}}))}}(0,NC.unstable_batchedUpdates)((()=>{R(a),j(e.nativeEvent)}))}),[_]),ye=(0,c.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=_.get(r);if(null!==$.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},$.current=r,Oe(n,t))}),[_,Oe]),be=function(e,t){return(0,c.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(u,ye);!function(e){(0,c.useEffect)((()=>{if(!e5)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(u),l5((()=>{V&&b===s9.Initializing&&w(s9.Initialized)}),[V,b]),(0,c.useEffect)((()=>{const{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=Z.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:i};(0,NC.unstable_batchedUpdates)((()=>{null==e||e(o),O({type:"onDragMove",event:o})}))}),[de.x,de.y]),(0,c.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Z.current;if(!e||null==$.current||!t||!i)return;const{onDragOver:o}=D.current,a=r.get(pe),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,NC.unstable_batchedUpdates)((()=>{ge(s),null==o||o(l),O({type:"onDragOver",event:l})}))}),[pe]),l5((()=>{Z.current={activatorEvent:A,active:T,activeNode:F,collisionRect:fe,collisions:he,droppableRects:W,draggableNodes:_,draggingNode:K,draggingNodeRect:J,droppableContainers:P,over:me,scrollableAncestors:ie,scrollAdjustedTranslate:de},C.current={initial:J,translated:fe}}),[T,F,he,fe,_,K,J,W,P,me,ie,de]),function(e){let{acceleration:t,activator:n=A6.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=j6.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:h}=e;const p=function(e){let{delta:t,disabled:n}=e;const r=h5(t);return d5((e=>{if(n||!r||!e)return D6;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[o6.Backward]:e.x[o6.Backward]||-1===i,[o6.Forward]:e.x[o6.Forward]||1===i},y:{[o6.Backward]:e.y[o6.Backward]||-1===o,[o6.Forward]:e.y[o6.Forward]||1===o}}}),[n,t,r])}({delta:f,disabled:!o}),[m,g]=function(){const e=(0,c.useRef)(null),t=(0,c.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]);return[t,(0,c.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),v=(0,c.useRef)({x:0,y:0}),O=(0,c.useRef)({x:0,y:0}),y=(0,c.useMemo)((()=>{switch(n){case A6.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case A6.DraggableRect:return i}}),[n,i,l]),b=(0,c.useRef)(null),w=(0,c.useCallback)((()=>{const e=b.current;if(!e)return;const t=v.current.x*O.current.x,n=v.current.y*O.current.y;e.scrollBy(t,n)}),[]),k=(0,c.useMemo)((()=>s===j6.TreeOrder?[...u].reverse():u),[s,u]);(0,c.useEffect)((()=>{if(o&&u.length&&y){for(const e of k){if(!1===(null==r?void 0:r(e)))continue;const n=u.indexOf(e),i=d[n];if(!i)continue;const{direction:o,speed:s}=u6(e,i,y,t,h);for(const e of["x","y"])p[e][o[e]]||(s[e]=0,o[e]=0);if(s.x>0||s.y>0)return g(),b.current=e,m(w,a),v.current=s,void(O.current=o)}v.current={x:0,y:0},O.current={x:0,y:0},g()}else g()}),[t,w,r,g,o,a,JSON.stringify(y),JSON.stringify(p),m,u,k,d,JSON.stringify(h)])}({...X,delta:S,draggingRect:fe,pointerCoordinates:se,scrollableAncestors:ie,scrollableAncestorRects:oe});const we=(0,c.useMemo)((()=>({active:T,activeNode:F,activeNodeRect:V,activatorEvent:A,collisions:he,containerNodeRect:Y,dragOverlay:H,draggableNodes:_,droppableContainers:P,droppableRects:W,over:me,measureDroppableContainers:N,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:z,measuringScheduled:L,windowRect:re})),[T,F,V,A,he,Y,H,_,P,W,me,N,ie,oe,z,L,re]),ke=(0,c.useMemo)((()=>({activatorEvent:A,activators:be,active:T,activeNodeRect:V,ariaDescribedById:{draggable:M},dispatch:v,draggableNodes:_,over:me,measureDroppableContainers:N})),[A,be,T,V,v,M,_,me,N]);return c.createElement(E5.Provider,{value:y},c.createElement(e9.Provider,{value:ke},c.createElement(t9.Provider,{value:we},c.createElement(a9.Provider,{value:ve},l)),c.createElement(i9,{disabled:!1===(null==a?void 0:a.restoreFocus)})),c.createElement($5,{...a,hiddenTextDescribedById:M}))})),u9=(0,c.createContext)(null),c9="button",d9="Droppable";function f9(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=m5(d9),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:h}=(0,c.useContext)(e9),{role:p=c9,roleDescription:m="draggable",tabIndex:g=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,O=(0,c.useContext)(v?a9:u9),[y,b]=f5(),[w,k]=f5(),x=function(e,t){return(0,c.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(a,t),_=c5(n);return l5((()=>(f.set(t,{id:t,key:o,node:y,activatorNode:w,data:_}),()=>{const e=f.get(t);e&&e.key===o&&f.delete(t)})),[f,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,c.useMemo)((()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!v||p!==c9)||void 0,"aria-roledescription":m,"aria-describedby":d.draggable})),[r,p,g,v,m,d.draggable]),isDragging:v,listeners:r?void 0:x,node:y,over:h,setNodeRef:b,setActivatorNodeRef:k,transform:O}}function h9(){return(0,c.useContext)(t9)}const p9="Droppable",m9={timeout:25};function g9(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=m5(p9),{active:a,dispatch:s,over:l,measureDroppableContainers:u}=(0,c.useContext)(e9),d=(0,c.useRef)({disabled:n}),f=(0,c.useRef)(!1),h=(0,c.useRef)(null),p=(0,c.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:v}={...m9,...i},O=c5(null!=g?g:r),y=N6({callback:(0,c.useCallback)((()=>{f.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{u(Array.isArray(O.current)?O.current:[O.current]),p.current=null}),v)):f.current=!0}),[v]),disabled:m||!a}),b=(0,c.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))}),[y]),[w,k]=f5(b),x=c5(t);return(0,c.useEffect)((()=>{y&&w.current&&(y.disconnect(),f.current=!1,y.observe(w.current))}),[w,y]),l5((()=>(s({type:Q5.RegisterDroppable,element:{id:r,key:o,disabled:n,node:w,rect:h,data:x}}),()=>s({type:Q5.UnregisterDroppable,key:o,id:r}))),[r]),(0,c.useEffect)((()=>{n!==d.current.disabled&&(s({type:Q5.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)}),[r,o,n,s]),{active:a,rect:h,isOver:(null==l?void 0:l.id)===r,node:w,over:l,setNodeRef:k}}function v9(e){let{animation:t,children:n}=e;const[r,i]=(0,c.useState)(null),[o,a]=(0,c.useState)(null),s=h5(n);return n||r||!s||i(s),l5((()=>{if(!o)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,o)).then((()=>{i(null)})):i(null)}),[t,r,o]),c.createElement(c.Fragment,null,n,r?(0,c.cloneElement)(r,{ref:a}):null)}const O9={x:0,y:0,scaleX:1,scaleY:1};function y9(e){let{children:t}=e;return c.createElement(e9.Provider,{value:J6},c.createElement(a9.Provider,{value:O9},t))}const b9={position:"fixed",touchAction:"none"},w9=e=>y5(e)?"transform 250ms ease":void 0,k9=(0,c.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:a,rect:s,style:l,transform:u,transition:d=w9}=e;if(!s)return null;const f=i?u:{...u,scaleX:1,scaleY:1},h={...b9,width:s.width,height:s.height,top:s.top,left:s.left,transform:w5.Transform.toString(f),transformOrigin:i&&r?I5(r,s):void 0,transition:"function"==typeof d?d(r):d,...l};return c.createElement(n,{className:a,style:h,ref:t},o)})),x9=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},_9={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:w5.Transform.toString(t)},{transform:w5.Transform.toString(n)}]},sideEffects:x9({styles:{active:{opacity:"0"}}})};let S9=0;function P9(e){return(0,c.useMemo)((()=>{if(null!=e)return S9++,S9}),[e])}const E9=c.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:o,modifiers:a,wrapperElement:s="div",className:l,zIndex:u=999}=e;const{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:g,dragOverlay:v,over:O,measuringConfiguration:y,scrollableAncestors:b,scrollableAncestorRects:w,windowRect:k}=h9(),x=(0,c.useContext)(a9),_=P9(null==f?void 0:f.id),S=o9(a,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:v.rect,over:O,overlayNodeRect:v.rect,scrollableAncestors:b,scrollableAncestorRects:w,transform:x,windowRect:k}),P=W6(h),E=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return u5(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const l=V6(o);if(!l)return;const{transform:u}=r5(o).getComputedStyle(o),c=Z5(u);if(!c)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={..._9,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const u=a.rect.left-o.rect.left,c=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-u,y:s.y-c,...d},h=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[p]=h,m=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;const g=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==g||g(),e()}}))}}(t);return f6(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:c})}))}({config:r,draggableNodes:m,droppableContainers:g,measuringConfiguration:y}),C=P?v.setRef:void 0;return c.createElement(y9,null,c.createElement(v9,{animation:E},f&&_?c.createElement(k9,{key:_,id:f.id,ref:C,as:s,activatorEvent:d,adjustScale:t,className:l,transition:o,rect:P,style:{zIndex:u,...i},transform:S},n):null))}));function C9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T9 extends C6{}C9(T9,"activators",[{eventName:"onPointerDown",handler:({nativeEvent:e})=>Q9(e.target)}]),C9(class extends Q6{},"activators",[{eventName:"onMouseDown",handler:({nativeEvent:e})=>Q9(e.target)}]);class $9 extends x6{}function Q9(e){let t=e;for(;t;){if(t.dataset&&t.dataset.noDnd)return!1;t=t.parentElement}return!0}C9($9,"activators",[{eventName:"onKeyDown",handler:({nativeEvent:e})=>Q9(e.target)}]);const R9=({entry:e})=>{const t=pz((t=>tI(t,e.collection))),n=MP(t),r=(0,c.useMemo)((()=>{var e;return t&&"fields"in t?null===(e=t.fields)||void 0===e?void 0:e.find((e=>e.name===n.date&&"image"===e.widget)):void 0}),[t,n.date]),i=QO(r);return t?c.createElement(fJ,{entry:e,imageFieldName:n.image,descriptionFieldName:n.description,dateFieldName:n.date,dateFormats:i,collection:t,useWorkflow:!0,noMargin:!0}):null};function A9(){return A9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const n=LD(),r=hz(),{isDragging:i,setNodeRef:o,listeners:a}=f9({id:`${e.collection}|${e.slug}`,disabled:t}),s=pz((t=>tI(t,e.collection))),l=MP(s),u=(0,c.useMemo)((()=>{var e;return s&&"fields"in s?null===(e=s.fields)||void 0===e?void 0:e.find((e=>e.name===l.date&&"datetime"===e.widget)):void 0}),[s,l.date]),d=QO(u),f=(0,c.useMemo)((()=>{let t=null;var n,r,i;s&&(t=null!==(n=null===(r=wE(SP(s,e.slug)))||void 0===r||null===(i=r.getHeight)||void 0===i?void 0:i.call(r,{collection:s,entry:e}))&&void 0!==n?n:null);return ze(t)&&(t=Ie(l.image)?204:56),t}),[s,e,l.image]),h=(0,c.useCallback)((async t=>{t.stopPropagation(),await YM({title:"editor.editor.onDeleteUnpublishedChangesTitle",body:"editor.editor.onDeleteUnpublishedChangesBody",color:"error"})&&await r(Hz(e.collection,e.slug))}),[r,e.collection,e.slug]),p=(0,c.useCallback)((async t=>{t.stopPropagation(),e.status===De.PENDING_PUBLISH?await YM({title:"editor.editor.onPublishingTitle",body:"editor.editor.onPublishingBody"})&&await r(Kz(e.collection,e.slug)):alert({title:"editor.editor.onPublishingNotReadyTitle",body:{key:"editor.editor.onPublishingNotReadyBody"}})}),[r,e.collection,e.slug,e.status]),m=(0,c.useMemo)((()=>PP(s,e)),[s,e]);return s?c.createElement("div",A9({ref:o,className:qD(j9.root,i&&j9.dragging),style:{height:f,opacity:i?0:void 0},"data-testid":`drag-handle-${m}`},a),c.createElement(fJ,{entry:e,imageFieldName:l.image,descriptionFieldName:l.description,dateFieldName:l.date,dateFormats:d,collection:s,backTo:"/dashboard",useWorkflow:!0,noMargin:!0},c.createElement("div",{className:j9.actions},c.createElement(FN,{icon:p1,variant:"text",color:"error",rootClassName:j9["action-button"],onClick:h,title:n("workflow.workflowCard.deleteChanges"),"aria-label":"delete unpublished changes","data-testid":"workflow-dashboard-delete"}),e.status===De.PENDING_PUBLISH?c.createElement(FN,{icon:B2,variant:"text",color:"secondary",rootClassName:j9["action-button"],onClick:p,title:n("workflow.workflowCard.publishChanges"),"aria-label":"publish changes","data-testid":"workflow-dashboard-publish"}):null))):null},M9=UD("WorkflowColumn",["root","dragging","over","content","header","draft","pending_review","pending_publish"]),I9=({entries:e,status:t,dragging:n,useOpenAuthoring:r})=>{const i=LD(),{isOver:o,setNodeRef:a}=g9({id:t,disabled:r});return c.createElement("div",{ref:a,className:qD(M9.root,n&&M9.dragging,o&&M9.over),"aria-label":"droppable region draft","data-testid":`drop-zone-${t}`},c.createElement("div",{className:qD(M9.header,M9[t])},i(`workflow.workflowList.${t}`)),c.createElement("div",{className:M9.content},e.map((e=>c.createElement(D9,{key:`${e.collection}|${e.slug}`,entry:e,useOpenAuthoring:r})))))};function z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W9(e){for(var t=1;tObject.values(t).filter((t=>t.status===e))),[t,e])}function F9(e){return`${e.collection}|${e.slug}`}function U9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X9(e){for(var t=1;t{const e=LD(),t=hz(),n=pz(kG),{boardSections:r,entriesById:i,setBoardSections:o}=function(){const[e,t]=(0,c.useState)({[De.DRAFT]:[],[De.PENDING_REVIEW]:[],[De.PENDING_PUBLISH]:[]}),n=pz(gz),r=(0,c.useMemo)((()=>Object.keys(e).reduce(((t,n)=>(t.push(...e[n].map((e=>W9(W9({},e),{},{boardStatus:n})))),t)),[]).reduce(((e,t)=>(e[`${t.collection}|${t.slug}`]=t,e)),{})),[e]);return(0,c.useEffect)((()=>{t(Object.values(n).reduce(((e,t)=>(t.status&&e[t.status].push(t),e)),{[De.DRAFT]:[],[De.PENDING_REVIEW]:[],[De.PENDING_PUBLISH]:[]}))}),[n]),{boardSections:e,entriesById:r,setBoardSections:t}}(),a=L9(De.PENDING_REVIEW),s=L9(De.PENDING_PUBLISH),[l,u]=(0,c.useState)(!1),[d,f]=(0,c.useState)(null),h=(0,c.useCallback)((({active:e})=>{u(!0),f(e.id)}),[]),p=(0,c.useCallback)((({over:e,active:n})=>{const r=i[n.id];r&&r.status&&e&&t(Gz(r.collection,r.slug,r.status,e.id)),u(!1),f(null)}),[t,i]),m=(0,c.useCallback)((()=>{u(!1),f(null)}),[]),g=(0,c.useMemo)((()=>d?i[d]:null),[d,i]),v=j5(A5(T9,{activationConstraint:{distance:8}}));return c.createElement(yH,{breadcrumbs:[{name:"Dashboard"}],showQuickCreate:!0,showLeftNav:!0,noMargin:!0},c.createElement("div",{className:qD(B9.root,l&&B9.dragging)},c.createElement("div",{className:B9["header-wrapper"]},c.createElement("h2",{className:B9.header},c.createElement("div",{className:B9["header-icon-wrapper"]},c.createElement(GB,{className:B9["header-icon"]})),c.createElement("div",{className:B9["header-label"]},e("workflow.workflow.workflowHeading"))),c.createElement("div",{className:B9["header-description"]},e("workflow.workflow.description",{smart_count:a.length,readyCount:s.length}))),c.createElement(l9,{onDragStart:h,onDragEnd:p,onDragOver:({active:e,over:t})=>{const n=i[e.id].boardStatus,a=null==t?void 0:t.id;n&&a&&n!==a&&o((t=>{const i=t[n].findIndex((t=>F9(t)===e.id));return X9(X9({},t),{},{[n]:[...t[n].filter((t=>F9(t)!==e.id))],[a]:[r[n][i],...t[a]]})}))},onDragCancel:m,sensors:v},c.createElement("div",{className:qD(B9.board,"CMS_Scrollbar_root")},Object.keys(r).filter((e=>!n||e!==De.PENDING_PUBLISH)).map((e=>c.createElement(I9,{key:e,entries:r[e],status:e,dragging:l,useOpenAuthoring:n})))),c.createElement(E9,{dropAnimation:_9},g?c.createElement(R9,{entry:g}):null))))},Y9=["name"],Z9=UD("App",["root","content"]);function G9(){const{name:e}=re();return c.createElement(pe,{to:`/collections/${e}`})}function H9(){const e=re(),{name:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const r=n();if(!r.config.config)return;const i=DC(r.config.config);return t(MA()),i.authenticate(e).then((e=>{e.useOpenAuthoring&&t(jA()),t(IA(e))})).catch((e=>{console.error(e),e instanceof Error&&(t($A({type:"warning",message:{key:"ui.toast.onFailToAuth",options:{details:e.message}}})),t(zA(e)))}))}}})((({auth:e,user:t,config:n,collections:r,loginUser:i,isFetching:o,scrollSyncEnabled:a})=>{var s,l;const u=LD(),d=ne(),f=hz(),h=f4(),p=(0,c.useCallback)((e=>c.createElement("div",null,c.createElement("h1",null,u("app.app.errorHeader")),c.createElement("div",null,c.createElement("strong",null,u("app.app.configErrors"),":"),c.createElement("div",null,null!=e?e:n.error),c.createElement("span",null,u("app.app.checkConfigYml"))))),[n.error,u]),m=(0,c.useCallback)((e=>{i(e)}),[i]),g=(0,c.useMemo)((()=>{if(!n.config)return null;const e=DC(n.config);return null==e?void 0:e.authComponent()}),[n.config]),v=(0,c.useMemo)((()=>n.config?null==g?c.createElement("div",null,c.createElement("h1",null,u("app.app.waitingBackend"))):c.createElement(g,{key:"auth-page",onLogin:m,error:e.error,inProgress:e.isFetching,siteId:n.config.backend.site_domain,base_url:n.config.backend.base_url,authEndpoint:n.config.backend.auth_endpoint,config:n.config,clearHash:()=>d("/",{replace:!0})}):null),[g,e.error,e.isFetching,n.config,m,d,u]),O=pz(vC),y=Jz(r),{pathname:b}=ee(),[w]=XT();(0,c.useEffect)((()=>{/\/collections\/[a-zA-Z0-9_-]+\/entries\/[a-zA-Z0-9_-]+/g.test(b)||/\/collections\/[a-zA-Z0-9_-]+\/new/g.test(b)&&"true"===w.get("duplicate")||f({type:b$})}),[f,b,w]),(0,c.useEffect)((()=>{t&&O&&f(Zz(r))}),[r,f,O,t]);const[k,x]=(0,c.useState)(t);(0,c.useEffect)((()=>{var e;!k&&t&&RE({name:"login",data:{login:t.login,name:null!==(e=t.name)&&void 0!==e?e:""}}),x(t)}),[k,t]);const _=(0,c.useMemo)((()=>t?c.createElement(c.Fragment,null,o&&c.createElement(yD(),null),c.createElement(ve,null,c.createElement(me,{path:"/",element:c.createElement(pe,{to:y})}),c.createElement(me,{path:"/dashboard",element:O?c.createElement(V9,null):c.createElement(pe,{to:y})}),c.createElement(me,{path:"/search",element:c.createElement(pe,{to:y})}),c.createElement(me,{path:"/collections/:name/search/",element:c.createElement(G9,null)}),c.createElement(me,{path:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",element:c.createElement(pe,{to:y})}),c.createElement(me,{path:"/collections",element:c.createElement(c0,null)}),c.createElement(me,{path:"/collections/:name",element:c.createElement(c0,null)}),c.createElement(me,{path:"/collections/:name/new",element:c.createElement($4,{collections:r,newRecord:!0})}),c.createElement(me,{path:"/collections/:name/new/*",element:c.createElement($4,{collections:r,newRecord:!0})}),c.createElement(me,{path:"/collections/:name/entries/*",element:c.createElement($4,{collections:r})}),c.createElement(me,{path:"/collections/:name/search/:searchTerm",element:c.createElement(c0,{isSearchResults:!0,isSingleSearchResult:!0})}),c.createElement(me,{path:"/collections/:name/filter/*",element:c.createElement(c0,null)}),c.createElement(me,{path:"/search/:searchTerm",element:c.createElement(c0,{isSearchResults:!0})}),c.createElement(me,{path:"/edit/:name/*",element:c.createElement(H9,null)}),c.createElement(me,{path:"/page/:id",element:c.createElement(R4,null)}),c.createElement(me,{path:"/media",element:c.createElement(Q4,null)}),c.createElement(me,{element:c.createElement(eW,null)}))):v),[v,r,y,o,O,t]);return(0,c.useEffect)((()=>{setTimeout((()=>{RE({name:"mounted"})}))}),[]),(0,c.useEffect)((()=>{var e,t;const r=null===(e=n.config)||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.default_theme;We(r)||Ie(localStorage.getItem("color-theme"))||f(DA(r))}),[null===(s=n.config)||void 0===s||null===(l=s.theme)||void 0===l?void 0:l.default_theme,f]),n.config?n.error?p():n.isFetching?c.createElement(nK,null,u("app.app.loadingConfig")):c.createElement(sH,{theme:h,element:document.documentElement},c.createElement(vD.ScrollSync,{key:"scroll-sync",enabled:a},c.createElement(c.Fragment,null,c.createElement("div",{key:"back-to-top-anchor",id:"back-to-top-anchor"}),c.createElement("div",{key:"cms-root",id:"cms-root",className:Z9.root},c.createElement("div",{key:"cms-wrapper",className:Z9.content},c.createElement(J4,{key:"snackbars"}),_,c.createElement(Mz,{key:"alert"}),c.createElement(VM,{key:"confirm"})))))):p(u("app.app.configNotFound"))})),J9=UD("WidgetUnknown",["root"]),e8=UD("WidgetUnknownPreview",["root"]);xE("unknown",(({field:e})=>{const t=LD();return c.createElement("div",{className:J9.root},t("editor.editorWidgets.unknownControl.noControl",{widget:e.widget}))}),(({field:e})=>{const t=LD();return c.createElement("div",{className:e8.root},t("editor.editorWidgets.unknownPreview.noPreview",{widget:e.widget}))}));var t8=__webpack_require__(68883);let n8=function(e){return e.Other="other",e.Success="success",e}({});function r8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o8=function(e){return e.MERGED="MERGED",e.SUPERSEDED="SUPERSEDED",e.OPEN="OPEN",e.DECLINED="DECLINED",e}(o8||{}),a8=function(e){return e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="INPROGRESS",e.Stopped="STOPPED",e}(a8||{});const s8="Bitbucket",l8="application/json; charset=utf-8";function u8(e){return e&&404===e.status?(console.info("[StaticCMS] This 404 was expected and handled appropriately."),{size:0,values:[]}):Promise.reject(e)}class c8{constructor(e){i8(this,"apiRoot",void 0),i8(this,"branch",void 0),i8(this,"repo",void 0),i8(this,"requestFunction",void 0),i8(this,"repoURL",void 0),i8(this,"commitAuthor",void 0),i8(this,"mergeStrategy",void 0),i8(this,"initialWorkflowStatus",void 0),i8(this,"cmsLabelPrefix",void 0),i8(this,"buildRequest",(e=>{const t=i_.withRoot(this.apiRoot)(e);return"cache"in t?t:i_.withNoCache(t)})),i8(this,"request",(e=>{try{return c_(this,e)}catch(e){if(e instanceof Error)throw new a_(e.message,null,s8);throw new a_("Unknown api error",null,s8)}})),i8(this,"responseToJSON",V_({format:"json",apiName:s8})),i8(this,"responseToBlob",V_({format:"blob",apiName:s8})),i8(this,"responseToText",V_({format:"text",apiName:s8})),i8(this,"requestJSON",(e=>this.request(e).then(this.responseToJSON))),i8(this,"requestText",(e=>this.request(e).then(this.responseToText))),i8(this,"user",(()=>this.requestJSON("/user"))),i8(this,"hasWriteAccess",(async()=>{const e=await this.request(this.repoURL);if(404===e.status)throw Error("Repo not found");return e.ok})),i8(this,"getBranch",(async e=>await this.requestJSON(`${this.repoURL}/refs/branches/${e}`))),i8(this,"branchCommitSha",(async e=>{const{target:{hash:t}}=await this.getBranch(e);return t})),i8(this,"defaultBranchCommitSha",(()=>this.branchCommitSha(this.branch))),i8(this,"isFile",(({type:e})=>"commit_file"===e)),i8(this,"getFileId",((e,t)=>`${e}/${t}`)),i8(this,"processFile",(e=>function(e){for(var t=1;te.filter((e=>!!t||this.isFile(e))).map(this.processFile))),i8(this,"readFile",(async(e,t,{parseText:n=!0,branch:r=this.branch,head:i=""}={})=>{const o=await d_(t,(async()=>{const t=i||await this.branchCommitSha(r);return await this.request({url:`${this.repoURL}/src/${t}/${e}`,cache:"no-store"}).then(n?this.responseToText:this.responseToBlob)}),ZS,n);return o})),i8(this,"getEntriesAndCursor",(e=>{const{size:t,page:n,pagelen:r,next:i,previous:o,values:a}=e,s=r&&t?Math.ceil(t/r):void 0;return{entries:a,cursor:j_.create({actions:[...i?["next"]:[],...o?["prev"]:[]],meta:{page:n,count:t,pageSize:r,pageCount:s},data:{links:{next:i,prev:o}}})}})),i8(this,"listFiles",(async(e,t=1,n,r)=>{const i=await this.branchCommitSha(r),o=await this.requestJSON({url:`${this.repoURL}/src/${i}/${e}`,params:{max_depth:`${t}`,pagelen:`${n}`}}).catch(u8),{entries:a,cursor:s}=this.getEntriesAndCursor(o);return{entries:this.processFiles(a),cursor:s}})),i8(this,"traverseCursor",(async(e,t)=>{var n;return uo()([this.requestJSON,GS(this.getEntriesAndCursor),GS((({cursor:e,entries:t})=>({cursor:e,entries:this.processFiles(t)})))])((null===(n=e.data)||void 0===n?void 0:n.links)[t])})),i8(this,"listAllFiles",(async(e,t,n,r)=>{const{cursor:i,entries:o}=await this.listFiles(e,t,100,n),a=[...o];let s=i;for(;s&&s.actions.has("next");){const{cursor:e,entries:t}=await this.traverseCursor(s,"next");a.push(...t),s=e}return this.processFiles(a,r)})),i8(this,"deleteFiles",((e,t)=>{const n=new FormData;if(e.forEach((e=>{n.append("files",e)})),n.append("branch",this.branch),t&&n.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.append("author",`${e} <${t}>`)}return this.request(i_.withBody(n,i_.withMethod("POST",`${this.repoURL}/src`)))})),this.apiRoot=e.apiRoot||"https://api.bitbucket.org/2.0",this.branch=e.branch||"main",this.repo=e.repo||"",this.requestFunction=e.requestFunction||i_.performRequest,this.hasWriteAccess=e.hasWriteAccess||this.hasWriteAccess,this.repoURL=this.repo?`/repositories/${this.repo}`:"",this.mergeStrategy=e.squashMerges?"squash":"merge_commit",this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t){const n=await f_(t,(async()=>{try{const{values:t}=await this.requestJSON({url:`${this.repoURL}/commits`,params:{path:e,include:this.branch}}),n=t[0];return{author:n.author.user?n.author.user.display_name||n.author.user.nickname:n.author.raw,updatedOn:n.date}}catch(e){return{author:"",updatedOn:""}}}),ZS);return n}async isShaExistsInBranch(e,t){var n;const r=await this.requestJSON({url:`${this.repoURL}/commits`,params:{include:e,pagelen:"100"}}).catch((t=>(console.info(`[StaticCMS] Failed getting commits for branch '${e}'`,t),[])));return null==r||null===(n=r.values)||void 0===n?void 0:n.some((e=>e.hash===t))}async uploadFiles(e,{commitMessage:t,branch:n,parentSha:r}){const i=new FormData,o=[];e.forEach((e=>{if(e.delete)i.append("files",e.path);else if(e.newPath){const t=Ee()(e,"fileObj",new Blob([e.raw]));o.push({from:e.path,to:e.newPath,contentBlob:t})}else{const t=Ee()(e,"fileObj",new Blob([e.raw]));i.append(e.path,t,ES(e.path))}}));for(const{from:e,to:t,contentBlob:a}of o){const o=(0,Re.dirname)(e),s=(0,Re.dirname)(t),l=r?this.branch:n,u=await this.listAllFiles(o,100,l);for(const t of u){i.append("files",t.path);const n=t.path===e?a:await this.readFile(t.path,null,{branch:l,parseText:!1});i.append(t.path.replace(o,s),n,ES(t.path))}}if(t&&i.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;i.append("author",`${e} <${t}>`)}i.append("branch",n),r&&i.append("parents",r);try{await this.requestText({url:`${this.repoURL}/src`,method:"POST",body:i})}catch(e){if(e instanceof Error){const t=e.message||"";r&&t.includes("Something went wrong")&&await h_(n,(e=>this.getBranch(e)),s8)}throw e}return e}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}return this.uploadFiles(r,{commitMessage:n.commitMessage,branch:this.branch})}async getDifferences(e,t=this.branch){if(e===t)return[];const n=await this.requestText({url:`${this.repoURL}/diff/${e}..${t}`,params:{binary:"false"}}),r=(0,t8.parse)(n).map((e=>{var t,n;const r=(null===(t=e.oldPath)||void 0===t?void 0:t.replace(/b\//,""))||"",i=(null===(n=e.newPath)||void 0===n?void 0:n.replace(/b\//,""))||"",o=i||r;return{oldPath:r,newPath:i,status:e.status,newFile:"added"===e.status,path:o,binary:e.binary||/.svg$/.test(o)}}));return r}async listUnpublishedBranches(){return console.info("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),(await this.getPullRequests()).map((e=>e.source.branch.name))}async getPullRequestLabel(e){const t=await this.requestJSON({url:`${this.repoURL}/pullrequests/${e}/comments`,params:{pagelen:"100"}});return t.values.map((e=>e.content.raw))[t.values.length-1]}async getPullRequests(e){const t=e?`source.branch.name = "${e}"`:`source.branch.name ~ "${g_}/"`,n=await this.requestJSON({url:`${this.repoURL}/pullrequests`,params:{pagelen:"50",q:uE` source.repository.full_name = "${this.repo}" AND state = "${o8.OPEN}" AND destination.branch.name = "${this.branch}" @@ -44,7 +44,7 @@ If your repo is under an organization, ensure the organization has granted access to Static CMS. - `,e})))throw new Error("Your Gitea user account does not have access to this repo.");return{name:n.full_name,login:n.login,avatar_url:n.avatar_url,token:e.token}}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await DS((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>{const n=e.filter((e=>U_(e,t))),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),Ate);return o[D_]=i,o}async allEntriesByFolder(e,t,n){const r=this.api.originRepoURL,i=await DS((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>e.filter((e=>U_(e,t)))))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),Ate);return i}entriesByFiles(e){const t=this.api.repoURL;return MS(e,((e,n)=>this.api.readFile(e,n,{repoURL:t}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),Ate)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then((t=>({file:{path:e,id:null},data:t}))).catch((()=>({file:{path:e,id:null},data:""})))}async getMedia(e=this.mediaFolder,t){return e?this.api.listFiles(e,void 0,t).then((e=>e.map((({id:e,name:t,size:n,path:r,type:i})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r,isDirectory:"tree"===i}))))):[]}async getMediaFile(e){const t=await WS(e,null,this.api.readFile.bind(this.api)),n=ES(e),r=zS(n,t),i=URL.createObjectURL(r);return{id:await K_(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||zx()(10),NS(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return LS(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:i}=e,o=URL.createObjectURL(i);return{id:n,name:i.name,size:i.size,displayURL:o,path:$j()(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){var n,r;const i=e.meta,o=null!==(n=null===(r=e.data)||void 0===r?void 0:r.files)&&void 0!==n?n:[];let a;switch(t){case"first":default:a=this.getCursorAndFiles(o,1);break;case"last":var s;a=this.getCursorAndFiles(o,null!==(s=null==i?void 0:i.pageCount)&&void 0!==s?s:1);break;case"next":var l;a=this.getCursorAndFiles(o,(null!==(l=null==i?void 0:i.page)&&void 0!==l?l:1)+1);break;case"prev":var u;a=this.getCursorAndFiles(o,(null!==(u=null==i?void 0:i.page)&&void 0!==u?u:1)-1)}const c=await MS(a.files,((e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),Ate);return{entries:c,cursor:a.cursor}}async unpublishedEntries(){throw new Error("Editorial workflow is not yet available for Gitea")}async unpublishedEntry(){throw new Error("Editorial workflow is not yet available for Gitea")}async unpublishedEntryDataFile(){throw new Error("Editorial workflow is not yet available for Gitea")}async unpublishedEntryMediaFile(){throw new Error("Editorial workflow is not yet available for Gitea")}async updateUnpublishedEntryStatus(){throw new Error("Editorial workflow is not yet available for Gitea")}async publishUnpublishedEntry(){throw new Error("Editorial workflow is not yet available for Gitea")}async deleteUnpublishedEntry(){throw new Error("Editorial workflow is not yet available for Gitea")}async getDeployPreview(){throw new Error("Editorial workflow is not yet available for Gitea")}}const Fte=({inProgress:e=!1,onLogin:t})=>{const n=(0,c.useCallback)((e=>{e.preventDefault(),t({token:"fake_token"})}),[t]);return c.createElement(p8,{login:n,inProgress:e})};function Ute(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xte(e){for(var t=1;t!e.isDirectory));return i.map((({url:e,path:t,isDirectory:n})=>{const r=e;return{id:r,name:ES(t),displayURL:{id:r,path:e},path:t,isDirectory:n}}))}async getMediaFile(e){return Vte(await this.request({action:"getMediaFile",params:{branch:this.branch,path:e}}))}getMediaDisplayURL(e){return"string"==typeof e?Promise.resolve(e):Promise.resolve(e.path)}async persistMedia(e,t){const n=await Bte(e);return Vte(await this.request({action:"persistMedia",params:{branch:this.branch,asset:n,options:{commitMessage:t.commitMessage}}}))}deleteFiles(e,t){return this.request({action:"deleteFiles",params:{branch:this.branch,paths:e,options:{commitMessage:t}}})}traverseCursor(){throw new Error("Not supported")}allEntriesByFolder(e,t,n){return this.entriesByFolder(e,t,n)}unpublishedEntries(){return this.request({action:"unpublishedEntries",params:{branch:this.branch}})}async unpublishedEntry({id:e,collection:t,slug:n}){try{return await this.request({action:"unpublishedEntry",params:{branch:this.branch,id:e,collection:t,slug:n,cmsLabelPrefix:this.cmsLabelPrefix}})}catch(e){if(404===e.status)throw new z_("content is not under editorial workflow",!0);throw e}}async unpublishedEntryDataFile(e,t,n,r){const{data:i}=await this.request({action:"unpublishedEntryDataFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}});return i}async unpublishedEntryMediaFile(e,t,n,r){return Vte(await this.request({action:"unpublishedEntryMediaFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}}))}updateUnpublishedEntryStatus(e,t,n){return this.request({action:"updateUnpublishedEntryStatus",params:{branch:this.branch,collection:e,slug:t,newStatus:n,cmsLabelPrefix:this.cmsLabelPrefix}})}publishUnpublishedEntry(e,t){return this.request({action:"publishUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}deleteUnpublishedEntry(e,t){return this.request({action:"deleteUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}getDeployPreview(e,t){return this.request({action:"getDeployPreview",params:{branch:this.branch,collection:e,slug:t}})}}var Zte=__webpack_require__(82675),Gte=__webpack_require__.n(Zte),Hte=__webpack_require__(10127),Kte=__webpack_require__.n(Hte);const Jte=({inProgress:e=!1,config:t,onLogin:n})=>{(0,c.useEffect)((()=>{!1===t.backend.login&&n({token:"fake_token"})}),[t.backend.login,n]);const r=(0,c.useCallback)((e=>{e.preventDefault(),n({token:"fake_token"})}),[n]);return c.createElement(p8,{login:r,inProgress:e})};function ene(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tne(e){for(var t=1;t1;){const e=r.shift();i[e]=i[e]||{},i=i[e]}i[r.shift()]={content:t,path:e}}function one(e,t){Kte()(t,e.split("/"))}window.repoFiles=window.repoFiles||{},window.repoFilesUnpublished=window.repoFilesUnpublished||[];const ane=10;function sne(e,t,n,r,i){const o=n.length,a=Math.floor(o/ane);return j_.create({actions:[...r0?["prev","first"]:[]],meta:{index:r,count:o,pageSize:ane,pageCount:a},data:{folder:e,extension:t,index:r,pageCount:a,depth:i}})}function lne(e,t,n,r,i=[],o=t,a){return r<=0||(a&&i.unshift({isDirectory:!0,content:"",path:o}),Object.keys(e[t]||{}).forEach((s=>{const l=s.split(".");if(!Ne(l.length>1?l[l.length-1]:""))return lne(e[t],s,n,r-1,i,`${o}/${s}`,a);{const r=e[t][s];n&&!s.endsWith(`.${n}`)||i.unshift({content:r.content,path:`${o}/${s}`})}}))),i}class une{constructor(e,t={}){nne(this,"mediaFolder",void 0),nne(this,"options",void 0),this.options=t,this.mediaFolder=e.media_folder}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return Jte}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}traverseCursor(e,t){const{folder:n,extension:r,index:i,pageCount:o,depth:a}=e.data,s="next"===t?i+1:"prev"===t?i-1:"first"===t?0:"last"===t?o:0,l=lne(window.repoFiles,n,r,a).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),u=l.slice(s*ane,s*ane+ane),c=sne(n,r,l,s,a);return Promise.resolve({entries:u,cursor:c})}entriesByFolder(e,t,n){const r=(e?lne(window.repoFiles,e,t,n):[]).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),i=sne(e,t,r,0,n),o=Gte()(r,ane);return o[D_]=i,Promise.resolve(o)}entriesByFiles(e){return Promise.all(e.map((e=>{var t,n;return{file:e,data:null!==(t=null===(n=rne(e.path,window.repoFiles))||void 0===n?void 0:n.content)&&void 0!==t?t:""}})))}getEntry(e){var t,n;return Promise.resolve({file:{path:e,id:null},data:null!==(t=null===(n=rne(e,window.repoFiles))||void 0===n?void 0:n.content)&&void 0!==t?t:""})}async persistEntry(e,t){if(t.useWorkflow){const n=e.dataFiles[0].slug,r=`${t.collectionName}/${n}`,i=window.repoFilesUnpublished[r],o=(null==i?void 0:i.status)||t.status||this.options.initialWorkflowStatus;return this.addOrUpdateUnpublishedEntry(r,e.dataFiles,e.assets,n,t.collectionName,o),Promise.resolve()}return e.dataFiles.forEach((e=>{const{path:t,newPath:n,raw:r}=e;n?(one(t,window.repoFiles),ine(n,r,window.repoFiles)):ine(t,r,window.repoFiles)})),e.assets.forEach((e=>{ine(e.path,e,window.repoFiles)})),Promise.resolve()}async getMedia(e=this.mediaFolder,t){if(!e)return[];const n=lne(window.repoFiles,go()(e,"/").split("/")[0],"",100,void 0,void 0,t).filter((t=>(0,Re.dirname)(t.path)===go()(e,"/")));return n.map((e=>{var t;return{name:(0,Re.basename)(e.path),id:e.path,path:e.path,displayURL:e.path,isDirectory:null!==(t=e.isDirectory)&&void 0!==t&&t}}))}async getMediaFile(e){return{id:e,displayURL:e,path:e,name:(0,Re.basename)(e),size:1,url:e}}normalizeAsset(e){const t=e.fileObj,{name:n,size:r}=t,i=xe()(window.URL.createObjectURL,t),o=Te()(i)?"":i;return{id:PA(),name:n,size:r,path:e.path,url:o,displayURL:o,file:t}}persistMedia(e){const t=this.normalizeAsset(e);return ine(e.path,e,window.repoFiles),Promise.resolve(t)}deleteFiles(e){return e.forEach((e=>{one(e,window.repoFiles)})),Promise.resolve()}async allEntriesByFolder(e,t,n){const r=(e?lne(window.repoFiles,e,t,n):[]).map((e=>({data:e.content,file:{path:e.path,id:e.path}})));return Promise.resolve(r)}getMediaDisplayURL(e){throw new Error("Not supported")}unpublishedEntries(){return Promise.resolve(Object.keys(window.repoFilesUnpublished))}unpublishedEntry({id:e,collection:t,slug:n}){if(e){const r=e.split("/");t=r[0],n=r[1]}const r=window.repoFilesUnpublished[`${t}/${n}`];return r?Promise.resolve(tne(tne({},r),{},{openAuthoring:!1})):Promise.reject(new z_("content is not under editorial workflow",!0))}async unpublishedEntryDataFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return null==r?void 0:r.content}async unpublishedEntryMediaFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return this.normalizeAsset(null==r?void 0:r.content)}deleteUnpublishedEntry(e,t){return delete window.repoFilesUnpublished[`${e}/${t}`],Promise.resolve()}async addOrUpdateUnpublishedEntry(e,t,n,r,i,o){const a=[];t.forEach((t=>{var n;const{path:r,newPath:i,raw:o}=t,s=null===(n=window.repoFilesUnpublished[e])||void 0===n?void 0:n.diffs.find((e=>e.path===r)),l=s?s.originalPath:r;a.push({originalPath:l,id:i||r,path:i||r,newFile:ze(rne(l,window.repoFiles)),status:"added",content:o})})),n.forEach((e=>{const t=this.normalizeAsset(e);a.push({id:t.id,path:t.path,newFile:!0,status:"added",content:new WD(t)})})),window.repoFilesUnpublished[e]={slug:r,collection:i,status:o,diffs:a,updatedAt:(new Date).toISOString()}}updateUnpublishedEntryStatus(e,t,n){return window.repoFilesUnpublished[`${e}/${t}`].status=n,Promise.resolve()}publishUnpublishedEntry(e,t){const n=`${e}/${t}`,r=window.repoFilesUnpublished[n];delete window.repoFilesUnpublished[n];const i=window.repoFiles;return r.diffs.forEach((e=>{if(e.originalPath&&!e.newFile){const t=e.originalPath,n=(0,Re.dirname)(t),r=(0,Re.dirname)(e.path),o=lne(i,t.split("/")[0],"",100).filter((e=>e.path.startsWith(n)));o.forEach((e=>{one(e.path,i),ine(e.path.replace(n,r),e.content,i)}))}ine(e.path,e.content,i)})),Promise.resolve()}async getDeployPreview(){return null}}var cne=__webpack_require__(70497),dne=__webpack_require__.n(cne),fne=__webpack_require__(75674),hne=__webpack_require__(5090),pne=__webpack_require__(50646),mne=__webpack_require__(96553),gne=__webpack_require__(22663),vne=(__webpack_require__(90807),__webpack_require__(15915)),One=(__webpack_require__(62085),__webpack_require__(18390).Buffer),yne=__webpack_require__(48494);class bne extends Error{constructor(e){super(e),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(e){const t=new bne(e.message);return t.code=e.code,t.data=e.data,t.caller=e.caller,t.stack=e.stack,t}get isIsomorphicGitError(){return!0}}class wne extends bne{constructor(e){super(`Modifying the index is not possible because you have unmerged files: ${e.toString}. Fix them up in the work tree, and then use 'git add/rm as appropriate to mark resolution and make a commit.`),this.code=this.name=wne.code,this.data={filepaths:e}}}wne.code="UnmergedPathsError";class kne extends bne{constructor(e){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${e}`),this.code=this.name=kne.code,this.data={message:e}}}kne.code="InternalError";class xne extends bne{constructor(e){super(`The filepath "${e}" contains unsafe character sequences`),this.code=this.name=xne.code,this.data={filepath:e}}}xne.code="UnsafeFilepathError";class _ne{constructor(e){this.buffer=e,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(e){this._start=e}slice(e){const t=this.buffer.slice(this._start,this._start+e);return this._start+=e,t}toString(e,t){const n=this.buffer.toString(e,this._start,this._start+t);return this._start+=t,n}write(e,t,n){const r=this.buffer.write(e,this._start,t,n);return this._start+=t,r}copy(e,t,n){const r=e.copy(this.buffer,this._start,t,n);return this._start+=r,r}readUInt8(){const e=this.buffer.readUInt8(this._start);return this._start+=1,e}writeUInt8(e){const t=this.buffer.writeUInt8(e,this._start);return this._start+=1,t}readUInt16BE(){const e=this.buffer.readUInt16BE(this._start);return this._start+=2,e}writeUInt16BE(e){const t=this.buffer.writeUInt16BE(e,this._start);return this._start+=2,t}readUInt32BE(){const e=this.buffer.readUInt32BE(this._start);return this._start+=4,e}writeUInt32BE(e){const t=this.buffer.writeUInt32BE(e,this._start);return this._start+=4,t}}function Sne(e,t){return-(et)}function Pne(e,t){return Sne(e.path,t.path)}function Ene(e){let t=e>0?e>>12:0;4!==t&&8!==t&&10!==t&&14!==t&&(t=8);let n=511&e;return n=73&n?493:420,8!==t&&(n=0),(t<<12)+n}const Cne=2**32;function Tne(e,t,n,r){if(void 0!==e&&void 0!==t)return[e,t];void 0===n&&(n=r.valueOf());const i=Math.floor(n/1e3);return[i,1e6*(n-1e3*i)]}function $ne(e){const[t,n]=Tne(e.ctimeSeconds,e.ctimeNanoseconds,e.ctimeMs,e.ctime),[r,i]=Tne(e.mtimeSeconds,e.mtimeNanoseconds,e.mtimeMs,e.mtime);return{ctimeSeconds:t%Cne,ctimeNanoseconds:n%Cne,mtimeSeconds:r%Cne,mtimeNanoseconds:i%Cne,dev:e.dev%Cne,ino:e.ino%Cne,mode:Ene(e.mode%Cne),uid:e.uid%Cne,gid:e.gid%Cne,size:e.size>-1?e.size%Cne:0}}let Qne=null;async function Rne(e){return null===Qne&&(Qne=await async function(){try{if("da39a3ee5e6b4b0d3255bfef95601890afd80709"===await Ane(new Uint8Array([])))return!0}catch(e){}return!1}()),Qne?Ane(e):function(e){return(new hne).update(e).digest("hex")}(e)}async function Ane(e){return function(e){let t="";for(const n of new Uint8Array(e))n<16&&(t+="0"),t+=n.toString(16);return t}(await crypto.subtle.digest("SHA-1",e))}class jne{constructor(e,t){this._dirty=!1,this._unmergedPaths=t||new Set,this._entries=e||new Map}_addEntry(e){if(0===e.flags.stage)e.stages=[e],this._entries.set(e.path,e),this._unmergedPaths.delete(e.path);else{let t=this._entries.get(e.path);t||(this._entries.set(e.path,e),t=e),t.stages[e.flags.stage]=e,this._unmergedPaths.add(e.path)}}static async from(e){if(One.isBuffer(e))return jne.fromBuffer(e);if(null===e)return new jne(null);throw new kne("invalid type passed to GitIndex.from")}static async fromBuffer(e){if(0===e.length)throw new kne("Index file is empty (.git/index)");const t=new jne,n=new _ne(e),r=n.toString("utf8",4);if("DIRC"!==r)throw new kne(`Invalid dircache magic file number: ${r}`);const i=await Rne(e.slice(0,-20)),o=e.slice(-20).toString("hex");if(o!==i)throw new kne(`Invalid checksum in GitIndex buffer: expected ${o} but saw ${i}`);const a=n.readUInt32BE();if(2!==a)throw new kne(`Unsupported dircache version: ${a}`);const s=n.readUInt32BE();let l=0;for(;!n.eof()&&l>12,nameLength:4095&u});const o=e.indexOf(0,n.tell()+1)-n.tell();if(o<1)throw new kne(`Got a path length of: ${o}`);if(r.path=n.toString("utf8",o),r.path.includes("..\\")||r.path.includes("../"))throw new xne(r.path);let a=8-(n.tell()-12)%8;for(0===a&&(a=8);a--;){const e=n.readUInt8();if(0!==e)throw new kne(`Expected 1-8 null characters but got '${e}' after ${r.path}`);if(n.eof())throw new kne("Unexpected end of file")}r.stages=[],t._addEntry(r),l++}var u;return t}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(Pne)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap((e=>e.stages.length>1?e.stages.filter((e=>e)):e))}*[Symbol.iterator](){for(const e of this.entries)yield e}insert({filepath:e,stats:t,oid:n,stage:r=0}){t||(t={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),t=$ne(t);const i=One.from(e),o={ctimeSeconds:t.ctimeSeconds,ctimeNanoseconds:t.ctimeNanoseconds,mtimeSeconds:t.mtimeSeconds,mtimeNanoseconds:t.mtimeNanoseconds,dev:t.dev,ino:t.ino,mode:t.mode||33188,uid:t.uid,gid:t.gid,size:t.size,path:e,oid:n,flags:{assumeValid:!1,extended:!1,stage:r,nameLength:i.length<4095?i.length:4095},stages:[]};this._addEntry(o),this._dirty=!0}delete({filepath:e}){if(this._entries.has(e))this._entries.delete(e);else for(const t of this._entries.keys())t.startsWith(e+"/")&&this._entries.delete(t);this._unmergedPaths.has(e)&&this._unmergedPaths.delete(e),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:e}){return this._entries.has(e)}render(){return this.entries.map((e=>`${e.mode.toString(8)} ${e.oid} ${e.path}`)).join("\n")}static async _entryToBuffer(e){const t=One.from(e.path),n=8*Math.ceil((62+t.length+1)/8),r=One.alloc(n),i=new _ne(r),o=$ne(e);return i.writeUInt32BE(o.ctimeSeconds),i.writeUInt32BE(o.ctimeNanoseconds),i.writeUInt32BE(o.mtimeSeconds),i.writeUInt32BE(o.mtimeNanoseconds),i.writeUInt32BE(o.dev),i.writeUInt32BE(o.ino),i.writeUInt32BE(o.mode),i.writeUInt32BE(o.uid),i.writeUInt32BE(o.gid),i.writeUInt32BE(o.size),i.write(e.oid,20,"hex"),i.writeUInt16BE(function(e){const t=e.flags;return t.extended=!1,t.nameLength=Math.min(One.from(e.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((3&t.stage)<<12)+(4095&t.nameLength)}(e)),i.write(e.path,t.length,"utf8"),r}async toObject(){const e=One.alloc(12),t=new _ne(e);t.write("DIRC",4,"utf8"),t.writeUInt32BE(2),t.writeUInt32BE(this.entriesFlat.length);let n=[];for(const e of this.entries)if(n.push(jne._entryToBuffer(e)),e.stages.length>1)for(const t of e.stages)t&&t!==e&&n.push(jne._entryToBuffer(t));n=await Promise.all(n);const r=One.concat(n),i=One.concat([e,r]),o=await Rne(i);return One.concat([i,One.from(o,"hex")])}}function Dne(e,t,n=!0,r=!0){const i=$ne(e),o=$ne(t);return n&&i.mode!==o.mode||i.mtimeSeconds!==o.mtimeSeconds||i.ctimeSeconds!==o.ctimeSeconds||i.uid!==o.uid||i.gid!==o.gid||r&&i.ino!==o.ino||i.size!==o.size}let Mne=null;const Ine=Symbol("IndexCache");class zne{static async acquire({fs:e,gitdir:t,cache:n,allowUnmerged:r=!0},i){n[Ine]||(n[Ine]={map:new Map,stats:new Map});const o=`${t}/index`;let a;null===Mne&&(Mne=new fne({maxPending:1/0}));let s=[];return await Mne.acquire(o,(async()=>{await async function(e,t,n){const r=n.stats.get(t);if(void 0===r)return!0;const i=await e.lstat(t);return null!==r&&null!==i&&Dne(r,i)}(e,o,n[Ine])&&await async function(e,t,n){const r=await e.lstat(t),i=await e.read(t),o=await jne.from(i);n.map.set(t,o),n.stats.set(t,r)}(e,o,n[Ine]);const t=n[Ine].map.get(o);if(s=t.unmergedPaths,s.length&&!r)throw new wne(s);if(a=await i(t),t._dirty){const r=await t.toObject();await e.write(o,r),n[Ine].stats.set(o,await e.lstat(o)),t._dirty=!1}})),a}}function Wne(e){const t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return t>-1&&(e=e.slice(t+1)),e}function Nne(e){const t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return-1===t?".":0===t?"/":e.slice(0,t)}class Lne{constructor({fs:e,gitdir:t,cache:n}){this.treePromise=zne.acquire({fs:e,gitdir:t,cache:n},(async function(e){return function(e){const t=new Map,n=function(e){if(!t.has(e)){const r={type:"tree",fullpath:e,basename:Wne(e),metadata:{},children:[]};t.set(e,r),r.parent=n(Nne(e)),r.parent&&r.parent!==r&&r.parent.children.push(r)}return t.get(e)},r=function(e,r){if(!t.has(e)){const i={type:"blob",fullpath:e,basename:Wne(e),metadata:r,parent:n(Nne(e)),children:[]};i.parent&&i.parent.children.push(i),t.set(e,i)}return t.get(e)};n(".");for(const t of e)r(t.path,t);return t}(e.entries)}));const r=this;this.ConstructEntry=class{constructor(e){this._fullpath=e,this._type=!1,this._mode=!1,this._stat=!1,this._oid=!1}async type(){return r.type(this)}async mode(){return r.mode(this)}async stat(){return r.stat(this)}async content(){return r.content(this)}async oid(){return r.oid(this)}}}async readdir(e){const t=e._fullpath,n=(await this.treePromise).get(t);if(!n)return null;if("blob"===n.type)return null;if("tree"!==n.type)throw new Error(`ENOTDIR: not a directory, scandir '${t}'`);const r=n.children.map((e=>e.fullpath));return r.sort(Sne),r}async type(e){return!1===e._type&&await e.stat(),e._type}async mode(e){return!1===e._mode&&await e.stat(),e._mode}async stat(e){if(!1===e._stat){const t=(await this.treePromise).get(e._fullpath);if(!t)throw new Error(`ENOENT: no such file or directory, lstat '${e._fullpath}'`);const n="tree"===t.type?{}:$ne(t.metadata);e._type="tree"===t.type?"tree":function(e){switch(e){case 16384:return"tree";case 33188:case 33261:case 40960:return"blob";case 57344:return"commit"}throw new kne(`Unexpected GitTree entry mode: ${e.toString(8)}`)}(n.mode),e._mode=n.mode,"tree"===t.type?e._stat=void 0:e._stat=n}return e._stat}async content(e){}async oid(e){if(!1===e._oid){const t=(await this.treePromise).get(e._fullpath);e._oid=t.metadata.oid}return e._oid}}const Fne=Symbol("GitWalkSymbol");function Une(){const e=Object.create(null);return Object.defineProperty(e,Fne,{value:function({fs:e,gitdir:t,cache:n}){return new Lne({fs:e,gitdir:t,cache:n})}}),Object.freeze(e),e}class Xne extends bne{constructor(e){super(`Could not find ${e}.`),this.code=this.name=Xne.code,this.data={what:e}}}Xne.code="NotFoundError";class qne extends bne{constructor(e,t,n,r){super(`Object ${e} ${r?`at ${r}`:""}was anticipated to be a ${n} but it is a ${t}.`),this.code=this.name=qne.code,this.data={oid:e,actual:t,expected:n,filepath:r}}}qne.code="ObjectTypeError";class Bne extends bne{constructor(e){super(`Expected a 40-char hex object id but saw "${e}".`),this.code=this.name=Bne.code,this.data={value:e}}}Bne.code="InvalidOidError";class Vne extends bne{constructor(e){super(`Could not find a fetch refspec for remote "${e}". Make sure the config file has an entry like the following:\n[remote "${e}"]\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n`),this.code=this.name=Vne.code,this.data={remote:e}}}Vne.code="NoRefspecError";class Yne{constructor(e){if(this.refs=new Map,this.parsedConfig=[],e){let t=null;this.parsedConfig=e.trim().split("\n").map((e=>{if(/^\s*#/.test(e))return{line:e,comment:!0};const n=e.indexOf(" ");if(e.startsWith("^")){const n=e.slice(1);return this.refs.set(t+"^{}",n),{line:e,ref:t,peeled:n}}{const r=e.slice(0,n);return t=e.slice(n+1),this.refs.set(t,r),{line:e,ref:t,oid:r}}}))}return this}static from(e){return new Yne(e)}delete(e){this.parsedConfig=this.parsedConfig.filter((t=>t.ref!==e)),this.refs.delete(e)}toString(){return this.parsedConfig.map((({line:e})=>e)).join("\n")+"\n"}}class Zne{constructor({remotePath:e,localPath:t,force:n,matchPrefix:r}){Object.assign(this,{remotePath:e,localPath:t,force:n,matchPrefix:r})}static from(e){const[t,n,r,i,o]=e.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),a="+"===t,s="*"===r;if(s!==("*"===o))throw new kne("Invalid refspec");return new Zne({remotePath:n,localPath:i,force:a,matchPrefix:s})}translate(e){if(this.matchPrefix){if(e.startsWith(this.remotePath))return this.localPath+e.replace(this.remotePath,"")}else if(e===this.remotePath)return this.localPath;return null}reverseTranslate(e){if(this.matchPrefix){if(e.startsWith(this.localPath))return this.remotePath+e.replace(this.localPath,"")}else if(e===this.localPath)return this.remotePath;return null}}class Gne{constructor(e=[]){this.rules=e}static from(e){const t=[];for(const n of e)t.push(Zne.from(n));return new Gne(t)}add(e){const t=Zne.from(e);this.rules.push(t)}translate(e){const t=[];for(const n of this.rules)for(const r of e){const e=n.translate(r);e&&t.push([r,e])}return t}translateOne(e){let t=null;for(const n of this.rules){const r=n.translate(e);r&&(t=r)}return t}localNamespaces(){return this.rules.filter((e=>e.matchPrefix)).map((e=>e.localPath.replace(/\/$/,"")))}}function Hne(e,t){const n=e.replace(/\^\{\}$/,""),r=t.replace(/\^\{\}$/,""),i=-(nr);return 0===i?e.endsWith("^{}")?1:-1:i}const Kne=e=>{if("true"===(e=e.trim().toLowerCase())||"yes"===e||"on"===e)return!0;if("false"===e||"no"===e||"off"===e)return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${e}`)},Jne={core:{filemode:Kne,bare:Kne,logallrefupdates:Kne,symlinks:Kne,ignorecase:Kne,bigFileThreshold:e=>{e=e.toLowerCase();let t=parseInt(e);return e.endsWith("k")&&(t*=1024),e.endsWith("m")&&(t*=1048576),e.endsWith("g")&&(t*=1073741824),t}}},ere=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,tre=/^[A-Za-z0-9-.]+$/,nre=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,rre=/^[A-Za-z][A-Za-z-]*$/,ire=/^(.*?)( *[#;].*)$/,ore=e=>(e.match(/(?:^|[^\\])"/g)||[]).length%2!=0,are=e=>e.split("").reduce(((e,t,n,r)=>{const i='"'===t&&"\\"!==r[n-1],o="\\"===t&&'"'===r[n+1];return i||o?e:e+t}),""),sre=e=>null!=e?e.toLowerCase():null,lre=(e,t,n)=>[sre(e),t,sre(n)].filter((e=>null!=e)).join("."),ure=e=>{const t=e.split("."),n=t.shift(),r=t.pop(),i=t.length?t.join("."):void 0;return{section:n,subsection:i,name:r,path:lre(n,i,r),sectionPath:lre(n,i,null)}};class cre{constructor(e){let t=null,n=null;this.parsedConfig=e?e.split("\n").map((e=>{let r=null,i=null;const o=e.trim(),a=(e=>{const t=ere.exec(e);if(null!=t){const[e,n]=t.slice(1);return[e,n]}return null})(o),s=null!=a;if(s)[t,n]=a;else{const e=(e=>{const t=nre.exec(e);if(null!=t){const[e,n="true"]=t.slice(1),r=(e=>{const t=ire.exec(e);if(null==t)return e;const[n,r]=t.slice(1);return ore(n)&&ore(r)?`${n}${r}`:n})(n);return[e,are(r)]}return null})(o);null!=e&&([r,i]=e)}const l=lre(t,n,r);return{line:e,isSection:s,section:t,subsection:n,name:r,value:i,path:l}})):[]}static from(e){return new cre(e)}async get(e,t=!1){const n=ure(e).path,r=this.parsedConfig.filter((e=>e.path===n)).map((({section:e,name:t,value:n})=>{const r=Jne[e]&&Jne[e][t];return r?r(n):n}));return t?r:r.pop()}async getall(e){return this.get(e,!0)}async getSubsections(e){return this.parsedConfig.filter((t=>t.section===e&&t.isSection)).map((e=>e.subsection))}async deleteSection(e,t){this.parsedConfig=this.parsedConfig.filter((n=>!(n.section===e&&n.subsection===t)))}async append(e,t){return this.set(e,t,!0)}async set(e,t,n=!1){const{section:r,subsection:i,name:o,path:a,sectionPath:s}=ure(e),l=(u=this.parsedConfig,c=e=>e.path===a,u.reduce(((e,t,n)=>c(t)?n:e),-1));var u,c;if(null==t)-1!==l&&this.parsedConfig.splice(l,1);else if(-1!==l){const e=this.parsedConfig[l],r=Object.assign({},e,{name:o,value:t,modified:!0});n?this.parsedConfig.splice(l+1,0,r):this.parsedConfig[l]=r}else{const e=this.parsedConfig.findIndex((e=>e.path===s)),n={section:r,subsection:i,name:o,value:t,modified:!0,path:a};if(tre.test(r)&&rre.test(o))if(e>=0)this.parsedConfig.splice(e+1,0,n);else{const e={section:r,subsection:i,modified:!0,path:s};this.parsedConfig.push(e,n)}}}toString(){return this.parsedConfig.map((({line:e,section:t,subsection:n,name:r,value:i,modified:o=!1})=>o?null!=r&&null!=i?"string"==typeof i&&/[#;]/.test(i)?`\t${r} = "${i}"`:`\t${r} = ${i}`:null!=n?`[${t} "${n}"]`:`[${t}]`:e)).join("\n")}}class dre{static async get({fs:e,gitdir:t}){const n=await e.read(`${t}/config`,{encoding:"utf8"});return cre.from(n)}static async save({fs:e,gitdir:t,config:n}){await e.write(`${t}/config`,n.toString(),{encoding:"utf8"})}}const fre=e=>[`${e}`,`refs/${e}`,`refs/tags/${e}`,`refs/heads/${e}`,`refs/remotes/${e}`,`refs/remotes/${e}/HEAD`],hre=["config","description","index","shallow","commondir"];let pre;async function mre(e,t){return void 0===pre&&(pre=new fne),pre.acquire(e,t)}class gre{static async updateRemoteRefs({fs:e,gitdir:t,remote:n,refs:r,symrefs:i,tags:o,refspecs:a,prune:s=!1,pruneTags:l=!1}){for(const e of r.values())if(!e.match(/[0-9a-f]{40}/))throw new Bne(e);const u=await dre.get({fs:e,gitdir:t});if(!a){if(0===(a=await u.getall(`remote.${n}.fetch`)).length)throw new Vne(n);a.unshift(`+HEAD:refs/remotes/${n}/HEAD`)}const c=Gne.from(a),d=new Map;if(l){const n=await gre.listRefs({fs:e,gitdir:t,filepath:"refs/tags"});await gre.deleteRefs({fs:e,gitdir:t,refs:n.map((e=>`refs/tags/${e}`))})}if(o)for(const n of r.keys())if(n.startsWith("refs/tags")&&!n.endsWith("^{}")&&!await gre.exists({fs:e,gitdir:t,ref:n})){const e=r.get(n);d.set(n,e)}const f=c.translate([...r.keys()]);for(const[e,t]of f){const n=r.get(e);d.set(t,n)}const h=c.translate([...i.keys()]);for(const[e,t]of h){const n=i.get(e),r=c.translateOne(n);r&&d.set(t,`ref: ${r}`)}const p=[];if(s){for(const n of c.localNamespaces()){const r=(await gre.listRefs({fs:e,gitdir:t,filepath:n})).map((e=>`${n}/${e}`));for(const e of r)d.has(e)||p.push(e)}p.length>0&&await gre.deleteRefs({fs:e,gitdir:t,refs:p})}for(const[n,r]of d)await mre(n,(async()=>e.write((0,Re.join)(t,n),`${r.trim()}\n`,"utf8")));return{pruned:p}}static async writeRef({fs:e,gitdir:t,ref:n,value:r}){if(!r.match(/[0-9a-f]{40}/))throw new Bne(r);await mre(n,(async()=>e.write((0,Re.join)(t,n),`${r.trim()}\n`,"utf8")))}static async writeSymbolicRef({fs:e,gitdir:t,ref:n,value:r}){await mre(n,(async()=>e.write((0,Re.join)(t,n),`ref: ${r.trim()}\n`,"utf8")))}static async deleteRef({fs:e,gitdir:t,ref:n}){return gre.deleteRefs({fs:e,gitdir:t,refs:[n]})}static async deleteRefs({fs:e,gitdir:t,refs:n}){await Promise.all(n.map((n=>e.rm((0,Re.join)(t,n)))));let r=await mre("packed-refs",(async()=>e.read(`${t}/packed-refs`,{encoding:"utf8"})));const i=Yne.from(r),o=i.refs.size;for(const e of n)i.refs.has(e)&&i.delete(e);i.refs.sizee.write(`${t}/packed-refs`,r,{encoding:"utf8"}))))}static async resolve({fs:e,gitdir:t,ref:n,depth:r}){if(void 0!==r&&-1==--r)return n;if(n.startsWith("ref: "))return n=n.slice(5),gre.resolve({fs:e,gitdir:t,ref:n,depth:r});if(40===n.length&&/[0-9a-f]{40}/.test(n))return n;const i=await gre.packedRefs({fs:e,gitdir:t}),o=fre(n).filter((e=>!hre.includes(e)));for(const n of o){const o=await mre(n,(async()=>await e.read(`${t}/${n}`,{encoding:"utf8"})||i.get(n)));if(o)return gre.resolve({fs:e,gitdir:t,ref:o.trim(),depth:r})}throw new Xne(n)}static async exists({fs:e,gitdir:t,ref:n}){try{return await gre.expand({fs:e,gitdir:t,ref:n}),!0}catch(e){return!1}}static async expand({fs:e,gitdir:t,ref:n}){if(40===n.length&&/[0-9a-f]{40}/.test(n))return n;const r=await gre.packedRefs({fs:e,gitdir:t}),i=fre(n);for(const n of i){if(await mre(n,(async()=>e.exists(`${t}/${n}`))))return n;if(r.has(n))return n}throw new Xne(n)}static async expandAgainstMap({ref:e,map:t}){const n=fre(e);for(const e of n)if(await t.has(e))return e;throw new Xne(e)}static resolveAgainstMap({ref:e,fullref:t=e,depth:n,map:r}){if(void 0!==n&&-1==--n)return{fullref:t,oid:e};if(e.startsWith("ref: "))return e=e.slice(5),gre.resolveAgainstMap({ref:e,fullref:t,depth:n,map:r});if(40===e.length&&/[0-9a-f]{40}/.test(e))return{fullref:t,oid:e};const i=fre(e);for(const e of i){const t=r.get(e);if(t)return gre.resolveAgainstMap({ref:t.trim(),fullref:e,depth:n,map:r})}throw new Xne(e)}static async packedRefs({fs:e,gitdir:t}){const n=await mre("packed-refs",(async()=>e.read(`${t}/packed-refs`,{encoding:"utf8"})));return Yne.from(n).refs}static async listRefs({fs:e,gitdir:t,filepath:n}){const r=gre.packedRefs({fs:e,gitdir:t});let i=null;try{i=await e.readdirDeep(`${t}/${n}`),i=i.map((e=>e.replace(`${t}/${n}/`,"")))}catch(e){i=[]}for(let e of(await r).keys())e.startsWith(n)&&(e=e.replace(n+"/",""),i.includes(e)||i.push(e));return i.sort(Hne),i}static async listBranches({fs:e,gitdir:t,remote:n}){return n?gre.listRefs({fs:e,gitdir:t,filepath:`refs/remotes/${n}`}):gre.listRefs({fs:e,gitdir:t,filepath:"refs/heads"})}static async listTags({fs:e,gitdir:t}){return(await gre.listRefs({fs:e,gitdir:t,filepath:"refs/tags"})).filter((e=>!e.endsWith("^{}")))}}function vre(e,t){return Sne(Ore(e),Ore(t))}function Ore(e){return"040000"===e.mode?e.path+"/":e.path}function yre(e){switch(e){case"040000":return"tree";case"100644":case"100755":case"120000":return"blob";case"160000":return"commit"}throw new kne(`Unexpected GitTree entry mode: ${e}`)}function bre(e){return!e.oid&&e.sha&&(e.oid=e.sha),e.mode=function(e){if("number"==typeof e&&(e=e.toString(8)),e.match(/^0?4.*/))return"040000";if(e.match(/^1006.*/))return"100644";if(e.match(/^1007.*/))return"100755";if(e.match(/^120.*/))return"120000";if(e.match(/^160.*/))return"160000";throw new kne(`Could not understand file mode: ${e}`)}(e.mode),e.type||(e.type=yre(e.mode)),e}class wre{constructor(e){if(One.isBuffer(e))this._entries=function(e){const t=[];let n=0;for(;n`${e.mode} ${e.type} ${e.oid} ${e.path}`)).join("\n")}toObject(){const e=[...this._entries];return e.sort(vre),One.concat(e.map((e=>{const t=One.from(e.mode.replace(/^0/,"")),n=One.from(" "),r=One.from(e.path,"utf8"),i=One.from([0]),o=One.from(e.oid,"hex");return One.concat([t,n,r,i,o])})))}entries(){return this._entries}*[Symbol.iterator](){for(const e of this._entries)yield e}}class kre{static wrap({type:e,object:t}){return One.concat([One.from(`${e} ${t.byteLength.toString()}\0`),One.from(t)])}static unwrap(e){const t=e.indexOf(32),n=e.indexOf(0),r=e.slice(0,t).toString("utf8"),i=e.slice(t+1,n).toString("utf8"),o=e.length-(n+1);if(parseInt(i)!==o)throw new kne(`Length mismatch: expected ${i} bytes but got ${o} instead.`);return{type:r,object:One.from(e.slice(n+1))}}}function xre(e){let t=0,n=0,r=null;do{r=e.readUInt8(),t|=(127&r)<>=1,i+=8;return r}function Sre(e,t){const n=e.readUInt8();if(128&n){const r=_re(e,15&n,4);let i=_re(e,(112&n)>>4,3);return 0===i&&(i=65536),t.slice(r,r+i)}return e.slice(n)}function Pre(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:function(e){let t=[e];return{next:()=>Promise.resolve({done:0===t.length,value:t.pop()}),return:()=>(t=[],{}),[Symbol.asyncIterator](){return this}}}(e)}class Ere{constructor(e){if(void 0===One)throw new Error("Missing Buffer dependency");this.stream=Pre(e),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),this.cursor!==this.buffer.length||(await this._loadnext(),!this._ended)))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),this.cursor!==this.buffer.length||(await this._loadnext(),!this._ended)))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(e){if(!this.eof())return this.started||await this._init(),this.cursor+e>this.buffer.length&&(this._trim(),await this._accumulate(e)),this._moveCursor(e),this.buffer.slice(this.undoCursor,this.cursor)}async skip(e){this.eof()||(this.started||await this._init(),this.cursor+e>this.buffer.length&&(this._trim(),await this._accumulate(e)),this._moveCursor(e))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:e,value:t}=await this.stream.next();return e&&(this._ended=!0,!t)?One.alloc(0):(t&&(t=One.from(t)),t)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(e){this.undoCursor=this.cursor,this.cursor+=e,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(e){if(this._ended)return;const t=[this.buffer];for(;this.cursor+e>Cre(t);){const e=await this._next();if(this._ended)break;t.push(e)}this.buffer=One.concat(t)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}}function Cre(e){return e.reduce(((e,t)=>e+t.length),0)}async function Tre(e){let t=await e.byte();const n=t>>4&7;let r,i,o=15&t;if(128&t){let n=4;do{t=await e.byte(),o|=(127&t)<2147483648)throw new kne("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");n.seek(n.tell()+1020);const i=n.readUInt32BE(),o=[];for(let e=0;e{null===u&&(u=s);const l=Math.floor(100*(u-s)/u);l!==c&&n&&await n({phase:"Receiving objects",loaded:u-s,total:u}),c=l,(["commit","tree","blob","tag"].includes(t=r[t])||"ofs-delta"===t||"ref-delta"===t)&&(i[a]={type:t,offset:a})}));const d=Object.keys(i).map(Number);for(const[t,n]of d.entries()){const r=t+1===d.length?e.byteLength-20:d[t+1],o=i[n],a=pne.buf(e.slice(n,r))>>>0;o.end=r,o.crc=a}const f=new Rre({pack:Promise.resolve(e),packfileSha:o,crcs:s,hashes:a,offsets:l,getExternalRefDelta:t});c=null;let h=0;const p=[0,0,0,0,0,0,0,0,0,0,0,0];for(let e in i){e=Number(e);const t=Math.floor(100*h/u);t!==c&&n&&await n({phase:"Resolving deltas",loaded:h,total:u}),h++,c=t;const r=i[e];if(!r.oid)try{f.readDepth=0,f.externalReadDepth=0;const{type:t,object:n}=await f.readSlice({start:e});p[f.readDepth]+=1;const i=await Rne(kre.wrap({type:t,object:n}));r.oid=i,a.push(i),l.set(i,e),s[i]=r.crc}catch(e){continue}}return a.sort(),f}async toBuffer(){const e=[],t=(t,n)=>{e.push(One.from(t,n))};t("ff744f63","hex"),t("00000002","hex");const n=new _ne(One.alloc(1024));for(let e=0;e<256;e++){let t=0;for(const n of this.hashes)parseInt(n.slice(0,2),16)<=e&&t++;n.writeUInt32BE(t)}e.push(n.buffer);for(const e of this.hashes)t(e,"hex");const r=new _ne(One.alloc(4*this.hashes.length));for(const e of this.hashes)r.writeUInt32BE(this.crcs[e]);e.push(r.buffer);const i=new _ne(One.alloc(4*this.hashes.length));for(const e of this.hashes)i.writeUInt32BE(this.offsets.get(e));e.push(i.buffer),t(this.packfileSha,"hex");const o=One.concat(e),a=await Rne(o),s=One.alloc(20);return s.write(a,"hex"),One.concat([o,s])}async load({pack:e}){this.pack=e}async unload(){this.pack=null}async read({oid:e}){if(!this.offsets.get(e)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(e);throw new kne(`Could not read object ${e} from packfile`)}const t=this.offsets.get(e);return this.readSlice({start:t})}async readSlice({start:e}){if(this.offsetCache[e])return Object.assign({},this.offsetCache[e]);if(this.readDepth++,!this.pack)throw new kne("Tried to read from a GitPackIndex with no packfile loaded into memory");const t=(await this.pack).slice(e),n=new _ne(t),r=n.readUInt8(),i=112&r;let o={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"}[i];if(void 0===o)throw new kne("Unrecognized type: 0b"+i.toString(2));const a=15&r;let s=a;128&r&&(s=function(e,t){let n=t,r=4,i=null;do{i=e.readUInt8(),n|=(127&i)<e+1<<7|t),-1)}(n),r=e-t;({object:l,type:o}=await this.readSlice({start:r}))}if("ref_delta"===o){const e=n.slice(20).toString("hex");({object:l,type:o}=await this.read({oid:e}))}const c=t.slice(n.tell());if(u=One.from(await Qre(c)),u.byteLength!==s)throw new kne(`Packfile told us object would have length ${s} but it had length ${u.byteLength}`);return l&&(u=One.from(function(e,t){const n=new _ne(e),r=xre(n);if(r!==t.byteLength)throw new kne(`applyDelta expected source buffer to be ${r} bytes but the provided buffer was ${t.length} bytes`);const i=xre(n);let o;const a=Sre(n,t);if(a.byteLength===i)o=a;else{o=One.alloc(i);const e=new _ne(o);for(e.copy(a);!n.eof();)e.copy(Sre(n,t));const r=e.tell();if(i!==r)throw new kne(`applyDelta expected target buffer to be ${i} bytes but the resulting buffer was ${r} bytes`)}return o}(u,l))),this.readDepth>3&&(this.offsetCache[e]={type:o,object:u}),{type:o,format:"content",object:u}}}const Are=Symbol("PackfileCache");function jre({fs:e,cache:t,filename:n,getExternalRefDelta:r,emitter:i,emitterPrefix:o}){t[Are]||(t[Are]=new Map);let a=t[Are].get(n);return a||(a=async function({fs:e,filename:t,getExternalRefDelta:n,emitter:r,emitterPrefix:i}){const o=await e.read(t);return Rre.fromIdx({idx:o,getExternalRefDelta:n})}({fs:e,filename:n,getExternalRefDelta:r,emitter:i,emitterPrefix:o}),t[Are].set(n,a)),a}async function Dre({fs:e,cache:t,gitdir:n,oid:r,format:i="content"}){const o=r=>Dre({fs:e,cache:t,gitdir:n,oid:r});let a;if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===r&&(a={format:"wrapped",object:One.from("tree 0\0")}),a||(a=await async function({fs:e,gitdir:t,oid:n}){const r=`objects/${n.slice(0,2)}/${n.slice(2)}`,i=await e.read(`${t}/${r}`);return i?{object:i,format:"deflated",source:r}:null}({fs:e,gitdir:n,oid:r})),!a){if(a=await async function({fs:e,cache:t,gitdir:n,oid:r,format:i="content",getExternalRefDelta:o}){let a=await e.readdir((0,Re.join)(n,"objects/pack"));a=a.filter((e=>e.endsWith(".idx")));for(const i of a){const a=`${n}/objects/pack/${i}`,s=await jre({fs:e,cache:t,filename:a,getExternalRefDelta:o});if(s.error)throw new kne(s.error);if(s.offsets.has(r)){if(!s.pack){const t=a.replace(/idx$/,"pack");s.pack=e.read(t)}const t=await s.read({oid:r,getExternalRefDelta:o});return t.format="content",t.source=`objects/pack/${i.replace(/idx$/,"pack")}`,t}}return null}({fs:e,cache:t,gitdir:n,oid:r,getExternalRefDelta:o}),!a)throw new Xne(r);return a}if("deflated"===i)return a;if("deflated"===a.format&&(a.object=One.from(await Qre(a.object)),a.format="wrapped"),"wrapped"===i)return a;const s=await Rne(a.object);if(s!==r)throw new kne(`SHA check failed! Expected ${r}, computed ${s}`);const{object:l,type:u}=kre.unwrap(a.object);if(a.type=u,a.object=l,a.format="content","content"===i)return a;throw new kne(`invalid requested format "${i}"`)}class Mre extends bne{constructor(e,t,n=!0){super(`Failed to create ${e} at ${t} because it already exists.${n?` (Hint: use 'force: true' parameter to overwrite existing ${e}.)`:""}`),this.code=this.name=Mre.code,this.data={noun:e,where:t,canForce:n}}}Mre.code="AlreadyExistsError";class Ire extends bne{constructor(e,t,n){super(`Found multiple ${e} matching "${t}" (${n.join(", ")}). Use a longer abbreviation length to disambiguate them.`),this.code=this.name=Ire.code,this.data={nouns:e,short:t,matches:n}}}Ire.code="AmbiguousError";class zre extends bne{constructor(e){super(`Your local changes to the following files would be overwritten by checkout: ${e.join(", ")}`),this.code=this.name=zre.code,this.data={filepaths:e}}}zre.code="CheckoutConflictError";class Wre extends bne{constructor(e,t){super(`Failed to checkout "${e}" because commit ${t} is not available locally. Do a git fetch to make the branch available locally.`),this.code=this.name=Wre.code,this.data={ref:e,oid:t}}}Wre.code="CommitNotFetchedError";class Nre extends bne{constructor(){super("Empty response from git server."),this.code=this.name=Nre.code,this.data={}}}Nre.code="EmptyServerResponseError";class Lre extends bne{constructor(){super("A simple fast-forward merge was not possible."),this.code=this.name=Lre.code,this.data={}}}Lre.code="FastForwardError";class Fre extends bne{constructor(e,t){super(`One or more branches were not updated: ${e}`),this.code=this.name=Fre.code,this.data={prettyDetails:e,result:t}}}Fre.code="GitPushError";class Ure extends bne{constructor(e,t,n){super(`HTTP Error: ${e} ${t}`),this.code=this.name=Ure.code,this.data={statusCode:e,statusMessage:t,response:n}}}Ure.code="HttpError";class Xre extends bne{constructor(e){let t="invalid filepath";"leading-slash"===e||"trailing-slash"===e?t='"filepath" parameter should not include leading or trailing directory separators because these can cause problems on some platforms.':"directory"===e&&(t='"filepath" should not be a directory.'),super(t),this.code=this.name=Xre.code,this.data={reason:e}}}Xre.code="InvalidFilepathError";class qre extends bne{constructor(e,t){super(`"${e}" would be an invalid git reference. (Hint: a valid alternative would be "${t}".)`),this.code=this.name=qre.code,this.data={ref:e,suggestion:t}}}qre.code="InvalidRefNameError";class Bre extends bne{constructor(e){super(`Maximum search depth of ${e} exceeded.`),this.code=this.name=Bre.code,this.data={depth:e}}}Bre.code="MaxDepthError";class Vre extends bne{constructor(){super("Merges with conflicts are not supported yet."),this.code=this.name=Vre.code,this.data={}}}Vre.code="MergeNotSupportedError";class Yre extends bne{constructor(e,t,n,r){super(`Automatic merge failed with one or more merge conflicts in the following files: ${e.toString()}. Fix conflicts then commit the result.`),this.code=this.name=Yre.code,this.data={filepaths:e,bothModified:t,deleteByUs:n,deleteByTheirs:r}}}Yre.code="MergeConflictError";class Zre extends bne{constructor(e){super(`No name was provided for ${e} in the argument or in the .git/config file.`),this.code=this.name=Zre.code,this.data={role:e}}}Zre.code="MissingNameError";class Gre extends bne{constructor(e){super(`The function requires a "${e}" parameter but none was provided.`),this.code=this.name=Gre.code,this.data={parameter:e}}}Gre.code="MissingParameterError";class Hre extends bne{constructor(e){super('There are multiple errors that were thrown by the method. Please refer to the "errors" property to see more'),this.code=this.name=Hre.code,this.data={errors:e},this.errors=e}}Hre.code="MultipleGitError";class Kre extends bne{constructor(e,t){super(`Expected "${e}" but received "${t}".`),this.code=this.name=Kre.code,this.data={expected:e,actual:t}}}Kre.code="ParseError";class Jre extends bne{constructor(e){let t="";"not-fast-forward"===e?t=" because it was not a simple fast-forward":"tag-exists"===e&&(t=" because tag already exists"),super(`Push rejected${t}. Use "force: true" to override.`),this.code=this.name=Jre.code,this.data={reason:e}}}Jre.code="PushRejectedError";class eie extends bne{constructor(e,t){super(`Remote does not support the "${e}" so the "${t}" parameter cannot be used.`),this.code=this.name=eie.code,this.data={capability:e,parameter:t}}}eie.code="RemoteCapabilityError";class tie extends bne{constructor(e,t){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${e}`),this.code=this.name=tie.code,this.data={preview:e,response:t}}}tie.code="SmartHttpError";class nie extends bne{constructor(e,t,n){super(`Git remote "${e}" uses an unrecognized transport protocol: "${t}"`),this.code=this.name=nie.code,this.data={url:e,transport:t,suggestion:n}}}nie.code="UnknownTransportError";class rie extends bne{constructor(e){super(`Cannot parse remote URL: "${e}"`),this.code=this.name=rie.code,this.data={url:e}}}rie.code="UrlParseError";class iie extends bne{constructor(){super("The operation was canceled."),this.code=this.name=iie.code,this.data={}}}iie.code="UserCanceledError";class oie extends bne{constructor(e){super(`Could not merge index: Entry for '${e}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged changes.`),this.code=this.name=oie.code,this.data={filepath:e}}}oie.code="IndexResetError";class aie extends bne{constructor(e){super(`"${e}" does not point to any commit. You're maybe working on a repository with no commits yet. `),this.code=this.name=aie.code,this.data={ref:e}}}function sie({name:e,email:t,timestamp:n,timezoneOffset:r}){return r=function(e){const t=function(e){return Math.sign(e)||(Object.is(e,-0)?-1:1)}(function(e){return 0===e?e:-e}(e));e=Math.abs(e);const n=Math.floor(e/60);e-=60*n;let r=String(n),i=String(e);return r.length<2&&(r="0"+r),i.length<2&&(i="0"+i),(-1===t?"-":"+")+r+i}(r),`${e} <${t}> ${n} ${r}`}function lie(e){return(e=(e=e.replace(/\r/g,"")).replace(/^\n+/,"")).replace(/\n+$/,"")+"\n"}function uie(e){const[,t,n,r,i]=e.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:t,email:n,timestamp:Number(r),timezoneOffset:cie(i)}}function cie(e){let[,t,n,r]=e.match(/(\+|-)(\d\d)(\d\d)/);return r=("+"===t?1:-1)*(60*Number(n)+Number(r)),function(e){return 0===e?e:-e}(r)}aie.code="NoCommitError";class die{constructor(e){if("string"==typeof e)this._tag=e;else if(One.isBuffer(e))this._tag=e.toString("utf8");else{if("object"!=typeof e)throw new kne("invalid type passed to GitAnnotatedTag constructor");this._tag=die.render(e)}}static from(e){return new die(e)}static render(e){return`object ${e.object}\ntype ${e.type}\ntag ${e.tag}\ntagger ${sie(e.tagger)}\n\n${e.message}\n${e.gpgsig?e.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf("\n\n"))}message(){const e=this.withoutSignature();return e.slice(e.indexOf("\n\n")+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const e=this.justHeaders().split("\n"),t=[];for(const n of e)" "===n[0]?t[t.length-1]+="\n"+n.slice(1):t.push(n);const n={};for(const e of t){const t=e.slice(0,e.indexOf(" ")),r=e.slice(e.indexOf(" ")+1);Array.isArray(n[t])?n[t].push(r):n[t]=r}return n.tagger&&(n.tagger=uie(n.tagger)),n.committer&&(n.committer=uie(n.committer)),n}withoutSignature(){const e=lie(this._tag);return-1===e.indexOf("\n-----BEGIN PGP SIGNATURE-----")?e:e.slice(0,e.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----"))}gpgsig(){if(-1!==this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----"))return lie(this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+27))}payload(){return this.withoutSignature()+"\n"}toObject(){return One.from(this._tag,"utf8")}static async sign(e,t,n){const r=e.payload();let{signature:i}=await t({payload:r,secretKey:n});i=lie(i);const o=r+i;return die.from(o)}}function fie(e){return e.trim().split("\n").map((e=>" "+e)).join("\n")+"\n"}class hie{constructor(e){if("string"==typeof e)this._commit=e;else if(One.isBuffer(e))this._commit=e.toString("utf8");else{if("object"!=typeof e)throw new kne("invalid type passed to GitCommit constructor");this._commit=hie.render(e)}}static fromPayloadSignature({payload:e,signature:t}){const n=hie.justHeaders(e),r=hie.justMessage(e),i=lie(n+"\ngpgsig"+fie(t)+"\n"+r);return new hie(i)}static from(e){return new hie(e)}toObject(){return One.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return hie.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(e){return lie(e.slice(e.indexOf("\n\n")+2))}static justHeaders(e){return e.slice(0,e.indexOf("\n\n"))}parseHeaders(){const e=hie.justHeaders(this._commit).split("\n"),t=[];for(const n of e)" "===n[0]?t[t.length-1]+="\n"+n.slice(1):t.push(n);const n={parent:[]};for(const e of t){const t=e.slice(0,e.indexOf(" ")),r=e.slice(e.indexOf(" ")+1);Array.isArray(n[t])?n[t].push(r):n[t]=r}return n.author&&(n.author=uie(n.author)),n.committer&&(n.committer=uie(n.committer)),n}static renderHeaders(e){let t="";if(e.tree?t+=`tree ${e.tree}\n`:t+="tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904\n",e.parent){if(void 0===e.parent.length)throw new kne("commit 'parent' property should be an array");for(const n of e.parent)t+=`parent ${n}\n`}return t+=`author ${sie(e.author)}\n`,t+=`committer ${sie(e.committer||e.author)}\n`,e.gpgsig&&(t+="gpgsig"+fie(e.gpgsig)),t}static render(e){return hie.renderHeaders(e)+"\n"+lie(e.message)}render(){return this._commit}withoutSignature(){const e=lie(this._commit);return-1===e.indexOf("\ngpgsig")?e:lie(e.slice(0,e.indexOf("\ngpgsig"))+"\n"+e.slice(e.indexOf("-----END PGP SIGNATURE-----\n")+28))}isolateSignature(){return this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27).split("\n").map((e=>e.replace(/^ /,""))).join("\n")}static async sign(e,t,n){const r=e.withoutSignature(),i=hie.justMessage(e._commit);let{signature:o}=await t({payload:r,secretKey:n});o=lie(o);const a=hie.justHeaders(e._commit)+"\ngpgsig"+fie(o)+"\n"+i;return hie.from(a)}}async function pie({fs:e,cache:t,gitdir:n,oid:r}){if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===r)return{tree:wre.from([]),oid:r};const{type:i,object:o}=await Dre({fs:e,cache:t,gitdir:n,oid:r});if("tag"===i)return pie({fs:e,cache:t,gitdir:n,oid:r=die.from(o).parse().object});if("commit"===i)return pie({fs:e,cache:t,gitdir:n,oid:r=hie.from(o).parse().tree});if("tree"!==i)throw new qne(r,i,"tree");return{tree:wre.from(o),oid:r}}class mie{constructor({fs:e,gitdir:t,ref:n,cache:r}){this.fs=e,this.cache=r,this.gitdir=t,this.mapPromise=(async()=>{const r=new Map;let i;try{i=await gre.resolve({fs:e,gitdir:t,ref:n})}catch(e){e instanceof Xne&&(i="4b825dc642cb6eb9a060e54bf8d69288fbee4904")}const o=await pie({fs:e,cache:this.cache,gitdir:t,oid:i});return o.type="tree",o.mode="40000",r.set(".",o),r})();const i=this;this.ConstructEntry=class{constructor(e){this._fullpath=e,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}async type(){return i.type(this)}async mode(){return i.mode(this)}async stat(){return i.stat(this)}async content(){return i.content(this)}async oid(){return i.oid(this)}}}async readdir(e){const t=e._fullpath,{fs:n,cache:r,gitdir:i}=this,o=await this.mapPromise,a=o.get(t);if(!a)throw new Error(`No obj for ${t}`);const s=a.oid;if(!s)throw new Error(`No oid for obj ${JSON.stringify(a)}`);if("tree"!==a.type)return null;const{type:l,object:u}=await Dre({fs:n,cache:r,gitdir:i,oid:s});if(l!==a.type)throw new qne(s,l,a.type);const c=wre.from(u);for(const e of c)o.set((0,Re.join)(t,e.path),e);return c.entries().map((e=>(0,Re.join)(t,e.path)))}async type(e){if(!1===e._type){const t=await this.mapPromise,{type:n}=t.get(e._fullpath);e._type=n}return e._type}async mode(e){if(!1===e._mode){const t=await this.mapPromise,{mode:n}=t.get(e._fullpath);e._mode=Ene(parseInt(n,8))}return e._mode}async stat(e){}async content(e){if(!1===e._content){const t=await this.mapPromise,{fs:n,cache:r,gitdir:i}=this,o=t.get(e._fullpath).oid,{type:a,object:s}=await Dre({fs:n,cache:r,gitdir:i,oid:o});e._content="blob"!==a?void 0:new Uint8Array(s)}return e._content}async oid(e){if(!1===e._oid){const t=(await this.mapPromise).get(e._fullpath);e._oid=t.oid}return e._oid}}function gie({ref:e="HEAD"}={}){const t=Object.create(null);return Object.defineProperty(t,Fne,{value:function({fs:t,gitdir:n,cache:r}){return new mie({fs:t,gitdir:n,ref:e,cache:r})}}),Object.freeze(t),t}class vie{constructor({fs:e,dir:t,gitdir:n,cache:r}){this.fs=e,this.cache=r,this.dir=t,this.gitdir=n;const i=this;this.ConstructEntry=class{constructor(e){this._fullpath=e,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}async type(){return i.type(this)}async mode(){return i.mode(this)}async stat(){return i.stat(this)}async content(){return i.content(this)}async oid(){return i.oid(this)}}}async readdir(e){const t=e._fullpath,{fs:n,dir:r}=this,i=await n.readdir((0,Re.join)(r,t));return null===i?null:i.map((e=>(0,Re.join)(t,e)))}async type(e){return!1===e._type&&await e.stat(),e._type}async mode(e){return!1===e._mode&&await e.stat(),e._mode}async stat(e){if(!1===e._stat){const{fs:t,dir:n}=this;let r=await t.lstat(`${n}/${e._fullpath}`);if(!r)throw new Error(`ENOENT: no such file or directory, lstat '${e._fullpath}'`);let i=r.isDirectory()?"tree":"blob";"blob"!==i||r.isFile()||r.isSymbolicLink()||(i="special"),e._type=i,r=$ne(r),e._mode=r.mode,-1===r.size&&e._actualSize&&(r.size=e._actualSize),e._stat=r}return e._stat}async content(e){if(!1===e._content){const{fs:t,dir:n,gitdir:r}=this;if("tree"===await e.type())e._content=void 0;else{const i=await dre.get({fs:t,gitdir:r}),o=await i.get("core.autocrlf"),a=await t.read(`${n}/${e._fullpath}`,{autocrlf:o});e._actualSize=a.length,e._stat&&-1===e._stat.size&&(e._stat.size=e._actualSize),e._content=new Uint8Array(a)}}return e._content}async oid(e){if(!1===e._oid){const{fs:t,gitdir:n,cache:r}=this;let i;await zne.acquire({fs:t,gitdir:n,cache:r},(async function(r){const o=r.entriesMap.get(e._fullpath),a=await e.stat(),s=await dre.get({fs:t,gitdir:n}),l=await s.get("core.filemode"),u=void 0===yne||!("win32"===yne.platform);!o||Dne(a,o,l,u)?void 0===await e.content()?i=void 0:(i=await Rne(kre.wrap({type:"blob",object:await e.content()})),!o||i!==o.oid||l&&a.mode!==o.mode||!Dne(a,o,l,u)||r.insert({filepath:e._fullpath,stats:a,oid:i})):i=o.oid})),e._oid=i}return e._oid}}function Oie(){const e=Object.create(null);return Object.defineProperty(e,Fne,{value:function({fs:e,dir:t,gitdir:n,cache:r}){return new vie({fs:e,dir:t,gitdir:n,cache:r})}}),Object.freeze(e),e}const yie=void 0===Array.prototype.flat?e=>e.reduce(((e,t)=>e.concat(t)),[]):e=>e.flat();class bie{constructor(){this.value=null}consider(e){null!=e&&(null===this.value||e{const r=(0,Re.join)(t,n);return e.lstat(r).then((t=>{if(t)return t.isDirectory()?kie(e,r):e.rm(r)}))}))).then((()=>e.rmdir(t))):await e.rmdir(t)}function xie(e){return"function"==typeof e}function _ie(e){return function(e){return e&&"object"==typeof e}(t=(e=>{try{return e.readFile().catch((e=>e))}catch(e){return e}})(e))&&xie(t.then)&&xie(t.catch);var t}const Sie=["readFile","writeFile","mkdir","rmdir","unlink","stat","lstat","readdir","readlink","symlink"];function Pie(e,t){if(_ie(t))for(const n of Sie)e[`_${n}`]=t[n].bind(t);else for(const n of Sie)e[`_${n}`]=gne(t[n].bind(t));_ie(t)?t.rm?e._rm=t.rm.bind(t):t.rmdir.length>1?e._rm=t.rmdir.bind(t):e._rm=kie.bind(null,e):t.rm?e._rm=gne(t.rm.bind(t)):t.rmdir.length>2?e._rm=gne(t.rmdir.bind(t)):e._rm=kie.bind(null,e)}class Eie{constructor(e){if(void 0!==e._original_unwrapped_fs)return e;const t=Object.getOwnPropertyDescriptor(e,"promises");t&&t.enumerable?Pie(this,e.promises):Pie(this,e),this._original_unwrapped_fs=e}async exists(e,t={}){try{return await this._stat(e),!0}catch(e){if("ENOENT"===e.code||"ENOTDIR"===e.code)return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',e),e}}async read(e,t={}){try{let n=await this._readFile(e,t);if("true"===t.autocrlf)try{n=new TextDecoder("utf8",{fatal:!0}).decode(n),n=n.replace(/\r\n/g,"\n"),n=(new TextEncoder).encode(n)}catch(e){}return"string"!=typeof n&&(n=One.from(n)),n}catch(e){return null}}async write(e,t,n={}){try{return void await this._writeFile(e,t,n)}catch(r){await this.mkdir(Nne(e)),await this._writeFile(e,t,n)}}async mkdir(e,t=!1){try{return void await this._mkdir(e)}catch(n){if(null===n)return;if("EEXIST"===n.code)return;if(t)throw n;if("ENOENT"===n.code){const t=Nne(e);if("."===t||"/"===t||t===e)throw n;await this.mkdir(t),await this.mkdir(e,!0)}}}async rm(e){try{await this._unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}async rmdir(e,t){try{t&&t.recursive?await this._rm(e,t):await this._rmdir(e)}catch(e){if("ENOENT"!==e.code)throw e}}async readdir(e){try{const t=await this._readdir(e);return t.sort(Sne),t}catch(e){return"ENOTDIR"===e.code?null:[]}}async readdirDeep(e){const t=await this._readdir(e);return(await Promise.all(t.map((async t=>{const n=e+"/"+t;return(await this._stat(n)).isDirectory()?this.readdirDeep(n):n})))).reduce(((e,t)=>e.concat(t)),[])}async lstat(e){try{return await this._lstat(e)}catch(e){if("ENOENT"===e.code)return null;throw e}}async readlink(e,t={encoding:"buffer"}){try{const n=await this._readlink(e,t);return One.isBuffer(n)?n:One.from(n)}catch(e){if("ENOENT"===e.code)return null;throw e}}async writelink(e,t){return this._symlink(t.toString("utf8"),e)}}function Cie(e,t){if(void 0===t)throw new Gre(e)}async function Tie({fs:e,dir:t,gitdir:n=(0,Re.join)(t,".git"),remote:r,url:i,force:o=!1}){try{return Cie("fs",e),Cie("gitdir",n),Cie("remote",r),Cie("url",i),await async function({fs:e,gitdir:t,remote:n,url:r,force:i}){if(n!==vne.clean(n))throw new qre(n,vne.clean(n));const o=await dre.get({fs:e,gitdir:t});if(!i&&(await o.getSubsections("remote")).includes(n)&&r!==await o.get(`remote.${n}.url`))throw new Mre("remote",n);await o.set(`remote.${n}.url`,r),await o.set(`remote.${n}.fetch`,`+refs/heads/*:refs/remotes/${n}/*`),await dre.save({fs:e,gitdir:t,config:o})}({fs:new Eie(e),gitdir:n,remote:r,url:i,force:o})}catch(e){throw e.caller="git.addRemote",e}}const $ie=(e,t)=>"."===e||null==t||0===t.length||"."===t||(t.length>=e.length?t.startsWith(e):e.startsWith(t));async function Qie({fs:e,cache:t,onProgress:n,onPostCheckout:r,dir:i,gitdir:o,remote:a,ref:s,filepaths:l,noCheckout:u,noUpdateHead:c,dryRun:d,force:f,track:h=!0}){let p,m;if(r)try{p=await gre.resolve({fs:e,gitdir:o,ref:"HEAD"})}catch(e){p="0000000000000000000000000000000000000000"}try{m=await gre.resolve({fs:e,gitdir:o,ref:s})}catch(t){if("HEAD"===s)throw t;const n=`${a}/${s}`;if(m=await gre.resolve({fs:e,gitdir:o,ref:n}),h){const t=await dre.get({fs:e,gitdir:o});await t.set(`branch.${s}.remote`,a),await t.set(`branch.${s}.merge`,`refs/heads/${s}`),await dre.save({fs:e,gitdir:o,config:t})}await gre.writeRef({fs:e,gitdir:o,ref:`refs/heads/${s}`,value:m})}if(!u){let a;try{a=await async function({fs:e,cache:t,onProgress:n,dir:r,gitdir:i,ref:o,force:a,filepaths:s}){let l=0;return async function({fs:e,cache:t,dir:n,gitdir:r,trees:i,map:o=(async(e,t)=>t),reduce:a=(async(e,t)=>{const n=yie(t);return void 0!==e&&n.unshift(e),n}),iterate:s=((e,t)=>Promise.all([...t].map(e)))}){const l=i.map((i=>i[Fne]({fs:e,dir:n,gitdir:r,cache:t}))),u=new Array(l.length).fill("."),c=function(e,t){const n=t-0;return Array.from({length:n},((e,t)=>0+t))}(0,l.length),d=async e=>{const{entries:t,children:n}=await(async e=>{c.map((t=>{e[t]=e[t]&&new l[t].ConstructEntry(e[t])}));const t=(await Promise.all(c.map((t=>e[t]?l[t].readdir(e[t]):[])))).map((e=>null===e?[]:e)).map((e=>e[Symbol.iterator]()));return{entries:e,children:wie(t)}})(e),r=t.find((e=>e&&e._fullpath))._fullpath,i=await o(r,t);if(null!==i){let e=await s(d,n);return e=e.filter((e=>void 0!==e)),a(i,e)}};return d(u)}({fs:e,cache:t,dir:r,gitdir:i,trees:[gie({ref:o}),Oie(),Une()],map:async function(e,[t,r,i]){if("."!==e){if(s&&!s.some((t=>$ie(e,t))))return null;switch(n&&await n({phase:"Analyzing workdir",loaded:++l}),[!!i,!!t,!!r].map(Number).join("")){case"000":return;case"001":return a&&s&&s.includes(e)?["delete",e]:void 0;case"010":switch(await t.type()){case"tree":return["mkdir",e];case"blob":return["create",e,await t.oid(),await t.mode()];case"commit":return["mkdir-index",e,await t.oid(),await t.mode()];default:return["error",`new entry Unhandled type ${await t.type()}`]}case"011":switch(`${await t.type()}-${await r.type()}`){case"tree-tree":case"commit-tree":return;case"tree-blob":case"blob-tree":case"commit-blob":return["conflict",e];case"blob-blob":return await t.oid()!==await r.oid()?a?["update",e,await t.oid(),await t.mode(),await t.mode()!==await r.mode()]:["conflict",e]:await t.mode()!==await r.mode()?a?["update",e,await t.oid(),await t.mode(),!0]:["conflict",e]:["create-index",e,await t.oid(),await t.mode()];default:return["error",`new entry Unhandled type ${t.type}`]}case"100":return["delete-index",e];case"101":switch(await i.type()){case"tree":return["rmdir",e];case"blob":return await i.oid()!==await r.oid()?a?["delete",e]:["conflict",e]:["delete",e];case"commit":return["rmdir-index",e];default:return["error",`delete entry Unhandled type ${await i.type()}`]}case"110":case"111":switch(`${await i.type()}-${await t.type()}`){case"tree-tree":return;case"blob-blob":if(await i.oid()===await t.oid()&&await i.mode()===await t.mode()&&!a)return;if(r){if(await r.oid()!==await i.oid()&&await r.oid()!==await t.oid())return a?["update",e,await t.oid(),await t.mode(),await t.mode()!==await r.mode()]:["conflict",e]}else if(a)return["update",e,await t.oid(),await t.mode(),await t.mode()!==await i.mode()];return await t.mode()!==await i.mode()?["update",e,await t.oid(),await t.mode(),!0]:await t.oid()!==await i.oid()?["update",e,await t.oid(),await t.mode(),!1]:void 0;case"tree-blob":return["update-dir-to-blob",e,await t.oid()];case"blob-tree":return["update-blob-to-tree",e];case"commit-commit":return["mkdir-index",e,await t.oid(),await t.mode()];default:return["error",`update entry Unhandled type ${await i.type()}-${await t.type()}`]}}}},reduce:async function(e,t){return t=yie(t),e?e&&"rmdir"===e[0]?(t.push(e),t):(t.unshift(e),t):t}})}({fs:e,cache:t,onProgress:n,dir:i,gitdir:o,ref:s,force:f,filepaths:l})}catch(e){throw e instanceof Xne&&e.data.what===m?new Wre(s,m):e}const u=a.filter((([e])=>"conflict"===e)).map((([e,t])=>t));if(u.length>0)throw new zre(u);const c=a.filter((([e])=>"error"===e)).map((([e,t])=>t));if(c.length>0)throw new kne(c.join(", "));if(d)return void(r&&await r({previousHead:p,newHead:m,type:null!=l&&l.length>0?"file":"branch"}));let h=0;const g=a.length;await zne.acquire({fs:e,gitdir:o,cache:t},(async function(t){await Promise.all(a.filter((([e])=>"delete"===e||"delete-index"===e)).map((async function([r,o]){const a=`${i}/${o}`;"delete"===r&&await e.rm(a),t.delete({filepath:o}),n&&await n({phase:"Updating workdir",loaded:++h,total:g})})))})),await zne.acquire({fs:e,gitdir:o,cache:t},(async function(t){for(const[r,o]of a)if("rmdir"===r||"rmdir-index"===r){const a=`${i}/${o}`;try{"rmdir-index"===r&&t.delete({filepath:o}),await e.rmdir(a),n&&await n({phase:"Updating workdir",loaded:++h,total:g})}catch(e){if("ENOTEMPTY"!==e.code)throw e;console.log(`Did not delete ${o} because directory is not empty`)}}})),await Promise.all(a.filter((([e])=>"mkdir"===e||"mkdir-index"===e)).map((async function([t,r]){const o=`${i}/${r}`;await e.mkdir(o),n&&await n({phase:"Updating workdir",loaded:++h,total:g})}))),await zne.acquire({fs:e,gitdir:o,cache:t},(async function(r){await Promise.all(a.filter((([e])=>"create"===e||"create-index"===e||"update"===e||"mkdir-index"===e)).map((async function([a,s,l,u,c]){const d=`${i}/${s}`;try{if("create-index"!==a&&"mkdir-index"!==a){const{object:n}=await Dre({fs:e,cache:t,gitdir:o,oid:l});if(c&&await e.rm(d),33188===u)await e.write(d,n);else if(33261===u)await e.write(d,n,{mode:511});else{if(40960!==u)throw new kne(`Invalid mode 0o${u.toString(8)} detected in blob ${l}`);await e.writelink(d,n)}}const i=await e.lstat(d);33261===u&&(i.mode=493),"mkdir-index"===a&&(i.mode=57344),r.insert({filepath:s,stats:i,oid:l}),n&&await n({phase:"Updating workdir",loaded:++h,total:g})}catch(e){console.log(e)}})))})),r&&await r({previousHead:p,newHead:m,type:null!=l&&l.length>0?"file":"branch"})}if(!c){const t=await gre.expand({fs:e,gitdir:o,ref:s});t.startsWith("refs/heads")?await gre.writeSymbolicRef({fs:e,gitdir:o,ref:"HEAD",value:t}):await gre.writeRef({fs:e,gitdir:o,ref:"HEAD",value:m})}}const Rie=new RegExp("^refs/(heads/|tags/|remotes/)?(.*)");function Aie(e){const t=Rie.exec(e);return t?"remotes/"===t[1]&&e.endsWith("/HEAD")?t[2].slice(0,-5):t[2]:e}function jie({username:e="",password:t=""}){return`Basic ${One.from(`${e}:${t}`).toString("base64")}`}async function Die(e,t){const n=Pre(e);for(;;){const{value:e,done:r}=await n.next();if(e&&await t(e),r)break}n.return&&n.return()}async function Mie(e){let t=0;const n=[];await Die(e,(e=>{n.push(e),t+=e.byteLength}));const r=new Uint8Array(t);let i=0;for(const e of n)r.set(e,i),i+=e.byteLength;return r}function Iie(e){let t=e.match(/^https?:\/\/([^/]+)@/);if(null==t)return{url:e,auth:{}};t=t[1];const[n,r]=t.split(":");return{url:e=e.replace(`${t}@`,""),auth:{username:n,password:r}}}class zie{static flush(){return One.from("0000","utf8")}static delim(){return One.from("0001","utf8")}static encode(e){"string"==typeof e&&(e=One.from(e));const t=function(e,t){const n=t.toString(16);return"0".repeat(e-n.length)+n}(4,e.length+4);return One.concat([One.from(t,"utf8"),e])}static streamReader(e){const t=new Ere(e);return async function(){try{let e=await t.read(4);if(null==e)return!0;if(e=parseInt(e.toString("utf8"),16),0===e)return null;if(1===e)return null;const n=await t.read(e-4);return null==n||n}catch(t){return e.error=t,!0}}}}async function Wie(e){const t={};let n;for(;n=await e(),!0!==n;){if(null===n)continue;n=n.toString("utf8").replace(/\n$/,"");const e=n.indexOf("=");if(e>-1){const r=n.slice(0,e),i=n.slice(e+1);t[r]=i}else t[n]=!0}return{protocolVersion:2,capabilities2:t}}async function Nie(e,{service:t}){const n=new Set,r=new Map,i=new Map,o=zie.streamReader(e);let a=await o();for(;null===a;)a=await o();if(!0===a)throw new Nre;if(a.includes("version 2"))return Wie(o);if(a.toString("utf8").replace(/\n$/,"")!==`# service=${t}`)throw new Kre(`# service=${t}\\n`,a.toString("utf8"));let s=await o();for(;null===s;)s=await o();if(!0===s)return{capabilities:n,refs:r,symrefs:i};if(s=s.toString("utf8"),s.includes("version 2"))return Wie(o);const[l,u]=Lie(s,"\0","\\x00");if(u.split(" ").map((e=>n.add(e))),"0000000000000000000000000000000000000000 capabilities^{}"!==l){const[e,t]=Lie(l," "," ");for(r.set(t,e);;){const e=await o();if(!0===e)break;if(null!==e){const[t,n]=Lie(e.toString("utf8")," "," ");r.set(n,t)}}}for(const e of n)if(e.startsWith("symref=")){const t=e.match(/symref=([^:]+):(.*)/);3===t.length&&i.set(t[1],t[2])}return{protocolVersion:1,capabilities:n,refs:r,symrefs:i}}function Lie(e,t,n){const r=e.trim().split(t);if(2!==r.length)throw new Kre(`Two strings separated by '${n}'`,e.toString("utf8"));return r}const Fie=(e,t)=>e.endsWith("?")?`${e}${t}`:`${e}/${t.replace(/^https?:\/\//,"")}`,Uie=(e,t)=>{(t.username||t.password)&&(e.Authorization=jie(t)),t.headers&&Object.assign(e,t.headers)},Xie=async e=>{try{const t=One.from(await Mie(e.body)),n=t.toString("utf8");return{preview:n.length<256?n:n.slice(0,256)+"...",response:n,data:t}}catch(e){return{}}};class qie{static async capabilities(){return["discover","connect"]}static async discover({http:e,onProgress:t,onAuth:n,onAuthSuccess:r,onAuthFailure:i,corsProxy:o,service:a,url:s,headers:l,protocolVersion:u}){let{url:c,auth:d}=Iie(s);const f=o?Fie(o,c):c;let h,p;(d.username||d.password)&&(l.Authorization=jie(d)),2===u&&(l["Git-Protocol"]="version=2");let m=!1;do{if(h=await e.request({onProgress:t,method:"GET",url:`${f}/info/refs?service=${a}`,headers:l}),p=!1,401===h.statusCode||203===h.statusCode){const e=m?i:n;if(e){if(d=await e(c,{...d,headers:{...l}}),d&&d.cancel)throw new iie;d&&(Uie(l,d),m=!0,p=!0)}}else 200===h.statusCode&&m&&r&&await r(c,d)}while(p);if(200!==h.statusCode){const{response:e}=await Xie(h);throw new Ure(h.statusCode,h.statusMessage,e)}if(h.headers["content-type"]===`application/x-${a}-advertisement`){const e=await Nie(h.body,{service:a});return e.auth=d,e}{const{preview:e,response:t,data:n}=await Xie(h);try{const e=await Nie([n],{service:a});return e.auth=d,e}catch(n){throw new tie(e,t)}}}static async connect({http:e,onProgress:t,corsProxy:n,service:r,url:i,auth:o,body:a,headers:s}){const l=Iie(i);l&&(i=l.url),n&&(i=Fie(n,i)),s["content-type"]=`application/x-${r}-request`,s.accept=`application/x-${r}-result`,Uie(s,o);const u=await e.request({onProgress:t,method:"POST",url:`${i}/${r}`,body:a,headers:s});if(200!==u.statusCode){const{response:e}=Xie(u);throw new Ure(u.statusCode,u.statusMessage,e)}return u}}class Bie{static getRemoteHelperFor({url:e}){const t=new Map;t.set("http",qie),t.set("https",qie);const n=function({url:e}){if(e.startsWith("git@"))return{transport:"ssh",address:e};const t=e.match(/(\w+)(:\/\/|::)(.*)/);return null!==t?"://"===t[2]?{transport:t[1],address:t[0]}:"::"===t[2]?{transport:t[1],address:t[3]}:void 0:void 0}({url:e});if(!n)throw new rie(e);if(t.has(n.transport))return t.get(n.transport);throw new nie(e,n.transport,"ssh"===n.transport?function(e){return(e=e.replace(/^git@([^:]+):/,"https://$1/")).replace(/^ssh:\/\//,"https://")}(e):void 0)}}let Vie=null;class Yie{static async read({fs:e,gitdir:t}){null===Vie&&(Vie=new fne);const n=(0,Re.join)(t,"shallow"),r=new Set;return await Vie.acquire(n,(async function(){const t=await e.read(n,{encoding:"utf8"});return null===t||""===t.trim()?r:void t.trim().split("\n").map((e=>r.add(e)))})),r}static async write({fs:e,gitdir:t,oids:n}){null===Vie&&(Vie=new fne);const r=(0,Re.join)(t,"shallow");if(n.size>0){const t=[...n].join("\n")+"\n";await Vie.acquire(r,(async function(){await e.write(r,t,{encoding:"utf8"})}))}else await Vie.acquire(r,(async function(){await e.rm(r)}))}}async function Zie({fs:e,cache:t,gitdir:n,oid:r,format:i="content"}){let o=await async function({fs:e,gitdir:t,oid:n}){const r=`objects/${n.slice(0,2)}/${n.slice(2)}`;return e.exists(`${t}/${r}`)}({fs:e,gitdir:n,oid:r});return o||(o=await async function({fs:e,cache:t,gitdir:n,oid:r,getExternalRefDelta:i}){let o=await e.readdir((0,Re.join)(n,"objects/pack"));o=o.filter((e=>e.endsWith(".idx")));for(const a of o){const o=`${n}/objects/pack/${a}`,s=await jre({fs:e,cache:t,filename:o,getExternalRefDelta:i});if(s.error)throw new kne(s.error);if(s.offsets.has(r))return!0}return!1}({fs:e,cache:t,gitdir:n,oid:r,getExternalRefDelta:r=>Dre({fs:e,cache:t,gitdir:n,oid:r})})),o}const Gie={name:"isomorphic-git",version:"1.27.2",agent:"git/isomorphic-git@1.27.2"};class Hie{constructor(){this._queue=[]}write(e){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const t=this._waiting;this._waiting=null,t({value:e})}else this._queue.push(e)}end(){if(this._ended=!0,this._waiting){const e=this._waiting;this._waiting=null,e({done:!0})}}destroy(e){this.error=e,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise((e=>{this._waiting=e}))}}function Kie(e){const t=e.indexOf("\r"),n=e.indexOf("\n");return-1===t&&-1===n?-1:-1===t?n+1:-1===n?t+1:n===t+1?n+1:Math.min(t,n)+1}class Jie{static demux(e){const t=zie.streamReader(e),n=new Hie,r=new Hie,i=new Hie,o=async function(){const a=await t();if(null===a)return o();if(!0===a)return n.end(),i.end(),void(e.error?r.destroy(e.error):r.end());switch(a[0]){case 1:r.write(a.slice(1));break;case 2:i.write(a.slice(1));break;case 3:{const e=a.slice(1);return i.write(e),n.end(),i.end(),void r.destroy(new Error(e.toString("utf8")))}default:n.write(a)}o()};return o(),{packetlines:n,packfile:r,progress:i}}}async function eoe({fs:e,cache:t,http:n,onProgress:r,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,gitdir:l,ref:u,remoteRef:c,remote:d,url:f,corsProxy:h,depth:p=null,since:m=null,exclude:g=[],relative:v=!1,tags:O=!1,singleBranch:y=!1,headers:b={},prune:w=!1,pruneTags:k=!1}){const x=u||await async function({fs:e,gitdir:t,fullname:n=!1,test:r=!1}){const i=await gre.resolve({fs:e,gitdir:t,ref:"HEAD",depth:2});if(r)try{await gre.resolve({fs:e,gitdir:t,ref:i})}catch(e){return}if(i.startsWith("refs/"))return n?i:Aie(i)}({fs:e,gitdir:l,test:!0}),_=await dre.get({fs:e,gitdir:l}),S=d||x&&await _.get(`branch.${x}.remote`)||"origin",P=f||await _.get(`remote.${S}.url`);if(void 0===P)throw new Gre("remote OR url");const E=c||x&&await _.get(`branch.${x}.merge`)||u||"HEAD";void 0===h&&(h=await _.get("http.corsProxy"));const C=Bie.getRemoteHelperFor({url:P}),T=await C.discover({http:n,onAuth:o,onAuthSuccess:a,onAuthFailure:s,corsProxy:h,service:"git-upload-pack",url:P,headers:b,protocolVersion:1}),$=T.auth,Q=T.refs;if(0===Q.size)return{defaultBranch:null,fetchHead:null,fetchHeadDescription:null};if(null!==p&&!T.capabilities.has("shallow"))throw new eie("shallow","depth");if(null!==m&&!T.capabilities.has("deepen-since"))throw new eie("deepen-since","since");if(g.length>0&&!T.capabilities.has("deepen-not"))throw new eie("deepen-not","exclude");if(!0===v&&!T.capabilities.has("deepen-relative"))throw new eie("deepen-relative","relative");const{oid:R,fullref:A}=gre.resolveAgainstMap({ref:E,map:Q});for(const e of Q.keys())e===A||"HEAD"===e||e.startsWith("refs/heads/")||O&&e.startsWith("refs/tags/")||Q.delete(e);const j=function(e,t){const n=e.map((e=>e.split("=",1)[0]));return t.filter((e=>{const t=e.split("=",1)[0];return n.includes(t)}))}([...T.capabilities],["multi_ack_detailed","no-done","side-band-64k","ofs-delta",`agent=${Gie.agent}`]);v&&j.push("deepen-relative");const D=y?[R]:Q.values(),M=y?[x]:await gre.listRefs({fs:e,gitdir:l,filepath:"refs"});let I=[];for(let n of M)try{n=await gre.expand({fs:e,gitdir:l,ref:n});const r=await gre.resolve({fs:e,gitdir:l,ref:n});await Zie({fs:e,cache:t,gitdir:l,oid:r})&&I.push(r)}catch(e){}I=[...new Set(I)];const z=await Yie.read({fs:e,gitdir:l}),W=function({capabilities:e=[],wants:t=[],haves:n=[],shallows:r=[],depth:i=null,since:o=null,exclude:a=[]}){const s=[];t=[...new Set(t)];let l=` ${e.join(" ")}`;for(const e of t)s.push(zie.encode(`want ${e}${l}\n`)),l="";for(const e of r)s.push(zie.encode(`shallow ${e}\n`));null!==i&&s.push(zie.encode(`deepen ${i}\n`)),null!==o&&s.push(zie.encode(`deepen-since ${Math.floor(o.valueOf()/1e3)}\n`));for(const e of a)s.push(zie.encode(`deepen-not ${e}\n`));s.push(zie.flush());for(const e of n)s.push(zie.encode(`have ${e}\n`));return s.push(zie.encode("done\n")),s}({capabilities:j,wants:D,haves:I,shallows:T.capabilities.has("shallow")?[...z]:[],depth:p,since:m,exclude:g}),N=One.from(await Mie(W)),L=await C.connect({http:n,onProgress:r,corsProxy:h,service:"git-upload-pack",url:P,auth:$,body:[N],headers:b}),F=await async function(e){const{packetlines:t,packfile:n,progress:r}=Jie.demux(e),i=[],o=[],a=[];let s=!1,l=!1;return new Promise(((u,c)=>{Die(t,(t=>{const d=t.toString("utf8").trim();if(d.startsWith("shallow")){const e=d.slice(-41).trim();40!==e.length&&c(new Bne(e)),i.push(e)}else if(d.startsWith("unshallow")){const e=d.slice(-41).trim();40!==e.length&&c(new Bne(e)),o.push(e)}else if(d.startsWith("ACK")){const[,e,t]=d.split(" ");a.push({oid:e,status:t}),t||(l=!0)}else d.startsWith("NAK")?(s=!0,l=!0):(l=!0,s=!0);l&&(e.error?c(e.error):u({shallows:i,unshallows:o,acks:a,nak:s,packfile:n,progress:r}))})).finally((()=>{l||(e.error?c(e.error):u({shallows:i,unshallows:o,acks:a,nak:s,packfile:n,progress:r}))}))}))}(L.body);L.headers&&(F.headers=L.headers);for(const n of F.shallows)if(!z.has(n))try{const{object:r}=await Dre({fs:e,cache:t,gitdir:l,oid:n}),i=new hie(r),o=await Promise.all(i.headers().parent.map((n=>Zie({fs:e,cache:t,gitdir:l,oid:n}))));0===o.length||o.every((e=>e))||z.add(n)}catch(e){z.add(n)}for(const e of F.unshallows)z.delete(e);if(await Yie.write({fs:e,gitdir:l,oids:z}),y){const t=new Map([[A,R]]),n=new Map;let r=10,i=A;for(;r--;){const e=T.symrefs.get(i);if(void 0===e)break;n.set(i,e),i=e}const o=Q.get(i);o&&t.set(i,o);const{pruned:a}=await gre.updateRemoteRefs({fs:e,gitdir:l,remote:S,refs:t,symrefs:n,tags:O,prune:w});w&&(F.pruned=a)}else{const{pruned:t}=await gre.updateRemoteRefs({fs:e,gitdir:l,remote:S,refs:Q,symrefs:T.symrefs,tags:O,prune:w,pruneTags:k});w&&(F.pruned=t)}if(F.HEAD=T.symrefs.get("HEAD"),void 0===F.HEAD){const{oid:e}=gre.resolveAgainstMap({ref:"HEAD",map:Q});for(const[t,n]of Q.entries())if("HEAD"!==t&&n===e){F.HEAD=t;break}}const U=A.startsWith("refs/tags")?"tag":"branch";F.FETCH_HEAD={oid:R,description:`${U} '${Aie(A)}' of ${P}`},(r||i)&&Die(function(e){const t=new Hie;let n="";return(async()=>{await Die(e,(e=>{for(e=e.toString("utf8"),n+=e;;){const e=Kie(n);if(-1===e)break;t.write(n.slice(0,e)),n=n.slice(e)}})),n.length>0&&t.write(n),t.end()})(),t}(F.progress),(async e=>{if(i&&await i(e),r){const t=e.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);t&&await r({phase:t[1].trim(),loaded:parseInt(t[2],10),total:parseInt(t[3],10)})}}));const X=One.from(await Mie(F.packfile));if(L.body.error)throw L.body.error;const q=X.slice(-20).toString("hex"),B={defaultBranch:F.HEAD,fetchHead:F.FETCH_HEAD.oid,fetchHeadDescription:F.FETCH_HEAD.description};if(F.headers&&(B.headers=F.headers),w&&(B.pruned=F.pruned),""!==q&&"5041434b0000000200000000"!==X.slice(0,12).toString("hex")){B.packfile=`objects/pack/pack-${q}.pack`;const n=(0,Re.join)(l,B.packfile);await e.write(n,X);const i=n=>Dre({fs:e,cache:t,gitdir:l,oid:n}),o=await Rre.fromPack({pack:X,getExternalRefDelta:i,onProgress:r});await e.write(n.replace(/\.pack$/,".idx"),await o.toBuffer())}return B}async function toe({fs:e,bare:t=!1,dir:n,gitdir:r=(t?n:(0,Re.join)(n,".git")),defaultBranch:i="master"}){try{return Cie("fs",e),Cie("gitdir",r),t||Cie("dir",n),await async function({fs:e,bare:t=!1,dir:n,gitdir:r=(t?n:(0,Re.join)(n,".git")),defaultBranch:i="master"}){if(await e.exists(r+"/config"))return;let o=["hooks","info","objects/info","objects/pack","refs/heads","refs/tags"];o=o.map((e=>r+"/"+e));for(const t of o)await e.mkdir(t);await e.write(r+"/config",`[core]\n\trepositoryformatversion = 0\n\tfilemode = false\n\tbare = ${t}\n`+(t?"":"\tlogallrefupdates = true\n")+"\tsymlinks = false\n\tignorecase = true\n"),await e.write(r+"/HEAD",`ref: refs/heads/${i}\n`)}({fs:new Eie(e),bare:t,dir:n,gitdir:r,defaultBranch:i})}catch(e){throw e.caller="git.init",e}}async function noe(e){let t=0;const n=[];await async function(e,t){const n=function(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:function(e){let t=[e];return{next:()=>Promise.resolve({done:0===t.length,value:t.pop()}),return:()=>(t=[],{}),[Symbol.asyncIterator](){return this}}}(e)}(e);for(;;){const{value:e,done:r}=await n.next();if(e&&await t(e),r)break}n.return&&n.return()}(e,(e=>{n.push(e),t+=e.byteLength}));const r=new Uint8Array(t);let i=0;for(const e of n)r.set(e,i),i+=e.byteLength;return r}var roe={request:async function({onProgress:e,url:t,method:n="GET",headers:r={},body:i}){i&&(i=await noe(i));const o=await fetch(t,{method:n,headers:r,body:i}),a=o.body&&o.body.getReader?function(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next:()=>t.read(),return:()=>(t.releaseLock(),{}),[Symbol.asyncIterator](){return this}}}(o.body):[new Uint8Array(await o.arrayBuffer())];r={};for(const[e,t]of o.headers.entries())r[e]=t;return{url:o.url,method:o.method,statusCode:o.status,statusMessage:o.statusText,body:a,headers:r}}};const ioe=roe;function ooe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aoe="/repo";let soe;const loe=function(e){return class{constructor(t,n={}){ooe(this,"backend",void 0),ooe(this,"config",void 0),ooe(this,"fs",void 0),ooe(this,"pfs",void 0),ooe(this,"repositoryUrl",void 0),ooe(this,"repository",void 0),this.backend=new e(t,n),this.config=t,this.fs=new(dne())("decapfs"),this.pfs=this.fs.promises,this.repositoryUrl=function(e){const t=e.name;if(t.startsWith("github"))return`https://github.com/${e.repo}.git`;if(t.startsWith("gitlab"))return`https://gitlab.com/${e.repo}.git`;if(t.startsWith("gitea"))return`${e.base_url}/${e.repo}.git`;if(t.startsWith("git-gateway")){if(!e.repo)throw new Error("Repository URL mandatory for 'git-gateway' configuration (https://[...]/repoName.git)");return e.repo}throw new Error("Can't determine repository URL")}(t.backend),soe||(soe=this.getRepository()),this.repository=soe}async getRepository(){const e=this.config.backend.branch||"main";try{await this.pfs.stat(aoe)}catch(t){await this.pfs.mkdir(aoe),await toe({fs:this.fs,dir:aoe,defaultBranch:e})}return await Tie({fs:this.fs,dir:aoe,url:this.repositoryUrl,remote:"origin",force:!0}),await async function({fs:e,http:t,onProgress:n,onMessage:r,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:l=(0,Re.join)(s,".git"),ref:u,remote:c,remoteRef:d,url:f,corsProxy:h,depth:p=null,since:m=null,exclude:g=[],relative:v=!1,tags:O=!1,singleBranch:y=!1,headers:b={},prune:w=!1,pruneTags:k=!1,cache:x={}}){try{return Cie("fs",e),Cie("http",t),Cie("gitdir",l),await eoe({fs:new Eie(e),cache:x,http:t,onProgress:n,onMessage:r,onAuth:i,onAuthSuccess:o,onAuthFailure:a,gitdir:l,ref:u,remote:c,remoteRef:d,url:f,corsProxy:h,depth:p,since:m,exclude:g,relative:v,tags:O,singleBranch:y,headers:b,prune:w,pruneTags:k})}catch(e){throw e.caller="git.fetch",e}}({fs:this.fs,http:ioe,dir:aoe,remote:"origin",ref:e,singleBranch:!0,depth:1}),await async function({fs:e,onProgress:t,onPostCheckout:n,dir:r,gitdir:i=(0,Re.join)(r,".git"),remote:o="origin",ref:a,filepaths:s,noCheckout:l=!1,noUpdateHead:u=void 0===a,dryRun:c=!1,force:d=!1,track:f=!0,cache:h={}}){try{Cie("fs",e),Cie("dir",r),Cie("gitdir",i);const p=a||"HEAD";return await Qie({fs:new Eie(e),cache:h,onProgress:t,onPostCheckout:n,dir:r,gitdir:i,remote:o,ref:p,filepaths:s,noCheckout:l,noUpdateHead:u,dryRun:c,force:d,track:f})}catch(e){throw e.caller="git.checkout",e}}({fs:this.fs,dir:aoe,ref:e,force:!0,track:!1}),this.pfs.readdir(aoe)}isGitBackend(){return!0}async entriesByFolder(e,t){try{await this.repository;const n=(await this.pfs.readdir(`${aoe}/${e}`)).filter((e=>e.endsWith(t)));return Promise.all(n.map((async t=>{const n=`${e}/${t}`,r=`${aoe}/${n}`;let i=await this.pfs.readFile(r,"utf8");return i instanceof Uint8Array&&(i=(new TextDecoder).decode(i)),{data:i,file:{path:n,id:n}}})))}catch{return[]}}async getEntry(e){await this.repository;let t=await this.pfs.readFile(`${aoe}/${e}`,"utf8");return t instanceof Uint8Array&&(t=(new TextDecoder).decode(t)),{file:{path:e,id:null},data:t}}status(){return this.backend.status()}authComponent(){return this.backend.authComponent()}restoreUser(e){return this.backend.restoreUser(e)}authenticate(e){return this.backend.authenticate(e)}logout(){return this.backend.logout()}getToken(){return this.backend.getToken()}traverseCursor(e,t){return this.backend.traverseCursor(e,t)}entriesByFiles(e){return this.backend.entriesByFiles(e)}unpublishedEntries(){return this.backend.unpublishedEntries()}unpublishedEntry(e){return this.backend.unpublishedEntry(e)}unpublishedEntryDataFile(e,t,n,r){return this.backend.unpublishedEntryDataFile(e,t,n,r)}unpublishedEntryMediaFile(e,t,n,r){return this.backend.unpublishedEntryMediaFile(e,t,n,r)}deleteUnpublishedEntry(e,t){return this.backend.deleteUnpublishedEntry(e,t)}persistEntry(e,t){return this.backend.persistEntry(e,t)}updateUnpublishedEntryStatus(e,t,n){return this.backend.updateUnpublishedEntryStatus(e,t,n)}publishUnpublishedEntry(e,t){return this.backend.publishUnpublishedEntry(e,t)}getMedia(e,t){return this.backend.getMedia(e,t)}getMediaFile(e){return this.backend.getMediaFile(e)}getMediaDisplayURL(e){return this.backend.getMediaDisplayURL(e)}persistMedia(e,t){return this.backend.persistMedia(e,t)}deleteFiles(e,t){return this.backend.deleteFiles(e,t)}getDeployPreview(e,t){return this.backend.getDeployPreview(e,t)}allEntriesByFolder(e,t,n,r){return this.backend.allEntriesByFolder(e,t,n,r)}}},uoe={cs:{auth:{login:"Přihlásit",loggingIn:"Přihlašování…",loginWithNetlifyIdentity:"Přihlásit pomocí Netlify Identity",loginWithBitbucket:"Přihlásit pomocí Bitbucket",loginWithGitHub:"Přihlásit pomocí GitHub",loginWithGitLab:"Přihlásit pomocí GitLab",loginWithGitea:"Přihlásit pomocí Gitea",errors:{email:"Vyplňte e-mailovou adresu.",password:"Vyplňte heslo.",authTitle:"Chyba během přihlašování",authBody:"%{details}",netlifyIdentityNotFound:"Netlify Identity plugin nebyl nalezen",identitySettings:"Nastavení identity nenalezeno. Používáte-li git-gateway server nezapomeňte aktivovat službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Workflow",media:"Média",quickAdd:"Přidat"},app:{loading:"Načítání…",errorHeader:"Chyba při načítání CMS konfigurace",configErrors:"Chyba konfigurace",configNotFound:"Konfigurace nebyla nalezena",checkConfigYml:"Zkontrolujte soubor config.yml.",loadingConfig:"Načítání konfigurace…",waitingBackend:"Čekání na server…"},notFoundPage:{header:"Nenalezeno"}},collection:{sidebar:{collections:"Kolekce",allCollections:"Všechny kolekce",searchAll:"Hledat",searchIn:"Hledat v"},collectionTop:{sortBy:"Seřadit podle",viewAs:"Zobrazit jako",newButton:"Nový %{collectionLabel}",ascending:"Vzestupné",descending:"Sestupné",searchResults:'Výsledky vyhledávání pro "%{searchTerm}"',searchResultsInCollection:'Výsledky vyhledávání pro "%{searchTerm}" v kolekci %{collection}',filterBy:"Filtrovat podle",groupBy:"Seskupit podle"},entries:{loadingEntries:"Načítání záznamů",cachingEntries:"Úkládání záznamů do mezipaměti",longerLoading:"Načítání může trvat několik minut",noEntries:"Žádné záznamy"},groups:{other:"Ostatní",negateLabel:"Není %{label}"},table:{summary:"Přehled",collection:"Kolekce"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Poslední aktualizace"}},notFound:"Kolekce nebyla nalezena"},editor:{editorControl:{field:{optional:"volitelný"}},editorControlPane:{widget:{required:"%{fieldLabel} je povinný.",regexPattern:"%{fieldLabel} nesouhlasí s předepsaným vzorem: %{pattern}.",processing:"%{fieldLabel} se zpracovává.",range:"%{fieldLabel} musí být mezi %{minValue} a %{maxValue}.",min:"%{fieldLabel} musí být alespoň %{minValue}.",max:"%{fieldLabel} musí být %{maxValue} nebo méně.",rangeCount:"%{fieldLabel} musí mít %{minCount} až %{maxCount} položek.",rangeCountExact:"%{fieldLabel} musí mít přesně %{count} položek.",rangeMin:"%{fieldLabel} musí mít nejméně %{minCount} položky.",rangeMax:"%{fieldLabel} musí mít %{maxCount} nebo méně položek.",invalidPath:"'%{path}' není platnou cestou.",pathExists:"Cesta '%{path}' už existuje.",invalidColor:"Barva '%{color}' není platná.",invalidHexCode:"Hexadecimální barvy musí začínat znakem #"},i18n:{writingInLocale:"Psát v %{locale}",copyFromLocale:"Vyplnit z jiné lokalizace",copyFromLocaleConfirm:"Chcete vyplnit data z lokalizace %{locale}?\nVšechen existující obsah bude přepsán."}},editor:{onLeavePage:"Chcete opravdu opustit tuto stránku?",onUpdatingWithUnsavedChangesTitle:"Neuložené změny",onUpdatingWithUnsavedChangesBody:"Máte neuložené změny. Uložte je prosím před změnou statusu.",onPublishingNotReadyTitle:"Není připraven k publikování",onPublishingNotReadyBody:"Změňte stav na „Připraveno“ před publikováním.",onPublishingWithUnsavedChangesTitle:"Neuložené změny",onPublishingWithUnsavedChangesBody:"Máte neuložené změny, prosím uložte je před publikováním.",onPublishingTitle:"Publikovat záznam?",onPublishingBody:"Chcete opravdu publikovat tento záznam?",onUnpublishingTitle:"Zrušit publikování záznamu?",onUnpublishingBody:"Chcete opravdu zrušit publikování tohoto záznamu?",onDeleteWithUnsavedChangesTitle:"Smazat publikovaný záznam?",onDeleteWithUnsavedChangesBody:"Chcete opravdu vymazat tento publikovaný záznam a všechny neuložené změny z této relace?",onDeletePublishedEntryTitle:"Smazat publikovaný záznam?",onDeletePublishedEntryBody:"Chcete opravdu smazat tento publikovaný záznam?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:"Smazat nepublikované změny?",onDeleteUnpublishedChangesWithUnsavedChangesBody:"Tato akce vymaže všechny nepublikované změny v tomto záznamu a také všechny neuložené změny z této relace. Chcete záznam skutečně vymazat?",onDeleteUnpublishedChangesTitle:"Smazat nepublikované změny?",onDeleteUnpublishedChangesBody:"Všechny nepublikované změny v tomto záznamu budou vymazány. Chcete ho skuteně vymazat?",loadingEntry:"Načítání záznamu…"},editorInterface:{sideBySideI18n:"Lokalizace vedle sebe",preview:"Náhled",toggleI18n:"Přepnout lokalizaci",togglePreview:"Přepnout náhled",toggleScrollSync:"Sladit skrolování"},editorToolbar:{publishing:"Publikování…",publish:"Publikovat",published:"Publikovaný",unpublish:"Zrušit publikování",duplicate:"Duplikovat",unpublishing:"Rušení publikování…",publishAndCreateNew:"Publikovat a vytvořit nový",publishAndDuplicate:"Publikovat a duplikovat",deleteUnpublishedChanges:"Vymazat nepublikované změny",deleteUnpublishedEntry:"Vymazat nepublikovaný záznam",deletePublishedEntry:"Vymazat publikovaný záznam",deleteEntry:"Vymazat záznam",saving:"Ukládání…",save:"Uložit",statusInfoTooltipDraft:"Status záznamu je nastavený na draft. Pro odeslání záznamu k revizi změňte status záznamu na 'Revize'",statusInfoTooltipInReview:"Záznam je v revizi, žádné další změny od vás nejsou vyžadovány, ale i přesto můžete záznam upravovat.",deleting:"Vymazávání…",updating:"Aktualizace…",status:"Status: %{status}",backCollection:" Píšete v kolekci %{collectionLabel}",unsavedChanges:"Neuložené změny",changesSaved:"Změny uloženy",draft:"Koncept",inReview:"V revizi",ready:"Připraveno",publishNow:"Publikovat teď",deployPreviewPendingButtonLabel:"Zkontrolovat náhled",deployPreviewButtonLabel:"Zobrazit náhled",deployButtonLabel:"Zobrazit na webu",discardChanges:"Zrušit změny",discardChangesTitle:"Zrušit změny",discardChangesBody:"Opravdu chcete zrušit všechny neuložené změny?"},editorWidgets:{markdown:{bold:"Tučně",italic:"Kurzíva",strikethrough:"Přeškrtnuté",code:"Kód",codeBlock:"Blok kódu",insertCodeBlock:"Vložit blok kódu",link:"Odkaz",insertLink:"Vložit odkaz",paragraph:"Odstavec",headings:"Nadpisy",quote:"Citovat",insertQuote:"Vložit citaci",bulletedList:"Odrážkový seznam",numberedList:"Číslovaný seznam",addComponent:"Přidat součástku",richText:"Rich Text",markdown:"Markdown",type:"Pište...",decreaseIndent:"Snížit odsazení",increaseIndent:"Zvýšit odsazení",image:"Obrázek",insertImage:"Vložit obrázek",table:{table:"Tabulka",deleteColumn:"Smazat sloupec",deleteRow:"Smazat řádek",deleteTable:"Smazat tabulku",insertColumn:"Vložit sloupec",insertRow:"Vložit řádek",insertTable:"Vložit tabulku"}},image:{choose:"Vyberte obrázek",chooseMultiple:"Vyberte obrázky",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL obrázku",chooseDifferent:"Vyberte jiný obrázek",addMore:"Přidat další obrázky",remove:"Odebrat obrázek",removeAll:"Odebrat všechny obrázky"},file:{choose:"Vyberte soubor",chooseUrl:"Přidat z URL",chooseMultiple:"Vyberte soubory",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL souboru",chooseDifferent:"Vyberte jiný soubor",addMore:"Přidat další soubory",remove:"Odebrat soubor",removeAll:"Odebrat všechny soubory"},folder:{choose:"Vybrat složku",chooseUrl:"Vložit cestu na složku",chooseMultiple:"Vybrat složky",replaceUrl:"Nahradit cestou",promptUrl:"Vložte cestu na složku",chooseDifferent:"Vyberte jinou složku",addMore:"Přidat více složek",remove:"Odstranit složku",removeAll:"Odstranit všechny složky"},unknownControl:{noControl:"Žádné ovládání pro widget '%{widget}'."},unknownPreview:{noPreview:"Žádný náhled pro widget '%{widget}'."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"},datetime:{now:"Teď",invalidDateTitle:"Neplatné datum",invalidDateBody:"Datum není validní."},list:{add:"Vložit %{item}",addType:"Vložit %{item}",noValue:"Žádná hodnota"},keyvalue:{key:"Klíč",value:"Hodnota",uniqueKeys:"%{keyLabel} musí být unikátní"},code:{language:"Jazyk",selectLanguage:"Vyberte jazyk"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept",copy:"Kopírovat",copyUrl:"Kopírovat URL",copyPath:"Kopírovat cestu",copyName:"Kopírovat název",copied:"Zkopírováno"},mediaLibrary:{onDeleteTitle:"Vymazat",onDeleteBody:"Chcete skutečně vymazat označená média?",fileTooLargeTitle:"Soubor je příliš velký",fileTooLargeBody:"Soubor je příliš velký.\nSoubor musí být menší než %{size} kB.",alreadyExistsTitle:"Soubor již existuje",alreadyExistsBody:"%{filename} již existuje. Chcete ho nahradit?"},mediaLibraryModal:{noResults:"Nic nenalezeno.",noAssetsFound:"Média nenalezena.",noImagesFound:"Obrázky nenalezeny.",private:"Soukromé ",images:"Obrázky",mediaAssets:"Média",search:"Hledat…",uploading:"Nahrávání…",upload:"Nahrát nový",download:"Stáhnout",deleting:"Vymazávání…",deleteSelected:"Smazat označené",chooseSelected:"Vybrat označené",dropImages:"Odebrat obrázky pro nahrání",dropFiles:"Odebrat soubory pro nahrání"},folderSupport:{newFolder:"Nová složka",createNewFolder:"Vytvořit novou složku",enterFolderName:"Vložte název nové složky...",create:"Vytvořit",home:"Domů",up:"Nahoru",upToFolder:"Nahoru na %{folder}"}},ui:{common:{yes:"Ano",no:"Ne",okay:"OK",cancel:"Zrušit"},default:{goBackToSite:"Vrátit se na stránku"},localBackup:{hasLocalBackup:"Záloha obsahuje je lokálně"},errorBoundary:{title:"Chyba",details:"Nastala chyba – prosím ",reportIt:"nahlašte ji.",detailsHeading:"Detaily",privacyWarning:"Při otevření problému budou předvyplněny ladící data a chybová zpráva.\nProsím zkontrolujte, jestli jsou informace správné, a případně odstraňte citlivé údaje.",recoveredEntry:{heading:"Nalezený dokument",warning:"Prosím zkopírujte dokument do schránky před tím než odejte z této stránky!",copyButtonLabel:"Zkopírovat do schránky"}},settingsDropdown:{theme:"Motiv",logOut:"Odhlásit"},toast:{onFailToLoadEntries:"Chyba při načítání záznamu: %{details}",onFailToLoadDeployPreview:"Chyba při načítání náhledu: %{details}",onFailToPersist:"Chyba při ukládání záznamu: %{details}",onFailToPersistMedia:"Chyba při ukládání média: %{details}",onFailToDelete:"Chyba při vymazávání záznamu: %{details}",onFailToDeleteMedia:"Chyba při vymazávání média: %{details}",onFailToUpdateStatus:"Chyba při změně stavu záznamu: %{details}",missingRequiredField:"Vynechali jste povinné pole. Prosím vyplňte ho.",entrySaved:"Záznam uložen",entryDeleted:"Záznam smazán",entryPublished:"Záznam publikován",entryUnpublished:"Publikování záznamu zrušeno",onFailToPublishEntry:"Chyba při publikování záznamu: %{details}",onFailToUnpublishEntry:"Chyba při rušení publikování záznamu: %{details}",entryUpdated:"Stav záznamu byl změněn",onDeletePublishedEntry:"Publikovaný záznam byl smazán",onDeleteUnpublishedChanges:"Nepublikované změny byly smazány",onFailToAuth:"%{details}",onLoggedOut:"Byli jste odhlášeni, prosím zálohujte všechna data a znova se přihlašte",onBackendDown:"Backend zaznamenal výpadek. Podívejte se do %{details} pro více informací."}},workflow:{workflow:{dashboard:"Nástěnka",loading:"Načítání workflow záznamů",workflowHeading:"Schvalovací Workflow",newPost:"Nový post",description:"%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} (%{author})",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Vymazat změny",deleteNewEntry:"Vymazat nový záznam",publishChanges:"Publikovat změny",publishNewEntry:"Publikovat nový záznam"},workflowList:{onDeleteEntry:"Opravdu chcete smazat tento záznam?",onPublishingNotReadyEntry:'Pouze položky se statusem "Připraveno" mohou být publikováno. Pro umožnění publikace musíte přetáhnout kartu do sloupce "Připraveno"',onPublishEntry:"Opravdu chcete publikovat tento záznam?",draft:"Koncepty",pending_review:"V revizi",pending_publish:"Připraveno",currentEntries:"%{smart_count} záznam |||| %{smart_count} záznamů"},openAuthoring:{forkRequired:"Veřejné psaní od jiných uživatelů je povoleno. Potřebujeme zkopírovat váš github účet, pokud kopie ještě nebyla pořízena.",forkRepo:"Vytvořit kopii repozitáře",markReadyForReview:"Odeslat záznam k revizi"}}},da:{auth:{login:"Log ind",loggingIn:"Logger ind...",loginWithNetlifyIdentity:"Log ind med Netlify Identity",loginWithBitbucket:"Log ind med Bitbucket",loginWithGitHub:"Log ind med GitHub",loginWithGitLab:"Log ind med GitLab",loginWithGitea:"Log ind med Gitea",errors:{email:"Vær sikker på du har indtastet din e-mail.",password:"Indtast dit kodeord.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Kunne ikke tilgå identity opsætning. Ved brug af git-gateway som bagvedliggende service, sørg for at aktivere Identity service og Git Gateway."}},app:{header:{content:"Indhold",workflow:"Arbejdsgang",media:"Medier",quickAdd:"Hurtig opret"},app:{loading:"Indlæser...",errorHeader:"Fejl ved indlæsning af CMS opsætningen",configErrors:"Opsætningsfejl",configNotFound:void 0,checkConfigYml:"Kontroller din config.yml fil.",loadingConfig:"Indlæser opsætning...",waitingBackend:"Venter på bagvedliggende service..."},notFoundPage:{header:"Ikke fundet"}},collection:{sidebar:{collections:"Samlinger",allCollections:"Alle samlinger",searchAll:"Søg i alt",searchIn:"Søg i"},collectionTop:{sortBy:"Sorter efter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Faldende",searchResults:'Søgeresultater for "%{searchTerm}"',searchResultsInCollection:'Søgeresultater for "%{searchTerm}" i %{collection}',filterBy:"Filtrer efter",groupBy:"Grupper efter"},entries:{loadingEntries:"Indlæser dokumenter...",cachingEntries:"Caching af dokumenter...",longerLoading:"Dette kan tage adskillige minutter",noEntries:"Ingen dokumenter"},groups:{other:"Anden",negateLabel:"Ikke %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Opdateret "}},notFound:void 0},editor:{editorControl:{field:{optional:"kan udelades"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrævet.",regexPattern:"%{fieldLabel} matchede ikke: %{pattern}.",processing:"%{fieldLabel} behandles.",range:"%{fieldLabel} skal være mellem %{minValue} og %{maxValue}.",min:"%{fieldLabel} skal være mindst %{minValue}.",max:"%{fieldLabel} være være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} skal have mellem %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} skal have præcis %{count} element(er).",rangeMin:"%{fieldLabel} skal have mindst %{minCount} element(er).",rangeMax:"%{fieldLabel} skal have %{maxCount} eller færre element(er).",invalidPath:"'%{path}' er ikke en gyldig sti",pathExists:"Stien '%{path}' findes allerede",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Skriver på %{locale}",copyFromLocale:"Kopier fra et andet sprog",copyFromLocaleConfirm:"Vil du indsætte data fra sproget %{locale}?\nAlt eksisterende indhold vil blive overskrevet."}},editor:{onLeavePage:"Er du sikker på at du vil forlade siden?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Du har ændringer der ikke er gemt, gem disse før status ændres.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Skift status til "Klar" inden publicering.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Du har ændringer der ikke er gemt, gem inden publicing.",onPublishingTitle:void 0,onPublishingBody:"Er du sikker på at du vil publicere dette dokument?",onUnpublishingTitle:void 0,onUnpublishingBody:"Er du sikker på at du vil afpublicere dette dokument?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Er du sikker på at du vil slette dette tidliere publiceret dokument, samt dine nuværende ugemte ændringer fra denne session?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Er du sikker på at du vil slette dette tidliere publiceret dokument?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Alle ikke publicerede ændringer til dette dokument vil blive slettet ligesom dine nuværende ugemte ændringer fra denne session. Er du sikker på at du vil slette?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle ikke publicerede ændringer til dette dokument vil blive slettet. Er du sikker på at du vil slette?",loadingEntry:"Indlæser dokument..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publicerer...",publish:"Publicer",published:"Publiceret",unpublish:"Afpublicer",duplicate:"Kopier",unpublishing:"Afpublicerer...",publishAndCreateNew:"Publicer og opret ny",publishAndDuplicate:"Publicer og kopier",deleteUnpublishedChanges:"Slet upublicerede ændringer",deleteUnpublishedEntry:"Slet upubliceret dokument",deletePublishedEntry:"Slet publiceret dokument",deleteEntry:"Slet dokument",saving:"Gemmer...",save:"Gem",statusInfoTooltipDraft:"Status for elementet er kladde. For at afslutte og sende til gennemsyn, skift status til ‘Til gennemsyn’",statusInfoTooltipInReview:"Elementet er til gennemsyn, det er ikke nødvendigt med yderligere handlinger. Du kan dog stadig lave yderligere ændringer mens det er til gennemsyn.",deleting:"Sletter...",updating:"Opdaterer...",status:"Status: %{status}",backCollection:" Skriver til %{collectionLabel} samlingen",unsavedChanges:"Ugemte ændringer",changesSaved:"Ændringer gemt",draft:"Kladder",inReview:"Til gennemsyn",ready:"Klar",publishNow:"Publicer nu",deployPreviewPendingButtonLabel:"Lav preview",deployPreviewButtonLabel:"Vis preview",deployButtonLabel:"Vis live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Fed",italic:"Kursiv",strikethrough:void 0,code:"Kode",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Overskrifter",quote:"Citat",insertQuote:void 0,bulletedList:"Punktopstilling",numberedList:"Nummeret liste",addComponent:"Tilføj komponent",richText:"Formatteret tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Vælg et billede",chooseMultiple:"Vælg billeder",chooseUrl:"Indsæt fra URL",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for billeder",chooseDifferent:"Vælg et andet billede",addMore:"Tilføj flere billeder",remove:"Fjern billede",removeAll:"Fjern alle billeder"},file:{choose:"Vælg fil",chooseUrl:"Indsæt fra URL",chooseMultiple:"Vælg filer",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for filen",chooseDifferent:"Vælg en anden fil",addMore:"Tilføj flere filer",remove:"Fjern fil",removeAll:"Fjern alle filer"},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Ingen kontrol for '%{widget}'."},unknownPreview:{noPreview:"Ingen preview for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nu",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Tilføj %{item}",addType:"Tilføj %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladde",copy:"Kopier",copyUrl:"Kopier URL",copyPath:"Kopier sti",copyName:"Kopier navn",copied:"Kopieret"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Er du sikker på at du vil slette det valgte medie?",fileTooLargeTitle:void 0,fileTooLargeBody:"Filen er for stor.\nOpsætningen tillader ikke filer større end %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer fundet.",noImagesFound:"Ingen billeder fundet.",private:"Privat ",images:"Billeder",mediaAssets:"Medie elementer",search:"Søg...",uploading:"Uploader...",upload:"Upload",download:"Download",deleting:"Slet...",deleteSelected:"Slet valgte",chooseSelected:"Anvend valgte",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Tilbage til hjemmesiden"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Fejl",details:"Der opstod en fejl - venligst ",reportIt:"opret et issue på GitHub.",detailsHeading:"Detalger",privacyWarning:"Ved at oprette et issue forudfyldes det med fejlbeskeden og data til debugging.\nKontroller venligst at informationerne er korrekte og fjern eventuelle følsomme data.",recoveredEntry:{heading:"Gendannet dokument",warning:"Kopier dette et sted hen inden du navigerer væk!",copyButtonLabel:"Kopier til udklipsholder"}},settingsDropdown:{theme:void 0,logOut:"Log af"},toast:{onFailToLoadEntries:"Fejl ved indlæsning af dokumenter: %{details}",onFailToLoadDeployPreview:"Preview kunne ikke indlæses: %{details}",onFailToPersist:"Dokumentet kunne ikke gemmes: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Dokumentet kunne ikke slettes: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Status kunne ikke opdateres: %{details}",missingRequiredField:"Ups, du mangler et påkrævet felt. Udfyld de påkrævede felter før dokumentet gemmes.",entrySaved:"Dokumentet er gemt",entryDeleted:void 0,entryPublished:"Dokumentet er publiceret ",entryUnpublished:"Dokumentet er afpubliceret",onFailToPublishEntry:"Kunne ikke publicere på grund af en fejl: %{details}",onFailToUnpublishEntry:"Kunne ikke afpublicere på grund af en fejl: %{details}",entryUpdated:"Dokumentstatus er opdateret",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Upublicerede ændringer blev slettet",onFailToAuth:"%{details}",onLoggedOut:"Du er blevet logget ind, gem venligst evt. ændringer og log på igen",onBackendDown:"Den bagvedliggende service er ikke tilgængelig i øjeblikket. Se %{details} for mere information"}},workflow:{workflow:{dashboard:void 0,loading:"Indlæser dokumenter i redaktionel arbejdsgang",workflowHeading:"Redaktionel arbejdsgang",newPost:"Nyt indlæg",description:"%{smart_count} dokumenter afventer gennemsyn, %{readyCount} er klar til live. |||| %{smart_count} dokumenter afventer gennemsyn, %{readyCount} klar til go live. ",dateFormat:"D. MMMM"},workflowCard:{lastChange:"%{date} af %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"af %{author}",deleteChanges:"Slet ændringer",deleteNewEntry:"Slet nye dokumenter",publishChanges:"Publicer ændringer",publishNewEntry:"Publicer nye dokumenter"},workflowList:{onDeleteEntry:"Er du sikker på at du vil slette dette dokument?",onPublishingNotReadyEntry:'Kun dokumenter med "Klar" status kan publiceres. Træk kortet til "Klar" kolonnen for at tillade publicering.',onPublishEntry:"Er du sikker på at du vil publicere dokumentet?",draft:"Kladder",pending_review:"Til gennemsyn",pending_publish:"Klar",currentEntries:"%{smart_count} dokument |||| %{smart_count} dokumenter"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},de:{auth:{login:"Login",loggingIn:"Sie werden eingeloggt...",loginWithNetlifyIdentity:"Mit Netlify Identity einloggen",loginWithBitbucket:"Mit Bitbucket einloggen",loginWithGitHub:"Mit GitHub einloggen",loginWithGitLab:"Mit GitLab einloggen",loginWithGitea:"Mit Gitea einloggen",errors:{email:"Stellen Sie sicher, Ihre E-Mail-Adresse einzugeben.",password:"Bitte geben Sie Ihr Passwort ein.",authTitle:"Fehler beim Anmelden",authBody:"%{details}",netlifyIdentityNotFound:"Das Netlify Identity Plugin wurde nicht gefunden",identitySettings:"Identity-Einstellungen konnten nicht abgerufen werden. Stellen Sie bei der Verwendung des Git-Gateway Backends sicher, den Identity Service und das Git Gateway zu aktivieren."}},app:{header:{content:"Inhalt",workflow:"Arbeitsablauf",media:"Medien",quickAdd:"Schnellerstellung"},app:{loading:"Laden...",errorHeader:"Fehler beim Laden der CMS-Konfiguration.",configErrors:"Konfigurationsfehler",configNotFound:"KOnfiguration nicht gefunden",checkConfigYml:"Überprüfen Sie die config.yml Konfigurationsdatei.",loadingConfig:"Konfiguration laden...",waitingBackend:"Auf Server warten..."},notFoundPage:{header:"Nicht gefunden"}},collection:{sidebar:{collections:"Bereiche",allCollections:"Allen Bereichen",searchAll:"Alles durchsuchen",searchIn:"Suchen in"},collectionTop:{sortBy:"Sortieren nach",viewAs:"Anzeigen als",newButton:"Neue(r/s) %{collectionLabel}",ascending:"Aufsteigend",descending:"Absteigend",searchResults:'Suchergebnisse für "%{searchTerm}"',searchResultsInCollection:'Suchergebnisse für "%{searchTerm}" in %{collection}',filterBy:"Filtern nach",groupBy:"Gruppieren nach"},entries:{loadingEntries:"Beiträge werden geladen...",cachingEntries:"Beiträge werden zwischengespeichert...",longerLoading:"Diese Aktion kann einige Minuten in Anspruch nehmen",noEntries:"Keine Beiträge"},groups:{other:"Andere",negateLabel:"Nicht %{label}"},table:{summary:"Zusammenfassung",collection:"Bereich"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Änderungsdatum"}},notFound:"Bereich nicht gefunden"},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} ist erforderlich.",regexPattern:"%{fieldLabel} entspricht nicht dem Muster: %{pattern}.",processing:"%{fieldLabel} wird verarbeitet.",range:"%{fieldLabel} muss zwischen %{minValue} und %{maxValue} liegen.",min:"%{fieldLabel} muss größer als %{minValue} sein.",max:"%{fieldLabel} darf nicht größer als %{maxValue} sein.",rangeCount:"%{fieldLabel} muss %{minCount} bis %{maxCount} Element(e) enthalten.",rangeCountExact:"%{fieldLabel} muss exakt %{count} Element(e) enthalten.",rangeMin:"%{fieldLabel} muss mindestens %{minCount} Element(e) enthalten.",rangeMax:"%{fieldLabel} darf maximal %{maxCount} Element(e) enthalten.",invalidPath:"'%{path}' ist kein gültiger Pfad",pathExists:"Pfad '%{path}' existiert bereits",invalidColor:"Farbe '%{color}' is ungültig",invalidHexCode:"Hex Codes müssen mit einem #-Zeichen anfangen"},i18n:{writingInLocale:"Aktuelle Sprache: %{locale}",copyFromLocale:"Aus anderer Sprache übernehmen",copyFromLocaleConfirm:"Wollen Sie wirklich die Daten aus der Sprache %{locale} übernehmen?\nAlle bishergen Inhalte werden überschrieben."}},editor:{onLeavePage:"Möchten Sie diese Seite wirklich verlassen?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speichern Sie diese, bevor Sie den Status aktualisieren.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Bitte setzten die den Status vor dem Veröffentlichen auf "Abgeschlossen".',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speicheren Sie vor dem Veröffentlichen.",onPublishingTitle:void 0,onPublishingBody:"Soll dieser Beitrag wirklich veröffentlicht werden?",onUnpublishingTitle:void 0,onUnpublishingBody:"Soll die Veröffentlichung dieses Beitrags wirklich zurückgezogen werden?",onDeleteWithUnsavedChangesTitle:"Veröffentlichten Beitrag löschen?",onDeleteWithUnsavedChangesBody:"Möchten Sie diesen veröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeletePublishedEntryTitle:"Veröffentlichten Beitrag löschen?",onDeletePublishedEntryBody:"Soll dieser veröffentlichte Beitrag wirklich gelöscht werden?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Möchten Sie diesen unveröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle unveröffentlichten Änderungen werden gelöscht. Möchten Sie wirklich löschen?",loadingEntry:"Beitrag laden..."},editorInterface:{sideBySideI18n:"Parallele Übersetzungen",preview:"Vorschau",toggleI18n:"Übersetzungen",togglePreview:"Vorschau",toggleScrollSync:"Synchron scrollen"},editorToolbar:{publishing:"Veröffentlichen...",publish:"Veröffentlichen",published:"Veröffentlicht",unpublish:"Veröffentlichung zurückziehen",duplicate:"Duplizieren",unpublishing:"Veröffentlichung wird zurückgezogen...",publishAndCreateNew:"Veröffentlichen und neuen Beitrag erstellen",publishAndDuplicate:"Veröffentlichen und Beitrag duplizieren",deleteUnpublishedChanges:"Unveröffentlichte Änderungen verwerfen",deleteUnpublishedEntry:"Lösche unveröffentlichten Beitrag",deletePublishedEntry:"Lösche veröffentlichten Beitrag",deleteEntry:"Lösche Beitrag",saving:"Speichern...",save:"Speichern",statusInfoTooltipDraft:"Beitrag ist im Entwurfsstatus. Um ihn fertigzustellen und zur Überprüfung freizugeben, setzen Sie den Status auf ‘Zur Überprüfung‘.",statusInfoTooltipInReview:"Beitrag wird überprüft, keine weitere Aktion erforderlich. Sie können weitere Änderungen vornehmen, während die Überprüfung läuft.",deleting:"Löschen...",updating:"Aktualisieren...",status:"Status: %{status}",backCollection:"Zurück zu allen %{collectionLabel}",unsavedChanges:"Ungespeicherte Änderungen",changesSaved:"Änderungen gespeichert",draft:"Entwurf",inReview:"Zur Überprüfung",ready:"Abgeschlossen",publishNow:"Jetzt veröffentlichen",deployPreviewPendingButtonLabel:"Überprüfen ob eine Vorschau vorhanden ist",deployPreviewButtonLabel:"Vorschau anzeigen",deployButtonLabel:"Live ansehen",discardChanges:"Änderungen verwerfen",discardChangesTitle:"Änderungen verwerfen",discardChangesBody:"Sicher, dass Sie ungespeicherte Änderungen verwerfen wollen?"},editorWidgets:{markdown:{bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",code:"Code",codeBlock:"Codeblock",insertCodeBlock:"Codeblock einfügen",link:"Link",insertLink:"Link einfügen",paragraph:"Paragraph",headings:"Überschriften",quote:"Zitat",insertQuote:"Zitat einfügen",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",addComponent:"Komponente hinzufügen",richText:"Rich Text",markdown:"Markdown",type:"Tippen...",decreaseIndent:"Weniger einrücken",increaseIndent:"Einrücken",image:"Bild",insertImage:"Bild einfügen",table:{table:"Tabelle",deleteColumn:"Spalte entfernen",deleteRow:"Zeile entfernen",deleteTable:"Tabelle entfernen",insertColumn:"Spalte einfügen",insertRow:"Zeile einfügen",insertTable:"Tabelle einfügen"}},image:{choose:"Bild wählen",chooseMultiple:"Bilder wählen",chooseUrl:"Von URL hinzufügen",replaceUrl:"Mit URL ersetzen",promptUrl:"Bild-URL eingeben",chooseDifferent:"Anderes Bild wählen",addMore:"Bilder hinzufügen",remove:"Bild entfernen",removeAll:"Alle Bilder entfernen"},file:{choose:"Datei wählen",chooseUrl:"Von URL hinzufügen",chooseMultiple:"Dateien wählen",replaceUrl:"Mit URL ersetzen",promptUrl:"Datei-URL eingeben",chooseDifferent:"Andere Datei wählen",addMore:"Dateien hinzufügen",remove:"Datei entfernen",removeAll:"Alle Dateien entfernen"},folder:{choose:"Ordner wählen",chooseUrl:"Ordner-Pfad eingeben",chooseMultiple:"Ordner wählen",replaceUrl:"Mit Pfad ersetzen",promptUrl:"Ordner-Pfad eingeben",chooseDifferent:"Anderen Ordner wählen",addMore:"Ordner hinzufügen",remove:"Ordner entfernen",removeAll:"Alle Ordner entfernen"},unknownControl:{noControl:"Kein Bedienelement für Widget '%{widget}'."},unknownPreview:{noPreview:"Keine Vorschau für Widget '%{widget}'."},headingOptions:{headingOne:"Überschrift 1",headingTwo:"Überschrift 2",headingThree:"Überschrift 3",headingFour:"Überschrift 4",headingFive:"Überschrift 5",headingSix:"Überschrift 6"},datetime:{now:"Jetzt",invalidDateTitle:"Ungültiges Datum",invalidDateBody:"Das eingegebene Datum ist ungültig."},list:{add:"%{item} hinzufügen",addType:"%{item} hinzufügen",noValue:"Kein Wert"},keyvalue:{key:"Variable",value:"Wert",uniqueKeys:"%{keyLabel} muss einmalig sein"},code:{language:"Programmiersprache",selectLanguage:"Programmiersprache wählen"}}},mediaLibrary:{mediaLibraryCard:{draft:"Entwurf",copy:"Kopieren",copyUrl:"URL kopieren",copyPath:"Pfad kopieren",copyName:"Name kopieren",copied:"Kopiert"},mediaLibrary:{onDeleteTitle:"Ausgewähltes Medium löschen?",onDeleteBody:"Soll das ausgewählte Medium wirklich gelöscht werden?",fileTooLargeTitle:"Datei zu groß",fileTooLargeBody:"Datei zu groß.\nErlaubt sind nur Dateien bis %{size} kB.",alreadyExistsTitle:"Datei existiert bereits",alreadyExistsBody:"%{filename} existiert bereits. Soll sie überschrieben werden?"},mediaLibraryModal:{noResults:"Keine Egebnisse.",noAssetsFound:"Keine Medien gefunden.",noImagesFound:"Keine Bilder gefunden.",private:"Privat ",images:"Bilder",mediaAssets:"Medien",search:"Suchen...",uploading:"Hochladen...",upload:"Hochladen",download:"Download",deleting:"Löschen...",deleteSelected:"Ausgewähltes Element löschen",chooseSelected:"Ausgewähltes Element verwenden",dropImages:"Zum Hochladen Bilder hierher ziehen",dropFiles:"Zum Hochladen Dateien hierher ziehen"},folderSupport:{newFolder:"Neuer Ordner",createNewFolder:"Neuen Ordner erstellen",enterFolderName:"Ordnernamen eingeben...",create:"Erstellen",home:"Start",up:"Zurück",upToFolder:"Zurück zu %{folder}"}},ui:{common:{yes:"Ja",no:"Nein",okay:"OK",cancel:"Abbrechen"},default:{goBackToSite:"Zurück zur Seite"},localBackup:{hasLocalBackup:"Lokales Backup verfügbar"},errorBoundary:{title:"Fehler",details:"Ein Fehler ist aufgetreten - bitte ",reportIt:"berichte ihn.",detailsHeading:"Details",privacyWarning:"Beim Eröffnen eines Fehlerberichts werden automatisch die Fehlermeldung und Debugdaten eingefügt.\nBitte überprüfen Sie, ob die Informationen korrrekt sind und entfernen Sie ggfs. sensible Daten.",recoveredEntry:{heading:"Wiederhergestellter Beitrag",warning:"Bitte sichern Sie sich diese Informationen, bevor Sie die Seite verlassen!",copyButtonLabel:"In Zwischenablage speichern"}},settingsDropdown:{theme:void 0,logOut:"Abmelden"},toast:{onFailToLoadEntries:"Beitrag konnte nicht geladen werden: %{details}",onFailToLoadDeployPreview:"Vorschau konnte nicht geladen werden: %{details}",onFailToPersist:"Beitrag speichern fehlgeschlagen: %{details}",onFailToPersistMedia:"Speichern des Meidums fehlgeschlagen: %{details}",onFailToDelete:"Beitrag löschen fehlgeschlagen: %{details}",onFailToDeleteMedia:"Löschen des Mediums fehlgeschlagen: %{details}",onFailToUpdateStatus:"Status aktualisieren fehlgeschlagen: %{details}",missingRequiredField:"Oops, einige zwingend erforderliche Felder sind nicht ausgefüllt.",entrySaved:"Beitrag gespeichert",entryDeleted:void 0,entryPublished:"Beitrag veröffentlicht",entryUnpublished:"Beitrag nicht mehr öffentlich",onFailToPublishEntry:"Veröffentlichen fehlgeschlagen: %{details}",onFailToUnpublishEntry:"Veröffentlichung des Beitrags konnte nicht rückgängig gemacht werden: %{details}",entryUpdated:"Beitragsstatus aktualisiert",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Unveröffentlichte Änderungen verworfen",onFailToAuth:"%{details}",onLoggedOut:"Sie wurden ausgeloggt. Bitte sichern Sie Ihre Daten und melden Sie sich erneut an.",onBackendDown:"Der Server ist aktuell nicht erreichbar. Für weitere Informationen, siehe: %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Arbeitsablauf Beiträge laden",workflowHeading:"Redaktioneller Arbeitsablauf",newPost:"Neuer Beitrag",description:"%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} von %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"von %{author}",deleteChanges:"Änderungen verwerfen",deleteNewEntry:"Lösche neuen Beitrag",publishChanges:"Veröffentliche Änderungen",publishNewEntry:"Veröffentliche neuen Beitrag"},workflowList:{onDeleteEntry:"Soll dieser Beitrag wirklich gelöscht werden?",onPublishingNotReadyEntry:'Nur Beiträge im Status "Abgeschlossen" können veröffentlicht werden. Bitte ziehen Sie den Beitrag in die "Abgeschlossen" Spalte um die Veröffentlichung zu aktivieren.',onPublishEntry:"Soll dieser Beitrag wirklich veröffentlicht werden soll?",draft:"Entwurf",pending_review:"In Prüfung",pending_publish:"Abgeschlossen",currentEntries:"%{smart_count} Beitrag |||| %{smart_count} Beiträge"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},en:{auth:{login:"Login",loggingIn:"Logging in...",loginWithNetlifyIdentity:"Login with Netlify Identity",loginWithBitbucket:"Login with Bitbucket",loginWithGitHub:"Login with GitHub",loginWithGitLab:"Login with GitLab",loginWithGitea:"Login with Gitea",errors:{email:"Make sure to enter your email.",password:"Please enter your password.",authTitle:"Error logging in",authBody:"%{details}",netlifyIdentityNotFound:"Netlify Identity plugin not found",identitySettings:"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."}},app:{header:{content:"Contents",workflow:"Workflow",media:"Media",quickAdd:"Quick add"},app:{loading:"Loading...",errorHeader:"Error loading the CMS configuration",configErrors:"Config Errors",configNotFound:"Config not found",checkConfigYml:"Check your config.yml file.",loadingConfig:"Loading configuration...",waitingBackend:"Waiting for backend..."},notFoundPage:{header:"Not Found"}},collection:{sidebar:{collections:"Collections",allCollections:"All Collections",searchAll:"Search all",searchIn:"Search in"},collectionTop:{sortBy:"Sort by",viewAs:"View as",newButton:"New %{collectionLabel}",ascending:"Ascending",descending:"Descending",searchResults:'Search Results for "%{searchTerm}"',searchResultsInCollection:'Search Results for "%{searchTerm}" in %{collection}',filterBy:"Filter by",groupBy:"Group by"},entries:{loadingEntries:"Loading Entries...",cachingEntries:"Caching Entries...",longerLoading:"This might take several minutes",noEntries:"No Entries"},groups:{other:"Other",negateLabel:"Not %{label}"},table:{summary:"Summary",collection:"Collection"},defaultFields:{author:{label:"Author"},updatedOn:{label:"Updated On"}},notFound:"Collection not found"},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} is required.",regexPattern:"%{fieldLabel} didn't match the pattern: %{pattern}.",processing:"%{fieldLabel} is processing.",range:"%{fieldLabel} must be between %{minValue} and %{maxValue}.",min:"%{fieldLabel} must be at least %{minValue}.",max:"%{fieldLabel} must be %{maxValue} or less.",rangeCount:"%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).",rangeCountExact:"%{fieldLabel} must have exactly %{count} item(s).",rangeMin:"%{fieldLabel} must have at least %{minCount} item(s).",rangeMax:"%{fieldLabel} must have %{maxCount} or less item(s).",invalidPath:"'%{path}' is not a valid path.",pathExists:"Path '%{path}' already exists.",invalidColor:"Color '%{color}' is invalid.",invalidHexCode:"Hex codes must start with a # sign."},i18n:{writingInLocale:"Writing in %{locale}",copyFromLocale:"Fill in from another locale",copyFromLocaleConfirm:"Do you want to fill in data from %{locale} locale?\nAll existing content will be overwritten."}},editor:{onLeavePage:"Are you sure you want to leave this page?",onUpdatingWithUnsavedChangesTitle:"Unsaved changes",onUpdatingWithUnsavedChangesBody:"You have unsaved changes, please save before updating status.",onPublishingNotReadyTitle:"Not ready to publish",onPublishingNotReadyBody:'Please update status to "Ready" before publishing.',onPublishingWithUnsavedChangesTitle:"Unsaved changes",onPublishingWithUnsavedChangesBody:"You have unsaved changes, please save before publishing.",onPublishingTitle:"Publish entry?",onPublishingBody:"Are you sure you want to publish this entry?",onUnpublishingTitle:"Unpublish entry?",onUnpublishingBody:"Are you sure you want to unpublish this entry?",onDeleteWithUnsavedChangesTitle:"Delete this published entry?",onDeleteWithUnsavedChangesBody:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntryTitle:"Delete this published entry?",onDeletePublishedEntryBody:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:"Delete unpublished changes?",onDeleteUnpublishedChangesWithUnsavedChangesBody:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChangesTitle:"Delete unpublished changes?",onDeleteUnpublishedChangesBody:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"Loading entry..."},editorInterface:{sideBySideI18n:"I18n Side by Side",preview:"Preview",toggleI18n:"Toggle i18n",togglePreview:"Toggle preview",toggleScrollSync:"Sync scrolling"},editorToolbar:{publishing:"Publishing...",publish:"Publish",published:"Published",unpublish:"Unpublish",duplicate:"Duplicate",unpublishing:"Unpublishing...",publishAndCreateNew:"Publish and create new",publishAndDuplicate:"Publish and duplicate",deleteUnpublishedChanges:"Delete unpublished changes",deleteUnpublishedEntry:"Delete unpublished entry",deletePublishedEntry:"Delete published entry",deleteEntry:"Delete entry",saving:"Saving...",save:"Save",statusInfoTooltipDraft:"Entry status is set to draft. To finalize and submit it for review, set the status to �In review�",statusInfoTooltipInReview:"Entry is being reviewed, no further actions are required. However, you can still make additional changes while it is being reviewed.",deleting:"Deleting...",updating:"Updating...",status:"Status: %{status}",backCollection:" Writing in %{collectionLabel} collection",unsavedChanges:"Unsaved Changes",changesSaved:"Changes saved",draft:"Draft",inReview:"In review",ready:"Ready",publishNow:"Publish now",deployPreviewPendingButtonLabel:"Check for Preview",deployPreviewButtonLabel:"View Preview",deployButtonLabel:"View Live",discardChanges:"Discard changes",discardChangesTitle:"Discard changes",discardChangesBody:"Are you sure you want to discard the unsaved changed?"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",code:"Code",codeBlock:"Code block",insertCodeBlock:"Insert code block",link:"Link",insertLink:"Insert link",paragraph:"Paragraph",headings:"Headings",quote:"Quote",insertQuote:"Insert blockquote",bulletedList:"Bulleted List",numberedList:"Numbered List",addComponent:"Add Component",richText:"Rich Text",markdown:"Markdown",type:"Type...",decreaseIndent:"Decrease indent",increaseIndent:"Increase indent",image:"Image",insertImage:"Insert image",table:{table:"Table",deleteColumn:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",insertColumn:"Insert column",insertRow:"Insert row",insertTable:"Insert table"}},image:{choose:"Choose an image",chooseMultiple:"Choose images",chooseUrl:"Insert from URL",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the image",chooseDifferent:"Choose different image",addMore:"Add more images",remove:"Remove image",removeAll:"Remove all images"},file:{choose:"Choose a file",chooseUrl:"Insert from URL",chooseMultiple:"Choose files",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the file",chooseDifferent:"Choose different file",addMore:"Add more files",remove:"Remove file",removeAll:"Remove all files"},folder:{choose:"Choose a folder",chooseUrl:"Insert folder path",chooseMultiple:"Choose folders",replaceUrl:"Replace with path",promptUrl:"Enter path of the folder",chooseDifferent:"Choose different folder",addMore:"Add more folders",remove:"Remove folder",removeAll:"Remove all folders"},unknownControl:{noControl:"No control for widget '%{widget}'."},unknownPreview:{noPreview:"No preview for widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Now",invalidDateTitle:"Invalid date",invalidDateBody:"The date you entered is invalid."},list:{add:"Add %{item}",addType:"Add %{item}",noValue:"No value"},keyvalue:{key:"Key",value:"Value",uniqueKeys:"%{keyLabel} must be unique"},code:{language:"Language",selectLanguage:"Select language"}}},mediaLibrary:{mediaLibraryCard:{draft:"Draft",copy:"Copy",copyUrl:"Copy URL",copyPath:"Copy Path",copyName:"Copy Name",copied:"Copied"},mediaLibrary:{onDeleteTitle:"Delete selected media?",onDeleteBody:"Are you sure you want to delete selected media?",fileTooLargeTitle:"File too large",fileTooLargeBody:"File too large.\nConfigured to not allow files greater than %{size} kB.",alreadyExistsTitle:"File already exists",alreadyExistsBody:"%{filename} already exists. Do you want to replace it?"},mediaLibraryModal:{noResults:"No results.",noAssetsFound:"No assets found.",noImagesFound:"No images found.",private:"Private ",images:"Images",mediaAssets:"Media assets",search:"Search...",uploading:"Uploading...",upload:"Upload",download:"Download",deleting:"Deleting...",deleteSelected:"Delete selected",chooseSelected:"Choose selected",dropImages:"Drop images to upload",dropFiles:"Drop files to upload"},folderSupport:{newFolder:"New folder",createNewFolder:"Create new folder",enterFolderName:"Enter folder name...",create:"Create",home:"Home",up:"Up",upToFolder:"Up to %{folder}"}},ui:{common:{yes:"Yes",no:"No",okay:"OK",cancel:"Cancel"},default:{goBackToSite:"Go back to site"},localBackup:{hasLocalBackup:"Has local backup"},errorBoundary:{title:"Error",details:"There's been an error - please ",reportIt:"open an issue on GitHub.",detailsHeading:"Details",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Recovered document",warning:"Please copy/paste this somewhere before navigating away!",copyButtonLabel:"Copy to clipboard"}},settingsDropdown:{theme:"Theme",logOut:"Log Out"},toast:{onFailToLoadEntries:"Failed to load entry: %{details}",onFailToLoadDeployPreview:"Failed to load preview: %{details}",onFailToPersist:"Failed to persist entry: %{details}",onFailToPersistMedia:"Failed to persist media: %{details}",onFailToDelete:"Failed to delete entry: %{details}",onFailToDeleteMedia:"Failed to delete media: %{details}",onFailToUpdateStatus:"Failed to update status: %{details}",missingRequiredField:"Oops, you've missed a required field. Please complete before saving.",entrySaved:"Entry saved",entryDeleted:"Entry delete",entryPublished:"Entry published",entryUnpublished:"Entry unpublished",onFailToPublishEntry:"Failed to publish: %{details}",onFailToUnpublishEntry:"Failed to unpublish entry: %{details}",entryUpdated:"Entry status updated",onDeletePublishedEntry:"Published entry deleted",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:"You have been logged out, please back up any data and login again",onBackendDown:"The backend service is experiencing an outage. See %{details} for more information"}},workflow:{workflow:{dashboard:"Dashboard",loading:"Loading Editorial Workflow Entries",workflowHeading:"Editorial Workflow",newPost:"New Post",description:"%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Delete changes",deleteNewEntry:"Delete new entry",publishChanges:"Publish changes",publishNewEntry:"Publish new entry"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',onPublishEntry:"Are you sure you want to publish this entry?",draft:"Drafts",pending_review:"In Review",pending_publish:"Ready",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"},openAuthoring:{forkRequired:"Open Authoring is enabled. We need to use a fork on your github account. (If a fork already exists, we'll use that.)",forkRepo:"Fork the repo",markReadyForReview:"Mark Ready for Review"}}},es:{auth:{login:"Iniciar sesión",loggingIn:"Iniciando sesión...",loginWithNetlifyIdentity:"Iniciar sesión con Netlify Identity",loginWithBitbucket:"Iniciar sesión con Bitbucket",loginWithGitHub:"Iniciar sesión con GitHub",loginWithGitLab:"Iniciar sesión con GitLab",loginWithGitea:"Iniciar sesión con Gitea",errors:{email:"Asegúrate de introducir tu correo electrónico.",password:"Por favor introduce tu contraseña.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"No se pudo acceder a la configuración de Identity. Cuando uses el backend git-gateway asegurate de habilitar el servicio Identity y Git Gateway."}},app:{header:{content:"Contenido",workflow:"Flujo Editorial",media:"Medios",quickAdd:"Añadir rápido"},app:{loading:"Cargando...",errorHeader:"Error al cargar la configuración del CMS",configErrors:"Errores de configuración",configNotFound:void 0,checkConfigYml:"Compruebe el archivo config.yml.",loadingConfig:"Cargando configuración....",waitingBackend:"Esperando al servidor..."},notFoundPage:{header:"No encontrado"}},collection:{sidebar:{collections:"Colecciones",allCollections:void 0,searchAll:"Buscar todas",searchIn:void 0},collectionTop:{sortBy:"Ordenar por",viewAs:"Ver como",newButton:"Nuevo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Cargando entradas",cachingEntries:"Almacenando entradas en caché",longerLoading:"Esto puede tardar varios minutos",noEntries:"Ninguna entrada"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizado en"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} es obligatorio.",regexPattern:"%{fieldLabel} no coincide con el patrón: %{pattern}.",processing:"%{fieldLabel} está procesando.",range:"%{fieldLabel} debe estar entre %{minValue} y %{maxValue}.",min:"%{fieldLabel} debe ser por lo menos %{minValue}.",max:"%{fieldLabel} debe ser %{maxValue} o menos.",rangeCount:"%{fieldLabel} debe tener entre %{minCount} y %{maxCount} elemento(s).",rangeCountExact:"%{fieldLabel} debe tener exactamente %{count} elemento(s).",rangeMin:"%{fieldLabel} debe ser por lo menos %{minCount} elemento(s).",rangeMax:"%{fieldLabel} debe ser %{maxCount} o menos elemento(s).",invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"¿Estás seguro de que quieres dejar esta página?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Tiene cambios no guardados, por favor, guárdelos antes de actualizar el estado.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Por favor, actualice el estado a "Ready" antes de publicar.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Tiene cambios no guardados, por favor guárdelos antes de publicarlos.",onPublishingTitle:void 0,onPublishingBody:"¿Estás seguro de que quieres publicar esta entrada?",onUnpublishingTitle:void 0,onUnpublishingBody:"¿Estás seguro de que quieres retirar esta entrada?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"¿Está seguro de que desea eliminar esta entrada publicada, así como los cambios no guardados de la sesión actual?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"¿Estás seguro de que quieres borrar esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Esto eliminará todos los cambios no publicados de esta entrada, así como los cambios no guardados de la sesión actual. ¿Todavía quieres borrar?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Todos los cambios no publicados en esta entrada serán eliminados. ¿Todavía quieres borrar?",loadingEntry:"Cargando entrada..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Retirar",duplicate:"Duplicar",unpublishing:"Retirando...",publishAndCreateNew:"Publicar y crear nuevo",publishAndDuplicate:"Publicar y duplicar",deleteUnpublishedChanges:"Eliminar cambios no publicados",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardando...",save:"Guardar",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Eliminando...",updating:"Actualizando...",status:"Estado: %{status}",backCollection:" Escribiendo en la colección %{collectionLabel}",unsavedChanges:"Cambios no guardados",changesSaved:"Cambios guardados",draft:"Borrador",inReview:"En revisión",ready:"Listo",publishNow:"Publicar ahora",deployPreviewPendingButtonLabel:"Comprobar Vista Previa",deployPreviewButtonLabel:"Ver Vista Previa",deployButtonLabel:"Ver publicación",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Texto enriquecido",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Elige una imagen",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Elige una imagen diferente",addMore:void 0,remove:"Quita la imagen",removeAll:void 0},file:{choose:"Escoge un archivo",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Elige un archivo diferente",addMore:void 0,remove:"Remover archivo",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"No existe un control para el widget '%{widget}'."},unknownPreview:{noPreview:"No existe una vista previa para el widget '%{widget}'."},headingOptions:{headingOne:"Encabezado 1",headingTwo:"Encabezado 2",headingThree:"Encabezado 3",headingFour:"Encabezado 4",headingFive:"Encabezado 5",headingSix:"Encabezado 6"},datetime:{now:"Ahora",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Borrador",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"¿Está seguro de que desea eliminar el archivo seleccionado?",fileTooLargeTitle:void 0,fileTooLargeBody:"Archivo muy pesado.\nConfigurado para no permitir archivos más pesados que %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Sin resultados.",noAssetsFound:"Archivos no encontrados.",noImagesFound:"Imágenes no encontradas.",private:"Privado ",images:"Imágenes",mediaAssets:"Archivos multimedia",search:"Buscar...",uploading:"Subiendo...",upload:"Subir nuevo",download:"Descargar",deleting:"Eliminando...",deleteSelected:"Eliminar selección",chooseSelected:"Confirmar selección",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Regresar al sitio"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Error",details:"Se ha producido un error - por favor ",reportIt:"infórmenos de ello.",detailsHeading:"Detalles",privacyWarning:"Abrir un reporte lo rellena previamente con el mensaje de error y los datos de depuración.\nPor favor verifica que la información es correcta y elimina cualquier dato sensible.",recoveredEntry:{heading:"Documento recuperado",warning:"¡Por favor, copie/pegue esto en algún lugar antes de ir a otra página!",copyButtonLabel:"Copiar al portapapeles"}},settingsDropdown:{theme:void 0,logOut:"Cerrar sesión"},toast:{onFailToLoadEntries:"No se ha podido cargar la entrada: %{details}",onFailToLoadDeployPreview:"No se ha podido cargar la vista previa: %{details}",onFailToPersist:"No se ha podido guardar la entrada: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"No se ha podido borrar la entrada: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"No se ha podido actualizar el estado: %{details}",missingRequiredField:"Oops, no ha rellenado un campo obligatorio. Por favor, rellénelo antes de guardar.",entrySaved:"Entrada guardada",entryDeleted:void 0,entryPublished:"Entrada publicada",entryUnpublished:"Entrada retirada",onFailToPublishEntry:"No se ha podido publicar: %{details}",onFailToUnpublishEntry:"No se ha podido retirar la entrada: %{details}",entryUpdated:"Estado de entrada actualizado",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Cambios no publicados eliminados",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Cargando Entradas del Flujo Editorial",workflowHeading:"Flujo Editorial",newPost:"Nuevo artículo",description:"%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Eliminar cambios",deleteNewEntry:"Eliminar nueva entrada",publishChanges:"Publicar cambios",publishNewEntry:"Publicar nueva entrada"},workflowList:{onDeleteEntry:"¿Está seguro de que quiere borrar esta entrada?",onPublishingNotReadyEntry:'Sólo se pueden publicar los elementos con el estado "Listo". Por favor, arrastre la tarjeta hasta la columna "Listo" para permitir la publicación.',onPublishEntry:"¿Estás seguro de que quieres publicar esta entrada?",draft:"Borradores",pending_review:"En revisión",pending_publish:"Listo",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ca:{auth:{login:"Iniciar sessió",loggingIn:"Iniciant sessió...",loginWithNetlifyIdentity:"Iniciar sessió amb l'identitat de Netlify",loginWithBitbucket:"Iniciar sessió amb Bitbucket",loginWithGitHub:"Iniciar sessió amb GitHub",loginWithGitLab:"Iniciar sessió amb GitLab",loginWithGitea:"Iniciar sessió amb Gitea",errors:{email:"Comprova que has escrit el teu email.",password:"Si us plau escriu la teva contrasenya.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"No s'ha pogut obtenir accés a les configuracions d'identitat. Quan feu servir backend de git-gateway, assegureu-vos que activeu el servei d’identitat i la passarel·la de Git."}},app:{header:{content:"Contingut",workflow:"Flux Editorial",media:"Multimèdia",quickAdd:"Afegir"},app:{loading:"Carregant...",errorHeader:"Error al carregar la configuració del CMS",configErrors:"Errors de configuració",configNotFound:void 0,checkConfigYml:"Comprovi l'arxiu config.yml.",loadingConfig:"Carregant configuració....",waitingBackend:"Esperant al servidor..."},notFoundPage:{header:"No trobat"}},collection:{sidebar:{collections:"Col·leccions",allCollections:"Totes les col·leccions",searchAll:"Buscar tots",searchIn:"Buscar a"},collectionTop:{sortBy:"Ordenar per",viewAs:"Veure com",newButton:"Nou %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Buscar resultats per "%{searchTerm}"',searchResultsInCollection:'Buscar resultats per "%{searchTerm}" a %{collection}',filterBy:"Filtrar per",groupBy:"Agrupar per"},entries:{loadingEntries:"Carregant entrades",cachingEntries:"Emmagatzemant entrades a la caché",longerLoading:"Això podria tardar uns minuts",noEntries:"Cap entrada"},groups:{other:"Altre",negateLabel:"No %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualitzat el"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} és obligatori.",regexPattern:"%{fieldLabel} no coincideix amb el patró: %{pattern}.",processing:"%{fieldLabel} està processant.",range:"%{fieldLabel} ha d'estar entre %{minValue} i %{maxValue}.",min:"%{fieldLabel} ha ser com a mínim %{minValue}.",max:"%{fieldLabel} ha de ser %{maxValue} o més.",rangeCount:"%{fieldLabel} ha de tenir entre %{minCount} i %{maxCount} element(s).",rangeCountExact:"%{fieldLabel} ha de tenir exactament %{count} element(s).",rangeMin:"%{fieldLabel} ha de tenir com a mínim %{minCount} d'element(s).",rangeMax:"%{fieldLabel} ha de ser %{maxCount} o inferior.",invalidPath:"'%{path}' no és una ruta valida",pathExists:"'%{path}' ja existeix",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Escriure en %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Estàs segur que vols deixar aquesta pàgina?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Tens canvis no guardats, si us plau, guarda'ls abans d'actualitzar l'estat.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Si us plau, actualitza l\'estat a "Llest" abans de publicar.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Tens canvis no guardats, si us plau, guarda'ls abans de publicar-los.",onPublishingTitle:void 0,onPublishingBody:"Estàs segur que vols publicar aquesta entrada?",onUnpublishingTitle:void 0,onUnpublishingBody:"Estàs segur que vols esborrar aquesta entrada?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Està segur que vol eliminar aquesta entrada publicada, així com els canvis no guardats de la sessió actual?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Està segur que vol eliminar aquesta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Això eliminarà tots els canvis no publicats d'aquesta entrada així com els canvis no guardats de la sessió actual. Encara vol procedir?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Tots els canvis no publicats en aquesta entrada seràn esborrats. Encara els vol eliminar?",loadingEntry:"Carregant entrada..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Mostrar/Amagar traduccions",togglePreview:"Mostrar/Amagar previsualització",toggleScrollSync:void 0},editorToolbar:{publishing:"Publicant...",publish:"Publicar",published:"Publicat",unpublish:"Despublicar",duplicate:"Duplicar",unpublishing:"Despublicant...",publishAndCreateNew:"Publicar i crear de nou",publishAndDuplicate:"Publica i duplica",deleteUnpublishedChanges:"Eliminar canvis no publicats",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardant...",save:"Guardar",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Eliminant...",updating:"Actualizant...",status:"Estat: %{status}",backCollection:"Escrivint a la colecció %{collectionLabel}",unsavedChanges:"Canvis no guardats",changesSaved:"Canvis guardats",draft:"Esborrany",inReview:"En revisió",ready:"Llest",publishNow:"Publicar ara",deployPreviewPendingButtonLabel:"Comprovar Vista Prèvia",deployPreviewButtonLabel:"Veure Vista Prèvia",deployButtonLabel:"Veure publicació",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Negreta",italic:"Cursiva",strikethrough:void 0,code:"Codi",codeBlock:void 0,insertCodeBlock:void 0,link:"Enllaç",insertLink:void 0,paragraph:void 0,headings:"Encapçalaments",quote:void 0,insertQuote:void 0,bulletedList:"Llista",numberedList:"Llista numèrica",addComponent:"Afegir component",richText:"Text enriquit",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Escull una imatge",chooseMultiple:void 0,chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de la imatge",chooseDifferent:"Escull una imatge diferent",addMore:void 0,remove:"Treu la imatge",removeAll:void 0},file:{choose:"Escull un arxiu",chooseUrl:"Introdueix una URL",chooseMultiple:void 0,replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de l'arxiu",chooseDifferent:"Escull un arxiu diferent",addMore:void 0,remove:"Esborrar arxiu",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"No existeix un control per al widget '%{widget}'."},unknownPreview:{noPreview:"No existeix una vista prèvia per al widget '%{widget}'."},headingOptions:{headingOne:"Encapçalament 1",headingTwo:"Encapçalament 2",headingThree:"Encapçalament 3",headingFour:"Encapçalament 4",headingFive:"Encapçalament 5",headingSix:"Encapçalament 6"},datetime:{now:"Ara",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Esborrany",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar path",copyName:"Copiar nom",copied:"Copiat"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Està segur de que vol eliminar el mitjà seleccionat?",fileTooLargeTitle:void 0,fileTooLargeBody:"El fitxer és massa gran.\nLa configuració no permet fitxers més grans de %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Sense resultats.",noAssetsFound:"Arxius no trobats.",noImagesFound:"Imatges no trobades.",private:"Privat",images:"Imatges",mediaAssets:"Arxius multimèdia",search:"Buscar...",uploading:"Penjant...",upload:"Penjar nou",download:"Descarregar",deleting:"Eliminant...",deleteSelected:"Eliminar selecció",chooseSelected:"Confirmar selecció",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Torna enrere al lloc"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Error",details:"S'ha produït un error - si us plau ",reportIt:"Informa'ns d'això a GitHub.",detailsHeading:"Detalls",privacyWarning:void 0,recoveredEntry:{heading:"Document recuperat",warning:"Si us plau, copiï/enganxi això en algun lloc abans de navegar a una altre pàgina!",copyButtonLabel:"Copiar al porta-retalls"}},settingsDropdown:{theme:void 0,logOut:"Tancar sessió"},toast:{onFailToLoadEntries:"No s'ha ha pogut carregar l'entrada: %{details}",onFailToLoadDeployPreview:"No s'ha pogut carregar la vista prèvia: %{details}",onFailToPersist:"No s'ha pogut guardar l'entrada: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"No s'ha pogut eliminar l'entrada: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"No s'ha pogut actualitzar l'estat: %{details}",missingRequiredField:"Ups, no ha omplert un camp obligatori. Si us plau, ompli'l abans de guardar.",entrySaved:"Entrada guardada",entryDeleted:void 0,entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"No s'ha pogut publicar: %{details}",onFailToUnpublishEntry:"No s'ha pogut despublicar l'entrada: %{details}",entryUpdated:"Estat de l'entrada actualitzat",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Canvis no publicats eliminats",onFailToAuth:"%{details}",onLoggedOut:"La teva sessió ha estat tancada. Si us plau, torna a iniciar-la",onBackendDown:"El servidor està patint problemes. Consulta %{details} per a més informació"}},workflow:{workflow:{dashboard:void 0,loading:"Carregant Entradas del Flux Editorial",workflowHeading:"Flux Editorial",newPost:"Nou article",description:"%{smart_count} entrada esperant revisió, %{readyCount} llesta per a publicar |||| %{smart_count} entrades esperant revisió, %{readyCount} llestes per a publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} per %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"per %{author}",deleteChanges:"Eliminar canvis",deleteNewEntry:"Eliminar nova entrada",publishChanges:"Publicar canvis",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Està segur que vol borrar aquesta entrada?",onPublishingNotReadyEntry:'Només es poden publicar elements amb estat "Llest". Si us plau, arrossegui la targeta fins la columna "Llest" per a permetre\'n la publicació',onPublishEntry:"Està segur que vol publicar aquesta entrada?",draft:"Esborranys",pending_review:"En revisió",pending_publish:"Llest",currentEntries:"%{smart_count} entrada |||| %{smart_count} entrades"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},fr:{auth:{login:"Se connecter",loggingIn:"Connexion en cours...",loginWithNetlifyIdentity:"Se connecter avec Netlify Identity",loginWithBitbucket:"Se connecter avec Bitbucket",loginWithGitHub:"Se connecter avec GitHub",loginWithGitLab:"Se connecter avec GitLab",loginWithGitea:"Se connecter avec Gitea",errors:{email:"Assurez-vous d'avoir entré votre email.",password:"Merci de saisir votre mot de passe.",authTitle:"Erreur de connexion",authBody:"%{details}",netlifyIdentityNotFound:"plugin Netlify Identity non trouvé",identitySettings:"Impossible d'accéder aux paramètres d'identité. Si vous utilisez le backend git-gateway, merci de vous assurer que vous avez bien activé le service Identity et la passerelle Git."}},app:{header:{content:"Contenus",workflow:"Flux",media:"Media",quickAdd:"Ajout rapide"},app:{loading:"Chargement...",errorHeader:"Erreur au chargement de la configuration du CMS",configErrors:"Erreurs de configuration",configNotFound:"Configuration non trouvée",checkConfigYml:"Vérifiez votre fichier config.yml.",loadingConfig:"Chargement de la configuration...",waitingBackend:"En attente du serveur..."},notFoundPage:{header:"Introuvable"}},collection:{sidebar:{collections:"Collections",allCollections:"Toutes les collections",searchAll:"Tout rechercher",searchIn:"Rechercher dans"},collectionTop:{sortBy:"Trier par",viewAs:"Voir comme",newButton:"Créer une entrée de type %{collectionLabel}",ascending:"Croissant",descending:"Décroissant",searchResults:'Résultats de la recherche pour "%{searchTerm}"',searchResultsInCollection:'Résultats de la recherche pour "%{searchTerm}" dans %{collection}',filterBy:"Filtrer par",groupBy:"Grouper par"},entries:{loadingEntries:"Chargement des entrées",cachingEntries:"Mise en cache des entrées",longerLoading:"Cela peut prendre quelques minutes",noEntries:"Aucune entrée"},groups:{other:"Autre",negateLabel:"Non %{label}"},table:{summary:"Résumé",collection:"Collection"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Mis à jour le"}},notFound:"Collection non trouvée"},editor:{editorControl:{field:{optional:"optionnel"}},editorControlPane:{widget:{required:"Le champ %{fieldLabel} est requis.",regexPattern:"Le champ %{fieldLabel} ne correspond pas au schéma: %{pattern}.",processing:"Le champ %{fieldLabel} est en cours de traitement.",range:"Le champ %{fieldLabel} doit être compris entre %{minValue} et %{maxValue}.",min:"Le champ %{fieldLabel} doit avoir une valeur de %{minValue} ou plus.",max:"Le champ %{fieldLabel} doit avoir une valeur de %{maxValue} ou moins.",rangeCount:"%{fieldLabel} doit avoir entre %{minCount} et %{maxCount} élément(s).",rangeCountExact:"%{fieldLabel} doit avoir exactement %{count} éléments(s).",rangeMin:"%{fieldLabel} doit avoir au moins %{minCount} éléments(s).",rangeMax:"%{fieldLabel} doit avoir %{maxCount} éléments(s) ou moins.",invalidPath:"'%{path}' n'est pas un chemin valide",pathExists:"Le chemin '%{path}' existe déjà",invalidColor:"La couleur '%{color}' n'est pas valide.",invalidHexCode:"Les codes hexadécimaux doivent être préfixés par un signe #."},i18n:{writingInLocale:"Écrire en %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Voulez-vous vraiment quitter cette page ?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Veuillez enregistrer vos modifications avant de mettre à jour le statut.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Veuillez mettre à jour le statut à "Prêt" avant de publier.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Veuillez enregistrer vos modifications avant de publier.",onPublishingTitle:void 0,onPublishingBody:"Voulez-vous vraiment publier cette entrée ?",onUnpublishingTitle:void 0,onUnpublishingBody:"Voulez-vous vraiment dépublier cette entrée ?",onDeleteWithUnsavedChangesTitle:"Supprimer cette entrée publiée ?",onDeleteWithUnsavedChangesBody:"Voulez-vous vraiment supprimer cette entrée publiée ainsi que vos modifications non enregistrées de cette session ?",onDeletePublishedEntryTitle:"Supprimer cette entrée publiée ?",onDeletePublishedEntryBody:"Voulez-vous vraiment supprimer cette entrée publiée ?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Ceci supprimera toutes les modifications non publiées de cette entrée ainsi que vos modifications non enregistrées de cette session. Voulez-vous toujours supprimer ?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Toutes les modifications non publiées de cette entrée seront supprimées. Voulez-vous toujours supprimer ?",loadingEntry:"Chargement de l'entrée..."},editorInterface:{sideBySideI18n:"I18n Côte à Côte",preview:"Aperçu",toggleI18n:"Édition multilingue",togglePreview:"Aperçu",toggleScrollSync:"Défilement synchronisé"},editorToolbar:{publishing:"Publication...",publish:"Publier",published:"Publiée",unpublish:"Dépublier",duplicate:"Dupliquer",unpublishing:"Dépublication...",publishAndCreateNew:"Publier et créer une nouvelle entrée",publishAndDuplicate:"Publier et dupliquer",deleteUnpublishedChanges:"Supprimer les modications non publiées",deleteUnpublishedEntry:"Supprimer l'entrée non publiée",deletePublishedEntry:"Supprimer l'entrée publiée",deleteEntry:"Supprimer l'entrée",saving:"Enregistrement...",save:"Enregistrer",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Suppression...",updating:"Mise à jour...",status:"Statut: %{status}",backCollection:" Écriture dans la collection %{collectionLabel}",unsavedChanges:"Modifications non enregistrées",changesSaved:"Modifications enregistrées",draft:"Brouillon",inReview:"En cours de révision",ready:"Prêt",publishNow:"Publier maintenant",deployPreviewPendingButtonLabel:"Vérifier l'aperçu",deployPreviewButtonLabel:"Voir l'aperçu",deployButtonLabel:"Voir en direct",discardChanges:"Abandonner les modifications",discardChangesTitle:"Abandonner les modifications",discardChangesBody:"Voulez-vous vraiment supprimer vos modifications non enregistrées ?"},editorWidgets:{markdown:{bold:"Gras",italic:"Italique",strikethrough:void 0,code:"Code",codeBlock:void 0,insertCodeBlock:void 0,link:"Lien",insertLink:void 0,paragraph:void 0,headings:"Titres",quote:"Citation",insertQuote:void 0,bulletedList:"Liste à puces",numberedList:"Liste numérotée",addComponent:"Ajouter un composant",richText:"Texte enrichi",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Choisir une image",chooseMultiple:"Choisir des images",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web de l'image",chooseDifferent:"Choisir une image différente",addMore:"Ajouter plus d'images",remove:"Supprimer l'image",removeAll:"Supprimer toutes les images"},file:{choose:"Choisir un fichier",chooseUrl:"Insérer depuis une adresse web",chooseMultiple:"Choisir des fichiers",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web du fichier",chooseDifferent:"Choisir un fichier différent",addMore:"Ajouter plus de fichiers",remove:"Effacer le fichier",removeAll:"Effacer tous les fichiers"},folder:{choose:"Choisir un dossier",chooseUrl:"Insérer le chemin du dossier",chooseMultiple:"Choisir des dossiers",replaceUrl:"Remplacer par un chemin",promptUrl:"Entrer le chemin du dossier",chooseDifferent:"Choisir un dossier différent",addMore:"Ajouter plus de dossiers",remove:"Supprimer le dossier",removeAll:"Supprimer tous les dossiers"},unknownControl:{noControl:"Pas de contrôle pour le gadget '%{widget}'."},unknownPreview:{noPreview:"Pas d'aperçu pour le gadget '%{widget}'."},headingOptions:{headingOne:"Titre 1",headingTwo:"Titre 2",headingThree:"Titre 3",headingFour:"Titre 4",headingFive:"Titre 5",headingSix:"Titre 6"},datetime:{now:"Maintenant",invalidDateTitle:"Date invalide",invalidDateBody:"La date que vous avez saisi est invalide."},list:{add:"Ajouter %{item}",addType:"Ajouter une entrée de type %{item}",noValue:"Pas de valeur"},keyvalue:{key:"Clé",value:"Valeur",uniqueKeys:"%{keyLabel} doit être unique"},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Brouillon",copy:"Copier",copyUrl:"Copier l'adresse web",copyPath:"Copier le chemin d'accès",copyName:"Copier le nom",copied:"Copié"},mediaLibrary:{onDeleteTitle:"Supprimer la ressource sélectionné ?",onDeleteBody:"Voulez-vous vraiment supprimer la ressource sélectionné ?",fileTooLargeTitle:"Fichier trop volumineux",fileTooLargeBody:"Le fichier est trop volumineux.\nL'instance est configurée pour bloquer les envois de plus de %{size} kB.",alreadyExistsTitle:"Fichier déjà existant",alreadyExistsBody:"%{filename} existe déjà. Voulez-vous le remplacer ?"},mediaLibraryModal:{noResults:"Aucun résultat.",noAssetsFound:"Aucune ressource trouvée.",noImagesFound:"Aucune image trouvée.",private:"Privé ",images:"Images",mediaAssets:"Ressources",search:"Recherche...",uploading:"Téléversement...",upload:"Téléverser une nouvelle ressource",download:"Télécharger",deleting:"Suppression...",deleteSelected:"Supprimer les éléments sélectionnés",chooseSelected:"Choisir les éléments sélectionnés",dropImages:"Déposer les images à téléverser",dropFiles:"Déposer les fichiers à téléverser"},folderSupport:{newFolder:"Nouveau dossier",createNewFolder:"Créer un nouveau dossier",enterFolderName:"Entrer le nom du dossier",create:void 0,home:"Accueil",up:"Remonter",upToFolder:"Remonter vers %{folder}"}},ui:{common:{yes:"Oui",no:"Non",okay:"OK",cancel:void 0},default:{goBackToSite:"Retourner sur le site"},localBackup:{hasLocalBackup:"A une sauvegarde locale"},errorBoundary:{title:"Erreur",details:"Une erreur est survenue, veuillez ",reportIt:"la signaler sur GitHub.",detailsHeading:"Détails",privacyWarning:"Ouvrir une issue la préremplie avec le message d'erreur et des données de déboggage.\nMerci de vérifier l'exactitude des informations et de supprimer toute donnée sensible si nécessaire.",recoveredEntry:{heading:"Document récupéré",warning:"Veuillez copier/coller ceci quelque part avant de naviguer ailleurs!",copyButtonLabel:"Copier dans le presse-papier"}},settingsDropdown:{theme:void 0,logOut:"Déconnexion"},toast:{onFailToLoadEntries:"Échec du chargement de l'entrée : %{details}",onFailToLoadDeployPreview:"Échec du chargement de l'aperçu : %{details}",onFailToPersist:"Échec de l'enregistrement de l'entrée : %{details}",onFailToPersistMedia:"Échec de l'enregistrement de la ressource : %{details}",onFailToDelete:"Échec de la suppression de l'entrée : %{details}",onFailToDeleteMedia:"Échec de la suppression de la ressource : %{details}",onFailToUpdateStatus:"Échec de la mise à jour du statut : %{details}",missingRequiredField:"Oops, il manque un champ requis. Veuillez le renseigner avant de soumettre.",entrySaved:"Entrée enregistrée",entryDeleted:void 0,entryPublished:"Entrée publiée",entryUnpublished:"Entrée dépubliée",onFailToPublishEntry:"Échec de la publication : %{details}",onFailToUnpublishEntry:"Impossible de dépublier l'entrée : %{details}",entryUpdated:"Statut de l'entrée mis à jour",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Modifications non publiées supprimées",onFailToAuth:"%{details}",onLoggedOut:"Vous avez été déconnecté, merci de sauvegarder les données et vous reconnecter",onBackendDown:"Le serveur est actuellement hors-service. Pour plus d'informations : %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Chargement des entrées du flux éditorial",workflowHeading:"Flux éditorial",newPost:"Nouvel article",description:"%{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} par %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"par %{author}",deleteChanges:"Supprimer les mofications",deleteNewEntry:"Supprimer la nouvelle entrée",publishChanges:"Publier les modifications",publishNewEntry:"Publier la nouvelle entrée"},workflowList:{onDeleteEntry:"Voulez-vous vraiment supprimer cette entrée ?",onPublishingNotReadyEntry:'Seuls les éléments ayant le statut "Prêt" peuvent être publiés. Veuillez glisser/déposer la carte dans la colonne "Prêt" pour activer la publication',onPublishEntry:"Voulez-vous vraiment publier cette entrée ?",draft:"Brouillons",pending_review:"En cours de révision",pending_publish:"Prêt",currentEntries:"%{smart_count} entrée |||| %{smart_count} entrées"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},gr:{auth:{login:"Σύνδεση",loggingIn:"Σύνδεση στο...",loginWithNetlifyIdentity:"Σύνδεση μέσω Netlify",loginWithBitbucket:"Σύνδεση μέσω Bitbucket",loginWithGitHub:"Σύνδεση μέσω GitHub",loginWithGitLab:"Σύνδεση μέσω GitLab",loginWithGitea:"Σύνδεση μέσω Gitea",errors:{email:"Βεβαιωθείτε ότι έχετε εισαγάγει το email σας.",password:"Παρακαλώ εισάγετε τον κωδικό πρόσβασής σας.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Δεν είναι δυνατή η πρόσβαση στις ρυθμίσεις ταυτότητας. Όταν χρησιμοποιείτε το παρασκήνιο του git Gateway, φροντίστε να ενεργοποιήσετε την υπηρεσία Identity και το git Gateway."}},app:{header:{content:"Περιεχόμενα",workflow:"Ροής εργασίας",media:"Πολυμέσα",quickAdd:"Γρήγορη προσθήκη"},app:{loading:"Φόρτωση...",errorHeader:"Σφάλμα κατά τη φόρτωση της ρύθμισης παραμέτρων CMS",configErrors:"Σφάλματα ρύθμισης παραμέτρων",configNotFound:void 0,checkConfigYml:"Ελέγξτε το αρχείο config.yml.",loadingConfig:"Φόρτωση ρύθμισης παραμέτρων...",waitingBackend:"Αναμονή για παρασκηνιακό..."},notFoundPage:{header:"Δεν βρέθηκε"}},collection:{sidebar:{collections:"Συλλογές",allCollections:void 0,searchAll:"Αναζήτηση όλων",searchIn:void 0},collectionTop:{sortBy:void 0,viewAs:"Προβολή ως",newButton:"Νέο %{collectionLabel}",ascending:void 0,descending:void 0,searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Εγγραφές φόρτωσης",cachingEntries:"Εγγραφές προσωρινής αποθήκευσης",longerLoading:"Αυτό μπορεί να διαρκέσει αρκετά λεπτά",noEntries:void 0},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:void 0},updatedOn:{label:void 0}},notFound:void 0},editor:{editorControl:{field:{optional:"προαιρετικός"}},editorControlPane:{widget:{required:"Το %{fieldLabel} είναι απαραίτητο.",regexPattern:"Το %{fieldLabel} δεν ταιριάζει με το μοτίβο: %{pattern}.",processing:"Το %{fieldLabel} επεξεργάζεται.",range:"Το %{fieldLabel} πρέπει να είναι μεταξύ %{minValue} και %{maxValue}.",min:"Το %{fieldLabel} πρέπει να είναι τουλάχιστον %{minValue}.",max:"Το %{fieldLabel} πρέπει να είναι %{maxValue} ή μικρότερο.",rangeCount:void 0,rangeCountExact:void 0,rangeMin:void 0,rangeMax:void 0,invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Είστε βέβαιοι ότι θέλετε να αφήσετε αυτήν τη σελίδα;",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν να ενημερώσετε την κατάσταση.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Ενημερώστε την κατάσταση σε "έτοιμο" πριν από τη δημοσίευση.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν από τη δημοσίευση.",onPublishingTitle:void 0,onPublishingBody:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",onUnpublishingTitle:void 0,onUnpublishingBody:"Είστε βέβαιοι ότι θέλετε να καταργήσετε τη δημοσίευση αυτής της καταχώρησης;",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση, καθώς και τις αλλαγές που δεν αποθηκεύσατε από την τρέχουσα περίοδο λειτουργίας;",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση;",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Αυτό θα διαγράψει όλες τις μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση, καθώς και τις αλλαγές που δεν έχετε αποθηκεύσει από την τρέχουσα περίοδο λειτουργίας. Θέλετε ακόμα να διαγράψετε;",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Όλες οι μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση θα διαγραφούν. Θέλετε ακόμα να διαγράψετε;",loadingEntry:"Φόρτωση εισόδου..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Δημοσίευση...",publish:"Δημοσίευση",published:"Δημοσιεύθηκε",unpublish:"Κατάργηση δημοσίευσης",duplicate:"Διπλότυπο",unpublishing:"Κατάργηση δημοσίευσης...",publishAndCreateNew:"Δημοσίευση και δημιουργία νέων",publishAndDuplicate:"Δημοσίευση και αντίγραφο",deleteUnpublishedChanges:"Διαγραφή μη δημοσιευμένων αλλαγών",deleteUnpublishedEntry:"Διαγραφή μη δημοσιευμένης καταχώρησης",deletePublishedEntry:"Διαγραφή δημοσιευμένης καταχώρησης",deleteEntry:"Διαγραφή καταχώρησης",saving:"Εξοικονόμηση...",save:"Αποθήκευση",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Διαγραφή...",updating:"Ενημέρωση...",status:"Κατάστασης: %{status}",backCollection:" Εγγραφή στη συλλογή %{collectionLabel}",unsavedChanges:"Μη αποθηκευμένες αλλαγές",changesSaved:"Αλλαγές που αποθηκεύτηκαν",draft:"Σχέδιο",inReview:"Σε επανεξέταση",ready:"Έτοιμα",publishNow:"Δημοσίευση τώρα",deployPreviewPendingButtonLabel:"Έλεγχος για προεπισκόπηση",deployPreviewButtonLabel:"Προβολή προεπισκόπησης",deployButtonLabel:"Προβολή Live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:void 0,markdown:void 0,type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Επιλέξτε μια εικόνα",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Επιλέξτε διαφορετική εικόνα",addMore:void 0,remove:"Αφαιρέστε την εικόνα",removeAll:void 0},file:{choose:"Επιλέξτε ένα αρχείο",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Επιλέξτε διαφορετικό αρχείο",addMore:void 0,remove:"Αφαιρέστε το αρχείο",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Δεν υπάρχει έλεγχος για το widget '%{widget}'."},unknownPreview:{noPreview:"Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:void 0,invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Προσχέδιο",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Είστε βέβαιοι ότι θέλετε να διαγράψετε τα επιλεγμένα πολυμέσα;",fileTooLargeTitle:void 0,fileTooLargeBody:"Το αρχείο είναι πολύ μεγάλο.\nΔεν επιτρέπονται αρχεία μεγαλύτερα από %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Χωρίς αποτελέσματα.",noAssetsFound:"Δεν βρέθηκαν αρχεία.",noImagesFound:"Δεν βρέθηκαν εικόνες.",private:"Ιδιωτικό",images:"Εικόνες",mediaAssets:"Αρχεία πολυμέσων",search:"Αναζήτηση...",uploading:"Φόρτωμα...",upload:"Ανεβάστε νέα",download:void 0,deleting:"Διαγραφή...",deleteSelected:"Διαγραφή επιλεγμένου",chooseSelected:"Επιλέξτε επιλεγμένο",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:void 0},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Σφάλμα",details:"Υπάρχει ένα λάθος ",reportIt:"παρακαλώ να το αναφέρετε.",detailsHeading:"Λεπτομέρειες",privacyWarning:void 0,recoveredEntry:{heading:"Ανακτημένο έγγραφο",warning:"Παρακαλώ αντιγράψτε/επικολλήστε αυτό κάπου πριν πλοηγηθείτε μακριά!",copyButtonLabel:"Αντιγραφή στο Πρόχειρο"}},settingsDropdown:{theme:void 0,logOut:"Αποσύνδεση"},toast:{onFailToLoadEntries:"Απέτυχε η φόρτωση της καταχώρησης: %{details}",onFailToLoadDeployPreview:"Απέτυχε η φόρτωση της προεπισκόπησης: %{details}",onFailToPersist:"Απέτυχε η διατήρηση της καταχώρησης:% {Details}",onFailToPersistMedia:void 0,onFailToDelete:"Απέτυχε η διαγραφή της καταχώρησης: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Απέτυχε η ενημέρωση της κατάστασης: %{details}",missingRequiredField:"Ουπς, ξεχάσατε ένα απαιτούμενο πεδίο. Συμπληρώστε το πριν από την αποθήκευση.",entrySaved:"Η καταχώρηση Αποθηκεύτηκε",entryDeleted:void 0,entryPublished:"Η καταχώρηση δημοσιεύτηκε",entryUnpublished:"Μη δημοσιευμένη καταχώρηση",onFailToPublishEntry:"Η δημοσίευση απέτυχε: %{details}",onFailToUnpublishEntry:"Απέτυχε η κατάργηση δημοσίευσης καταχώρησης: %{details}",entryUpdated:"Η κατάσταση εισόδου ενημερώθηκε",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Οι μη δημοσιευμένες αλλαγές διαγράφηκαν",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Φόρτωση καταχωρήσεων ροής εργασίας σύνταξης",workflowHeading:"Ροή εργασιών",newPost:"Νέα δημοσίευση",description:"%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} από %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"από %{author}",deleteChanges:"Διαγραφή αλλαγών",deleteNewEntry:"Διαγραφή νέας καταχώρησης",publishChanges:"Δημοσίευση αλλαγών",publishNewEntry:"Δημοσίευση νέας καταχώρησης"},workflowList:{onDeleteEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την καταχώρηση;",onPublishingNotReadyEntry:'Μόνο τα στοιχεία με κατάσταση "Ready" μπορούν να δημοσιευτούν. Σύρετε την κάρτα στη στήλη "έτοιμο" για να ενεργοποιήσετε τη δημοσίευση.',onPublishEntry:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",draft:"Προσχέδια",pending_review:"Σε ανασκόπηση",pending_publish:"Έτοιμα",currentEntries:"%{smart_count} καταχωρηση |||| %{smart_count} καταχωρησεις"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},hu:{auth:{login:void 0,loggingIn:void 0,loginWithNetlifyIdentity:void 0,loginWithBitbucket:void 0,loginWithGitHub:void 0,loginWithGitLab:void 0,loginWithGitea:void 0,errors:{email:void 0,password:void 0,authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:void 0}},app:{header:{content:"Tartalom",workflow:"Munkafolyamat",media:"Média",quickAdd:"Gyors hozzáadás"},app:{loading:"Betöltés...",errorHeader:"Hiba történt a CMS konfiguráció betöltése közben",configErrors:"Configurációs hibák",configNotFound:void 0,checkConfigYml:"Ellenőrizd a config.yml filet.",loadingConfig:"Konfiguráció betöltése...",waitingBackend:"Várakozás hattérrendszerekre..."},notFoundPage:{header:"Nincs találat"}},collection:{sidebar:{collections:"Gyűjtemények",allCollections:void 0,searchAll:"Keresés mindenre",searchIn:void 0},collectionTop:{sortBy:void 0,viewAs:"Nézet mint",newButton:"Új %{collectionLabel}",ascending:void 0,descending:void 0,searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Bejegyzések betöltése",cachingEntries:"Bejegyzések cacheelése",longerLoading:"Ez még eltarthat néhany percig",noEntries:void 0},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:void 0},updatedOn:{label:void 0}},notFound:void 0},editor:{editorControl:{field:{optional:"választható"}},editorControlPane:{widget:{required:"%{fieldLabel} kötelező mező.",regexPattern:"%{fieldLabel} nem egyezik a %{pattern} mintával.",processing:"%{fieldLabel} feldolgozás alatt.",range:"%{fieldLabel}, %{minValue} és %{maxValue} értékek között kell legyen.",min:"%{fieldLabel} legalább %{minValue} kell legyen vagy több.",max:"%{fieldLabel} legalabb %{maxValue} vagy kevesebb kell legyen.",rangeCount:void 0,rangeCountExact:void 0,rangeMin:void 0,rangeMax:void 0,invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Biztos hogy el akarod hagyni az oldalt?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Mentettlen változtatások vannak, kérjük, mentse az állapot frissítése előtt.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Változtasd az állapotot "Kész"-re publikálás előtt.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Mentetlen változtatások vannak, kérjük, mentsen a publikálás előtt.",onPublishingTitle:void 0,onPublishingBody:"Publikálod ezt a bejegyzést?",onUnpublishingTitle:void 0,onUnpublishingBody:"Publikálás visszavonása erre a bejegyzésre?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Töröljük ezt a publikált bejegyzést, a többi mentetlen modositással együtt?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Töröljük ezt a publikált bejegyzést?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Ezzel törli a bejegyzés összes nem közzétett módosítását, valamint az aktuális munkamenetből nem mentett módosításokat. Még mindig törli?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"A bejegyzés összes, nem közzétett módosítása törlődik. Még mindig törli?",loadingEntry:"Bejegyzés betöltése..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publikálás...",publish:"Publikáció",published:"Publikálás",unpublish:"Publikálás visszavonása",duplicate:"Duplikált",unpublishing:"Publikálás visszavonása...",publishAndCreateNew:"Publikálás és új létrehozása",publishAndDuplicate:"Publikálás és duplikál",deleteUnpublishedChanges:"Nempublikált változtatások törlése",deleteUnpublishedEntry:"Nempublikált bejegyzés törlése",deletePublishedEntry:"Publikált bejegyzés törlése",deleteEntry:"Bejegyzés törlése",saving:"Mentés...",save:"Mentés",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Törlés...",updating:"Frissítés...",status:"Beállitása: %{status}",backCollection:" Írás a %{collectionLabel} gyűjteménybe",unsavedChanges:"Nemmentett változtatások",changesSaved:"Változások elmentve",draft:"Piszkozat",inReview:"Felülvizsgálat alatt",ready:"Kész",publishNow:"Publikálás most",deployPreviewPendingButtonLabel:"Előnézet ellenörzése",deployPreviewButtonLabel:"Előnézet megtekintése",deployButtonLabel:"Élő megtekintése",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:void 0,markdown:void 0,type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Válasszon képet",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Válasszon másik képet",addMore:void 0,remove:"Távolítsa el a képet",removeAll:void 0},file:{choose:"Válasszon fájlt",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Válasszon másik fájlt",addMore:void 0,remove:"Távolítsa el a fájlt",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Nincs vezérlés a '%{widget}' widget számára."},unknownPreview:{noPreview:"Nincs előnézet a '%{widget}' widget számára."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:void 0,invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Új %{item}",addType:"Új típus %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Piszkozat",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Biztos törli a kiválasztott média tartalmat?",fileTooLargeTitle:void 0,fileTooLargeBody:void 0,alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nincs találat.",noAssetsFound:"Nem található tartalom.",noImagesFound:"Nem található kép.",private:"Privát ",images:"Képek",mediaAssets:"Média tartalmak",search:"Keresés...",uploading:"Feltöltés...",upload:"Új feltöltés",download:void 0,deleting:"Törlés...",deleteSelected:"Kijelöltek törlése",chooseSelected:"Kijelöl",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:void 0},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Hiba",details:"Hiba történt - kérjük ",reportIt:"jelentse.",detailsHeading:"Részletek",privacyWarning:void 0,recoveredEntry:{heading:"Helyreállitott dokumentum",warning:"Kérjük mentse ezt el (vágólapra) mielőtt elhagyná az oldalt!",copyButtonLabel:"Másolás a vágólapra"}},settingsDropdown:{theme:void 0,logOut:"Kijelentkezés"},toast:{onFailToLoadEntries:"A bejegyzés betöltése nem sikerült: %{details}",onFailToLoadDeployPreview:"Az előnézet betöltése nem sikerült: %{details}",onFailToPersist:"Bejegyzés megtartása sikertelen: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"A bejegyzés törlése sikertelen: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Az állapot frissítése nem sikerült: %{details}",missingRequiredField:"Hoppá, kihagytál egy kötelező mezőt. Mentés előtt töltsd ki.",entrySaved:"Bejegyzés elmentve",entryDeleted:void 0,entryPublished:"Bejegyzés publikálva",entryUnpublished:"Bejegyzés publikálása visszavonva",onFailToPublishEntry:"Bejegyzés publikálása sikertelen: %{details}",onFailToUnpublishEntry:"Bejegyzés publikálásának visszavonása sikertelen: %{details}",entryUpdated:"Bejegyzés állapota frissült",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"A szerkesztési munkafolyamat-bejegyzések betöltése",workflowHeading:"Szerkesztői Folyamat",newPost:"New Post",description:"%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, írta %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Változtatások törlése",deleteNewEntry:"Új bejegyzés törlése",publishChanges:"Változtatások publikálása",publishNewEntry:"Új bejegyzés publikálása"},workflowList:{onDeleteEntry:"Biztosan törli ezt a bejegyzést?",onPublishingNotReadyEntry:'Csak a "Kész" állapotú tételek tehetők közzé. A közzététel engedélyezéséhez húzza a kártyát a „Kész” oszlopba.',onPublishEntry:"Biztosan közzéteszi ezt a bejegyzést?",draft:"Piszkozat",pending_review:"Vizsgálat alatt",pending_publish:"Kész",currentEntries:"%{smart_count} bejegyzés |||| %{smart_count} bejegyzések"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},it:{auth:{login:"Accedi",loggingIn:"Effettuando l'accesso...",loginWithNetlifyIdentity:"Accedi con Netlify Identity",loginWithBitbucket:"Accedi con Bitbucket",loginWithGitHub:"Accedi con GitHub",loginWithGitLab:"Accedi con GitLab",loginWithGitea:"Accedi con Gitea",errors:{email:"Assicurati di inserire la tua mail.",password:"Inserisci la tua password.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Impossibile accedere alle impostazioni di Identity. Quando usi git-gateway come backend assicurati di abilitare il servizio Itentity e Git Gateway."}},app:{header:{content:"Contenuti",workflow:"Workflow",media:"Media",quickAdd:"Aggiunta veloce"},app:{loading:"Caricamento...",errorHeader:"Errore nel caricamento della configurazione CMS",configErrors:"Errori di Configurazione",configNotFound:void 0,checkConfigYml:"Controlla il tuo file config.yml.",loadingConfig:"Caricando la configurazione...",waitingBackend:"Attendi il backend..."},notFoundPage:{header:"Non trovato"}},collection:{sidebar:{collections:"Collezioni",allCollections:void 0,searchAll:"Cerca su tutto",searchIn:void 0},collectionTop:{sortBy:void 0,viewAs:"Vedi come",newButton:"Nuovo/a %{collectionLabel}",ascending:void 0,descending:void 0,searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Caricando le voci",cachingEntries:"Cachando le voci",longerLoading:"Questa operazione potrebbe durare diversi minuti",noEntries:void 0},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:void 0},updatedOn:{label:void 0}},notFound:void 0},editor:{editorControl:{field:{optional:"opzionale"}},editorControlPane:{widget:{required:"%{fieldLabel} è richiesto.",regexPattern:"%{fieldLabel} non corrisponde allo schema: %{pattern}.",processing:"%{fieldLabel} sta elaborando.",range:"%{fieldLabel} deve essere tra %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve essere almeno %{minValue}.",max:"%{fieldLabel} deve essere %{maxValue} o meno.",rangeCount:void 0,rangeCountExact:void 0,rangeMin:void 0,rangeMax:void 0,invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Sei sicuro di voler lasciare questa pagina?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Hai delle modifiche non salvate, salvale prima di aggiornare lo status.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Aggiorna lo status a "Pronto" prima di pubblicare.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Hai delle modifiche non salvate, salvale prima di pubblicare.",onPublishingTitle:void 0,onPublishingBody:"Sei sicuro di voler pubblicare questa voce?",onUnpublishingTitle:void 0,onUnpublishingBody:"Sei sicuro di voler nascondere questa voce?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Sei sicuro di voler cancellare questa voce pubblicata e tutte le modifiche non salvate della tua sessione corrente?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Sei sicuro di voler cancellare questa voce pubblicata?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Questo cancellerà tutte le modifiche non pubblicate di questa voce, come anche tutte le modifiche non salvate della sessione corrente. Vuoi ancora cancellarle?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Tutte le modifiche non pubblicate a questa voce saranno cancellate. Vuoi ancora cancellarle?",loadingEntry:"Caricando la voce..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Pubblicando...",publish:"Pubblica",published:"Pubblicato",unpublish:"Rimuovi dalla pubblicazione",duplicate:"Duplica",unpublishing:"Rimuovendo dalla pubblicazione...",publishAndCreateNew:"Pubblica e creane uno nuovo",publishAndDuplicate:"Pubblica e duplica",deleteUnpublishedChanges:"Cancella le modifiche non pubblicate",deleteUnpublishedEntry:"Cancella le voci non pubblicate",deletePublishedEntry:"Cancella la voce pubblicata",deleteEntry:"Cancella voce",saving:"Salvando...",save:"Salva",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Cancellando...",updating:"Aggiornando...",status:"Status: %{status}",backCollection:" Scrivendo nella sezione %{collectionLabel}",unsavedChanges:"Modifiche non salvate",changesSaved:"Modifiche salvate",draft:"Bozza",inReview:"In revisione",ready:"Pronto",publishNow:"Pubblica ora",deployPreviewPendingButtonLabel:"Controlla l'anteprima",deployPreviewButtonLabel:"Guarda l'anteprima",deployButtonLabel:"Guarda Live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:void 0,markdown:void 0,type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Scegli un'immagine",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Scegli un'immagine diversa",addMore:void 0,remove:"Rimuovi immagine",removeAll:void 0},file:{choose:"Scegli un file",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Scegli un altro file",addMore:void 0,remove:"Rimuovi il file",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Nessun controllo per il widget '%{widget}'."},unknownPreview:{noPreview:"Nessuna preview per il widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:void 0,invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Bozza",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Sei sicuro di voler cancellare il media selezionato?",fileTooLargeTitle:void 0,fileTooLargeBody:"File troppo grande.\nConfigurato per non accettare file piú grandi di %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nessun risultato.",noAssetsFound:"Nessun assets trovato.",noImagesFound:"Nessuna immagine trovata.",private:"Privato ",images:"Immagini",mediaAssets:"Media assets",search:"Cerca...",uploading:"Uploading...",upload:"Upload",download:void 0,deleting:"Deleting...",deleteSelected:"Cancella selezionato",chooseSelected:"Prendi selezionato",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:void 0},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Errore",details:"C'è stato un errore - per favore ",reportIt:"riportalo.",detailsHeading:"Dettagli",privacyWarning:void 0,recoveredEntry:{heading:"Documento recuperato",warning:"Per favore copia/incollalo da qualche parte prima di navigare altrove!",copyButtonLabel:"Copialo negli appunti"}},settingsDropdown:{theme:void 0,logOut:"Esci"},toast:{onFailToLoadEntries:"Caricamento voce non riuscito: %{details}",onFailToLoadDeployPreview:"Caricamento della preview non riuscito: %{details}",onFailToPersist:"Salvataggio della voce non riuscito: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Cancellazione della voce non riuscita: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Aggiornamento dello status non riuscito: %{details}",missingRequiredField:"Oops, ti sei perso un campo obbligatorio. Per favore completalo prima di salvare.",entrySaved:"Voce salvata",entryDeleted:void 0,entryPublished:"Voce pubblicata",entryUnpublished:"Voce rimossa dalla pubblicazione",onFailToPublishEntry:"Pubblicazione fallita: %{details}",onFailToUnpublishEntry:"Rimozione della pubblicazione fallita: %{details}",entryUpdated:"Status della voce aggiornato",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Modifiche non pubblicate cancellate",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Caricando le voci del Flusso Editoriale",workflowHeading:"Flusso Editoriale",newPost:"Nuovo Post",description:"%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} da %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"da %{author}",deleteChanges:"Cancella le modifiche",deleteNewEntry:"Cancella nuova voce",publishChanges:"Pubblica modifiche",publishNewEntry:"Pubblica una nuova voce"},workflowList:{onDeleteEntry:"Sei sicuro di voler cancellare questa voce?",onPublishingNotReadyEntry:'Solo gli oggetti con lo status "Pronto" possono essere pubblicati. Sposta la Card nella colonna "Pronto" per abilitare la pubblicazione.',onPublishEntry:"Sei sicuro di voler pubblicare questa voce?",draft:"Bozze",pending_review:"In Revisione",pending_publish:"Pronto",currentEntries:"%{smart_count} voce |||| %{smart_count} voci"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},lt:{auth:{login:"Prisijungti",loggingIn:"Prisijungiama...",loginWithNetlifyIdentity:"Prisijungti su Netlify Identity",loginWithBitbucket:"Prisijungti su Bitbucket",loginWithGitHub:"Prisijungti su GitHub",loginWithGitLab:"Prisijungti su GitLab",loginWithGitea:"Prisijungti su Gitea",errors:{email:"Įveskite savo elektroninį paštą.",password:"Įveskite savo slaptažodį.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Deja, nepavyksta pasiekti Identity paslaugos nustatymus. Kai naudojate git-gateway backend metodą, įjunkite „Identity service“ ir „Git Gateway“."}},app:{header:{content:"Turinys",workflow:"Darbo eiga",media:"Medija",quickAdd:"Sukurti naują"},app:{loading:"Kraunama...",errorHeader:"Klaida, neišėjo užkrauti/pasiekti CMS konfigūracijos failą",configErrors:"Konfigūracijos (nustatymų) klaidos",configNotFound:void 0,checkConfigYml:"Patikrinkite config.yml balsą.",loadingConfig:"Kraunamas nustatymų (konfigūracijos) failas...",waitingBackend:"Laukiama serverio..."},notFoundPage:{header:"Nerasta"}},collection:{sidebar:{collections:"Kolekcijos",allCollections:"Visos kolekcijos",searchAll:"Ieškoti viską",searchIn:"Ieškoti tik čia"},collectionTop:{sortBy:"Rikiavimo tvarka",viewAs:"Peržiūrėti kaip",newButton:"Nauja(s) %{collectionLabel}",ascending:"Didėjimo tvarka (A-Z)",descending:"Mažėjimo tvarka (Z-A)",searchResults:"Paieškos rezultatai: „%{searchTerm}“",searchResultsInCollection:"Paieškos rezultatai: „%{searchTerm}“ iš %{collection}",filterBy:"Filtruoti",groupBy:"Grupuoti"},entries:{loadingEntries:"Kraunamas turinys...",cachingEntries:"Talpinami įrašai...",longerLoading:"Šis procesas gali trukti keletą minučių",noEntries:"Nėra turinio"},groups:{other:"Kita",negateLabel:"Ne %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autorius"},updatedOn:{label:"Atnaujinta"}},notFound:void 0},editor:{editorControl:{field:{optional:"neprivaloma"}},editorControlPane:{widget:{required:"Privaloma užpildyti laukelį %{fieldLabel}.",regexPattern:"%{fieldLabel} laukelis neatitiko konfigūracijoje nustatytų taisyklių: %{pattern}.",processing:"Apdorojame %{fieldLabel}.",range:"%{fieldLabel} turi būti tarp %{minValue} ir %{maxValue}.",min:"%{fieldLabel} turi būti bent %{minValue}.",max:"%{fieldLabel} turi būti %{maxValue} arba mažiau.",rangeCount:"%{fieldLabel} turi būti tarp %{minCount} ir %{maxCount} elementų/-o.",rangeCountExact:"%{fieldLabel} turi turėti būtent tik %{count} elementų/-us.",rangeMin:"%{fieldLabel} turi būti bent %{minCount} elementų.",rangeMax:"%{fieldLabel} turi būti %{maxCount} arba mažiau elementų.",invalidPath:"'%{path}' nėra taisyklinga nuoroda/adresas į resursą/-us",pathExists:"Adresas '%{path}' jau egzistuoja",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Rašome %{locale} kalboje",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Ar tikrai norite uždaryti šį puslapį?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Turite neišsaugotų pakeitimų! Prašome išsaugoti prieš pakeičiant statusą.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"Prieš publikuojant, privalote pakeisti statusą į „Paruošta“.",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Yra neišsaugotų pakeitimų, prašome išsaugoti juos prieš publikuojant.",onPublishingTitle:void 0,onPublishingBody:"Ae tikrai norite publikuoti šį įrašą?",onUnpublishingTitle:void 0,onUnpublishingBody:"Tikrai norite panaikinti publikavimo statusą?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Tikrai norite panaikinti publikuotą įrašą ir Jūsų pakeiitmus iš dabartinės sesijos?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Tikrai norite ištrinti šį publikuotą įrašą?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Tai ištrins visus nepublikuotus pakeitimus įraše, taip pat neišsaugotus pakeitimus per dabartinę sesiją. Vis tiek norite trinti?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Visi Jūsų pakeitimai įraše bus panaikinti. Ar tikrai norite trinti jį?",loadingEntry:"Kraunamas įrašas..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publikuojama...",publish:"Publikuoti",published:"Jau publikuota",unpublish:"Atšaukti paskelbimą",duplicate:"Daryti dublį",unpublishing:"Nebeskelbiama...",publishAndCreateNew:"Publikuoti šitą, po to kurti kažką naujo",publishAndDuplicate:"Publikuoti šitą, po to kurti šito dublį",deleteUnpublishedChanges:"Ištrinti publikuotus pakeitimus",deleteUnpublishedEntry:"Ištrinti nepaskelbtą įrašą",deletePublishedEntry:"Ištrinti paskelbtą įrašą",deleteEntry:"Panaikinti įrašą",saving:"Išsaugojama...",save:"Išsaugoti",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Trinama...",updating:"Atnaujinama...",status:"Statusą: %{status}",backCollection:" Rašoma %{collectionLabel} kolekcijoje",unsavedChanges:"Neišsaugoti pakeitimai",changesSaved:"Pakeitimai išsauogti",draft:"Juodraštis",inReview:"Peržiūrima redakcijoje",ready:"Paruošta",publishNow:"Skelbti naują",deployPreviewPendingButtonLabel:"Tikrinti, ar yra demonstracija",deployPreviewButtonLabel:"Žiūrėti demonstraciją (netiesiogiai)",deployButtonLabel:"Žiūrėti tiesiogiai tinklalapyje",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Paryškinta",italic:"Pasvariu tekstu (italic)",strikethrough:void 0,code:"Kodo šriftas",codeBlock:void 0,insertCodeBlock:void 0,link:"Nuoroda (adresas)",insertLink:void 0,paragraph:void 0,headings:"Antraštės",quote:"Citata",insertQuote:void 0,bulletedList:"Sąrašas su ženkleliais",numberedList:"Sąrašas su numeriais",addComponent:"Pridėti komponentą",richText:"Normali peržiūra",markdown:"Rodyti be formatavimo (Markdown)",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Pasirinkti vaizdą",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Pasirinkti skirtingą vaizdą",addMore:void 0,remove:"Panaikinti vaizdą",removeAll:void 0},file:{choose:"Pasirinkti failą",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Pasirinkti kitą failą",addMore:void 0,remove:"Panaikinti failą",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Klaida: valdiklis taisyklingai neveikia. No control for widget '%{widget}'."},unknownPreview:{noPreview:"Klaida: valdiklis taisyklingai neveikia. No preview for widget '%{widget}'."},headingOptions:{headingOne:"Antraštė 1",headingTwo:"Antraštė 2",headingThree:"Antraštė 3",headingFour:"Antraštė 4",headingFive:"Antraštė 5",headingSix:"Antraštė 6"},datetime:{now:"Dabar",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Juodraštis",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Ar jūs tikrai norite ištrinti pasirinktą mediją?",fileTooLargeTitle:void 0,fileTooLargeBody:"Failas per didelis.\nNustatymuose (konfigūracijoje) nurodyta, kad failai negali viršyti %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nėra rezultatų.",noAssetsFound:"Turinio nerasta.",noImagesFound:"Vaizdų nerasta.",private:"Privatu ",images:"Vaizdai",mediaAssets:"Medijos turinys",search:"Paieška...",uploading:"Keliama...",upload:"Įkelti",download:"Parsiųsti",deleting:"Trinama...",deleteSelected:"Ištrinti parinktus",chooseSelected:"Pasirinkti parinktus",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Grįžti atgal į tinklalapį"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Klaida",details:"Buvo klaida - jeigu galite, prašome ",reportIt:"pranešti apie techninę problemą „GitHub“ puslapyje.",detailsHeading:"Detalės",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Sugrąžintas dokumentas",warning:"Prašome kopijuoti/įkluoti šitą kažkur prieš uždarant puslapį!",copyButtonLabel:"Nukopijuoti į iškarpinę"}},settingsDropdown:{theme:void 0,logOut:"Atsijungti"},toast:{onFailToLoadEntries:"Nepavyko užkrauti įrašo: %{details}",onFailToLoadDeployPreview:"Nepavyko užkrauti demonstracijos lango: %{details}",onFailToPersist:"Nepavyko išlaikyti įrašo: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Nepayvko ištrinti: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Nepavyko pakeisti statusą: %{details}",missingRequiredField:"Pasitikrinkite — kažkurio (ar kelių) laukelių neužpildėte. Tai padarius galėsite išsaugoti įrašą.",entrySaved:"Įrašas išsaugotos",entryDeleted:void 0,entryPublished:"Įrašas publikuotas",entryUnpublished:"Įrašas nepublikuotas",onFailToPublishEntry:"Nepavyko publikuoti: %{details}",onFailToUnpublishEntry:"Nepavyko panaikinti publikavimą: %{details}",entryUpdated:"Įrašo statusas pakeistas",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Nepublikuoti pakeitimai ištrinti",onFailToAuth:"Nepavyko prisijungti: %{details}",onLoggedOut:"Mes jus atjungėme. Jeigu yra poreikis, sukurkite duomenų atsarginę kopiją. Galite tiesiog iš naujo prisijungti.",onBackendDown:"Deja, serveris šiuo metu neveikia. Bandykite iš naujo dar sykį arba šiek tiek vėliau. Detalės: %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Kraunamas turinys",workflowHeading:"Redakcijos darbo eiga",newPost:"Naujas įrašas",description:"%{smart_count} įrašas laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojamas. |||| %{smart_count} elementai laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojami. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} pagal %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"oagal %{author}",deleteChanges:"Trinti keitimus",deleteNewEntry:"Trinti naują įrašą",publishChanges:"Publikuoti keitimus",publishNewEntry:"Kurti naują įrašą"},workflowList:{onDeleteEntry:"Ar tikrai norite ištrinti šį įrašą?",onPublishingNotReadyEntry:"Tik įrašai su statusu „Paruošta“ gali būti patvirtinti. Prašome pajudinti įrašo kortelę link „Paruošta“ stulpelio, kad galėtumėte publikuoti įrašą.",onPublishEntry:"Ar jūs tikrai norite publikuoti šį įrašą?",draft:"Juodraščiai",pending_review:"Peržiūrima redakcijoje",pending_publish:"Paruošta",currentEntries:"%{smart_count} įrašas |||| %{smart_count} įrašai"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ja:{auth:{login:"ログイン",loggingIn:"ログインしています...",loginWithNetlifyIdentity:"Netlify Identity でログインする",loginWithBitbucket:"Bitbucket でログインする",loginWithGitHub:"GitHub でログインする",loginWithGitLab:"GitLab でログインする",loginWithGitea:"Gitea でログインする",errors:{email:"メールアドレスを確認してください。",password:"パスワードを入力してください。",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"認証情報にアクセスできませんでした。git-gateway backend を利用している場合は、認証サービスと Git Gateway が有効になっているかを確認してください。"}},app:{header:{content:"コンテンツ",workflow:"ワークフロー",media:"メディア",quickAdd:"新規作成"},app:{loading:"読込中...",errorHeader:"CMS設定の読み込みエラー",configErrors:"設定エラー",configNotFound:void 0,checkConfigYml:"config.ymlを確認してください。",loadingConfig:"設定を読み込んでいます...",waitingBackend:"バックエンドの応答を待機しています..."},notFoundPage:{header:"ページが見つかりません"}},collection:{sidebar:{collections:"コレクション",allCollections:"すべてのコレクション",searchAll:"検索",searchIn:"検索対象"},collectionTop:{sortBy:"ソート",viewAs:"表示モード",newButton:"%{collectionLabel}を作成",ascending:"昇順",descending:"降順",searchResults:"「%{searchTerm}」の検索結果",searchResultsInCollection:"%{collection}内の「%{searchTerm}」の検索結果",filterBy:"絞り込み",groupBy:"グルーピング"},entries:{loadingEntries:"エントリを読み込み中",cachingEntries:"エントリをキャッシュ中",longerLoading:"少々お待ちください",noEntries:"エントリがありません"},groups:{other:"その他",negateLabel:"%{label}以外"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"作成者"},updatedOn:{label:"最終更新"}},notFound:void 0},editor:{editorControl:{field:{optional:"任意"}},editorControlPane:{widget:{required:"%{fieldLabel}は必須です。",regexPattern:"%{fieldLabel}が入力規則(%{pattern})と一致しません。",processing:"%{fieldLabel}を処理しています。",range:"%{fieldLabel}は%{minValue}から%{maxValue}まで入力可能です。",min:"%{fieldLabel}の最小値は%{minValue}です。",max:"%{fieldLabel}の最大値は%{maxValue}です。",rangeCount:"%{fieldLabel}は%{minCount}個から%{maxCount}個まで選択してください。",rangeCountExact:"%{fieldLabel}はちょうど%{count}個選択してください。",rangeMin:"%{fieldLabel}は%{minCount}個以上選択してください。",rangeMax:"%{fieldLabel}は%{maxCount}個以下選択してください。",invalidPath:"'%{path}'は有効なパスではありません。",pathExists:"'%{path}'というパスはすでに存在しています。",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"言語: %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"このページから遷移しますか?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"変更した項目があります。ステータスを更新する前に保存してください。",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"公開する前に、ステータスを「準備完了」に更新してください。",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"変更した項目があります。公開する前に保存してください。",onPublishingTitle:void 0,onPublishingBody:"このエントリを公開しますか?",onUnpublishingTitle:void 0,onUnpublishingBody:"このエントリを未公開にしますか?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"保存されていない変更も削除されますが、この公開エントリを削除しますか?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"この公開エントリを削除しますか?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"保存されていない変更も削除されますが、このエントリの未公開の変更を削除しますか?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"公開されていない変更も削除されますが、このエントリを削除しますか?",loadingEntry:"エントリの読込中..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"言語を切り替える",togglePreview:"プレビュー表示を切り替える",toggleScrollSync:"スクロール同期を切り替える"},editorToolbar:{publishing:"公開しています...",publish:"公開",published:"公開済",unpublish:"未公開",duplicate:"複製",unpublishing:"未公開にしています...",publishAndCreateNew:"公開して新規作成",publishAndDuplicate:"公開して複製する",deleteUnpublishedChanges:"未公開の変更を削除",deleteUnpublishedEntry:"未公開エントリを削除",deletePublishedEntry:"公開エントリを削除",deleteEntry:"エントリを削除",saving:"保存中...",save:"保存",statusInfoTooltipDraft:"エントリのステータスは下書きに設定されています。最終決定してレビューに提出するには、ステータスを「レビュー中」に設定します。",statusInfoTooltipInReview:"エントリはレビュー中なので、それ以上のアクションは必要ありません。ただし、レビュー中でも追加の変更を行うことができます。",deleting:"削除しています...",updating:"更新しています...",status:"ステータス: %{status}",backCollection:"%{collectionLabel}のエントリを作成中",unsavedChanges:"未保存",changesSaved:"保存済",draft:"下書き",inReview:"レビュー中",ready:"準備完了",publishNow:"公開する",deployPreviewPendingButtonLabel:"プレビューのチェック",deployPreviewButtonLabel:"プレビューを見る",deployButtonLabel:"ライブで見る",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"太字",italic:"斜体",strikethrough:void 0,code:"コード",codeBlock:void 0,insertCodeBlock:void 0,link:"リンク",insertLink:void 0,paragraph:void 0,headings:"見出し",quote:"引用",insertQuote:void 0,bulletedList:"箇条書き",numberedList:"番号付きリスト",addComponent:"コンポーネント追加",richText:"リッチテキスト",markdown:"マークダウン",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"画像を選択",chooseMultiple:void 0,chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"画像のURLを入力してください",chooseDifferent:"他の画像を選択",addMore:void 0,remove:"画像を削除",removeAll:void 0},file:{choose:"ファイルを選択",chooseUrl:"URLを入力する",chooseMultiple:void 0,replaceUrl:"URLを変更する",promptUrl:"ファイルのURLを入力してください",chooseDifferent:"他のファイルを選択",addMore:void 0,remove:"ファイルを削除",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"'%{widget}'はウィジェットとして利用できません。"},unknownPreview:{noPreview:"'%{widget}'のウィジェットにはプレビューがありません。"},headingOptions:{headingOne:"見出し 1",headingTwo:"見出し 2",headingThree:"見出し 3",headingFour:"見出し 4",headingFive:"見出し 5",headingSix:"見出し 6"},datetime:{now:"現時刻",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"下書き",copy:"コピー",copyUrl:"URLをコピー",copyPath:"パスをコピー",copyName:"名前をコピー",copied:"コピーしました"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"選択しているデータを削除しますか?",fileTooLargeTitle:void 0,fileTooLargeBody:"ファイルサイズが大きすぎます。\n%{size} kB 以下にしてください。",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"データがありません。",noAssetsFound:"データがありません。",noImagesFound:"データがありません。",private:"プライベート",images:"画像",mediaAssets:"メディア",search:"検索",uploading:"アップロード中...",upload:"アップロードする",download:"ダウンロードする",deleting:"削除中...",deleteSelected:"削除する",chooseSelected:"選択する",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"サイトに戻る"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"エラー",details:"エラーが発生しました。",reportIt:"レポートする",detailsHeading:"詳細",privacyWarning:"エラーメッセージとデバッグのデータがレポートする前に表示されます。\n情報が正しいことを確認し、機密データが存在する場合は削除してください。",recoveredEntry:{heading:"復旧したエントリ",warning:"必要あれば、このページから遷移する前にコピーしてください。",copyButtonLabel:"コピーする"}},settingsDropdown:{theme:void 0,logOut:"ログアウト"},toast:{onFailToLoadEntries:"エントリの読み込みに失敗しました。%{details}",onFailToLoadDeployPreview:"プレビューの読み込みに失敗しました。%{details}",onFailToPersist:"エントリの保存に失敗しました。%{details}",onFailToPersistMedia:void 0,onFailToDelete:"エントリの削除に失敗しました。%{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"エントリのステータス更新に失敗しました。%{details}",missingRequiredField:"すべての必須項目を入力してください。",entrySaved:"保存しました。",entryDeleted:void 0,entryPublished:"公開しました。",entryUnpublished:"未公開にしました。",onFailToPublishEntry:"エントリの公開に失敗しました。%{details}",onFailToUnpublishEntry:"エントリを未公開にするのに失敗しました。%{details}",entryUpdated:"エントリのステータスを更新しました。",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"未公開の変更を削除しました。",onFailToAuth:"%{details}",onLoggedOut:"ログアウトされています。データをバックアップし、再度ログインしてください。",onBackendDown:"バックエンドのシステムが停止しています。%{details}"}},workflow:{workflow:{dashboard:void 0,loading:"ワークフロー内のエントリを読込中",workflowHeading:"ワークフロー",newPost:"新規作成",description:"%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。",dateFormat:"M月D日"},workflowCard:{lastChange:"%{author}が%{date}に更新",lastChangeNoAuthor:"最終更新日:%{date}",lastChangeNoDate:"最終更新者:%{author}",deleteChanges:"変更を削除",deleteNewEntry:"エントリを削除",publishChanges:"変更を公開",publishNewEntry:"エントリを公開"},workflowList:{onDeleteEntry:"このエントリを削除しますか?",onPublishingNotReadyEntry:"「準備完了」のエントリのみを公開できます。「準備完了」列にカードを移動し、ステータスを更新してください。",onPublishEntry:"このエントリを公開しますか?",draft:"下書き",pending_review:"レビュー中",pending_publish:"準備完了",currentEntries:"%{smart_count}件のエントリ"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},nl:{auth:{login:"Inloggen",loggingIn:"Inloggen...",loginWithNetlifyIdentity:"Inloggen met Netlify Identity",loginWithBitbucket:"Inloggen met Bitbucket",loginWithGitHub:"Inloggen met GitHub",loginWithGitLab:"Inloggen met GitLab",loginWithGitea:"Inloggen met Gitea",errors:{email:"Voer uw email in.",password:"Voer uw wachtwoord in.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Netlify Identity instellingen niet gevonden. Wanneer u git-gateway als backend gebruikt moet u de Identity service en Git Gateway activeren in uw Netlify instellingen."}},app:{header:{content:"Inhoud",workflow:"Workflow",media:"Media",quickAdd:"Snel toevoegen"},app:{loading:"Laden...",errorHeader:"Fout bij het laden van de CMS configuratie",configErrors:"configuratiefouten",configNotFound:void 0,checkConfigYml:"Controleer je config.yml bestand",loadingConfig:"Configuatie laden...",waitingBackend:"Wachten op server..."},notFoundPage:{header:"Niet gevonden"}},collection:{sidebar:{collections:"Inhoudstypen",allCollections:"Alle inhoudstypen",searchAll:"Zoeken",searchIn:"Zoeken in"},collectionTop:{sortBy:"Sorteer op",viewAs:"Bekijk als",newButton:"Voeg %{collectionLabel} toe",ascending:"Oplopend",descending:"Aflopend",searchResults:'Zoekresultaten voor "%{searchTerm}"',searchResultsInCollection:'Zoekresultaten voor "%{searchTerm}" in %{collection}',filterBy:"Filteren op",groupBy:"Groepeer op"},entries:{loadingEntries:"Items laden",cachingEntries:"Items cachen",longerLoading:"Dit kan een paar minuten duren",noEntries:"Geen items"},groups:{other:"Anders",negateLabel:"Geen %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Bijgewerkt op"}},notFound:void 0},editor:{editorControl:{field:{optional:"optioneel"}},editorControlPane:{widget:{required:"%{fieldLabel} is vereist.",regexPattern:"%{fieldLabel} komt niet overeen met het patroon: %{pattern}.",processing:"%{fieldLabel} wordt verwerkt.",range:"%{fieldLabel} moet tussen %{minValue} en %{maxValue} liggen.",min:"%{fieldLabel} moet tenminste %{minValue} bevatten.",max:"%{fieldLabel} moet hoogstens %{maxValue} bevatten.",rangeCount:"%{fieldLabel} moet tussen %{minCount} en %{maxCount} item(s) bevatten.",rangeCountExact:"%{fieldLabel} moet exact %{count} item(s) bevatten.",rangeMin:"%{fieldLabel} moet tenminste %{minCount} item(s) bevatten.",rangeMax:"%{fieldLabel} moet hoogstens %{maxCount} item(s) bevatten.",invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"%{locale} aan het bewerken",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Weet je zeker dat je deze pagina wilt verlaten?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar ze voordat u de status bijwerkt.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Stel de status in op "Voltooid" voordat u publiceert.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar deze voordat u publiceert.",onPublishingTitle:void 0,onPublishingBody:"Weet u zeker dat u dit item wil publiceren?",onUnpublishingTitle:void 0,onUnpublishingBody:"Weet u zeker dat u de publicatie voor dit item ongedaan wilt maken?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Weet u zeker dat u dit gepubliceerde item en uw niet-opgeslagen wijzigingen uit de huidige sessie wilt verwijderen?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Weet u zeker dat u dit gepubliceerde item wilt verwijderen?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd, evenals uw niet-opgeslagen wijzigingen uit de huidige sessie. Wilt u nog steeds verwijderen?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd. Wilt u nog steeds verwijderen?",loadingEntry:"Item laden..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Wissel i18n",togglePreview:"Wissel voorvertoning",toggleScrollSync:"Synchroniseer scrollen"},editorToolbar:{publishing:"Publiceren...",publish:"Publiceer",published:"Gepubliceerd",unpublish:"Publicatie terugtrekken",duplicate:"Dupliceren",unpublishing:"Publicatie ongedaan maken...",publishAndCreateNew:"Publiceer en maak nieuw item aan",publishAndDuplicate:"Publiceer en dupliceer item",deleteUnpublishedChanges:"Verwijder niet-gepubliceerde wijzigingen",deleteUnpublishedEntry:"Niet-gepubliceerd item verwijderen",deletePublishedEntry:"Gepubliceerd item verwijderen",deleteEntry:"Item verwijderen",saving:"Opslaan...",save:"Opslaan",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Verwijderen...",updating:"Bijwerken...",status:"Status: %{status}",backCollection:" Terug naar %{collectionLabel}",unsavedChanges:"Niet-opgeslagen wijzigingen",changesSaved:"Wijzigingen opgeslagen",draft:"Concept",inReview:"Wordt beoordeeld",ready:"Klaar",publishNow:"Publiceer nu",deployPreviewPendingButtonLabel:"Controleer of voorvertoning geladen is",deployPreviewButtonLabel:"Bekijk voorvertoning",deployButtonLabel:"Bekijk Live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Vet",italic:"Cursief",strikethrough:void 0,code:"Code",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Hoofdtekst",quote:"Quote",insertQuote:void 0,bulletedList:"Lijst met opsommingstekens",numberedList:"Genummerde lijst",addComponent:"Voeg component toe",richText:"Rijke tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Kies een afbeelding",chooseMultiple:void 0,chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van de afbeelding in",chooseDifferent:"Kies een andere afbeelding",addMore:void 0,remove:"Verwijder afbeelding",removeAll:void 0},file:{choose:"Kies een bestand",chooseUrl:"Voeg toe via URL",chooseMultiple:void 0,replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van het bestand in",chooseDifferent:"Kies een ander bestand",addMore:void 0,remove:"Verwijder bestand",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Geen control voor widget '%{widget}'."},unknownPreview:{noPreview:"Geen voorvertoning voor widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Nu",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Voeg %{item} toe",addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Concept",copy:"Kopieer",copyUrl:"Kopieer URL",copyPath:"Kopieer pad",copyName:"Kopieer naam",copied:"Gekopieerd"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Weet u zeker dat u de geselecteerde media wilt verwijderen?",fileTooLargeTitle:void 0,fileTooLargeBody:"Het bestand is te groot.\n De instellingen staan geen bestanden toe groter dan %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Geen resultaten.",noAssetsFound:"Geen media gevonden.",noImagesFound:"Geen afbeeldingen gevonden.",private:"Privé",images:"Afbeeldingen",mediaAssets:"Media",search:"Zoeken...",uploading:"Uploaden...",upload:"Nieuwe uploaden",download:"Downloaden",deleting:"Verwijderen...",deleteSelected:"Verwijder selectie",chooseSelected:"Gebruik selectie",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Ga terug naar site"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Fout",details:"Er is een fout opgetreden - ",reportIt:"maak er alstublieft een melding van.",detailsHeading:"Details",privacyWarning:"Als u een probleem opent, wordt het vooraf gevuld met het foutbericht en foutopsporingsgegevens. \nControleer of de informatie correct is en verwijder, indien aanwezig, gevoelige gegevens.",recoveredEntry:{heading:"Hersteld document",warning:"Kopieer / plak dit ergens voordat u weggaat!",copyButtonLabel:"Kopieer naar klembord"}},settingsDropdown:{theme:void 0,logOut:"Uitloggen"},toast:{onFailToLoadEntries:"Kan item niet laden: %{details}",onFailToLoadDeployPreview:"Kan voorvertoning niet laden: %{details}",onFailToPersist:"Kan item niet opslaan: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Kan item niet verwijderen: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Kan status niet updaten: %{details}",missingRequiredField:"Oeps, sommige verplichte velden zijn niet ingevuld.",entrySaved:"Item opgeslagen",entryDeleted:void 0,entryPublished:"Item gepubliceerd",entryUnpublished:"Publicatie teruggetrokken",onFailToPublishEntry:"Kan item niet publiceren: %{details}",onFailToUnpublishEntry:"Kan item niet terugtrekken: %{details}",entryUpdated:"Status van item geüpdatet",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Niet-gepubliceerde wijzigingen verwijderd",onFailToAuth:"%{details}",onLoggedOut:"Je bent uitgelogd, back-up alstublieft uw data log daarna in",onBackendDown:"De backend-service ondervindt een storing. Zie% {details} voor meer informatie"}},workflow:{workflow:{dashboard:void 0,loading:"Redactionele Workflow items laden",workflowHeading:"Redactionele Workflow",newPost:"Nieuw bericht",description:"%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} door %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"door %{author}",deleteChanges:"Verwijder wijzigingen",deleteNewEntry:"Verwijder nieuw item",publishChanges:"Publiceer wijzigingen",publishNewEntry:"Publiceer nieuw item"},workflowList:{onDeleteEntry:"Weet u zeker dat u dit item wilt verwijderen?",onPublishingNotReadyEntry:'Alleen items met de status "Gereed" kunnen worden gepubliceerd. Sleep de kaart naar de kolom "Gereed" om publiceren mogelijk te maken.',onPublishEntry:"Weet u zeker dat u dit item wilt publiceren?",draft:"Concepten",pending_review:"Wordt beoordeeld",pending_publish:"Klaar",currentEntries:"%{smart_count} item |||| %{smart_count} items"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},nb_no:{auth:{login:"Logg inn",loggingIn:"Logger inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skrive inn e-posten din.",password:"Du må skrive inn passordet ditt.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Fant ingen innstillinger for Identity. Hvis du skal bruke git-gateway må du skru på Identity service og Git Gateway."}},app:{header:{content:"Innhold",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{loading:"Laster...",errorHeader:"Det oppstod en feil under lastingen av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",configNotFound:void 0,checkConfigYml:"Sjekk config.yml filen.",loadingConfig:"Laster konfigurasjon...",waitingBackend:"Venter på backend..."},notFoundPage:{header:"Ikke funnet"}},collection:{sidebar:{collections:"Samlinger",allCollections:void 0,searchAll:"Søk i alle",searchIn:void 0},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Synkende",searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrer innlegg...",longerLoading:"Dette kan ta opptil flere minutter",noEntries:"Ingen innlegg"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}},notFound:void 0},editor:{editorControl:{field:{optional:"valgfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrevd.",regexPattern:"%{fieldLabel} samsvarer ikke med mønsteret: %{pattern}.",processing:"%{fieldLabel} blir prosessert.",range:"%{fieldLabel} må være mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst være %{minValue}.",max:"%{fieldLabel} må være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element(er).",rangeMin:"%{fieldLabel} må minst ha %{minCount} element(er).",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element(er).",invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Er du sikker på du vil navigere bort fra denne siden?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Du må lagre endringene dine før du oppdaterer status.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Du må endre status til "Klar" før du publiserer.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Du må lagre endringene dine før du kan publisere.",onPublishingTitle:void 0,onPublishingBody:"Er du sikker på at du vil publisere?",onUnpublishingTitle:void 0,onUnpublishingBody:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Er du sikker på at du vil slette et publisert innlegg med tilhørende ulagrede endringer?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Handlingen sletter endringer som ikke er publisert eller lagret enda. Er du sikker på du vil fortsette?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle endringer som ikke er publisert i dette innlegget vil gå tapt. Vil du fortsette?",loadingEntry:"Laster innlegg..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringer",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slett innlegg",saving:"Lagrer...",save:"Lagre",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Sletter...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriver i samlingen %{collectionLabel}",unsavedChanges:"Ulagrede endringer",changesSaved:"Endringer lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser nå",deployPreviewPendingButtonLabel:"Kontroller forhåndsvisning",deployPreviewButtonLabel:"Vis forhåndsvisning",deployButtonLabel:"Vis i produksjon",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Rik-tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Velg et bilde",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Velg et annet bilde",addMore:void 0,remove:"Fjern bilde",removeAll:void 0},file:{choose:"Velg en fil",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Velg en annen fil",addMore:void 0,remove:"Fjern fil",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen forhåndsvisning tilgjengelig for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nå",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Er du sikker på at du vil slette markert element?",fileTooLargeTitle:void 0,fileTooLargeBody:"Filen er for stor.\nMaksimal konfiguert filstørrelse er %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer funnet.",noImagesFound:"Ingen bilder funnet.",private:"Privat ",images:"Bilder",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Laster opp...",upload:"Last opp",download:"Last ned",deleting:"Sletter...",deleteSelected:"Slett markert",chooseSelected:"Velg markert",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Gå tilbake til siden"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Feil",details:"Det har oppstått en feil. Det er fint om du ",reportIt:"oppretter et issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du åpner et issue forhåndsutfylles feil og feilsøkingsdata. Dobbeltsjekk at informasjonen er riktig, og fjern eventuelle sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan være lurt å ta kopi av innholdet før navigerer bort fra denne siden!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{theme:void 0,logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikke laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikke laste forhåndsvisning: %{details}",onFailToPersist:"Kunne ikke lagre: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Kunne ikke slette: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Kunne ikke laste opp: %{details}",missingRequiredField:"Oisann, ser ut som du glemte et påkrevd felt. Du må fylle det ut før du kan fortsette.",entrySaved:"Innlegg lagret",entryDeleted:void 0,entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikke publisere: %{details}",onFailToUnpublishEntry:"Kunne ikke avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Avpubliserte endringer slettet",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Laster innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringer",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringer",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan bare publisere innlegg i "Klar" kolonnen. Trekk kortet til riktig kolonne for å fortsette.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draft:"Kladd",pending_review:"Gjennomgås",pending_publish:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},nn_no:{auth:{login:"Logg inn",loggingIn:"Loggar inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skriva inn e-posten din.",password:"Du må skriva inn passordet ditt.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Fann ingen innstillingar for Identity. Om du ynskjer å nytte git-gateway må du hugse å skru på Identity service og Git Gateway"}},app:{header:{content:"Innhald",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{loading:"Lastar...",errorHeader:"Noko gjekk gale under lastinga av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",configNotFound:void 0,checkConfigYml:"Sjå over config.yml fila.",loadingConfig:"Lastar konfigurasjon...",waitingBackend:"Ventar på backend..."},notFoundPage:{header:"Ikkje funnen"}},collection:{sidebar:{collections:"Samlingar",allCollections:void 0,searchAll:"Søk i alle",searchIn:void 0},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Synkande",searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrar innlegg...",longerLoading:"Dette kan ta fleire minutt",noEntries:"Ingen innlegg"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}},notFound:void 0},editor:{editorControl:{field:{optional:"valfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} krevast.",regexPattern:"%{fieldLabel} samsvarar ikkje med mønsteret: %{pattern}.",processing:"%{fieldLabel} vart prosessert.",range:"%{fieldLabel} må vera mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst vera %{minValue}.",max:"%{fieldLabel} må vera %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element.",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element.",rangeMin:"%{fieldLabel} må minst ha %{minCount} element.",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element.",invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Er du sikker på at du vil navigere bort frå denne sida?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Du må lagra endringane dine før du endrar status",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Du må endre status til "Klar" før du publiserer',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Du må laga endringane dine før du kan publisere.",onPublishingTitle:void 0,onPublishingBody:"Er du sikker på at vil publisere?",onUnpublishingTitle:void 0,onUnpublishingBody:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Er du sikkert på at du vil slette eit publisert innlegg med tilhøyrande ulagra endringar?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Handlinga slettar endringar som ikkje er publisert eller lagra. Vil du halde fram?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle endringar som ikkje er publisert vil gå tapt. Vil du halde fram?",loadingEntry:"Lastar innlegg..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringar",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slettar innlegg",saving:"Lagrar...",save:"Lagre",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Slettar...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriv i samlinga %{collectionLabel}",unsavedChanges:"Ulagra endringar",changesSaved:"Endringar lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser no",deployPreviewPendingButtonLabel:"Kontroller førehandsvisning",deployPreviewButtonLabel:"Sjå førehandsvisning",deployButtonLabel:"Sjå i produksjon",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Rik-tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Vel bilete",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Vel eit anna bilete",addMore:void 0,remove:"Fjern bilete",removeAll:void 0},file:{choose:"Vel fil",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Vel ei anna fil",addMore:void 0,remove:"Fjern fil",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen førehandsvisning tilgjengeleg for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"No",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Er du sikker på at du vil slette markert element?",fileTooLargeTitle:void 0,fileTooLargeBody:"Fila er for stor.\nMaksimal konfiguert filstorleik er %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Ingen resultat.",noAssetsFound:"Ingen elementer funne.",noImagesFound:"Ingen bilete funne.",private:"Privat ",images:"Bileter",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Lastar opp...",upload:"Last opp",download:"Last ned",deleting:"Slettar...",deleteSelected:"Slett markert",chooseSelected:"Vel markert",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Attende til sida"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Feil",details:"Ein feil har oppstått. Det er fint om du ",reportIt:"opnar eit issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du opnar eit issue vart feil og feilsøkingsdata automatisk fylt ut. Hugs å sjå over at alt ser greitt ut, og ikkje inneheld sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan vere lurt å ta kopi av innhaldet før du navigerer bort frå denne sida!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{theme:void 0,logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikkje laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikkje laste førehandsvisning: %{details}",onFailToPersist:"Kunne ikkje lagre: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Kunne ikkje slette: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Kunne ikkje laste opp: %{details}",missingRequiredField:"Oisann, gløymte du noko? Alle påkrevde felt må fyllast ut før du kan halde fram",entrySaved:"Innlegg lagra",entryDeleted:void 0,entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikkje publisere: %{details}",onFailToUnpublishEntry:"Kunne ikkje avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Avpubliserte endringar sletta",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Lastar innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringar",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringar",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan berre publisere innlegg i "Klar" kolonna. Dra kortet til riktig stad for å halde fram.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draft:"Kladd",pending_review:"Gjennomgås",pending_publish:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},pl:{auth:{login:"Zaloguj się",loggingIn:"Logowanie...",loginWithNetlifyIdentity:"Zaloguj przez konto Netlify",loginWithBitbucket:"Zaloguj przez Bitbucket",loginWithGitHub:"Zaloguj przez GitHub",loginWithGitLab:"Zaloguj przez GitLab",loginWithGitea:"Zaloguj przez Gitea",errors:{email:"Wprowadź swój adres email",password:"Wprowadź swoje hasło",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Brak dostępu do ustawień tożsamości. Jeśli używasza backendu git-gateway upewnij się, że usługa tożsamośći (Identity service) oraz Git Gateway są włączone."}},app:{header:{content:"Treść",workflow:"Przebieg redakcyjny",media:"Multimedia",quickAdd:"Szybkie dodawanie"},app:{loading:"Ładowanie...",errorHeader:"Błąd ładowania konfiguracji CMS",configErrors:"Błędy konfiguracji",configNotFound:void 0,checkConfigYml:"Sprawdź plik config.yml.",loadingConfig:"Ładowanie konfiguracji...",waitingBackend:"Oczekiwanie na backend..."},notFoundPage:{header:"Nie znaleziono"}},collection:{sidebar:{collections:"Kolekcje",allCollections:"Wszystkie kolekcje",searchAll:"Wyszukaj wszystkie",searchIn:"Wyszukaj w"},collectionTop:{sortBy:"Sortuj po",viewAs:"Wyświetl jako",newButton:"Nowy %{collectionLabel}",ascending:"Rosnąco",descending:"Malejąco",searchResults:"Wyszukaj wyniki dla %{searchTerm}",searchResultsInCollection:"Wyszukaj wyniki dla %{searchTerm} w %{collection}",filterBy:"Filtruj po",groupBy:"Grupuj po"},entries:{loadingEntries:"Ładowanie pozycji...",cachingEntries:"Ładowanie pozycji do pamięci podręcznej...",longerLoading:"To może zająć kilka minut",noEntries:"Brak pozycji"},groups:{other:"Inne",negateLabel:"Nie %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Zaktualizowano"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcjonalne"}},editorControlPane:{widget:{required:"%{fieldLabel} jest wymagane.",regexPattern:"%{fieldLabel} nie pasuje do formatu: %{pattern}.",processing:"%{fieldLabel} jest przetwarzane.",range:"%{fieldLabel} musi być pomiędzy %{minValue} a %{maxValue}.",min:"%{fieldLabel} musi być co najmniej %{minValue}.",max:"%{fieldLabel} musi być %{maxValue} lub mniej.",rangeCount:"%{fieldLabel} musi mieć od %{minCount} do %{maxCount} elementów",rangeCountExact:"%{fieldLabel} musi mieć %{count} elementów",rangeMin:"%{fieldLabel} musi mieć przynajmniej %{minCount} elementów",rangeMax:"%{fieldLabel} może mieć maksymalnie %{maxCount} elementów",invalidPath:"'%{path}' nie jest poprawna",pathExists:"Ścieżka '%{path}' już istnieje",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Pisz w języku %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Czy na pewno chcesz opuścić tę stronę?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Masz niezapisane zmiany, proszę zapisz je przed aktualizacją statusu.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Proszę zaktualizować status do "Gotowe" przed publikacją.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Masz niezapisane zmiany, proszę zapisz je przed publikacją.",onPublishingTitle:void 0,onPublishingBody:"Czy na pewno chcesz opublikować tę pozycję?",onUnpublishingTitle:void 0,onUnpublishingBody:"Czy na pewno chcesz cofnąć publikację tej pozycji?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Czy na pewno chcesz usunąć tę opublikowaną pozycję, a także niezapisane zmiany z bieżącej sesji?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Czy na pewno chcesz usunąć tę opublikowaną pozycję?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Spowoduje to usunięcie wszystkich nieopublikowanych zmian tej pozycji, a także niezapisanych zmian z bieżącej sesji. Czy nadal chcesz usunąć?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Wszystkie nieopublikowane zmiany tej pozycji zostaną usunięte. Czy nadal chcesz usunąć?",loadingEntry:"Ładowanie pozycji..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Przełącz i18n",togglePreview:"Przełącz podgląd",toggleScrollSync:"Synchroniczne przesuwanie"},editorToolbar:{publishing:"Publikowanie...",publish:"Opublikuj",published:"Opublikowane",unpublish:"Cofnij publikację",duplicate:"Zduplikuj",unpublishing:"Cofanie publikacji...",publishAndCreateNew:"Opublikuj i dodaj nowy",publishAndDuplicate:"Opublikuj i zduplikuj",deleteUnpublishedChanges:"Usuń nieopublikowane zmiany",deleteUnpublishedEntry:"Usuń nieopublikowaną pozycję",deletePublishedEntry:"Usuń opublikowaną pozycję",deleteEntry:"Usuń pozycję",saving:"Zapisywanie...",save:"Zapisz",statusInfoTooltipDraft:"Dodano jako wersję roboczą. Aby zakończyć i oddać do recenzji zmień status na `Do recenzji`",statusInfoTooltipInReview:"Wpis jest w trakcie recenzji, żadne dodatkowe akcje nie są wymagane. Jeśli chcesz, możesz jeszcze nanieść zmiany.",deleting:"Usuwanie...",updating:"Uaktualnianie...",status:"Status: %{status}",backCollection:" Edycja treści w zbiorze %{collectionLabel}",unsavedChanges:"Niezapisane zmiany",changesSaved:"Zmiany zapisane",draft:"Wersja robocza",inReview:"W recenzji",ready:"Gotowe",publishNow:"Opublikuj teraz",deployPreviewPendingButtonLabel:"Sprawdź, czy istnieje podgląd",deployPreviewButtonLabel:"Zobacz podgląd",deployButtonLabel:"Zobacz na żywo",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Pogrubienie",italic:"Kursywa",strikethrough:void 0,code:"Kod",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Nagłówki",quote:"Cytat",insertQuote:void 0,bulletedList:"Lista punktowana",numberedList:"Lista numerowana",addComponent:"Dodaj komponent",richText:"Tekst sformatowany",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Wybierz zdjęcie",chooseMultiple:void 0,chooseUrl:"Dodaj adres URL zdjęcia",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Wprować adres URL zdjęcia",chooseDifferent:"Zmień zdjęcie",addMore:void 0,remove:"Usuń zdjęcie",removeAll:void 0},file:{choose:"Wybierz plik",chooseUrl:"Dodaj adres URL pliku",chooseMultiple:void 0,replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Dodaj adres URL pliku",chooseDifferent:"Wybierz inny plik",addMore:void 0,remove:"Usuń plik",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Brak kontrolki dla widżetu '%{widget}'."},unknownPreview:{noPreview:"Brak podglądu dla widżetu '%{widget}'."},headingOptions:{headingOne:"Nagłówek 1",headingTwo:"Nagłówek 2",headingThree:"Nagłówek 3",headingFour:"Nagłówek 4",headingFive:"Nagłówek 5",headingSix:"Nagłówek 6"},datetime:{now:"Teraz",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Dodaj %{item}",addType:"Dodaj nowy %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Wersja robocza",copy:"Kopiuj",copyUrl:"Kopiuj URL",copyPath:"Kopiuj ścieżkę",copyName:"Kopiuj nazwę",copied:"Skopiowano"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Czy na pewno chcesz usunąć zaznaczone multimedia?",fileTooLargeTitle:void 0,fileTooLargeBody:"Plik jest za duży.\nUstawiony maksymalny rozmiar pliku: %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Brak wyników.",noAssetsFound:"Nie znaleziono żadnych zasobów.",noImagesFound:"Nie znaleziono żadnych obrazów.",private:"Prywatne ",images:"Obrazy",mediaAssets:"Zasoby multimedialne",search:"Szukaj...",uploading:"Przesyłanie...",upload:"Prześlij nowe",download:"Pobierz",deleting:"Usuwanie...",deleteSelected:"Usuń zaznaczone",chooseSelected:"Wybierz zaznaczone",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Wróć do strony"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Błąd",details:"Wystąpił błąd - proszę ",reportIt:"zgłoś to.",detailsHeading:"Szczegóły",privacyWarning:"Nowe zgłoszenie zostanie wstępnie wypełnione danymi o błędzie.\nZweryfikuj czy dane są poprawne i usuń wrażliwe informacje jeśli takie zostały dodane.",recoveredEntry:{heading:"Odzyskany dokument",warning:"Proszę skopiuj/wklej to gdzieś zanim opuścisz tę stronę!",copyButtonLabel:"Skopiuj do schowka"}},settingsDropdown:{theme:void 0,logOut:"Wyloguj się"},toast:{onFailToLoadEntries:"Nie udało się załadować pozycji: %{details}",onFailToLoadDeployPreview:"Nie udało się załadować podglądu: %{details}",onFailToPersist:"Nie udało się zapisać pozycji: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Nie udało się usunąć pozycji: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Nie udało się zaktualizować statusu: %{details}",missingRequiredField:"Ups, przegapiłeś wymagane pole. Proszę uzupełnij przed zapisaniem.",entrySaved:"Pozycja zapisana",entryDeleted:void 0,entryPublished:"Pozycja opublikowana",entryUnpublished:"Cofnięto publikację pozycji",onFailToPublishEntry:"Nie udało się opublikować: %{details}",onFailToUnpublishEntry:"Nie udało się cofnąć publikacji pozycji: %{details}",entryUpdated:"Zaktualizowano status pozycji",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Nieopublikowane zmiany zostały usunięte",onFailToAuth:"%{details}",onLoggedOut:"Zostałeś wylogowany, utwórz kopię zapasową danych i zaloguj się ponownie.",onBackendDown:"Usługa backendu uległa awarii. Zobacz więcej informacji: %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Ładowanie pozycji przebiegu redakcyjnego",workflowHeading:"Przebieg redakcyjny",newPost:"Nowa pozycja",description:"%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} przez %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"przez %{author}",deleteChanges:"Usuń zmiany",deleteNewEntry:"Usuń nową pozycję",publishChanges:"Opublikuj zmiany",publishNewEntry:"Opublikuj nową pozycję"},workflowList:{onDeleteEntry:"Czy na pewno chcesz usunąć tę pozycję?",onPublishingNotReadyEntry:"Tylko pozycje o statusie „Gotowe” mogą być publikowane. Przeciągnij proszę kartę do kolumny „Gotowe do publikacji”, aby umożliwić publikowanie.",onPublishEntry:"Czy na pewno chcesz opublikować tę pozycję?",draft:"Wersje robocze",pending_review:"W recenzji",pending_publish:"Gotowe do publikacji",currentEntries:"%{smart_count} pozycja |||| %{smart_count} pozycje |||| %{smart_count} pozycji"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},pt:{auth:{login:"Entrar",loggingIn:"Entrando...",loginWithNetlifyIdentity:"Entrar com o Netlify Identity",loginWithBitbucket:"Entrar com o Bitbucket",loginWithGitHub:"Entrar com o GitHub",loginWithGitLab:"Entrar com o GitLab",loginWithGitea:"Entrar com o Gitea",errors:{email:"Certifique-se de inserir seu e-mail.",password:"Por favor, insira sua senha.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Não foi possível acessar as configurações de identidade. Ao usar o back-end git-gateway, certifique-se de habilitar o serviço Identity e o Git Gateway."}},app:{header:{content:"Conteúdos",workflow:"Fluxo de Trabalho",media:"Mídia",quickAdd:"Adição rápida"},app:{loading:"Carregando...",errorHeader:"Erro ao carregar a configuração do CMS",configErrors:"Erros de configuração",configNotFound:void 0,checkConfigYml:"Verifique o arquivo config.yml.",loadingConfig:"Carregando configuração...",waitingBackend:"Aguardando o back-end..."},notFoundPage:{header:"Não Encontrado"}},collection:{sidebar:{collections:"Coleções",allCollections:"Todas as Coleções",searchAll:"Pesquisar em todos",searchIn:"Pesquisar em"},collectionTop:{sortBy:"Ordenar por",viewAs:"Visualizar como",newButton:"Novo(a) %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:'Resultados da busca por "%{searchTerm}"',searchResultsInCollection:'Resultados da busca por "%{searchTerm}" em %{collection}',filterBy:"Filtrar por",groupBy:"Agrupar por"},entries:{loadingEntries:"Carregando Entradas",cachingEntries:"Armazenando Entradas em Cache",longerLoading:"Isso pode levar alguns minutos",noEntries:"Nenhuma Entrada"},groups:{other:"Outro",negateLabel:"Não %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Atualizado em"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} é obrigatório.",regexPattern:"%{fieldLabel} não corresponde com o padrão: %{pattern}.",processing:"%{fieldLabel} está processando.",range:"%{fieldLabel} deve estar entre %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve ser, no mínimo, %{minValue}.",max:"%{fieldLabel} deve ser igual ou menor que %{maxValue}.",rangeCount:"%{fieldLabel} deve ser entre %{minCount} e %{maxCount}.",rangeCountExact:"%{fieldLabel} deve ser exatamente %{count}.",rangeMin:"%{fieldLabel} deve ter, pelo menos, %{minCount}.",rangeMax:"%{fieldLabel} deve ter %{maxCount} ou menos.",invalidPath:"'%{path}' não é um caminho válido",pathExists:"O caminho '%{path}' já existe",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Escrevendo em %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Tem certeza que deseja sair desta página?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Há mudanças não salvas. Por favor, salve-as antes de atualizar o status.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Por favor, altere o status para "Pronto" antes de publicar.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Há mudanças não salvas. Por favor, salve-as antes de publicar.",onPublishingTitle:void 0,onPublishingBody:"Tem certeza que deseja publicar essa entrada?",onUnpublishingTitle:void 0,onUnpublishingBody:"Tem certeza que deseja cancelar a publicação dessa entrada?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Tem certeza de que deseja excluir esta entrada publicada, bem como as alterações não salvas da sessão atual?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Tem certeza de que deseja excluir esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Isso excluirá todas as alterações não publicadas nesta entrada, bem como as alterações não salvas da sessão atual. Você ainda deseja excluir?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Todas as alterações não publicadas nesta entrada serão excluídas. Você ainda deseja excluir?",loadingEntry:"Carregando entrada..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Mudar i18n",togglePreview:"Mudar pré-visualização",toggleScrollSync:"Sincronizar rolagem"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Despublicar",duplicate:"Duplicado",unpublishing:"Despublicando...",publishAndCreateNew:"Publicar e criar novo(a)",publishAndDuplicate:"Publicar e duplicar",deleteUnpublishedChanges:"Excluir alterações não publicadas",deleteUnpublishedEntry:"Excluir entrada não publicada",deletePublishedEntry:"Excluir entrada publicada",deleteEntry:"Excluir entrada",saving:"Salvando...",save:"Salvar",statusInfoTooltipDraft:"Entrada definida como rascunho. Para finalizar e enviá-la a revisão, mude seu estado para 'Em revisão'",statusInfoTooltipInReview:"Entrada está sendo revisada, nenhuma ação extra é requirida. Porém, você ainda pode fazer mudanças adicionais enquanto ela está sendo revisada.",deleting:"Excluindo...",updating:"Atualizando...",status:"Status: %{status}",backCollection:" Escrevendo na coleção %{collectionLabel}",unsavedChanges:"Alterações não salvas",changesSaved:"Alterações salvas",draft:"Rascunho",inReview:"Em revisão",ready:"Pronto",publishNow:"Publicar agora",deployPreviewPendingButtonLabel:"Verificar se há Pré-visualização",deployPreviewButtonLabel:"Ver Pré-visualização",deployButtonLabel:"Ver em Produção",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Negrito",italic:"Itálico",strikethrough:void 0,code:"Código",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Cabeçalho",quote:"Citação",insertQuote:void 0,bulletedList:"Lista Pontilhada",numberedList:"Lista Numerada",addComponent:"Adicionar Componente",richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Escolha uma imagem",chooseMultiple:void 0,chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL da imagem",chooseDifferent:"Escolha uma imagem diferente",addMore:void 0,remove:"Remover imagem",removeAll:void 0},file:{choose:"Escolha um arquivo",chooseUrl:"Inserir de uma URL",chooseMultiple:void 0,replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL do arquivo",chooseDifferent:"Escolha um arquivo diferente",addMore:void 0,remove:"Remover arquivo",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Nenhum controle para o widget '%{widget}'."},unknownPreview:{noPreview:"Nenhuma pré-visualização para o widget '%{widget}'."},headingOptions:{headingOne:"Título nível 1",headingTwo:"Título nível 2",headingThree:"Título nível 3",headingFour:"Título nível 4",headingFive:"Título nível 5",headingSix:"Título nível 6"},datetime:{now:"Agora",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Adicionar %{item}",addType:"Adicionar %{item} item",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Rascunho",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar Caminho",copyName:"Copiar Nome",copied:"Copiado"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Tem certeza de que deseja excluir a mídia selecionada?",fileTooLargeTitle:void 0,fileTooLargeBody:"Arquivo muito grande.\nConfigurado para não permitir arquivos maiores que %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nenhum resultado.",noAssetsFound:"Nenhum recurso encontrado.",noImagesFound:"Nenhuma imagem encontrada.",private:"Privado ",images:"Imagens",mediaAssets:"Recursos de mídia",search:"Pesquisar...",uploading:"Enviando...",upload:"Enviar novo",download:"Download",deleting:"Excluindo...",deleteSelected:"Excluir selecionado",chooseSelected:"Escolher selecionado",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Voltar ao site"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Erro",details:"Ocorreu um erro - por favor ",reportIt:"relatar.",detailsHeading:"Detalhes",privacyWarning:"Ao abrir uma issue, ela é preenchida com a mensagem de erro e o log de debug.\nPor favor, verifique se a informação está correta e remova dados sensíveis caso existam.",recoveredEntry:{heading:"Documento recuperado",warning:"Copie/cole isso em algum lugar antes de sair!",copyButtonLabel:"Copiar para área de transferência"}},settingsDropdown:{theme:void 0,logOut:"Sair"},toast:{onFailToLoadEntries:"Falha ao carregar a entrada: %{details}",onFailToLoadDeployPreview:"Falha ao carregar a pré-visualização: %{details}",onFailToPersist:"Falha ao persistir na entrada: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Falha ao excluir a entrada: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Falha ao atualizar status: %{details}",missingRequiredField:"Ops, você perdeu um campo obrigatório. Por favor, preencha antes de salvar.",entrySaved:"Entrada salva",entryDeleted:void 0,entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"Falha ao publicar: %{details}",onFailToUnpublishEntry:"Falha ao cancelar a publicação da entrada: %{details}",entryUpdated:"Status da entrada atualizado",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Alterações não publicadas excluídas",onFailToAuth:"%{details}",onLoggedOut:"Você foi desconectado. Por favor, salve as alterações e entre novamente",onBackendDown:"O serviço de back-end está fora do ar. Veja %{details} para mais informações"}},workflow:{workflow:{dashboard:void 0,loading:"Carregando entradas do Fluxo de Trabalho Editorial",workflowHeading:"Fluxo de Trabalho Editorial",newPost:"Nova Publicação",description:"%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Excluir alterações",deleteNewEntry:"Excluir nova entrada",publishChanges:"Publicar alterações",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Tem certeza de que deseja excluir esta entrada?",onPublishingNotReadyEntry:'Somente itens com o status "Pronto" podem ser publicados. Arraste o cartão para a coluna "Pronto" para poder publicar.',onPublishEntry:"Tem certeza de que quer publicar esta entrada?",draft:"Rascunhos",pending_review:"Em Revisão",pending_publish:"Prontos",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ro:{auth:{login:"Autentifică-te",loggingIn:"Te autentificăm...",loginWithNetlifyIdentity:"Autentifică-te cu Netlify Identity",loginWithBitbucket:"Autentifică-te cu Bitbucket",loginWithGitHub:"Autentifică-te cu GitHub",loginWithGitLab:"Autentifică-te cu GitLab",loginWithGitea:"Autentifică-te cu Gitea",errors:{email:"Asigură-te că ai introdus email-ul.",password:"Te rugăm introdu parola.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Nu s-a putut accesa serviciul de autentificare. Dacă folosești git-gateway, asigură-te că ai activat serviciul Identity și Git-Gateway."}},app:{header:{content:"Conținut",workflow:"Workflow",media:"Fișiere",quickAdd:"Adaugă"},app:{loading:"Se încarcă...",errorHeader:"A apărut o eroare cu configurarea CMS-ului.",configErrors:"Au apărut erori de configurare.",configNotFound:void 0,checkConfigYml:"Verifică fișierul de configurare (config.yml).",loadingConfig:"Se încarcă configurările...",waitingBackend:"Așteptăm după backend..."},notFoundPage:{header:"Pagină inexistentă."}},collection:{sidebar:{collections:"Colecții",allCollections:"Toate colecțiile",searchAll:"Căutare",searchIn:"Caută în"},collectionTop:{sortBy:"Sortează",viewAs:"Vizualizează ca",newButton:"Adaugă %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Rezultatele căutării pentru "%{searchTerm}"',searchResultsInCollection:'Rezultatele căutării pentru "%{searchTerm}" în %{collection}',filterBy:"Filtrează după",groupBy:"Grupează după"},entries:{loadingEntries:"Se încarcă intrările...",cachingEntries:"Se salvează temporar intrările...",longerLoading:"Ar putea dura câteva minute.",noEntries:"Nu există intrări."},groups:{other:"Altul",negateLabel:"Nu %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizat la"}},notFound:void 0},editor:{editorControl:{field:{optional:"opțional"}},editorControlPane:{widget:{required:"%{fieldLabel}” este obligatoriu.",regexPattern:"%{fieldLabel} nu se potrivește după modelul: %{pattern}.",processing:"%{fieldLabel} se procesează.",range:"%{fieldLabel} poate fi între %{minValue} și %{maxValue}.",min:"%{fieldLabel} poate fi mai mare sau egal cu %{minValue}.",max:"%{fieldLabel} poate fi mai mic sau egal cu %{maxValue}.",rangeCount:"%{fieldLabel} poate avea între %{minCount} și %{maxCount} intrări.",rangeCountExact:"%{fieldLabel} trebuie să conțină exact %{count} intrări.",rangeMin:"%{fieldLabel} trebuie să conțină cel puțin %{minCount} intrări.",rangeMax:"%{fieldLabel} trebuie să conțină cel mult %{maxCount} intrări.",invalidPath:"'%{path}' nu este o cale validă.",pathExists:"Calea '%{path}' există deja.",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Scrii în limba %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Ești sigur/ă că dorești să părăsești pagina?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Există modificări nesalvate! Te rugăm salvează înainte de a actualiza statusul.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"Actualizează statusul la „Gata” înainte de publicare.",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Există modificări nesalvate, salvează-le înainte de publicare.",onPublishingTitle:void 0,onPublishingBody:"Ești sigur/ă că dorești să publici acest articol?",onUnpublishingTitle:void 0,onUnpublishingBody:"Ești sigur/ă că dorești să anulezi publicarea acestui articol?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Ești sigur/ă că dorești să ștergi această publicare, dar și modificările nesalvate din sesiunea curentă?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Ești sigur/ă că dorești să ștergi această publicare?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Se vor șterge toate modificările nepublicate din aceast articol și modificările nesalvate din sesiunea curentă. Continui cu ștergerea?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Toate modificările nepublicate din acest articol vor fi șterse. Continui cu ștergerea?",loadingEntry:"Se încarcă..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Comută limba",togglePreview:"Comută previzualizarea",toggleScrollSync:"Sincronizează scroll-ul"},editorToolbar:{publishing:"Se publică...",publish:"Publicare",published:"Publicat",unpublish:"Anulează publicarea",duplicate:"Duplifică",unpublishing:"Se anulează publicarea...",publishAndCreateNew:"Publicare apoi crează altul",publishAndDuplicate:"Publicare apoi duplifică",deleteUnpublishedChanges:"Șterge modificări nepublicate",deleteUnpublishedEntry:"Șterge intrarea nepublicată",deletePublishedEntry:"Șterge intrarea publicată",deleteEntry:"Șterge intrare",saving:"Se salvează...",save:"Salvează",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Se șterge...",updating:"Se actualizează...",status:"Status: %{status}",backCollection:" Scrii în colecția „%{collectionLabel}”",unsavedChanges:"Modificări nesalvate",changesSaved:"Modificări salvate",draft:"Ciornă",inReview:"În revizuire",ready:"Gata",publishNow:"Publicare",deployPreviewPendingButtonLabel:"Verifică publicare",deployPreviewButtonLabel:"Previzualizare",deployButtonLabel:"Vezi publicarea",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",strikethrough:void 0,code:"Cod sursă",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Titluri",quote:"Citat",insertQuote:void 0,bulletedList:"Listă cu puncte",numberedList:"Listă cu numere",addComponent:"Adaugă componentă",richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Alege o imagine",chooseMultiple:void 0,chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul imaginii",chooseDifferent:"Alege altă imagine",addMore:void 0,remove:"Șterge imaginea",removeAll:void 0},file:{choose:"Alege un fișier",chooseUrl:"Inserează din URL",chooseMultiple:void 0,replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul fișierului",chooseDifferent:"Alege alt fișier",addMore:void 0,remove:"Șterge fișier",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Widget-ul „%{widget}” nu are configurări valabile."},unknownPreview:{noPreview:"Nu există previzualizare pentru widget-ul „%{widget}”."},headingOptions:{headingOne:"Titlu 1",headingTwo:"Titlu 2",headingThree:"Titlu 3",headingFour:"Titlu 4",headingFive:"Titlu 5",headingSix:"Titlu 6"},datetime:{now:"Acum",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Ciornă",copy:"Copiază",copyUrl:"Copiază URL",copyPath:"Copiază cale",copyName:"Copiaza nume",copied:"Copiat"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Ești sigur/ă că dorești să ștergi fișierul selectat?",fileTooLargeTitle:void 0,fileTooLargeBody:"Fișier prea mare.\nConfigurarea nu permite fișiere mai mari de %{size} KB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nu sunt rezultate.",noAssetsFound:"Nu s-au găsit fișiere.",noImagesFound:"Nu s-au găsit imagini.",private:"Privat ",images:"Imagini",mediaAssets:"Fișiere media",search:"Caută...",uploading:"Se încarcă...",upload:"Încarcă",download:"Descarcă",deleting:"Se șterge...",deleteSelected:"Șterge fișierele selectate",chooseSelected:"Alege fișierele selectate",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Înapoi la site"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Eroare",details:"A apărut o eroare - te rugăm ",reportIt:"Deschide o problemă pe GitHub.",detailsHeading:"Detalii",privacyWarning:"Problema deschisă va fi precompletată cu mesajul de eroare și datele de depanare.\nTe rugăm verifică datele să fie corecte și șterge orice fel de date personale.",recoveredEntry:{heading:"Document recuperat",warning:"Te rugăm să faci copy/paste la datele acestea undeva înainte de ieșire!",copyButtonLabel:"Copiază în clipboard"}},settingsDropdown:{theme:void 0,logOut:"Ieșire din cont"},toast:{onFailToLoadEntries:"A eșuat încărcarea intrării: %{details}",onFailToLoadDeployPreview:"A eșuat încărcarea previzualizării: %{details}",onFailToPersist:"A eșuat persistarea intrării: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"A eșuat ștergerea intrării: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"A eșuat actualizarea status-ului: %{details}",missingRequiredField:"Oops, ai ratat un câmp obligatoriu. Completează-l pentru a salva.",entrySaved:"Intrare salvată",entryDeleted:void 0,entryPublished:"Intrare publicată",entryUnpublished:"Publicare anulată",onFailToPublishEntry:"A eșuat publicarea: %{details}",onFailToUnpublishEntry:"A eșuat anularea publicării: %{details}",entryUpdated:"S-a actualizat status-ul intrării",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Modificări nepublicate șterse",onFailToAuth:"%{details}",onLoggedOut:"Ai fost delogat, te rugăm salvează orice date și autentifică-te din nou.",onBackendDown:"Există probleme la server. Vezi %{details} pentru mai multe informații."}},workflow:{workflow:{dashboard:void 0,loading:"Se încarcă intrările din Workflow-ul Editorial",workflowHeading:"Workflow Editorial",newPost:"Postare nouă",description:"%{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. |||| %{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} de %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"de %{author}",deleteChanges:"Modificări șterse",deleteNewEntry:"Șterge intrarea nouă",publishChanges:"Publicare modificări",publishNewEntry:"Publicare intrare nouă"},workflowList:{onDeleteEntry:"Ești sigur/ă că dorești ștergerea intrării?",onPublishingNotReadyEntry:"Numai intrări cu status-ul „Gata” pot fi publicate. Trage un card în coloana „Gata” pentru a putea publica.",onPublishEntry:"Ești sigur/ă că dorești să faci publicarea?",draft:"Ciorne",pending_review:"În revizuire",pending_publish:"Gata",currentEntries:"%{smart_count} intrări |||| %{smart_count} intrări"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ru:{auth:{login:"Войти",loggingIn:"Вхожу...",loginWithNetlifyIdentity:"Войти через Netlify Identity",loginWithBitbucket:"Войти через Bitbucket",loginWithGitHub:"Войти через GitHub",loginWithGitLab:"Войти через GitLab",loginWithGitea:"Войти через Gitea",errors:{email:"Введите ваш email.",password:"Введите пароль.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Нет доступа к настройкам. Если используете git-gateway, убедитесь, что включили Identity service и Git Gateway."}},app:{header:{content:"Записи",workflow:"Рабочая область",media:"Медиафайлы",quickAdd:"Быстрое добавление"},app:{loading:"Загрузка медифайлов…",errorHeader:"Ошибка загрузки конфигурации CMS",configErrors:"Ошибки конфигурации",configNotFound:void 0,checkConfigYml:"Проверьте свой config.yml файл.",loadingConfig:"Загрузка конфигурации…",waitingBackend:"Ожидание ответа от бэкенда…"},notFoundPage:{header:"Не найден"}},collection:{sidebar:{collections:"Коллекции",allCollections:"Все коллекции",searchAll:"Искать повсюду",searchIn:"Искать в"},collectionTop:{sortBy:"Сортировать по",viewAs:"Вид",newButton:"Создать %{collectionLabel}",ascending:"По возрастанию",descending:"По убывания",searchResults:'Результаты по запросу "%{searchTerm}"',searchResultsInCollection:'Результаты по запросу "%{searchTerm}" в %{collection}',filterBy:"Фильтровать по",groupBy:"Группировать по"},entries:{loadingEntries:"Загрузка записей…",cachingEntries:"Кэширование записей…",longerLoading:"Это может занять несколько минут",noEntries:"Нет записей"},groups:{other:"Другая",negateLabel:"Не %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Дате обновления"}},notFound:void 0},editor:{editorControl:{field:{optional:"необязательный"}},editorControlPane:{widget:{required:"Необходимо указать значение поля %{fieldLabel}.",regexPattern:"Значение поля %{fieldLabel} не соответствует шаблону: %{pattern}.",processing:"Значение поля %{fieldLabel} обрабатывается…",range:"Значение поля %{fieldLabel} должно быть между %{minValue} и %{maxValue}.",min:"Значение поля %{fieldLabel} должно быть не менее %{minValue}.",max:"Значение поля %{fieldLabel} должно быть %{maxValue} или менее.",rangeCount:"%{fieldLabel} должно содержать от %{minCount} до %{maxCount} элементов.",rangeCountExact:"%{fieldLabel} должно содержать строго %{count} элементов.",rangeMin:"%{fieldLabel} должно содержать не менее %{minCount} элементов.",rangeMax:"%{fieldLabel} должно содержать %{maxCount} или менее элементов.",invalidPath:"Путь '%{path}' содежрит ошибки",pathExists:"Путь '%{path}' уже существует",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Пишем на %{locale}",copyFromLocale:"Заполнить из другого региона",copyFromLocaleConfirm:"Вы хотите заполнять данные используя %{locale} локализацию?\nВесь существующий контент будет перезаписан."}},editor:{onLeavePage:"Вы уверены, что хотите покинуть эту страницу?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"У вас есть несохраненные изменения, сохраните их перед обновлением статуса.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"Пожалуйста, измените статус на «Готов» перед публикацией.",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"У вас есть несохраненные изменения, сохраните их перед публикацией.",onPublishingTitle:void 0,onPublishingBody:"Вы уверены, что хотите опубликовать эту запись?",onUnpublishingTitle:void 0,onUnpublishingBody:"Вы уверены, что хотите отменить публикацию этой записи?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Вы уверены, что хотите удалить эту опубликованную запись, а также несохраненные изменения из текущего сеанса?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Вы уверены, что хотите удалить эту опубликованную запись?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Это удалит все неопубликованные изменения в этой записи, а также ваши несохраненные изменения из текущего сеанса. Вы все еще хотите удалить?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Все неопубликованные изменения в этой записи будут удалены. Вы все еще хотите удалить?",loadingEntry:"Загрузка записи…"},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Переключиться на i18n",togglePreview:"Переключиться на предварительный просмотр",toggleScrollSync:"Синхронизация прокрутки"},editorToolbar:{publishing:"Публикация…",publish:"Опубликовать",published:"Опубликовано",unpublish:"Отменить публикацию",duplicate:"Дублировать",unpublishing:"Отмена публикации…",publishAndCreateNew:"Опубликовать и создать новую",publishAndDuplicate:"Опубликовать и дублировать",deleteUnpublishedChanges:"Удалить неопубликованные изменения",deleteUnpublishedEntry:"Удалить неопубликованную запись",deletePublishedEntry:"Удалить опубликованную запись",deleteEntry:"Удалить запись",saving:"Сохранение…",save:"Сохранить",statusInfoTooltipDraft:"Статус записи установлен на черновик. Чтобы доработать и отправить его на рассмотрение, установите статус «На рассмотрении».",statusInfoTooltipInReview:"Запись находится на рассмотрении, дальнейших действий не требуется. Тем не менее, вы все еще можете внести дополнительные изменения, пока она находится на рассмотрении.",deleting:"Удаление…",updating:"Обновление…",status:"Cтатус: %{status}",backCollection:"Запись в коллекцию %{collectionLabel}",unsavedChanges:"Несохраненные изменения",changesSaved:"Изменения сохранены",draft:"Черновик",inReview:"На рассмотрении",ready:"Одобрен",publishNow:"Опубликовать сейчас",deployPreviewPendingButtonLabel:"Проверить предварительный просмотр",deployPreviewButtonLabel:"Предварительный просмотр",deployButtonLabel:"Просмотр",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Полужиный",italic:"Курсив",strikethrough:void 0,code:"Код",codeBlock:void 0,insertCodeBlock:void 0,link:"Ссылка",insertLink:void 0,paragraph:void 0,headings:"Заголовки",quote:"Цитата",insertQuote:void 0,bulletedList:"Маркированный список",numberedList:"Нумерованный список",addComponent:"Добавить компонент",richText:"Форматированный текст",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Выберите изображение",chooseMultiple:"Выберите изображения",chooseUrl:"Вставить из URL",replaceUrl:"Заменить на URL",promptUrl:"Введите URL изображения",chooseDifferent:"Выберите другое изображение",addMore:"Добавьте еще изображений",remove:"Удалить изображение",removeAll:"Удалить все изображения"},file:{choose:"Выберите файл",chooseUrl:"Вставить из URL",chooseMultiple:"Выбрать файлы",replaceUrl:"Заменить на URL",promptUrl:"Введите URL файла",chooseDifferent:"Выберите другой файл",addMore:"Добавить больше файлов",remove:"Удалить файл",removeAll:"Удалить все файлы"},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Нет контрола для виджета '%{widget}'."},unknownPreview:{noPreview:"Нет превью для виджета '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сейчас",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Добавить %{item}",addType:"Добавить %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Черновик",copy:"Копировать",copyUrl:"Копировать URL",copyPath:"Копировать путь",copyName:"Копировать имя",copied:"Скопировано"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Вы уверены, что хотите удалить выбранный медиафайл?",fileTooLargeTitle:void 0,fileTooLargeBody:"Файл слишком большой.\nНастройки не позволяют сохранять файлы более %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Нет результатов.",noAssetsFound:"Ресурсы не найдены.",noImagesFound:"Изображения не найдены.",private:"Приватные ",images:"Изображения",mediaAssets:"Медиаресурсы",search:"Идёт поиск…",uploading:"Загрузка…",upload:"Загрузить новый",download:"Скачать",deleting:"Удаление…",deleteSelected:"Удалить помеченные",chooseSelected:"Выбрать помеченные",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Вернуться на сайт"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Ошибка",details:"Произошла ошибка. Пожалуйста, ",reportIt:"сообщите о ней.",detailsHeading:"Подробности",privacyWarning:"При открытии тикет автоматически предзаполняется сообщением об ошибке и отладочной информацией.\nПожалуйста, проверьте, что данные верны и не содержат конфиденциальной информации.",recoveredEntry:{heading:"Восстановленный документ",warning:"Пожалуйста, скопируйте это сообщение куда-нибудь, прежде чем уйти со страницы!",copyButtonLabel:"Скопировать в буфер обмена"}},settingsDropdown:{theme:void 0,logOut:"Выйти"},toast:{onFailToLoadEntries:"Не удалось загрузить запись: %{details}",onFailToLoadDeployPreview:"Не удалось загрузить превью: %{details}",onFailToPersist:"Не удалось сохранить запись: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Не удалось удалить запись: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Не удалось обновить статус: %{details}",missingRequiredField:"К сожалению, вы пропустили обязательное поле. Пожалуйста, заполните перед сохранением.",entrySaved:"Запись сохранена",entryDeleted:void 0,entryPublished:"Запись опубликована",entryUnpublished:"Публикация записи отменена",onFailToPublishEntry:"Не удалось опубликовать запись: %{details}",onFailToUnpublishEntry:"Не удалось отменить публикацию записи: %{details}",entryUpdated:"Статус записи обновлен",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Неопубликованные изменения удалены",onFailToAuth:"%{details}",onLoggedOut:"Вы вышли. Пожалуйста, сохраните все данные и войдите снова",onBackendDown:"Происходят перебои в работе бекенда. См. %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Загрузка записей в рабочей области",workflowHeading:"Рабочая область",newPost:"Новая запись",description:"Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Удалить изменения",deleteNewEntry:"Удалить новую запись",publishChanges:"Опубликовать изменения",publishNewEntry:"Опубликовать новую запись"},workflowList:{onDeleteEntry:"Вы уверены, что хотите удалить эту запись?",onPublishingNotReadyEntry:"Только элементы со статусом «Готов» могут быть опубликованы. Перетащите карточку в столбец «Одобренные», чтобы разрешить публикацию.",onPublishEntry:"Вы уверены, что хотите опубликовать эту запись?",draft:"Черновики",pending_review:"На рассмотрении",pending_publish:"Одобренные",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},sv:{auth:{login:"Logga in",loggingIn:"Loggar in...",loginWithNetlifyIdentity:"Logga in med Netlify Identity",loginWithBitbucket:"Logga in med Bitbucket",loginWithGitHub:"Logga in med GitHub",loginWithGitLab:"Logga in med GitLab",loginWithGitea:"Logga in med Gitea",errors:{email:"Fyll i din epostadress.",password:"Vänligen skriv ditt lösenord.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Kan inte hämta inställningar för Identity. Vid användade av git-gateway backend, kontrollera att Identity service och Git Gateway är aktiverade."}},app:{header:{content:"Innehåll",workflow:"Arbetsflöde",media:"Media",quickAdd:"Snabbt tillägg"},app:{loading:"Hämtar...",errorHeader:"Ett fel uppstod vid hämtning av CMS-konfigurationen",configErrors:"Konfigurationsfel",configNotFound:void 0,checkConfigYml:"Kontrollera din config.yml-fil.",loadingConfig:"Hämtar konfiguration...",waitingBackend:"Väntar på backend..."},notFoundPage:{header:"Sidan finns inte"}},collection:{sidebar:{collections:"Samlingar",allCollections:"Alla Samlingar",searchAll:"Sök",searchIn:"Sök i"},collectionTop:{sortBy:"Sortera efter",viewAs:"Visa som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Fallande",searchResults:'Sökresultat för "%{searchTerm}"',searchResultsInCollection:'Sökresultat för "%{searchTerm}" i %{collection}',filterBy:"Filtrera efter",groupBy:"Gruppera efter"},entries:{loadingEntries:"Hämtar inlägg...",cachingEntries:"Sparar inlägg i cache...",longerLoading:"Det här kan ta några minuter",noEntries:"Inga inlägg"},groups:{other:"Annat",negateLabel:"Inte %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Författare"},updatedOn:{label:"Uppdaterad vid"}},notFound:void 0},editor:{editorControl:{field:{optional:"frivillig"}},editorControlPane:{widget:{required:"%{fieldLabel} är obligatoriskt.",regexPattern:"%{fieldLabel} matchar inte mönstret: %{pattern}.",processing:"%{fieldLabel} bearbetas.",range:"%{fieldLabel} måste vara mellan %{minValue} och %{maxValue}.",min:"%{fieldLabel} måste vara åtminstone %{minValue}.",max:"%{fieldLabel} måste vara %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} måste ha mellan %{minCount} och %{maxCount} element.",rangeCountExact:"%{fieldLabel} måste ha exakt %{count} element.",rangeMin:"%{fieldLabel} måste ha åtminstone %{minCount} element.",rangeMax:"%{fieldLabel} måste ha %{maxCount} eller färre element.",invalidPath:"'%{path}' är inte en giltig sökväg",pathExists:"Sökvägen '%{path}' existerar redan",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Skriver i %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Är du säker på att du vill lämna sidan?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Du har osparade ändringar, vänligen spara dem innan du uppdaterar status.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Vänligen uppdatera status till "Redo" innan du publicerar.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Du har osparade ändringar, vänligen spara innan du publicerar.",onPublishingTitle:void 0,onPublishingBody:"Är du säker på att du vill publicera det här inlägget?",onUnpublishingTitle:void 0,onUnpublishingBody:"Är du säker på att du vill avpublicera det här inlägget?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Är du säker på att du vill radera det här publicerade inlägget, inklusive dina osparade ändringar från nuvarande session?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Är du säker på att du vill radera det här publicerade inlägget?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Du är på väg att radera alla opublicerade ändringar för det här inlägget, inklusive dina osparade ändringar från nuvarande session. Vill du fortfarande radera?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alla opublicerade ändringar kommer raderas. Vill du fortfarande radera?",loadingEntry:"Hämtar inlägg..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Slå på/av i18n",togglePreview:"Visa/Dölj förhandsvisning",toggleScrollSync:"Synka scrollning"},editorToolbar:{publishing:"Publicerar...",publish:"Publicera",published:"Publicerad",unpublish:"Avpublicera",duplicate:"Duplicera",unpublishing:"Avpublicerar...",publishAndCreateNew:"Publicera och skapa ny",publishAndDuplicate:"Publicera och duplicera",deleteUnpublishedChanges:"Radera opublicerade ändringar",deleteUnpublishedEntry:"Radera opublicerat inlägg",deletePublishedEntry:"Radera publicerat inlägg",deleteEntry:"Radera inlägg",saving:"Sparar...",save:"Spara",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Raderar...",updating:"Updaterar...",status:"Status: %{status}",backCollection:" Redigerar i samlingen %{collectionLabel}",unsavedChanges:"Osparade ändringar",changesSaved:"Ändringar sparade",draft:"Utkast",inReview:"Under granskning",ready:"Redo",publishNow:"Publicera nu",deployPreviewPendingButtonLabel:"Kontrollera förhandsvisning",deployPreviewButtonLabel:"Visa förhandsvisning",deployButtonLabel:"Visa Live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Fetstil",italic:"Kursiv",strikethrough:void 0,code:"Kod",codeBlock:void 0,insertCodeBlock:void 0,link:"Länk",insertLink:void 0,paragraph:void 0,headings:"Rubriker",quote:"Citat",insertQuote:void 0,bulletedList:"Punktlista",numberedList:"Numrerad lista",addComponent:"Lägg till komponent",richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Välj en bild",chooseMultiple:void 0,chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för bilden",chooseDifferent:"Välj en annan bild",addMore:void 0,remove:"Ta bort bild",removeAll:void 0},file:{choose:"Välj en fil",chooseUrl:"Infoga från URL",chooseMultiple:void 0,replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för filen",chooseDifferent:"Välj en annan fil",addMore:void 0,remove:"Ta bort fil",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Inget reglage för widget '%{widget}'."},unknownPreview:{noPreview:"Ingen förhandsvisning för widget '%{widget}'."},headingOptions:{headingOne:"Rubrik 1",headingTwo:"Rubrik 2",headingThree:"Rubrik 3",headingFour:"Rubrik 4",headingFive:"Rubrik 5",headingSix:"Rubrik 6"},datetime:{now:"Nu",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Utkast",copy:"Kopiera",copyUrl:"Kopiera URL",copyPath:"Kopiera Sökväg",copyName:"Kopiera Namn",copied:"Kopierad"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Är du säker på att du vill radera valt mediaobjekt?",fileTooLargeTitle:void 0,fileTooLargeBody:"Maximal filstorlek överskriden.\nKonfigurerad att inte tillåta filer större än %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Inga resultat.",noAssetsFound:"Hittade inga mediaobjekt.",noImagesFound:"Hittade inga bilder.",private:"Privat ",images:"Bilder",mediaAssets:"Mediaobjekt",search:"Sök...",uploading:"Laddar upp...",upload:"Ladda upp",download:"Ladda ner",deleting:"Raderar...",deleteSelected:"Radera markerad",chooseSelected:"Välj markerad",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Tillbaka till sida"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Fel",details:"Ett fel har uppstått - vänligen ",reportIt:"öppna ett ärende på GitHub.",detailsHeading:"Detaljer",privacyWarning:"När ett ärende öppnas bifogas felsökningsdata automatiskt.\nVänligen kontrollera att informationen är korrekt och ta bort känslig data om det skulle finnas sådan.",recoveredEntry:{heading:"Återskapade dokument",warning:"Vänligen kopiera materialet någon annanstans innan du navigerar från sidan!",copyButtonLabel:"Kopiera till urklipp"}},settingsDropdown:{theme:void 0,logOut:"Logga ut"},toast:{onFailToLoadEntries:"Kunde inte hämta inlägg: %{details}",onFailToLoadDeployPreview:"Kunde inte ladda förhandsvisning: %{details}",onFailToPersist:"Kunde inte spara inlägg: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Kunde inte radera inlägg: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Kunde inte uppdatera status: %{details}",missingRequiredField:"Oops, du har missat ett obligatoriskt fält. Vänligen fyll i det innan du sparar.",entrySaved:"Inlägg sparat",entryDeleted:void 0,entryPublished:"Inlägg publicerat",entryUnpublished:"Inlägg avpublicerat",onFailToPublishEntry:"Kunde inte publicera: %{details}",onFailToUnpublishEntry:"Kunde inte avpublicera inlägg: %{details}",entryUpdated:"Inläggsstatus uppdaterad",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Opublicerade ändringar raderade",onFailToAuth:"%{details}",onLoggedOut:"Du har blivit utloggad, vänligen spara en kopia av eventuella ändringar och logga in på nytt",onBackendDown:"Tjänsten är drabbad av en störning. Se %{details} för mer information"}},workflow:{workflow:{dashboard:void 0,loading:"Hämtar inlägg för redaktionellt arbetsflöde",workflowHeading:"Redaktionellt arbetsflöde",newPost:"Nytt inlägg",description:"%{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. |||| %{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Radera ändringar",deleteNewEntry:"Radera nytt inlägg",publishChanges:"Publicera ändringar",publishNewEntry:"Publicera nytt inlägg"},workflowList:{onDeleteEntry:"Är du säker på att du vill radera det här inlägget?",onPublishingNotReadyEntry:'Bara inlägg med statusen "Redo" kan publiceras. Vänligen dra kortet till "Redo"-kolumnen för att möjliggöra publicering',onPublishEntry:"Är du säker på att du vill publicera det här inlägget?",draft:"Utkast",pending_review:"Under granskning",pending_publish:"Redo",currentEntries:"%{smart_count} inlägg |||| %{smart_count} inlägg"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},th:{auth:{login:"เข้าสู่ระบบ",loggingIn:"กำลังเข้าสู่ระบบ...",loginWithNetlifyIdentity:"เข้าสู่ระบบด้วย Netlify Identity",loginWithBitbucket:"เข้าสู่ระบบด้วย Bitbucket",loginWithGitHub:"เข้าสู่ระบบด้วย GitHub",loginWithGitLab:"เข้าสู่ระบบด้วย GitLab",loginWithGitea:"เข้าสู่ระบบด้วย Gitea",errors:{email:"ตรวจสอบให้แน่ใจว่าได้ใส่อีเมลล์แล้ว",password:"โปรดใส่รหัสผ่านของคุณ",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"ไม่สามารถเข้าถึงการตั้งค่าส่วนตัว เมื่อใช้ git-gateway backend ตรวจสอบให้แน่ใจว่าได้เปิดใช้งานระบบยืนยันตัวตนและ Git Gateway."}},app:{header:{content:"เนื้อหา",workflow:"ขั้นตอนการทำงาน",media:"มีเดีย",quickAdd:"เพิ่มเนื้อหา อย่างเร็ว"},app:{loading:"กำลังโหลด...",errorHeader:"เกิดข้อผิดพลาดในการโหลดการตั้งค่า CMS",configErrors:"คอนฟิกมีข้อผิดพลาด",configNotFound:void 0,checkConfigYml:"กรุณาตรวจสอบไฟล์ config.yml ของคุณ",loadingConfig:"กำลังโหลดการตั้งค่า...",waitingBackend:"กำลังรอการตอบกลับจาก backend..."},notFoundPage:{header:"ไม่พบหน้านี้"}},collection:{sidebar:{collections:"กลุ่ม",allCollections:"ทุกกลุ่ม",searchAll:"ค้นหาทั้งหมด",searchIn:"ค้าหาใน"},collectionTop:{sortBy:"จัดเรียงตาม",viewAs:"ดูในฐานะ",newButton:"สร้าง %{collectionLabel}",ascending:"น้อยไปมาก",descending:"มากไปน้อย",searchResults:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}"',searchResultsInCollection:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}" ใน %{collection}',filterBy:"กรองตาม",groupBy:void 0},entries:{loadingEntries:"กำลังโหลดเนิ้อหา...",cachingEntries:"กำลังแคชข้อมูลเนื้อหา...",longerLoading:"อาจจะโหลดนานหลายนาที",noEntries:"ไม่มีเนื้อหา"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"ผู้เขียน"},updatedOn:{label:"อัพเดตเมื่อ"}},notFound:void 0},editor:{editorControl:{field:{optional:"ทางเลือก"}},editorControlPane:{widget:{required:"%{fieldLabel} ต้องระบุ",regexPattern:"%{fieldLabel} ไม่ตรงกับรูปแบบ: %{pattern}",processing:"%{fieldLabel} กำลังประมวลผล",range:"%{fieldLabel} ต้องอยู่ระหว่าง %{minValue} และ %{maxValue}",min:"%{fieldLabel} จะต้องมีค่าไม่ต่ำกว่า %{minValue}",max:"%{fieldLabel} จะต้องมีค่าไม่มากกว่า %{maxValue}",rangeCount:"%{fieldLabel} จะต้องอยู่ระหว่าง %{minCount} และ %{maxCount} รายการ",rangeCountExact:"%{fieldLabel} จะต้องมี %{count} รายการ",rangeMin:"%{fieldLabel} จะต้องมีไม่ต่ำกว่า %{minCount} รายการ",rangeMax:"%{fieldLabel} จะต้องมีไม่มากกว่า %{maxCount} รายการ",invalidPath:"'%{path}' พาทไม่ถูกต้อง",pathExists:"พาท '%{path}' มีอยู่แล้ว",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"เขียนด้วยภาษา %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"คุณแน่ใจหรือว่าจะออกจากหน้านี้?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนอัปเดตสถานะ",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'โปรดอัปเดตสถานะเป็น "พร้อม" ก่อนจะเผยแพร่',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนจะเผยแพร่",onPublishingTitle:void 0,onPublishingBody:"คุณแน่ใจหรือว่าจะเผยแพร่เนื้อหานี้?",onUnpublishingTitle:void 0,onUnpublishingBody:"คุณแน่ใจหรือว่าจะไม่ต้องการเผยแพร่เนื้อหานี้?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้?",loadingEntry:"กำลังโหลดเนื้อหา..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"กำลังเผยแพร่...",publish:"เผยแพร่",published:"เผยแพร่แล้ว",unpublish:"ไม่ได้เผยแพร่",duplicate:"ทำซ้ำ",unpublishing:"ไม่ทำการเผยแพร่...",publishAndCreateNew:"เผยแพร่ และ สร้างใหม่",publishAndDuplicate:"เผยแพร่ และ ทำซ้ำ",deleteUnpublishedChanges:"ลบการเปลี่ยแปลงเนื้อหาที่ยังไม่ได้เผยแพร่",deleteUnpublishedEntry:"ลบเนื้อหาที่ยังไม่ได้เผยแพร่",deletePublishedEntry:"ลบเนื้อหาที่เผยแพร่",deleteEntry:"ลบเนื้อหา",saving:"กำลังบันทึก...",save:"บันทึก",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"กำลังลบ...",updating:"กำลังอัปเดต...",status:"สถานะ: %{status}",backCollection:" เขียนในกลุ่ม %{collectionLabel}",unsavedChanges:"การเปลี่ยนแปลงยังไม่ได้บันทึก",changesSaved:"การเปลี่ยนเปลงถูกบันทึกแล้ว",draft:"ร่าง",inReview:"อยู่ระหว่างการตรวจสอบ",ready:"พร้อม",publishNow:"เผยแพร่ตอนนี้",deployPreviewPendingButtonLabel:"ตรวจสอบตัวอย่าง",deployPreviewButtonLabel:"ดูตัวอย่าง",deployButtonLabel:"ดูตัวอย่างจากหน้าจริง",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"เลือกรูปภาพ",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"เลือกรูปภาพอื่น",addMore:void 0,remove:"เอารูปภาพออก",removeAll:void 0},file:{choose:"เลือกไฟล์",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"เลือกไฟล์อื่น",addMore:void 0,remove:"เอาไฟล์ออก",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"ไม่มีการควบคุม widget '%{widget}'."},unknownPreview:{noPreview:"ไม่มีตัวอย่างสำหรับ widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"เวลาตอนนี้",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"ร่าง",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"คุณแน่ใจหรือว่าจะลบมีเดียที่ถูกเลือก?",fileTooLargeTitle:void 0,fileTooLargeBody:"ไฟล์ใหญ่เกินไป\n ค่าที่ตั้งไว้ไม่ยอมรับไฟล์ที่ใหญ่กว่า %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"ไม่มีผลลัพธ์",noAssetsFound:"ไม่พบข้อมูล",noImagesFound:"ไม่พบรูปภาพ",private:"ส่วนตัว ",images:"รูปภาพ",mediaAssets:"ข้อมูลมีเดีย",search:"ค้นหา...",uploading:"กำลังอัปโหลด...",upload:"อัปโหลด",download:"ดาวน์โหลด",deleting:"กำลังลบ...",deleteSelected:"ลบข้อมูลที่เลือก",chooseSelected:"เลือกข้อมูลที่ถูกเลือก",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"กลับไปยังเว็บไซต์"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"มีข้อผิดพลาด",details:"มีข้อผิดพลาดเกิดขึ้น",reportIt:"แจ้งข้อผิดพลาดบน GitHub",detailsHeading:"รายละเอียด",privacyWarning:"การแจ้งปัญหาจะเติมข้อมูลล่วงหน้าด้วยข้อความแสดงข้อผิดพลาดและข้อมูลการดีบัก\nโปรดตรวจสอบข้อมูลว่าถูกต้องและลบข้อมูลที่สำคัญหากมีอยู่",recoveredEntry:{heading:"เอกสารถูกกู้คืน",warning:"โปรด คัดลอก/วาง ที่ใดที่หนึ่งก่อนจะทำอย่างอื่น!",copyButtonLabel:"คัดลอกไปที่คลิปบอร์ด"}},settingsDropdown:{theme:void 0,logOut:"ออกจากระบบ"},toast:{onFailToLoadEntries:"ล้มเหลวในการโหลดเนื้อหา: %{details}",onFailToLoadDeployPreview:"ล้มเหลวในการโหลดตัวอย่าง: %{details}",onFailToPersist:"ล้มเหลวในการยืนยันเนื้อหา: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"ล้มเหลวในการลบเนื้อหา: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"ล้มเหลวในการอัปเดตสถานะ: %{details}",missingRequiredField:"คุณไม่ได้ใส่ข้อมูลในช่องที่ต้องการ กรุณาใส่ข้อมูลก่อนบันทึก",entrySaved:"เนื้อหาถูกบันทึก",entryDeleted:void 0,entryPublished:"เนื้อหาถูกเผยแพร่",entryUnpublished:"เนื้อหาไม่ได้ถูกเผยแพร่",onFailToPublishEntry:"ล้มเหลวในการเผยแพร่เนื้อหา: %{details}",onFailToUnpublishEntry:"ล้มเหลวในการไม่เผยแพร่เนื้อหา: %{details}",entryUpdated:"สถานะเนื้อหาถูกอัปเดต",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"การเปลี่ยนแปลงเนื้อหาไม่ถูกเผยแพร่ได้ถูกลบ",onFailToAuth:"%{details}",onLoggedOut:"คุณได้ออกจากระบบ โปรดสำรองข้อมูลแล้วเข้าสู่ระบบอีกครั้ง",onBackendDown:"บริการแบ็กเอนด์เกิดการขัดข้อง ดู %{details} สำหรับข้อมูลเพิ่มเติม"}},workflow:{workflow:{dashboard:void 0,loading:"กำลังโหลดเนื้อหาขั้นตอนการทำงานของบรรณาธิการ",workflowHeading:"ขั้นตอนการทำงานของบรรณาธิการ",newPost:"สร้างโพสต์ใหม่",description:"%{smart_count} เนื้อหารอการตรวจสอบ, %{readyCount} พร้อมที่จะเผยแพร่ ่",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} โดย %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"โดย %{author}",deleteChanges:"ลบการเปลี่ยนแปลง",deleteNewEntry:"ลบเนื้อหาใหม่",publishChanges:"เผยแพร่การเปลี่ยนแปลง",publishNewEntry:"เผยแพร่เนื้อหาใหม่"},workflowList:{onDeleteEntry:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหานี้?",onPublishingNotReadyEntry:'เฉพาะรายการที่มีสถานะ "พร้อม" สามารถทำการเผยแพร่ โปรดลากเนื้อหาไปยังช่อง "พร้อม" เพื่อจะทำการเผยแพร่.',onPublishEntry:"คุณแน่ใจหรือว่าจะต้องการเผยแพร่เนื้อหานี้?",draft:"ร่าง",pending_review:"อยู่ในการตรวจสอบ",pending_publish:"พร้อม",currentEntries:"%{smart_count} เนื้อหา"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},tr:{auth:{login:"Giriş",loggingIn:"Giriş yapılıyor..",loginWithNetlifyIdentity:"Netlify Identity ile Giriş",loginWithBitbucket:"Bitbucket ile Giriş",loginWithGitHub:"GitHub ile Giriş",loginWithGitLab:"GitLab ile Giriş",loginWithGitea:"Gitea ile Giriş",errors:{email:"E-postanızı girdiğinizden emin olun.",password:"Lütfen şifrenizi girin.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Identity ayarlarına erişilemiyor. Git-gateway sunucusunu kullanmak için Identity servisi ve Git Gateway'in etkin olduğundan emin olun."}},app:{header:{content:"İçerikler",workflow:"İş Akışı",media:"Medya",quickAdd:"Hızlı ekle"},app:{loading:"Yükleniyor...",errorHeader:"CMS yapılandırması yüklenirken hata oluştu",configErrors:"Yapılandırma Hataları",configNotFound:void 0,checkConfigYml:"config.yml dosyanızı kontrol edin.",loadingConfig:"Yapılandırma yükleniyor...",waitingBackend:"Arka uç bekleniyor..."},notFoundPage:{header:"Bulunamadı"}},collection:{sidebar:{collections:"Koleksiyonlar",allCollections:"Bütün Koleksiyonlar",searchAll:"Tümünü ara",searchIn:"İçinde ara"},collectionTop:{sortBy:"Sırala ...",viewAs:"Görüntüle",newButton:"Yeni %{collectionLabel}",ascending:"Artan",descending:"Azalan",searchResults:'"%{searchTerm}" için Arama Sonuçları',searchResultsInCollection:'%{collection} koleksiyonunda, "%{searchTerm}" için Arama Sonuçları',filterBy:"Filtrele",groupBy:"Grupla"},entries:{loadingEntries:"Girdiler yükleniyor...",cachingEntries:"Girdi önbelleği...",longerLoading:"Bu birkaç dakika sürebilir",noEntries:"Hiç Girdi Yok"},groups:{other:"Diğer",negateLabel:"%{label} hariç"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Yazar"},updatedOn:{label:"Güncellenme Tarihi"}},notFound:void 0},editor:{editorControl:{field:{optional:"isteğe bağlı"}},editorControlPane:{widget:{required:"%{fieldLabel} gerekli.",regexPattern:"%{fieldLabel} eşleşmeyen kalıp: %{pattern}.",processing:"%{fieldLabel} işleniyor.",range:"%{fieldLabel} %{minValue} ve %{maxValue} arasında olmalı.",min:"%{fieldLabel} en az %{minValue} olmalı.",max:"%{fieldLabel}, %{maxValue} veya daha az olmalı.",rangeCount:"%{fieldLabel}, %{minCount} ve %{maxCount} öğeleri arasında olmalı.",rangeCountExact:"%{fieldLabel}, %{count} öğe olmalıdır.",rangeMin:"%{fieldLabel}, en az %{minCount} öğe olmalıdır.",rangeMax:"%{fieldLabel}, %{maxCount} veya daha az öğe olmalıdır.",invalidPath:"'%{path}' geçerli bir yol değil",pathExists:"'%{path}' yolu zaten var",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"%{locale} için yazılıyor",copyFromLocale:"Başka bir dilden doldurun",copyFromLocaleConfirm:"Verileri %{locale} dilinden mi doldurmak istiyorsun?\nVarolan bütün verilerin üzerine yazılacak."}},editor:{onLeavePage:"Bu sayfadan ayrılmak istediğinize emin misiniz?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Kaydedilmemiş değişiklikleriniz var, lütfen içeriği güncellemeden önce kaydedin.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Lütfen yayınlamadan önce içeriği "Hazır" olarak güncelleyin.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Kaydedilmemiş değişiklikleriniz var, lütfen yayınlamadan önce kaydedin.",onPublishingTitle:void 0,onPublishingBody:"Bu girdiyi yayınlamak istediğinize emin misiniz?",onUnpublishingTitle:void 0,onUnpublishingBody:"Bu girdiyi yayından kaldırmak istediğinizden emin misiniz?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Bu oturumda kaydedilmiş değişikliklerin yanı sıra geçerli oturumdaki kaydedilmemiş değişikliklerinizi silmek istediğinize emin misiniz?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Bu yayınlanmış girdiyi silmek istediğinize emin misiniz?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Bu girdide yayınlanmamış tüm değişiklikleri ve geçerli oturumdaki kaydedilmemiş değişikliklerinizi siler. Hala silmek istiyor musun?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Bu girdide yayınlanmamış tüm değişiklikler silinecek. Hala silmek istiyor musun?",loadingEntry:"Girdiler yükleniyor..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"i18n değiştir",togglePreview:"Önizlemeyi değiştir",toggleScrollSync:"Kaydırmayı senkronize et"},editorToolbar:{publishing:"Yayınlanıyor...",publish:"Yayınla",published:"Yayınlanan",unpublish:"Yayından Kaldır",duplicate:"Kopyala",unpublishing:"Yayından kaldırılıyor...",publishAndCreateNew:"Yayınla ve yeni oluştur",publishAndDuplicate:"Yayınla ve kopya oluştur",deleteUnpublishedChanges:"Yayımlanmamış değişiklikleri sil",deleteUnpublishedEntry:"Yayımlanmamış girdiyi sil",deletePublishedEntry:"Yayınlanan girdiyi sil",deleteEntry:"Girdiyi sil",saving:"Kaydediliyor...",save:"Kaydet",statusInfoTooltipDraft:"Giriş durumu taslak olarak ayarlandı. Girişi bitirmek ve incelemeye göndermek için giriş durumunu ‘İncelemede’ olarak ayarlayın",statusInfoTooltipInReview:"Giriş gözden geçiriliyor, başka bir işlem yapılmasına gerek yok. Ancak, incelenirken yine de ek değişiklikler yapabilirsiniz.",deleting:"Siliniyor...",updating:"Güncelleniyor...",status:"Durumu: %{status}",backCollection:" %{collectionLabel} koleksiyonunda yazılı",unsavedChanges:"Kaydedilmemiş Değişiklikler",changesSaved:"Değişiklikler kaydedildi",draft:"Taslak",inReview:"İncelemede",ready:"Hazır",publishNow:"Şimdi yayımla",deployPreviewPendingButtonLabel:"Önizlemeyi Denetle",deployPreviewButtonLabel:"Önizlemeyi Görüntüle",deployButtonLabel:"Canlı Görüntüle",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Kalın",italic:"İtalik",strikethrough:void 0,code:"Kod",codeBlock:void 0,insertCodeBlock:void 0,link:"Bağlantı",insertLink:void 0,paragraph:void 0,headings:"Başlıklar",quote:"Alıntı",insertQuote:void 0,bulletedList:"Maddeli Liste",numberedList:"Numaralı Liste",addComponent:"Bileşen Ekle",richText:"Zengin Metin",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Bir resim seçin",chooseMultiple:void 0,chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Resmin URL'sini girin",chooseDifferent:"Farklı bir resim seçin",addMore:void 0,remove:"Resmi kaldır",removeAll:void 0},file:{choose:"Bir dosya seçin",chooseUrl:"URL'den ekle",chooseMultiple:void 0,replaceUrl:"URL ile değiştir",promptUrl:"Dosyanın URL'sini girin",chooseDifferent:"Farklı bir dosya seçin",addMore:void 0,remove:"Dosyayı kaldır",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"'%{widget}' bileşeni için kontrol yok."},unknownPreview:{noPreview:"'%{widget}' bileşeni için önizleme yok."},headingOptions:{headingOne:"Başlık 1",headingTwo:"Başlık 2",headingThree:"Başlık 3",headingFour:"Başlık 4",headingFive:"Başlık 5",headingSix:"Başlık 6"},datetime:{now:"Şimdi",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"%{item} Ekle",addType:"%{item} Ekle",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Taslak",copy:"Kopyala",copyUrl:"URLyi Kopyala",copyPath:"Dosya Yolunu Kopyala",copyName:"Adını Kopyala",copied:"Kopyalandı"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Seçilen medyayı silmek istediğinize emin misiniz?",fileTooLargeTitle:void 0,fileTooLargeBody:"Dosya çok büyük.\n%{size} kilobaytdan daha büyük dosyaların yüklenmemesi için ayarlanmış.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Sonuç yok.",noAssetsFound:"Hiçbir dosya bulunamadı.",noImagesFound:"Resim bulunamadı.",private:"Özel ",images:"Görseller",mediaAssets:"Medya dosyaları",search:"Ara...",uploading:"Yükleniyor...",upload:"Yükle",download:"İndir",deleting:"Siliniyor...",deleteSelected:"Seçileni sil",chooseSelected:"Seçileni kullan",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Siteye geri git"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Hata",details:"Bir hata oluştu - lütfen ",reportIt:"GitHub üzerinde hata raporu aç.",detailsHeading:"Ayrıntılar",privacyWarning:"Bir hata raporu oluşturmak için gereken form otomatik olarak hata mesajı ve hata ayıklama verileriyle doldurulur.\nLütfen bilgilerin doğru olduğunu doğrulayın ve varsa hassas verileri kaldırın.",recoveredEntry:{heading:"Kurtarılan belge",warning:"Lütfen gitmeden önce bunu bir yere kopyalayın / yapıştırın!",copyButtonLabel:"Panoya kopyala"}},settingsDropdown:{theme:void 0,logOut:"Çıkış Yap"},toast:{onFailToLoadEntries:"Girdi yüklenemedi: %{details}",onFailToLoadDeployPreview:"Önizleme yüklenemedi: %{details}",onFailToPersist:"Girdi devam ettirilemedi: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Girdi silinemedi: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Durum güncellenemedi: %{details}",missingRequiredField:"Gerekli bir alan eksik. Lütfen kaydetmeden önce tamamlayın.",entrySaved:"Girdi kaydedildi",entryDeleted:void 0,entryPublished:"Girdi yayınlandı",entryUnpublished:"Girdi yayınlanmamış",onFailToPublishEntry:"Yayınlanamadı: %{details}",onFailToUnpublishEntry:"Girdi yayından kaldırılamadı: %{details}",entryUpdated:"Girdi durumu güncellendi",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Yayımlanmamış değişiklikler silindi",onFailToAuth:"%{details}",onLoggedOut:"Çıkış yaptınız, lütfen tüm verileri yedekleyin ve tekrar giriş yapın",onBackendDown:"Arka uç hizmetinde bir kesinti yaşanıyor. Daha fazla bilgi için %{details} gör"}},workflow:{workflow:{dashboard:void 0,loading:"İş Akışı Girdileri Yükleniyor",workflowHeading:"Editoryal İş Akışı",newPost:"Yeni Mesaj",description:"%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} tarafından %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author} tarafından",deleteChanges:"Değişiklikleri sil",deleteNewEntry:"Yeni girdiyi sil",publishChanges:"Değişiklikleri yayınla",publishNewEntry:"Yeni girdi yayınla"},workflowList:{onDeleteEntry:"Bu girdiyi silmek istediğinize emin misiniz?",onPublishingNotReadyEntry:'Yalnızca "Hazır" durumu olan öğeler yayınlanabilir. Lütfen yayınlamayı etkinleştirmek için kartı "Hazır" sütununa sürükleyin.',onPublishEntry:"Bu girdiyi yayınlamak istediğinize emin misiniz?",draft:"Taslaklar",pending_review:"İncelemede",pending_publish:"Hazır",currentEntries:"%{smart_count} girdi |||| %{smart_count} girdiler"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},uk:{auth:{login:void 0,loggingIn:void 0,loginWithNetlifyIdentity:void 0,loginWithBitbucket:void 0,loginWithGitHub:void 0,loginWithGitLab:void 0,loginWithGitea:void 0,errors:{email:void 0,password:void 0,authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:void 0}},app:{header:{content:"Зміст",workflow:"Робочий процес",media:"Медіа",quickAdd:"Додати"},app:{loading:"Завантаження...",errorHeader:"Помилка завантаження конфігурації",configErrors:"Помилка конфігурації",configNotFound:void 0,checkConfigYml:"Перевірте config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування серверу..."},notFoundPage:{header:"Сторінку не знайдено "}},collection:{sidebar:{collections:"Колекції",allCollections:void 0,searchAll:"Пошук",searchIn:void 0},collectionTop:{sortBy:void 0,viewAs:"Змінити вигляд",newButton:"Створити %{collectionLabel}",ascending:void 0,descending:void 0,searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Завантаження записів",cachingEntries:"Кешування записів",longerLoading:"Це може зайняти декілька хвилинок",noEntries:void 0},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:void 0},updatedOn:{label:void 0}},notFound:void 0},editor:{editorControl:{field:{optional:"необов’язково"}},editorControlPane:{widget:{required:"%{fieldLabel} є обов'язковим.",regexPattern:"%{fieldLabel} не задовільняє умові: %{pattern}.",processing:"обробляється %{fieldLabel}.",range:"значення %{fieldLabel} повинне бути від %{minValue} до %{maxValue}.",min:"значення %{fieldLabel} має бути від %{minValue}.",max:"значення %{fieldLabel} має бути %{maxValue} та менше.",rangeCount:void 0,rangeCountExact:void 0,rangeMin:void 0,rangeMax:void 0,invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Ви дійсно бажаєте залишити сторінку?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Присутні незбережені зміни, будь ласка збережіть перед зміною статусу.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Будь ласка, встановіть статус "Готово" перед публікацією.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Присутні незбережені зміни, будь ласка збережіть їх перед публікацією.",onPublishingTitle:void 0,onPublishingBody:"Ви дійсно бажаєте опублікувати запис?",onUnpublishingTitle:void 0,onUnpublishingBody:void 0,onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Ви дійсно бажаєте видалити опублікований запис, як і всі незбережені зміни під час поточної сесії?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Ви дійсно бажаєте видалити опублікований запис?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Видаляться всі неопубліковані зміни до цього запису, а також всі незбережені зміни під час поточної сесії. Бажаєте продовжити?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Всі незбережені зміни до цього запису буде видалено. Бажаєте продовжити?",loadingEntry:"Завантаження..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:void 0,duplicate:void 0,unpublishing:void 0,publishAndCreateNew:"Опублікувати і створити нову",publishAndDuplicate:void 0,deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану сторінку",deletePublishedEntry:"Видалити опубліковану сторінку",deleteEntry:"Видалити",saving:"Збереження...",save:"Зберегти",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Видалення...",updating:"Оновлення...",status:"Cтан: %{status}",backCollection:" Робота над %{collectionLabel} колекцією",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережено",draft:"В роботі",inReview:"На розгляді",ready:"Готово",publishNow:"Опублікувати",deployPreviewPendingButtonLabel:"Перевірити оновлення",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Переглянути наживо",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:void 0,markdown:void 0,type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Виберіть зображення",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Виберіть інше зображення",addMore:void 0,remove:"Видалити зображення",removeAll:void 0},file:{choose:"Виберіть файл",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Виберіть інший файл",addMore:void 0,remove:"Видалити файл",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Відсутній модуль для '%{widget}'."},unknownPreview:{noPreview:"Відсутній перегляд для '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:void 0,invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"В роботі",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Ви дійсно бажаєте видалити обрані матеріали?",fileTooLargeTitle:void 0,fileTooLargeBody:void 0,alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Результати відсутні.",noAssetsFound:"Матеріали відсутні.",noImagesFound:"Зображення відсутні.",private:"Private ",images:"Зображення",mediaAssets:"Медіа матеріали",search:"Пошук...",uploading:"Завантаження...",upload:"Завантажити",download:void 0,deleting:"Видалення...",deleteSelected:"Видалити обране",chooseSelected:"Додати обране",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:void 0},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Помилка",details:"Відбулась помилка - будь ласка ",reportIt:"надішліть нам деталі.",detailsHeading:"Деталі",privacyWarning:void 0,recoveredEntry:{heading:"Відновлено документ",warning:"Будь ласка, збережіть це десь перед тим як піти!",copyButtonLabel:"Скопіювати в буфер"}},settingsDropdown:{theme:void 0,logOut:"Вихід"},toast:{onFailToLoadEntries:"Помилка завантаження: %{details}",onFailToLoadDeployPreview:"Помилка завантаження перегляду: %{details}",onFailToPersist:"Помилка перезапису: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Помилка видалення: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Помилка оновлення статусу: %{details}",missingRequiredField:"Йой, здається пропущено обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Збережено",entryDeleted:void 0,entryPublished:"Опубліковано",entryUnpublished:void 0,onFailToPublishEntry:"Помилка публікації: %{details}",onFailToUnpublishEntry:void 0,entryUpdated:"Статус оновлено",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Видалено неопубліковані зміни",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Завантаження редакційних матеріалів",workflowHeading:"Редакція",newPost:"Новий запис",description:"%{smart_count} записів очікують розгляду, %{readyCount} готові до публікації. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} від %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"від %{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати всі зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви дійсно бажаєте видалити запис?",onPublishingNotReadyEntry:'Тільки елементи з статусом "Готово" можуть бути опубліковані. Будь ласка перемістіть картку в колонку "Готово" для публікації.',onPublishEntry:"Дійсно бажаєте опублікувати запис?",draft:"В роботі",pending_review:"На розгляді",pending_publish:"Готово",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},vi:{auth:{login:"Đăng nhập",loggingIn:"Đang đăng nhập...",loginWithNetlifyIdentity:"Đăng nhập bằng Netlify Identity",loginWithBitbucket:"Đăng nhập bằng Bitbucket",loginWithGitHub:"Đăng nhập bằng GitHub",loginWithGitLab:"Đăng nhập bằng GitLab",loginWithGitea:"Đăng nhập bằng Gitea",errors:{email:"Hãy nhập email của bạn.",password:"Hãy nhập mật khẩu của bạn.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Không thể truy cập thiêt lập danh tính. Hãy chắc chắn rằng bạn đã bật dịch vụ Identity và Git Gateway khi sử dụng git-gateway."}},app:{header:{content:"Nội dung",workflow:"Biên tập",media:"Tập tin",quickAdd:"Tạo nhanh"},app:{loading:"Đang tải...",errorHeader:"Xảy ra lỗi khi tải cấu hình CMS",configErrors:"Lỗi cấu hình",configNotFound:void 0,checkConfigYml:"Kiểm tra lại file config.yml của bạn.",loadingConfig:"Đang tải cấu hình...",waitingBackend:"Đang chờ backend..."},notFoundPage:{header:"Không tìm thấy"}},collection:{sidebar:{collections:"Bộ sưu tập",allCollections:"Tất cả bộ sưu tập",searchAll:"Tìm kiếm tất cả",searchIn:"Tìm kiếm trong"},collectionTop:{sortBy:"Sắp xếp theo",viewAs:"View as",newButton:"%{collectionLabel} mới",ascending:"Tăng dần",descending:"Giảm dần",searchResults:'Kết quả tìm kiếm cho "%{searchTerm}"',searchResultsInCollection:'Kết quả tìm kiếm cho "%{searchTerm}" trong %{collection}',filterBy:"Lọc theo",groupBy:void 0},entries:{loadingEntries:"Đang tải...",cachingEntries:"Đang lưu...",longerLoading:"Sẽ mất vài phút",noEntries:"Không có mục nào"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Tác giả"},updatedOn:{label:"Ngày cập nhật"}},notFound:void 0},editor:{editorControl:{field:{optional:"không bắt buộc"}},editorControlPane:{widget:{required:"%{fieldLabel} bắt buộc nhập.",regexPattern:"%{fieldLabel} không khớp với mẫu: %{pattern}.",processing:"%{fieldLabel} đang xử lý.",range:"%{fieldLabel} phải nằm trong khoảng từ %{minValue} đến %{maxValue}.",min:"%{fieldLabel} phải ít nhất %{minValue}.",max:"%{fieldLabel} tối đa %{maxValue} hoặc ít hơn.",rangeCount:"%{fieldLabel} phải nằm trong khoảng từ %{minCount} đến %{maxCount} mục.",rangeCountExact:"%{fieldLabel} phải có %{count} mục.",rangeMin:"%{fieldLabel} phải có ít nhất %{minCount} mục.",rangeMax:"%{fieldLabel} phải có tối đa %{maxCount} mục hoặc ít hơn.",invalidPath:"Đường dẫn '%{path}' không hợp lệ",pathExists:"Đường dẫn '%{path}' đã tồn tại",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Bạn có chắc rằng bạn muốn rời khỏi trang này?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Bạn chưa lưu những thay đổi, hãy lưu trước khi thay đổi trạng thái.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Hãy thay đổi trạng thái thành "Sẵn sàng" trước khi công bố.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Bạn có thay đổi chưa lưu, hãy lưu trước khi công bố.",onPublishingTitle:void 0,onPublishingBody:"Bạn có chắc rằng bạn muốn công bố mục này?",onUnpublishingTitle:void 0,onUnpublishingBody:"Bạn có chắc rằng bạn muốn ngừng công bố mục này?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này, cũng như là những thay đổi chưa lưu của bạn trong phiên làm việc này?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Điều này sẽ xoá tất cả những thay đổi chưa được lưu trong mục này, cũng như là những thay đổi chưa được lưu của bạn trong phiên làm việc này. Bạn vẫn muốn xoá chứ?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Tất cả những thay đổi chưa được lưu trong mục này sẽ bị xoá. Bạn vẫn muốn xoá chứ?",loadingEntry:"Đang tải..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Đang công bố...",publish:"Công bố",published:"Đã công bố",unpublish:"Ngừng công bố",duplicate:"Sao chép",unpublishing:"Đang ngừng công bố...",publishAndCreateNew:"Công bố và tạo mới",publishAndDuplicate:"Công bố và sao chép",deleteUnpublishedChanges:"Xoá thay đổi chưa công bố này",deleteUnpublishedEntry:"Xoá mục chưa được công bố này",deletePublishedEntry:"Xoá mục đã được công bố này",deleteEntry:"Xoá mục này",saving:"Đang lưu...",save:"Lưu",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Đang xoá...",updating:"Đang cập nhật...",status:"Trạng: %{status}",backCollection:" Đang viết trong bộ sưu tập %{collectionLabel}",unsavedChanges:"Thay đổi chưa được lưu",changesSaved:"Thay đổi đã được lưu",draft:"Bản nháp",inReview:"Đang xét duyệt",ready:"Sẵn sàng",publishNow:"Công bố ngay",deployPreviewPendingButtonLabel:"Kiểm tra Xem trước",deployPreviewButtonLabel:"Xem trước",deployButtonLabel:"Xem bản hoàn chỉnh",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Văn bản định dạng",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Chọn một hình",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Chọn hình khác",addMore:void 0,remove:"Gỡ bỏ hình",removeAll:void 0},file:{choose:"Chọn một tập tin",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Chọn tập tin khác",addMore:void 0,remove:"Gỡ bỏ tập tin",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Không tìm thấy control cho widget '%{widget}'."},unknownPreview:{noPreview:"Không tìm thấy preview cho widget '%{widget}'."},headingOptions:{headingOne:"Tiêu đề cấp 1",headingTwo:"Tiêu đề cấp 2",headingThree:"Tiêu đề cấp 3",headingFour:"Tiêu đề cấp 4",headingFive:"Tiêu đề cấp 5",headingSix:"Tiêu đề cấp 6"},datetime:{now:"Ngay lúc này",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Bản nháp",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Bạn có chắc rằng bạn muốn xoá tập tin này?",fileTooLargeTitle:void 0,fileTooLargeBody:"Tập tin quá lớn.\nCấu hình không cho phép những tập tin lớn hơn %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Không có kết quả.",noAssetsFound:"Không tìm thấy tập tin nào.",noImagesFound:"Không tìm thấy hình nào.",private:"Riêng tư ",images:"Hình ảnh",mediaAssets:"Tập tin",search:"Tìm kiếm...",uploading:"Đang tải lên...",upload:"Tải lên",download:"Tải về",deleting:"Đang xoá...",deleteSelected:"Xoá những cái đã chọn",chooseSelected:"Lấy những cái đã chọn",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Quay về trang web"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Lỗi",details:"Đã xảy ra lỗi - xin hãy ",reportIt:"tạo một issue trên GitHub.",detailsHeading:"Chi tiết",privacyWarning:"Tạo một issue với nội dung lỗi và dữ liệu debug được nhập sẵn.\nHãy xác nhận những thông tin này là đúng và gỡ bỏ dữ liệu nhạy cảm nếu cần thiết.",recoveredEntry:{heading:"Tài liệu đã được phục hồi",warning:"Hãy sao chép/dán nội dung này ở đâu đó trước khi chuyển sang trang khác!",copyButtonLabel:"Sao chép vào vùng nhớ"}},settingsDropdown:{theme:void 0,logOut:"Đăng xuất"},toast:{onFailToLoadEntries:"Không thể tải mục: %{details}",onFailToLoadDeployPreview:"Không thể tải xem trước: %{details}",onFailToPersist:"Không thể giữ lại mục: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Không thể xoá mục: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Không thể cập nhật trạng thái: %{details}",missingRequiredField:"Bạn còn thiếu vài thông tin bắt buộc. Hãy hoàn thành trước khi lưu.",entrySaved:"Mục đã được lưu",entryDeleted:void 0,entryPublished:"Mục đã được công bố",entryUnpublished:"Mục đã ngừng công bố",onFailToPublishEntry:"Không thể công bố: %{details}",onFailToUnpublishEntry:"Không thể ngừng công bố mục: %{details}",entryUpdated:"Trạng thái của mục đã được cập nhật",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Những thay đổi chưa được công bố đã được xoá",onFailToAuth:"%{details}",onLoggedOut:"Bạn đã đăng xuất, hãy sao lưu dữ liệu và đăng nhập lại",onBackendDown:"Dịch vụ backend đang gặp trục trặc. Hãy xem {details} để biết thêm thông tin"}},workflow:{workflow:{dashboard:void 0,loading:"Đang tải bài viết",workflowHeading:"Quy trình biên tập",newPost:"Bài mới",description:"%{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. |||| %{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. ",dateFormat:"D MMMM"},workflowCard:{lastChange:"%{date} bởi %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"bởi %{author}",deleteChanges:"Xoá thay đổi",deleteNewEntry:"Xoá bài mới",publishChanges:"Công bố thay đổi",publishNewEntry:"Công bố bài mới"},workflowList:{onDeleteEntry:"Bạn có chắc rằng bạn muốn xoá bài này?",onPublishingNotReadyEntry:'Chỉ những bài với trạng thái "Sẵn sàng" mới có thể được công bố. Hãy kéo thẻ vào cột "Sẵn sàng" để cho phép công bố.',onPublishEntry:"Bạn có chắc rằng bạn muốn công khai bài này?",draft:"Bản nháp",pending_review:"Đang xét duyệt",pending_publish:"Sẵn sàng",currentEntries:"%{smart_count} bài |||| %{smart_count} bài"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},zh_Hant:{auth:{login:"登入",loggingIn:"正在登入...",loginWithNetlifyIdentity:"使用你的 Netlify 帳號來進行登入",loginWithBitbucket:"使用你的 Bitbucket 帳號來進行登入",loginWithGitHub:"使用你的 GitHub 帳號來進行登入",loginWithGitLab:"使用你的 GitLab 帳號來進行登入",loginWithGitea:"使用你的 Gitea 帳號來進行登入",errors:{email:"請確認你已經輸入你的電子郵件。",password:"請輸入你的密碼。",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"無法連接認證系統!當使用 git-gateway 作為後端資料庫時,請確認您已開啟認證服務及 Git Gateway。"}},app:{header:{content:"內容",workflow:"作業流程",media:"媒體",quickAdd:"快速新增"},app:{loading:"載入中...",errorHeader:"載入 CMS 設定時發生錯誤",configErrors:"設定錯誤",configNotFound:void 0,checkConfigYml:"請確認你的 config.yml 設定檔的內容是否正確",loadingConfig:"正在載入設定...",waitingBackend:"正在等待後端資料連接..."},notFoundPage:{header:"找不到頁面"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"尋找所有集合",searchIn:"搜尋範圍"},collectionTop:{sortBy:"排序方式",viewAs:"瀏覽方式",newButton:"新增 %{collectionLabel}",ascending:"由小到大",descending:"由大到小",searchResults:'搜尋 "%{searchTerm}" 的結果',searchResultsInCollection:'在 %{collection} 中搜尋 %{searchTerm}" 的結果',filterBy:"篩選方式",groupBy:void 0},entries:{loadingEntries:"載入內容",cachingEntries:"快取內容",longerLoading:"這可能需要幾分鐘的時間",noEntries:"沒有內容"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新於"}},notFound:void 0},editor:{editorControl:{field:{optional:"選填"}},editorControlPane:{widget:{required:"%{fieldLabel} 是必須的。",regexPattern:"%{fieldLabel} 並不符合 %{pattern} 的型態",processing:"%{fieldLabel} 正在處理",range:"%{fieldLabel} 必須介於 %{minValue} 和 %{maxValue} 之間",min:"%{fieldLabel} 必須至少為 %{minValue}",max:"%{fieldLabel} 必須小於或等於 %{maxValue}",rangeCount:"%{fieldLabel} 必須有 %{minCount} 到 %{maxCount} 個項目。",rangeCountExact:"%{fieldLabel} 必須正好有 %{count} 個項目。",rangeMin:"%{fieldLabel} 必須至少有 %{minCount} 個項目。",rangeMax:"%{fieldLabel} 最多只能有 %{maxCount} 個項目。",invalidPath:"'%{path}' 不是有效的路徑",pathExists:"路徑 '%{path}' 已經存在",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"以 %{locale} 書寫",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"您確定要離開這頁嗎?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"您有未儲存的變更,在更新狀態前請先進行儲存。",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"在發布前,請先將狀態設定為:預備發布。",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"您有未儲存的變更,在發布前請先進行儲存。",onPublishingTitle:void 0,onPublishingBody:"你確定要發表此內容嗎?",onUnpublishingTitle:void 0,onUnpublishingBody:"你確定要取消發表此內容嗎?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"你確定要刪除這篇已發布的內容以及你尚未儲存的變更?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"你確定要刪除這篇已發布的內容?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"這將會刪除此內容所有未發布的變更,以及未儲存的變更。你確定還是要刪除?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"此內容所有未發布的變更都將會被刪除。你確定還是要刪除?",loadingEntry:"載入內容中..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"發布中...",publish:"發布",published:"已發布",unpublish:"取消發布",duplicate:"建立新內容",unpublishing:"取消發布中...",publishAndCreateNew:"發布並建立內容",publishAndDuplicate:"發布並複製內容",deleteUnpublishedChanges:"刪除未發布的變更",deleteUnpublishedEntry:"刪除未發布的內容",deletePublishedEntry:"刪除已發布的內容",deleteEntry:"刪除內容",saving:"儲存中...",save:"儲存",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"刪除中...",updating:"更新中...",status:"狀態: %{status}",backCollection:"在集合 %{collectionLabel} 新增內容",unsavedChanges:"未儲存變更",changesSaved:"已儲存變更",draft:"草稿",inReview:"正在審核",ready:"預備發布",publishNow:"立即發布",deployPreviewPendingButtonLabel:"點擊來進行預覽",deployPreviewButtonLabel:"進行預覽",deployButtonLabel:"觀看已發布的內容",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"粗體",italic:"斜體",strikethrough:void 0,code:"程式碼",codeBlock:void 0,insertCodeBlock:void 0,link:"連結",insertLink:void 0,paragraph:void 0,headings:"標題",quote:"引言",insertQuote:void 0,bulletedList:"項目符號清單",numberedList:"編號清單",addComponent:"加入元件",richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"選擇一張圖片",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"選擇其他圖片",addMore:void 0,remove:"刪除圖片",removeAll:void 0},file:{choose:"選擇一個檔案",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"選擇其他檔案",addMore:void 0,remove:"刪除檔案",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"無法控制元件: '%{widget}'."},unknownPreview:{noPreview:"無法預覽元件: '%{widget}'."},headingOptions:{headingOne:"標題 1",headingTwo:"標題 2",headingThree:"標題 3",headingFour:"標題 4",headingFive:"標題 5",headingSix:"標題 6"},datetime:{now:"現在",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"你確定要刪除已選擇的媒體嗎?",fileTooLargeTitle:void 0,fileTooLargeBody:"檔案太大。\n已設定不允許大於 %{size} kB 的檔案。",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"沒有結果",noAssetsFound:"沒有發現媒體資產。",noImagesFound:"沒有發現影像。",private:"私人",images:"影像",mediaAssets:"媒體資產",search:"搜尋中...",uploading:"上傳中...",upload:"上傳新內容",download:"下載",deleting:"刪除中...",deleteSelected:"刪除已選擇的項目",chooseSelected:"選擇已選擇的項目",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"回到網站"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"錯誤",details:"發生錯誤!請 ",reportIt:"回報錯誤",detailsHeading:"細節",privacyWarning:"建立 issue,並加上錯誤訊息及除錯資訊。\n請確認資訊正確,敏感資料也已經去除。",recoveredEntry:{heading:"已恢復的內容",warning:"在你離開本頁前,請將此處的內容複製貼上到其他地方來進行備份!",copyButtonLabel:"複製到剪貼簿"}},settingsDropdown:{theme:void 0,logOut:"登出"},toast:{onFailToLoadEntries:"無法載入內容: %{details}",onFailToLoadDeployPreview:"無法預覽內容: %{details}",onFailToPersist:"無法暫存內容: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"無法刪除內容: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"無法更新狀態: %{details}",missingRequiredField:"糟了!你漏填了一個必須填入的欄位,在儲存前請先填完所有內容",entrySaved:"已儲存內容",entryDeleted:void 0,entryPublished:"已發布內容",entryUnpublished:"已取消發布內容",onFailToPublishEntry:"無法發布: %{details}",onFailToUnpublishEntry:"無法取消發布: %{details}",entryUpdated:"內容狀態已更新",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"已刪除未發布的變更",onFailToAuth:"%{details}",onLoggedOut:"你已經登出,請備份任何資料然後重新登入",onBackendDown:"後端服務發生中斷。看 %{details} 取得更多資訊"}},workflow:{workflow:{dashboard:void 0,loading:"正在載入編輯流程的內容",workflowHeading:"編輯作業流程",newPost:"建立新的內容",description:"%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"刪除變更",deleteNewEntry:"刪除新內容",publishChanges:"發布變更",publishNewEntry:"發布新內容"},workflowList:{onDeleteEntry:"你確定要刪除這個項目嗎?",onPublishingNotReadyEntry:"只有狀態為 預備發布 的內容可以被發布,請將本內容的狀態設定為 預備發布 來進行發布前的準備",onPublishEntry:"你確定要發表這篇內容嗎?",draft:"草稿",pending_review:"正在預覽",pending_publish:"準備完成",currentEntries:"%{smart_count} 篇內容 |||| %{smart_count} 篇內容"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ko:{auth:{login:"로그인",loggingIn:"로그인 중...",loginWithNetlifyIdentity:"Netlify Identity 로 로그인",loginWithBitbucket:"Bitbucket 으로 로그인",loginWithGitHub:"GitHub 로 로그인",loginWithGitLab:"GitLab 으로 로그인",loginWithGitea:"Gitea 으로 로그인",errors:{email:"반드시 이메일을 입력해 주세요.",password:"암호를 입력해 주세요.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"설정에 접근할 수 없습니다. git-gateway 백엔드 사용시 Identity service와 Git Gateway를 활성화 해야 합니다."}},app:{header:{content:"콘텐츠",workflow:"워크플로우",media:"미디어",quickAdd:"빠른 추가"},app:{loading:"불러오는 중...",errorHeader:"CMS 구성을 불러오는 중 오류가 발생했습니다.",configErrors:"구성 오류",configNotFound:void 0,checkConfigYml:"config.yml 파일을 확인하세요.",loadingConfig:"구성 불러오는 중...",waitingBackend:"백엔드 기다리는 중..."},notFoundPage:{header:"찾을 수 없음"}},collection:{sidebar:{collections:"컬렉션",allCollections:"모든 컬렉션",searchAll:"모든 컬렉션에서 검색",searchIn:"다음 컬렉션에서 검색"},collectionTop:{sortBy:"정렬 기준",viewAs:"다음으로 보기",newButton:"새 %{collectionLabel} 항목",ascending:"오름차순",descending:"내림차순",searchResults:'"%{searchTerm}"에 대한 검색결과',searchResultsInCollection:'%{collection} 컬랙션에서 "%{searchTerm}"에 대한 검색결과',filterBy:"필터 기준",groupBy:"그룹화 기준"},entries:{loadingEntries:"항목 불러오는 중...",cachingEntries:"항목 캐시 중...",longerLoading:"몇 분 정도 걸릴 수 있습니다.",noEntries:"항목 없음"},groups:{other:"다른 그룹",negateLabel:"%{label} 제외"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"저자"},updatedOn:{label:"업데이트 시각"}},notFound:void 0},editor:{editorControl:{field:{optional:"선택사항"}},editorControlPane:{widget:{required:"%{fieldLabel} 은(는) 필수입니다.",regexPattern:"%{fieldLabel} 이(가) %{pattern} 패턴과 일치하지 않습니다.",processing:"%{fieldLabel} 은(는) 처리중 입니다.",range:"%{fieldLabel} 은(는) 반드시 %{minValue} 에서 %{maxValue} 사이여야 합니다.",min:"%{fieldLabel} 은(는) 적어도 %{minValue} 이상 이여야 합니다.",max:"%{fieldLabel} 은(는) 최대 %{maxValue} 여야 합니다.",rangeCount:"%{fieldLabel} 개수는 %{minCount} 개 에서 %{maxCount} 개 사이여야 합니다.",rangeCountExact:"%{fieldLabel} 개수는 정확히 %{count} 개 여야 합니다.",rangeMin:"%{fieldLabel} 개수는 적어도 %{minCount} 개 이상 이여야 합니다.",rangeMax:"%{fieldLabel} 개수는 최대 %{maxCount} 개 여야 합니다.",invalidPath:"'%{path}' 은(는) 올바른 경로가 아닙니다.",pathExists:"'%{path}' 경로가 이미 존재합니다.",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"%{locale}로 작성 중",copyFromLocale:"다른 로케일로부터 채우기",copyFromLocaleConfirm:"%{locale} 로케일로부터 데이터를 채우시겠습니까?\n모든 기존 내용을 덮어쓰기 합니다."}},editor:{onLeavePage:"이 페이지를 떠나시겠습니까?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"저장하지 않은 변경사항이 있습니다. 상태 업데이트 전 먼저 저장하세요.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'게시 하기 앞서 상태를 "준비됨" 으로 업데이트 하세요.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"저장하지 않은 변경사항이 있습니다, 게시하기 전 먼저 저장하세요.",onPublishingTitle:void 0,onPublishingBody:"이 항목을 게시하시곘습니까?",onUnpublishingTitle:void 0,onUnpublishingBody:"이 항목을 게시 철회 하시겠습니까?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"현재 세션에서의 저장되지 않은 변경사항과 이 게시된 항목을 삭제하시겠습니까?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"이 게시된 항목을 삭제하시겠습니까?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"이 항목의 게시되지 않은 모든 변경사항과 현재 세션의 저장되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"이 항목에 대해 게시되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",loadingEntry:"항목 불러오는 중..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"국제화(i18n) 토글",togglePreview:"미리보기 토글",toggleScrollSync:"스크롤 동기화"},editorToolbar:{publishing:"게시 중...",publish:"게시",published:"게시됨",unpublish:"게시 철회",duplicate:"복제",unpublishing:"게시 철회 중...",publishAndCreateNew:"게시하고 새로 만들기",publishAndDuplicate:"게시하고 복제",deleteUnpublishedChanges:"게시 안된 변경사항 삭제",deleteUnpublishedEntry:"게시 안된 항목 삭제",deletePublishedEntry:"게시된 항목 삭제",deleteEntry:"항목 삭제",saving:"저장 중...",save:"저장",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"삭제 중...",updating:"업데이트 중...",status:"상태: %{status}",backCollection:"%{collectionLabel} 컬랙션에 작성하는 중",unsavedChanges:"변경사항 저장되지 않음",changesSaved:"변경사항 저장됨",draft:"초안",inReview:"검토중",ready:"준비됨",publishNow:"지금 게시",deployPreviewPendingButtonLabel:"미리보기 확인",deployPreviewButtonLabel:"미리보기 보기",deployButtonLabel:"라이브 보기",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"굵은체",italic:"기울임체",strikethrough:void 0,code:"코드",codeBlock:void 0,insertCodeBlock:void 0,link:"링크",insertLink:void 0,paragraph:void 0,headings:"제목",quote:"인용",insertQuote:void 0,bulletedList:"글머리 기호 목록",numberedList:"번호 매기기 목록",addComponent:"구성요소 추가",richText:"리치 텍스트",markdown:"마크다운",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"이미지 선택",chooseMultiple:"이미지 여러개 선택",chooseUrl:"URL에서 삽입",replaceUrl:"URL 변경",promptUrl:"이미지 URL을 입력하세요",chooseDifferent:"다른 이미지 선택",addMore:"더 많은 이미지 추가",remove:"이미지 삭제",removeAll:"모든 이미지 삭제"},file:{choose:"파일 선택",chooseUrl:"URL에서 삽입",chooseMultiple:"파일 여러개 선택",replaceUrl:"URL 변경",promptUrl:"파일 URL을 입력하세요",chooseDifferent:"다른 파일 선택",addMore:"더 많은 파일 추가",remove:"파일 삭제",removeAll:"모든 파일 삭제"},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"'%{widget}' 위젯에 대한 컨트롤이 없습니다."},unknownPreview:{noPreview:"'%{widget}' 위젯에 대한 미리보기가 없습니다."},headingOptions:{headingOne:"제목 1",headingTwo:"제목 2",headingThree:"제목 3",headingFour:"제목 4",headingFive:"제목 5",headingSix:"제목 6"},datetime:{now:"현재시각",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"%{item} 추가",addType:"%{item} 추가",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"초안",copy:"복사",copyUrl:"URL 복사",copyPath:"경로 복사",copyName:"이름 복사",copied:"복사됨"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"선택하신 미디어를 삭제하시겠습니까?",fileTooLargeTitle:void 0,fileTooLargeBody:"파일이 너무 큽니다.\n%{size} kB 보다 큰 파일을 허용하지 않도록 구성되어 있습니다.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"일치 항목 없음.",noAssetsFound:"발견된 에셋 없음.",noImagesFound:"발견된 이미지 없음.",private:"개인 ",images:"이미지",mediaAssets:"미디어 에셋",search:"검색...",uploading:"업로드 중...",upload:"업로드",download:"다운로드",deleting:"삭제 중...",deleteSelected:"선택항목 삭제",chooseSelected:"선택한 것으로 결정",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"사이트로 돌아가기"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"오류",details:"오류가 발생했습니다.",reportIt:"GitHub에서 이슈를 열어 보고해 주세요.",detailsHeading:"자세한 내용",privacyWarning:"이슈를 열면 사전에 오류 메시지와 디버깅 데이터로 채워집니다.\n정보가 올바른지 확인하시고 민감한 정보가 있다면 지워주세요.",recoveredEntry:{heading:"복구된 문서",warning:"다른 곳으로 가시기 전에 이 내용을 꼭 복사해두세요!",copyButtonLabel:"클립보드로 복사"}},settingsDropdown:{theme:void 0,logOut:"로그아웃"},toast:{onFailToLoadEntries:"항목 불러오기 실패: %{details}",onFailToLoadDeployPreview:"미리보기 불러오기 실패: %{details}",onFailToPersist:"항목 저장 실패: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"항목 삭제 실패: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"상태 업데이트 실패: %{details}",missingRequiredField:"이런! 필수 필드를 놓치셨습니다. 저장하기 전에 먼저 채우세요.",entrySaved:"항목 저장됨",entryDeleted:void 0,entryPublished:"항목 게시됨",entryUnpublished:"항목 게시 철회됨",onFailToPublishEntry:"게시 실패: %{details}",onFailToUnpublishEntry:"항목 게시 철회 실해: %{details}",entryUpdated:"항목 상태 업데이트됨",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"게시되지 않은 변경사항 삭제됨",onFailToAuth:"%{details}",onLoggedOut:"로그아웃 하셨습니다, 데티어를 백업하시고 다시 로그인 하세요.",onBackendDown:"백엔드 서비스가 장애를 겪고 있습니다. 자세한 사항은 %{details} 을(를) 참고하세요."}},workflow:{workflow:{dashboard:void 0,loading:"편집 워크플로우의 항목을 불러오는 중",workflowHeading:"편집 워크플로우",newPost:"새 게시물",description:"%{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. |||| %{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. ",dateFormat:"M월 D일"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"변경사항 삭제",deleteNewEntry:"새 항목 삭제",publishChanges:"변경사항 게시",publishNewEntry:"새 항목 게시"},workflowList:{onDeleteEntry:"정말로 이 항목을 삭제하시겠습니까?",onPublishingNotReadyEntry:'"준비됨" 상태의 항목만 게시할 수 있습니다. 게시를 활성화 하려면 카드를 "준비됨" 열에 끌어 놓으세요.',onPublishEntry:"이 항목을 게시하시곘습니까?",draft:"초안",pending_review:"검토 진행중",pending_publish:"준비됨",currentEntries:"%{smart_count}개 항목 |||| %{smart_count}개 항목"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},hr:{auth:{login:"Prijava",loggingIn:"Prijava u tijeku...",loginWithNetlifyIdentity:"Prijava sa Netlify računom",loginWithBitbucket:"Prijava sa Bitbucket računom",loginWithGitHub:"Prijava sa GitHub računom",loginWithGitLab:"Prijava sa GitLab računom",loginWithGitea:"Prijava sa Gitea računom",errors:{email:"Unesite email.",password:"Molimo unisite lozinku.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:'Nemoguće pristupiti postavkama identita. Kod korištenja git-gateway backenda morate uključiti "Identity service" te "Git Gateway"'}},app:{header:{content:"Sadržaj",workflow:"Tijek rada",media:"Mediji",quickAdd:"Dodaj"},app:{loading:"Učitavanje...",errorHeader:"Greška pri učitavanju CMS konfiguracije",configErrors:"Greška u konfiguraciji",configNotFound:void 0,checkConfigYml:"Provjeri config.yml datoteku.",loadingConfig:"Učitavanje konfiguracije...",waitingBackend:"Čekanje na backend..."},notFoundPage:{header:"Stranica nije pronađena"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Sve zbirke",searchAll:"Pretraži sve",searchIn:"Pretraži u"},collectionTop:{sortBy:"Sortiraj",viewAs:"Pogledaj kao",newButton:"Nova %{collectionLabel}",ascending:"Uzlazno",descending:"Silzano",searchResults:'Rezulatati pretraživanja za "%{searchTerm}"',searchResultsInCollection:'Rezulatati pretraživanja za "%{searchTerm}" u %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Učitavanje unosa...",cachingEntries:"Predmemoriranje unosa...",longerLoading:"Ovo bi moglo potrajati par minuta",noEntries:"Nema unosa"},groups:{other:"Ostalo",negateLabel:"Nije %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Ažurirano na"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcionalno"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezan.",regexPattern:"%{fieldLabel} se ne podudara sa uzorkom: %{pattern}.",processing:"%{fieldLabel} se procesira.",range:"%{fieldLabel} mora biti između %{minValue} i %{maxValue}.",min:"%{fieldLabel} mora biti najmanje %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ili manje.",rangeCount:"%{fieldLabel} mora imati između %{minCount} i %{maxCount} predmeta.",rangeCountExact:"%{fieldLabel} mora imati točno %{count} predmeta.",rangeMin:"%{fieldLabel} mora imati najmanje %{minCount} predmet(a).",rangeMax:"%{fieldLabel} mora imate %{maxCount} ili manje predmeta.",invalidPath:"'%{path}' nije valjana putanja",pathExists:"Putanja '%{path}' već postoji",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Pisanje na %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Jeste li sigurni da želite napustiti stranicu?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Imate nespremljene promjene, molimo spremite prije ažuriranja statusa.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Molimo ažurirajte status na "Spremno" prije objavljivanja.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Imate nespremljene promjene, molimo spremite prije objavljivanja.",onPublishingTitle:void 0,onPublishingBody:"Jeste li sigurni da želite objaviti ovaj unos?",onUnpublishingTitle:void 0,onUnpublishingBody:"Jeste li sigurni da želite maknuti objavu za ovaj unos?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Jeste li sigurni da želite obrisati objavljeni unos, te nespremljene promjene u trenutnoj sesiji?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Jeste li sigurni da želite obrisati ovaj objavljeni unos?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Obrisat ćete sve neobjavljene promjene na ovom unosu, te sve nespremljene promjene u trenutnoj sesiji. Želite li i dalje obrisati?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Sve nespremljene promjene na ovom unosu će biti obrisane. Želite li i dalje obrisati?",loadingEntry:"Učitavanje unosa..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Objavljivanje...",publish:"Objavi",published:"Objavljeno",unpublish:"Obriši iz objava",duplicate:"Dupliciraj",unpublishing:"Brisanje iz objava...",publishAndCreateNew:"Objavi i kreiraj novo",publishAndDuplicate:"Objavi i dupliciraj",deleteUnpublishedChanges:"Obriši neobjavljene promjene",deleteUnpublishedEntry:"Obriši neobjavljene unose",deletePublishedEntry:"Obriši objavljeni unos",deleteEntry:"Obriši unos",saving:"Spremanje...",save:"Spremi",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Brisanje...",updating:"Ažuriranje...",status:"Status: %{status}",backCollection:"Pisanje u %{collectionLabel} zbirci",unsavedChanges:"Nespremljene promjene",changesSaved:"Promjene spremljene",draft:"Skica",inReview:"Osvrt",ready:"Spremno",publishNow:"Objavi sad",deployPreviewPendingButtonLabel:"Provjeri za osvrt",deployPreviewButtonLabel:"Pogledaj osvrt",deployButtonLabel:"Pogledaj na produkciji",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Podebljano",italic:"Kurziv",strikethrough:void 0,code:"Kod",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Naslovi",quote:"Citat",insertQuote:void 0,bulletedList:"Nabrajan popis",numberedList:"Numeriran popis",addComponent:"Dodaj komponentu",richText:"Bogati tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Odaberi sliku",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Odaberi drugu sliku",addMore:void 0,remove:"Izbriši sliku",removeAll:void 0},file:{choose:"Odaberi datoteku",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Odaberi drugu datoteku",addMore:void 0,remove:"Obriši datoteku",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Kontrola nije pronađena za widget '%{widget}'."},unknownPreview:{noPreview:"Prikaz nije pronađen za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Sad",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Skica",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Jeste li sigurni da želite obrisati odabrane medijske datoteke?",fileTooLargeTitle:void 0,fileTooLargeBody:"Datoteka prevelika.\nKonfigurirano da ne podržava datoteke veće od %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nema rezultata.",noAssetsFound:"Sredstva nisu pronađena.",noImagesFound:"Slike nisu pronađene.",private:"Privatno ",images:"Slike",mediaAssets:"Medijska sredstva",search:"Pretraži...",uploading:"Učitavanje...",upload:"Učitaj",download:"Preuzmi",deleting:"Brisanje...",deleteSelected:"Obriši označeno",chooseSelected:"Odaberi označeno",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Povratak na stranicu"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Greška",details:"Dogodila se greška - molimo ",reportIt:"otvori issue (problem) na GitHubu.",detailsHeading:"Detalji",privacyWarning:"Otvaranje issue-a (problema) populira ga sa porukom od greške i debug podacima.\nProvjerite jesu li infomacije točne i obrišite osjetljive podatke ako postoje.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Molimo kopiraj/zalijepi ovo negdje prije odlaska dalje!",copyButtonLabel:"Kopiraj u međuspremnik"}},settingsDropdown:{theme:void 0,logOut:"Odjava"},toast:{onFailToLoadEntries:"Neuspjelo dohvaćanje unosa: %{details}",onFailToLoadDeployPreview:"Neuspjelo dohvaćanje pregleda: %{details}",onFailToPersist:"Neuspjelo spremanje unosa: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Neuspjelo brisanje unosa: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Neuspjelo ažuriranje statusa: %{details}",missingRequiredField:"Uups, preskočili ste obvezno polje. Molimo popunite prije spremanja.",entrySaved:"Unos spremljen",entryDeleted:void 0,entryPublished:"Unos objavljen",entryUnpublished:"Unos obrisan",onFailToPublishEntry:"Neuspjelo objavljivanje unosa: %{details}",onFailToUnpublishEntry:"Neuspjelo brisanje unosa: %{details}",entryUpdated:"Status unosa ažuriran",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Otkrivene neobjavljene objave",onFailToAuth:"%{details}",onLoggedOut:"Odjavljeni ste, molimo spremite sve podatke i prijavite se ponovno",onBackendDown:"Backend servis ima prekid rada. Pogledaj %{details} za više informacija"}},workflow:{workflow:{dashboard:void 0,loading:"Učitavanje unosa uredničkog tijeka rada",workflowHeading:"Urednički tijek rada",newPost:"Nova objava",description:"%{smart_count} unos čeka pregled, %{readyCount} unos spreman za produkciju. |||| %{smart_count} unosa čeka pregled, %{readyCount} unosa spremno za produkciju. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} od strane %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"od strane %{author}",deleteChanges:"Obriši promjene",deleteNewEntry:"Obriši novi unos",publishChanges:"Objavi promjene",publishNewEntry:"Objavi novi unos"},workflowList:{onDeleteEntry:"Jeste li sigurni da želite obrisati unos?",onPublishingNotReadyEntry:'Samo promjene sa statusom "Spremno" mogu biti objavljene. Molimo povucite karticu u kolumnu "Spremno" prije objavljivanja.',onPublishEntry:"Jeste li sigurni da želite objaviti unos?",draft:"Skice",pending_review:"U osvrtu",pending_publish:"Spremno",currentEntries:"%{smart_count} unos |||| %{smart_count} unosa"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},sl:{auth:{login:"Vpiši se",loggingIn:"Prijavljanje...",loginWithNetlifyIdentity:"Prijavi se z Netlify Identity",loginWithBitbucket:"Prijavi se z BitBucket računom",loginWithGitHub:"Prijavi se z GitHub računom",loginWithGitLab:"Prijavi se z Gitlab računom",loginWithGitea:void 0,errors:{email:"Vnesi svoj pravi e-poštni naslov.",password:"Vnesi svoje geslo.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Ni mogoče dostopati do nastavitev identitete. Ko uporabljate Git-Gateway zaledje, se prepričajte, da omogočite Identity Service in Git Gateway."}},app:{header:{content:"Vsebina",workflow:"Potek dela",media:"Media",quickAdd:"Hitro dodajanje"},app:{loading:"Nalaganje...",errorHeader:"Napaka pri nalaganju CMS konfiguracije",configErrors:"Konfiguracijske napake",configNotFound:void 0,checkConfigYml:"Preverite svojo datoteko config.yml.",loadingConfig:"Nalaganje konfiguracije ...",waitingBackend:"Čakanje na zaledje ..."},notFoundPage:{header:"Ni najdeno"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Vse zbirke",searchAll:"Išči vse",searchIn:"Išči v"},collectionTop:{sortBy:"Razvrsti po",viewAs:"Poglej kot",newButton:"Nov %{collectionLabel}",ascending:"Naraščajoče",descending:"Padajoče",searchResults:'Rezultati iskanja za "%{searchTerm}"',searchResultsInCollection:'Rezultati iskanja za "%{searchTerm}" v %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Nalaganje vnosov ...",cachingEntries:"Predpomnjenje vnosov ...",longerLoading:"To lahko traja nekaj minut",noEntries:"Ni vnosov"},groups:{other:"Drugo",negateLabel:"Ne %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Avtor"},updatedOn:{label:"Nazadnje posodobljeno"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcijsko"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezen.",regexPattern:"%{fieldLabel} se ni ujemal z vzorcem: %{pattern}.",processing:"%{fieldLabel} je v obdelavi.",range:"%{fieldLabel} mora biti med %{minValue} in %{maxValue}.",min:"%{fieldLabel} mora biti vsaj %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ali manj.",rangeCount:"%{fieldLabel} mora imeti med %{minCount} in %{maxCount} elementov.",rangeCountExact:"%{fieldLabel} mora imeti točno %{count} elemente.",rangeMin:"%{fieldLabel} mora imeti vsaj %{minCount} elementov.",rangeMax:"%{fieldLabel} mora imeti %{maxCount} ali manj elementov.",invalidPath:"'%{path}' ni veljavna pot",pathExists:"Pot '%{path}' že obstaja",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Pisanje v %{locale}",copyFromLocale:"Izpolnite iz drugega jezika",copyFromLocaleConfirm:"Ali želiš izpolniti podatke iz %{locale} jezika?\nVsa obstoječa vsebina bo prepisana."}},editor:{onLeavePage:"Ste prepričani, da želite zapustiti to stran?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Imaš neshranjene spremembe. Shrani pred posodobitvijo stanja.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Pred objavo posodobi status na "pripravljen".',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Imaš neshranjene spremembe. Shrani pred objavo.",onPublishingTitle:void 0,onPublishingBody:"Ste prepričani, da želite objaviti ta vnos?",onUnpublishingTitle:void 0,onUnpublishingBody:"Ste prepričani, da želite preklicati objavo tega vnosa?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Ste prepričani, da želite izbrisati ta objavljen vnos, pa tudi neshrannjene spremembe iz trenutne seje?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Ste prepričani, da želite izbrisati ta objavljeni vnos?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"To bo izbrisalo vse neobjavljene spremembe tega vnosa, pa tudi neshranjene spremembe iz trenutne seje. Ali še vedno želiš izbrisati?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Vse neobjavljene spremembe tega vnosa bodo izbrisane. Ali še vedno želiš izbrisati?",loadingEntry:"Nalaganje vnosa ..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Preklopi i18n",togglePreview:"Preklopi predogled",toggleScrollSync:"Sinhroniziraj drsenje"},editorToolbar:{publishing:"Objavljanje ...",publish:"Objavi",published:"Objavljeno",unpublish:"Prekliči objavo",duplicate:"Podvoji",unpublishing:"Preklicevanje objave ...",publishAndCreateNew:"Objavi in ustvari novo",publishAndDuplicate:"Objavi in podvoji",deleteUnpublishedChanges:"Izbriši neobjavljene spremembe",deleteUnpublishedEntry:"Izbriši neobjavljen vnos",deletePublishedEntry:"Izbriši objavljen vnos",deleteEntry:"Izbriši vnos",saving:"Shranjevanje ...",save:"Shrani",statusInfoTooltipDraft:"Status vnosa je nastavljen na osnutek. Če ga želiš dokončati in predložiti v pregled, nastavi stanje na „v pregledu“",statusInfoTooltipInReview:"Vnos je v pregledu, nadaljnja dejanja niso potrebna. Vendar lahko med pregledovanjem še vedno narediš spremembe.",deleting:"Brisanje ...",updating:"Posodabljanje ...",status:"status: %{status}",backCollection:" Pisanje v %{collectionLabel} zbirko",unsavedChanges:"Neshranjene spremembe",changesSaved:"Spremembe shranjene",draft:"Osnutek",inReview:"V pregledu",ready:"Pripravljen",publishNow:"Objavi zdaj",deployPreviewPendingButtonLabel:"Preveri za predogled",deployPreviewButtonLabel:"Ogled predogleda",deployButtonLabel:"Pogled v živo",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Debelo",italic:"Poševno",strikethrough:void 0,code:"Koda",codeBlock:void 0,insertCodeBlock:void 0,link:"Povezava",insertLink:void 0,paragraph:void 0,headings:"Naslovi",quote:"Citat",insertQuote:void 0,bulletedList:"Seznam z oznakami",numberedList:"Oštevilčen seznam",addComponent:"Dodaj komponento",richText:"Bogato besedilo",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Izberi sliko",chooseMultiple:"Izberi slike",chooseUrl:"Vstavi iz URL-ja",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL slike",chooseDifferent:"Izberi drugo sliko",addMore:"Dodaj več slik",remove:"Odstrani sliko",removeAll:"Odstrani vse slike"},file:{choose:"Izberi datoteko",chooseUrl:"Vstavi iz URL-ja",chooseMultiple:"Izberi datoteke",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL datoteke",chooseDifferent:"Izberi drugo datoteko",addMore:"Dodaj več datotek",remove:"Odstrani datoteko",removeAll:"Odstrani vse datoteke"},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Ni kontrole za gradnik '%{widget}'."},unknownPreview:{noPreview:"Nipredogleda za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Zdaj",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Dodaj %{item}",addType:"Dodaj %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Osnutek",copy:"Kopiraj",copyUrl:"Kopiraj URL",copyPath:"Kopiraj pot",copyName:"Kopiraj ime",copied:"Kopirano"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Ste prepričani, da želite izbrisati izbrane medije?",fileTooLargeTitle:void 0,fileTooLargeBody:"Datoteka je prevelika.\n Ne sme biti večja od %{size} kb.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Ni rezultatov.",noAssetsFound:"Ni najdenih sredstev.",noImagesFound:"Ni najdenih slik.",private:"Private",images:"Slike",mediaAssets:"Multimedijska sredstva",search:"Iskanje ...",uploading:"Nalaganje ...",upload:"Naloži",download:"Prenesi",deleting:"Brisanje ...",deleteSelected:"Izbriši izbrano",chooseSelected:"Dodaj izbrano",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Vrni se na spletno mesto"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Napaka",details:"Prišlo je do napake.",reportIt:"Odprite težavo na GitHubu.",detailsHeading:"Podrobnosti",privacyWarning:"Odpiranje Github Issue bo javno objavilo vašo napako. Ne vključujte osebnih podatkov v vaši napaki.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Prosimo, tole kopirajte/prilepite nekam, preden navigirate drugam!",copyButtonLabel:"Kopiraj v odložišče"}},settingsDropdown:{theme:void 0,logOut:"Odjava"},toast:{onFailToLoadEntries:"Ni naložilo vnosa: %{details}",onFailToLoadDeployPreview:"Ni naložilo predogleda: %{details}",onFailToPersist:"Ni uspelo vztrajati: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Ni uspelo izbrisati vnosa: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Ni uspelo posodobiti stanja: %{details}",missingRequiredField:"Ups, zgrešili ste obvezno polje. Pred shranjevanjem izpolnite.",entrySaved:"Vnos shranjen",entryDeleted:void 0,entryPublished:"Vnos objavljen",entryUnpublished:"Objava vnosa preklicana",onFailToPublishEntry:"Vnosa ni uspelo objaviti: %{details}",onFailToUnpublishEntry:"Preklicanje objave vnosa ni uspelo: %{details}",entryUpdated:"Status vnosa posodobljen",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Neobjavljene spremembe izbrisane",onFailToAuth:"%{details}",onLoggedOut:"Bili ste odjavljeni, varnostno kopirate vse podatke in se ponovno prijavite",onBackendDown:"Zaledna storitev doživlja izpad. Glejte %{details} za več informacij"}},workflow:{workflow:{dashboard:void 0,loading:"Nalaganje uredniških vnosov",workflowHeading:"Uredniški potek dela",newPost:"Nov vnos",description:"%{smart_count} vnos čaka na pregled, %{readyCount} pripravljen za objavo. |||| %{smart_count} vnosov čaka na pregled, %{readyCount} pripravljenih za objavo.",dateFormat:"DD. MM. YYYY"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Izbriši spremembe",deleteNewEntry:"Izbriši nov vnos",publishChanges:"Objavi spremembe",publishNewEntry:"Objavi nov vnos"},workflowList:{onDeleteEntry:"Ali ste prepričani, da želite izbrisati ta vnos?",onPublishingNotReadyEntry:'Objavijo se lahko samo elementi s statusom "pripravljen". Prosimo, povlecite kartico v stolpec "pripravljen", da omogočite objavo.',onPublishEntry:"Ste prepričani, da želite objaviti ta vnos?",draft:"Osnutki",pending_review:"V pregledu",pending_publish:"Pripravljen",currentEntries:"%{smart_count} vnos |||| %{smart_count} vnosov"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},bg:{auth:{login:"Вход",loggingIn:"Влизане...",loginWithNetlifyIdentity:"Вход с Netlify Identity",loginWithBitbucket:"Вход с Bitbucket",loginWithGitHub:"Вход с GitHub",loginWithGitLab:"Вход с GitLab",loginWithGitea:"Вход с Gitea",errors:{email:"Въведете вашия имейл.",password:"Въведете паролата.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Няма достъп до настройките. Ако използвате git-gateway, не забравяйте да активирате услугата Identity и Git Gateway."}},app:{header:{content:"Съдържание",workflow:"Работен процес",media:"Мултимедийни файлове",quickAdd:"Бързо добавяне"},app:{loading:void 0,errorHeader:"Грешка при зареждането на конфигурацията на CMS",configErrors:"Грешки в конфигурацията",configNotFound:void 0,checkConfigYml:"Проверете вашия файл config.yml.",loadingConfig:"Зареждане на конфигурация ...",waitingBackend:"В очакване на отговор от бекенда ..."},notFoundPage:{header:"Не е намерен"}},collection:{sidebar:{collections:"Колекции",allCollections:"Всички колекции",searchAll:"Търсете навсякъде",searchIn:"Търсене в"},collectionTop:{sortBy:"Сортирай по",viewAs:"Виж като",newButton:"Създай %{collectionLabel}",ascending:"Възходящ",descending:"Низходящ",searchResults:'Ресултати от търсенето за "%{searchTerm}"',searchResultsInCollection:'Ресултати от търсенето за "%{searchTerm}" в %{collection}',filterBy:"Филтрирай по",groupBy:"Групирай по"},entries:{loadingEntries:"Зареждане на записи...",cachingEntries:"Кеширане на записи...",longerLoading:"Това може да отнеме няколко минути",noEntries:"Няма записи"},groups:{other:"Други",negateLabel:"Не %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Обновено"}},notFound:void 0},editor:{editorControl:{field:{optional:"незадължителен"}},editorControlPane:{widget:{required:"%{fieldLabel} е задължително.",regexPattern:"%{fieldLabel} не съответства на модела: %{pattern}.",processing:"%{fieldLabel} се обработва.",range:"%{fieldLabel} трябва да бъде между %{minValue} и %{maxValue}.",min:"%{fieldLabel} трябва да бъде поне %{minValue}.",max:"%{fieldLabel} трябва да бъде %{maxValue} или по-малко.",rangeCount:"%{fieldLabel} трябва да има между %{minCount} и %{maxCount} елемент(и).",rangeCountExact:"%{fieldLabel} трябва да има точно %{count} елемент(и).",rangeMin:"%{fieldLabel} трябва да бъде поне %{minCount} елемент(и).",rangeMax:"%{fieldLabel} трябва да бъде %{maxCount} или по-малко елемент(и).",invalidPath:"'%{path}' не е валиден път",pathExists:"Пътят '%{path}' вече съществува",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Писане на %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Наистина ли искате да напуснете тази страница?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Имате незапазени промени, моля, запазете преди актуализиране на състоянието.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"Моля, актуализирайте състоянието на „Готово“, преди да публикувате",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Имате незапазени промени, моля, запазете преди публикуване.",onPublishingTitle:void 0,onPublishingBody:"Наистина ли искате да публикувате този запис?",onUnpublishingTitle:void 0,onUnpublishingBody:"Наистина ли искате да прекратите публикуването на този запис?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Наистина ли искате да изтриете този публикуван запис, както и незаписаните промени от текущата сесия?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Наистина ли искате да изтриете този публикуван запис?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Това ще изтрие всички непубликувани промени в този запис, както и незаписаните ви промени от текущата сесия. Все още ли искате да изтриете?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Всички непубликувани промени в този запис ще бъдат изтрити. Все още ли искате да изтриете?",loadingEntry:"Зареждане на запис..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Превключване i18n",togglePreview:"Превключване на визуализация",toggleScrollSync:"Синхронизирай превъртане"},editorToolbar:{publishing:"Публикуване...",publish:"Публикувай",published:"Публикуван",unpublish:"Непубликувай",duplicate:"Дублирай",unpublishing:"Непубликуване...",publishAndCreateNew:"Публикувай и създай нов",publishAndDuplicate:"Публикувай и дублирай",deleteUnpublishedChanges:"Изтриване на непубликувани промени",deleteUnpublishedEntry:"Изтрий непубликувани записи",deletePublishedEntry:"Изтрий публикувани записи",deleteEntry:"Изтрий запис",saving:"Запазване...",save:"Запази",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Изтриване...",updating:"Актуализиране...",status:"Cъстояние: %{status}",backCollection:"Записване в %{collectionLabel} колекция",unsavedChanges:"Незапазени Промени",changesSaved:"Запазени промени",draft:"Чернова",inReview:"В ревю",ready:"Готово",publishNow:"Публикувай сега",deployPreviewPendingButtonLabel:"Проверете визуализацията",deployPreviewButtonLabel:"Визуализация",deployButtonLabel:"Изглед",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Удебелен",italic:"Курсив",strikethrough:void 0,code:"Код",codeBlock:void 0,insertCodeBlock:void 0,link:"Връзка",insertLink:void 0,paragraph:void 0,headings:"Заглавия",quote:"Цитат",insertQuote:void 0,bulletedList:"Маркиран Списък",numberedList:"Номериран Списък",addComponent:"Добави Компонент",richText:"Форматиране на текст",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Избери изображение",chooseMultiple:void 0,chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на изображението",chooseDifferent:"Избери различно изображение",addMore:void 0,remove:"Премахни изображение",removeAll:void 0},file:{choose:"Избери файл file",chooseUrl:"Вмъкване от URL",chooseMultiple:void 0,replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на файла",chooseDifferent:"Избери различен файл",addMore:void 0,remove:"Премахни файл",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Няма контрол за приспособлението '%{widget}'."},unknownPreview:{noPreview:"Няма визуализация за приспособлението '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сега",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Чернова",copy:"Копирай",copyUrl:"Копирай URL",copyPath:"Копитай път",copyName:"Копитай име",copied:"Копирано"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Наистина ли искате да изтриете избрания медиен файл?",fileTooLargeTitle:void 0,fileTooLargeBody:"Файлът е твърде голям.\nНастройките не позволяват запазване на файлове по-големи от %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Няма резултати.",noAssetsFound:"Няма намерени ресурси.",noImagesFound:"Няма намерени изображения.",private:"Частен ",images:"Изображения",mediaAssets:"Медийни ресурси",search:"Търсене...",uploading:"Качване...",upload:"Качи",download:"Изтегли",deleting:"Изтриване...",deleteSelected:"Изтрай избрани",chooseSelected:"Избери избрани",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Обратно към сайта"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Грешка",details:"Възникна грешка - моля ",reportIt:"докладвайте в GitHub.",detailsHeading:"Детайли",privacyWarning:"При отваряне на билет той автоматично се попълва предварително със съобщение за грешка и информация за отстраняване на грешки.\nМоля, проверете дали данните са верни и не съдържат поверителна информация.",recoveredEntry:{heading:"Възстановен документ",warning:"Моля, копирайте това съобщение някъде, преди да напуснете страницата!",copyButtonLabel:"Копиране в клипборда"}},settingsDropdown:{theme:void 0,logOut:"Изход"},toast:{onFailToLoadEntries:"Неуспешно зареждане на записа: %{details}",onFailToLoadDeployPreview:"Неуспешно зареждане на визуализация: %{details}",onFailToPersist:"Неуспешно запазване на записа: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Неуспешно изтриване на записа: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Неуспешно актуализиране на състоянието: %{details}",missingRequiredField:"Извинете, пропуснахте задължително поле. Моля, попълнете преди запазване.",entrySaved:"Записът е запазен",entryDeleted:void 0,entryPublished:"Записът е публикуван",entryUnpublished:"Записът е непубликуван",onFailToPublishEntry:"Неуспешно публикуване на запис: %{details}",onFailToUnpublishEntry:"Неуспешно премахване на публикацията на записа: %{details}",entryUpdated:"Статусът на записа е актуализиран",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Непубликуваните промени са изтрити",onFailToAuth:"%{details}",onLoggedOut:"Излезли сте. Моля, запазете всички данни и влезте отново",onBackendDown:"Има прекъсване в работата на бекенда. Виж детайлите %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Зареждане на редакционни записи",workflowHeading:"Редакционен работен процес",newPost:"Нова публикация",description:"Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. |||| Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Изтриване на промените",deleteNewEntry:"Изтриване на нов запис",publishChanges:"Публикуване на промени",publishNewEntry:"Публикуване на нов запис"},workflowList:{onDeleteEntry:"Наистина ли искате да изтриете този запис?",onPublishingNotReadyEntry:'Могат да се публикуват само елементи със статус "Готов". Плъзенете картата в колоната "Готов" за да активирате публикуването.',onPublishEntry:"Наистина ли искате да публикувате този запис?",draft:"Чернови",pending_review:"В Ревю",pending_publish:"Готов",currentEntries:"%{smart_count} запис |||| %{smart_count} записи"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},zh_Hans:{auth:{login:"登录",loggingIn:"正在登录...",loginWithNetlifyIdentity:"使用 Netlify Identity 登录",loginWithBitbucket:"使用 Bitbucket 登录",loginWithGitHub:"使用 GitHub 登录",loginWithGitLab:"使用 GitLab 登录",loginWithGitea:"使用 Gitea 登录",errors:{email:"请输入电子邮箱",password:"请输入密码",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"无法连接账户认证系统(如果正在使用 git-gateway 作为 backend,请确保已经开启 Netlify Identity 服务以及 Git Gateway)"}},app:{header:{content:"内容",workflow:"工作流",media:"媒体",quickAdd:"快速新建"},app:{loading:"正在加载...",errorHeader:"加载 CMS 配置时发生错误",configErrors:"配置错误",configNotFound:void 0,checkConfigYml:"请检查 config.yml 文件是否配置正确",loadingConfig:"正在加载配置...",waitingBackend:"等待 backend 数据..."},notFoundPage:{header:"页面不存在"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"查找所有...",searchIn:"查找"},collectionTop:{sortBy:"排序",viewAs:"查看",newButton:"新建%{collectionLabel}",ascending:"升序",descending:"降序",searchResults:"有关“%{searchTerm}”的搜索结果",searchResultsInCollection:"在%{collection}中有关“%{searchTerm}”的搜索结果",filterBy:"筛选",groupBy:"分组"},entries:{loadingEntries:"正在加载内容...",cachingEntries:"正在缓存内容...",longerLoading:"这可能需要花费几分钟时间",noEntries:"暂无内容"},groups:{other:"其他",negateLabel:"非%{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新于"}},notFound:void 0},editor:{editorControl:{field:{optional:"可选"}},editorControlPane:{widget:{required:"“%{fieldLabel}”是必填项",regexPattern:"“%{fieldLabel}”不满足模式%{pattern}",processing:"“%{fieldLabel}”正在处理中",range:"“%{fieldLabel}”必须位于 %{minValue} 和 %{maxValue} 之间",min:"“%{fieldLabel}”必须至少为 %{minValue}",max:"“%{fieldLabel}”必须小于等于 %{maxValue}",rangeCount:"“%{fieldLabel}”必须包含 %{minCount} 到 %{maxCount} 个项目",rangeCountExact:"“%{fieldLabel}”必须且只能包含 %{count} 个项目",rangeMin:"“%{fieldLabel}”必须为至少 %{minCount} 个项目",rangeMax:"“%{fieldLabel}”必须为小于等于 %{maxCount} 个项目",invalidPath:"“%{path}”为无效路径",pathExists:"路径“%{path}”已经存在",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"正在使用%{locale}撰写",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"你确定要离开此页面吗?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"你有尚未保存的修改,请在更新状态前进行保存",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"请在发布之前将状态更新为“就绪”",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"你有尚未保存的修改,请在发布前进行保存",onPublishingTitle:void 0,onPublishingBody:"你确定要发布此内容吗?",onUnpublishingTitle:void 0,onUnpublishingBody:"你确定要撤销发布此内容吗?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"你确定要删除这个已经发布的内容,以及当前尚未保存的修改吗?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"你确定要删除这个已经发布的内容吗?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"此内容所有未被发布的修改,以及当前尚未保存的修改都将被删除,你确定吗?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"此内容所有未被发布的修改都将被删除,你确定吗?",loadingEntry:"正在加载内容..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"打开/关闭国际化",togglePreview:"打开/关闭预览",toggleScrollSync:"同步滚动"},editorToolbar:{publishing:"正在发布...",publish:"发布",published:"已发布",unpublish:"撤销发布",duplicate:"复制",unpublishing:"正在撤销发布...",publishAndCreateNew:"发布,然后新建内容",publishAndDuplicate:"发布,然后复制内容",deleteUnpublishedChanges:"删除未发布的修改",deleteUnpublishedEntry:"删除未发布的内容",deletePublishedEntry:"删除已发布的内容",deleteEntry:"删除内容",saving:"正在保存...",save:"保存",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"正在删除...",updating:"正在更新...",status:"状态: %{status}",backCollection:"正在集合“%{collectionLabel}”中编写",unsavedChanges:"含未保存的修改",changesSaved:"修改已保存",draft:"草稿",inReview:"审核中",ready:"就绪",publishNow:"立即发布",deployPreviewPendingButtonLabel:"点击以预览",deployPreviewButtonLabel:"查看预览",deployButtonLabel:"查看发布",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"粗体",italic:"斜体",strikethrough:void 0,code:"代码",codeBlock:void 0,insertCodeBlock:void 0,link:"链接",insertLink:void 0,paragraph:void 0,headings:"标题",quote:"引用",insertQuote:void 0,bulletedList:"无序列表",numberedList:"有序列表",addComponent:"添加组件",richText:"富文本",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"选择图片",chooseMultiple:void 0,chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入图片的 URL",chooseDifferent:"选择其他图片",addMore:void 0,remove:"移除图片",removeAll:void 0},file:{choose:"选择文件",chooseUrl:"从 URL 插入",chooseMultiple:void 0,replaceUrl:"用 URL 替代",promptUrl:"输入文件的 URL",chooseDifferent:"选择其他文件",addMore:void 0,remove:"移除文件",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"'%{widget}'的控件不存在"},unknownPreview:{noPreview:"'%{widget}'无法预览"},headingOptions:{headingOne:"标题 1",headingTwo:"标题 2",headingThree:"标题 3",headingFour:"标题 4",headingFive:"标题 5",headingSix:"标题 6"},datetime:{now:"现在",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:"复制",copyUrl:"复制 URL",copyPath:"复制路径",copyName:"复制名称",copied:"已复制"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"你确定要删除此媒体项目吗?",fileTooLargeTitle:void 0,fileTooLargeBody:"文件体积过大\n目前的配置中不允许文件体积超过 %{size} kB",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"暂无结果",noAssetsFound:"未找到资源",noImagesFound:"未找到图片",private:"私有",images:"图片",mediaAssets:"媒体资源",search:"搜索...",uploading:"正在上传...",upload:"上传",download:"下载",deleting:"正在下载...",deleteSelected:"删除已选中项目",chooseSelected:"选用已选中项目",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"返回主页"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"错误",details:"程序发生了一个错误,请",reportIt:"在 Github 上发布一个 Issue",detailsHeading:"详情",privacyWarning:"发布一个 Issue 会将错误信息和调试数据预置其中\n请确保这些信息是正确的,同时移除那些敏感数据",recoveredEntry:{heading:"已恢复的文档",warning:"请在切换至其他页面之前,将它复制并粘贴到某个地方",copyButtonLabel:"复制到剪贴板"}},settingsDropdown:{theme:void 0,logOut:"注销"},toast:{onFailToLoadEntries:"加载内容失败: %{details}",onFailToLoadDeployPreview:"加载预览失败: %{details}",onFailToPersist:"保存内容失败: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"删除内容失败: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"更新状态失败: %{details}",missingRequiredField:"你漏掉了一个必填项,请在保存之前将它填写好",entrySaved:"内容已保存",entryDeleted:void 0,entryPublished:"内容已发布",entryUnpublished:"内容已撤销发布",onFailToPublishEntry:"发布失败: %{details}",onFailToUnpublishEntry:"撤销发布失败: %{details}",entryUpdated:"内容状态已更新",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"未发布的修改已删除",onFailToAuth:"%{details}",onLoggedOut:"你已注销,请先保存好数据然后再次登录",onBackendDown:"Backend 服务已中断,欲知详情请查看:%{details}"}},workflow:{workflow:{dashboard:void 0,loading:"正在加载编辑工作流项目",workflowHeading:"编辑工作流",newPost:"新建帖子",description:"%{smart_count} 个待审查的内容、%{readyCount} 个已就绪的内容 |||| %{smart_count} 个待检查的内容、%{readyCount} 个已就绪的内容",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} 由 %{author} 修改",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"由 %{author} 修改",deleteChanges:"删除修改",deleteNewEntry:"删除新内容",publishChanges:"发布修改",publishNewEntry:"发布新内容"},workflowList:{onDeleteEntry:"你确定要删除此内容吗?",onPublishingNotReadyEntry:"只有状态为“就绪”的项目才能被发布。需要先将卡片拖动到“就绪”一列才能发布",onPublishEntry:"你确定要发布此内容吗?",draft:"草稿",pending_review:"审查中",pending_publish:"就绪",currentEntries:"%{smart_count} 个内容 |||| %{smart_count} 个内容"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},he:{auth:{login:"התחברות",loggingIn:"התחברות...",loginWithNetlifyIdentity:"התחברות עם Netlify Identity",loginWithBitbucket:"התחברות עם Bitbucket",loginWithGitHub:"התחברות עם GitHub",loginWithGitLab:"התחברות עם GitLab",loginWithGitea:"התחברות עם Gitea",errors:{email:"נא לא לשכוח להקליד את כתובת המייל",password:"נא להקליד את הסיסמה.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"הגדרות אימות הזהות אינן נגישות. כאשר משתמשים ב-git-gateway כשירות ה-backend יש לוודא ששירות אימות הזהות ו-Git Gateway הופעלו."}},app:{header:{content:"תוכן",workflow:"ניהול אייטמים לפני הפרסום",media:"מדיה",quickAdd:"הוספה מהירה"},app:{loading:"טעינה...",errorHeader:"אירעה שגיאה בטעינת הגדרות מערכת ניהול התוכן",configErrors:"שגיאות בהגדרות",configNotFound:void 0,checkConfigYml:"יש לבדוק את הקובץ config.yml.",loadingConfig:"טעינת הגדרות...",waitingBackend:"ממתין לטעינת ה-backend..."},notFoundPage:{header:"לא נמצא"}},collection:{sidebar:{collections:"קטגוריות",allCollections:"כל הקטגוריות",searchAll:"חיפוש כללי",searchIn:"חיפוש בקטגוריית"},collectionTop:{sortBy:"מיון לפי",viewAs:"תצוגה לפי",newButton:"חדש %{collectionLabel}",ascending:"בסדר עולה",descending:"בסדר יורד",searchResults:'תוצאות חיפוש עבור "%{searchTerm}"',searchResultsInCollection:'תוצאות חיפוש עבור "%{searchTerm}" ב%{collection}',filterBy:"סינון לפי",groupBy:"ארגון לפי"},entries:{loadingEntries:"טעינת אייטמים...",cachingEntries:"שמירת אייטמים בזכרון המטמון",longerLoading:"התהליך עשוי להימשך כמה דקות",noEntries:"לא נמצאו אייטמים"},groups:{other:"אחר",negateLabel:"לא %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"מאת"},updatedOn:{label:"עודכן בתאריך"}},notFound:void 0},editor:{editorControl:{field:{optional:"רשות"}},editorControlPane:{widget:{required:"%{fieldLabel} הוא שדה חובה.",regexPattern:"%{fieldLabel} לא תואם לדפוס %{pattern}.",processing:"%{fieldLabel} מעובד.",range:"%{fieldLabel} חייב להיות בין %{minValue} לבין %{maxValue}.",min:"%{fieldLabel} חייב להיות לפחות %{minValue}.",max:"%{fieldLabel} חייב להיות %{maxValue} או פחות.",rangeCount:"%{fieldLabel} חייב לכלול בין %{minCount} לבין %{maxCount} אייטמים.",rangeCountExact:"%{fieldLabel} חייב לכלול בדיוק %{count} אייטמים.",rangeMin:"%{fieldLabel} חייב לכלול לפחות %{minCount} אייטמים",rangeMax:"%{fieldLabel} חייב לכלול %{maxCount} אייטמים לכל היותר.",invalidPath:"'%{path}' אינו URL תקין",pathExists:"'%{path}' כבר קיים",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"כתיבה בשפה ה%{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"האם ברצונך לעבור לעמוד אחר ללא שמירה?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני עדכון מצב האייטם.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"נא לשנות את מצב האייטם ל״מוכן לפרסום״ לפני הפרסום.",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני הפרסום.",onPublishingTitle:void 0,onPublishingBody:"האם ברצונך לפרסם את האייטם?",onUnpublishingTitle:void 0,onUnpublishingBody:"האם ברצונך לבטל את פרסום האייטם?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"האם ברצונך למחוק את האייטם הזה לפני פרסומו, וכן את השינויים שבוצעו כעת וטרם נשמרו?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"האם ברצונך למחוק את האייטם הזה לאחר פרסומו?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"פעולה זו תמחק את כל השינויים שבוצעו באייטם זה ולא פורסמו, וכן את השינויים שבוצעו כעת וטרם נשמרו. האם ברצונך למחוק?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"כל השינויים שבוצעו באייטם זה ולא פורסמו יימחקו. האם ברצונך למחוק אותו?",loadingEntry:"טעינת אייטם..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"החלפת שפות",togglePreview:"הפעלת תצוגה מקדימה",toggleScrollSync:"סנכרון הגלילה"},editorToolbar:{publishing:"פרסום...",publish:"פרסום",published:"פורסם",unpublish:"ביטול הפרסום",duplicate:"שכפול",unpublishing:"ביטול הפרסום...",publishAndCreateNew:"פרסום ויצירת אייטם חדש",publishAndDuplicate:"פרסום ושכפול",deleteUnpublishedChanges:"מחיקת השינויים שלא פורסמו",deleteUnpublishedEntry:"מחיקת אייטם שטרם פורסם",deletePublishedEntry:"מחיקת אייטם שפורסם",deleteEntry:"מחיקת האייטם",saving:"שמירה...",save:"שמירה",statusInfoTooltipDraft:"האייטם מוגדר כטיוטה. כדי להשלים את הפעולה ולהעביר אותו למצב ״ממתין לאישור״ יש להעביר אותו למצב ״ממתין לאישור״",statusInfoTooltipInReview:"האייטם ממתין לאישור - לא נדרשת פעולה נוספת. ניתן עדיין לבצע שינויים בעת שהאייטם ממתין לאישור.",deleting:"מחיקה...",updating:"עדכון...",status:"מצב: %{status}",backCollection:"כתיבה בקטגוריית %{collectionLabel}",unsavedChanges:"שינויים לא שמורים",changesSaved:"השינויים נשמרו",draft:"טיוטה",inReview:"ממתין לאישור",ready:"מוכן לפרסום",publishNow:"פרסום מיידי",deployPreviewPendingButtonLabel:"בדיקת תצוגה מקדימה",deployPreviewButtonLabel:"צפייה בתצוגה מקדימה",deployButtonLabel:"צפייה באתר",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"מודגש",italic:"נטוי",strikethrough:void 0,code:"קוד",codeBlock:void 0,insertCodeBlock:void 0,link:"קישור",insertLink:void 0,paragraph:void 0,headings:"כותרת",quote:"ציטוט",insertQuote:void 0,bulletedList:"רשימה לא-ממוספרת",numberedList:"רשימה ממוספרת",addComponent:"הוספת רכיב",richText:"טקסט עשיר",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"בחירת תמונה",chooseMultiple:void 0,chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת תמונה מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של התמונה",chooseDifferent:"בחירת תמונה אחרת",addMore:void 0,remove:"הסרת תמונה",removeAll:void 0},file:{choose:"בחירת קובץ",chooseUrl:"הוספה מכתובת אינטרנט",chooseMultiple:void 0,replaceUrl:"החלפת קובץ מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של הקובץ",chooseDifferent:"בחירת קובץ אחר",addMore:void 0,remove:"הסרת קובץ",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"לא הוגדרו פעולות ל'%{widget}'."},unknownPreview:{noPreview:"אין תצוגה מקדימה ל'%{widget}'."},headingOptions:{headingOne:"כותרת 1",headingTwo:"כותרת 2",headingThree:"כותרת 3",headingFour:"כותרת 4",headingFive:"כותרת 5",headingSix:"כותרת 6"},datetime:{now:"עכשיו",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"הוספת %{item}",addType:"הוספת אייטם מסוג %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"טיוטה",copy:"העתקה",copyUrl:"העתקת ה-URL",copyPath:"העתקת הנתיב",copyName:"העתקת השם",copied:"העתקה הושלמה"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"האם ברצונך למחוק את פריט המדיה הזה?",fileTooLargeTitle:void 0,fileTooLargeBody:"הקובץ גדול מדי.\nמוגדר לא לאפשר העלאת קבצים גדולים מ-%{size} קילובייט.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"לא נמצאו תוצאות.",noAssetsFound:"לא נמצאו קבצים.",noImagesFound:"לא נמצאו תמונות.",private:"פרטי ",images:"תמונות",mediaAssets:"קבצי מדיה",search:"חיפוש...",uploading:"העלאה...",upload:"העלאה",download:"הורדה",deleting:"מחיקה...",deleteSelected:"למחוק את הקובץ המסומן",chooseSelected:"לבחור את הקובץ המסומן",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"בחזרה לאתר"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"שגיאה",details:"אירעה שגיאה. נא ",reportIt:"דווחו על הבעיה ב-GitHub.",detailsHeading:"פרטים",privacyWarning:"פתיחת Issue מעתיקה את הודעת השגיאה ונתונים רלוונטיים לאיתור הבעיה (debugging).\nיש לוודא שהמידע מדויק ולמחוק נתונים אישיים כלשהם.",recoveredEntry:{heading:"מסמך משוחזר",warning:"נא להעתיק ולהדביק את זה לפני ניווט לחלון אחר!",copyButtonLabel:"העתקה"}},settingsDropdown:{theme:void 0,logOut:"התנתקות"},toast:{onFailToLoadEntries:"טעינת האייטם %{details} נכשלה",onFailToLoadDeployPreview:"טעינת התצוגה המקדימה של האייטם %{details} נכשלה",onFailToPersist:"אחסון האייטם %{details} נכשל",onFailToPersistMedia:void 0,onFailToDelete:"מחיקת האייטם %{details} נכשלה",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"עדכון מצב האייטם %{details} נכשל",missingRequiredField:"אופס, שכחת למלא שדה חובה. נא להשלים את המידע החסר לפני השמירה",entrySaved:"האייטם נשמר",entryDeleted:void 0,entryPublished:"האייטם פורסם",entryUnpublished:"האייטם הועבר לטיוטות",onFailToPublishEntry:"פרסום האייטם %{details} נכשל",onFailToUnpublishEntry:"ביטול פרסום האייטם %{details} נכשל",entryUpdated:"מצב האייטם עודכן",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"השינויים שלא פורסמו נמחקו",onFailToAuth:"%{details}",onLoggedOut:"נותקת מהמערכת. יש לגבות מידע לא שמור ולהתחבר שוב",onBackendDown:"ה-backend המוגדר אינו זמין. ראו %{details} למידע נוסף"}},workflow:{workflow:{dashboard:void 0,loading:"טעינת אייטמים",workflowHeading:"ניהול אייטמים לפני הפרסום",newPost:"אייטם חדש",description:"%אייטם {smart_count} ממתין לאישור, אייטם %{readyCount} מוכן לפרסום |||| %{smart_count} אייטמים ממתינים לאישור, %{readyCount} מוכנים לפרסום",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} מאת %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"מאת %{author}",deleteChanges:"למחוק את השינויים",deleteNewEntry:"למחוק אייטם חדש",publishChanges:"פרסום השינויים",publishNewEntry:"פרסום אייטם חדש"},workflowList:{onDeleteEntry:"האם ברצונך למחוק אייטם זה?",onPublishingNotReadyEntry:"ניתן לפרסם רק אייטמים שנמצאים במצב ״מוכן לפרסום״. נא לגרור את האייטם לטור ״מוכן לפרסום״ כדי לפרסם.",onPublishEntry:"האם ברצונך לפרסם אייטם זה?",draft:"טיוטות",pending_review:"ממתין לאישור",pending_publish:"מוכן לפרסום",currentEntries:"אייטם %{smart_count} |||| %{smart_count} אייטמים"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}}},coe=UD("ErrorMessage",["root"]),doe=({errors:e,className:t})=>e.length?c.createElement("div",{key:"error","data-testid":"error",className:qD(coe.root,t)},e[0].message):null;function foe(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const hoe=/[$_\p{ID_Start}]/u,poe=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,moe=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,goe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,voe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ooe={};function yoe(e){return!!e&&hoe.test(String.fromCodePoint(e))}function boe(e,t){const n=(t||Ooe).jsx?moe:poe;return!!e&&n.test(String.fromCodePoint(e))}function woe(e,t){return((t||Ooe).jsx?voe:goe).test(e)}const koe=/[ \t\n\f\r]/g;function xoe(e){return"object"==typeof e?"text"===e.type&&_oe(e.value):_oe(e)}function _oe(e){return""===e.replace(koe,"")}class Soe{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Poe(e,t){const n={},r={};let i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Xoe=Foe({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qoe(e,t){return t in e?e[t]:t}function Boe(e,t){return qoe(e,t.toLowerCase())}const Voe=Foe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Boe,properties:{xmlns:null,xmlnsXLink:null}}),Yoe=Foe({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Qoe,ariaAutoComplete:null,ariaBusy:Qoe,ariaChecked:Qoe,ariaColCount:Aoe,ariaColIndex:Aoe,ariaColSpan:Aoe,ariaControls:joe,ariaCurrent:null,ariaDescribedBy:joe,ariaDetails:null,ariaDisabled:Qoe,ariaDropEffect:joe,ariaErrorMessage:null,ariaExpanded:Qoe,ariaFlowTo:joe,ariaGrabbed:Qoe,ariaHasPopup:null,ariaHidden:Qoe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:joe,ariaLevel:Aoe,ariaLive:null,ariaModal:Qoe,ariaMultiLine:Qoe,ariaMultiSelectable:Qoe,ariaOrientation:null,ariaOwns:joe,ariaPlaceholder:null,ariaPosInSet:Aoe,ariaPressed:Qoe,ariaReadOnly:Qoe,ariaRelevant:null,ariaRequired:Qoe,ariaRoleDescription:joe,ariaRowCount:Aoe,ariaRowIndex:Aoe,ariaRowSpan:Aoe,ariaSelected:Qoe,ariaSetSize:Aoe,ariaSort:null,ariaValueMax:Aoe,ariaValueMin:Aoe,ariaValueNow:Aoe,ariaValueText:null,role:null}}),Zoe=Foe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Boe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Doe,acceptCharset:joe,accessKey:joe,action:null,allow:null,allowFullScreen:$oe,allowPaymentRequest:$oe,allowUserMedia:$oe,alt:null,as:null,async:$oe,autoCapitalize:null,autoComplete:joe,autoFocus:$oe,autoPlay:$oe,capture:$oe,charSet:null,checked:$oe,cite:null,className:joe,cols:Aoe,colSpan:null,content:null,contentEditable:Qoe,controls:$oe,controlsList:joe,coords:Aoe|Doe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$oe,defer:$oe,dir:null,dirName:null,disabled:$oe,download:Roe,draggable:Qoe,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$oe,formTarget:null,headers:joe,height:Aoe,hidden:$oe,high:Aoe,href:null,hrefLang:null,htmlFor:joe,httpEquiv:joe,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:$oe,itemId:null,itemProp:joe,itemRef:joe,itemScope:$oe,itemType:joe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$oe,low:Aoe,manifest:null,max:null,maxLength:Aoe,media:null,method:null,min:null,minLength:Aoe,multiple:$oe,muted:$oe,name:null,nonce:null,noModule:$oe,noValidate:$oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$oe,optimum:Aoe,pattern:null,ping:joe,placeholder:null,playsInline:$oe,poster:null,preload:null,readOnly:$oe,referrerPolicy:null,rel:joe,required:$oe,reversed:$oe,rows:Aoe,rowSpan:Aoe,sandbox:joe,scope:null,scoped:$oe,seamless:$oe,selected:$oe,shape:null,size:Aoe,sizes:null,slot:null,span:Aoe,spellCheck:Qoe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Aoe,step:null,style:null,tabIndex:Aoe,target:null,title:null,translate:null,type:null,typeMustMatch:$oe,useMap:null,value:Qoe,width:Aoe,wrap:null,align:null,aLink:null,archive:joe,axis:null,background:null,bgColor:null,border:Aoe,borderColor:null,bottomMargin:Aoe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$oe,declare:$oe,event:null,face:null,frame:null,frameBorder:null,hSpace:Aoe,leftMargin:Aoe,link:null,longDesc:null,lowSrc:null,marginHeight:Aoe,marginWidth:Aoe,noResize:$oe,noHref:$oe,noShade:$oe,noWrap:$oe,object:null,profile:null,prompt:null,rev:null,rightMargin:Aoe,rules:null,scheme:null,scrolling:Qoe,standby:null,summary:null,text:null,topMargin:Aoe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Aoe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$oe,disableRemotePlayback:$oe,prefix:null,property:null,results:Aoe,security:null,unselectable:null}}),Goe=Foe({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:qoe,properties:{about:Moe,accentHeight:Aoe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Aoe,amplitude:Aoe,arabicForm:null,ascent:Aoe,attributeName:null,attributeType:null,azimuth:Aoe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Aoe,by:null,calcMode:null,capHeight:Aoe,className:joe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Aoe,diffuseConstant:Aoe,direction:null,display:null,dur:null,divisor:Aoe,dominantBaseline:null,download:$oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Aoe,enableBackground:null,end:null,event:null,exponent:Aoe,externalResourcesRequired:null,fill:null,fillOpacity:Aoe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Doe,g2:Doe,glyphName:Doe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Aoe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Aoe,horizOriginX:Aoe,horizOriginY:Aoe,id:null,ideographic:Aoe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Aoe,k:Aoe,k1:Aoe,k2:Aoe,k3:Aoe,k4:Aoe,kernelMatrix:Moe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Aoe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Aoe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Aoe,overlineThickness:Aoe,paintOrder:null,panose1:null,path:null,pathLength:Aoe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:joe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Aoe,pointsAtY:Aoe,pointsAtZ:Aoe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Moe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Moe,rev:Moe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Moe,requiredFeatures:Moe,requiredFonts:Moe,requiredFormats:Moe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Aoe,specularExponent:Aoe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Aoe,strikethroughThickness:Aoe,string:null,stroke:null,strokeDashArray:Moe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Aoe,strokeOpacity:Aoe,strokeWidth:null,style:null,surfaceScale:Aoe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Moe,tabIndex:Aoe,tableValues:null,target:null,targetX:Aoe,targetY:Aoe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Moe,to:null,transform:null,u1:null,u2:null,underlinePosition:Aoe,underlineThickness:Aoe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Aoe,values:null,vAlphabetic:Aoe,vMathematical:Aoe,vectorEffect:null,vHanging:Aoe,vIdeographic:Aoe,version:null,vertAdvY:Aoe,vertOriginX:Aoe,vertOriginY:Aoe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Aoe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Hoe=Poe([Xoe,Uoe,Voe,Yoe,Zoe],"html"),Koe=Poe([Xoe,Uoe,Voe,Yoe,Goe],"svg"),Joe=/^data[-\w.:]+$/i,eae=/-[a-z]/g,tae=/[A-Z]/g;function nae(e,t){const n=Eoe(t);let r=t,i=Coe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Joe.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(eae,iae);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!eae.test(e)){let n=e.replace(tae,rae);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Woe}return new i(r,t)}function rae(e){return"-"+e.toLowerCase()}function iae(e){return e.charAt(1).toUpperCase()}const oae={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function aae(e){return e.join(" ").trim()}var sae=__webpack_require__(94821);const lae=sae.default||sae,uae=dae("end"),cae=dae("start");function dae(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function fae(e){const t=cae(e),n=uae(e);if(t&&n)return{start:t,end:n}}function hae(e){return mae(e&&e.line)+":"+mae(e&&e.column)}function pae(e){return hae(e&&e.start)+"-"+hae(e&&e.end)}function mae(e){return e&&"number"==typeof e?e:1}class gae extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;var s;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=((s=i.place)&&"object"==typeof s?"position"in s||"type"in s?pae(s.position):"start"in s||"end"in s?pae(s):"line"in s||"column"in s?hae(s):"":"")||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}gae.prototype.file="",gae.prototype.name="",gae.prototype.reason="",gae.prototype.message="",gae.prototype.stack="",gae.prototype.column=void 0,gae.prototype.line=void 0,gae.prototype.ancestors=void 0,gae.prototype.cause=void 0,gae.prototype.fatal=void 0,gae.prototype.place=void 0,gae.prototype.ruleId=void 0,gae.prototype.source=void 0;const vae={}.hasOwnProperty,Oae=new Map,yae=/[A-Z]/g,bae=/-([a-z])/g,wae=new Set(["table","tbody","thead","tfoot","tr"]),kae=new Set(["td","th"]),xae="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _ae(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=Koe,e.schema=i),e.ancestors.push(t);const o=Tae(e,t.tagName,!1),a=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&vae.call(t.properties,i)){const o=Cae(e,i,t.properties[i]);if(o){const[i,a]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof a&&kae.has(t.tagName)?r=a:n[i]=a}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=Eae(e,t);return wae.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!xoe(e)}))),Sae(e,a,o,t),Pae(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}$ae(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=Koe,e.schema=i),e.ancestors.push(t);const o=null===t.name?e.Fragment:Tae(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const i=t.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else $ae(e,t.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else $ae(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),s=Eae(e,t);return Sae(e,a,o,t),Pae(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$ae(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Pae(r,Eae(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Sae(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Pae(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Eae(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Oae;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(zae(e,e.length,0,t),e):t}function Nae(e){const t={};let n,r,i,o,a,s,l,u=-1;for(;++ui?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a-1&&e.test(String.fromCharCode(t))}}function ose(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return nse(r)?(e.enter(n),a(r)):t(r)};function a(r){return nse(r)&&o++o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(v(a),e=n;er;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function O(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},lse={tokenize:function(e,t,n){return ose(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},use={tokenize:function(e,t,n){return function(t){return nse(t)?ose(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||ese(e)?t(e):n(e)}},partial:!0},cse={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):ese(t)?e.check(dse,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Nae(e),e}},dse={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ose(e,i,"linePrefix")};function i(i){if(null===i||ese(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},fse={tokenize:function(e){const t=this,n=e.attempt(use,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,ose(e,e.attempt(this.parser.constructs.flow,r,e.attempt(cse,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},hse={resolveAll:vse()},pse=gse("string"),mse=gse("text");function gse(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function m(e){l=void 0,d=e,f=f(e)}function g(e,t){t.restore()}function v(e,t){return function(n,i,o){let a,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?o:g(e[d])}function g(e){return function(n){return h=function(){const e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,y()},from:i}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?O():e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,v,O)(n)}}function v(t){return l=!0,e(f,h),i}function O(e){return l=!0,h.restore(),++d=3&&(null===o||ese(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),nse(t)?ose(e,o,"whitespace")(t):o(t))}}},kse={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Hae(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(wse,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Hae(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(use,r.interrupt?n:u,e.attempt(xse,d,c))}function u(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function c(t){return nse(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(use,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ose(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!nse(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_se,t,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ose(e,e.attempt(kse,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},xse={tokenize:function(e,t,n){const r=this;return ose(e,(function(e){const i=r.events[r.events.length-1];return!nse(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},_se={tokenize:function(e,t,n){const r=this;return ose(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},Sse={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return nse(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){return nse(t)?ose(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(Sse,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Pse(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||Gae(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||ese(t)?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return c||null!==i&&41!==i&&!tse(i)?c999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):ese(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||ese(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!nse(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function Cse(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):ese(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ose(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||ese(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function Tse(e,t){let n;return function r(i){return ese(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):nse(i)?ose(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function $se(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qse={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Ese.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=$se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return tse(t)?Tse(e,s)(t):s(t)}function s(t){return Pse(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Rse,u,u)(t)}function u(t){return nse(t)?ose(e,c,"whitespace")(t):c(t)}function c(o){return null===o||ese(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},Rse={tokenize:function(e,t,n){return function(t){return tse(t)?Tse(e,r)(t):n(t)};function r(t){return Cse(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return nse(t)?ose(e,o,"whitespace")(t):o(t)}function o(e){return null===e||ese(e)?t(e):n(e)}},partial:!0},Ase={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ose(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):ese(t)?e.attempt(jse,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ese(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},jse={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):ese(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ose(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):ese(e)?i(e):n(e)}},partial:!0},Dse={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||tse(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||ese(n)?(e.exit("atxHeading"),t(n)):nse(n)?ose(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||tse(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},zae(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},Mse={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),nse(t)?ose(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||ese(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},Ise=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],zse=["pre","script","style","textarea"],Wse={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:j):Vae(s)?(e.consume(s),a=String.fromCharCode(s),p):n(s)}function c(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,f):Vae(o)?(e.consume(o),i=4,r.interrupt?t:j):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:j):n(i)}function f(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:P:f):n(i)}function h(t){return Vae(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||tse(s)){const l=47===s,u=a.toLowerCase();return l||o||!zse.includes(u)?Ise.includes(a.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):P(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):v(s)):(i=1,r.interrupt?t(s):P(s))}return 45===s||Yae(s)?(e.consume(s),a+=String.fromCharCode(s),p):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:P):n(i)}function g(t){return nse(t)?(e.consume(t),g):_(t)}function v(t){return 47===t?(e.consume(t),_):58===t||95===t||Vae(t)?(e.consume(t),O):nse(t)?(e.consume(t),v):_(t)}function O(t){return 45===t||46===t||58===t||95===t||Yae(t)?(e.consume(t),O):y(t)}function y(t){return 61===t?(e.consume(t),b):nse(t)?(e.consume(t),y):v(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):nse(t)?(e.consume(t),b):k(t)}function w(t){return t===l?(e.consume(t),l=null,x):null===t||ese(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||tse(t)?y(t):(e.consume(t),k)}function x(e){return 47===e||62===e||nse(e)?v(e):n(e)}function _(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||ese(t)?P(t):nse(t)?(e.consume(t),S):n(t)}function P(t){return 45===t&&2===i?(e.consume(t),$):60===t&&1===i?(e.consume(t),Q):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),j):93===t&&5===i?(e.consume(t),A):!ese(t)||6!==i&&7!==i?null===t||ese(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(Nse,M,E)(t))}function E(t){return e.check(Lse,C,M)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||ese(t)?E(t):(e.enter("htmlFlowData"),P(t))}function $(t){return 45===t?(e.consume(t),j):P(t)}function Q(t){return 47===t?(e.consume(t),a="",R):P(t)}function R(t){if(62===t){const n=a.toLowerCase();return zse.includes(n)?(e.consume(t),D):P(t)}return Vae(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):P(t)}function A(t){return 93===t?(e.consume(t),j):P(t)}function j(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),j):P(t)}function D(t){return null===t||ese(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},Nse={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(use,t,n)}},partial:!0},Lse={tokenize:function(e,t,n){const r=this;return function(t){return ese(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Fse={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Use={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),nse(t)?ose(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=s?(e.exit("codeFencedFenceSequence"),nse(t)?ose(e,c,"whitespace")(t):c(t)):n(t)}function c(r){return null===r||ese(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),nse(t)?ose(e,u,"whitespace")(t):u(t))}function u(n){return null===n||ese(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Fse,h,O)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||ese(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):nse(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ose(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),c)}function d(t){return null===t||ese(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||ese(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===o?n(t):(e.consume(t),f)}function h(t){return e.attempt(i,O,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&nse(t)?ose(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||ese(t)?e.check(Fse,h,O)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||ese(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function O(n){return e.exit("codeFenced"),t(n)}},concrete:!0},Xse=document.createElement("i");function qse(e){const t="&"+e+";";Xse.innerHTML=t;const n=Xse.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const Bse={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Yae,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Kae,u):(e.enter("characterReferenceValue"),i=7,o=Hae,u(t))}function u(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==Yae||qse(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);tle(d,-s),tle(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Wae(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Wae(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Wae(l,yse(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=Wae(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=Wae(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,zae(e,n-1,c-n+3,l),c=n+l.length-u-2;break}for(c=-1;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const gle=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vle(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return mle(n.slice(t?2:1),t?16:10)}return qse(n)||e}function Ole(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function yle(e){return e&&"object"==typeof e?"position"in e||"type"in e?wle(e.position):"start"in e||"end"in e?wle(e):"line"in e||"column"in e?ble(e):"":""}function ble(e){return kle(e&&e.line)+":"+kle(e&&e.column)}function wle(e){return ble(e&&e.start)+"-"+ble(e&&e.end)}function kle(e){return e&&"number"==typeof e?e:1}const xle={}.hasOwnProperty;function _le(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(O),autolinkProtocol:c,autolinkEmail:c,atxHeading:i(m),blockQuote:i((function(){return{type:"blockquote",children:[]}})),characterEscape:c,characterReference:c,codeFenced:i(p),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(p,o),codeText:i((function(){return{type:"inlineCode",value:""}}),o),codeTextData:c,data:c,codeFlowValue:c,definition:i((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:i(g),hardBreakTrailing:i(g),htmlFlow:i(v,o),htmlFlowData:c,htmlText:i(v,o),htmlTextData:c,image:i((function(){return{type:"image",title:null,url:"",alt:null}})),label:o,link:i(O),listItem:i((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(y,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:i(y),paragraph:i((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(m),strong:i((function(){return{type:"strong",children:[]}})),thematicBreak:i((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=mle(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=qse(t);const i=this.stack.pop();i.value+=r,i.position.end=Sle(e.end)},codeFenced:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ole(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(f),hardBreakTrailing:s(f),htmlFlow:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:d,htmlText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:d,image:s((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(gle,vle)}(t),n.identifier=Ole(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Sle(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),d.call(this,e))},link:s((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ole(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};Ple(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:a,exit:l,buffer:o,resume:u,data:n},c=[];let d=-1;for(;++d0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Cle).call(s,void 0,e[0])}for(i.position={start:Sle(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Sle(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{const e=n([],i);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new $le[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new $le[o](a),i)};return r})(new Map,e)(0),Rle="",{toString:Ale}={},{keys:jle}=Object,Dle=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ale.call(e).slice(8,-1);switch(n){case"Array":return[1,Rle];case"Object":return[2,Rle];case"Date":return[3,Rle];case"RegExp":return[4,Rle];case"Map":return[5,Rle];case"Set":return[6,Rle]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Mle=([e,t])=>0===e&&("function"===t||"symbol"===t),Ile=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=Dle(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s)return i([s,[...r]],r);const e=[],t=i([a,e],r);for(const t of r)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([a,n],r);for(const t of jle(r))!e&&Mle(Dle(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[n,i]of r)(e||!Mle(Dle(n))&&!Mle(Dle(i)))&&t.push([o(n),o(i)]);return n}case 6:{const t=[],n=i([a,t],r);for(const n of r)!e&&Mle(Dle(n))||t.push(o(n));return n}}const{message:l}=r;return i([a,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},zle="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Qle(Ile(e,t)):structuredClone(e):(e,t)=>Qle(Ile(e,t)),Wle=(Nle(/\p{P}/u),Nle(/[A-Za-z]/),Nle(/[\dA-Za-z]/));function Nle(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Lle(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Fle(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ule(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}Nle(/[#-'*+\--9=?A-Z^-~]/),Nle(/\d/),Nle(/[\dA-Fa-f]/),Nle(/[!-/:-@[-`{-~]/),Nle(/\s/);const Xle=function(e){if(null==e)return Ble;if("function"==typeof e)return qle(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return c;function c(){let u,c,d,f=Vle;if((!t||o(i,s,l[l.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[Yle,e]:null==e?Vle:[e]}(n(i,l)),f[0]===Zle))return f;if("children"in i&&i.children){const t=i;if(t.children&&f[0]!==Gle)for(c=(r?t.children.length:-1)+a,d=l.concat(t);c>-1&&c1:t}const eue=9,tue=32;function nue(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(rue(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(rue(t.slice(i),i>0,!1)),o.join("")}function rue(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===eue||t===tue;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===eue||t===tue;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const iue={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Lle(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Kle(e,t);const i={src:Lle(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Lle(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Kle(e,t);const i={href:Lle(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Lle(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=cae(t.children[1]),a=uae(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s0&&n.push({type:"text",value:"\n"}),n}function fue(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function hue(e,t){const n=function(e,t){const n=t||sue,r=new Map,i=new Map,o=new Map,a={...iue,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...zle(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function pue(e,t){return e&&"run"in e?async function(n,r){const i=hue(n,t);await e.run(i,r)}:function(n){return hue(n,t||e)}}function mue(e){if(e)throw e}var gue=__webpack_require__(51302);function vue(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const Oue={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');yue(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){if(yue(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){yue(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function yue(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bue=function(){return"/"};function wue(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const kue=["history","path","basename","stem","extname","dirname"];class xue{constructor(e){let t;t=e?wue(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=bue(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++rt.length;let a;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a instanceof Promise?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}(s,i)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new Tue;let t=-1;for(;++t0){let[r,...o]=t;const a=n[i][1];vue(a)&&vue(r)&&(r=gue(!0,a,r)),n[i]=[e,r,...o]}}}}const $ue=(new Tue).freeze();function Que(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Rue(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Aue(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jue(e){if(!vue(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Due(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Mue(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new xue(e)}const Iue=[],zue={allowDangerousHtml:!0},Wue=/^(https?|ircs?|mailto|xmpp)$/i,Nue=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Lue(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Iue,l=e.remarkPlugins||Iue,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zue}:zue,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Fue,h=$ue().use(Tle).use(l).use(pue,u).use(s),p=new xue;"string"==typeof r&&(p.value=r);for(const t of Nue)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const m=h.parse(p);let g=h.runSync(m,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:"root"===g.type?g.children:[g]}),Hle(g,(function(e,r,i){if("raw"===e.type&&i&&"number"==typeof r)return c?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in jae)if(Object.hasOwn(jae,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=jae[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,i)),o&&i&&"number"==typeof r)return d&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}})),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,i,o){const a=Array.isArray(i.children),s=cae(n);return t(r,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,r=function(e,t,n,r){const a=Array.isArray(n.children)?o:i;return r?a(t,n,r):a(t,n)}}var i,o;const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Koe:Hoe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=_ae(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(g,{Fragment:lM.Fragment,components:o,ignoreInvalidStyle:!0,jsx:lM.jsx,jsxs:lM.jsxs,passKeys:!0,passNode:!0})}function Fue(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||Wue.test(e.slice(0,t))?e:""}function Uue(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const Xue=Hue(/\p{P}/u),que=Hue(/[A-Za-z]/),Bue=Hue(/[\dA-Za-z]/);Hue(/[#-'*+\--9=?A-Z^-~]/),Hue(/\d/),Hue(/[\dA-Fa-f]/);const Vue=Hue(/[!-/:-@[-`{-~]/);function Yue(e){return null!==e&&(e<0||32===e)}function Zue(e){return Vue(e)||Xue(e)}const Gue=Hue(/\s/);function Hue(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}const Kue=function(e){if(null==e)return ece;if("function"==typeof e)return Jue(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return c;function c(){let u,c,d,f=tce;if((!t||o(i,s,l[l.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[nce,e]:null==e?tce:[e]}(n(i,l)),f[0]===rce))return f;if("children"in i&&i.children){const t=i;if(t.children&&f[0]!==ice)for(c=(r?t.children.length:-1)+a,d=l.concat(t);c>-1&&c0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Uue(e,"(");let o=Uue(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Oce(e,t,n,r){return!(!yce(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function yce(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Gue(n)||Zue(n))&&(!t||47!==n)}function bce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function wce(){return{enter:{gfmFootnoteDefinition:xce,gfmFootnoteDefinitionLabelString:_ce,gfmFootnoteCall:Ece,gfmFootnoteCallString:Cce},exit:{gfmFootnoteDefinition:Pce,gfmFootnoteDefinitionLabelString:Sce,gfmFootnoteCall:$ce,gfmFootnoteCallString:Tce}}}function kce(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Rce,footnoteReference:Qce}}}function xce(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _ce(){this.buffer()}function Sce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=bce(this.sliceSerialize(e)).toLowerCase()}function Pce(e){this.exit(e)}function Ece(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cce(){this.buffer()}function Tce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=bce(this.sliceSerialize(e)).toLowerCase()}function $ce(e){this.exit(e)}function Qce(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function Rce(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),Ace)),a(),o}function Ace(e,t,n){return 0===t?e:(n?"":" ")+e}Qce.peek=function(){return"["};const jce=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Dce(){return{canContainEols:["delete"],enter:{strikethrough:Ice},exit:{strikethrough:zce}}}function Mce(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jce}],handlers:{delete:Wce}}}function Ice(e){this.enter({type:"delete",children:[]},e)}function zce(e){this.exit(e)}function Wce(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Nce(e){return e.length}function Lce(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Fce(e,t,n){return">"+(n?"":" ")+e}function Uce(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function ede(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),"full"!==i&&u&&u===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function tde(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}function rde(e,t,n,r){const i=Bce(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(nde(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function ide(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),"full"!==i&&u&&u===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ode(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ade(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Kce.peek=function(){return"<"},Jce.peek=function(){return"!"},ede.peek=function(){return"!"},tde.peek=function(){return"`"},rde.peek=function(e,t,n){return nde(e,n)?"<":"["},ide.peek=function(){return"["};const sde=function(e){if(null==e)return ude;if("function"==typeof e)return lde(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),Fce);return i(),a},break:Xce,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,qce);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...s.current()})),t()}return c+=s.move("\n"),o&&(c+=s.move(o+"\n")),c+=s.move(l),u(),c},definition:function(e,t,n,r){const i=Bce(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u},emphasis:Vce,hardBreak:Xce,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Hle(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Zle})),Boolean((!e.depth||e.depth<3)&&Zce(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u},html:Kce,image:Jce,imageReference:ede,inlineCode:tde,link:rde,linkReference:ide,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ode(n);const s=e.ordered?"."===a?")":".":function(e){const t=ode(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ade(n)===a&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e}));return l(),u},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){const i=e.children.some((function(e){return cde(e)}));return(i?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:dde,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ade(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function hde(){return{enter:{table:pde,tableData:Ode,tableHeader:Ode,tableRow:gde},exit:{codeText:yde,table:mde,tableData:vde,tableHeader:vde,tableRow:vde}}}function pde(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function mde(e){this.exit(e),this.data.inTable=void 0}function gde(e){this.enter({type:"tableRow",children:[]},e)}function vde(e){this.exit(e)}function Ode(e){this.enter({type:"tableCell",children:[]},e)}function yde(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bde));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bde(e,t){return"|"===t?t:e}function wde(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=fde.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++il&&(l=e[u].length);++ds[d])&&(s[d]=e)}n.push(o)}o[u]=n,a[u]=i}var c;let d=-1;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=o),h[d]=o),f[d]=a}o.splice(1,0,f),a.splice(1,0,h),u=-1;const p=[];for(;++u0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Fde(e){return null!==e&&(e<0||32===e)}function Ude(e){return-2===e||-1===e||32===e}function Xde(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function qde(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return Ude(r)?(e.enter(n),a(r)):t(r)};function a(r){return Ude(r)&&o++999||93===s&&!o||null===s||91===s||Fde(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Vde(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Fde(s)||(o=!0),a++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function Jde(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||Fde(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Vde(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Fde(t)||(a=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),qde(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function efe(e,t,n){return e.check(Bde,t,e.attempt(Yde,t,n))}function tfe(e){e.exit("gfmFootnoteDefinition")}function nfe(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a-1&&e.test(String.fromCharCode(t))}}function sfe(e){return null===e||function(e){return null!==e&&(e<0||32===e)}(e)||ofe(e)?1:function(e){return ife(e)||rfe(e)}(e)?2:void 0}function lfe(e,t,n){const r=[];let i=-1;for(;++i1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const u=e.exit("strikethroughSequenceTemporary"),c=sfe(o);return u._open=!c||2===c&&Boolean(l),u._close=!l||2===l&&Boolean(c),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n-1&&e.test(String.fromCharCode(t))}}function pfe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return ffe(r)?(e.enter(n),a(r)):t(r)};function a(r){return ffe(r)&&o++0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function gfe(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?b:s;return o===b&&r.parser.lazy[r.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):cfe(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):ffe(t)?pfe(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||dfe(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,ffe(t)?pfe(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):y(t)}function h(t){return ffe(t)?pfe(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||cfe(t)?O(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return ffe(t)?pfe(e,O,"whitespace")(t):O(t)}function O(n){return 124===n?f(n):(null===n||cfe(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function b(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||cfe(n)?(e.exit("tableRow"),t(n)):ffe(n)?pfe(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||dfe(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?x:k)}function x(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function yfe(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0;const f=new mfe;for(;++on[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},kfe(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function wfe(e,t,n,r,i){const o=[],a=kfe(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function kfe(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}function xfe(e){return-2===e||-1===e||32===e}function _fe(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}_fe(/\p{P}/u),_fe(/[A-Za-z]/),_fe(/[\dA-Za-z]/),_fe(/[#-'*+\--9=?A-Z^-~]/),_fe(/\d/),_fe(/[\dA-Fa-f]/),_fe(/[!-/:-@[-`{-~]/),_fe(/\s/);const Sfe={tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return function(e){return null!==e&&(e<0||32===e)}(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return function(e){return null!==e&&e<-2}(r)?t(r):xfe(r)?e.check({tokenize:Efe},t,n)(r):n(r)}}};function Pfe(){return{text:{91:Sfe}}}function Efe(e,t,n){return function(e,t,n,r){const i=Number.POSITIVE_INFINITY;let o=0;return function(r){return xfe(r)?(e.enter(n),a(r)):t(r)};function a(r){return xfe(r)&&o++{const o=F0(n,i),a=(0,c.useCallback)((e=>{e.stopPropagation()}),[]);return c.createElement("div",{"data-testid":"hint",className:qD(Rfe.root,"pointer"===o&&Rfe["cursor-pointer"],"text"===o&&Rfe["cursor-text"],"default"===o&&Rfe["cursor-default"],"inline"===t&&Rfe.inline,r),onClick:a},c.createElement(Lue,{remarkPlugins:[Tfe],allowedElements:["a","strong","em","del"],unwrapDisallowed:!0,components:{a:e=>{let{node:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const s=F0(r,o);return c.createElement("label",{htmlFor:e,"data-testid":null!=a?a:"label",className:qD(jfe.root,"pointer"===s&&jfe["cursor-pointer"],"text"===s&&jfe["cursor-text"],"default"===s&&jfe["cursor-default"],"inline"===n&&jfe.inline,i)},t)},Mfe=UD("Field",["root","inline","wrapper","inline-wrapper","disabled","no-highlight","no-padding","cursor-pointer","cursor-text","cursor-default","error","valid","for-single-list","end-adornment","hint","label"]),Ife=({inputRef:e,label:t,children:n,errors:r,variant:i="default",cursor:o="default",hint:a,forSingleList:s,noPadding:l=!1,noHightlight:u=!1,disabled:d,disableClick:f=!1,endAdornment:h,rootClassName:p,wrapperClassName:m})=>{const g=F0(o,d),v=(0,c.useMemo)((()=>r.length>0),[r.length]),O=t=>{var n,r;d||f||t.target!==(null==e?void 0:e.current)&&(null==e||null===(n=e.current)||void 0===n||n.focus(),null==e||null===(r=e.current)||void 0===r||r.click(),t.preventDefault(),t.stopPropagation())},y=(0,c.useMemo)((()=>t?c.createElement(Dfe,{key:"label",hasErrors:v,variant:i,cursor:g,disabled:d,className:Mfe.label},t.trim()):null),[g,d,v,t,i]),b=(0,c.useMemo)((()=>a?c.createElement(Afe,{key:"hint",hasErrors:v,variant:i,cursor:g,disabled:d,className:Mfe.hint},a):null),[d,g,v,a,i]),w=(0,c.useMemo)((()=>c.createElement(doe,{errors:r})),[r]),k=(0,c.useMemo)((()=>qD(Mfe.root,p,d&&Mfe.disabled,u&&Mfe["no-highlight"],l&&Mfe["no-padding"],"pointer"===g&&Mfe["cursor-pointer"],"text"===g&&Mfe["cursor-text"],"default"===g&&Mfe["cursor-default"],v&&Mfe.error)),[p,u,d,l,g,v]),x=(0,c.useMemo)((()=>qD(Mfe.wrapper,m,s&&Mfe["for-single-list"])),[s,m]);return"inline"===i?c.createElement("div",{"data-testid":"inline-field",className:`${k} ${Mfe.inline}`,onClick:O},c.createElement("div",{"data-testid":"inline-field-wrapper",className:x},c.createElement("div",{className:Mfe["inline-wrapper"]},y,b,n),w)):c.createElement("div",{"data-testid":`field-${null==t?void 0:t.trim()}`,className:k,onClick:O},c.createElement("div",{"data-testid":"field-wrapper",className:x},y,n,b,w),h?c.createElement("div",{className:Mfe["end-adornment"]},h):null)},zfe=UD("Switch",["root","disabled","input","toggle","label"]),Wfe=(0,c.forwardRef)((({label:e,value:t,disabled:n,rootClassName:r,inputClassName:i,onChange:o},a)=>{const s=(0,c.useCallback)((e=>{null==o||o(e)}),[o]);return c.createElement("label",{className:qD(zfe.root,n&&zfe.disabled,r)},c.createElement("input",{"data-testid":"switch-input",ref:a,type:"checkbox",checked:t,className:qD(zfe.input,i),disabled:n,onChange:s,onClick:()=>!1}),c.createElement("div",{className:zfe.toggle}),e?c.createElement("span",{className:zfe.label},e):null)}));Wfe.displayName="Switch";const Nfe=Wfe,Lfe=UD("WidgetBoolean",["root","error","required","disabled","for-single-list","input","content","prefix","suffix"]),Ffe=({value:e,label:t,errors:n,hasErrors:r,disabled:i,field:o,forSingleList:a,duplicate:s,onChange:l})=>{const[u,d]=(0,c.useState)(null!=e&&e),f=(0,c.useMemo)((()=>s?null!=e&&e:u),[u,s,e]),h=(0,c.useRef)(null),p=(0,c.useCallback)((e=>{d(e.target.checked),l(e.target.checked)}),[l]),m=(0,c.useMemo)((()=>{var e;return null!==(e=o.prefix)&&void 0!==e?e:""}),[o.prefix]),g=(0,c.useMemo)((()=>{var e;return null!==(e=o.suffix)&&void 0!==e?e:""}),[o.suffix]);return c.createElement(Ife,{inputRef:h,label:t,errors:n,variant:"inline",cursor:"pointer",hint:o.hint,forSingleList:a,disabled:i,rootClassName:qD(Lfe.root,i&&Lfe.disabled,!1!==o.required&&Lfe.required,r&&Lfe.error,a&&Lfe["for-single-list"])},c.createElement("div",{className:Lfe.content},Ne(m)?c.createElement("div",{className:Lfe.prefix},m):null,c.createElement(Nfe,{ref:h,value:f,disabled:i,onChange:p,rootClassName:Lfe.input}),Ne(g)?c.createElement("div",{className:Lfe.suffix},g):null))},Ufe={properties:{default:{type:"boolean"},prefix:{type:"string"},suffix:{type:"string"}}},Xfe=()=>({name:"boolean",controlComponent:Ffe,options:{schema:Ufe,getDefaultValue:e=>"boolean"==typeof e&&e}});function qfe(e){return cB("MuiCollapse",e)}dB("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Bfe=Pq("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(Cq((({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]})))),Vfe=Pq("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Yfe=Pq("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Zfe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiCollapse"}),{addEndListener:r,children:i,className:o,collapsedSize:a="0px",component:s,easing:l,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:p,onExited:m,onExiting:g,orientation:v="vertical",style:O,timeout:y=tq.standard,TransitionComponent:b=Gq,...w}=n,k={...n,orientation:v,collapsedSize:a},x=(e=>{const{orientation:t,classes:n}=e;return qN({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},qfe,n)})(k),_=eB(),S=h3(),P=c.useRef(null),E=c.useRef(),C="number"==typeof a?`${a}px`:a,T="horizontal"===v,$=T?"width":"height",Q=c.useRef(null),R=rB(t,Q),A=e=>t=>{if(e){const n=Q.current;void 0===t?e(n):e(n,t)}},j=()=>P.current?P.current[T?"clientWidth":"clientHeight"]:0,D=A(((e,t)=>{P.current&&T&&(P.current.style.position="absolute"),e.style[$]=C,d&&d(e,t)})),M=A(((e,t)=>{const n=j();P.current&&T&&(P.current.style.position="");const{duration:r,easing:i}=nB({style:O,timeout:y,easing:l},{mode:"enter"});if("auto"===y){const t=_.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,E.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[$]=`${n}px`,e.style.transitionTimingFunction=i,h&&h(e,t)})),I=A(((e,t)=>{e.style[$]="auto",f&&f(e,t)})),z=A((e=>{e.style[$]=`${j()}px`,p&&p(e)})),W=A(m),N=A((e=>{const t=j(),{duration:n,easing:r}=nB({style:O,timeout:y,easing:l},{mode:"exit"});if("auto"===y){const n=_.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,E.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[$]=C,e.style.transitionTimingFunction=r,g&&g(e)}));return(0,lM.jsx)(b,{in:u,onEnter:D,onEntered:I,onEntering:M,onExit:z,onExited:W,onExiting:N,addEndListener:e=>{"auto"===y&&S.start(E.current||0,e),r&&r(Q.current,e)},nodeRef:Q,timeout:"auto"===y?null:y,...w,children:(e,{ownerState:t,...n})=>(0,lM.jsx)(Bfe,{as:s,className:XN(x.root,o,{entered:x.entered,exited:!u&&"0px"===C&&x.hidden}[e]),style:{[T?"minWidth":"minHeight"]:C,...O},ref:R,ownerState:{...k,state:e},...n,children:(0,lM.jsx)(Vfe,{ownerState:{...k,state:e},className:x.wrapper,ref:P,children:(0,lM.jsx)(Yfe,{ownerState:{...k,state:e},className:x.wrapperInner,children:i})})})})}));Zfe&&(Zfe.muiSupportAuto=!0);const Gfe=Zfe;var Hfe=__webpack_require__(72107);function Kfe(e){return new Hfe.ri(Hfe.il.define(e))}function Jfe(e){return Promise.resolve().then(__webpack_require__.bind(__webpack_require__,46764)).then((t=>t.sql({dialect:t[e]})))}const ehe=[Hfe.c6.of({name:"C",extensions:["c","h","ino"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23193)).then((e=>e.cpp()))}),Hfe.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23193)).then((e=>e.cpp()))}),Hfe.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>Jfe("Cassandra")}),Hfe.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59958)).then((e=>e.css()))}),Hfe.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,6407)).then((e=>e.html()))}),Hfe.c6.of({name:"Java",extensions:["java"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,7501)).then((e=>e.java()))}),Hfe.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59403)).then((e=>e.javascript()))}),Hfe.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,54623)).then((e=>e.json()))}),Hfe.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59403)).then((e=>e.javascript({jsx:!0})))}),Hfe.c6.of({name:"LESS",extensions:["less"],load:()=>__webpack_require__.e(54).then(__webpack_require__.bind(__webpack_require__,11054)).then((e=>e.less()))}),Hfe.c6.of({name:"MariaDB SQL",load:()=>Jfe("MariaSQL")}),Hfe.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,83856)).then((e=>e.markdown()))}),Hfe.c6.of({name:"MS SQL",load:()=>Jfe("MSSQL")}),Hfe.c6.of({name:"MySQL",load:()=>Jfe("MySQL")}),Hfe.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48291)).then((e=>e.php()))}),Hfe.c6.of({name:"PLSQL",extensions:["pls"],load:()=>Jfe("PLSQL")}),Hfe.c6.of({name:"PostgreSQL",load:()=>Jfe("PostgreSQL")}),Hfe.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,99213)).then((e=>e.python()))}),Hfe.c6.of({name:"Rust",extensions:["rs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,80940)).then((e=>e.rust()))}),Hfe.c6.of({name:"Sass",extensions:["sass"],load:()=>__webpack_require__.e(355).then(__webpack_require__.bind(__webpack_require__,32355)).then((e=>e.sass({indented:!0})))}),Hfe.c6.of({name:"SCSS",extensions:["scss"],load:()=>__webpack_require__.e(355).then(__webpack_require__.bind(__webpack_require__,32355)).then((e=>e.sass()))}),Hfe.c6.of({name:"SQL",extensions:["sql"],load:()=>Jfe("StandardSQL")}),Hfe.c6.of({name:"SQLite",load:()=>Jfe("SQLite")}),Hfe.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59403)).then((e=>e.javascript({jsx:!0,typescript:!0})))}),Hfe.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59403)).then((e=>e.javascript({typescript:!0})))}),Hfe.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,967)).then((e=>e.wast()))}),Hfe.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,47152)).then((e=>e.xml()))}),Hfe.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,24631)).then((e=>Kfe(e.apl)))}),Hfe.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,66396)).then((e=>Kfe(e.asciiArmor)))}),Hfe.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>__webpack_require__.e(238).then(__webpack_require__.bind(__webpack_require__,92238)).then((e=>Kfe(e.asn1({}))))}),Hfe.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,88522)).then((e=>Kfe(e.asterisk)))}),Hfe.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,12860)).then((e=>Kfe(e.brainfuck)))}),Hfe.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,10021)).then((e=>Kfe(e.cobol)))}),Hfe.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Kfe(e.csharp)))}),Hfe.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23463)).then((e=>Kfe(e.clojure)))}),Hfe.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23463)).then((e=>Kfe(e.clojure)))}),Hfe.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,41525)).then((e=>Kfe(e.gss)))}),Hfe.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,49612)).then((e=>Kfe(e.cmake)))}),Hfe.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,73182)).then((e=>Kfe(e.coffeeScript)))}),Hfe.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,31402)).then((e=>Kfe(e.commonLisp)))}),Hfe.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,67065)).then((e=>Kfe(e.cypher)))}),Hfe.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>__webpack_require__.e(595).then(__webpack_require__.bind(__webpack_require__,24595)).then((e=>Kfe(e.cython)))}),Hfe.c6.of({name:"Crystal",extensions:["cr"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,69802)).then((e=>Kfe(e.crystal)))}),Hfe.c6.of({name:"D",extensions:["d"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,61632)).then((e=>Kfe(e.d)))}),Hfe.c6.of({name:"Dart",extensions:["dart"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Kfe(e.dart)))}),Hfe.c6.of({name:"diff",extensions:["diff","patch"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,37155)).then((e=>Kfe(e.diff)))}),Hfe.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,95812)).then((e=>Kfe(e.dockerFile)))}),Hfe.c6.of({name:"DTD",extensions:["dtd"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,16398)).then((e=>Kfe(e.dtd)))}),Hfe.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,46528)).then((e=>Kfe(e.dylan)))}),Hfe.c6.of({name:"EBNF",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,24140)).then((e=>Kfe(e.ebnf)))}),Hfe.c6.of({name:"ECL",extensions:["ecl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,54176)).then((e=>Kfe(e.ecl)))}),Hfe.c6.of({name:"edn",extensions:["edn"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23463)).then((e=>Kfe(e.clojure)))}),Hfe.c6.of({name:"Eiffel",extensions:["e"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,36653)).then((e=>Kfe(e.eiffel)))}),Hfe.c6.of({name:"Elm",extensions:["elm"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,63488)).then((e=>Kfe(e.elm)))}),Hfe.c6.of({name:"Erlang",extensions:["erl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,58984)).then((e=>Kfe(e.erlang)))}),Hfe.c6.of({name:"Esper",load:()=>__webpack_require__.e(977).then(__webpack_require__.bind(__webpack_require__,11977)).then((e=>Kfe(e.esper)))}),Hfe.c6.of({name:"Factor",extensions:["factor"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,77991)).then((e=>Kfe(e.factor)))}),Hfe.c6.of({name:"FCL",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,42753)).then((e=>Kfe(e.fcl)))}),Hfe.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,90313)).then((e=>Kfe(e.forth)))}),Hfe.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,78968)).then((e=>Kfe(e.fortran)))}),Hfe.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>__webpack_require__.e(936).then(__webpack_require__.bind(__webpack_require__,43936)).then((e=>Kfe(e.fSharp)))}),Hfe.c6.of({name:"Gas",extensions:["s"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,78923)).then((e=>Kfe(e.gas)))}),Hfe.c6.of({name:"Gherkin",extensions:["feature"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,8952)).then((e=>Kfe(e.gherkin)))}),Hfe.c6.of({name:"Go",extensions:["go"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,60574)).then((e=>Kfe(e.go)))}),Hfe.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,9259)).then((e=>Kfe(e.groovy)))}),Hfe.c6.of({name:"Haskell",extensions:["hs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,39498)).then((e=>Kfe(e.haskell)))}),Hfe.c6.of({name:"Haxe",extensions:["hx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,64114)).then((e=>Kfe(e.haxe)))}),Hfe.c6.of({name:"HXML",extensions:["hxml"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,64114)).then((e=>Kfe(e.hxml)))}),Hfe.c6.of({name:"HTTP",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,96427)).then((e=>Kfe(e.http)))}),Hfe.c6.of({name:"IDL",extensions:["pro"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,78074)).then((e=>Kfe(e.idl)))}),Hfe.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>__webpack_require__.e(759).then(__webpack_require__.bind(__webpack_require__,22759)).then((e=>Kfe(e.jsonld)))}),Hfe.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,53398)).then((e=>Kfe(e.jinja2)))}),Hfe.c6.of({name:"Julia",extensions:["jl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,41254)).then((e=>Kfe(e.julia)))}),Hfe.c6.of({name:"Kotlin",extensions:["kt"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Kfe(e.kotlin)))}),Hfe.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,94813)).then((e=>Kfe(e.liveScript)))}),Hfe.c6.of({name:"Lua",extensions:["lua"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,27797)).then((e=>Kfe(e.lua)))}),Hfe.c6.of({name:"mIRC",extensions:["mrc"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,86794)).then((e=>Kfe(e.mirc)))}),Hfe.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,53756)).then((e=>Kfe(e.mathematica)))}),Hfe.c6.of({name:"Modelica",extensions:["mo"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,39038)).then((e=>Kfe(e.modelica)))}),Hfe.c6.of({name:"MUMPS",extensions:["mps"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,26850)).then((e=>Kfe(e.mumps)))}),Hfe.c6.of({name:"Mbox",extensions:["mbox"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,20214)).then((e=>Kfe(e.mbox)))}),Hfe.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,32290)).then((e=>Kfe(e.nginx)))}),Hfe.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,93204)).then((e=>Kfe(e.nsis)))}),Hfe.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,84895)).then((e=>Kfe(e.ntriples)))}),Hfe.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Kfe(e.objectiveC)))}),Hfe.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Kfe(e.objectiveCpp)))}),Hfe.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>__webpack_require__.e(936).then(__webpack_require__.bind(__webpack_require__,43936)).then((e=>Kfe(e.oCaml)))}),Hfe.c6.of({name:"Octave",extensions:["m"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,21798)).then((e=>Kfe(e.octave)))}),Hfe.c6.of({name:"Oz",extensions:["oz"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,93816)).then((e=>Kfe(e.oz)))}),Hfe.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,68948)).then((e=>Kfe(e.pascal)))}),Hfe.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,26375)).then((e=>Kfe(e.perl)))}),Hfe.c6.of({name:"Pig",extensions:["pig"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,53410)).then((e=>Kfe(e.pig)))}),Hfe.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,69144)).then((e=>Kfe(e.powerShell)))}),Hfe.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,15859)).then((e=>Kfe(e.properties)))}),Hfe.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,68478)).then((e=>Kfe(e.protobuf)))}),Hfe.c6.of({name:"Puppet",extensions:["pp"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,91782)).then((e=>Kfe(e.puppet)))}),Hfe.c6.of({name:"Q",extensions:["q"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,61164)).then((e=>Kfe(e.q)))}),Hfe.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,95098)).then((e=>Kfe(e.r)))}),Hfe.c6.of({name:"RPM Changes",load:()=>__webpack_require__.e(468).then(__webpack_require__.bind(__webpack_require__,16468)).then((e=>Kfe(e.rpmChanges)))}),Hfe.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>__webpack_require__.e(468).then(__webpack_require__.bind(__webpack_require__,16468)).then((e=>Kfe(e.rpmSpec)))}),Hfe.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,11197)).then((e=>Kfe(e.ruby)))}),Hfe.c6.of({name:"SAS",extensions:["sas"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,73836)).then((e=>Kfe(e.sas)))}),Hfe.c6.of({name:"Scala",extensions:["scala"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Kfe(e.scala)))}),Hfe.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,29893)).then((e=>Kfe(e.scheme)))}),Hfe.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,24347)).then((e=>Kfe(e.shell)))}),Hfe.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,64674)).then((e=>Kfe(e.sieve)))}),Hfe.c6.of({name:"Smalltalk",extensions:["st"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,2075)).then((e=>Kfe(e.smalltalk)))}),Hfe.c6.of({name:"Solr",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,97919)).then((e=>Kfe(e.solr)))}),Hfe.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>__webpack_require__.e(936).then(__webpack_require__.bind(__webpack_require__,43936)).then((e=>Kfe(e.sml)))}),Hfe.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,27629)).then((e=>Kfe(e.sparql)))}),Hfe.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,1013)).then((e=>Kfe(e.spreadsheet)))}),Hfe.c6.of({name:"Squirrel",extensions:["nut"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Kfe(e.squirrel)))}),Hfe.c6.of({name:"Stylus",extensions:["styl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,11273)).then((e=>Kfe(e.stylus)))}),Hfe.c6.of({name:"Swift",extensions:["swift"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,1763)).then((e=>Kfe(e.swift)))}),Hfe.c6.of({name:"sTeX",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,66996)).then((e=>Kfe(e.stex)))}),Hfe.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,66996)).then((e=>Kfe(e.stex)))}),Hfe.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23074)).then((e=>Kfe(e.verilog)))}),Hfe.c6.of({name:"Tcl",extensions:["tcl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,41680)).then((e=>Kfe(e.tcl)))}),Hfe.c6.of({name:"Textile",extensions:["textile"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,95883)).then((e=>Kfe(e.textile)))}),Hfe.c6.of({name:"TiddlyWiki",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,84510)).then((e=>Kfe(e.tiddlyWiki)))}),Hfe.c6.of({name:"Tiki wiki",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,21351)).then((e=>Kfe(e.tiki)))}),Hfe.c6.of({name:"TOML",extensions:["toml"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,68212)).then((e=>Kfe(e.toml)))}),Hfe.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,89349)).then((e=>Kfe(e.troff)))}),Hfe.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,82668)).then((e=>Kfe(e.ttcn)))}),Hfe.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>__webpack_require__.e(428).then(__webpack_require__.bind(__webpack_require__,56428)).then((e=>Kfe(e.ttcnCfg)))}),Hfe.c6.of({name:"Turtle",extensions:["ttl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,68774)).then((e=>Kfe(e.turtle)))}),Hfe.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,10198)).then((e=>Kfe(e.webIDL)))}),Hfe.c6.of({name:"VB.NET",extensions:["vb"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,152)).then((e=>Kfe(e.vb)))}),Hfe.c6.of({name:"VBScript",extensions:["vbs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,20530)).then((e=>Kfe(e.vbScript)))}),Hfe.c6.of({name:"Velocity",extensions:["vtl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,50889)).then((e=>Kfe(e.velocity)))}),Hfe.c6.of({name:"Verilog",extensions:["v"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23074)).then((e=>Kfe(e.verilog)))}),Hfe.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,14119)).then((e=>Kfe(e.vhdl)))}),Hfe.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,83365)).then((e=>Kfe(e.xQuery)))}),Hfe.c6.of({name:"Yacas",extensions:["ys"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,5717)).then((e=>Kfe(e.yacas)))}),Hfe.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,55273)).then((e=>Kfe(e.yaml)))}),Hfe.c6.of({name:"Z80",extensions:["z80"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,835)).then((e=>Kfe(e.z80)))}),Hfe.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,94782)).then((e=>Kfe(e.mscgen)))}),Hfe.c6.of({name:"Xù",extensions:["xu"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,94782)).then((e=>Kfe(e.xu)))}),Hfe.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,94782)).then((e=>Kfe(e.msgenny)))}),Hfe.c6.of({name:"Vue",extensions:["vue"],load:()=>__webpack_require__.e(938).then(__webpack_require__.bind(__webpack_require__,99938)).then((e=>e.vue()))}),Hfe.c6.of({name:"Angular Template",load:()=>__webpack_require__.e(553).then(__webpack_require__.bind(__webpack_require__,26553)).then((e=>e.angular()))})];var the=__webpack_require__(83856),nhe=__webpack_require__(59403),rhe=__webpack_require__(6407),ihe=__webpack_require__(59958),ohe=__webpack_require__(54623),ahe=__webpack_require__(99213),she=__webpack_require__(47152),lhe=__webpack_require__(46764),uhe=__webpack_require__(7501),che=__webpack_require__(80940),dhe=__webpack_require__(23193),fhe=__webpack_require__(64963),hhe=__webpack_require__(7778);const phe=(0,hhe.Gv)({LineComment:hhe.pJ.lineComment,BlockComment:hhe.pJ.blockComment,AnyChar:hhe.pJ.character,Literal:hhe.pJ.string,"tokens from grammar as empty prop extend specialize AtName":hhe.pJ.keyword,"@top @left @right @cut @external":hhe.pJ.modifier,"@precedence @tokens @context @dialects @skip @detectDelim @conflict":hhe.pJ.definitionKeyword,"@extend @specialize":hhe.pJ.operatorKeyword,"CharSet InvertedCharSet":hhe.pJ.regexp,CharClass:hhe.pJ.atom,RuleName:hhe.pJ.variableName,"RuleDeclaration/RuleName InlineRule/RuleName TokensBody/RuleName":hhe.pJ.definition(hhe.pJ.variableName),PrecedenceName:hhe.pJ.labelName,Name:hhe.pJ.name,"( )":hhe.pJ.paren,"[ ]":hhe.pJ.squareBracket,"{ }":hhe.pJ.brace,'"!" ~ "*" + ? |':hhe.pJ.operator}),mhe={__proto__:null,"@asciiLetter":244,"@asciiUpperCase":244,"@asciiLowerCase":244,"@digit":244,"@whitespace":244,"@eof":244,"@specialize":76,"@extend":78,"@top":98,"@precedence":102,"@left":108,"@right":110,"@cut":112,"@tokens":116,"@conflict":126,"@local":134,"@else":142,"@external":146,"@context":172,"@dialects":176,"@skip":182,"@detectDelim":190},ghe={__proto__:null,tokens:136,from:148,prop:156,as:158,propSource:162,extend:166,specialize:168},vhe=fhe.WQ.deserialize({version:14,states:"nAN>nO7oQPOAN>sO6lQPOAN>xOOQO1G.s1G.sOOQO,5;O,5;OOOQO-E8b-E8bOOQO7+$g7+$gOOQO7+%`7+%`O7tQPO7+%`O7yQPO'#DzO8XQPO'#EkO8dQPO,5:eOOQO,5:e,5:eOOQOG24_G24_OOQOG24dG24dOOQO<mhe[e]||-1},{term:125,get:e=>ghe[e]||-1}],tokenPrec:1086}),Ohe=Hfe.qp.define({name:"lezer",parser:vhe.configure({props:[Hfe.x0.add({"Body TokensBody SkipBody PrecedenceBody":Hfe.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/}});var yhe=__webpack_require__(48291),bhe=__webpack_require__(967),whe=__webpack_require__(24631),khe=__webpack_require__(66396),xhe=__webpack_require__(88522),_he=__webpack_require__(12860),She=__webpack_require__(48231),Phe=__webpack_require__(23463),Ehe=__webpack_require__(41525),Che=__webpack_require__(49612),The=__webpack_require__(10021),$he=__webpack_require__(73182),Qhe=__webpack_require__(31402),Rhe=__webpack_require__(69802),Ahe=__webpack_require__(67065),jhe=__webpack_require__(61632),Dhe=__webpack_require__(37155),Mhe=__webpack_require__(95812),Ihe=__webpack_require__(16398),zhe=__webpack_require__(46528),Whe=__webpack_require__(24140),Nhe=__webpack_require__(54176),Lhe=__webpack_require__(36653),Fhe=__webpack_require__(63488),Uhe=__webpack_require__(58984),Xhe=__webpack_require__(77991),qhe=__webpack_require__(42753),Bhe=__webpack_require__(90313),Vhe=__webpack_require__(78968),Yhe=__webpack_require__(78923),Zhe=__webpack_require__(8952),Ghe=__webpack_require__(60574),Hhe=__webpack_require__(9259),Khe=__webpack_require__(39498),Jhe=__webpack_require__(64114),epe=__webpack_require__(96427),tpe=__webpack_require__(78074),npe=__webpack_require__(53398),rpe=__webpack_require__(41254),ipe=__webpack_require__(94813),ope=__webpack_require__(27797),ape=__webpack_require__(53756),spe=__webpack_require__(20214),lpe=__webpack_require__(86794),upe=__webpack_require__(39038),cpe=__webpack_require__(94782),dpe=__webpack_require__(26850),fpe=__webpack_require__(32290),hpe=__webpack_require__(93204),ppe=__webpack_require__(84895),mpe=__webpack_require__(21798),gpe=__webpack_require__(93816),vpe=__webpack_require__(68948),Ope=__webpack_require__(26375),ype=__webpack_require__(53410),bpe=__webpack_require__(69144),wpe=__webpack_require__(15859),kpe=__webpack_require__(68478),xpe=__webpack_require__(91782),_pe=__webpack_require__(61164),Spe=__webpack_require__(95098),Ppe=__webpack_require__(11197),Epe=__webpack_require__(73836);const Cpe=new Set(Ehe.keywords.properties),Tpe=new Set(Ehe.keywords.colors),$pe=new Set(Ehe.keywords.values),Qpe=new Set(Ehe.keywords.fonts);let Rpe,Ape=new RegExp("^"+["true","false","null","auto"].join("|")),jpe=new RegExp("^"+["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"].join("|")),Dpe=/^::?[a-zA-Z_][\w\-]*/;function Mpe(e){return!e.peek()||e.match(/\s+$/,!1)}function Ipe(e,t){let n=e.peek();return")"===n?(e.next(),t.tokenizer=Upe,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=Wpe(e.next()),"string"):(t.tokenizer=Wpe(")",!1),"string")}function zpe(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=Upe,Upe(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=Upe):n.skipToEnd(),"comment")}}function Wpe(e,t){return null==t&&(t=!0),function n(r,i){let o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2);return"\\"!==o&&a===e||o===e&&"\\"!==s?(o!==e&&t&&r.next(),Mpe(r)&&(i.cursorHalf=0),i.tokenizer=Upe,"string"):"#"===o&&"{"===a?(i.tokenizer=Npe(n),r.next(),"operator"):"string"}}function Npe(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):Upe(t,n)}}function Lpe(e,t){if(0==e.indentCount){e.indentCount++;let n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function Fpe(e){1!=e.scopes.length&&e.scopes.shift()}function Upe(e,t){let n=e.peek();if(e.match("/*"))return t.tokenizer=zpe(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=zpe(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=Npe(Upe),"operator";if('"'===n||"'"===n)return e.next(),t.tokenizer=Wpe(n),"string";if(t.cursorHalf){if("#"===n&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return Mpe(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return Mpe(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return Mpe(e)&&(t.cursorHalf=0),"unit";if(e.match(Ape))return Mpe(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=Ipe,Mpe(e)&&(t.cursorHalf=0),"atom";if("$"===n)return e.next(),e.eatWhile(/[\w-]/),Mpe(e)&&(t.cursorHalf=0),"variable-2";if("!"===n)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(jpe))return Mpe(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return Mpe(e)&&(t.cursorHalf=0),Rpe=e.current().toLowerCase(),$pe.has(Rpe)?"atom":Tpe.has(Rpe)?"keyword":Cpe.has(Rpe)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(Mpe(e))return t.cursorHalf=0,null}else{if("-"===n&&e.match(/^-\w+-/))return"meta";if("."===n){if(e.next(),e.match(/^[\w-]+/))return Lpe(t,e),"qualifier";if("#"===e.peek())return Lpe(t,e),"tag"}if("#"===n){if(e.next(),e.match(/^[\w-]+/))return Lpe(t,e),"builtin";if("#"===e.peek())return Lpe(t,e),"tag"}if("$"===n)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(Ape))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=Ipe,"atom";if("="===n&&e.match(/^=[\w-]+/))return Lpe(t,e),"meta";if("+"===n&&e.match(/^\+[\w-]+/))return"meta";if("@"===n&&e.match("@extend")&&(e.match(/\s*[\w]/)||Fpe(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return Lpe(t,e),"def";if("@"===n)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){Rpe=e.current().toLowerCase();let n=t.prevProp+"-"+Rpe;return Cpe.has(n)?"property":Cpe.has(Rpe)?(t.prevProp=Rpe,"property"):Qpe.has(Rpe)?"property":"tag"}return e.match(/ *:/,!1)?(Lpe(t,e),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||Lpe(t,e),"tag")}if(":"===n)return e.match(Dpe)?"type":(e.next(),t.cursorHalf=1,"operator")}return e.match(jpe)?"operator":(e.next(),null)}const Xpe={name:"sass",startState:function(){return{tokenizer:Upe,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,t){let n=function(e,t){e.sol()&&(t.indentCount=0);let n=t.tokenizer(e,t),r=e.current();if("@return"!==r&&"}"!==r||Fpe(t),null!==n){let n=e.pos-r.length+e.indentUnit*t.indentCount,i=[];for(let e=0;eHfe.il.define(whe.apl),asciiArmor:()=>Hfe.il.define(khe.asciiArmor),asterisk:()=>Hfe.il.define(xhe.asterisk),c:()=>Hfe.il.define(She.c),csharp:()=>Hfe.il.define(She.csharp),scala:()=>Hfe.il.define(She.scala),kotlin:()=>Hfe.il.define(She.kotlin),shader:()=>Hfe.il.define(She.shader),nesC:()=>Hfe.il.define(She.nesC),objectiveC:()=>Hfe.il.define(She.objectiveC),objectiveCpp:()=>Hfe.il.define(She.objectiveCpp),squirrel:()=>Hfe.il.define(She.squirrel),ceylon:()=>Hfe.il.define(She.ceylon),dart:()=>Hfe.il.define(She.dart),cmake:()=>Hfe.il.define(Che.cmake),cobol:()=>Hfe.il.define(The.cobol),commonLisp:()=>Hfe.il.define(Qhe.commonLisp),crystal:()=>Hfe.il.define(Rhe.crystal),cypher:()=>Hfe.il.define(Ahe.cypher),d:()=>Hfe.il.define(jhe.d),diff:()=>Hfe.il.define(Dhe.diff),dtd:()=>Hfe.il.define(Ihe.dtd),dylan:()=>Hfe.il.define(zhe.dylan),ebnf:()=>Hfe.il.define(Whe.ebnf),ecl:()=>Hfe.il.define(Nhe.ecl),eiffel:()=>Hfe.il.define(Lhe.eiffel),elm:()=>Hfe.il.define(Fhe.elm),factor:()=>Hfe.il.define(Xhe.factor),fcl:()=>Hfe.il.define(qhe.fcl),forth:()=>Hfe.il.define(Bhe.forth),fortran:()=>Hfe.il.define(Vhe.fortran),gas:()=>Hfe.il.define(Yhe.gas),gherkin:()=>Hfe.il.define(Zhe.gherkin),groovy:()=>Hfe.il.define(Hhe.groovy),haskell:()=>Hfe.il.define(Khe.haskell),haxe:()=>Hfe.il.define(Jhe.haxe),http:()=>Hfe.il.define(epe.http),idl:()=>Hfe.il.define(tpe.idl),jinja2:()=>Hfe.il.define(npe.jinja2),mathematica:()=>Hfe.il.define(ape.mathematica),mbox:()=>Hfe.il.define(spe.mbox),mirc:()=>Hfe.il.define(lpe.mirc),modelica:()=>Hfe.il.define(upe.modelica),mscgen:()=>Hfe.il.define(cpe.mscgen),mumps:()=>Hfe.il.define(dpe.mumps),nsis:()=>Hfe.il.define(hpe.nsis),ntriples:()=>Hfe.il.define(ppe.ntriples),octave:()=>Hfe.il.define(mpe.octave),oz:()=>Hfe.il.define(gpe.oz),pig:()=>Hfe.il.define(ype.pig),properties:()=>Hfe.il.define(wpe.properties),protobuf:()=>Hfe.il.define(kpe.protobuf),puppet:()=>Hfe.il.define(xpe.puppet),q:()=>Hfe.il.define(_pe.q),sas:()=>Hfe.il.define(Epe.sas),sass:()=>Hfe.il.define(Xpe),sieve:()=>Hfe.il.define(Vpe.sieve),smalltalk:()=>Hfe.il.define(Ype.smalltalk),solr:()=>Hfe.il.define(Zpe.solr),sparql:()=>Hfe.il.define(Gpe.sparql),spreadsheet:()=>Hfe.il.define(Hpe.spreadsheet),stex:()=>Hfe.il.define(Kpe.stex),textile:()=>Hfe.il.define(nme.textile),tiddlyWiki:()=>Hfe.il.define(rme.tiddlyWiki),tiki:()=>Hfe.il.define(ime.tiki),troff:()=>Hfe.il.define(ame.troff),ttcn:()=>Hfe.il.define(sme.ttcn),turtle:()=>Hfe.il.define(lme.turtle),velocity:()=>Hfe.il.define(dme.velocity),verilog:()=>Hfe.il.define(fme.verilog),vhdl:()=>Hfe.il.define(hme.vhdl),webIDL:()=>Hfe.il.define(pme.webIDL),xQuery:()=>Hfe.il.define(mme.xQuery),yacas:()=>Hfe.il.define(gme.yacas),z80:()=>Hfe.il.define(Ome.z80),wast:bhe.wast,javascript:nhe.javascript,jsx:()=>(0,nhe.javascript)({jsx:!0}),typescript:()=>(0,nhe.javascript)({typescript:!0}),tsx:()=>(0,nhe.javascript)({jsx:!0,typescript:!0}),json:ohe.json,html:rhe.html,css:ihe.css,python:ahe.python,markdown:()=>(0,the.markdown)({base:the.markdownLanguage,codeLanguages:ehe}),xml:she.xml,sql:lhe.sql,mysql:()=>(0,lhe.sql)({dialect:lhe.MySQL}),pgsql:()=>(0,lhe.sql)({dialect:lhe.PostgreSQL}),java:uhe.java,rust:che.rust,cpp:dhe.cpp,lezer:function(){return new Hfe.ri(Ohe)},php:yhe.php,go:()=>Hfe.il.define(Ghe.go),shell:()=>Hfe.il.define(Bpe.shell),lua:()=>Hfe.il.define(ope.lua),swift:()=>Hfe.il.define(eme.swift),tcl:()=>Hfe.il.define(tme.tcl),yaml:()=>Hfe.il.define(vme.yaml),vb:()=>Hfe.il.define(ume.vb),powershell:()=>Hfe.il.define(bpe.powerShell),brainfuck:()=>Hfe.il.define(_he.brainfuck),stylus:()=>Hfe.il.define(Jpe.stylus),erlang:()=>Hfe.il.define(Uhe.erlang),nginx:()=>Hfe.il.define(fpe.nginx),perl:()=>Hfe.il.define(Ope.perl),ruby:()=>Hfe.il.define(Ppe.ruby),pascal:()=>Hfe.il.define(vpe.pascal),livescript:()=>Hfe.il.define(ipe.liveScript),less:()=>Hfe.il.define(Ehe.less),scheme:()=>Hfe.il.define(qpe.scheme),toml:()=>Hfe.il.define(ome.toml),vbscript:()=>Hfe.il.define(cme.vbScript),clojure:()=>Hfe.il.define(Phe.clojure),coffeescript:()=>Hfe.il.define($he.coffeeScript),julia:()=>Hfe.il.define(rpe.julia),dockerfile:()=>Hfe.il.define(Mhe.dockerFile),r:()=>Hfe.il.define(Spe.r)};function bme(e){return yme[e]?yme[e]():null}function wme(){return wme=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}const Pme=Sme(Rme,0),Eme=Sme(Qme,0),Cme=Sme(((e,t)=>Qme(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function Tme(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const $me=50;function Qme(e,t,n=t.selection.ranges){let r=n.map((e=>Tme(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,{open:t,close:n},r,i){let o,a,s=e.sliceDoc(r-$me,r),l=e.sliceDoc(i,i+$me),u=/\s*$/.exec(s)[0].length,c=/^\s*/.exec(l)[0].length,d=s.length-u;if(s.slice(d-t.length,d)==t&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-r<=2*$me?o=a=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+$me),a=e.sliceDoc(i-$me,i));let f=/^\s*/.exec(o)[0].length,h=/\s*$/.exec(a)[0].length,p=a.length-h-n.length;return o.slice(f,f+t.length)==t&&a.slice(p,p+n.length)==n?{open:{pos:r+f+t.length,margin:/\s/.test(o.charAt(f+t.length))?1:0},close:{pos:i-h-n.length,margin:/\s/.test(a.charAt(p-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;ni&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+s.length)==s?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:a}of r)!a&&o||e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const Ame=kme.q6.define(),jme=kme.q6.define(),Dme=kme.r$.define(),Mme=kme.r$.define({combine:e=>(0,kme.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),Ime=kme.QQ.define({create:()=>ege.empty,update(e,t){let n=t.state.facet(Mme),r=t.annotation(Ame);if(r){let i=t.docChanged?kme.jT.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,o=Xme.fromTransaction(t,i),a=r.side,s=0==a?e.undone:e.done;return s=o?qme(s,s.length,n.minDepth,o):Zme(s,t.startState.selection),new ege(0==a?r.rest:s,0==a?s:r.rest)}let i=t.annotation(jme);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(kme.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Xme.fromTransaction(t),a=t.annotation(kme.YW.time),s=t.annotation(kme.YW.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new ege(e.done.map(Xme.fromJSON),e.undone.map(Xme.fromJSON))});function zme(e={}){return[Ime,Mme.of(e),xme.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?Nme:"historyRedo"==e.inputType?Lme:null;return!!n&&(e.preventDefault(),n(t))}})]}function Wme(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Ime,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const Nme=Wme(0,!1),Lme=Wme(1,!1),Fme=Wme(0,!0),Ume=Wme(1,!0);class Xme{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new Xme(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Xme(e.changes&&kme.as.fromJSON(e.changes),[],e.mapped&&kme.n0.fromJSON(e.mapped),e.startSelection&&kme.jT.fromJSON(e.startSelection),e.selectionsAfter.map(kme.jT.fromJSON))}static fromTransaction(e,t){let n=Vme;for(let t of e.startState.facet(Dme)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new Xme(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Vme)}static selection(e){return new Xme(void 0,Vme,void 0,void 0,e)}}function qme(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function Bme(e,t){return e.length?t.length?e.concat(t):e:t}const Vme=[],Yme=200;function Zme(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Yme));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),qme(e,e.length-1,1e9,n.setSelAfter(r)))}return[Xme.selection([t])]}function Gme(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Hme(e,t){if(!e.length)return e;let n=e.length,r=Vme;for(;n;){let i=Kme(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Xme.selection(r)]:Vme}function Kme(e,t,n){let r=Bme(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Vme,n);if(!e.changes)return Xme.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new Xme(i,kme.Py.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const Jme=/^(input\.type|delete)($|\.)/;class ege{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new ege(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||Jme.test(n))&&(!a.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let e=0;e=t&&i<=a&&(r=!0)}})),r}(a.changes,e.changes))||"input.type.compose"==n)?qme(o,o.length-1,r.minDepth,new Xme(e.changes.compose(a.changes),Bme(e.effects,a.effects),a.mapped,a.startSelection,Vme)):qme(o,o.length,r.minDepth,e),new ege(o,Vme,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Vme;return i.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty)).length}(i[i.length-1],e)?this:new ege(Zme(this.done,e),this.undone,t,n)}addMapping(e){return new ege(Hme(this.done,e),Hme(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Ame.of({side:e,rest:Gme(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?Vme:r.slice(0,r.length-1);return i.mapped&&(n=Hme(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Ame.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}ege.empty=new ege(Vme,Vme);const tge=[{key:"Mod-z",run:Nme,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Lme,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Lme,preventDefault:!0},{key:"Mod-u",run:Fme,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Ume,preventDefault:!0}];function nge(e,t){return kme.jT.create(e.ranges.map(t),e.mainIndex)}function rge(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function ige({state:e,dispatch:t},n){let r=nge(e.selection,n);return!r.eq(e.selection)&&(t(rge(e,r)),!0)}function oge(e,t){return kme.jT.cursor(t?e.to:e.from)}function age(e,t){return ige(e,(n=>n.empty?e.moveByChar(n,t):oge(n,t)))}function sge(e){return e.textDirectionAt(e.state.selection.main.head)==xme.Nm.LTR}const lge=e=>age(e,!sge(e)),uge=e=>age(e,sge(e));function cge(e,t){return ige(e,(n=>n.empty?e.moveByGroup(n,t):oge(n,t)))}function dge(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function fge(e,t,n){let r,i,o=(0,Hfe.qz)(e).resolveInner(t.head),a=n?_me.md.closedBy:_me.md.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;dge(e,t,a)?o=t:r=n?t.to:t.from}return i=o.type.prop(a)&&(r=n?(0,Hfe.Um)(e,o.from,1):(0,Hfe.Um)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,kme.jT.cursor(i,n?-1:1)}function hge(e,t){return ige(e,(n=>{if(!n.empty)return oge(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}"undefined"!=typeof Intl&&Intl.Segmenter;const pge=e=>hge(e,!1),mge=e=>hge(e,!0);function gge(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):oge(n,t)));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),s=a.top+r.marginTop,l=a.bottom-r.marginBottom;t&&t.top>s&&t.bottomvge(e,!1),yge=e=>vge(e,!0);function bge(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=kme.jT.cursor(r.from+n))}return i}function wge(e,t){let n=nge(e.state.selection,(e=>{let n=t(e);return kme.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(rge(e.state,n)),!0)}function kge(e,t){return wge(e,(n=>e.moveByChar(n,t)))}const xge=e=>kge(e,!sge(e)),_ge=e=>kge(e,sge(e));function Sge(e,t){return wge(e,(n=>e.moveByGroup(n,t)))}function Pge(e,t){return wge(e,(n=>e.moveVertically(n,t)))}const Ege=e=>Pge(e,!1),Cge=e=>Pge(e,!0);function Tge(e,t){return wge(e,(n=>e.moveVertically(n,t,gge(e).height)))}const $ge=e=>Tge(e,!1),Qge=e=>Tge(e,!0),Rge=({state:e,dispatch:t})=>(t(rge(e,{anchor:0})),!0),Age=({state:e,dispatch:t})=>(t(rge(e,{anchor:e.doc.length})),!0),jge=({state:e,dispatch:t})=>(t(rge(e,{anchor:e.selection.main.anchor,head:0})),!0),Dge=({state:e,dispatch:t})=>(t(rge(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function Mge(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let a=t(r);ai&&(n="delete.forward",a=Ige(e,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=Ige(e,i,!1),o=Ige(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:kme.jT.cursor(i,it(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const zge=(e,t)=>Mge(e,(n=>{let r,i,o=n.from,{state:a}=e,s=a.doc.lineAt(o);if(!t&&o>s.from&&ozge(e,!1),Nge=e=>zge(e,!0),Lge=(e,t)=>Mge(e,(n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=(0,kme.cp)(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,s)-o.from,Math.max(r,s)-o.from),u=a(l);if(null!=e&&u!=e)break;" "==l&&r==n.head||(e=u),r=s}return r})),Fge=e=>Lge(e,!1);function Uge(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function Xge(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of Uge(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),a=o.length+1;if(n){r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)i.push(kme.jT.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)))}else{r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)i.push(kme.jT.range(e.anchor-a,e.head-a))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:kme.jT.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function qge(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of Uge(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Bge=Yge(!1),Vge=Yge(!0);function Yge(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange((n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,Hfe.qz)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(_me.md.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let s=new Hfe.Gn(t,{simulateBreak:r,simulateDoubleBreak:!!a}),l=(0,Hfe.K0)(s,r);for(null==l&&(l=(0,kme.IS)(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));io.from&&r{let i=[];for(let o=r.from;o<=r.to;){let a=e.doc.lineAt(o);a.number>n&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),o=a.to+1}let o=e.changes(i);return{changes:i,range:kme.jT.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}}))}const Gge=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Zge(e,((t,n)=>{n.push({from:t.from,insert:e.facet(Hfe.c)})})),{userEvent:"input.indent"})),!0),Hge=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Zge(e,((t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=(0,kme.IS)(r,e.tabSize),o=0,a=(0,Hfe.SS)(e,Math.max(0,i-(0,Hfe.y1)(e)));for(;oige(e,(t=>kme.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>wge(e,(t=>kme.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>ige(e,(t=>kme.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>wge(e,(t=>kme.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:Nge},{key:"Ctrl-h",run:Wge},{key:"Ctrl-k",run:e=>Mge(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:kme.xv.of(["",""])},range:kme.jT.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:(0,kme.cp)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,kme.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:kme.jT.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:yge}],Jge=[{key:"ArrowLeft",run:lge,shift:xge,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>cge(e,!sge(e)),shift:e=>Sge(e,!sge(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>ige(e,(t=>bge(e,t,!sge(e)))),shift:e=>wge(e,(t=>bge(e,t,!sge(e)))),preventDefault:!0},{key:"ArrowRight",run:uge,shift:_ge,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>cge(e,sge(e)),shift:e=>Sge(e,sge(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>ige(e,(t=>bge(e,t,sge(e)))),shift:e=>wge(e,(t=>bge(e,t,sge(e)))),preventDefault:!0},{key:"ArrowUp",run:pge,shift:Ege,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Rge,shift:jge},{mac:"Ctrl-ArrowUp",run:Oge,shift:$ge},{key:"ArrowDown",run:mge,shift:Cge,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Age,shift:Dge},{mac:"Ctrl-ArrowDown",run:yge,shift:Qge},{key:"PageUp",run:Oge,shift:$ge},{key:"PageDown",run:yge,shift:Qge},{key:"Home",run:e=>ige(e,(t=>bge(e,t,!1))),shift:e=>wge(e,(t=>bge(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:Rge,shift:jge},{key:"End",run:e=>ige(e,(t=>bge(e,t,!0))),shift:e=>wge(e,(t=>bge(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Age,shift:Dge},{key:"Enter",run:Bge},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Wge,shift:Wge},{key:"Delete",run:Nge},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Fge},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Lge(e,!0)},{mac:"Mod-Backspace",run:e=>Mge(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>Mge(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift})))),eve=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>ige(e,(t=>fge(e.state,t,!sge(e)))),shift:e=>wge(e,(t=>fge(e.state,t,!sge(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>ige(e,(t=>fge(e.state,t,sge(e)))),shift:e=>wge(e,(t=>fge(e.state,t,sge(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Xge(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>qge(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Xge(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>qge(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=kme.jT.create([n.main]):n.main.empty||(r=kme.jT.create([kme.jT.cursor(n.main.head)])),!!r&&(t(rge(e,r)),!0)}},{key:"Mod-Enter",run:Vge},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Uge(e).map((({from:t,to:n})=>kme.jT.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:kme.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=nge(e.selection,(t=>{var n;for(let r=(0,Hfe.qz)(e).resolveStack(t.from,1);r;r=r.next){let{node:e}=r;if((e.from=t.to||e.to>t.to&&e.from<=t.from)&&(null===(n=e.parent)||void 0===n?void 0:n.parent))return kme.jT.range(e.to,e.from)}return t}));return t(rge(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:Hge},{key:"Mod-]",run:Gge},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Hfe.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=Zge(e,((t,i,o)=>{let a=(0,Hfe.K0)(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let s=/^\s*/.exec(t.text)[0],l=(0,Hfe.SS)(e,a);(s!=l||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Uge(t).map((({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let r=!1,i=nge(e.selection,(t=>{let i=(0,Hfe.Um)(e,t.head,-1)||(0,Hfe.Um)(e,t.head,1)||t.head>0&&(0,Hfe.Um)(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=Tme(e.state,n.from);return r.line?Pme(e):!!r.block&&Cme(e)}},{key:"Alt-A",run:Eme}].concat(Jge),tve={key:"Tab",run:Gge,shift:Hge};function nve(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class ove{constructor(e,t,n=0,r=e.length,i,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(ive(e)):ive,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,kme.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,kme.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,kme.nZ)(e);let r=this.normalize(t);for(let e=0,i=n;;e++){let o=r.charCodeAt(e),a=this.match(o,i);if(e==r.length-1){if(a)return this.value=a,this;break}i==n&&ethis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=fve(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new cve(t,e.sliceString(t,n));return uve.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=fve(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=cve.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function fve(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function hve(e){let t=nve("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,i=r.doc.lineAt(r.selection.main.head),[,o,a,s,l]=n,u=s?+s.slice(1):0,c=a?+a:i.number;if(a&&l){let e=c/100;o&&(e=e*("-"==o?-1:1)+i.number/r.doc.lines),c=Math.round(r.doc.lines*e)}else a&&o&&(c=c*("-"==o?-1:1)+i.number);let d=r.doc.line(Math.max(1,Math.min(r.doc.lines,c))),f=kme.jT.cursor(d.from+Math.max(0,Math.min(u,d.length)));e.dispatch({effects:[pve.of(!1),xme.tk.scrollIntoView(f.from,{y:"center"})],selection:f}),e.focus()}return{dom:nve("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:pve.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},nve("label",e.state.phrase("Go to line"),": ",t)," ",nve("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(lve.prototype[Symbol.iterator]=dve.prototype[Symbol.iterator]=function(){return this});const pve=kme.Py.define(),mve=kme.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(pve)&&(e=n.value);return e},provide:e=>xme.mH.from(e,(e=>e?hve:null))}),gve=xme.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),vve={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ove=kme.r$.define({combine:e=>(0,kme.BO)(e,vve,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function yve(e){let t=[_ve,xve];return e&&t.push(Ove.of(e)),t}const bve=xme.p.mark({class:"cm-selectionMatch"}),wve=xme.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function kve(e,t,n,r){return!(0!=n&&e(t.sliceDoc(n-1,n))==kme.D0.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==kme.D0.Word)}const xve=xme.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Ove),{state:n}=e,r=n.selection;if(r.ranges.length>1)return xme.p.none;let i,o=r.main,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return xme.p.none;let e=n.wordAt(o.head);if(!e)return xme.p.none;a=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return xme.p.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),a=n.charCategorizer(o.head),!kve(a,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==kme.D0.Word&&e(t.sliceDoc(r-1,r))==kme.D0.Word}(a,n,o.from,o.to))return xme.p.none}else if(i=n.sliceDoc(o.from,o.to).trim(),!i)return xme.p.none}let s=[];for(let r of e.visibleRanges){let e=new ove(n.doc,i,r.from,r.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!a||kve(a,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?s.push(wve.range(r,i)):(r>=o.to||i<=o.from)&&s.push(bve.range(r,i)),s.length>t.maxMatches))return xme.p.none}}return xme.p.set(s)}},{decorations:e=>e.decorations}),_ve=xme.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Sve=kme.r$.define({combine:e=>(0,kme.BO)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new eOe(e),scrollToMatch:e=>xme.tk.scrollIntoView(e)})});class Pve{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,sve),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Ave(this):new Tve(this)}getCursor(e,t=0,n){let r=e.doc?e:kme.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?$ve(this,r,t,n):Cve(this,r,t,n)}}class Eve{constructor(e){this.spec=e}}function Cve(e,t,n,r){return new ove(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Cve(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function $ve(e,t,n,r){return new lve(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i(Qve(n.input,n.index))!=kme.D0.Word||i(Rve(n.input,n.index))!=kme.D0.Word)&&(i(Rve(n.input,n.index+n[0].length))!=kme.D0.Word||i(Qve(n.input,n.index+n[0].length))!=kme.D0.Word)):void 0},n,r);var i}function Qve(e,t){return e.slice((0,kme.cp)(e,t,!1),t)}function Rve(e,t){return e.slice(t,(0,kme.cp)(e,t))}class Ave extends Eve{nextMatch(e,t,n){let r=$ve(this.spec,e,n,e.doc.length).next();return r.done&&(r=$ve(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=$ve(this.spec,e,i,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=$ve(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const jve=kme.Py.define(),Dve=kme.Py.define(),Mve=kme.QQ.define({create:e=>new Ive(Yve(e).create(),null),update(e,t){for(let n of t.effects)n.is(jve)?e=new Ive(n.value.create(),e.panel):n.is(Dve)&&(e=new Ive(e.query,n.value?Vve:null));return e},provide:e=>xme.mH.from(e,(e=>e.panel))});class Ive{constructor(e,t){this.query=e,this.panel=t}}const zve=xme.p.mark({class:"cm-searchMatch"}),Wve=xme.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Nve=xme.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Mve))}update(e){let t=e.state.field(Mve);(t!=e.startState.field(Mve)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return xme.p.none;let{view:n}=this,r=new kme.f_;for(let t=0,i=n.visibleRanges,o=i.length;ti[t+1].from-500;)s=i[++t].to;e.highlight(n.state,a,s,((e,t)=>{let i=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));r.add(e,t,i?Wve:zve)}))}return r.finish()}},{decorations:e=>e.decorations});function Lve(e){return t=>{let n=t.state.field(Mve,!1);return n&&n.query.spec.valid?e(t,n):Hve(t)}}const Fve=Lve(((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=kme.jT.single(r.from,r.to),o=e.state.facet(Sve);return e.dispatch({selection:i,effects:[iOe(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),Gve(e),!0})),Uve=Lve(((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=kme.jT.single(i.from,i.to),a=e.state.facet(Sve);return e.dispatch({selection:o,effects:[iOe(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),Gve(e),!0})),Xve=Lve(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:kme.jT.create(n.map((e=>kme.jT.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),qve=Lve(((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let a,s,l=[],u=[];if(o.from==r&&o.to==i&&(s=n.toText(t.getReplacement(o)),l.push({from:o.from,to:o.to,insert:s}),o=t.nextMatch(n,o.from,o.to),u.push(xme.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let t=0==l.length||l[0].from>=o.to?0:o.to-o.from-s.length;a=kme.jT.single(o.from-t,o.to-t),u.push(iOe(e,o)),u.push(n.facet(Sve).scrollToMatch(a.main,e))}return e.dispatch({changes:l,selection:a,effects:u,userEvent:"input.replace"}),!0})),Bve=Lve(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}}));if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:xme.tk.announce.of(r),userEvent:"input.replace.all"}),!0}));function Vve(e){return e.state.facet(Sve).createPanel(e)}function Yve(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(Sve);return new Pve({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:u.literal,regexp:null!==(o=null==t?void 0:t.regexp)&&void 0!==o?o:u.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:u.wholeWord})}function Zve(e){let t=(0,xme.Sd)(e,Vve);return t&&t.dom.querySelector("[main-field]")}function Gve(e){let t=Zve(e);t&&t==e.root.activeElement&&t.select()}const Hve=e=>{let t=e.state.field(Mve,!1);if(t&&t.panel){let n=Zve(e);if(n&&n!=e.root.activeElement){let r=Yve(e.state,t.query.spec);r.valid&&e.dispatch({effects:jve.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Dve.of(!0),t?jve.of(Yve(e.state,t.query.spec)):kme.Py.appendConfig.of(aOe)]});return!0},Kve=e=>{let t=e.state.field(Mve,!1);if(!t||!t.panel)return!1;let n=(0,xme.Sd)(e,Vve);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Dve.of(!1)}),!0},Jve=[{key:"Mod-f",run:Hve,scope:"editor search-panel"},{key:"F3",run:Fve,shift:Uve,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Fve,shift:Uve,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Kve,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let t=new ove(e.doc,e.sliceDoc(r,i));!t.next().done;){if(o.length>1e3)return!1;t.value.from==r&&(a=o.length),o.push(kme.jT.range(t.value.from,t.value.to))}return t(e.update({selection:kme.jT.create(o,a),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,xme.Sd)(e,hve);if(!t){let n=[pve.of(!0)];null==e.state.field(mve,!1)&&n.push(kme.Py.appendConfig.of([mve,gve])),e.dispatch({effects:n}),t=(0,xme.Sd)(e,hve)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=kme.jT.create(n.ranges.map((t=>e.wordAt(t.head)||kme.jT.cursor(t.head))),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=r)))return!1;let i=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new ove(e.doc,t,r[r.length-1].to);;){if(i.next(),!i.done){if(n&&r.some((e=>e.from==i.value.from)))continue;if(o){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}if(n)return null;i=new ove(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}}(e,r);return!!i&&(t(e.update({selection:e.selection.addRange(kme.jT.range(i.from,i.to),!1),effects:xme.tk.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class eOe{constructor(e){this.view=e;let t=this.query=e.state.field(Mve).query.spec;function n(e,t,n){return nve("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=nve("input",{value:t.search,placeholder:tOe(e,"Find"),"aria-label":tOe(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=nve("input",{value:t.replace,placeholder:tOe(e,"Replace"),"aria-label":tOe(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=nve("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=nve("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=nve("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=nve("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>Fve(e)),[tOe(e,"next")]),n("prev",(()=>Uve(e)),[tOe(e,"previous")]),n("select",(()=>Xve(e)),[tOe(e,"all")]),nve("label",null,[this.caseField,tOe(e,"match case")]),nve("label",null,[this.reField,tOe(e,"regexp")]),nve("label",null,[this.wordField,tOe(e,"by word")]),...e.state.readOnly?[]:[nve("br"),this.replaceField,n("replace",(()=>qve(e)),[tOe(e,"replace")]),n("replaceAll",(()=>Bve(e)),[tOe(e,"replace all")])],nve("button",{name:"close",onclick:()=>Kve(e),"aria-label":tOe(e,"close"),type:"button"},["×"])])}commit(){let e=new Pve({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:jve.of(e)}))}keydown(e){(0,xme.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Uve:Fve)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),qve(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(jve)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Sve).top}}function tOe(e,t){return e.state.phrase(t)}const nOe=30,rOe=/[\s\.,:;?!]/;function iOe(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-nOe),a=Math.min(i,n+nOe),s=e.state.sliceDoc(o,a);if(o!=r.from)for(let e=0;es.length-nOe;e--)if(!rOe.test(s[e-1])&&rOe.test(s[e])){s=s.slice(0,e);break}return xme.tk.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const oOe=xme.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),aOe=[Mve,kme.Wl.low(Nve),oOe];var sOe=__webpack_require__(71170);class lOe{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class uOe{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,i=n.facet(bOe).markerFilter;i&&(r=i(r));let o=xme.p.set(r.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?xme.p.widget({widget:new xOe(e),diagnostic:e}).range(e.from):xme.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new uOe(o,t,cOe(o))}}function cOe(e,t=null,n=0){let r=null;return e.between(n,1e9,((e,n,{spec:i})=>{if(!t||i.diagnostic==t)return r=new lOe(e,n,i.diagnostic),!1})),r}const dOe=kme.Py.define(),fOe=kme.Py.define(),hOe=kme.Py.define(),pOe=kme.QQ.define({create:()=>new uOe(xme.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=cOe(n,e.selected.diagnostic,i)||cOe(n,null,i)}e=new uOe(n,e.panel,r)}for(let n of t.effects)n.is(dOe)?e=uOe.init(n.value,e.panel,t.state):n.is(fOe)?e=new uOe(e.diagnostics,n.value?SOe.open:null,e.selected):n.is(hOe)&&(e=new uOe(e.diagnostics,e.panel,n.value));return e},provide:e=>[xme.mH.from(e,(e=>e.panel)),xme.tk.decorations.from(e,(e=>e.diagnostics))]}),mOe=xme.p.mark({class:"cm-lintRange cm-lintRange-active"});function gOe(e,t,n){let{diagnostics:r}=e.state.field(pOe),i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:s})=>{t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t({dom:vOe(e,i)})}:null}function vOe(e,t){return nve("ul",{class:"cm-tooltip-lint"},t.map((t=>kOe(e,t,!1))))}const OOe=e=>{let t=e.state.field(pOe,!1);return!(!t||!t.panel||(e.dispatch({effects:fOe.of(!1)}),0))},yOe=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(pOe,!1);var n,r;t&&t.panel||e.dispatch({effects:(n=e.state,r=[fOe.of(!0)],n.field(pOe,!1)?r:r.concat(kme.Py.appendConfig.of(TOe)))});let i=(0,xme.Sd)(e,SOe.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(pOe,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)||(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),0))}}],bOe=kme.r$.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},(0,kme.BO)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function wOe(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function kOe(e,t,n){var r;let i=n?wOe(t.actions):[];return nve("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},nve("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,a=r=>{if(r.preventDefault(),o)return;o=!0;let i=cOe(e.state.field(pOe).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,l=i[r]?s.indexOf(i[r]):-1,u=l<0?s:[s.slice(0,l),nve("u",s.slice(l,l+1)),s.slice(l+1)];return nve("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${s}${l<0?"":` (access key "${i[r]})"`}.`},u)})),t.source&&nve("div",{class:"cm-diagnosticSource"},t.source))}class xOe extends xme.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return nve("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class _Oe{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=kOe(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class SOe{constructor(e){this.view=e,this.items=[],this.list=nve("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)OOe(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=wOe(n.actions);for(let i=0;i{for(let t=0;tOOe(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(pOe).selected;if(!e)return-1;for(let t=0;t{let s,l=-1;for(let e=n;en&&(this.items.splice(n,l-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),i=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),n++}));n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=cOe(this.view.state.field(pOe).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:hOe.of(t)})}static open(e){return new SOe(e)}}function POe(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}(``,'width="6" height="3"')}const EOe=xme.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:POe("#d11")},".cm-lintRange-warning":{backgroundImage:POe("orange")},".cm-lintRange-info":{backgroundImage:POe("#999")},".cm-lintRange-hint":{backgroundImage:POe("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});class COe extends xme.SJ{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce(((e,t)=>severityWeight(e)function(e,t,n){function r(){let r=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(r.from)&&e.dispatch({effects:setLintGutterTooltip.of({pos:r.from,above:!1,create:()=>({dom:vOe(e,n),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let n=r=>{let i=t.getBoundingClientRect();if(!(r.clientX>i.left-10&&r.clientXi.top-10&&r.clientY{clearTimeout(o),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(o),setTimeout(r,i)}}(e,t,n)),t}}const TOe=[pOe,xme.tk.decorations.compute([pOe],(e=>{let{selected:t,panel:n}=e.field(pOe);return t&&n&&t.from!=t.to?xme.p.set([mOe.range(t.from,t.to)]):xme.p.none})),(0,xme.bF)(gOe,{hideOn:function(e,t){let n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(dOe)))&&!e.changes.touchesRange(n.from,n.to))}}),EOe];var $Oe=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(sOe.GA)),!1!==e.defaultKeymap&&(t=t.concat(eve)),!1!==e.searchKeymap&&(t=t.concat(Jve)),!1!==e.historyKeymap&&(t=t.concat(tge)),!1!==e.foldKeymap&&(t=t.concat(Hfe.e7)),!1!==e.completionKeymap&&(t=t.concat(sOe.B1)),!1!==e.lintKeymap&&(t=t.concat(yOe));var n=[];return!1!==e.lineNumbers&&n.push((0,xme.Eu)()),!1!==e.highlightActiveLineGutter&&n.push((0,xme.HQ)()),!1!==e.highlightSpecialChars&&n.push((0,xme.AE)()),!1!==e.history&&n.push(zme()),!1!==e.foldGutter&&n.push((0,Hfe.mi)()),!1!==e.drawSelection&&n.push((0,xme.Uw)()),!1!==e.dropCursor&&n.push((0,xme.qr)()),!1!==e.allowMultipleSelections&&n.push(kme.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&n.push((0,Hfe.nY)()),!1!==e.syntaxHighlighting&&n.push((0,Hfe.nF)(Hfe.R_,{fallback:!0})),!1!==e.bracketMatching&&n.push((0,Hfe.n$)()),!1!==e.closeBrackets&&n.push((0,sOe.vQ)()),!1!==e.autocompletion&&n.push((0,sOe.ys)()),!1!==e.rectangularSelection&&n.push((0,xme.Zs)()),!1!==e.crosshairCursor&&n.push((0,xme.S2)()),!1!==e.highlightActiveLine&&n.push((0,xme.ZO)()),!1!==e.highlightSelectionMatches&&n.push(yve()),e.tabSize&&"number"==typeof e.tabSize&&n.push(Hfe.c.of(" ".repeat(e.tabSize))),n.concat([xme.$f.of(t.flat())]).filter(Boolean)};const QOe="#e06c75",ROe="#abb2bf",AOe="#7d8799",jOe="#d19a66",DOe="#2c313a",MOe="#282c34",IOe="#353a42",zOe="#528bff",WOe=xme.tk.theme({"&":{color:ROe,backgroundColor:MOe},".cm-content":{caretColor:zOe},".cm-cursor, .cm-dropCursor":{borderLeftColor:zOe},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:ROe},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:MOe,color:AOe,border:"none"},".cm-activeLineGutter":{backgroundColor:DOe},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:IOe},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:IOe,borderBottomColor:IOe},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:DOe,color:ROe}}},{dark:!0}),NOe=Hfe.Qf.define([{tag:hhe.pJ.keyword,color:"#c678dd"},{tag:[hhe.pJ.name,hhe.pJ.deleted,hhe.pJ.character,hhe.pJ.propertyName,hhe.pJ.macroName],color:QOe},{tag:[hhe.pJ.function(hhe.pJ.variableName),hhe.pJ.labelName],color:"#61afef"},{tag:[hhe.pJ.color,hhe.pJ.constant(hhe.pJ.name),hhe.pJ.standard(hhe.pJ.name)],color:jOe},{tag:[hhe.pJ.definition(hhe.pJ.name),hhe.pJ.separator],color:ROe},{tag:[hhe.pJ.typeName,hhe.pJ.className,hhe.pJ.number,hhe.pJ.changed,hhe.pJ.annotation,hhe.pJ.modifier,hhe.pJ.self,hhe.pJ.namespace],color:"#e5c07b"},{tag:[hhe.pJ.operator,hhe.pJ.operatorKeyword,hhe.pJ.url,hhe.pJ.escape,hhe.pJ.regexp,hhe.pJ.link,hhe.pJ.special(hhe.pJ.string)],color:"#56b6c2"},{tag:[hhe.pJ.meta,hhe.pJ.comment],color:AOe},{tag:hhe.pJ.strong,fontWeight:"bold"},{tag:hhe.pJ.emphasis,fontStyle:"italic"},{tag:hhe.pJ.strikethrough,textDecoration:"line-through"},{tag:hhe.pJ.link,color:AOe,textDecoration:"underline"},{tag:hhe.pJ.heading,fontWeight:"bold",color:QOe},{tag:[hhe.pJ.atom,hhe.pJ.bool,hhe.pJ.special(hhe.pJ.variableName)],color:jOe},{tag:[hhe.pJ.processingInstruction,hhe.pJ.string,hhe.pJ.inserted],color:"#98c379"},{tag:hhe.pJ.invalid,color:"#ffffff"}]),LOe=[WOe,(0,Hfe.nF)(NOe)];var FOe=kme.q6.define();function UOe(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:o,onUpdate:a,extensions:s=[],autoFocus:l,theme:u="light",height:d="",minHeight:f="",maxHeight:h="",placeholder:p="",width:m="",minWidth:g="",maxWidth:v="",editable:O=!0,readOnly:y=!1,indentWithTab:b=!0,basicSetup:w=!0,root:k,initialState:x}=e,[_,S]=(0,c.useState)(),[P,E]=(0,c.useState)(),[C,T]=(0,c.useState)(),$=xme.tk.theme({"&":{height:d,minHeight:f,maxHeight:h,width:m,minWidth:g,maxWidth:v}}),Q=xme.tk.updateListener.of((e=>{if(e.docChanged&&"function"==typeof r&&!e.transactions.some((e=>e.annotation(FOe)))){var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),R=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:a=!0}=e,s=[],l=xme.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1});switch(t&&s.unshift(xme.$f.of([tve])),a&&("boolean"==typeof a?s.unshift($Oe()):s.unshift($Oe(a))),o&&s.unshift((0,xme.W$)(o)),i){case"light":s.push(l);break;case"dark":s.push(LOe);break;case"none":break;default:s.push(i)}return!1===n&&s.push(xme.tk.editable.of(!1)),r&&s.push(kme.yy.readOnly.of(!0)),[...s]}({theme:u,editable:O,readOnly:y,placeholder:p,indentWithTab:b,basicSetup:w}),A=[Q,$,...R];return a&&"function"==typeof a&&A.push(xme.tk.updateListener.of(a)),A=A.concat(s),(0,c.useEffect)((()=>{if(_&&!C){var e={doc:t,selection:n,extensions:A},r=x?kme.yy.fromJSON(x.json,e,x.fields):kme.yy.create(e);if(T(r),!P){var i=new xme.tk({state:r,parent:_,root:k});E(i),o&&o(i,r)}}return()=>{P&&(T(void 0),E(void 0))}}),[_,C]),(0,c.useEffect)((()=>S(e.container)),[e.container]),(0,c.useEffect)((()=>()=>{P&&(P.destroy(),E(void 0))}),[P]),(0,c.useEffect)((()=>{l&&P&&P.focus()}),[l,P]),(0,c.useEffect)((()=>{P&&P.dispatch({effects:kme.Py.reconfigure.of(A)})}),[u,s,d,f,h,m,g,v,p,O,y,b,w,r,a]),(0,c.useEffect)((()=>{if(void 0!==t){var e=P?P.state.doc.toString():"";P&&t!==e&&P.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[FOe.of(!0)]})}}),[t,P]),{state:C,setState:T,view:P,setView:E,container:_,setContainer:S}}var XOe=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],qOe=(0,c.forwardRef)(((e,t)=>{var{className:n,value:r="",selection:i,extensions:o=[],onChange:a,onStatistics:s,onCreateEditor:l,onUpdate:u,autoFocus:d,theme:f="light",height:h,minHeight:p,maxHeight:m,width:g,minWidth:v,maxWidth:O,basicSetup:y,placeholder:b,indentWithTab:w,editable:k,readOnly:x,root:_,initialState:S}=e,P=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,XOe),E=(0,c.useRef)(null),{state:C,view:T,container:$}=UOe({container:E.current,root:_,value:r,autoFocus:d,theme:f,height:h,minHeight:p,maxHeight:m,width:g,minWidth:v,maxWidth:O,basicSetup:y,placeholder:b,indentWithTab:w,editable:k,readOnly:x,selection:i,onChange:a,onStatistics:s,onCreateEditor:l,onUpdate:u,extensions:o,initialState:S});if((0,c.useImperativeHandle)(t,(()=>({editor:E.current,state:C,view:T})),[E,$,C,T]),"string"!=typeof r)throw new Error("value must be typeof string but got "+typeof r);var Q="string"==typeof f?"cm-theme-"+f:"cm-theme";return(0,lM.jsx)("div",wme({ref:E,className:Q+(n?" "+n:"")},P))}));qOe.displayName="CodeMirror";const BOe=qOe;var VOe=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}))}));VOe.displayName="Settings";const YOe=UD("WidgetCode_SettingsButton",["root"]),ZOe=({showClose:e=!1,disabled:t,onClick:n})=>c.createElement(FN,{icon:e?yG:VOe,onClick:n,size:"small",color:"secondary",variant:"text",disabled:t,rootClassName:YOe.root,"aria-label":"toggle settings"});var GOe=__webpack_require__(84111);const HOe={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"},KOe=e=>{const{label:t,value:n}=e;return"string"==typeof t?t:"string"==typeof n?n:String(e)};function JOe(e,t){const{open:n}=e,{context:{selectionMode:r}}=t;if(t.type===HOe.buttonClick){var i;const r=null!=(i=e.selectedValues[0])?i:iZ(null,"start",t.context);return HD({},e,{open:!n,highlightedValue:n?null:r})}if(t.type===HOe.browserAutoFill)return oZ(t.item,e,t.context);const o=sZ(e,t);switch(t.type){case rZ.keyDown:if(e.open){if("Escape"===t.event.key)return HD({},o,{open:!1})}else{var a,s;if("ArrowDown"===t.event.key)return HD({},e,{open:!0,highlightedValue:null!=(a=e.selectedValues[0])?a:iZ(null,"start",t.context)});if("ArrowUp"===t.event.key)return HD({},e,{open:!0,highlightedValue:null!=(s=e.selectedValues[0])?s:iZ(null,"end",t.context)})}break;case rZ.itemClick:if("single"===r)return HD({},o,{open:!1});break;case rZ.blur:return HD({},o,{open:!1});default:return o}return o}const eye={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0};function tye(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map((e=>e.value))):null==(null==e?void 0:e.value)?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function nye(e){return RM("MuiSelect",e)}function rye(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:i,getItemState:o,registerItem:a,totalSubitemCount:s}=t,l=c.useMemo((()=>({dispatch:r,getItemState:o,getItemIndex:i})),[r,i,o]),u=c.useMemo((()=>({getItemIndex:i,registerItem:a,totalSubitemCount:s})),[a,i,s]);return(0,lM.jsx)(OZ.Provider,{value:u,children:(0,lM.jsx)(kZ.Provider,{value:l,children:n})})}var iye;AM("MuiSelect",["root","button","listbox","popper","active","expanded","disabled","focusVisible"]);const oye=["areOptionsEqual","autoComplete","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","listboxId","listboxOpen","multiple","name","required","onChange","onListboxOpenChange","getOptionAsString","renderValue","placeholder","slotProps","slots","value"];function aye(e){var t;return Array.isArray(e)?(0,lM.jsx)(c.Fragment,{children:e.map((e=>e.label)).join(", ")}):null!=(t=null==e?void 0:e.label)?t:null}const sye=c.forwardRef((function(e,t){var n,r,i,o,a;const{areOptionsEqual:s,autoComplete:l,autoFocus:u,children:d,defaultValue:f,defaultListboxOpen:h=!1,disabled:p,getSerializedValue:m,listboxId:g,listboxOpen:v,multiple:O=!1,name:y,required:b=!1,onChange:w,onListboxOpenChange:k,getOptionAsString:x=KOe,renderValue:_,placeholder:S,slotProps:P={},slots:E={},value:C}=e,T=KD(e,oye),$=null!=_?_:aye,[Q,R]=c.useState(!1),A=c.useRef(null),j=c.useRef(null),D=null!=(n=E.root)?n:"button",M=null!=(r=E.listbox)?r:"ul",I=null!=(i=E.popper)?i:xY,z=c.useCallback((e=>{R(null!=e)}),[]),W=eM(t,A,z);c.useEffect((()=>{u&&A.current.focus()}),[u]);const{buttonActive:N,buttonFocusVisible:L,contextValue:F,disabled:U,getButtonProps:X,getListboxProps:q,getHiddenInputProps:B,getOptionMetadata:V,value:Y,open:Z}=function(e){const{areOptionsEqual:t,buttonRef:n,defaultOpen:r=!1,defaultValue:i,disabled:o=!1,listboxId:a,listboxRef:s,multiple:l=!1,name:u,required:d,onChange:f,onHighlightChange:h,onOpenChange:p,open:m,options:g,getOptionAsString:v=KOe,getSerializedValue:O=tye,value:y,componentName:b="useSelect"}=e,w=c.useRef(null),k=eM(n,w),x=c.useRef(null),_=nZ(a);let S;void 0===y&&void 0===i?S=[]:void 0!==i&&(S=l?i:null==i?[]:[i]);const P=c.useMemo((()=>{if(void 0!==y)return l?y:null==y?[]:[y]}),[y,l]),{subitems:E,contextValue:C}=yZ(),T=c.useMemo((()=>null!=g?new Map(g.map(((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:c.createRef(),id:`${_}_${t}`}]))):E),[g,E,_]),$=eM(s,x),{getRootProps:Q,active:R,focusVisible:A,rootRef:j}=jZ({disabled:o,rootRef:k}),D=c.useMemo((()=>Array.from(T.keys())),[T]),M=c.useCallback((e=>{if(void 0!==t){const n=D.find((n=>t(n,e)));return T.get(n)}return T.get(e)}),[T,t,D]),I=c.useCallback((e=>{var t;const n=M(e);return null!=(t=null==n?void 0:n.disabled)&&t}),[M]),z=c.useCallback((e=>{const t=M(e);return t?v(t):""}),[M,v]),W=c.useMemo((()=>({selectedValues:P,open:m})),[P,m]),N=c.useCallback((e=>{var t;return null==(t=T.get(e))?void 0:t.id}),[T]),L=c.useCallback(((e,t)=>{var n;l?null==f||f(e,t):null==f||f(e,null!=(n=t[0])?n:null)}),[l,f]),F=c.useCallback(((e,t)=>{null==h||h(e,null!=t?t:null)}),[h]),U=c.useCallback(((e,t,n)=>{var r;"open"===t&&(null==p||p(n),!1===n&&"blur"!==(null==e?void 0:e.type)&&(null==(r=w.current)||r.focus()))}),[p]),X={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=S)?e:[],open:r}},getItemId:N,controlledProps:W,focusManagement:"DOM",getItemDomElement:c.useCallback((e=>{var t,n;return null==e?null:null!=(t=null==(n=E.get(e))?void 0:n.ref.current)?t:null}),[E]),itemComparer:t,isItemDisabled:I,rootRef:$,onChange:L,onHighlightChange:F,onStateChange:U,reducerActionContext:c.useMemo((()=>({multiple:l})),[l]),items:D,getItemAsString:z,selectionMode:l?"multiple":"single",stateReducer:JOe,componentName:b},{dispatch:q,getRootProps:B,contextValue:V,state:{open:Y,highlightedValue:Z,selectedValues:G},rootRef:H}=vZ(X),K=c.useRef(Y);pM((()=>{if(Y&&null!==Z){var e;const t=null==(e=M(Z))?void 0:e.ref;if(!x.current||null==t||!t.current)return;K.current||t.current.focus({preventScroll:!0});const n=x.current.getBoundingClientRect(),r=t.current.getBoundingClientRect();r.topn.bottom&&(x.current.scrollTop+=r.bottom-n.bottom)}}),[Y,Z,M]);const J=c.useCallback((e=>M(e)),[M]),ee=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),q({type:rZ.keyDown,key:t.key,event:t}))},te=(e={})=>HD({},e,((e={})=>{return{onClick:(t=e,e=>{var n;if(null==t||null==(n=t.onClick)||n.call(t,e),!e.defaultMuiPrevented){const t={type:HOe.buttonClick,event:e};q(t)}}),onKeyDown:ee(e)};var t})(e),{role:"combobox","aria-expanded":Y,"aria-controls":_}),ne=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||(null!=(r=x.current)&&r.contains(t.relatedTarget)||t.relatedTarget===w.current)&&(t.defaultMuiPrevented=!0)},re=(e={})=>({onBlur:ne(e)});c.useDebugValue({selectedOptions:G,highlightedOption:Z,open:Y});const ie=c.useMemo((()=>HD({},V,C)),[V,C]);let oe,ae;var se;oe=e.multiple?G:G.length>0?G[0]:null,ae=l?oe.map((e=>J(e))).filter((e=>void 0!==e)):null!=(se=J(oe))?se:null;const le=e=>t=>{var n;if(null==e||null==(n=e.onChange)||n.call(e,t),t.defaultMuiPrevented)return;const r=T.get(t.target.value);""===t.target.value?q({type:rZ.clearSelection}):void 0!==r&&q({type:HOe.browserAutoFill,item:r.value,event:t})};return{buttonActive:R,buttonFocusVisible:A,buttonRef:j,contextValue:ie,disabled:o,dispatch:q,getButtonProps:(e={})=>{const t=iM(e);return HD({},e,bZ(Q,te)(t))},getHiddenInputProps:(e={})=>{const t=iM(e);return HD({name:u,tabIndex:-1,"aria-hidden":!0,required:!!d||void 0,value:O(ae),style:eye},e,{onChange:le(t)})},getListboxProps:(e={})=>{const t=iM(e),n=bZ(re,B);return HD({id:_,role:"listbox","aria-multiselectable":l?"true":void 0},e,n(t))},getOptionMetadata:J,listboxRef:H,open:Y,options:D,value:oe,highlightedOption:Z}}({name:y,required:b,getSerializedValue:m,areOptionsEqual:s,buttonRef:W,defaultOpen:h,defaultValue:f,disabled:p,listboxId:g,multiple:O,open:v,onChange:w,onOpenChange:k,getOptionAsString:x,value:C,componentName:"Select"}),G=HD({},e,{active:N,defaultListboxOpen:h,disabled:U,focusVisible:L,open:Z,multiple:O,renderValue:$,value:Y}),H=function(e){const{active:t,disabled:n,open:r,focusVisible:i}=e;return hM({root:["root",n&&"disabled",i&&"focusVisible",t&&"active",r&&"expanded"],listbox:["listbox",n&&"disabled"],popper:["popper"]},fM(nye))}(G),K=sM({elementType:D,getSlotProps:X,externalSlotProps:P.root,externalForwardedProps:T,ownerState:G,className:H.root}),J=sM({elementType:M,getSlotProps:q,externalSlotProps:P.listbox,additionalProps:{ref:j},ownerState:G,className:H.listbox}),ee=sM({elementType:I,externalSlotProps:P.popper,additionalProps:{anchorEl:A.current,keepMounted:!0,open:Z,placement:"bottom-start",role:void 0},ownerState:G,className:H.popper});let te;var ne;return te=O?Y.map((e=>V(e))).filter((e=>void 0!==e)):null!=(ne=V(Y))?ne:null,(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(D,HD({},K,{children:null!=(o=null!=(a=$(te))?a:S)?o:iye||(iye=(0,lM.jsx)("span",{className:"notranslate",children:"​"}))})),Q&&(0,lM.jsx)(I,HD({},ee,{children:(0,lM.jsx)(M,HD({},J,{children:(0,lM.jsx)(rye,{value:F,children:d})}))})),(0,lM.jsx)("input",HD({},B(),{autoComplete:l}))]})}));function lye(e){return RM("MuiOption",e)}AM("MuiOption",["root","disabled","selected","highlighted"]);const uye=["children","disabled","label","slotProps","slots","value"],cye=c.memo(c.forwardRef((function(e,t){var n,r;const{children:i,disabled:o=!1,label:a,slotProps:s={},slots:l={},value:u}=e,d=KD(e,uye),f=null!=(n=l.root)?n:"li",h=c.useRef(null),p=eM(h,t),m=null!=a?a:"string"==typeof i?i:null==(r=h.current)?void 0:r.innerText,{getRootProps:g,selected:v,highlighted:O,index:y}=function(e){const{value:t,label:n,disabled:r,rootRef:i,id:o}=e,{getRootProps:a,highlighted:s,selected:l}=XZ({item:t}),{getRootProps:u,rootRef:d}=jZ({disabled:r,focusableWhenDisabled:!0}),f=nZ(o),h=c.useRef(null),p=c.useMemo((()=>({disabled:r,label:n,value:t,ref:h,id:f})),[r,n,t,f]),{index:m}=qZ(t,p),g=eM(i,h,d),v=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||[" ","Enter"].includes(t.key)&&(t.defaultMuiPrevented=!0)},O=(e={})=>({onKeyDown:v(e)});return{getRootProps:(e={})=>{const t=iM(e);return HD({},e,t,bZ(a,bZ(u,O))(t),{id:f,ref:g,role:"option","aria-selected":l})},highlighted:s,index:m,selected:l,rootRef:g}}({disabled:o,label:m,rootRef:p,value:u}),b=HD({},e,{disabled:o,highlighted:O,index:y,selected:v}),w=function(e){const{disabled:t,highlighted:n,selected:r}=e;return hM({root:["root",t&&"disabled",n&&"highlighted",r&&"selected"]},fM(lye))}(b),k=sM({getSlotProps:g,elementType:f,externalSlotProps:s.root,externalForwardedProps:d,className:w.root,ownerState:b});return(0,lM.jsx)(f,HD({},k,{children:i}))}))),dye=c.forwardRef((function(e,t){const{value:n}=e,{contextValue:r}=function(e){const t=c.useContext(kZ);if(!t)throw new Error("Option: ListContext was not found.");const{getItemState:n,dispatch:r}=t,{highlighted:i,selected:o,focusable:a}=n(e),s=c.useCallback((t=>{if(t!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:i,selected:o,focusable:a}}),[i,o,a,e]);return{contextValue:c.useMemo((()=>({dispatch:r,getItemState:s})),[r,s])}}(n);return(0,lM.jsx)(kZ.Provider,{value:r,children:(0,lM.jsx)(cye,HD({},e,{ref:t}))})})),fye=UD("SelectOption",["root","selected","label"]),hye=function({selectedValue:e,value:t,children:n,"data-testid":r}){const i=(0,c.useMemo)((()=>Array.isArray(e)&&Ie(t)?e.includes(t):e===t),[e,t]);return c.createElement(dye,{value:t,"data-testid":r,slotProps:{root:{className:qD(fye.root,i&&fye.selected)}}},c.createElement("span",{className:fye.label},n))},pye=UD("Select",["root","disabled","input","value","label","label-text","dropdown","dropdown-icon","input","popper"]),mye=(0,c.forwardRef)((({label:e,placeholder:t,value:n,options:r,required:i=!1,disabled:o,rootClassName:a,onChange:s,onOpenChange:l},u)=>{const{width:d}=function(e=null){const[t,n]=(0,c.useState)(null),[r,i]=(0,c.useState)({width:0,height:0}),o=(0,c.useCallback)((()=>{i({width:(null==t?void 0:t.offsetWidth)||0,height:(null==t?void 0:t.offsetHeight)||0})}),[null==t?void 0:t.offsetHeight,null==t?void 0:t.offsetWidth]);return XD("resize",o),(0,c.useEffect)((()=>{var t;n("function"!=typeof e&&null!==(t=null==e?void 0:e.current)&&void 0!==t?t:null)}),[e]),(0,c.useEffect)((()=>{o()}),[null==t?void 0:t.offsetHeight,null==t?void 0:t.offsetWidth]),r}(u),[f,h]=(0,c.useState)(!1),p=(0,c.useCallback)((e=>{h(e),null==l||l(e)}),[l]),m=(0,c.useCallback)(((e,t)=>{if(Array.isArray(n)){const r=[...n],i=r.indexOf(t);return i>-1?r.splice(i,1):("number"==typeof t||Ne(t))&&r.push(t),s(r,e),void h(!1)}s(t,e),h(!1)}),[s,n]),g=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),p(!f)}),[p,f]),v=(0,c.useCallback)((()=>{p(!1)}),[p]);return c.createElement(j4,{onClickAway:v},c.createElement("div",{className:qD(pye.root,a)},c.createElement(sye,{renderValue:()=>c.createElement("div",{className:pye.value},c.createElement("div",{className:pye.label},c.createElement("span",{className:pye["label-text"]},null!=e?e:t)),c.createElement("span",{className:pye.dropdown},c.createElement(zZ,{className:pye["dropdown-icon"],"aria-hidden":"true"}))),ref:u,onClick:g,slotProps:{root:{className:pye.input},popper:{className:pye.popper,style:{width:u?d:"auto"},disablePortal:!1}},value:n,disabled:o,onChange:m,listboxOpen:f,"data-testid":"select-input"},Array.isArray(n)||i?null:c.createElement(hye,{value:"",selectedValue:n},c.createElement("i",null,"None")),r.map(((e,t)=>{const{label:r,value:i}=function(e){return e&&"object"==typeof e&&"label"in e&&"value"in e?e:{label:String(e),value:e}}(e);return c.createElement(hye,{key:t,value:i,selectedValue:n,"data-testid":`select-option-${i}`},r)})))))}));mye.displayName="Select";const gye=mye,vye=UD("WidgetCodeSettings",["root"]),Oye=({value:e,label:t,placeholder:n,options:r,onChange:i,uniqueId:o,type:a})=>c.createElement("div",null,c.createElement(Dfe,{htmlFor:`${o}-select-${a}-label`,disabled:!1},t),c.createElement(gye,{value:e.value,label:e.value,placeholder:n,options:r,onChange:e=>{"string"==typeof e&&i(e)}})),yye=({hideSettings:e,uniqueId:t,languages:n,language:r,onChangeLanguage:i})=>{const o=LD();return c.createElement("div",{onKeyDown:t=>(0,GOe.ZP)("esc",t)&&e(),className:vye.root},c.createElement(Oye,{type:"language",label:o("editor.editorWidgets.code.language"),placeholder:o("editor.editorWidgets.code.selectLanguage"),uniqueId:t,value:r,options:n,onChange:i}))},bye=[{label:"AGS Script",identifiers:["ags","asc","ash"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"APL",identifiers:["apl","dyalog"],codemirror_mode:"apl",codemirror_mime_type:"text/apl"},{label:"ASP",identifiers:["asp","aspx","asax","ascx","ashx","asmx","axd"],codemirror_mode:"html",codemirror_mime_type:"application/x-aspx"},{label:"Alpine Abuild",identifiers:["abuild","apkbuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"AngelScript",identifiers:["angelscript","as"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Ant Build System",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"application/xml"},{label:"Apex",identifiers:["apex","cls"],codemirror_mode:"c",codemirror_mime_type:"text/x-java"},{label:"Asymptote",identifiers:["asymptote","asy"],codemirror_mode:"c",codemirror_mime_type:"text/x-kotlin"},{label:"BibTeX",identifiers:["bibtex","bib"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Brainfuck",identifiers:["brainfuck","b","bf"],codemirror_mode:"brainfuck",codemirror_mime_type:"text/x-brainfuck"},{label:"C",identifiers:["c","cats","h","idc"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"C#",identifiers:["csharp","cs","cake","csx"],codemirror_mode:"csharp",codemirror_mime_type:"text/x-csharp"},{label:"C++",identifiers:["cpp","cc","cp","cxx","h","hh","hpp","hxx","inc","inl","ino","ipp","re","tcc","tpp"],codemirror_mode:"cpp",codemirror_mime_type:"text/x-c++src"},{label:"C2hs Haskell",identifiers:["chs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"CMake",identifiers:["cmake"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"COBOL",identifiers:["cobol","cob","cbl","ccp","cpy"],codemirror_mode:"cobol",codemirror_mime_type:"text/x-cobol"},{label:"COLLADA",identifiers:["collada","dae"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"CSON",identifiers:["cson"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"CSS",identifiers:["css"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Cabal Config",identifiers:["Cabal","cabal"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"ChucK",identifiers:["chuck","ck"],codemirror_mode:"c",codemirror_mime_type:"text/x-java"},{label:"Clojure",identifiers:["clojure","clj","boot","cljc","cljs","cljscm","cljx","hic"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Cloud Firestore Security Rules",identifiers:[],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"CoffeeScript",identifiers:["coffeescript","coffee","cake","cjsx","iced"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Common Lisp",identifiers:["lisp","asd","cl","l","lsp","ny","podsl","sexp"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Common Workflow Language",identifiers:["cwl"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Component Pascal",identifiers:["delphi","objectpascal","cp","cps"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Crystal",identifiers:["crystal","cr"],codemirror_mode:"crystal",codemirror_mime_type:"text/x-crystal"},{label:"Cuda",identifiers:["cuda","cu","cuh"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Cycript",identifiers:["cycript","cy"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"Cython",identifiers:["cython","pyrex","pyx","pxd","pxi"],codemirror_mode:"python",codemirror_mime_type:"text/x-cython"},{label:"D",identifiers:["d","di"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"DTrace",identifiers:["dtrace","d"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"Dart",identifiers:["dart"],codemirror_mode:"dart",codemirror_mime_type:"application/dart"},{label:"Dhall",identifiers:["dhall"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Diff",identifiers:["diff","udiff","patch"],codemirror_mode:"diff",codemirror_mime_type:"text/x-diff"},{label:"Dockerfile",identifiers:["dockerfile"],codemirror_mode:"dockerfile",codemirror_mime_type:"text/x-dockerfile"},{label:"Dylan",identifiers:["dylan","dyl","intr","lid"],codemirror_mode:"dylan",codemirror_mime_type:"text/x-dylan"},{label:"EBNF",identifiers:["ebnf"],codemirror_mode:"ebnf",codemirror_mime_type:"text/x-ebnf"},{label:"ECL",identifiers:["ecl","eclxml"],codemirror_mode:"ecl",codemirror_mime_type:"text/x-ecl"},{label:"EQ",identifiers:["eq"],codemirror_mode:"c",codemirror_mime_type:"text/x-csharp"},{label:"Eagle",identifiers:["eagle","sch","brd"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Easybuild",identifiers:["easybuild","eb"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Ecere Projects",identifiers:["epj"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"EditorConfig",identifiers:["editorconfig"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Edje Data Collection",identifiers:["edc"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Eiffel",identifiers:["eiffel","e"],codemirror_mode:"eiffel",codemirror_mime_type:"text/x-eiffel"},{label:"Elm",identifiers:["elm"],codemirror_mode:"elm",codemirror_mime_type:"text/x-elm"},{label:"Emacs Lisp",identifiers:["elisp","emacs","el"],codemirror_mode:"c",codemirror_mime_type:"text/x-common-lisp"},{label:"EmberScript",identifiers:["emberscript","em"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Erlang",identifiers:["erlang","erl","es","escript","hrl","xrl","yrl"],codemirror_mode:"erlang",codemirror_mime_type:"text/x-erlang"},{label:"Factor",identifiers:["factor"],codemirror_mode:"factor",codemirror_mime_type:"text/x-factor"},{label:"Forth",identifiers:["forth","fth","f","for","fr","frt","fs"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Fortran",identifiers:["fortran","f","for","fpp"],codemirror_mode:"fortran",codemirror_mime_type:"text/x-fortran"},{label:"GCC Machine Description",identifiers:["md"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"GN",identifiers:["gn","gni"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Game Maker Language",identifiers:["gml"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Genshi",identifiers:["genshi","kid"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Gentoo Ebuild",identifiers:["ebuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Gentoo Eclass",identifiers:["eclass"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Attributes",identifiers:["gitattributes"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Config",identifiers:["gitconfig","gitmodules"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Glyph",identifiers:["glyph","glf"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Go",identifiers:["go","golang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"Grammatical Framework",identifiers:["gf"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Groovy",identifiers:["groovy","grt","gtpl","gvy"],codemirror_mode:"groovy",codemirror_mime_type:"text/x-groovy"},{label:"HCL",identifiers:["hcl","terraform","tf","tfvars","workflow"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"HTML",identifiers:["html","xhtml","htm","inc","st","xht"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"HTML+ECR",identifiers:["ecr"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"HTML+EEX",identifiers:["eex"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"HTML+ERB",identifiers:["erb"],codemirror_mode:"html",codemirror_mime_type:"application/x-erb"},{label:"HTML+PHP",identifiers:["phtml"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"HTML+Razor",identifiers:["razor","cshtml"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"HTTP",identifiers:["http"],codemirror_mode:"http",codemirror_mime_type:"message/http"},{label:"Hack",identifiers:["hack","hh","php"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"Haskell",identifiers:["haskell","hs","hsc"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Haxe",identifiers:["haxe","hx","hxsl"],codemirror_mode:"haxe",codemirror_mime_type:"text/x-haxe"},{label:"HolyC",identifiers:["holyc","hc"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"IDL",identifiers:["idl","pro","dlm"],codemirror_mode:"idl",codemirror_mime_type:"text/x-idl"},{label:"INI",identifiers:["ini","dosini","cfg","lektorproject","prefs","pro","properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"IRC log",identifiers:["irc","irclog","weechatlog"],codemirror_mode:"mirc",codemirror_mime_type:"text/mirc"},{label:"Ignore List",identifiers:["ignore","gitignore"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"JSON",identifiers:["json","avsc","geojson","gltf","har","ice","jsonl","mcmeta","tfstate","topojson","webapp","webmanifest","yy","yyp"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSON with Comments",identifiers:["jsonc"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JSON5",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONLD",identifiers:["jsonld"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONiq",identifiers:["jsoniq","jq"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSX",identifiers:["jsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Java",identifiers:["java"],codemirror_mode:"java",codemirror_mime_type:"text/x-java"},{label:"Java Properties",identifiers:["properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Java Server Pages",identifiers:["jsp"],codemirror_mode:"html",codemirror_mime_type:"application/x-jsp"},{label:"JavaScript",identifiers:["javascript","js","node","bones","es","frag","gs","jake","jsb","jscad","jsfl","jsm","jss","mjs","njs","pac","sjs","ssjs","xsjs","xsjslib"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JavaScript+ERB",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/javascript"},{label:"Julia",identifiers:["julia","jl"],codemirror_mode:"julia",codemirror_mime_type:"text/x-julia"},{label:"Jupyter Notebook",identifiers:["ipynb"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"KiCad Layout",identifiers:["pcbnew"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Kit",identifiers:["kit"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"Kotlin",identifiers:["kotlin","kt","ktm","kts"],codemirror_mode:"kotlin",codemirror_mime_type:"text/x-kotlin"},{label:"LFE",identifiers:["lfe"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"LTspice Symbol",identifiers:["asy"],codemirror_mode:"spreadsheet",codemirror_mime_type:"text/x-spreadsheet"},{label:"LabVIEW",identifiers:["labview","lvproj"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Less",identifiers:["less"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Literate Haskell",identifiers:["lhaskell","lhs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-literate-haskell"},{label:"LiveScript",identifiers:["livescript","ls"],codemirror_mode:"livescript",codemirror_mime_type:"text/x-livescript"},{label:"LookML",identifiers:["lookml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Lua",identifiers:["lua","fcgi","nse","rbxs","wlua"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"M",identifiers:["m","mumps"],codemirror_mode:"mumps",codemirror_mime_type:"text/x-mumps"},{label:"MATLAB",identifiers:["matlab","octave","m"],codemirror_mode:"octave",codemirror_mime_type:"text/x-octave"},{label:"MTML",identifiers:["mtml"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"MUF",identifiers:["muf","m"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Makefile",identifiers:["makefile","bsdmake","make","mf","mak","d","mk","mkfile"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"Markdown",identifiers:["markdown","pandoc","md","mdown","mdwn","mdx","mkd","mkdn","mkdown","ronn","workbook"],codemirror_mode:"markdown",codemirror_mime_type:"text/x-gfm"},{label:"Marko",identifiers:["marko","markojs"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"Mathematica",identifiers:["mathematica","mma","cdf","m","ma","mt","nb","nbp","wl","wlt"],codemirror_mode:"mathematica",codemirror_mime_type:"text/x-mathematica"},{label:"Maven POM",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Max",identifiers:["max","maxmsp","maxpat","maxhelp","maxproj","mxt","pat"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"Metal",identifiers:["metal"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Mirah",identifiers:["mirah","druby","duby"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Modelica",identifiers:["modelica","mo"],codemirror_mode:"modelica",codemirror_mime_type:"text/x-modelica"},{label:"NSIS",identifiers:["nsis","nsi","nsh"],codemirror_mode:"nsis",codemirror_mime_type:"text/x-nsis"},{label:"NetLogo",identifiers:["netlogo","nlogo"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"NewLisp",identifiers:["newlisp","nl","lisp","lsp"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Nginx",identifiers:["nginx","nginxconf","vhost"],codemirror_mode:"nginx",codemirror_mime_type:"text/x-nginx-conf"},{label:"Nu",identifiers:["nu","nush"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"NumPy",identifiers:["numpy","numpyw","numsc"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Objective-C",identifiers:["objc","objectivec","m","h"],codemirror_mode:"c",codemirror_mime_type:"text/x-objectivec"},{label:"Objective-C++",identifiers:["mm"],codemirror_mode:"c",codemirror_mime_type:"text/x-objectivec"},{label:"OpenCL",identifiers:["opencl","cl"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"OpenRC runscript",identifiers:["openrc"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Oz",identifiers:["oz"],codemirror_mode:"oz",codemirror_mime_type:"text/x-oz"},{label:"PHP",identifiers:["php","inc","aw","ctp","fcgi","phps","phpt"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"PLSQL",identifiers:["plsql","pls","bdy","ddl","fnc","pck","pkb","pks","plb","prc","spc","sql","tpb","tps","trg","vw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-plsql"},{label:"PLpgSQL",identifiers:["plpgsql","pgsql","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"Pascal",identifiers:["pascal","pas","dfm","dpr","inc","lpr","pp"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Perl",identifiers:["perl","cperl","pl","al","cgi","fcgi","ph","plx","pm","psgi","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Perl 6",identifiers:["nqp","pl","pm","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Pic",identifiers:["pic","chem"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Pod",identifiers:["pod"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"PowerShell",identifiers:["powershell","posh","pwsh"],codemirror_mode:"powershell",codemirror_mime_type:"application/x-powershell"},{label:"Protocol Buffer",identifiers:["protobuf","proto"],codemirror_mode:"protobuf",codemirror_mime_type:"text/x-protobuf"},{label:"Public Key",identifiers:["asc","pub"],codemirror_mode:"asciiArmor",codemirror_mime_type:"application/pgp"},{label:"Puppet",identifiers:["puppet","pp"],codemirror_mode:"puppet",codemirror_mime_type:"text/x-puppet"},{label:"PureScript",identifiers:["purescript","purs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Python",identifiers:["python","rusthon","py","bzl","cgi","fcgi","gyp","gypi","lmi","pyde","pyi","pyp","pyt","pyw","rpy","spec","tac","wsgi","xpy"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"R",identifiers:["r","R","Rscript","splus","rd","rsx"],codemirror_mode:"r",codemirror_mime_type:"text/x-rsrc"},{label:"RAML",identifiers:["raml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"RHTML",identifiers:["rhtml"],codemirror_mode:"html",codemirror_mime_type:"application/x-erb"},{label:"RMarkdown",identifiers:["rmarkdown","rmd"],codemirror_mode:"markdown",codemirror_mime_type:"text/x-gfm"},{label:"Reason",identifiers:["reason","re","rei"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"Roff",identifiers:["roff","groff","man","manpage","mdoc","nroff","troff","l","me","ms","n","nr","rno","tmac"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Roff Manpage",identifiers:["man","mdoc"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Rouge",identifiers:["rouge","rg"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Ruby",identifiers:["ruby","jruby","macruby","rake","rb","rbx","builder","eye","fcgi","gemspec","god","jbuilder","mspec","pluginspec","podspec","rabl","rbuild","rbw","ru","spec","thor","watchr"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Rust",identifiers:["rust","rs"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"SAS",identifiers:["sas"],codemirror_mode:"sas",codemirror_mime_type:"text/x-sas"},{label:"SCSS",identifiers:["scss"],codemirror_mode:"css",codemirror_mime_type:"text/x-scss"},{label:"SPARQL",identifiers:["sparql","rq"],codemirror_mode:"sparql",codemirror_mime_type:"application/sparql-query"},{label:"SQL",identifiers:["sql","cql","ddl","inc","mysql","prc","tab","udf","viw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SQLPL",identifiers:["sqlpl","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SRecode Template",identifiers:["srt"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"SVG",identifiers:["svg"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Sage",identifiers:["sage","sagews"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"SaltStack",identifiers:["saltstack","saltstate","salt","sls"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Sass",identifiers:["sass"],codemirror_mode:"sass",codemirror_mime_type:"text/x-sass"},{label:"Scala",identifiers:["scala","kojo","sbt","sc"],codemirror_mode:"scala",codemirror_mime_type:"text/x-scala"},{label:"Scheme",identifiers:["scheme","scm","sch","sld","sls","sps","ss"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"Shell",identifiers:["shell","sh","bash","zsh","bats","cgi","command","fcgi","ksh","tmux","tool"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"ShellSession",identifiers:["shellsession","console"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Smalltalk",identifiers:["smalltalk","squeak","st","cs"],codemirror_mode:"smalltalk",codemirror_mime_type:"text/x-stsrc"},{label:"Squirrel",identifiers:["squirrel","nut"],codemirror_mode:"squirrel",codemirror_mime_type:"text/x-c++src"},{label:"Svelte",identifiers:["svelte"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"Swift",identifiers:["swift"],codemirror_mode:"swift",codemirror_mime_type:"text/x-swift"},{label:"SystemVerilog",identifiers:["systemverilog","sv","svh","vh"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-systemverilog"},{label:"TOML",identifiers:["toml"],codemirror_mode:"toml",codemirror_mime_type:"text/x-toml"},{label:"TSX",identifiers:["tsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Tcl",identifiers:["tcl","adp","tm"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Tcsh",identifiers:["tcsh","csh"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"TeX",identifiers:["tex","latex","aux","bbx","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Terra",identifiers:["terra","t"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"Textile",identifiers:["textile"],codemirror_mode:"textile",codemirror_mime_type:"text/x-textile"},{label:"Turtle",identifiers:["turtle","ttl"],codemirror_mode:"turtle",codemirror_mime_type:"text/turtle"},{label:"TypeScript",identifiers:["typescript","ts"],codemirror_mode:"javascript",codemirror_mime_type:"application/typescript"},{label:"Unified Parallel C",identifiers:["upc"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"Unity3D Asset",identifiers:["anim","asset","mat","meta","prefab","unity"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Uno",identifiers:["uno"],codemirror_mode:"c",codemirror_mime_type:"text/x-csharp"},{label:"UnrealScript",identifiers:["unrealscript","uc"],codemirror_mode:"c",codemirror_mime_type:"text/x-java"},{label:"V",identifiers:["v","vlang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"VHDL",identifiers:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],codemirror_mode:"vhdl",codemirror_mime_type:"text/x-vhdl"},{label:"Verilog",identifiers:["verilog","v","veo"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-verilog"},{label:"Visual Basic",identifiers:["vbnet","vb","bas","cls","frm","frx","vba","vbhtml","vbs"],codemirror_mode:"vb",codemirror_mime_type:"text/x-vb"},{label:"Volt",identifiers:["volt"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"WebAssembly",identifiers:["webassembly","wast","wasm","wat"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Windows Registry Entries",identifiers:["reg"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"X BitMap",identifiers:["xbm"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"X PixMap",identifiers:["xpm","pm"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"XC",identifiers:["xc"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"XML",identifiers:["xml","rss","xsd","wsdl","adml","admx","ant","axml","builds","ccproj","ccxml","clixml","cproject","cscfg","csdef","csl","csproj","ct","depproj","dita","ditamap","ditaval","dotsettings","filters","fsproj","fxml","glade","gml","gmx","grxml","iml","ivy","jelly","jsproj","kml","launch","mdpolicy","mjml","mm","mod","mxml","natvis","ncl","ndproj","nproj","nuspec","odd","osm","pkgproj","pluginspec","proj","props","pt","rdf","resx","sch","scxml","sfproj","shproj","srdf","storyboard","targets","tml","ts","tsx","ui","urdf","ux","vbproj","vcxproj","vsixmanifest","vssettings","vstemplate","vxml","wixproj","workflow","wsf","wxi","wxl","wxs","xacro","xaml","xib","xlf","xliff","xmi","xproj","xspec","xul","zcml"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XML Property List",identifiers:["plist","stTheme","tmCommand","tmLanguage","tmPreferences","tmSnippet","tmTheme"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XPages",identifiers:["xpages"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XProc",identifiers:["xproc","xpl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XQuery",identifiers:["xquery","xq","xql","xqm","xqy"],codemirror_mode:"xQuery",codemirror_mime_type:"application/xquery"},{label:"XS",identifiers:["xs"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"XSLT",identifiers:["xslt","xsl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"YAML",identifiers:["yaml","yml","mir","reek","rviz","syntax"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"edn",identifiers:["edn"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"wisp",identifiers:["wisp"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"}];function wye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kye(e){for(var t=1;t{var u;const d=f4(),f=(0,c.useMemo)((()=>{var e;const n=null!==(e=t.keys)&&void 0!==e?e:{};return kye(kye({},{code:"code",lang:"lang"}),n)}),[t]),h=(0,c.useMemo)((()=>Boolean(!t.output_code_only)),[t.output_code_only]),[p,m]=(0,c.useState)(null!=o?o:""),g=(0,c.useMemo)((()=>n?null!=o?o:"":p),[p,n,o]),[v,O]=(0,c.useState)(null),[y,b]=(0,c.useState)(!1),w=(0,c.useCallback)((e=>{e.stopPropagation(),b((e=>!e))}),[]),k=(0,c.useCallback)((()=>{b(!1)}),[]),[x,_]=(0,c.useState)(!0),S=(0,c.useCallback)((()=>{_((e=>!e)),b(!1)}),[]),P=(0,c.useCallback)((e=>{m(null!=e?e:""),r(null!=e?e:"")}),[r]),E=(0,c.useCallback)((e=>{var t;h&&P({lang:null!==(t=null==v?void 0:v.label)&&void 0!==t?t:"",code:e}),P(e)}),[P,null==v?void 0:v.label,h]),C=(0,c.useMemo)((()=>v?bme(v.codemirror_mode):null),[v]),T=(0,c.useMemo)((()=>C?[C]:[]),[C]),$=(0,c.useMemo)((()=>"string"==typeof g?g:g[f.code]),[g,f.code]),Q=Wz(),R=(0,c.useMemo)((()=>Boolean(t.allow_language_selection)),[t.allow_language_selection]),A=bye.map((e=>Sye(e.label))),j=(0,c.useCallback)((e=>{const t=bye.find((t=>t.label===e));t&&O(t)}),[]);return(0,c.useEffect)((()=>{let e;e="string"!=typeof g?g[f.lang]:g,We(e)||j(e)}),[t.default_language,j,g,f.lang,h]),c.createElement("div",{"data-testid":`code-field-${e}`,className:qD(_ye.root,l&&_ye.disabled,i&&_ye.error,a&&_ye["for-single-list"],!1!==t.required&&_ye.required,x&&_ye.expanded)},c.createElement("div",{"data-testid":"field-wrapper",className:_ye["field-wrapper"]},c.createElement("button",{"data-testid":"list-expand-button",className:_ye["expand-button"],onClick:S},c.createElement(Dfe,{key:"label",hasErrors:i,className:_ye.label,cursor:"pointer",variant:"inline",disabled:l},e.trim()),x&&R?c.createElement(ZOe,{onClick:w,disabled:l}):null,c.createElement(EY,{className:_ye["expand-button-icon"]})),x&&R&&y?c.createElement(yye,{uniqueId:Q,languages:A,language:Sye(null!==(u=null==v?void 0:v.label)&&void 0!==u?u:""),allowLanguageSelection:R,onChangeLanguage:j,hideSettings:k}):null,c.createElement(Gfe,{in:x,appear:!1},c.createElement("div",null,c.createElement(BOe,{value:$,height:"auto",minHeight:"120px",width:"100%",editable:!0,onChange:E,extensions:T,theme:d.codemirror.theme,readOnly:l}))),t.hint?c.createElement(Afe,{key:"hint",hasErrors:i,cursor:"pointer",disabled:l},t.hint):null,c.createElement(doe,{errors:s,className:_ye["error-message"]})))},Eye=UD("WidgetCodePreview",["root"]),Cye=({value:e,field:t})=>c.createElement("pre",{className:Eye.root},c.createElement("code",null,function(e,t){return fo()(e)?e:e&&null!==(n=e[null!==(r=null===(i=t.keys)||void 0===i?void 0:i.code)&&void 0!==r?r:"code"])&&void 0!==n?n:"";var n,r,i}(e,t))),Tye={properties:{default:{oneOf:[{type:"string"},{type:"object"}]},default_language:{type:"string"},allow_language_selection:{type:"boolean"},keys:{type:"object",properties:{code:{type:"string"},lang:{type:"string"}}},output_code_only:{type:"boolean"},code_mirror_config:{type:"object"}}},$ye=()=>({name:"code",controlComponent:Pye,previewComponent:Cye,options:{schema:Tye,getValidValue:(e,t)=>e&&"string"!=typeof e?e[t.keys?t.keys.code:"code"]:e,getDefaultValue:(e,t)=>{var n,r,i,o,a,s,l;if(t.output_code_only)return String(e);const u=null!==(n=null===(r=t.keys)||void 0===r?void 0:r.lang)&&void 0!==n?n:"lang",c=null!==(i=null===(o=t.keys)||void 0===o?void 0:o.code)&&void 0!==i?i:"code";var d;return"string"==typeof e?{[u]:null!==(d=t.default_language)&&void 0!==d?d:"",[c]:e}:{[u]:null!==(a=null!==(s=t.default_language)&&void 0!==s?s:null==e?void 0:e[u])&&void 0!==a?a:"",[c]:null!==(l=null==e?void 0:e[c])&&void 0!==l?l:""}}}});var Qye=__webpack_require__(37980),Rye={},Aye=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(Rye[i])return Rye[i];var o=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,r);return Rye[i]=o,o},jye=Object.assign||function(e){for(var t=1;ta?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f;if(r!==(f=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},Wye(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),zye(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,Qye.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:Iye({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return c.createElement("div",{style:n.alpha},c.createElement("div",{style:n.checkboard},c.createElement(Mye,{renderers:this.props.renderers})),c.createElement("div",{style:n.gradient}),c.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.createElement("div",{style:n.pointer},this.props.pointer?c.createElement(this.props.pointer,this.props):c.createElement("div",{style:n.slider}))))}}]),t}(c.PureComponent||c.Component);const Lye=Nye;var Fye=function(){function e(e,t){for(var n=0;n-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+Xye++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Fye(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,Qye.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return c.createElement("div",{style:t.wrap},c.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?c.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(c.PureComponent||c.Component);const Bye=qye;var Vye=function(){function e(e,t){for(var n=0;no?0:360*(-100*u/o+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d;if(d=l<0?0:l>i?359:100*l/i*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},Yye(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Vye(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,Qye.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return c.createElement("div",{style:r.hue},c.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),c.createElement("div",{style:r.pointer},this.props.pointer?c.createElement(this.props.pointer,this.props):c.createElement("div",{style:r.slider}))))}}]),t}(c.PureComponent||c.Component);const Gye=Zye;var Hye=__webpack_require__(97641),Kye=__webpack_require__.n(Hye);const Jye=function(e,t){return e===t||e!=e&&t!=t},ebe=function(e,t){for(var n=e.length;n--;)if(Jye(e[n][0],t))return n;return-1};var tbe=Array.prototype.splice;function nbe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},nbe.prototype.set=function(e,t){var n=this.__data__,r=ebe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const rbe=nbe,ibe="object"==typeof global&&global&&global.Object===Object&&global;var obe="object"==typeof self&&self&&self.Object===Object&&self;const abe=ibe||obe||Function("return this")(),sbe=abe.Symbol;var lbe=Object.prototype,ube=lbe.hasOwnProperty,cbe=lbe.toString,dbe=sbe?sbe.toStringTag:void 0;var fbe=Object.prototype.toString;var hbe=sbe?sbe.toStringTag:void 0;const pbe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":hbe&&hbe in Object(e)?function(e){var t=ube.call(e,dbe),n=e[dbe];try{e[dbe]=void 0;var r=!0}catch(e){}var i=cbe.call(e);return r&&(t?e[dbe]=n:delete e[dbe]),i}(e):function(e){return fbe.call(e)}(e)},mbe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},gbe=function(e){if(!mbe(e))return!1;var t=pbe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},vbe=abe["__core-js_shared__"];var Obe,ybe=(Obe=/[^.]+$/.exec(vbe&&vbe.keys&&vbe.keys.IE_PROTO||""))?"Symbol(src)_1."+Obe:"";var bbe=Function.prototype.toString;const wbe=function(e){if(null!=e){try{return bbe.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var kbe=/^\[object .+?Constructor\]$/,xbe=Function.prototype,_be=Object.prototype,Sbe=xbe.toString,Pbe=_be.hasOwnProperty,Ebe=RegExp("^"+Sbe.call(Pbe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Cbe=function(e){return!(!mbe(e)||function(e){return!!ybe&&ybe in e}(e))&&(gbe(e)?Ebe:kbe).test(wbe(e))},Tbe=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Cbe(n)?n:void 0},$be=Tbe(abe,"Map"),Qbe=Tbe(Object,"create");var Rbe=Object.prototype.hasOwnProperty;var Abe=Object.prototype.hasOwnProperty;function jbe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991},pwe=function(e){return null!=e&&hwe(e.length)&&!gbe(e)};var mwe="object"==typeof exports&&exports&&!exports.nodeType&&exports,gwe=mwe&&"object"==typeof module&&module&&!module.nodeType&&module,vwe=gwe&&gwe.exports===mwe?abe.Buffer:void 0;const Owe=(vwe?vwe.isBuffer:void 0)||function(){return!1};var ywe=Function.prototype,bwe=Object.prototype,wwe=ywe.toString,kwe=bwe.hasOwnProperty,xwe=wwe.call(Object);var _we={};_we["[object Float32Array]"]=_we["[object Float64Array]"]=_we["[object Int8Array]"]=_we["[object Int16Array]"]=_we["[object Int32Array]"]=_we["[object Uint8Array]"]=_we["[object Uint8ClampedArray]"]=_we["[object Uint16Array]"]=_we["[object Uint32Array]"]=!0,_we["[object Arguments]"]=_we["[object Array]"]=_we["[object ArrayBuffer]"]=_we["[object Boolean]"]=_we["[object DataView]"]=_we["[object Date]"]=_we["[object Error]"]=_we["[object Function]"]=_we["[object Map]"]=_we["[object Number]"]=_we["[object Object]"]=_we["[object RegExp]"]=_we["[object Set]"]=_we["[object String]"]=_we["[object WeakMap]"]=!1;var Swe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pwe=Swe&&"object"==typeof module&&module&&!module.nodeType&&module,Ewe=Pwe&&Pwe.exports===Swe&&ibe.process,Cwe=function(){try{return Pwe&&Pwe.require&&Pwe.require("util").types||Ewe&&Ewe.binding&&Ewe.binding("util")}catch(e){}}(),Twe=Cwe&&Cwe.isTypedArray;const $we=Twe?function(e){return function(t){return e(t)}}(Twe):function(e){return awe(e)&&hwe(e.length)&&!!_we[pbe(e)]},Qwe=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var Rwe=Object.prototype.hasOwnProperty;const Awe=function(e,t,n){var r=e[t];Rwe.call(e,t)&&Jye(r,n)&&(void 0!==n||t in e)||Ube(e,t,n)};var jwe=/^(?:0|[1-9]\d*)$/;const Dwe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&jwe.test(e))&&e>-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Vwe),Gwe=function(e,t){return Zwe(function(e,t,n){return t=qwe(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=qwe(r.length-t,0),a=Array(o);++i1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Hwe.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!mbe(n))return!1;var r=typeof t;return!!("number"==r?pwe(n)&&Dwe(t,n.length):"string"==r&&t in n)&&Jye(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n=t||n<0||d&&e-u>=o}function m(){var e=nke();if(p(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?hke(n,o-(e-u)):n}(e))}function g(e){return s=void 0,f&&r?h(e):(r=i=void 0,a)}function v(){var e=nke(),n=p(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(m,t),c?h(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=dke(t)||0,mbe(n)&&(c=!!n.leading,o=(d="maxWait"in n)?fke(dke(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(nke())},v};var mke=function(){function e(e,t){for(var n=0;ni&&(l=i),u<0?u=0:u>o&&(u=o);var c=l/i,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return mbe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pke(e,t,{leading:r,maxWait:t,trailing:i})}((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),mke(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,o=t.pointer,a=t.circle,s=(0,Qye.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:o,circle:a}},{custom:!!this.props.style});return c.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),c.createElement("div",{style:s.white,className:"saturation-white"},c.createElement("div",{style:s.black,className:"saturation-black"}),c.createElement("div",{style:s.pointer},this.props.pointer?c.createElement(this.props.pointer,this.props):c.createElement("div",{style:s.circle}))))}}]),t}(c.PureComponent||c.Component);const vke=gke,Oke=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Vke(e,360),t=Vke(t,100),n=Vke(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Bke(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Cke(e,t,n){e=Vke(e,255),t=Vke(t,255),n=Vke(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Eke(r));return o}function Uke(e,t){t=t||6;for(var n=Eke(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(Eke({h:r,s:i,v:o})),o=(o+s)%1;return a}Eke.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=Bke(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Tke(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Tke(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=Cke(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Cke(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return $ke(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[Gke(Math.round(e).toString(16)),Gke(Math.round(t).toString(16)),Gke(Math.round(n).toString(16)),Gke(Kke(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Vke(this._r,255))+"%",g:Math.round(100*Vke(this._g,255))+"%",b:Math.round(100*Vke(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Vke(this._r,255))+"%, "+Math.round(100*Vke(this._g,255))+"%, "+Math.round(100*Vke(this._b,255))+"%)":"rgba("+Math.round(100*Vke(this._r,255))+"%, "+Math.round(100*Vke(this._g,255))+"%, "+Math.round(100*Vke(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(qke[$ke(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Qke(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=Eke(e);n="#"+Qke(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Eke(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Dke,arguments)},brighten:function(){return this._applyModification(Mke,arguments)},darken:function(){return this._applyModification(Ike,arguments)},desaturate:function(){return this._applyModification(Rke,arguments)},saturate:function(){return this._applyModification(Ake,arguments)},greyscale:function(){return this._applyModification(jke,arguments)},spin:function(){return this._applyModification(zke,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Fke,arguments)},complement:function(){return this._applyCombination(Wke,arguments)},monochromatic:function(){return this._applyCombination(Uke,arguments)},splitcomplement:function(){return this._applyCombination(Lke,arguments)},triad:function(){return this._applyCombination(Nke,[3])},tetrad:function(){return this._applyCombination(Nke,[4])}},Eke.fromRatio=function(e,t){if("object"==_ke(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Hke(e[r]));e=n}return Eke(e,t)},Eke.equals=function(e,t){return!(!e||!t)&&Eke(e).toRgbString()==Eke(t).toRgbString()},Eke.random=function(){return Eke.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Eke.mix=function(e,t,n){n=0===n?0:n||50;var r=Eke(e).toRgb(),i=Eke(t).toRgb(),o=n/100;return Eke({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},Eke.readability=function(e,t){var n=Eke(e),r=Eke(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Eke.isReadable=function(e,t,n){var r,i,o=Eke.readability(e,t);switch(i=!1,r=function(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},Eke.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;ul&&(l=r,s=Eke(t[u]));return Eke.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,Eke.mostReadable(e,["#fff","#000"],n))};var Xke=Eke.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},qke=Eke.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(Xke);function Bke(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Vke(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Yke(e){return Math.min(1,Math.max(0,e))}function Zke(e){return parseInt(e,16)}function Gke(e){return 1==e.length?"0"+e:""+e}function Hke(e){return e<=1&&(e=100*e+"%"),e}function Kke(e){return Math.round(255*parseFloat(e)).toString(16)}function Jke(e){return Zke(e)/255}var exe,txe,nxe,rxe=(txe="[\\s|\\(]+("+(exe="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+exe+")[,|\\s]+("+exe+")\\s*\\)?",nxe="[\\s|\\(]+("+exe+")[,|\\s]+("+exe+")[,|\\s]+("+exe+")[,|\\s]+("+exe+")\\s*\\)?",{CSS_UNIT:new RegExp(exe),rgb:new RegExp("rgb"+txe),rgba:new RegExp("rgba"+nxe),hsl:new RegExp("hsl"+txe),hsla:new RegExp("hsla"+nxe),hsv:new RegExp("hsv"+txe),hsva:new RegExp("hsva"+nxe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ixe(e){return!!rxe.CSS_UNIT.exec(e)}var oxe=function(e){var t=0,n=0;return xke(["r","g","b","a","h","s","l","v"],(function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1)})),t===n&&e},axe=function(e,t){var n=e.hex?Eke(e.hex):Eke(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#"+a,rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}},sxe=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Eke(e).isValid()},lxe=function(e){if(!e)return"#fff";var t=axe(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},uxe=function(e,t){return Eke(t+" ("+e.replace("°","")+")")._ok},cxe=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var i=arguments.length,o=Array(i),a=0;as))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=2&n?new kxe:void 0;for(o.set(e,t),o.set(t,e);++d1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(mPe(e.s)?n.props.hsl.s:e.s),l:Number(mPe(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),vPe(t,[{key:"render",value:function(){var e=this,t=(0,Qye.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=c.createElement("div",{style:t.fields,className:"flexbox-fix"},c.createElement("div",{style:t.field},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=c.createElement("div",{style:t.fields,className:"flexbox-fix"},c.createElement("div",{style:t.field},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),c.createElement("div",{style:t.field},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),c.createElement("div",{style:t.field},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),c.createElement("div",{style:t.alpha},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=c.createElement("div",{style:t.fields,className:"flexbox-fix"},c.createElement("div",{style:t.field},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),c.createElement("div",{style:t.field},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),c.createElement("div",{style:t.field},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),c.createElement("div",{style:t.alpha},c.createElement(Bye,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),c.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,c.createElement("div",{style:t.toggle},c.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},c.createElement(gPe.Z,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(c.Component);OPe.defaultProps={view:"hex"};const yPe=OPe,bPe=function(){var e=(0,Qye.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return c.createElement("div",{style:e.picker})},wPe=function(){var e=(0,Qye.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return c.createElement("div",{style:e.picker})};var kPe=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,o=e.hsl,a=e.hsv,s=e.hex,l=e.renderers,u=e.styles,d=void 0===u?{}:u,f=e.className,h=void 0===f?"":f,p=e.defaultView,m=(0,Qye.ZP)(Jwe({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},d),{disableAlpha:r});return c.createElement("div",{style:m.picker,className:"chrome-picker "+h},c.createElement("div",{style:m.saturation},c.createElement(vke,{style:m.Saturation,hsl:o,hsv:a,pointer:wPe,onChange:n})),c.createElement("div",{style:m.body},c.createElement("div",{style:m.controls,className:"flexbox-fix"},c.createElement("div",{style:m.color},c.createElement("div",{style:m.swatch},c.createElement("div",{style:m.active}),c.createElement(Mye,{renderers:l}))),c.createElement("div",{style:m.toggles},c.createElement("div",{style:m.hue},c.createElement(Gye,{style:m.Hue,hsl:o,pointer:bPe,onChange:n})),c.createElement("div",{style:m.alpha},c.createElement(Lye,{style:m.Alpha,rgb:i,hsl:o,pointer:bPe,renderers:l,onChange:n})))),c.createElement(yPe,{rgb:i,hsl:o,hex:s,view:p,onChange:n,disableAlpha:r})))};kPe.propTypes={width:Kye().oneOfType([Kye().string,Kye().number]),disableAlpha:Kye().bool,styles:Kye().object,defaultView:Kye().oneOf(["hex","rgb","hsl"])},kPe.defaultProps={width:225,disableAlpha:!1,styles:{}};const xPe=fxe(kPe),_Pe=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,o=e.active,a=(0,Qye.ZP)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:lxe(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return c.createElement(vxe,{style:a.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},c.createElement("div",{style:a.dot}))},SPe=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,Qye.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return c.createElement("div",{style:i.fields,className:"flexbox-fix"},c.createElement("div",{style:i.active}),c.createElement(Bye,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:o}),c.createElement(Bye,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),c.createElement(Bye,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),c.createElement(Bye,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))};var PPe=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,o=e.rgb,a=e.styles,s=void 0===a?{}:a,l=e.className,u=void 0===l?"":l,d=(0,Qye.ZP)(Jwe({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},s)),f=function(e,n){e.hex?sxe(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return c.createElement(tke,{style:d.Compact,styles:s},c.createElement("div",{style:d.compact,className:"compact-picker "+u},c.createElement("div",null,C_e(r,(function(e){return c.createElement(_Pe,{key:e,color:e,active:e.toLowerCase()===i,onClick:f,onSwatchHover:n})})),c.createElement("div",{style:d.clear})),c.createElement(SPe,{hex:i,rgb:o,onChange:f})))};PPe.propTypes={colors:Kye().arrayOf(Kye().string),styles:Kye().object},PPe.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},fxe(PPe);const EPe=(0,Qye.tz)((function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},a=(0,Qye.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:t});return c.createElement("div",{style:a.swatch},c.createElement(vxe,{color:n,onClick:r,onHover:i,focusStyle:o}))}));var CPe=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,o=e.triangle,a=e.styles,s=void 0===a?{}:a,l=e.className,u=void 0===l?"":l,d=(0,Qye.ZP)(Jwe({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},s),{"hide-triangle":"hide"===o,"top-left-triangle":"top-left"===o,"top-right-triangle":"top-right"===o,"bottom-left-triangle":"bottom-left"===o,"bottom-right-triangle":"bottom-right"===o}),f=function(e,t){return r({hex:e,source:"hex"},t)};return c.createElement("div",{style:d.card,className:"github-picker "+u},c.createElement("div",{style:d.triangleShadow}),c.createElement("div",{style:d.triangle}),C_e(n,(function(e){return c.createElement(EPe,{color:e,key:e,onClick:f,onSwatchHover:i})})))};CPe.propTypes={width:Kye().oneOfType([Kye().string,Kye().number]),colors:Kye().arrayOf(Kye().string),triangle:Kye().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:Kye().object},CPe.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},fxe(CPe);var TPe=Object.assign||function(e){for(var t=1;t.5});return c.createElement("div",{style:n.picker})},APe=function(){var e=(0,Qye.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return c.createElement("div",{style:e.pointer},c.createElement("div",{style:e.left},c.createElement("div",{style:e.leftInside})),c.createElement("div",{style:e.right},c.createElement("div",{style:e.rightInside})))},jPe=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,o=(0,Qye.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return c.createElement("div",{style:o.button,onClick:t},n||r)},DPe=function(e){var t=e.rgb,n=e.currentColor,r=(0,Qye.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return c.createElement("div",null,c.createElement("div",{style:r.label},"new"),c.createElement("div",{style:r.swatches},c.createElement("div",{style:r.new}),c.createElement("div",{style:r.current})),c.createElement("div",{style:r.label},"current"))};var MPe=function(){function e(e,t){for(var n=0;n100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return c.createElement("div",{style:a.fields,className:"flexbox-fix"},c.createElement("div",{style:a.double},c.createElement(Bye,{style:{input:a.input,label:a.label},label:"hex",value:i.replace("#",""),onChange:s})),c.createElement("div",{style:a.single},c.createElement(Bye,{style:{input:a.input,label:a.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:a.single},c.createElement(Bye,{style:{input:a.input,label:a.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:a.single},c.createElement(Bye,{style:{input:a.input,label:a.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:a.alpha},c.createElement(Bye,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))};var WPe=Object.assign||function(e){for(var t=1;t{var u,d;const f=(0,c.useRef)(null),h=(0,c.useRef)(null),[p,m]=(0,c.useState)(!1),[g,v]=(0,c.useState)(null!=r?r:""),O=(0,c.useMemo)((()=>t?null!=r?r:"":g),[g,t,r]),y=(0,c.useCallback)((e=>{e.stopPropagation(),m((e=>!e))}),[]),b=(0,c.useCallback)((e=>{e.stopPropagation(),v(""),n("")}),[n]),w=(0,c.useCallback)((()=>{m(!1)}),[]),k=(0,c.useCallback)((e=>{var t,r;const i=(null!==(t=null===(r=e.rgb)||void 0===r?void 0:r.a)&&void 0!==t?t:1)<1?`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`:e.hex;v(i),n(i)}),[n]),x=(0,c.useCallback)((e=>{v(e.target.value),n(e.target.value)}),[n]),_=null!==(u=e.allow_input)&&void 0!==u&&u,S=!_&&O;return c.createElement(Ife,{inputRef:_?h:f,label:a,errors:i,hint:e.hint,forSingleList:s,cursor:_?"text":"pointer",disabled:l,disableClick:p,rootClassName:qD(aEe.root,l&&aEe.disabled,!1!==e.required&&aEe.required,o&&aEe.error,s&&aEe["for-single-list"],_&&aEe["allow-input"])},c.createElement("div",{className:aEe.content},c.createElement("div",{className:aEe["color-swatch-wrapper"]},c.createElement("div",{ref:f,key:"color-swatch","data-testid":"color-swatch",onClick:l?void 0:y,style:{background:oEe()(O)?O:"#fff",color:oEe()(O)?"rgba(255, 255, 255, 0)":"rgb(150, 150, 150)"},className:aEe["color-swatch"]},"?")),p&&c.createElement("div",{key:"color-picker-wrapper",className:aEe["color-picker-wrapper"]},c.createElement("div",{key:"click-outside",onClick:w,className:aEe["color-picker-backdrop"]}),c.createElement(xPe,{key:"color-picker",color:O,onChange:k,disableAlpha:!(null!==(d=e.enable_alpha)&&void 0!==d&&d),className:aEe["color-picker"]})),c.createElement(Y0,{type:"text",inputRef:h,key:"color-picker-input",value:O,onChange:x,onClick:_||l?void 0:y,disabled:l,readonly:!_,cursor:_?"text":"pointer",rootClassName:aEe.input}),S?c.createElement(FN,{icon:yG,variant:"text",onClick:b,disabled:l,rootClassName:aEe["clear-button"],"aria-label":"clear"}):null))},lEe=UD("WidgetColorPreview",["root"]),uEe=({value:e})=>c.createElement("div",{className:lEe.root},e),cEe={properties:{default:{type:"string"},allow_input:{type:"boolean"},enable_alpha:{type:"boolean"}}},dEe=({value:e,t})=>"string"==typeof e&&!oEe()(e)&&(/^[a-fA-F0-9]{3}$|^[a-fA-F0-9]{4}$|^[a-fA-F0-9]{6}$/g.test(e)?{type:FE.CUSTOM,message:t("editor.editorControlPane.widget.invalidHexCode")}:{type:FE.CUSTOM,message:t("editor.editorControlPane.widget.invalidColor",{color:e})}),fEe=()=>({name:"color",controlComponent:sEe,previewComponent:uEe,options:{schema:cEe,validator:dEe}});function hEe(e,t){return Jo(e,+Go(e)+t)}function pEe(e,t){return hEe(e,t*Yo)}function mEe(e,t){const n=Go(e);if(isNaN(t))return Jo(e,NaN);if(!t)return n;const r=n.getDate(),i=Jo(e,n.getTime());return i.setMonth(n.getMonth()+t+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function gEe(e){const t=Go(e);return t.setHours(23,59,59,999),t}function vEe(e){const t=Go(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function OEe(e){const t=Go(e),n=t.getFullYear(),r=t.getMonth(),i=Jo(e,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function yEe(e,t){const n=Go(e),r=Go(t);return n.getTime()>r.getTime()}function bEe(e,t){return+Go(e)<+Go(t)}function wEe(e){const t=Go(e);return t.setMinutes(0,0,0),t}function kEe(){return kEe=Object.assign?Object.assign.bind():function(e){for(var t=1;tvoid 0===e?new Date:null===e?null:new Date(e),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=e=>e,this.toJsDate=e=>e,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,this.longFormatters[t])(e,this.locale.formatLong):e})).join(""),this.formatNumber=e=>e,this.getDayOfWeek=e=>e.getDay()+1;const{locale:t,formats:n,longFormatters:r,lib:i}=e;this.locale=t,this.formats=kEe({},_Ee,n),this.longFormatters=r,this.lib=i||"date-fns"}}class PEe extends SEe{constructor({locale:e,formats:t}={}){super({locale:e??Uo,formats:t,longFormatters:ga}),this.parse=(e,t)=>""===e?null:ls(e,t,new Date,{locale:this.locale}),this.isValid=e=>null!=e&&xa(e),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>Ta(e,t,{locale:this.locale}),this.isEqual=(e,t)=>{return null===e&&null===t||null!==e&&null!==t&&(n=t,+Go(e)==+Go(n));var n},this.isSameYear=(e,t)=>function(e,t){const n=Go(e),r=Go(t);return n.getFullYear()===r.getFullYear()}(e,t),this.isSameMonth=(e,t)=>function(e,t){const n=Go(e),r=Go(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t),this.isSameDay=(e,t)=>{return n=t,+Ho(e)==+Ho(n);var n},this.isSameHour=(e,t)=>{return n=t,+wEe(e)==+wEe(n);var n},this.isAfter=(e,t)=>yEe(e,t),this.isAfterYear=(e,t)=>yEe(e,vEe(t)),this.isAfterDay=(e,t)=>yEe(e,gEe(t)),this.isBefore=(e,t)=>bEe(e,t),this.isBeforeYear=(e,t)=>bEe(e,this.startOfYear(t)),this.isBeforeDay=(e,t)=>bEe(e,this.startOfDay(t)),this.isWithinRange=(e,[t,n])=>function(e,t){const n=+Go(e),[r,i]=[+Go(t.start),+Go(t.end)].sort(((e,t)=>e-t));return n>=r&&n<=i}(e,{start:t,end:n}),this.startOfYear=e=>ea(e),this.startOfMonth=e=>function(e){const t=Go(e);return t.setDate(1),t.setHours(0,0,0,0),t}(e),this.startOfWeek=e=>na(e,{locale:this.locale}),this.startOfDay=e=>Ho(e),this.endOfYear=e=>vEe(e),this.endOfMonth=e=>function(e){const t=Go(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(e),this.endOfWeek=e=>function(e,t){const n=qo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Go(e),o=i.getDay(),a=6+(ogEe(e),this.addYears=(e,t)=>function(e,t){return mEe(e,12*t)}(e,t),this.addMonths=(e,t)=>mEe(e,t),this.addWeeks=(e,t)=>function(e,t){return Ka(e,7*t)}(e,t),this.addDays=(e,t)=>Ka(e,t),this.addHours=(e,t)=>function(e,t){return hEe(e,t*Zo)}(e,t),this.addMinutes=(e,t)=>pEe(e,t),this.addSeconds=(e,t)=>function(e,t){return hEe(e,1e3*t)}(e,t),this.getYear=e=>Go(e).getFullYear(),this.getMonth=e=>Go(e).getMonth(),this.getDate=e=>Go(e).getDate(),this.getHours=e=>Go(e).getHours(),this.getMinutes=e=>Go(e).getMinutes(),this.getSeconds=e=>Go(e).getSeconds(),this.getMilliseconds=e=>Go(e).getMilliseconds(),this.setYear=(e,t)=>function(e,t){const n=Go(e);return isNaN(+n)?Jo(e,NaN):(n.setFullYear(t),n)}(e,t),this.setMonth=(e,t)=>function(e,t){const n=Go(e),r=n.getFullYear(),i=n.getDate(),o=Jo(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const a=OEe(o);return n.setMonth(t,Math.min(i,a)),n}(e,t),this.setDate=(e,t)=>function(e,t){const n=Go(e);return n.setDate(t),n}(e,t),this.setHours=(e,t)=>function(e,t){const n=Go(e);return n.setHours(t),n}(e,t),this.setMinutes=(e,t)=>function(e,t){const n=Go(e);return n.setMinutes(t),n}(e,t),this.setSeconds=(e,t)=>function(e,t){const n=Go(e);return n.setSeconds(t),n}(e,t),this.setMilliseconds=(e,t)=>function(e,t){const n=Go(e);return n.setMilliseconds(t),n}(e,t),this.getDaysInMonth=e=>OEe(e),this.getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,i=t;const o=[];for(;this.isBefore(i,n);){const e=Math.floor(r/7);o[e]=o[e]||[],o[e].push(i),i=this.addDays(i,1),r+=1}return o},this.getWeekNumber=e=>sa(e,{locale:this.locale}),this.getYearRange=([e,t])=>{const n=this.startOfYear(e),r=this.endOfYear(t),i=[];let o=n;for(;this.isBefore(o,r);)i.push(o),o=this.addYears(o,1);return i}}}function EEe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function CEe({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let i=Jq(n);return r&&(i=i[r]||i),A2({theme:i,name:t,props:e})}({props:e,name:t,defaultTheme:wq,themeId:kq})}const TEe=Kye().oneOfType([Kye().func,Kye().object]),$Ee=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),QEe=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(null!=e)o=e;else if(i.includes(t))o=t;else{if(!(i.length>0))throw new Error("MUI X: The `views` prop must contain at least one view.");o=i[0]}return{views:i,openTo:o}},REe=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},AEe=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=REe(a,a.date(void 0,s),e);n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,i)&&(u=i,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,i)&&(c=null),u){if(!o(u))return u;u=a.addDays(u,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},jEe=(e,t,n)=>null!=t&&e.isValid(t)?t:n,DEe=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},MEe=(e,t,n)=>"date"===n?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),IEe=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},zEe=["year","month","day"],WEe=e=>zEe.includes(e),NEe=(e,{format:t,views:n},r)=>{if(null!=t)return t;const i=e.formats;return $Ee(n,["year"])?i.year:$Ee(n,["month"])?i.month:$Ee(n,["day"])?i.dayOfMonth:$Ee(n,["month","year"])?`${i.month} ${i.year}`:$Ee(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},LEe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))},FEe=["hours","minutes","seconds"],UEe=e=>FEe.includes(e),XEe=e=>FEe.includes(e)||"meridiem"===e,qEe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,BEe=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?"am"===t?e-12:e+12:e,VEe=(e,t,n,r)=>{const i=BEe(r.getHours(e),t,n);return r.setHours(e,i)},YEe=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),ZEe=(e,t)=>(n,r)=>e?t.isAfter(n,r):YEe(n,t)>YEe(r,t),GEe=(e,{format:t,views:n,ampm:r})=>{if(null!=t)return t;const i=e.formats;return $Ee(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:$Ee(n,["minutes"])?i.minutes:$Ee(n,["seconds"])?i.seconds:$Ee(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:$Ee(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},HEe={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},KEe=(e,t,n)=>{if(t===HEe.year)return e.startOfYear(n);if(t===HEe.month)return e.startOfMonth(n);if(t===HEe.day)return e.startOfDay(n);let r=n;return t{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},eCe=(e,t)=>{const n=[],r=e.date(void 0,"default"),i=e.startOfWeek(r),o=e.endOfWeek(r);let a=i;for(;e.isBefore(a,o);)n.push(a),a=e.addDays(a,1);return n.map((n=>e.formatByString(n,t)))},tCe=(e,t,n,r)=>{switch(n){case"month":return DEe(e,e.date(void 0,t)).map((t=>e.formatByString(t,r)));case"weekDay":return eCe(e,r);case"meridiem":{const n=e.date(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},nCe=["0","1","2","3","4","5","6","7","8","9"],rCe=(e,t)=>{if("0"===t[0])return e;const n=[];let r="";for(let i=0;i-1&&(n.push(o.toString()),r="")}return n.join("")},iCe=(e,t)=>"0"===t[0]?e:e.split("").map((e=>t[Number(e)])).join(""),oCe=(e,t)=>{const n=rCe(e,t);return" "!==n&&!Number.isNaN(Number(n))},aCe=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if("day"===i.type&&"digit-with-letter"===i.contentType){const r=e.setDate(n.longestMonth,t);return e.formatByString(r,i.format)}let o=t.toString();return i.hasLeadingZerosInInput&&(o=aCe(o,i.maxLength)),iCe(o,r)},lCe=(e,t,n)=>{let r=e.value||e.placeholder;const i="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(rCe(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!i&&1===r.length&&(r=`${r}‎`),"input-rtl"===t&&(r=`⁨${r}⁩`),r},uCe=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),cCe=(e,t)=>4===e.formatByString(e.date(void 0,"system"),t).length,dCe=(e,t,n,r)=>{if("digit"!==t)return!1;const i=e.date(void 0,"default");switch(n){case"year":return cCe(e,r)?"0001"===e.formatByString(e.setYear(i,1),r):"01"===e.formatByString(e.setYear(i,2001),r);case"month":return e.formatByString(e.startOfYear(i),r).length>1;case"day":return e.formatByString(e.startOfMonth(i),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),r).length>1;case"hours":return e.formatByString(e.setHours(i,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),r).length>1;default:throw new Error("Invalid section type")}},fCe={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},hCe=(e,t,n,r,i)=>[...n].sort(((e,t)=>fCe[e.type]-fCe[t.type])).reduce(((n,r)=>!i||r.modified?((e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const r=eCe(e,t.format),i=e.formatByString(n,t.format),o=r.indexOf(i),a=r.indexOf(t.value)-o;return e.addDays(n,a)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const t=e.getHours(n)<12,i=e.getHours(r);return t&&i>=12?e.addHours(r,-12):!t&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}})(e,r,t,n):n),r),pCe=(e,t)=>{if(null==e)return null;if("all"===e)return"all";if("string"==typeof e){const n=t.findIndex((t=>t.type===e));return-1===n?null:n}return e},mCe=(e,t)=>{if(e.value)switch(e.type){case"month":{if("digit"===e.contentType)return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return"digit"===e.contentType?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;default:return}},gCe=(e,t)=>{if(e.value)switch(e.type){case"weekDay":if("letter"===e.contentType)return;return Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return"digit-with-letter"===e.contentType?parseInt(e.value,10):Number(e.value);case"month":{if("digit"===e.contentType)return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return"letter"!==e.contentType?Number(e.value):void 0}},vCe=["value","referenceDate"],OCe={emptyValue:null,getTodayValue:MEe,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=EEe(e,vCe);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(({props:e,utils:t,granularity:n,timezone:r,getTodayDate:i})=>{let o=i?i():KEe(t,n,MEe(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,o)&&(o=KEe(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,o)&&(o=KEe(t,n,e.maxDate));const a=ZEe(e.disableIgnoringDatePartForTimeValidation??!1,t);return null!=e.minTime&&a(e.minTime,o)&&(o=KEe(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:REe(t,o,e.minTime))),null!=e.maxTime&&a(o,e.maxTime)&&(o=KEe(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:REe(t,o,e.maxTime))),o})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},yCe={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:e=>e.map((e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`)).join(""),getV6InputValueFromSections:(e,t,n)=>{const r=e.map((e=>{const r=lCe(e,n?"input-rtl":"input-ltr",t);return`${e.startSeparator}${r}${e.endSeparator}`})).join("");return n?`⁦${r}⁩`:r},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},bCe=["localeText"],wCe=c.createContext(null),kCe=function(e){const{localeText:t}=e,n=EEe(e,bCe),{utils:r,localeText:i}=c.useContext(wCe)??{utils:void 0,localeText:void 0},o=CEe({props:n,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:s,dateFormats:l,dateLibInstance:u,adapterLocale:d,localeText:f}=o,h=c.useMemo((()=>kEe({},f,i,t)),[f,i,t]),p=c.useMemo((()=>{if(!s)return r||null;const e=new s({locale:d,formats:l,instance:u});if(!e.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[s,d,l,u,r]),m=c.useMemo((()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null),[p]),g=c.useMemo((()=>({utils:p,defaultDates:m,localeText:h})),[m,p,h]);return(0,lM.jsx)(wCe.Provider,{value:g,children:a})},xCe=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:i}=e;return e=>{const o=null!==e&&t.isValid(e)?t.format(e,n):null;return(i??r)(e,t,o)}},_Ce={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${r||null!==t&&n.isValid(t)?`Selected time is ${r??n.format(t,"fullTime")}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},SCe=_Ce;kEe({},_Ce);const PCe=()=>{const e=c.useContext(wCe);if(null===e)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=c.useMemo((()=>kEe({},SCe,e.localeText)),[e.localeText]);return c.useMemo((()=>kEe({},e,{localeText:t})),[e,t])},ECe=()=>PCe().utils,CCe=()=>PCe().defaultDates,TCe=e=>{const t=ECe(),n=c.useRef();return void 0===n.current&&(n.current=t.date(void 0,e)),n.current};const $Ce=function({styles:e,themeId:t,defaultTheme:n={}}){const r=Jq(n),i="function"==typeof e?e(t&&r[t]||r):e;return(0,lM.jsx)(qG,{styles:i})},QCe=function(e){return(0,lM.jsx)($Ce,{...e,defaultTheme:wq,themeId:kq})};function RCe(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function ACe(e){return cB("MuiTypography",e)}dB("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jCe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},DCe=function(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??iX;return Object.keys(e).forEach((r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]})),t})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return nU(n)?{...r,...n}:r}:{...r,...t},{...i,sx:o}},MCe=Pq("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${LB(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Cq((({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter((([e,t])=>"inherit"!==e&&t&&"object"==typeof t)).map((([e,t])=>({props:{variant:e},style:t}))),...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette?.text||{}).filter((([,e])=>"string"==typeof e)).map((([t])=>({props:{color:`text${LB(t)}`},style:{color:(e.vars||e).palette.text[t]}}))),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]})))),ICe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zCe=c.forwardRef((function(e,t){const{color:n,...r}=Rq({props:e,name:"MuiTypography"}),i=DCe({...r,...!jCe[n]&&{color:n}}),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=ICe,...h}=i,p={...i,align:o,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f},m=s||(c?"p":f[d]||ICe[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return qN({root:["root",o,"inherit"!==e.align&&`align${LB(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},ACe,a)})(p);return(0,lM.jsx)(MCe,{as:m,ref:t,className:XN(g.root,a),...h,ownerState:p,style:{..."inherit"!==o&&{"--Typography-textAlign":o},...h.style}})})),WCe=zCe;function NCe(e){return cB("MuiPickersToolbar",e)}const LCe=dB("MuiPickersToolbar",["root","content"]),FCe=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],UCe=Pq("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]}))),XCe=Pq("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),qCe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:o,hidden:a,titleId:s}=n,l=EEe(n,FCe),u=n,c=(e=>{const{classes:t}=e;return qN({root:["root"],content:["content"]},NCe,t)})(u);return a?null:(0,lM.jsxs)(UCe,kEe({ref:t,className:XN(c.root,i),ownerState:u},l,{children:[(0,lM.jsx)(WCe,{color:"text.secondary",variant:"overline",id:s,children:o}),(0,lM.jsx)(XCe,{className:c.content,ownerState:u,children:r})]}))})),BCe=()=>PCe().localeText;function VCe(e){return cB("MuiDatePickerToolbar",e)}dB("MuiDatePickerToolbar",["root","title"]);const YCe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],ZCe=Pq(qCe,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GCe=Pq(WCe,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),HCe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:o,toolbarPlaceholder:a="––",views:s,className:l}=n,u=EEe(n,YCe),d=ECe(),f=BCe(),h=(e=>{const{classes:t}=e;return qN({root:["root"],title:["title"]},VCe,t)})(n),p=c.useMemo((()=>{if(!r)return a;const e=NEe(d,{format:o,views:s},!0);return d.formatByString(r,e)}),[r,o,a,d,s]),m=n;return(0,lM.jsx)(ZCe,kEe({ref:t,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:XN(h.root,l)},u,{children:(0,lM.jsx)(GCe,{variant:"h4",align:i?"left":"center",ownerState:m,className:h.title,children:p})}))}));function KCe(e,t){const n=ECe(),r=CCe(),i=CEe({props:e,name:t}),o=c.useMemo((()=>null==i.localeText?.toolbarTitle?i.localeText:kEe({},i.localeText,{datePickerToolbarTitle:i.localeText.toolbarTitle})),[i.localeText]);return kEe({},i,{localeText:o},QEe({views:i.views,openTo:i.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:jEe(n,i.minDate,r.minDate),maxDate:jEe(n,i.maxDate,r.maxDate),slots:kEe({toolbar:HCe},i.slots)})}const JCe=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],eTe=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],tTe=["minDateTime","maxDateTime"],nTe=[...JCe,...eTe,...tTe],rTe=e=>nTe.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),iTe=({props:e,value:t,timezone:n,adapter:r})=>{if(null===t)return null;const{shouldDisableDate:i,shouldDisableMonth:o,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,u=r.utils.date(void 0,n),c=jEe(r.utils,e.minDate,r.defaultDates.minDate),d=jEe(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case Boolean(i&&i(t)):return"shouldDisableDate";case Boolean(o&&o(t)):return"shouldDisableMonth";case Boolean(a&&a(t)):return"shouldDisableYear";case Boolean(l&&r.utils.isAfterDay(t,u)):return"disableFuture";case Boolean(s&&r.utils.isBeforeDay(t,u)):return"disablePast";case Boolean(c&&r.utils.isBeforeDay(t,c)):return"minDate";case Boolean(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};iTe.valueManager=OCe;const oTe=c.createContext(void 0);function aTe(){return c.useContext(oTe)}function sTe(e){return cB("MuiInputAdornment",e)}const lTe=dB("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var uTe;const cTe=Pq("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${LB(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Cq((({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${lTe.positionStart}&:not(.${lTe.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]})))),dTe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiInputAdornment"}),{children:r,className:i,component:o="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:u,...d}=n,f=aTe()||{};let h=u;u&&f.variant,f&&!h&&(h=f.variant);const p={...n,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:l,variant:h},m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e;return qN({root:["root",n&&"disablePointerEvents",i&&`position${LB(i)}`,a,r&&"hiddenLabel",o&&`size${LB(o)}`]},sTe,t)})(p);return(0,lM.jsx)(oTe.Provider,{value:null,children:(0,lM.jsx)(cTe,{as:o,ownerState:p,className:XN(m.root,i),ref:t,...d,children:"string"!=typeof r||s?(0,lM.jsxs)(c.Fragment,{children:["start"===l?uTe||(uTe=(0,lM.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]}):(0,lM.jsx)(WCe,{color:"textSecondary",children:r})})})})),fTe=dTe;class hTe{static create(){return new hTe}static use(){const e=c3(hTe.create).current,[t,n]=c.useState(!1);return e.shouldMount=t,e.setShouldMount=n,c.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}function pTe(e,t){var n=Object.create(null);return e&&c.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,c.isValidElement)(e)?t(e):e}(e)})),n}function mTe(e,t,n){return null!=n[t]?n[t]:e.props[t]}function gTe(e,t,n){var r=pTe(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;rthis.api.listFiles(e,{repoURL:r,depth:n}).then((e=>{const n=e.filter((e=>U_(e,t))),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),Ate);return o[D_]=i,o}async allEntriesByFolder(e,t,n){const r=this.api.originRepoURL,i=await DS((()=>this.api.listFiles(e,{repoURL:r,depth:n}).then((e=>e.filter((e=>U_(e,t)))))),((e,t)=>this.api.readFile(e,t,{repoURL:r})),this.api.readFileMetadata.bind(this.api),Ate);return i}entriesByFiles(e){const t=this.api.repoURL;return MS(e,((e,n)=>this.api.readFile(e,n,{repoURL:t}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),Ate)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then((t=>({file:{path:e,id:null},data:t}))).catch((()=>({file:{path:e,id:null},data:""})))}async getMedia(e=this.mediaFolder,t){return e?this.api.listFiles(e,void 0,t).then((e=>e.map((({id:e,name:t,size:n,path:r,type:i})=>({id:e,name:t,size:n,displayURL:{id:e,path:r},path:r,isDirectory:"tree"===i}))))):[]}async getMediaFile(e){const t=await WS(e,null,this.api.readFile.bind(this.api)),n=ES(e),r=zS(n,t),i=URL.createObjectURL(r);return{id:await K_(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||zx()(10),NS(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return LS(this.lock,(()=>this.api.persistFiles(e.dataFiles,e.assets,t)),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:i}=e,o=URL.createObjectURL(i);return{id:n,name:i.name,size:i.size,displayURL:o,path:$j()(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){var n,r;const i=e.meta,o=null!==(n=null===(r=e.data)||void 0===r?void 0:r.files)&&void 0!==n?n:[];let a;switch(t){case"first":default:a=this.getCursorAndFiles(o,1);break;case"last":var s;a=this.getCursorAndFiles(o,null!==(s=null==i?void 0:i.pageCount)&&void 0!==s?s:1);break;case"next":var l;a=this.getCursorAndFiles(o,(null!==(l=null==i?void 0:i.page)&&void 0!==l?l:1)+1);break;case"prev":var u;a=this.getCursorAndFiles(o,(null!==(u=null==i?void 0:i.page)&&void 0!==u?u:1)-1)}const c=await MS(a.files,((e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch((()=>""))),this.api.readFileMetadata.bind(this.api),Ate);return{entries:c,cursor:a.cursor}}async unpublishedEntries(){throw new Error("Editorial workflow is not yet available for Gitea")}async unpublishedEntry(){throw new Error("Editorial workflow is not yet available for Gitea")}async unpublishedEntryDataFile(){throw new Error("Editorial workflow is not yet available for Gitea")}async unpublishedEntryMediaFile(){throw new Error("Editorial workflow is not yet available for Gitea")}async updateUnpublishedEntryStatus(){throw new Error("Editorial workflow is not yet available for Gitea")}async publishUnpublishedEntry(){throw new Error("Editorial workflow is not yet available for Gitea")}async deleteUnpublishedEntry(){throw new Error("Editorial workflow is not yet available for Gitea")}async getDeployPreview(){throw new Error("Editorial workflow is not yet available for Gitea")}}const Fte=({inProgress:e=!1,onLogin:t})=>{const n=(0,c.useCallback)((e=>{e.preventDefault(),t({token:"fake_token"})}),[t]);return c.createElement(p8,{login:n,inProgress:e})};function Ute(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xte(e){for(var t=1;t!e.isDirectory));return i.map((({url:e,path:t,isDirectory:n})=>{const r=e;return{id:r,name:ES(t),displayURL:{id:r,path:e},path:t,isDirectory:n}}))}async getMediaFile(e){return Vte(await this.request({action:"getMediaFile",params:{branch:this.branch,path:e}}))}getMediaDisplayURL(e){return"string"==typeof e?Promise.resolve(e):Promise.resolve(e.path)}async persistMedia(e,t){const n=await Bte(e);return Vte(await this.request({action:"persistMedia",params:{branch:this.branch,asset:n,options:{commitMessage:t.commitMessage}}}))}deleteFiles(e,t){return this.request({action:"deleteFiles",params:{branch:this.branch,paths:e,options:{commitMessage:t}}})}traverseCursor(){throw new Error("Not supported")}allEntriesByFolder(e,t,n){return this.entriesByFolder(e,t,n)}unpublishedEntries(){return this.request({action:"unpublishedEntries",params:{branch:this.branch}})}async unpublishedEntry({id:e,collection:t,slug:n}){try{return await this.request({action:"unpublishedEntry",params:{branch:this.branch,id:e,collection:t,slug:n,cmsLabelPrefix:this.cmsLabelPrefix}})}catch(e){if(404===e.status)throw new z_("content is not under editorial workflow",!0);throw e}}async unpublishedEntryDataFile(e,t,n,r){const{data:i}=await this.request({action:"unpublishedEntryDataFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}});return i}async unpublishedEntryMediaFile(e,t,n,r){return Vte(await this.request({action:"unpublishedEntryMediaFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}}))}updateUnpublishedEntryStatus(e,t,n){return this.request({action:"updateUnpublishedEntryStatus",params:{branch:this.branch,collection:e,slug:t,newStatus:n,cmsLabelPrefix:this.cmsLabelPrefix}})}publishUnpublishedEntry(e,t){return this.request({action:"publishUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}deleteUnpublishedEntry(e,t){return this.request({action:"deleteUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}getDeployPreview(e,t){return this.request({action:"getDeployPreview",params:{branch:this.branch,collection:e,slug:t}})}}var Zte=__webpack_require__(82675),Gte=__webpack_require__.n(Zte),Hte=__webpack_require__(10127),Kte=__webpack_require__.n(Hte);const Jte=({inProgress:e=!1,config:t,onLogin:n})=>{(0,c.useEffect)((()=>{!1===t.backend.login&&n({token:"fake_token"})}),[t.backend.login,n]);const r=(0,c.useCallback)((e=>{e.preventDefault(),n({token:"fake_token"})}),[n]);return c.createElement(p8,{login:r,inProgress:e})};function ene(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tne(e){for(var t=1;t1;){const e=r.shift();i[e]=i[e]||{},i=i[e]}i[r.shift()]={content:t,path:e}}function one(e,t){Kte()(t,e.split("/"))}window.repoFiles=window.repoFiles||{},window.repoFilesUnpublished=window.repoFilesUnpublished||[];const ane=10;function sne(e,t,n,r,i){const o=n.length,a=Math.floor(o/ane);return j_.create({actions:[...r0?["prev","first"]:[]],meta:{index:r,count:o,pageSize:ane,pageCount:a},data:{folder:e,extension:t,index:r,pageCount:a,depth:i}})}function lne(e,t,n,r,i=[],o=t,a){return r<=0||(a&&i.unshift({isDirectory:!0,content:"",path:o}),Object.keys(e[t]||{}).forEach((s=>{const l=s.split(".");if(!Ne(l.length>1?l[l.length-1]:""))return lne(e[t],s,n,r-1,i,`${o}/${s}`,a);{const r=e[t][s];n&&!s.endsWith(`.${n}`)||i.unshift({content:r.content,path:`${o}/${s}`})}}))),i}class une{constructor(e,t={}){nne(this,"mediaFolder",void 0),nne(this,"options",void 0),this.options=t,this.mediaFolder=e.media_folder}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return Jte}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}traverseCursor(e,t){const{folder:n,extension:r,index:i,pageCount:o,depth:a}=e.data,s="next"===t?i+1:"prev"===t?i-1:"first"===t?0:"last"===t?o:0,l=lne(window.repoFiles,n,r,a).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),u=l.slice(s*ane,s*ane+ane),c=sne(n,r,l,s,a);return Promise.resolve({entries:u,cursor:c})}entriesByFolder(e,t,n){const r=(e?lne(window.repoFiles,e,t,n):[]).map((e=>({data:e.content,file:{path:e.path,id:e.path}}))),i=sne(e,t,r,0,n),o=Gte()(r,ane);return o[D_]=i,Promise.resolve(o)}entriesByFiles(e){return Promise.all(e.map((e=>{var t,n;return{file:e,data:null!==(t=null===(n=rne(e.path,window.repoFiles))||void 0===n?void 0:n.content)&&void 0!==t?t:""}})))}getEntry(e){var t,n;return Promise.resolve({file:{path:e,id:null},data:null!==(t=null===(n=rne(e,window.repoFiles))||void 0===n?void 0:n.content)&&void 0!==t?t:""})}async persistEntry(e,t){if(t.useWorkflow){const n=e.dataFiles[0].slug,r=`${t.collectionName}/${n}`,i=window.repoFilesUnpublished[r],o=(null==i?void 0:i.status)||t.status||this.options.initialWorkflowStatus;return this.addOrUpdateUnpublishedEntry(r,e.dataFiles,e.assets,n,t.collectionName,o),Promise.resolve()}return e.dataFiles.forEach((e=>{const{path:t,newPath:n,raw:r}=e;n?(one(t,window.repoFiles),ine(n,r,window.repoFiles)):ine(t,r,window.repoFiles)})),e.assets.forEach((e=>{ine(e.path,e,window.repoFiles)})),Promise.resolve()}async getMedia(e=this.mediaFolder,t){if(!e)return[];const n=lne(window.repoFiles,go()(e,"/").split("/")[0],"",100,void 0,void 0,t).filter((t=>(0,Re.dirname)(t.path)===go()(e,"/")));return n.map((e=>{var t;return{name:(0,Re.basename)(e.path),id:e.path,path:e.path,displayURL:e.path,isDirectory:null!==(t=e.isDirectory)&&void 0!==t&&t}}))}async getMediaFile(e){return{id:e,displayURL:e,path:e,name:(0,Re.basename)(e),size:1,url:e}}normalizeAsset(e){const t=e.fileObj,{name:n,size:r}=t,i=xe()(window.URL.createObjectURL,t),o=Te()(i)?"":i;return{id:PA(),name:n,size:r,path:e.path,url:o,displayURL:o,file:t}}persistMedia(e){const t=this.normalizeAsset(e);return ine(e.path,e,window.repoFiles),Promise.resolve(t)}deleteFiles(e){return e.forEach((e=>{one(e,window.repoFiles)})),Promise.resolve()}async allEntriesByFolder(e,t,n){const r=(e?lne(window.repoFiles,e,t,n):[]).map((e=>({data:e.content,file:{path:e.path,id:e.path}})));return Promise.resolve(r)}getMediaDisplayURL(e){throw new Error("Not supported")}unpublishedEntries(){return Promise.resolve(Object.keys(window.repoFilesUnpublished))}unpublishedEntry({id:e,collection:t,slug:n}){if(e){const r=e.split("/");t=r[0],n=r[1]}const r=window.repoFilesUnpublished[`${t}/${n}`];return r?Promise.resolve(tne(tne({},r),{},{openAuthoring:!1})):Promise.reject(new z_("content is not under editorial workflow",!0))}async unpublishedEntryDataFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return null==r?void 0:r.content}async unpublishedEntryMediaFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find((e=>e.path===n));return this.normalizeAsset(null==r?void 0:r.content)}deleteUnpublishedEntry(e,t){return delete window.repoFilesUnpublished[`${e}/${t}`],Promise.resolve()}async addOrUpdateUnpublishedEntry(e,t,n,r,i,o){const a=[];t.forEach((t=>{var n;const{path:r,newPath:i,raw:o}=t,s=null===(n=window.repoFilesUnpublished[e])||void 0===n?void 0:n.diffs.find((e=>e.path===r)),l=s?s.originalPath:r;a.push({originalPath:l,id:i||r,path:i||r,newFile:ze(rne(l,window.repoFiles)),status:"added",content:o})})),n.forEach((e=>{const t=this.normalizeAsset(e);a.push({id:t.id,path:t.path,newFile:!0,status:"added",content:new WD(t)})})),window.repoFilesUnpublished[e]={slug:r,collection:i,status:o,diffs:a,updatedAt:(new Date).toISOString()}}updateUnpublishedEntryStatus(e,t,n){return window.repoFilesUnpublished[`${e}/${t}`].status=n,Promise.resolve()}publishUnpublishedEntry(e,t){const n=`${e}/${t}`,r=window.repoFilesUnpublished[n];delete window.repoFilesUnpublished[n];const i=window.repoFiles;return r.diffs.forEach((e=>{if(e.originalPath&&!e.newFile){const t=e.originalPath,n=(0,Re.dirname)(t),r=(0,Re.dirname)(e.path),o=lne(i,t.split("/")[0],"",100).filter((e=>e.path.startsWith(n)));o.forEach((e=>{one(e.path,i),ine(e.path.replace(n,r),e.content,i)}))}ine(e.path,e.content,i)})),Promise.resolve()}async getDeployPreview(){return null}}var cne=__webpack_require__(70497),dne=__webpack_require__.n(cne),fne=__webpack_require__(75674),hne=__webpack_require__(5090),pne=__webpack_require__(50646),mne=__webpack_require__(96553),gne=__webpack_require__(22663),vne=(__webpack_require__(90807),__webpack_require__(15915)),One=(__webpack_require__(62085),__webpack_require__(18390).Buffer),yne=__webpack_require__(48494);class bne extends Error{constructor(e){super(e),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(e){const t=new bne(e.message);return t.code=e.code,t.data=e.data,t.caller=e.caller,t.stack=e.stack,t}get isIsomorphicGitError(){return!0}}class wne extends bne{constructor(e){super(`Modifying the index is not possible because you have unmerged files: ${e.toString}. Fix them up in the work tree, and then use 'git add/rm as appropriate to mark resolution and make a commit.`),this.code=this.name=wne.code,this.data={filepaths:e}}}wne.code="UnmergedPathsError";class kne extends bne{constructor(e){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${e}`),this.code=this.name=kne.code,this.data={message:e}}}kne.code="InternalError";class xne extends bne{constructor(e){super(`The filepath "${e}" contains unsafe character sequences`),this.code=this.name=xne.code,this.data={filepath:e}}}xne.code="UnsafeFilepathError";class _ne{constructor(e){this.buffer=e,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(e){this._start=e}slice(e){const t=this.buffer.slice(this._start,this._start+e);return this._start+=e,t}toString(e,t){const n=this.buffer.toString(e,this._start,this._start+t);return this._start+=t,n}write(e,t,n){const r=this.buffer.write(e,this._start,t,n);return this._start+=t,r}copy(e,t,n){const r=e.copy(this.buffer,this._start,t,n);return this._start+=r,r}readUInt8(){const e=this.buffer.readUInt8(this._start);return this._start+=1,e}writeUInt8(e){const t=this.buffer.writeUInt8(e,this._start);return this._start+=1,t}readUInt16BE(){const e=this.buffer.readUInt16BE(this._start);return this._start+=2,e}writeUInt16BE(e){const t=this.buffer.writeUInt16BE(e,this._start);return this._start+=2,t}readUInt32BE(){const e=this.buffer.readUInt32BE(this._start);return this._start+=4,e}writeUInt32BE(e){const t=this.buffer.writeUInt32BE(e,this._start);return this._start+=4,t}}function Sne(e,t){return-(et)}function Pne(e,t){return Sne(e.path,t.path)}function Ene(e){let t=e>0?e>>12:0;4!==t&&8!==t&&10!==t&&14!==t&&(t=8);let n=511&e;return n=73&n?493:420,8!==t&&(n=0),(t<<12)+n}const Cne=2**32;function Tne(e,t,n,r){if(void 0!==e&&void 0!==t)return[e,t];void 0===n&&(n=r.valueOf());const i=Math.floor(n/1e3);return[i,1e6*(n-1e3*i)]}function $ne(e){const[t,n]=Tne(e.ctimeSeconds,e.ctimeNanoseconds,e.ctimeMs,e.ctime),[r,i]=Tne(e.mtimeSeconds,e.mtimeNanoseconds,e.mtimeMs,e.mtime);return{ctimeSeconds:t%Cne,ctimeNanoseconds:n%Cne,mtimeSeconds:r%Cne,mtimeNanoseconds:i%Cne,dev:e.dev%Cne,ino:e.ino%Cne,mode:Ene(e.mode%Cne),uid:e.uid%Cne,gid:e.gid%Cne,size:e.size>-1?e.size%Cne:0}}let Qne=null;async function Rne(e){return null===Qne&&(Qne=await async function(){try{if("da39a3ee5e6b4b0d3255bfef95601890afd80709"===await Ane(new Uint8Array([])))return!0}catch(e){}return!1}()),Qne?Ane(e):function(e){return(new hne).update(e).digest("hex")}(e)}async function Ane(e){return function(e){let t="";for(const n of new Uint8Array(e))n<16&&(t+="0"),t+=n.toString(16);return t}(await crypto.subtle.digest("SHA-1",e))}class jne{constructor(e,t){this._dirty=!1,this._unmergedPaths=t||new Set,this._entries=e||new Map}_addEntry(e){if(0===e.flags.stage)e.stages=[e],this._entries.set(e.path,e),this._unmergedPaths.delete(e.path);else{let t=this._entries.get(e.path);t||(this._entries.set(e.path,e),t=e),t.stages[e.flags.stage]=e,this._unmergedPaths.add(e.path)}}static async from(e){if(One.isBuffer(e))return jne.fromBuffer(e);if(null===e)return new jne(null);throw new kne("invalid type passed to GitIndex.from")}static async fromBuffer(e){if(0===e.length)throw new kne("Index file is empty (.git/index)");const t=new jne,n=new _ne(e),r=n.toString("utf8",4);if("DIRC"!==r)throw new kne(`Invalid dircache magic file number: ${r}`);const i=await Rne(e.slice(0,-20)),o=e.slice(-20).toString("hex");if(o!==i)throw new kne(`Invalid checksum in GitIndex buffer: expected ${o} but saw ${i}`);const a=n.readUInt32BE();if(2!==a)throw new kne(`Unsupported dircache version: ${a}`);const s=n.readUInt32BE();let l=0;for(;!n.eof()&&l>12,nameLength:4095&u});const o=e.indexOf(0,n.tell()+1)-n.tell();if(o<1)throw new kne(`Got a path length of: ${o}`);if(r.path=n.toString("utf8",o),r.path.includes("..\\")||r.path.includes("../"))throw new xne(r.path);let a=8-(n.tell()-12)%8;for(0===a&&(a=8);a--;){const e=n.readUInt8();if(0!==e)throw new kne(`Expected 1-8 null characters but got '${e}' after ${r.path}`);if(n.eof())throw new kne("Unexpected end of file")}r.stages=[],t._addEntry(r),l++}var u;return t}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(Pne)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap((e=>e.stages.length>1?e.stages.filter((e=>e)):e))}*[Symbol.iterator](){for(const e of this.entries)yield e}insert({filepath:e,stats:t,oid:n,stage:r=0}){t||(t={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),t=$ne(t);const i=One.from(e),o={ctimeSeconds:t.ctimeSeconds,ctimeNanoseconds:t.ctimeNanoseconds,mtimeSeconds:t.mtimeSeconds,mtimeNanoseconds:t.mtimeNanoseconds,dev:t.dev,ino:t.ino,mode:t.mode||33188,uid:t.uid,gid:t.gid,size:t.size,path:e,oid:n,flags:{assumeValid:!1,extended:!1,stage:r,nameLength:i.length<4095?i.length:4095},stages:[]};this._addEntry(o),this._dirty=!0}delete({filepath:e}){if(this._entries.has(e))this._entries.delete(e);else for(const t of this._entries.keys())t.startsWith(e+"/")&&this._entries.delete(t);this._unmergedPaths.has(e)&&this._unmergedPaths.delete(e),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:e}){return this._entries.has(e)}render(){return this.entries.map((e=>`${e.mode.toString(8)} ${e.oid} ${e.path}`)).join("\n")}static async _entryToBuffer(e){const t=One.from(e.path),n=8*Math.ceil((62+t.length+1)/8),r=One.alloc(n),i=new _ne(r),o=$ne(e);return i.writeUInt32BE(o.ctimeSeconds),i.writeUInt32BE(o.ctimeNanoseconds),i.writeUInt32BE(o.mtimeSeconds),i.writeUInt32BE(o.mtimeNanoseconds),i.writeUInt32BE(o.dev),i.writeUInt32BE(o.ino),i.writeUInt32BE(o.mode),i.writeUInt32BE(o.uid),i.writeUInt32BE(o.gid),i.writeUInt32BE(o.size),i.write(e.oid,20,"hex"),i.writeUInt16BE(function(e){const t=e.flags;return t.extended=!1,t.nameLength=Math.min(One.from(e.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((3&t.stage)<<12)+(4095&t.nameLength)}(e)),i.write(e.path,t.length,"utf8"),r}async toObject(){const e=One.alloc(12),t=new _ne(e);t.write("DIRC",4,"utf8"),t.writeUInt32BE(2),t.writeUInt32BE(this.entriesFlat.length);let n=[];for(const e of this.entries)if(n.push(jne._entryToBuffer(e)),e.stages.length>1)for(const t of e.stages)t&&t!==e&&n.push(jne._entryToBuffer(t));n=await Promise.all(n);const r=One.concat(n),i=One.concat([e,r]),o=await Rne(i);return One.concat([i,One.from(o,"hex")])}}function Dne(e,t,n=!0,r=!0){const i=$ne(e),o=$ne(t);return n&&i.mode!==o.mode||i.mtimeSeconds!==o.mtimeSeconds||i.ctimeSeconds!==o.ctimeSeconds||i.uid!==o.uid||i.gid!==o.gid||r&&i.ino!==o.ino||i.size!==o.size}let Mne=null;const Ine=Symbol("IndexCache");class zne{static async acquire({fs:e,gitdir:t,cache:n,allowUnmerged:r=!0},i){n[Ine]||(n[Ine]={map:new Map,stats:new Map});const o=`${t}/index`;let a;null===Mne&&(Mne=new fne({maxPending:1/0}));let s=[];return await Mne.acquire(o,(async()=>{await async function(e,t,n){const r=n.stats.get(t);if(void 0===r)return!0;const i=await e.lstat(t);return null!==r&&null!==i&&Dne(r,i)}(e,o,n[Ine])&&await async function(e,t,n){const r=await e.lstat(t),i=await e.read(t),o=await jne.from(i);n.map.set(t,o),n.stats.set(t,r)}(e,o,n[Ine]);const t=n[Ine].map.get(o);if(s=t.unmergedPaths,s.length&&!r)throw new wne(s);if(a=await i(t),t._dirty){const r=await t.toObject();await e.write(o,r),n[Ine].stats.set(o,await e.lstat(o)),t._dirty=!1}})),a}}function Wne(e){const t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return t>-1&&(e=e.slice(t+1)),e}function Nne(e){const t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return-1===t?".":0===t?"/":e.slice(0,t)}class Lne{constructor({fs:e,gitdir:t,cache:n}){this.treePromise=zne.acquire({fs:e,gitdir:t,cache:n},(async function(e){return function(e){const t=new Map,n=function(e){if(!t.has(e)){const r={type:"tree",fullpath:e,basename:Wne(e),metadata:{},children:[]};t.set(e,r),r.parent=n(Nne(e)),r.parent&&r.parent!==r&&r.parent.children.push(r)}return t.get(e)},r=function(e,r){if(!t.has(e)){const i={type:"blob",fullpath:e,basename:Wne(e),metadata:r,parent:n(Nne(e)),children:[]};i.parent&&i.parent.children.push(i),t.set(e,i)}return t.get(e)};n(".");for(const t of e)r(t.path,t);return t}(e.entries)}));const r=this;this.ConstructEntry=class{constructor(e){this._fullpath=e,this._type=!1,this._mode=!1,this._stat=!1,this._oid=!1}async type(){return r.type(this)}async mode(){return r.mode(this)}async stat(){return r.stat(this)}async content(){return r.content(this)}async oid(){return r.oid(this)}}}async readdir(e){const t=e._fullpath,n=(await this.treePromise).get(t);if(!n)return null;if("blob"===n.type)return null;if("tree"!==n.type)throw new Error(`ENOTDIR: not a directory, scandir '${t}'`);const r=n.children.map((e=>e.fullpath));return r.sort(Sne),r}async type(e){return!1===e._type&&await e.stat(),e._type}async mode(e){return!1===e._mode&&await e.stat(),e._mode}async stat(e){if(!1===e._stat){const t=(await this.treePromise).get(e._fullpath);if(!t)throw new Error(`ENOENT: no such file or directory, lstat '${e._fullpath}'`);const n="tree"===t.type?{}:$ne(t.metadata);e._type="tree"===t.type?"tree":function(e){switch(e){case 16384:return"tree";case 33188:case 33261:case 40960:return"blob";case 57344:return"commit"}throw new kne(`Unexpected GitTree entry mode: ${e.toString(8)}`)}(n.mode),e._mode=n.mode,"tree"===t.type?e._stat=void 0:e._stat=n}return e._stat}async content(e){}async oid(e){if(!1===e._oid){const t=(await this.treePromise).get(e._fullpath);e._oid=t.metadata.oid}return e._oid}}const Fne=Symbol("GitWalkSymbol");function Une(){const e=Object.create(null);return Object.defineProperty(e,Fne,{value:function({fs:e,gitdir:t,cache:n}){return new Lne({fs:e,gitdir:t,cache:n})}}),Object.freeze(e),e}class Xne extends bne{constructor(e){super(`Could not find ${e}.`),this.code=this.name=Xne.code,this.data={what:e}}}Xne.code="NotFoundError";class qne extends bne{constructor(e,t,n,r){super(`Object ${e} ${r?`at ${r}`:""}was anticipated to be a ${n} but it is a ${t}.`),this.code=this.name=qne.code,this.data={oid:e,actual:t,expected:n,filepath:r}}}qne.code="ObjectTypeError";class Bne extends bne{constructor(e){super(`Expected a 40-char hex object id but saw "${e}".`),this.code=this.name=Bne.code,this.data={value:e}}}Bne.code="InvalidOidError";class Vne extends bne{constructor(e){super(`Could not find a fetch refspec for remote "${e}". Make sure the config file has an entry like the following:\n[remote "${e}"]\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n`),this.code=this.name=Vne.code,this.data={remote:e}}}Vne.code="NoRefspecError";class Yne{constructor(e){if(this.refs=new Map,this.parsedConfig=[],e){let t=null;this.parsedConfig=e.trim().split("\n").map((e=>{if(/^\s*#/.test(e))return{line:e,comment:!0};const n=e.indexOf(" ");if(e.startsWith("^")){const n=e.slice(1);return this.refs.set(t+"^{}",n),{line:e,ref:t,peeled:n}}{const r=e.slice(0,n);return t=e.slice(n+1),this.refs.set(t,r),{line:e,ref:t,oid:r}}}))}return this}static from(e){return new Yne(e)}delete(e){this.parsedConfig=this.parsedConfig.filter((t=>t.ref!==e)),this.refs.delete(e)}toString(){return this.parsedConfig.map((({line:e})=>e)).join("\n")+"\n"}}class Zne{constructor({remotePath:e,localPath:t,force:n,matchPrefix:r}){Object.assign(this,{remotePath:e,localPath:t,force:n,matchPrefix:r})}static from(e){const[t,n,r,i,o]=e.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),a="+"===t,s="*"===r;if(s!==("*"===o))throw new kne("Invalid refspec");return new Zne({remotePath:n,localPath:i,force:a,matchPrefix:s})}translate(e){if(this.matchPrefix){if(e.startsWith(this.remotePath))return this.localPath+e.replace(this.remotePath,"")}else if(e===this.remotePath)return this.localPath;return null}reverseTranslate(e){if(this.matchPrefix){if(e.startsWith(this.localPath))return this.remotePath+e.replace(this.localPath,"")}else if(e===this.localPath)return this.remotePath;return null}}class Gne{constructor(e=[]){this.rules=e}static from(e){const t=[];for(const n of e)t.push(Zne.from(n));return new Gne(t)}add(e){const t=Zne.from(e);this.rules.push(t)}translate(e){const t=[];for(const n of this.rules)for(const r of e){const e=n.translate(r);e&&t.push([r,e])}return t}translateOne(e){let t=null;for(const n of this.rules){const r=n.translate(e);r&&(t=r)}return t}localNamespaces(){return this.rules.filter((e=>e.matchPrefix)).map((e=>e.localPath.replace(/\/$/,"")))}}function Hne(e,t){const n=e.replace(/\^\{\}$/,""),r=t.replace(/\^\{\}$/,""),i=-(nr);return 0===i?e.endsWith("^{}")?1:-1:i}const Kne=e=>{if("true"===(e=e.trim().toLowerCase())||"yes"===e||"on"===e)return!0;if("false"===e||"no"===e||"off"===e)return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${e}`)},Jne={core:{filemode:Kne,bare:Kne,logallrefupdates:Kne,symlinks:Kne,ignorecase:Kne,bigFileThreshold:e=>{e=e.toLowerCase();let t=parseInt(e);return e.endsWith("k")&&(t*=1024),e.endsWith("m")&&(t*=1048576),e.endsWith("g")&&(t*=1073741824),t}}},ere=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,tre=/^[A-Za-z0-9-.]+$/,nre=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,rre=/^[A-Za-z][A-Za-z-]*$/,ire=/^(.*?)( *[#;].*)$/,ore=e=>(e.match(/(?:^|[^\\])"/g)||[]).length%2!=0,are=e=>e.split("").reduce(((e,t,n,r)=>{const i='"'===t&&"\\"!==r[n-1],o="\\"===t&&'"'===r[n+1];return i||o?e:e+t}),""),sre=e=>null!=e?e.toLowerCase():null,lre=(e,t,n)=>[sre(e),t,sre(n)].filter((e=>null!=e)).join("."),ure=e=>{const t=e.split("."),n=t.shift(),r=t.pop(),i=t.length?t.join("."):void 0;return{section:n,subsection:i,name:r,path:lre(n,i,r),sectionPath:lre(n,i,null)}};class cre{constructor(e){let t=null,n=null;this.parsedConfig=e?e.split("\n").map((e=>{let r=null,i=null;const o=e.trim(),a=(e=>{const t=ere.exec(e);if(null!=t){const[e,n]=t.slice(1);return[e,n]}return null})(o),s=null!=a;if(s)[t,n]=a;else{const e=(e=>{const t=nre.exec(e);if(null!=t){const[e,n="true"]=t.slice(1),r=(e=>{const t=ire.exec(e);if(null==t)return e;const[n,r]=t.slice(1);return ore(n)&&ore(r)?`${n}${r}`:n})(n);return[e,are(r)]}return null})(o);null!=e&&([r,i]=e)}const l=lre(t,n,r);return{line:e,isSection:s,section:t,subsection:n,name:r,value:i,path:l}})):[]}static from(e){return new cre(e)}async get(e,t=!1){const n=ure(e).path,r=this.parsedConfig.filter((e=>e.path===n)).map((({section:e,name:t,value:n})=>{const r=Jne[e]&&Jne[e][t];return r?r(n):n}));return t?r:r.pop()}async getall(e){return this.get(e,!0)}async getSubsections(e){return this.parsedConfig.filter((t=>t.section===e&&t.isSection)).map((e=>e.subsection))}async deleteSection(e,t){this.parsedConfig=this.parsedConfig.filter((n=>!(n.section===e&&n.subsection===t)))}async append(e,t){return this.set(e,t,!0)}async set(e,t,n=!1){const{section:r,subsection:i,name:o,path:a,sectionPath:s}=ure(e),l=(u=this.parsedConfig,c=e=>e.path===a,u.reduce(((e,t,n)=>c(t)?n:e),-1));var u,c;if(null==t)-1!==l&&this.parsedConfig.splice(l,1);else if(-1!==l){const e=this.parsedConfig[l],r=Object.assign({},e,{name:o,value:t,modified:!0});n?this.parsedConfig.splice(l+1,0,r):this.parsedConfig[l]=r}else{const e=this.parsedConfig.findIndex((e=>e.path===s)),n={section:r,subsection:i,name:o,value:t,modified:!0,path:a};if(tre.test(r)&&rre.test(o))if(e>=0)this.parsedConfig.splice(e+1,0,n);else{const e={section:r,subsection:i,modified:!0,path:s};this.parsedConfig.push(e,n)}}}toString(){return this.parsedConfig.map((({line:e,section:t,subsection:n,name:r,value:i,modified:o=!1})=>o?null!=r&&null!=i?"string"==typeof i&&/[#;]/.test(i)?`\t${r} = "${i}"`:`\t${r} = ${i}`:null!=n?`[${t} "${n}"]`:`[${t}]`:e)).join("\n")}}class dre{static async get({fs:e,gitdir:t}){const n=await e.read(`${t}/config`,{encoding:"utf8"});return cre.from(n)}static async save({fs:e,gitdir:t,config:n}){await e.write(`${t}/config`,n.toString(),{encoding:"utf8"})}}const fre=e=>[`${e}`,`refs/${e}`,`refs/tags/${e}`,`refs/heads/${e}`,`refs/remotes/${e}`,`refs/remotes/${e}/HEAD`],hre=["config","description","index","shallow","commondir"];let pre;async function mre(e,t){return void 0===pre&&(pre=new fne),pre.acquire(e,t)}class gre{static async updateRemoteRefs({fs:e,gitdir:t,remote:n,refs:r,symrefs:i,tags:o,refspecs:a,prune:s=!1,pruneTags:l=!1}){for(const e of r.values())if(!e.match(/[0-9a-f]{40}/))throw new Bne(e);const u=await dre.get({fs:e,gitdir:t});if(!a){if(0===(a=await u.getall(`remote.${n}.fetch`)).length)throw new Vne(n);a.unshift(`+HEAD:refs/remotes/${n}/HEAD`)}const c=Gne.from(a),d=new Map;if(l){const n=await gre.listRefs({fs:e,gitdir:t,filepath:"refs/tags"});await gre.deleteRefs({fs:e,gitdir:t,refs:n.map((e=>`refs/tags/${e}`))})}if(o)for(const n of r.keys())if(n.startsWith("refs/tags")&&!n.endsWith("^{}")&&!await gre.exists({fs:e,gitdir:t,ref:n})){const e=r.get(n);d.set(n,e)}const f=c.translate([...r.keys()]);for(const[e,t]of f){const n=r.get(e);d.set(t,n)}const h=c.translate([...i.keys()]);for(const[e,t]of h){const n=i.get(e),r=c.translateOne(n);r&&d.set(t,`ref: ${r}`)}const p=[];if(s){for(const n of c.localNamespaces()){const r=(await gre.listRefs({fs:e,gitdir:t,filepath:n})).map((e=>`${n}/${e}`));for(const e of r)d.has(e)||p.push(e)}p.length>0&&await gre.deleteRefs({fs:e,gitdir:t,refs:p})}for(const[n,r]of d)await mre(n,(async()=>e.write((0,Re.join)(t,n),`${r.trim()}\n`,"utf8")));return{pruned:p}}static async writeRef({fs:e,gitdir:t,ref:n,value:r}){if(!r.match(/[0-9a-f]{40}/))throw new Bne(r);await mre(n,(async()=>e.write((0,Re.join)(t,n),`${r.trim()}\n`,"utf8")))}static async writeSymbolicRef({fs:e,gitdir:t,ref:n,value:r}){await mre(n,(async()=>e.write((0,Re.join)(t,n),`ref: ${r.trim()}\n`,"utf8")))}static async deleteRef({fs:e,gitdir:t,ref:n}){return gre.deleteRefs({fs:e,gitdir:t,refs:[n]})}static async deleteRefs({fs:e,gitdir:t,refs:n}){await Promise.all(n.map((n=>e.rm((0,Re.join)(t,n)))));let r=await mre("packed-refs",(async()=>e.read(`${t}/packed-refs`,{encoding:"utf8"})));const i=Yne.from(r),o=i.refs.size;for(const e of n)i.refs.has(e)&&i.delete(e);i.refs.sizee.write(`${t}/packed-refs`,r,{encoding:"utf8"}))))}static async resolve({fs:e,gitdir:t,ref:n,depth:r}){if(void 0!==r&&-1==--r)return n;if(n.startsWith("ref: "))return n=n.slice(5),gre.resolve({fs:e,gitdir:t,ref:n,depth:r});if(40===n.length&&/[0-9a-f]{40}/.test(n))return n;const i=await gre.packedRefs({fs:e,gitdir:t}),o=fre(n).filter((e=>!hre.includes(e)));for(const n of o){const o=await mre(n,(async()=>await e.read(`${t}/${n}`,{encoding:"utf8"})||i.get(n)));if(o)return gre.resolve({fs:e,gitdir:t,ref:o.trim(),depth:r})}throw new Xne(n)}static async exists({fs:e,gitdir:t,ref:n}){try{return await gre.expand({fs:e,gitdir:t,ref:n}),!0}catch(e){return!1}}static async expand({fs:e,gitdir:t,ref:n}){if(40===n.length&&/[0-9a-f]{40}/.test(n))return n;const r=await gre.packedRefs({fs:e,gitdir:t}),i=fre(n);for(const n of i){if(await mre(n,(async()=>e.exists(`${t}/${n}`))))return n;if(r.has(n))return n}throw new Xne(n)}static async expandAgainstMap({ref:e,map:t}){const n=fre(e);for(const e of n)if(await t.has(e))return e;throw new Xne(e)}static resolveAgainstMap({ref:e,fullref:t=e,depth:n,map:r}){if(void 0!==n&&-1==--n)return{fullref:t,oid:e};if(e.startsWith("ref: "))return e=e.slice(5),gre.resolveAgainstMap({ref:e,fullref:t,depth:n,map:r});if(40===e.length&&/[0-9a-f]{40}/.test(e))return{fullref:t,oid:e};const i=fre(e);for(const e of i){const t=r.get(e);if(t)return gre.resolveAgainstMap({ref:t.trim(),fullref:e,depth:n,map:r})}throw new Xne(e)}static async packedRefs({fs:e,gitdir:t}){const n=await mre("packed-refs",(async()=>e.read(`${t}/packed-refs`,{encoding:"utf8"})));return Yne.from(n).refs}static async listRefs({fs:e,gitdir:t,filepath:n}){const r=gre.packedRefs({fs:e,gitdir:t});let i=null;try{i=await e.readdirDeep(`${t}/${n}`),i=i.map((e=>e.replace(`${t}/${n}/`,"")))}catch(e){i=[]}for(let e of(await r).keys())e.startsWith(n)&&(e=e.replace(n+"/",""),i.includes(e)||i.push(e));return i.sort(Hne),i}static async listBranches({fs:e,gitdir:t,remote:n}){return n?gre.listRefs({fs:e,gitdir:t,filepath:`refs/remotes/${n}`}):gre.listRefs({fs:e,gitdir:t,filepath:"refs/heads"})}static async listTags({fs:e,gitdir:t}){return(await gre.listRefs({fs:e,gitdir:t,filepath:"refs/tags"})).filter((e=>!e.endsWith("^{}")))}}function vre(e,t){return Sne(Ore(e),Ore(t))}function Ore(e){return"040000"===e.mode?e.path+"/":e.path}function yre(e){switch(e){case"040000":return"tree";case"100644":case"100755":case"120000":return"blob";case"160000":return"commit"}throw new kne(`Unexpected GitTree entry mode: ${e}`)}function bre(e){return!e.oid&&e.sha&&(e.oid=e.sha),e.mode=function(e){if("number"==typeof e&&(e=e.toString(8)),e.match(/^0?4.*/))return"040000";if(e.match(/^1006.*/))return"100644";if(e.match(/^1007.*/))return"100755";if(e.match(/^120.*/))return"120000";if(e.match(/^160.*/))return"160000";throw new kne(`Could not understand file mode: ${e}`)}(e.mode),e.type||(e.type=yre(e.mode)),e}class wre{constructor(e){if(One.isBuffer(e))this._entries=function(e){const t=[];let n=0;for(;n`${e.mode} ${e.type} ${e.oid} ${e.path}`)).join("\n")}toObject(){const e=[...this._entries];return e.sort(vre),One.concat(e.map((e=>{const t=One.from(e.mode.replace(/^0/,"")),n=One.from(" "),r=One.from(e.path,"utf8"),i=One.from([0]),o=One.from(e.oid,"hex");return One.concat([t,n,r,i,o])})))}entries(){return this._entries}*[Symbol.iterator](){for(const e of this._entries)yield e}}class kre{static wrap({type:e,object:t}){return One.concat([One.from(`${e} ${t.byteLength.toString()}\0`),One.from(t)])}static unwrap(e){const t=e.indexOf(32),n=e.indexOf(0),r=e.slice(0,t).toString("utf8"),i=e.slice(t+1,n).toString("utf8"),o=e.length-(n+1);if(parseInt(i)!==o)throw new kne(`Length mismatch: expected ${i} bytes but got ${o} instead.`);return{type:r,object:One.from(e.slice(n+1))}}}function xre(e){let t=0,n=0,r=null;do{r=e.readUInt8(),t|=(127&r)<>=1,i+=8;return r}function Sre(e,t){const n=e.readUInt8();if(128&n){const r=_re(e,15&n,4);let i=_re(e,(112&n)>>4,3);return 0===i&&(i=65536),t.slice(r,r+i)}return e.slice(n)}function Pre(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:function(e){let t=[e];return{next:()=>Promise.resolve({done:0===t.length,value:t.pop()}),return:()=>(t=[],{}),[Symbol.asyncIterator](){return this}}}(e)}class Ere{constructor(e){if(void 0===One)throw new Error("Missing Buffer dependency");this.stream=Pre(e),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),this.cursor!==this.buffer.length||(await this._loadnext(),!this._ended)))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),this.cursor!==this.buffer.length||(await this._loadnext(),!this._ended)))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(e){if(!this.eof())return this.started||await this._init(),this.cursor+e>this.buffer.length&&(this._trim(),await this._accumulate(e)),this._moveCursor(e),this.buffer.slice(this.undoCursor,this.cursor)}async skip(e){this.eof()||(this.started||await this._init(),this.cursor+e>this.buffer.length&&(this._trim(),await this._accumulate(e)),this._moveCursor(e))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:e,value:t}=await this.stream.next();return e&&(this._ended=!0,!t)?One.alloc(0):(t&&(t=One.from(t)),t)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(e){this.undoCursor=this.cursor,this.cursor+=e,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(e){if(this._ended)return;const t=[this.buffer];for(;this.cursor+e>Cre(t);){const e=await this._next();if(this._ended)break;t.push(e)}this.buffer=One.concat(t)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}}function Cre(e){return e.reduce(((e,t)=>e+t.length),0)}async function Tre(e){let t=await e.byte();const n=t>>4&7;let r,i,o=15&t;if(128&t){let n=4;do{t=await e.byte(),o|=(127&t)<2147483648)throw new kne("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");n.seek(n.tell()+1020);const i=n.readUInt32BE(),o=[];for(let e=0;e{null===u&&(u=s);const l=Math.floor(100*(u-s)/u);l!==c&&n&&await n({phase:"Receiving objects",loaded:u-s,total:u}),c=l,(["commit","tree","blob","tag"].includes(t=r[t])||"ofs-delta"===t||"ref-delta"===t)&&(i[a]={type:t,offset:a})}));const d=Object.keys(i).map(Number);for(const[t,n]of d.entries()){const r=t+1===d.length?e.byteLength-20:d[t+1],o=i[n],a=pne.buf(e.slice(n,r))>>>0;o.end=r,o.crc=a}const f=new Rre({pack:Promise.resolve(e),packfileSha:o,crcs:s,hashes:a,offsets:l,getExternalRefDelta:t});c=null;let h=0;const p=[0,0,0,0,0,0,0,0,0,0,0,0];for(let e in i){e=Number(e);const t=Math.floor(100*h/u);t!==c&&n&&await n({phase:"Resolving deltas",loaded:h,total:u}),h++,c=t;const r=i[e];if(!r.oid)try{f.readDepth=0,f.externalReadDepth=0;const{type:t,object:n}=await f.readSlice({start:e});p[f.readDepth]+=1;const i=await Rne(kre.wrap({type:t,object:n}));r.oid=i,a.push(i),l.set(i,e),s[i]=r.crc}catch(e){continue}}return a.sort(),f}async toBuffer(){const e=[],t=(t,n)=>{e.push(One.from(t,n))};t("ff744f63","hex"),t("00000002","hex");const n=new _ne(One.alloc(1024));for(let e=0;e<256;e++){let t=0;for(const n of this.hashes)parseInt(n.slice(0,2),16)<=e&&t++;n.writeUInt32BE(t)}e.push(n.buffer);for(const e of this.hashes)t(e,"hex");const r=new _ne(One.alloc(4*this.hashes.length));for(const e of this.hashes)r.writeUInt32BE(this.crcs[e]);e.push(r.buffer);const i=new _ne(One.alloc(4*this.hashes.length));for(const e of this.hashes)i.writeUInt32BE(this.offsets.get(e));e.push(i.buffer),t(this.packfileSha,"hex");const o=One.concat(e),a=await Rne(o),s=One.alloc(20);return s.write(a,"hex"),One.concat([o,s])}async load({pack:e}){this.pack=e}async unload(){this.pack=null}async read({oid:e}){if(!this.offsets.get(e)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(e);throw new kne(`Could not read object ${e} from packfile`)}const t=this.offsets.get(e);return this.readSlice({start:t})}async readSlice({start:e}){if(this.offsetCache[e])return Object.assign({},this.offsetCache[e]);if(this.readDepth++,!this.pack)throw new kne("Tried to read from a GitPackIndex with no packfile loaded into memory");const t=(await this.pack).slice(e),n=new _ne(t),r=n.readUInt8(),i=112&r;let o={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"}[i];if(void 0===o)throw new kne("Unrecognized type: 0b"+i.toString(2));const a=15&r;let s=a;128&r&&(s=function(e,t){let n=t,r=4,i=null;do{i=e.readUInt8(),n|=(127&i)<e+1<<7|t),-1)}(n),r=e-t;({object:l,type:o}=await this.readSlice({start:r}))}if("ref_delta"===o){const e=n.slice(20).toString("hex");({object:l,type:o}=await this.read({oid:e}))}const c=t.slice(n.tell());if(u=One.from(await Qre(c)),u.byteLength!==s)throw new kne(`Packfile told us object would have length ${s} but it had length ${u.byteLength}`);return l&&(u=One.from(function(e,t){const n=new _ne(e),r=xre(n);if(r!==t.byteLength)throw new kne(`applyDelta expected source buffer to be ${r} bytes but the provided buffer was ${t.length} bytes`);const i=xre(n);let o;const a=Sre(n,t);if(a.byteLength===i)o=a;else{o=One.alloc(i);const e=new _ne(o);for(e.copy(a);!n.eof();)e.copy(Sre(n,t));const r=e.tell();if(i!==r)throw new kne(`applyDelta expected target buffer to be ${i} bytes but the resulting buffer was ${r} bytes`)}return o}(u,l))),this.readDepth>3&&(this.offsetCache[e]={type:o,object:u}),{type:o,format:"content",object:u}}}const Are=Symbol("PackfileCache");function jre({fs:e,cache:t,filename:n,getExternalRefDelta:r,emitter:i,emitterPrefix:o}){t[Are]||(t[Are]=new Map);let a=t[Are].get(n);return a||(a=async function({fs:e,filename:t,getExternalRefDelta:n,emitter:r,emitterPrefix:i}){const o=await e.read(t);return Rre.fromIdx({idx:o,getExternalRefDelta:n})}({fs:e,filename:n,getExternalRefDelta:r,emitter:i,emitterPrefix:o}),t[Are].set(n,a)),a}async function Dre({fs:e,cache:t,gitdir:n,oid:r,format:i="content"}){const o=r=>Dre({fs:e,cache:t,gitdir:n,oid:r});let a;if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===r&&(a={format:"wrapped",object:One.from("tree 0\0")}),a||(a=await async function({fs:e,gitdir:t,oid:n}){const r=`objects/${n.slice(0,2)}/${n.slice(2)}`,i=await e.read(`${t}/${r}`);return i?{object:i,format:"deflated",source:r}:null}({fs:e,gitdir:n,oid:r})),!a){if(a=await async function({fs:e,cache:t,gitdir:n,oid:r,format:i="content",getExternalRefDelta:o}){let a=await e.readdir((0,Re.join)(n,"objects/pack"));a=a.filter((e=>e.endsWith(".idx")));for(const i of a){const a=`${n}/objects/pack/${i}`,s=await jre({fs:e,cache:t,filename:a,getExternalRefDelta:o});if(s.error)throw new kne(s.error);if(s.offsets.has(r)){if(!s.pack){const t=a.replace(/idx$/,"pack");s.pack=e.read(t)}const t=await s.read({oid:r,getExternalRefDelta:o});return t.format="content",t.source=`objects/pack/${i.replace(/idx$/,"pack")}`,t}}return null}({fs:e,cache:t,gitdir:n,oid:r,getExternalRefDelta:o}),!a)throw new Xne(r);return a}if("deflated"===i)return a;if("deflated"===a.format&&(a.object=One.from(await Qre(a.object)),a.format="wrapped"),"wrapped"===i)return a;const s=await Rne(a.object);if(s!==r)throw new kne(`SHA check failed! Expected ${r}, computed ${s}`);const{object:l,type:u}=kre.unwrap(a.object);if(a.type=u,a.object=l,a.format="content","content"===i)return a;throw new kne(`invalid requested format "${i}"`)}class Mre extends bne{constructor(e,t,n=!0){super(`Failed to create ${e} at ${t} because it already exists.${n?` (Hint: use 'force: true' parameter to overwrite existing ${e}.)`:""}`),this.code=this.name=Mre.code,this.data={noun:e,where:t,canForce:n}}}Mre.code="AlreadyExistsError";class Ire extends bne{constructor(e,t,n){super(`Found multiple ${e} matching "${t}" (${n.join(", ")}). Use a longer abbreviation length to disambiguate them.`),this.code=this.name=Ire.code,this.data={nouns:e,short:t,matches:n}}}Ire.code="AmbiguousError";class zre extends bne{constructor(e){super(`Your local changes to the following files would be overwritten by checkout: ${e.join(", ")}`),this.code=this.name=zre.code,this.data={filepaths:e}}}zre.code="CheckoutConflictError";class Wre extends bne{constructor(e,t){super(`Failed to checkout "${e}" because commit ${t} is not available locally. Do a git fetch to make the branch available locally.`),this.code=this.name=Wre.code,this.data={ref:e,oid:t}}}Wre.code="CommitNotFetchedError";class Nre extends bne{constructor(){super("Empty response from git server."),this.code=this.name=Nre.code,this.data={}}}Nre.code="EmptyServerResponseError";class Lre extends bne{constructor(){super("A simple fast-forward merge was not possible."),this.code=this.name=Lre.code,this.data={}}}Lre.code="FastForwardError";class Fre extends bne{constructor(e,t){super(`One or more branches were not updated: ${e}`),this.code=this.name=Fre.code,this.data={prettyDetails:e,result:t}}}Fre.code="GitPushError";class Ure extends bne{constructor(e,t,n){super(`HTTP Error: ${e} ${t}`),this.code=this.name=Ure.code,this.data={statusCode:e,statusMessage:t,response:n}}}Ure.code="HttpError";class Xre extends bne{constructor(e){let t="invalid filepath";"leading-slash"===e||"trailing-slash"===e?t='"filepath" parameter should not include leading or trailing directory separators because these can cause problems on some platforms.':"directory"===e&&(t='"filepath" should not be a directory.'),super(t),this.code=this.name=Xre.code,this.data={reason:e}}}Xre.code="InvalidFilepathError";class qre extends bne{constructor(e,t){super(`"${e}" would be an invalid git reference. (Hint: a valid alternative would be "${t}".)`),this.code=this.name=qre.code,this.data={ref:e,suggestion:t}}}qre.code="InvalidRefNameError";class Bre extends bne{constructor(e){super(`Maximum search depth of ${e} exceeded.`),this.code=this.name=Bre.code,this.data={depth:e}}}Bre.code="MaxDepthError";class Vre extends bne{constructor(){super("Merges with conflicts are not supported yet."),this.code=this.name=Vre.code,this.data={}}}Vre.code="MergeNotSupportedError";class Yre extends bne{constructor(e,t,n,r){super(`Automatic merge failed with one or more merge conflicts in the following files: ${e.toString()}. Fix conflicts then commit the result.`),this.code=this.name=Yre.code,this.data={filepaths:e,bothModified:t,deleteByUs:n,deleteByTheirs:r}}}Yre.code="MergeConflictError";class Zre extends bne{constructor(e){super(`No name was provided for ${e} in the argument or in the .git/config file.`),this.code=this.name=Zre.code,this.data={role:e}}}Zre.code="MissingNameError";class Gre extends bne{constructor(e){super(`The function requires a "${e}" parameter but none was provided.`),this.code=this.name=Gre.code,this.data={parameter:e}}}Gre.code="MissingParameterError";class Hre extends bne{constructor(e){super('There are multiple errors that were thrown by the method. Please refer to the "errors" property to see more'),this.code=this.name=Hre.code,this.data={errors:e},this.errors=e}}Hre.code="MultipleGitError";class Kre extends bne{constructor(e,t){super(`Expected "${e}" but received "${t}".`),this.code=this.name=Kre.code,this.data={expected:e,actual:t}}}Kre.code="ParseError";class Jre extends bne{constructor(e){let t="";"not-fast-forward"===e?t=" because it was not a simple fast-forward":"tag-exists"===e&&(t=" because tag already exists"),super(`Push rejected${t}. Use "force: true" to override.`),this.code=this.name=Jre.code,this.data={reason:e}}}Jre.code="PushRejectedError";class eie extends bne{constructor(e,t){super(`Remote does not support the "${e}" so the "${t}" parameter cannot be used.`),this.code=this.name=eie.code,this.data={capability:e,parameter:t}}}eie.code="RemoteCapabilityError";class tie extends bne{constructor(e,t){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${e}`),this.code=this.name=tie.code,this.data={preview:e,response:t}}}tie.code="SmartHttpError";class nie extends bne{constructor(e,t,n){super(`Git remote "${e}" uses an unrecognized transport protocol: "${t}"`),this.code=this.name=nie.code,this.data={url:e,transport:t,suggestion:n}}}nie.code="UnknownTransportError";class rie extends bne{constructor(e){super(`Cannot parse remote URL: "${e}"`),this.code=this.name=rie.code,this.data={url:e}}}rie.code="UrlParseError";class iie extends bne{constructor(){super("The operation was canceled."),this.code=this.name=iie.code,this.data={}}}iie.code="UserCanceledError";class oie extends bne{constructor(e){super(`Could not merge index: Entry for '${e}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged changes.`),this.code=this.name=oie.code,this.data={filepath:e}}}oie.code="IndexResetError";class aie extends bne{constructor(e){super(`"${e}" does not point to any commit. You're maybe working on a repository with no commits yet. `),this.code=this.name=aie.code,this.data={ref:e}}}function sie({name:e,email:t,timestamp:n,timezoneOffset:r}){return r=function(e){const t=function(e){return Math.sign(e)||(Object.is(e,-0)?-1:1)}(function(e){return 0===e?e:-e}(e));e=Math.abs(e);const n=Math.floor(e/60);e-=60*n;let r=String(n),i=String(e);return r.length<2&&(r="0"+r),i.length<2&&(i="0"+i),(-1===t?"-":"+")+r+i}(r),`${e} <${t}> ${n} ${r}`}function lie(e){return(e=(e=e.replace(/\r/g,"")).replace(/^\n+/,"")).replace(/\n+$/,"")+"\n"}function uie(e){const[,t,n,r,i]=e.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:t,email:n,timestamp:Number(r),timezoneOffset:cie(i)}}function cie(e){let[,t,n,r]=e.match(/(\+|-)(\d\d)(\d\d)/);return r=("+"===t?1:-1)*(60*Number(n)+Number(r)),function(e){return 0===e?e:-e}(r)}aie.code="NoCommitError";class die{constructor(e){if("string"==typeof e)this._tag=e;else if(One.isBuffer(e))this._tag=e.toString("utf8");else{if("object"!=typeof e)throw new kne("invalid type passed to GitAnnotatedTag constructor");this._tag=die.render(e)}}static from(e){return new die(e)}static render(e){return`object ${e.object}\ntype ${e.type}\ntag ${e.tag}\ntagger ${sie(e.tagger)}\n\n${e.message}\n${e.gpgsig?e.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf("\n\n"))}message(){const e=this.withoutSignature();return e.slice(e.indexOf("\n\n")+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const e=this.justHeaders().split("\n"),t=[];for(const n of e)" "===n[0]?t[t.length-1]+="\n"+n.slice(1):t.push(n);const n={};for(const e of t){const t=e.slice(0,e.indexOf(" ")),r=e.slice(e.indexOf(" ")+1);Array.isArray(n[t])?n[t].push(r):n[t]=r}return n.tagger&&(n.tagger=uie(n.tagger)),n.committer&&(n.committer=uie(n.committer)),n}withoutSignature(){const e=lie(this._tag);return-1===e.indexOf("\n-----BEGIN PGP SIGNATURE-----")?e:e.slice(0,e.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----"))}gpgsig(){if(-1!==this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----"))return lie(this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+27))}payload(){return this.withoutSignature()+"\n"}toObject(){return One.from(this._tag,"utf8")}static async sign(e,t,n){const r=e.payload();let{signature:i}=await t({payload:r,secretKey:n});i=lie(i);const o=r+i;return die.from(o)}}function fie(e){return e.trim().split("\n").map((e=>" "+e)).join("\n")+"\n"}class hie{constructor(e){if("string"==typeof e)this._commit=e;else if(One.isBuffer(e))this._commit=e.toString("utf8");else{if("object"!=typeof e)throw new kne("invalid type passed to GitCommit constructor");this._commit=hie.render(e)}}static fromPayloadSignature({payload:e,signature:t}){const n=hie.justHeaders(e),r=hie.justMessage(e),i=lie(n+"\ngpgsig"+fie(t)+"\n"+r);return new hie(i)}static from(e){return new hie(e)}toObject(){return One.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return hie.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(e){return lie(e.slice(e.indexOf("\n\n")+2))}static justHeaders(e){return e.slice(0,e.indexOf("\n\n"))}parseHeaders(){const e=hie.justHeaders(this._commit).split("\n"),t=[];for(const n of e)" "===n[0]?t[t.length-1]+="\n"+n.slice(1):t.push(n);const n={parent:[]};for(const e of t){const t=e.slice(0,e.indexOf(" ")),r=e.slice(e.indexOf(" ")+1);Array.isArray(n[t])?n[t].push(r):n[t]=r}return n.author&&(n.author=uie(n.author)),n.committer&&(n.committer=uie(n.committer)),n}static renderHeaders(e){let t="";if(e.tree?t+=`tree ${e.tree}\n`:t+="tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904\n",e.parent){if(void 0===e.parent.length)throw new kne("commit 'parent' property should be an array");for(const n of e.parent)t+=`parent ${n}\n`}return t+=`author ${sie(e.author)}\n`,t+=`committer ${sie(e.committer||e.author)}\n`,e.gpgsig&&(t+="gpgsig"+fie(e.gpgsig)),t}static render(e){return hie.renderHeaders(e)+"\n"+lie(e.message)}render(){return this._commit}withoutSignature(){const e=lie(this._commit);return-1===e.indexOf("\ngpgsig")?e:lie(e.slice(0,e.indexOf("\ngpgsig"))+"\n"+e.slice(e.indexOf("-----END PGP SIGNATURE-----\n")+28))}isolateSignature(){return this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27).split("\n").map((e=>e.replace(/^ /,""))).join("\n")}static async sign(e,t,n){const r=e.withoutSignature(),i=hie.justMessage(e._commit);let{signature:o}=await t({payload:r,secretKey:n});o=lie(o);const a=hie.justHeaders(e._commit)+"\ngpgsig"+fie(o)+"\n"+i;return hie.from(a)}}async function pie({fs:e,cache:t,gitdir:n,oid:r}){if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===r)return{tree:wre.from([]),oid:r};const{type:i,object:o}=await Dre({fs:e,cache:t,gitdir:n,oid:r});if("tag"===i)return pie({fs:e,cache:t,gitdir:n,oid:r=die.from(o).parse().object});if("commit"===i)return pie({fs:e,cache:t,gitdir:n,oid:r=hie.from(o).parse().tree});if("tree"!==i)throw new qne(r,i,"tree");return{tree:wre.from(o),oid:r}}class mie{constructor({fs:e,gitdir:t,ref:n,cache:r}){this.fs=e,this.cache=r,this.gitdir=t,this.mapPromise=(async()=>{const r=new Map;let i;try{i=await gre.resolve({fs:e,gitdir:t,ref:n})}catch(e){e instanceof Xne&&(i="4b825dc642cb6eb9a060e54bf8d69288fbee4904")}const o=await pie({fs:e,cache:this.cache,gitdir:t,oid:i});return o.type="tree",o.mode="40000",r.set(".",o),r})();const i=this;this.ConstructEntry=class{constructor(e){this._fullpath=e,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}async type(){return i.type(this)}async mode(){return i.mode(this)}async stat(){return i.stat(this)}async content(){return i.content(this)}async oid(){return i.oid(this)}}}async readdir(e){const t=e._fullpath,{fs:n,cache:r,gitdir:i}=this,o=await this.mapPromise,a=o.get(t);if(!a)throw new Error(`No obj for ${t}`);const s=a.oid;if(!s)throw new Error(`No oid for obj ${JSON.stringify(a)}`);if("tree"!==a.type)return null;const{type:l,object:u}=await Dre({fs:n,cache:r,gitdir:i,oid:s});if(l!==a.type)throw new qne(s,l,a.type);const c=wre.from(u);for(const e of c)o.set((0,Re.join)(t,e.path),e);return c.entries().map((e=>(0,Re.join)(t,e.path)))}async type(e){if(!1===e._type){const t=await this.mapPromise,{type:n}=t.get(e._fullpath);e._type=n}return e._type}async mode(e){if(!1===e._mode){const t=await this.mapPromise,{mode:n}=t.get(e._fullpath);e._mode=Ene(parseInt(n,8))}return e._mode}async stat(e){}async content(e){if(!1===e._content){const t=await this.mapPromise,{fs:n,cache:r,gitdir:i}=this,o=t.get(e._fullpath).oid,{type:a,object:s}=await Dre({fs:n,cache:r,gitdir:i,oid:o});e._content="blob"!==a?void 0:new Uint8Array(s)}return e._content}async oid(e){if(!1===e._oid){const t=(await this.mapPromise).get(e._fullpath);e._oid=t.oid}return e._oid}}function gie({ref:e="HEAD"}={}){const t=Object.create(null);return Object.defineProperty(t,Fne,{value:function({fs:t,gitdir:n,cache:r}){return new mie({fs:t,gitdir:n,ref:e,cache:r})}}),Object.freeze(t),t}class vie{constructor({fs:e,dir:t,gitdir:n,cache:r}){this.fs=e,this.cache=r,this.dir=t,this.gitdir=n;const i=this;this.ConstructEntry=class{constructor(e){this._fullpath=e,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}async type(){return i.type(this)}async mode(){return i.mode(this)}async stat(){return i.stat(this)}async content(){return i.content(this)}async oid(){return i.oid(this)}}}async readdir(e){const t=e._fullpath,{fs:n,dir:r}=this,i=await n.readdir((0,Re.join)(r,t));return null===i?null:i.map((e=>(0,Re.join)(t,e)))}async type(e){return!1===e._type&&await e.stat(),e._type}async mode(e){return!1===e._mode&&await e.stat(),e._mode}async stat(e){if(!1===e._stat){const{fs:t,dir:n}=this;let r=await t.lstat(`${n}/${e._fullpath}`);if(!r)throw new Error(`ENOENT: no such file or directory, lstat '${e._fullpath}'`);let i=r.isDirectory()?"tree":"blob";"blob"!==i||r.isFile()||r.isSymbolicLink()||(i="special"),e._type=i,r=$ne(r),e._mode=r.mode,-1===r.size&&e._actualSize&&(r.size=e._actualSize),e._stat=r}return e._stat}async content(e){if(!1===e._content){const{fs:t,dir:n,gitdir:r}=this;if("tree"===await e.type())e._content=void 0;else{const i=await dre.get({fs:t,gitdir:r}),o=await i.get("core.autocrlf"),a=await t.read(`${n}/${e._fullpath}`,{autocrlf:o});e._actualSize=a.length,e._stat&&-1===e._stat.size&&(e._stat.size=e._actualSize),e._content=new Uint8Array(a)}}return e._content}async oid(e){if(!1===e._oid){const{fs:t,gitdir:n,cache:r}=this;let i;await zne.acquire({fs:t,gitdir:n,cache:r},(async function(r){const o=r.entriesMap.get(e._fullpath),a=await e.stat(),s=await dre.get({fs:t,gitdir:n}),l=await s.get("core.filemode"),u=void 0===yne||!("win32"===yne.platform);!o||Dne(a,o,l,u)?void 0===await e.content()?i=void 0:(i=await Rne(kre.wrap({type:"blob",object:await e.content()})),!o||i!==o.oid||l&&a.mode!==o.mode||!Dne(a,o,l,u)||r.insert({filepath:e._fullpath,stats:a,oid:i})):i=o.oid})),e._oid=i}return e._oid}}function Oie(){const e=Object.create(null);return Object.defineProperty(e,Fne,{value:function({fs:e,dir:t,gitdir:n,cache:r}){return new vie({fs:e,dir:t,gitdir:n,cache:r})}}),Object.freeze(e),e}const yie=void 0===Array.prototype.flat?e=>e.reduce(((e,t)=>e.concat(t)),[]):e=>e.flat();class bie{constructor(){this.value=null}consider(e){null!=e&&(null===this.value||e{const r=(0,Re.join)(t,n);return e.lstat(r).then((t=>{if(t)return t.isDirectory()?kie(e,r):e.rm(r)}))}))).then((()=>e.rmdir(t))):await e.rmdir(t)}function xie(e){return"function"==typeof e}function _ie(e){return function(e){return e&&"object"==typeof e}(t=(e=>{try{return e.readFile().catch((e=>e))}catch(e){return e}})(e))&&xie(t.then)&&xie(t.catch);var t}const Sie=["readFile","writeFile","mkdir","rmdir","unlink","stat","lstat","readdir","readlink","symlink"];function Pie(e,t){if(_ie(t))for(const n of Sie)e[`_${n}`]=t[n].bind(t);else for(const n of Sie)e[`_${n}`]=gne(t[n].bind(t));_ie(t)?t.rm?e._rm=t.rm.bind(t):t.rmdir.length>1?e._rm=t.rmdir.bind(t):e._rm=kie.bind(null,e):t.rm?e._rm=gne(t.rm.bind(t)):t.rmdir.length>2?e._rm=gne(t.rmdir.bind(t)):e._rm=kie.bind(null,e)}class Eie{constructor(e){if(void 0!==e._original_unwrapped_fs)return e;const t=Object.getOwnPropertyDescriptor(e,"promises");t&&t.enumerable?Pie(this,e.promises):Pie(this,e),this._original_unwrapped_fs=e}async exists(e,t={}){try{return await this._stat(e),!0}catch(e){if("ENOENT"===e.code||"ENOTDIR"===e.code)return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',e),e}}async read(e,t={}){try{let n=await this._readFile(e,t);if("true"===t.autocrlf)try{n=new TextDecoder("utf8",{fatal:!0}).decode(n),n=n.replace(/\r\n/g,"\n"),n=(new TextEncoder).encode(n)}catch(e){}return"string"!=typeof n&&(n=One.from(n)),n}catch(e){return null}}async write(e,t,n={}){try{return void await this._writeFile(e,t,n)}catch(r){await this.mkdir(Nne(e)),await this._writeFile(e,t,n)}}async mkdir(e,t=!1){try{return void await this._mkdir(e)}catch(n){if(null===n)return;if("EEXIST"===n.code)return;if(t)throw n;if("ENOENT"===n.code){const t=Nne(e);if("."===t||"/"===t||t===e)throw n;await this.mkdir(t),await this.mkdir(e,!0)}}}async rm(e){try{await this._unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}async rmdir(e,t){try{t&&t.recursive?await this._rm(e,t):await this._rmdir(e)}catch(e){if("ENOENT"!==e.code)throw e}}async readdir(e){try{const t=await this._readdir(e);return t.sort(Sne),t}catch(e){return"ENOTDIR"===e.code?null:[]}}async readdirDeep(e){const t=await this._readdir(e);return(await Promise.all(t.map((async t=>{const n=e+"/"+t;return(await this._stat(n)).isDirectory()?this.readdirDeep(n):n})))).reduce(((e,t)=>e.concat(t)),[])}async lstat(e){try{return await this._lstat(e)}catch(e){if("ENOENT"===e.code)return null;throw e}}async readlink(e,t={encoding:"buffer"}){try{const n=await this._readlink(e,t);return One.isBuffer(n)?n:One.from(n)}catch(e){if("ENOENT"===e.code)return null;throw e}}async writelink(e,t){return this._symlink(t.toString("utf8"),e)}}function Cie(e,t){if(void 0===t)throw new Gre(e)}async function Tie({fs:e,dir:t,gitdir:n=(0,Re.join)(t,".git"),remote:r,url:i,force:o=!1}){try{return Cie("fs",e),Cie("gitdir",n),Cie("remote",r),Cie("url",i),await async function({fs:e,gitdir:t,remote:n,url:r,force:i}){if(n!==vne.clean(n))throw new qre(n,vne.clean(n));const o=await dre.get({fs:e,gitdir:t});if(!i&&(await o.getSubsections("remote")).includes(n)&&r!==await o.get(`remote.${n}.url`))throw new Mre("remote",n);await o.set(`remote.${n}.url`,r),await o.set(`remote.${n}.fetch`,`+refs/heads/*:refs/remotes/${n}/*`),await dre.save({fs:e,gitdir:t,config:o})}({fs:new Eie(e),gitdir:n,remote:r,url:i,force:o})}catch(e){throw e.caller="git.addRemote",e}}const $ie=(e,t)=>"."===e||null==t||0===t.length||"."===t||(t.length>=e.length?t.startsWith(e):e.startsWith(t));async function Qie({fs:e,cache:t,onProgress:n,onPostCheckout:r,dir:i,gitdir:o,remote:a,ref:s,filepaths:l,noCheckout:u,noUpdateHead:c,dryRun:d,force:f,track:h=!0}){let p,m;if(r)try{p=await gre.resolve({fs:e,gitdir:o,ref:"HEAD"})}catch(e){p="0000000000000000000000000000000000000000"}try{m=await gre.resolve({fs:e,gitdir:o,ref:s})}catch(t){if("HEAD"===s)throw t;const n=`${a}/${s}`;if(m=await gre.resolve({fs:e,gitdir:o,ref:n}),h){const t=await dre.get({fs:e,gitdir:o});await t.set(`branch.${s}.remote`,a),await t.set(`branch.${s}.merge`,`refs/heads/${s}`),await dre.save({fs:e,gitdir:o,config:t})}await gre.writeRef({fs:e,gitdir:o,ref:`refs/heads/${s}`,value:m})}if(!u){let a;try{a=await async function({fs:e,cache:t,onProgress:n,dir:r,gitdir:i,ref:o,force:a,filepaths:s}){let l=0;return async function({fs:e,cache:t,dir:n,gitdir:r,trees:i,map:o=(async(e,t)=>t),reduce:a=(async(e,t)=>{const n=yie(t);return void 0!==e&&n.unshift(e),n}),iterate:s=((e,t)=>Promise.all([...t].map(e)))}){const l=i.map((i=>i[Fne]({fs:e,dir:n,gitdir:r,cache:t}))),u=new Array(l.length).fill("."),c=function(e,t){const n=t-0;return Array.from({length:n},((e,t)=>0+t))}(0,l.length),d=async e=>{const{entries:t,children:n}=await(async e=>{c.map((t=>{e[t]=e[t]&&new l[t].ConstructEntry(e[t])}));const t=(await Promise.all(c.map((t=>e[t]?l[t].readdir(e[t]):[])))).map((e=>null===e?[]:e)).map((e=>e[Symbol.iterator]()));return{entries:e,children:wie(t)}})(e),r=t.find((e=>e&&e._fullpath))._fullpath,i=await o(r,t);if(null!==i){let e=await s(d,n);return e=e.filter((e=>void 0!==e)),a(i,e)}};return d(u)}({fs:e,cache:t,dir:r,gitdir:i,trees:[gie({ref:o}),Oie(),Une()],map:async function(e,[t,r,i]){if("."!==e){if(s&&!s.some((t=>$ie(e,t))))return null;switch(n&&await n({phase:"Analyzing workdir",loaded:++l}),[!!i,!!t,!!r].map(Number).join("")){case"000":return;case"001":return a&&s&&s.includes(e)?["delete",e]:void 0;case"010":switch(await t.type()){case"tree":return["mkdir",e];case"blob":return["create",e,await t.oid(),await t.mode()];case"commit":return["mkdir-index",e,await t.oid(),await t.mode()];default:return["error",`new entry Unhandled type ${await t.type()}`]}case"011":switch(`${await t.type()}-${await r.type()}`){case"tree-tree":case"commit-tree":return;case"tree-blob":case"blob-tree":case"commit-blob":return["conflict",e];case"blob-blob":return await t.oid()!==await r.oid()?a?["update",e,await t.oid(),await t.mode(),await t.mode()!==await r.mode()]:["conflict",e]:await t.mode()!==await r.mode()?a?["update",e,await t.oid(),await t.mode(),!0]:["conflict",e]:["create-index",e,await t.oid(),await t.mode()];default:return["error",`new entry Unhandled type ${t.type}`]}case"100":return["delete-index",e];case"101":switch(await i.type()){case"tree":return["rmdir",e];case"blob":return await i.oid()!==await r.oid()?a?["delete",e]:["conflict",e]:["delete",e];case"commit":return["rmdir-index",e];default:return["error",`delete entry Unhandled type ${await i.type()}`]}case"110":case"111":switch(`${await i.type()}-${await t.type()}`){case"tree-tree":return;case"blob-blob":if(await i.oid()===await t.oid()&&await i.mode()===await t.mode()&&!a)return;if(r){if(await r.oid()!==await i.oid()&&await r.oid()!==await t.oid())return a?["update",e,await t.oid(),await t.mode(),await t.mode()!==await r.mode()]:["conflict",e]}else if(a)return["update",e,await t.oid(),await t.mode(),await t.mode()!==await i.mode()];return await t.mode()!==await i.mode()?["update",e,await t.oid(),await t.mode(),!0]:await t.oid()!==await i.oid()?["update",e,await t.oid(),await t.mode(),!1]:void 0;case"tree-blob":return["update-dir-to-blob",e,await t.oid()];case"blob-tree":return["update-blob-to-tree",e];case"commit-commit":return["mkdir-index",e,await t.oid(),await t.mode()];default:return["error",`update entry Unhandled type ${await i.type()}-${await t.type()}`]}}}},reduce:async function(e,t){return t=yie(t),e?e&&"rmdir"===e[0]?(t.push(e),t):(t.unshift(e),t):t}})}({fs:e,cache:t,onProgress:n,dir:i,gitdir:o,ref:s,force:f,filepaths:l})}catch(e){throw e instanceof Xne&&e.data.what===m?new Wre(s,m):e}const u=a.filter((([e])=>"conflict"===e)).map((([e,t])=>t));if(u.length>0)throw new zre(u);const c=a.filter((([e])=>"error"===e)).map((([e,t])=>t));if(c.length>0)throw new kne(c.join(", "));if(d)return void(r&&await r({previousHead:p,newHead:m,type:null!=l&&l.length>0?"file":"branch"}));let h=0;const g=a.length;await zne.acquire({fs:e,gitdir:o,cache:t},(async function(t){await Promise.all(a.filter((([e])=>"delete"===e||"delete-index"===e)).map((async function([r,o]){const a=`${i}/${o}`;"delete"===r&&await e.rm(a),t.delete({filepath:o}),n&&await n({phase:"Updating workdir",loaded:++h,total:g})})))})),await zne.acquire({fs:e,gitdir:o,cache:t},(async function(t){for(const[r,o]of a)if("rmdir"===r||"rmdir-index"===r){const a=`${i}/${o}`;try{"rmdir-index"===r&&t.delete({filepath:o}),await e.rmdir(a),n&&await n({phase:"Updating workdir",loaded:++h,total:g})}catch(e){if("ENOTEMPTY"!==e.code)throw e;console.log(`Did not delete ${o} because directory is not empty`)}}})),await Promise.all(a.filter((([e])=>"mkdir"===e||"mkdir-index"===e)).map((async function([t,r]){const o=`${i}/${r}`;await e.mkdir(o),n&&await n({phase:"Updating workdir",loaded:++h,total:g})}))),await zne.acquire({fs:e,gitdir:o,cache:t},(async function(r){await Promise.all(a.filter((([e])=>"create"===e||"create-index"===e||"update"===e||"mkdir-index"===e)).map((async function([a,s,l,u,c]){const d=`${i}/${s}`;try{if("create-index"!==a&&"mkdir-index"!==a){const{object:n}=await Dre({fs:e,cache:t,gitdir:o,oid:l});if(c&&await e.rm(d),33188===u)await e.write(d,n);else if(33261===u)await e.write(d,n,{mode:511});else{if(40960!==u)throw new kne(`Invalid mode 0o${u.toString(8)} detected in blob ${l}`);await e.writelink(d,n)}}const i=await e.lstat(d);33261===u&&(i.mode=493),"mkdir-index"===a&&(i.mode=57344),r.insert({filepath:s,stats:i,oid:l}),n&&await n({phase:"Updating workdir",loaded:++h,total:g})}catch(e){console.log(e)}})))})),r&&await r({previousHead:p,newHead:m,type:null!=l&&l.length>0?"file":"branch"})}if(!c){const t=await gre.expand({fs:e,gitdir:o,ref:s});t.startsWith("refs/heads")?await gre.writeSymbolicRef({fs:e,gitdir:o,ref:"HEAD",value:t}):await gre.writeRef({fs:e,gitdir:o,ref:"HEAD",value:m})}}const Rie=new RegExp("^refs/(heads/|tags/|remotes/)?(.*)");function Aie(e){const t=Rie.exec(e);return t?"remotes/"===t[1]&&e.endsWith("/HEAD")?t[2].slice(0,-5):t[2]:e}function jie({username:e="",password:t=""}){return`Basic ${One.from(`${e}:${t}`).toString("base64")}`}async function Die(e,t){const n=Pre(e);for(;;){const{value:e,done:r}=await n.next();if(e&&await t(e),r)break}n.return&&n.return()}async function Mie(e){let t=0;const n=[];await Die(e,(e=>{n.push(e),t+=e.byteLength}));const r=new Uint8Array(t);let i=0;for(const e of n)r.set(e,i),i+=e.byteLength;return r}function Iie(e){let t=e.match(/^https?:\/\/([^/]+)@/);if(null==t)return{url:e,auth:{}};t=t[1];const[n,r]=t.split(":");return{url:e=e.replace(`${t}@`,""),auth:{username:n,password:r}}}class zie{static flush(){return One.from("0000","utf8")}static delim(){return One.from("0001","utf8")}static encode(e){"string"==typeof e&&(e=One.from(e));const t=function(e,t){const n=t.toString(16);return"0".repeat(e-n.length)+n}(4,e.length+4);return One.concat([One.from(t,"utf8"),e])}static streamReader(e){const t=new Ere(e);return async function(){try{let e=await t.read(4);if(null==e)return!0;if(e=parseInt(e.toString("utf8"),16),0===e)return null;if(1===e)return null;const n=await t.read(e-4);return null==n||n}catch(t){return e.error=t,!0}}}}async function Wie(e){const t={};let n;for(;n=await e(),!0!==n;){if(null===n)continue;n=n.toString("utf8").replace(/\n$/,"");const e=n.indexOf("=");if(e>-1){const r=n.slice(0,e),i=n.slice(e+1);t[r]=i}else t[n]=!0}return{protocolVersion:2,capabilities2:t}}async function Nie(e,{service:t}){const n=new Set,r=new Map,i=new Map,o=zie.streamReader(e);let a=await o();for(;null===a;)a=await o();if(!0===a)throw new Nre;if(a.includes("version 2"))return Wie(o);if(a.toString("utf8").replace(/\n$/,"")!==`# service=${t}`)throw new Kre(`# service=${t}\\n`,a.toString("utf8"));let s=await o();for(;null===s;)s=await o();if(!0===s)return{capabilities:n,refs:r,symrefs:i};if(s=s.toString("utf8"),s.includes("version 2"))return Wie(o);const[l,u]=Lie(s,"\0","\\x00");if(u.split(" ").map((e=>n.add(e))),"0000000000000000000000000000000000000000 capabilities^{}"!==l){const[e,t]=Lie(l," "," ");for(r.set(t,e);;){const e=await o();if(!0===e)break;if(null!==e){const[t,n]=Lie(e.toString("utf8")," "," ");r.set(n,t)}}}for(const e of n)if(e.startsWith("symref=")){const t=e.match(/symref=([^:]+):(.*)/);3===t.length&&i.set(t[1],t[2])}return{protocolVersion:1,capabilities:n,refs:r,symrefs:i}}function Lie(e,t,n){const r=e.trim().split(t);if(2!==r.length)throw new Kre(`Two strings separated by '${n}'`,e.toString("utf8"));return r}const Fie=(e,t)=>e.endsWith("?")?`${e}${t}`:`${e}/${t.replace(/^https?:\/\//,"")}`,Uie=(e,t)=>{(t.username||t.password)&&(e.Authorization=jie(t)),t.headers&&Object.assign(e,t.headers)},Xie=async e=>{try{const t=One.from(await Mie(e.body)),n=t.toString("utf8");return{preview:n.length<256?n:n.slice(0,256)+"...",response:n,data:t}}catch(e){return{}}};class qie{static async capabilities(){return["discover","connect"]}static async discover({http:e,onProgress:t,onAuth:n,onAuthSuccess:r,onAuthFailure:i,corsProxy:o,service:a,url:s,headers:l,protocolVersion:u}){let{url:c,auth:d}=Iie(s);const f=o?Fie(o,c):c;let h,p;(d.username||d.password)&&(l.Authorization=jie(d)),2===u&&(l["Git-Protocol"]="version=2");let m=!1;do{if(h=await e.request({onProgress:t,method:"GET",url:`${f}/info/refs?service=${a}`,headers:l}),p=!1,401===h.statusCode||203===h.statusCode){const e=m?i:n;if(e){if(d=await e(c,{...d,headers:{...l}}),d&&d.cancel)throw new iie;d&&(Uie(l,d),m=!0,p=!0)}}else 200===h.statusCode&&m&&r&&await r(c,d)}while(p);if(200!==h.statusCode){const{response:e}=await Xie(h);throw new Ure(h.statusCode,h.statusMessage,e)}if(h.headers["content-type"]===`application/x-${a}-advertisement`){const e=await Nie(h.body,{service:a});return e.auth=d,e}{const{preview:e,response:t,data:n}=await Xie(h);try{const e=await Nie([n],{service:a});return e.auth=d,e}catch(n){throw new tie(e,t)}}}static async connect({http:e,onProgress:t,corsProxy:n,service:r,url:i,auth:o,body:a,headers:s}){const l=Iie(i);l&&(i=l.url),n&&(i=Fie(n,i)),s["content-type"]=`application/x-${r}-request`,s.accept=`application/x-${r}-result`,Uie(s,o);const u=await e.request({onProgress:t,method:"POST",url:`${i}/${r}`,body:a,headers:s});if(200!==u.statusCode){const{response:e}=Xie(u);throw new Ure(u.statusCode,u.statusMessage,e)}return u}}class Bie{static getRemoteHelperFor({url:e}){const t=new Map;t.set("http",qie),t.set("https",qie);const n=function({url:e}){if(e.startsWith("git@"))return{transport:"ssh",address:e};const t=e.match(/(\w+)(:\/\/|::)(.*)/);return null!==t?"://"===t[2]?{transport:t[1],address:t[0]}:"::"===t[2]?{transport:t[1],address:t[3]}:void 0:void 0}({url:e});if(!n)throw new rie(e);if(t.has(n.transport))return t.get(n.transport);throw new nie(e,n.transport,"ssh"===n.transport?function(e){return(e=e.replace(/^git@([^:]+):/,"https://$1/")).replace(/^ssh:\/\//,"https://")}(e):void 0)}}let Vie=null;class Yie{static async read({fs:e,gitdir:t}){null===Vie&&(Vie=new fne);const n=(0,Re.join)(t,"shallow"),r=new Set;return await Vie.acquire(n,(async function(){const t=await e.read(n,{encoding:"utf8"});return null===t||""===t.trim()?r:void t.trim().split("\n").map((e=>r.add(e)))})),r}static async write({fs:e,gitdir:t,oids:n}){null===Vie&&(Vie=new fne);const r=(0,Re.join)(t,"shallow");if(n.size>0){const t=[...n].join("\n")+"\n";await Vie.acquire(r,(async function(){await e.write(r,t,{encoding:"utf8"})}))}else await Vie.acquire(r,(async function(){await e.rm(r)}))}}async function Zie({fs:e,cache:t,gitdir:n,oid:r,format:i="content"}){let o=await async function({fs:e,gitdir:t,oid:n}){const r=`objects/${n.slice(0,2)}/${n.slice(2)}`;return e.exists(`${t}/${r}`)}({fs:e,gitdir:n,oid:r});return o||(o=await async function({fs:e,cache:t,gitdir:n,oid:r,getExternalRefDelta:i}){let o=await e.readdir((0,Re.join)(n,"objects/pack"));o=o.filter((e=>e.endsWith(".idx")));for(const a of o){const o=`${n}/objects/pack/${a}`,s=await jre({fs:e,cache:t,filename:o,getExternalRefDelta:i});if(s.error)throw new kne(s.error);if(s.offsets.has(r))return!0}return!1}({fs:e,cache:t,gitdir:n,oid:r,getExternalRefDelta:r=>Dre({fs:e,cache:t,gitdir:n,oid:r})})),o}const Gie={name:"isomorphic-git",version:"1.27.2",agent:"git/isomorphic-git@1.27.2"};class Hie{constructor(){this._queue=[]}write(e){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const t=this._waiting;this._waiting=null,t({value:e})}else this._queue.push(e)}end(){if(this._ended=!0,this._waiting){const e=this._waiting;this._waiting=null,e({done:!0})}}destroy(e){this.error=e,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise((e=>{this._waiting=e}))}}function Kie(e){const t=e.indexOf("\r"),n=e.indexOf("\n");return-1===t&&-1===n?-1:-1===t?n+1:-1===n?t+1:n===t+1?n+1:Math.min(t,n)+1}class Jie{static demux(e){const t=zie.streamReader(e),n=new Hie,r=new Hie,i=new Hie,o=async function(){const a=await t();if(null===a)return o();if(!0===a)return n.end(),i.end(),void(e.error?r.destroy(e.error):r.end());switch(a[0]){case 1:r.write(a.slice(1));break;case 2:i.write(a.slice(1));break;case 3:{const e=a.slice(1);return i.write(e),n.end(),i.end(),void r.destroy(new Error(e.toString("utf8")))}default:n.write(a)}o()};return o(),{packetlines:n,packfile:r,progress:i}}}async function eoe({fs:e,cache:t,http:n,onProgress:r,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,gitdir:l,ref:u,remoteRef:c,remote:d,url:f,corsProxy:h,depth:p=null,since:m=null,exclude:g=[],relative:v=!1,tags:O=!1,singleBranch:y=!1,headers:b={},prune:w=!1,pruneTags:k=!1}){const x=u||await async function({fs:e,gitdir:t,fullname:n=!1,test:r=!1}){const i=await gre.resolve({fs:e,gitdir:t,ref:"HEAD",depth:2});if(r)try{await gre.resolve({fs:e,gitdir:t,ref:i})}catch(e){return}if(i.startsWith("refs/"))return n?i:Aie(i)}({fs:e,gitdir:l,test:!0}),_=await dre.get({fs:e,gitdir:l}),S=d||x&&await _.get(`branch.${x}.remote`)||"origin",P=f||await _.get(`remote.${S}.url`);if(void 0===P)throw new Gre("remote OR url");const E=c||x&&await _.get(`branch.${x}.merge`)||u||"HEAD";void 0===h&&(h=await _.get("http.corsProxy"));const C=Bie.getRemoteHelperFor({url:P}),T=await C.discover({http:n,onAuth:o,onAuthSuccess:a,onAuthFailure:s,corsProxy:h,service:"git-upload-pack",url:P,headers:b,protocolVersion:1}),$=T.auth,Q=T.refs;if(0===Q.size)return{defaultBranch:null,fetchHead:null,fetchHeadDescription:null};if(null!==p&&!T.capabilities.has("shallow"))throw new eie("shallow","depth");if(null!==m&&!T.capabilities.has("deepen-since"))throw new eie("deepen-since","since");if(g.length>0&&!T.capabilities.has("deepen-not"))throw new eie("deepen-not","exclude");if(!0===v&&!T.capabilities.has("deepen-relative"))throw new eie("deepen-relative","relative");const{oid:R,fullref:A}=gre.resolveAgainstMap({ref:E,map:Q});for(const e of Q.keys())e===A||"HEAD"===e||e.startsWith("refs/heads/")||O&&e.startsWith("refs/tags/")||Q.delete(e);const j=function(e,t){const n=e.map((e=>e.split("=",1)[0]));return t.filter((e=>{const t=e.split("=",1)[0];return n.includes(t)}))}([...T.capabilities],["multi_ack_detailed","no-done","side-band-64k","ofs-delta",`agent=${Gie.agent}`]);v&&j.push("deepen-relative");const D=y?[R]:Q.values(),M=y?[x]:await gre.listRefs({fs:e,gitdir:l,filepath:"refs"});let I=[];for(let n of M)try{n=await gre.expand({fs:e,gitdir:l,ref:n});const r=await gre.resolve({fs:e,gitdir:l,ref:n});await Zie({fs:e,cache:t,gitdir:l,oid:r})&&I.push(r)}catch(e){}I=[...new Set(I)];const z=await Yie.read({fs:e,gitdir:l}),W=function({capabilities:e=[],wants:t=[],haves:n=[],shallows:r=[],depth:i=null,since:o=null,exclude:a=[]}){const s=[];t=[...new Set(t)];let l=` ${e.join(" ")}`;for(const e of t)s.push(zie.encode(`want ${e}${l}\n`)),l="";for(const e of r)s.push(zie.encode(`shallow ${e}\n`));null!==i&&s.push(zie.encode(`deepen ${i}\n`)),null!==o&&s.push(zie.encode(`deepen-since ${Math.floor(o.valueOf()/1e3)}\n`));for(const e of a)s.push(zie.encode(`deepen-not ${e}\n`));s.push(zie.flush());for(const e of n)s.push(zie.encode(`have ${e}\n`));return s.push(zie.encode("done\n")),s}({capabilities:j,wants:D,haves:I,shallows:T.capabilities.has("shallow")?[...z]:[],depth:p,since:m,exclude:g}),N=One.from(await Mie(W)),L=await C.connect({http:n,onProgress:r,corsProxy:h,service:"git-upload-pack",url:P,auth:$,body:[N],headers:b}),F=await async function(e){const{packetlines:t,packfile:n,progress:r}=Jie.demux(e),i=[],o=[],a=[];let s=!1,l=!1;return new Promise(((u,c)=>{Die(t,(t=>{const d=t.toString("utf8").trim();if(d.startsWith("shallow")){const e=d.slice(-41).trim();40!==e.length&&c(new Bne(e)),i.push(e)}else if(d.startsWith("unshallow")){const e=d.slice(-41).trim();40!==e.length&&c(new Bne(e)),o.push(e)}else if(d.startsWith("ACK")){const[,e,t]=d.split(" ");a.push({oid:e,status:t}),t||(l=!0)}else d.startsWith("NAK")?(s=!0,l=!0):(l=!0,s=!0);l&&(e.error?c(e.error):u({shallows:i,unshallows:o,acks:a,nak:s,packfile:n,progress:r}))})).finally((()=>{l||(e.error?c(e.error):u({shallows:i,unshallows:o,acks:a,nak:s,packfile:n,progress:r}))}))}))}(L.body);L.headers&&(F.headers=L.headers);for(const n of F.shallows)if(!z.has(n))try{const{object:r}=await Dre({fs:e,cache:t,gitdir:l,oid:n}),i=new hie(r),o=await Promise.all(i.headers().parent.map((n=>Zie({fs:e,cache:t,gitdir:l,oid:n}))));0===o.length||o.every((e=>e))||z.add(n)}catch(e){z.add(n)}for(const e of F.unshallows)z.delete(e);if(await Yie.write({fs:e,gitdir:l,oids:z}),y){const t=new Map([[A,R]]),n=new Map;let r=10,i=A;for(;r--;){const e=T.symrefs.get(i);if(void 0===e)break;n.set(i,e),i=e}const o=Q.get(i);o&&t.set(i,o);const{pruned:a}=await gre.updateRemoteRefs({fs:e,gitdir:l,remote:S,refs:t,symrefs:n,tags:O,prune:w});w&&(F.pruned=a)}else{const{pruned:t}=await gre.updateRemoteRefs({fs:e,gitdir:l,remote:S,refs:Q,symrefs:T.symrefs,tags:O,prune:w,pruneTags:k});w&&(F.pruned=t)}if(F.HEAD=T.symrefs.get("HEAD"),void 0===F.HEAD){const{oid:e}=gre.resolveAgainstMap({ref:"HEAD",map:Q});for(const[t,n]of Q.entries())if("HEAD"!==t&&n===e){F.HEAD=t;break}}const U=A.startsWith("refs/tags")?"tag":"branch";F.FETCH_HEAD={oid:R,description:`${U} '${Aie(A)}' of ${P}`},(r||i)&&Die(function(e){const t=new Hie;let n="";return(async()=>{await Die(e,(e=>{for(e=e.toString("utf8"),n+=e;;){const e=Kie(n);if(-1===e)break;t.write(n.slice(0,e)),n=n.slice(e)}})),n.length>0&&t.write(n),t.end()})(),t}(F.progress),(async e=>{if(i&&await i(e),r){const t=e.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);t&&await r({phase:t[1].trim(),loaded:parseInt(t[2],10),total:parseInt(t[3],10)})}}));const X=One.from(await Mie(F.packfile));if(L.body.error)throw L.body.error;const q=X.slice(-20).toString("hex"),B={defaultBranch:F.HEAD,fetchHead:F.FETCH_HEAD.oid,fetchHeadDescription:F.FETCH_HEAD.description};if(F.headers&&(B.headers=F.headers),w&&(B.pruned=F.pruned),""!==q&&"5041434b0000000200000000"!==X.slice(0,12).toString("hex")){B.packfile=`objects/pack/pack-${q}.pack`;const n=(0,Re.join)(l,B.packfile);await e.write(n,X);const i=n=>Dre({fs:e,cache:t,gitdir:l,oid:n}),o=await Rre.fromPack({pack:X,getExternalRefDelta:i,onProgress:r});await e.write(n.replace(/\.pack$/,".idx"),await o.toBuffer())}return B}async function toe({fs:e,bare:t=!1,dir:n,gitdir:r=(t?n:(0,Re.join)(n,".git")),defaultBranch:i="master"}){try{return Cie("fs",e),Cie("gitdir",r),t||Cie("dir",n),await async function({fs:e,bare:t=!1,dir:n,gitdir:r=(t?n:(0,Re.join)(n,".git")),defaultBranch:i="master"}){if(await e.exists(r+"/config"))return;let o=["hooks","info","objects/info","objects/pack","refs/heads","refs/tags"];o=o.map((e=>r+"/"+e));for(const t of o)await e.mkdir(t);await e.write(r+"/config",`[core]\n\trepositoryformatversion = 0\n\tfilemode = false\n\tbare = ${t}\n`+(t?"":"\tlogallrefupdates = true\n")+"\tsymlinks = false\n\tignorecase = true\n"),await e.write(r+"/HEAD",`ref: refs/heads/${i}\n`)}({fs:new Eie(e),bare:t,dir:n,gitdir:r,defaultBranch:i})}catch(e){throw e.caller="git.init",e}}async function noe(e){let t=0;const n=[];await async function(e,t){const n=function(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:function(e){let t=[e];return{next:()=>Promise.resolve({done:0===t.length,value:t.pop()}),return:()=>(t=[],{}),[Symbol.asyncIterator](){return this}}}(e)}(e);for(;;){const{value:e,done:r}=await n.next();if(e&&await t(e),r)break}n.return&&n.return()}(e,(e=>{n.push(e),t+=e.byteLength}));const r=new Uint8Array(t);let i=0;for(const e of n)r.set(e,i),i+=e.byteLength;return r}var roe={request:async function({onProgress:e,url:t,method:n="GET",headers:r={},body:i}){i&&(i=await noe(i));const o=await fetch(t,{method:n,headers:r,body:i}),a=o.body&&o.body.getReader?function(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next:()=>t.read(),return:()=>(t.releaseLock(),{}),[Symbol.asyncIterator](){return this}}}(o.body):[new Uint8Array(await o.arrayBuffer())];r={};for(const[e,t]of o.headers.entries())r[e]=t;return{url:o.url,method:o.method,statusCode:o.status,statusMessage:o.statusText,body:a,headers:r}}};const ioe=roe;function ooe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aoe="/repo",soe=function(e){return class{constructor(t,n={}){ooe(this,"backend",void 0),ooe(this,"config",void 0),ooe(this,"fs",void 0),ooe(this,"pfs",void 0),ooe(this,"repositoryUrl",void 0),ooe(this,"lock",void 0),ooe(this,"sha",void 0),this.backend=new e(t,n),this.config=t,this.fs=new(dne())("decapfs"),this.pfs=this.fs.promises,this.repositoryUrl=function(e){const t=e.name;if(t.startsWith("github"))return`https://github.com/${e.repo}.git`;if(t.startsWith("gitlab"))return`https://gitlab.com/${e.repo}.git`;if(t.startsWith("gitea"))return`${e.base_url}/${e.repo}.git`;if(t.startsWith("git-gateway")){if(!e.repo)throw new Error("Repository URL mandatory for 'git-gateway' configuration (https://[...]/repoName.git)");return e.repo}throw new Error("Can't determine repository URL")}(t.backend),this.lock=Wx(),this.sha=""}async getRepository(){return await LS(this.lock,(async()=>{const e=this.config.backend.branch||"main";try{await this.pfs.stat(aoe)}catch(t){await this.pfs.mkdir(aoe),await toe({fs:this.fs,dir:aoe,defaultBranch:e})}await Tie({fs:this.fs,dir:aoe,url:this.repositoryUrl,remote:"origin",force:!0}),console.log("Fetching repo..."),await async function({fs:e,http:t,onProgress:n,onMessage:r,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:l=(0,Re.join)(s,".git"),ref:u,remote:c,remoteRef:d,url:f,corsProxy:h,depth:p=null,since:m=null,exclude:g=[],relative:v=!1,tags:O=!1,singleBranch:y=!1,headers:b={},prune:w=!1,pruneTags:k=!1,cache:x={}}){try{return Cie("fs",e),Cie("http",t),Cie("gitdir",l),await eoe({fs:new Eie(e),cache:x,http:t,onProgress:n,onMessage:r,onAuth:i,onAuthSuccess:o,onAuthFailure:a,gitdir:l,ref:u,remote:c,remoteRef:d,url:f,corsProxy:h,depth:p,since:m,exclude:g,relative:v,tags:O,singleBranch:y,headers:b,prune:w,pruneTags:k})}catch(e){throw e.caller="git.fetch",e}}({fs:this.fs,http:ioe,dir:aoe,remote:"origin",ref:e,singleBranch:!0,depth:1,onMessage:e=>console.log(e)});const t=await async function({fs:e,dir:t,gitdir:n=(0,Re.join)(t,".git"),ref:r,depth:i}){try{return Cie("fs",e),Cie("gitdir",n),Cie("ref",r),await gre.resolve({fs:new Eie(e),gitdir:n,ref:r,depth:i})}catch(e){throw e.caller="git.resolveRef",e}}({fs:this.fs,dir:aoe,ref:`origin/${e}`});console.log(`Current SHA: ${this.sha}, new SHA: ${t}`),this.sha!==t&&(console.log("Run checkout..."),await async function({fs:e,onProgress:t,onPostCheckout:n,dir:r,gitdir:i=(0,Re.join)(r,".git"),remote:o="origin",ref:a,filepaths:s,noCheckout:l=!1,noUpdateHead:u=void 0===a,dryRun:c=!1,force:d=!1,track:f=!0,cache:h={}}){try{Cie("fs",e),Cie("dir",r),Cie("gitdir",i);const p=a||"HEAD";return await Qie({fs:new Eie(e),cache:h,onProgress:t,onPostCheckout:n,dir:r,gitdir:i,remote:o,ref:p,filepaths:s,noCheckout:l,noUpdateHead:u,dryRun:c,force:d,track:f})}catch(e){throw e.caller="git.checkout",e}}({fs:this.fs,dir:aoe,ref:`origin/${e}`,noUpdateHead:!1,force:!0,track:!1,onPostCheckout:e=>{this.sha=e.newHead,console.log(`New HEAD: ${e.newHead}`)}}))}),"Failed to get async lock")}isGitBackend(){return!0}async entriesByFolder(e,t){try{await this.getRepository();const n=(await this.pfs.readdir(`${aoe}/${e}`)).filter((e=>e.endsWith(t)));return Promise.all(n.map((async t=>{const n=`${e}/${t}`,r=`${aoe}/${n}`;let i=await this.pfs.readFile(r,"utf8");return i instanceof Uint8Array&&(i=(new TextDecoder).decode(i)),{data:i,file:{path:n,id:n}}})))}catch{return[]}}async getEntry(e){await this.getRepository();let t=await this.pfs.readFile(`${aoe}/${e}`,"utf8");return t instanceof Uint8Array&&(t=(new TextDecoder).decode(t)),{file:{path:e,id:null},data:t}}status(){return this.backend.status()}authComponent(){return this.backend.authComponent()}restoreUser(e){return this.backend.restoreUser(e)}authenticate(e){return this.backend.authenticate(e)}logout(){return this.backend.logout()}getToken(){return this.backend.getToken()}traverseCursor(e,t){return this.backend.traverseCursor(e,t)}entriesByFiles(e){return this.backend.entriesByFiles(e)}unpublishedEntries(){return this.backend.unpublishedEntries()}unpublishedEntry(e){return this.backend.unpublishedEntry(e)}unpublishedEntryDataFile(e,t,n,r){return this.backend.unpublishedEntryDataFile(e,t,n,r)}unpublishedEntryMediaFile(e,t,n,r){return this.backend.unpublishedEntryMediaFile(e,t,n,r)}deleteUnpublishedEntry(e,t){return this.backend.deleteUnpublishedEntry(e,t)}persistEntry(e,t){return this.backend.persistEntry(e,t)}updateUnpublishedEntryStatus(e,t,n){return this.backend.updateUnpublishedEntryStatus(e,t,n)}publishUnpublishedEntry(e,t){return this.backend.publishUnpublishedEntry(e,t)}getMedia(e,t){return this.backend.getMedia(e,t)}getMediaFile(e){return this.backend.getMediaFile(e)}getMediaDisplayURL(e){return this.backend.getMediaDisplayURL(e)}persistMedia(e,t){return this.backend.persistMedia(e,t)}deleteFiles(e,t){return this.backend.deleteFiles(e,t)}getDeployPreview(e,t){return this.backend.getDeployPreview(e,t)}allEntriesByFolder(e,t,n,r){return this.backend.allEntriesByFolder(e,t,n,r)}}},loe={cs:{auth:{login:"Přihlásit",loggingIn:"Přihlašování…",loginWithNetlifyIdentity:"Přihlásit pomocí Netlify Identity",loginWithBitbucket:"Přihlásit pomocí Bitbucket",loginWithGitHub:"Přihlásit pomocí GitHub",loginWithGitLab:"Přihlásit pomocí GitLab",loginWithGitea:"Přihlásit pomocí Gitea",errors:{email:"Vyplňte e-mailovou adresu.",password:"Vyplňte heslo.",authTitle:"Chyba během přihlašování",authBody:"%{details}",netlifyIdentityNotFound:"Netlify Identity plugin nebyl nalezen",identitySettings:"Nastavení identity nenalezeno. Používáte-li git-gateway server nezapomeňte aktivovat službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Workflow",media:"Média",quickAdd:"Přidat"},app:{loading:"Načítání…",errorHeader:"Chyba při načítání CMS konfigurace",configErrors:"Chyba konfigurace",configNotFound:"Konfigurace nebyla nalezena",checkConfigYml:"Zkontrolujte soubor config.yml.",loadingConfig:"Načítání konfigurace…",waitingBackend:"Čekání na server…"},notFoundPage:{header:"Nenalezeno"}},collection:{sidebar:{collections:"Kolekce",allCollections:"Všechny kolekce",searchAll:"Hledat",searchIn:"Hledat v"},collectionTop:{sortBy:"Seřadit podle",viewAs:"Zobrazit jako",newButton:"Nový %{collectionLabel}",ascending:"Vzestupné",descending:"Sestupné",searchResults:'Výsledky vyhledávání pro "%{searchTerm}"',searchResultsInCollection:'Výsledky vyhledávání pro "%{searchTerm}" v kolekci %{collection}',filterBy:"Filtrovat podle",groupBy:"Seskupit podle"},entries:{loadingEntries:"Načítání záznamů",cachingEntries:"Úkládání záznamů do mezipaměti",longerLoading:"Načítání může trvat několik minut",noEntries:"Žádné záznamy"},groups:{other:"Ostatní",negateLabel:"Není %{label}"},table:{summary:"Přehled",collection:"Kolekce"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Poslední aktualizace"}},notFound:"Kolekce nebyla nalezena"},editor:{editorControl:{field:{optional:"volitelný"}},editorControlPane:{widget:{required:"%{fieldLabel} je povinný.",regexPattern:"%{fieldLabel} nesouhlasí s předepsaným vzorem: %{pattern}.",processing:"%{fieldLabel} se zpracovává.",range:"%{fieldLabel} musí být mezi %{minValue} a %{maxValue}.",min:"%{fieldLabel} musí být alespoň %{minValue}.",max:"%{fieldLabel} musí být %{maxValue} nebo méně.",rangeCount:"%{fieldLabel} musí mít %{minCount} až %{maxCount} položek.",rangeCountExact:"%{fieldLabel} musí mít přesně %{count} položek.",rangeMin:"%{fieldLabel} musí mít nejméně %{minCount} položky.",rangeMax:"%{fieldLabel} musí mít %{maxCount} nebo méně položek.",invalidPath:"'%{path}' není platnou cestou.",pathExists:"Cesta '%{path}' už existuje.",invalidColor:"Barva '%{color}' není platná.",invalidHexCode:"Hexadecimální barvy musí začínat znakem #"},i18n:{writingInLocale:"Psát v %{locale}",copyFromLocale:"Vyplnit z jiné lokalizace",copyFromLocaleConfirm:"Chcete vyplnit data z lokalizace %{locale}?\nVšechen existující obsah bude přepsán."}},editor:{onLeavePage:"Chcete opravdu opustit tuto stránku?",onUpdatingWithUnsavedChangesTitle:"Neuložené změny",onUpdatingWithUnsavedChangesBody:"Máte neuložené změny. Uložte je prosím před změnou statusu.",onPublishingNotReadyTitle:"Není připraven k publikování",onPublishingNotReadyBody:"Změňte stav na „Připraveno“ před publikováním.",onPublishingWithUnsavedChangesTitle:"Neuložené změny",onPublishingWithUnsavedChangesBody:"Máte neuložené změny, prosím uložte je před publikováním.",onPublishingTitle:"Publikovat záznam?",onPublishingBody:"Chcete opravdu publikovat tento záznam?",onUnpublishingTitle:"Zrušit publikování záznamu?",onUnpublishingBody:"Chcete opravdu zrušit publikování tohoto záznamu?",onDeleteWithUnsavedChangesTitle:"Smazat publikovaný záznam?",onDeleteWithUnsavedChangesBody:"Chcete opravdu vymazat tento publikovaný záznam a všechny neuložené změny z této relace?",onDeletePublishedEntryTitle:"Smazat publikovaný záznam?",onDeletePublishedEntryBody:"Chcete opravdu smazat tento publikovaný záznam?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:"Smazat nepublikované změny?",onDeleteUnpublishedChangesWithUnsavedChangesBody:"Tato akce vymaže všechny nepublikované změny v tomto záznamu a také všechny neuložené změny z této relace. Chcete záznam skutečně vymazat?",onDeleteUnpublishedChangesTitle:"Smazat nepublikované změny?",onDeleteUnpublishedChangesBody:"Všechny nepublikované změny v tomto záznamu budou vymazány. Chcete ho skuteně vymazat?",loadingEntry:"Načítání záznamu…"},editorInterface:{sideBySideI18n:"Lokalizace vedle sebe",preview:"Náhled",toggleI18n:"Přepnout lokalizaci",togglePreview:"Přepnout náhled",toggleScrollSync:"Sladit skrolování"},editorToolbar:{publishing:"Publikování…",publish:"Publikovat",published:"Publikovaný",unpublish:"Zrušit publikování",duplicate:"Duplikovat",unpublishing:"Rušení publikování…",publishAndCreateNew:"Publikovat a vytvořit nový",publishAndDuplicate:"Publikovat a duplikovat",deleteUnpublishedChanges:"Vymazat nepublikované změny",deleteUnpublishedEntry:"Vymazat nepublikovaný záznam",deletePublishedEntry:"Vymazat publikovaný záznam",deleteEntry:"Vymazat záznam",saving:"Ukládání…",save:"Uložit",statusInfoTooltipDraft:"Status záznamu je nastavený na draft. Pro odeslání záznamu k revizi změňte status záznamu na 'Revize'",statusInfoTooltipInReview:"Záznam je v revizi, žádné další změny od vás nejsou vyžadovány, ale i přesto můžete záznam upravovat.",deleting:"Vymazávání…",updating:"Aktualizace…",status:"Status: %{status}",backCollection:" Píšete v kolekci %{collectionLabel}",unsavedChanges:"Neuložené změny",changesSaved:"Změny uloženy",draft:"Koncept",inReview:"V revizi",ready:"Připraveno",publishNow:"Publikovat teď",deployPreviewPendingButtonLabel:"Zkontrolovat náhled",deployPreviewButtonLabel:"Zobrazit náhled",deployButtonLabel:"Zobrazit na webu",discardChanges:"Zrušit změny",discardChangesTitle:"Zrušit změny",discardChangesBody:"Opravdu chcete zrušit všechny neuložené změny?"},editorWidgets:{markdown:{bold:"Tučně",italic:"Kurzíva",strikethrough:"Přeškrtnuté",code:"Kód",codeBlock:"Blok kódu",insertCodeBlock:"Vložit blok kódu",link:"Odkaz",insertLink:"Vložit odkaz",paragraph:"Odstavec",headings:"Nadpisy",quote:"Citovat",insertQuote:"Vložit citaci",bulletedList:"Odrážkový seznam",numberedList:"Číslovaný seznam",addComponent:"Přidat součástku",richText:"Rich Text",markdown:"Markdown",type:"Pište...",decreaseIndent:"Snížit odsazení",increaseIndent:"Zvýšit odsazení",image:"Obrázek",insertImage:"Vložit obrázek",table:{table:"Tabulka",deleteColumn:"Smazat sloupec",deleteRow:"Smazat řádek",deleteTable:"Smazat tabulku",insertColumn:"Vložit sloupec",insertRow:"Vložit řádek",insertTable:"Vložit tabulku"}},image:{choose:"Vyberte obrázek",chooseMultiple:"Vyberte obrázky",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL obrázku",chooseDifferent:"Vyberte jiný obrázek",addMore:"Přidat další obrázky",remove:"Odebrat obrázek",removeAll:"Odebrat všechny obrázky"},file:{choose:"Vyberte soubor",chooseUrl:"Přidat z URL",chooseMultiple:"Vyberte soubory",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL souboru",chooseDifferent:"Vyberte jiný soubor",addMore:"Přidat další soubory",remove:"Odebrat soubor",removeAll:"Odebrat všechny soubory"},folder:{choose:"Vybrat složku",chooseUrl:"Vložit cestu na složku",chooseMultiple:"Vybrat složky",replaceUrl:"Nahradit cestou",promptUrl:"Vložte cestu na složku",chooseDifferent:"Vyberte jinou složku",addMore:"Přidat více složek",remove:"Odstranit složku",removeAll:"Odstranit všechny složky"},unknownControl:{noControl:"Žádné ovládání pro widget '%{widget}'."},unknownPreview:{noPreview:"Žádný náhled pro widget '%{widget}'."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"},datetime:{now:"Teď",invalidDateTitle:"Neplatné datum",invalidDateBody:"Datum není validní."},list:{add:"Vložit %{item}",addType:"Vložit %{item}",noValue:"Žádná hodnota"},keyvalue:{key:"Klíč",value:"Hodnota",uniqueKeys:"%{keyLabel} musí být unikátní"},code:{language:"Jazyk",selectLanguage:"Vyberte jazyk"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept",copy:"Kopírovat",copyUrl:"Kopírovat URL",copyPath:"Kopírovat cestu",copyName:"Kopírovat název",copied:"Zkopírováno"},mediaLibrary:{onDeleteTitle:"Vymazat",onDeleteBody:"Chcete skutečně vymazat označená média?",fileTooLargeTitle:"Soubor je příliš velký",fileTooLargeBody:"Soubor je příliš velký.\nSoubor musí být menší než %{size} kB.",alreadyExistsTitle:"Soubor již existuje",alreadyExistsBody:"%{filename} již existuje. Chcete ho nahradit?"},mediaLibraryModal:{noResults:"Nic nenalezeno.",noAssetsFound:"Média nenalezena.",noImagesFound:"Obrázky nenalezeny.",private:"Soukromé ",images:"Obrázky",mediaAssets:"Média",search:"Hledat…",uploading:"Nahrávání…",upload:"Nahrát nový",download:"Stáhnout",deleting:"Vymazávání…",deleteSelected:"Smazat označené",chooseSelected:"Vybrat označené",dropImages:"Odebrat obrázky pro nahrání",dropFiles:"Odebrat soubory pro nahrání"},folderSupport:{newFolder:"Nová složka",createNewFolder:"Vytvořit novou složku",enterFolderName:"Vložte název nové složky...",create:"Vytvořit",home:"Domů",up:"Nahoru",upToFolder:"Nahoru na %{folder}"}},ui:{common:{yes:"Ano",no:"Ne",okay:"OK",cancel:"Zrušit"},default:{goBackToSite:"Vrátit se na stránku"},localBackup:{hasLocalBackup:"Záloha obsahuje je lokálně"},errorBoundary:{title:"Chyba",details:"Nastala chyba – prosím ",reportIt:"nahlašte ji.",detailsHeading:"Detaily",privacyWarning:"Při otevření problému budou předvyplněny ladící data a chybová zpráva.\nProsím zkontrolujte, jestli jsou informace správné, a případně odstraňte citlivé údaje.",recoveredEntry:{heading:"Nalezený dokument",warning:"Prosím zkopírujte dokument do schránky před tím než odejte z této stránky!",copyButtonLabel:"Zkopírovat do schránky"}},settingsDropdown:{theme:"Motiv",logOut:"Odhlásit"},toast:{onFailToLoadEntries:"Chyba při načítání záznamu: %{details}",onFailToLoadDeployPreview:"Chyba při načítání náhledu: %{details}",onFailToPersist:"Chyba při ukládání záznamu: %{details}",onFailToPersistMedia:"Chyba při ukládání média: %{details}",onFailToDelete:"Chyba při vymazávání záznamu: %{details}",onFailToDeleteMedia:"Chyba při vymazávání média: %{details}",onFailToUpdateStatus:"Chyba při změně stavu záznamu: %{details}",missingRequiredField:"Vynechali jste povinné pole. Prosím vyplňte ho.",entrySaved:"Záznam uložen",entryDeleted:"Záznam smazán",entryPublished:"Záznam publikován",entryUnpublished:"Publikování záznamu zrušeno",onFailToPublishEntry:"Chyba při publikování záznamu: %{details}",onFailToUnpublishEntry:"Chyba při rušení publikování záznamu: %{details}",entryUpdated:"Stav záznamu byl změněn",onDeletePublishedEntry:"Publikovaný záznam byl smazán",onDeleteUnpublishedChanges:"Nepublikované změny byly smazány",onFailToAuth:"%{details}",onLoggedOut:"Byli jste odhlášeni, prosím zálohujte všechna data a znova se přihlašte",onBackendDown:"Backend zaznamenal výpadek. Podívejte se do %{details} pro více informací."}},workflow:{workflow:{dashboard:"Nástěnka",loading:"Načítání workflow záznamů",workflowHeading:"Schvalovací Workflow",newPost:"Nový post",description:"%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} (%{author})",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Vymazat změny",deleteNewEntry:"Vymazat nový záznam",publishChanges:"Publikovat změny",publishNewEntry:"Publikovat nový záznam"},workflowList:{onDeleteEntry:"Opravdu chcete smazat tento záznam?",onPublishingNotReadyEntry:'Pouze položky se statusem "Připraveno" mohou být publikováno. Pro umožnění publikace musíte přetáhnout kartu do sloupce "Připraveno"',onPublishEntry:"Opravdu chcete publikovat tento záznam?",draft:"Koncepty",pending_review:"V revizi",pending_publish:"Připraveno",currentEntries:"%{smart_count} záznam |||| %{smart_count} záznamů"},openAuthoring:{forkRequired:"Veřejné psaní od jiných uživatelů je povoleno. Potřebujeme zkopírovat váš github účet, pokud kopie ještě nebyla pořízena.",forkRepo:"Vytvořit kopii repozitáře",markReadyForReview:"Odeslat záznam k revizi"}}},da:{auth:{login:"Log ind",loggingIn:"Logger ind...",loginWithNetlifyIdentity:"Log ind med Netlify Identity",loginWithBitbucket:"Log ind med Bitbucket",loginWithGitHub:"Log ind med GitHub",loginWithGitLab:"Log ind med GitLab",loginWithGitea:"Log ind med Gitea",errors:{email:"Vær sikker på du har indtastet din e-mail.",password:"Indtast dit kodeord.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Kunne ikke tilgå identity opsætning. Ved brug af git-gateway som bagvedliggende service, sørg for at aktivere Identity service og Git Gateway."}},app:{header:{content:"Indhold",workflow:"Arbejdsgang",media:"Medier",quickAdd:"Hurtig opret"},app:{loading:"Indlæser...",errorHeader:"Fejl ved indlæsning af CMS opsætningen",configErrors:"Opsætningsfejl",configNotFound:void 0,checkConfigYml:"Kontroller din config.yml fil.",loadingConfig:"Indlæser opsætning...",waitingBackend:"Venter på bagvedliggende service..."},notFoundPage:{header:"Ikke fundet"}},collection:{sidebar:{collections:"Samlinger",allCollections:"Alle samlinger",searchAll:"Søg i alt",searchIn:"Søg i"},collectionTop:{sortBy:"Sorter efter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Faldende",searchResults:'Søgeresultater for "%{searchTerm}"',searchResultsInCollection:'Søgeresultater for "%{searchTerm}" i %{collection}',filterBy:"Filtrer efter",groupBy:"Grupper efter"},entries:{loadingEntries:"Indlæser dokumenter...",cachingEntries:"Caching af dokumenter...",longerLoading:"Dette kan tage adskillige minutter",noEntries:"Ingen dokumenter"},groups:{other:"Anden",negateLabel:"Ikke %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Opdateret "}},notFound:void 0},editor:{editorControl:{field:{optional:"kan udelades"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrævet.",regexPattern:"%{fieldLabel} matchede ikke: %{pattern}.",processing:"%{fieldLabel} behandles.",range:"%{fieldLabel} skal være mellem %{minValue} og %{maxValue}.",min:"%{fieldLabel} skal være mindst %{minValue}.",max:"%{fieldLabel} være være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} skal have mellem %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} skal have præcis %{count} element(er).",rangeMin:"%{fieldLabel} skal have mindst %{minCount} element(er).",rangeMax:"%{fieldLabel} skal have %{maxCount} eller færre element(er).",invalidPath:"'%{path}' er ikke en gyldig sti",pathExists:"Stien '%{path}' findes allerede",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Skriver på %{locale}",copyFromLocale:"Kopier fra et andet sprog",copyFromLocaleConfirm:"Vil du indsætte data fra sproget %{locale}?\nAlt eksisterende indhold vil blive overskrevet."}},editor:{onLeavePage:"Er du sikker på at du vil forlade siden?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Du har ændringer der ikke er gemt, gem disse før status ændres.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Skift status til "Klar" inden publicering.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Du har ændringer der ikke er gemt, gem inden publicing.",onPublishingTitle:void 0,onPublishingBody:"Er du sikker på at du vil publicere dette dokument?",onUnpublishingTitle:void 0,onUnpublishingBody:"Er du sikker på at du vil afpublicere dette dokument?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Er du sikker på at du vil slette dette tidliere publiceret dokument, samt dine nuværende ugemte ændringer fra denne session?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Er du sikker på at du vil slette dette tidliere publiceret dokument?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Alle ikke publicerede ændringer til dette dokument vil blive slettet ligesom dine nuværende ugemte ændringer fra denne session. Er du sikker på at du vil slette?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle ikke publicerede ændringer til dette dokument vil blive slettet. Er du sikker på at du vil slette?",loadingEntry:"Indlæser dokument..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publicerer...",publish:"Publicer",published:"Publiceret",unpublish:"Afpublicer",duplicate:"Kopier",unpublishing:"Afpublicerer...",publishAndCreateNew:"Publicer og opret ny",publishAndDuplicate:"Publicer og kopier",deleteUnpublishedChanges:"Slet upublicerede ændringer",deleteUnpublishedEntry:"Slet upubliceret dokument",deletePublishedEntry:"Slet publiceret dokument",deleteEntry:"Slet dokument",saving:"Gemmer...",save:"Gem",statusInfoTooltipDraft:"Status for elementet er kladde. For at afslutte og sende til gennemsyn, skift status til ‘Til gennemsyn’",statusInfoTooltipInReview:"Elementet er til gennemsyn, det er ikke nødvendigt med yderligere handlinger. Du kan dog stadig lave yderligere ændringer mens det er til gennemsyn.",deleting:"Sletter...",updating:"Opdaterer...",status:"Status: %{status}",backCollection:" Skriver til %{collectionLabel} samlingen",unsavedChanges:"Ugemte ændringer",changesSaved:"Ændringer gemt",draft:"Kladder",inReview:"Til gennemsyn",ready:"Klar",publishNow:"Publicer nu",deployPreviewPendingButtonLabel:"Lav preview",deployPreviewButtonLabel:"Vis preview",deployButtonLabel:"Vis live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Fed",italic:"Kursiv",strikethrough:void 0,code:"Kode",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Overskrifter",quote:"Citat",insertQuote:void 0,bulletedList:"Punktopstilling",numberedList:"Nummeret liste",addComponent:"Tilføj komponent",richText:"Formatteret tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Vælg et billede",chooseMultiple:"Vælg billeder",chooseUrl:"Indsæt fra URL",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for billeder",chooseDifferent:"Vælg et andet billede",addMore:"Tilføj flere billeder",remove:"Fjern billede",removeAll:"Fjern alle billeder"},file:{choose:"Vælg fil",chooseUrl:"Indsæt fra URL",chooseMultiple:"Vælg filer",replaceUrl:"Erstat med URL",promptUrl:"Indtast URL for filen",chooseDifferent:"Vælg en anden fil",addMore:"Tilføj flere filer",remove:"Fjern fil",removeAll:"Fjern alle filer"},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Ingen kontrol for '%{widget}'."},unknownPreview:{noPreview:"Ingen preview for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nu",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Tilføj %{item}",addType:"Tilføj %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladde",copy:"Kopier",copyUrl:"Kopier URL",copyPath:"Kopier sti",copyName:"Kopier navn",copied:"Kopieret"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Er du sikker på at du vil slette det valgte medie?",fileTooLargeTitle:void 0,fileTooLargeBody:"Filen er for stor.\nOpsætningen tillader ikke filer større end %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer fundet.",noImagesFound:"Ingen billeder fundet.",private:"Privat ",images:"Billeder",mediaAssets:"Medie elementer",search:"Søg...",uploading:"Uploader...",upload:"Upload",download:"Download",deleting:"Slet...",deleteSelected:"Slet valgte",chooseSelected:"Anvend valgte",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Tilbage til hjemmesiden"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Fejl",details:"Der opstod en fejl - venligst ",reportIt:"opret et issue på GitHub.",detailsHeading:"Detalger",privacyWarning:"Ved at oprette et issue forudfyldes det med fejlbeskeden og data til debugging.\nKontroller venligst at informationerne er korrekte og fjern eventuelle følsomme data.",recoveredEntry:{heading:"Gendannet dokument",warning:"Kopier dette et sted hen inden du navigerer væk!",copyButtonLabel:"Kopier til udklipsholder"}},settingsDropdown:{theme:void 0,logOut:"Log af"},toast:{onFailToLoadEntries:"Fejl ved indlæsning af dokumenter: %{details}",onFailToLoadDeployPreview:"Preview kunne ikke indlæses: %{details}",onFailToPersist:"Dokumentet kunne ikke gemmes: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Dokumentet kunne ikke slettes: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Status kunne ikke opdateres: %{details}",missingRequiredField:"Ups, du mangler et påkrævet felt. Udfyld de påkrævede felter før dokumentet gemmes.",entrySaved:"Dokumentet er gemt",entryDeleted:void 0,entryPublished:"Dokumentet er publiceret ",entryUnpublished:"Dokumentet er afpubliceret",onFailToPublishEntry:"Kunne ikke publicere på grund af en fejl: %{details}",onFailToUnpublishEntry:"Kunne ikke afpublicere på grund af en fejl: %{details}",entryUpdated:"Dokumentstatus er opdateret",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Upublicerede ændringer blev slettet",onFailToAuth:"%{details}",onLoggedOut:"Du er blevet logget ind, gem venligst evt. ændringer og log på igen",onBackendDown:"Den bagvedliggende service er ikke tilgængelig i øjeblikket. Se %{details} for mere information"}},workflow:{workflow:{dashboard:void 0,loading:"Indlæser dokumenter i redaktionel arbejdsgang",workflowHeading:"Redaktionel arbejdsgang",newPost:"Nyt indlæg",description:"%{smart_count} dokumenter afventer gennemsyn, %{readyCount} er klar til live. |||| %{smart_count} dokumenter afventer gennemsyn, %{readyCount} klar til go live. ",dateFormat:"D. MMMM"},workflowCard:{lastChange:"%{date} af %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"af %{author}",deleteChanges:"Slet ændringer",deleteNewEntry:"Slet nye dokumenter",publishChanges:"Publicer ændringer",publishNewEntry:"Publicer nye dokumenter"},workflowList:{onDeleteEntry:"Er du sikker på at du vil slette dette dokument?",onPublishingNotReadyEntry:'Kun dokumenter med "Klar" status kan publiceres. Træk kortet til "Klar" kolonnen for at tillade publicering.',onPublishEntry:"Er du sikker på at du vil publicere dokumentet?",draft:"Kladder",pending_review:"Til gennemsyn",pending_publish:"Klar",currentEntries:"%{smart_count} dokument |||| %{smart_count} dokumenter"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},de:{auth:{login:"Login",loggingIn:"Sie werden eingeloggt...",loginWithNetlifyIdentity:"Mit Netlify Identity einloggen",loginWithBitbucket:"Mit Bitbucket einloggen",loginWithGitHub:"Mit GitHub einloggen",loginWithGitLab:"Mit GitLab einloggen",loginWithGitea:"Mit Gitea einloggen",errors:{email:"Stellen Sie sicher, Ihre E-Mail-Adresse einzugeben.",password:"Bitte geben Sie Ihr Passwort ein.",authTitle:"Fehler beim Anmelden",authBody:"%{details}",netlifyIdentityNotFound:"Das Netlify Identity Plugin wurde nicht gefunden",identitySettings:"Identity-Einstellungen konnten nicht abgerufen werden. Stellen Sie bei der Verwendung des Git-Gateway Backends sicher, den Identity Service und das Git Gateway zu aktivieren."}},app:{header:{content:"Inhalt",workflow:"Arbeitsablauf",media:"Medien",quickAdd:"Schnellerstellung"},app:{loading:"Laden...",errorHeader:"Fehler beim Laden der CMS-Konfiguration.",configErrors:"Konfigurationsfehler",configNotFound:"KOnfiguration nicht gefunden",checkConfigYml:"Überprüfen Sie die config.yml Konfigurationsdatei.",loadingConfig:"Konfiguration laden...",waitingBackend:"Auf Server warten..."},notFoundPage:{header:"Nicht gefunden"}},collection:{sidebar:{collections:"Bereiche",allCollections:"Allen Bereichen",searchAll:"Alles durchsuchen",searchIn:"Suchen in"},collectionTop:{sortBy:"Sortieren nach",viewAs:"Anzeigen als",newButton:"Neue(r/s) %{collectionLabel}",ascending:"Aufsteigend",descending:"Absteigend",searchResults:'Suchergebnisse für "%{searchTerm}"',searchResultsInCollection:'Suchergebnisse für "%{searchTerm}" in %{collection}',filterBy:"Filtern nach",groupBy:"Gruppieren nach"},entries:{loadingEntries:"Beiträge werden geladen...",cachingEntries:"Beiträge werden zwischengespeichert...",longerLoading:"Diese Aktion kann einige Minuten in Anspruch nehmen",noEntries:"Keine Beiträge"},groups:{other:"Andere",negateLabel:"Nicht %{label}"},table:{summary:"Zusammenfassung",collection:"Bereich"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Änderungsdatum"}},notFound:"Bereich nicht gefunden"},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} ist erforderlich.",regexPattern:"%{fieldLabel} entspricht nicht dem Muster: %{pattern}.",processing:"%{fieldLabel} wird verarbeitet.",range:"%{fieldLabel} muss zwischen %{minValue} und %{maxValue} liegen.",min:"%{fieldLabel} muss größer als %{minValue} sein.",max:"%{fieldLabel} darf nicht größer als %{maxValue} sein.",rangeCount:"%{fieldLabel} muss %{minCount} bis %{maxCount} Element(e) enthalten.",rangeCountExact:"%{fieldLabel} muss exakt %{count} Element(e) enthalten.",rangeMin:"%{fieldLabel} muss mindestens %{minCount} Element(e) enthalten.",rangeMax:"%{fieldLabel} darf maximal %{maxCount} Element(e) enthalten.",invalidPath:"'%{path}' ist kein gültiger Pfad",pathExists:"Pfad '%{path}' existiert bereits",invalidColor:"Farbe '%{color}' is ungültig",invalidHexCode:"Hex Codes müssen mit einem #-Zeichen anfangen"},i18n:{writingInLocale:"Aktuelle Sprache: %{locale}",copyFromLocale:"Aus anderer Sprache übernehmen",copyFromLocaleConfirm:"Wollen Sie wirklich die Daten aus der Sprache %{locale} übernehmen?\nAlle bishergen Inhalte werden überschrieben."}},editor:{onLeavePage:"Möchten Sie diese Seite wirklich verlassen?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speichern Sie diese, bevor Sie den Status aktualisieren.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Bitte setzten die den Status vor dem Veröffentlichen auf "Abgeschlossen".',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speicheren Sie vor dem Veröffentlichen.",onPublishingTitle:void 0,onPublishingBody:"Soll dieser Beitrag wirklich veröffentlicht werden?",onUnpublishingTitle:void 0,onUnpublishingBody:"Soll die Veröffentlichung dieses Beitrags wirklich zurückgezogen werden?",onDeleteWithUnsavedChangesTitle:"Veröffentlichten Beitrag löschen?",onDeleteWithUnsavedChangesBody:"Möchten Sie diesen veröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeletePublishedEntryTitle:"Veröffentlichten Beitrag löschen?",onDeletePublishedEntryBody:"Soll dieser veröffentlichte Beitrag wirklich gelöscht werden?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Möchten Sie diesen unveröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle unveröffentlichten Änderungen werden gelöscht. Möchten Sie wirklich löschen?",loadingEntry:"Beitrag laden..."},editorInterface:{sideBySideI18n:"Parallele Übersetzungen",preview:"Vorschau",toggleI18n:"Übersetzungen",togglePreview:"Vorschau",toggleScrollSync:"Synchron scrollen"},editorToolbar:{publishing:"Veröffentlichen...",publish:"Veröffentlichen",published:"Veröffentlicht",unpublish:"Veröffentlichung zurückziehen",duplicate:"Duplizieren",unpublishing:"Veröffentlichung wird zurückgezogen...",publishAndCreateNew:"Veröffentlichen und neuen Beitrag erstellen",publishAndDuplicate:"Veröffentlichen und Beitrag duplizieren",deleteUnpublishedChanges:"Unveröffentlichte Änderungen verwerfen",deleteUnpublishedEntry:"Lösche unveröffentlichten Beitrag",deletePublishedEntry:"Lösche veröffentlichten Beitrag",deleteEntry:"Lösche Beitrag",saving:"Speichern...",save:"Speichern",statusInfoTooltipDraft:"Beitrag ist im Entwurfsstatus. Um ihn fertigzustellen und zur Überprüfung freizugeben, setzen Sie den Status auf ‘Zur Überprüfung‘.",statusInfoTooltipInReview:"Beitrag wird überprüft, keine weitere Aktion erforderlich. Sie können weitere Änderungen vornehmen, während die Überprüfung läuft.",deleting:"Löschen...",updating:"Aktualisieren...",status:"Status: %{status}",backCollection:"Zurück zu allen %{collectionLabel}",unsavedChanges:"Ungespeicherte Änderungen",changesSaved:"Änderungen gespeichert",draft:"Entwurf",inReview:"Zur Überprüfung",ready:"Abgeschlossen",publishNow:"Jetzt veröffentlichen",deployPreviewPendingButtonLabel:"Überprüfen ob eine Vorschau vorhanden ist",deployPreviewButtonLabel:"Vorschau anzeigen",deployButtonLabel:"Live ansehen",discardChanges:"Änderungen verwerfen",discardChangesTitle:"Änderungen verwerfen",discardChangesBody:"Sicher, dass Sie ungespeicherte Änderungen verwerfen wollen?"},editorWidgets:{markdown:{bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",code:"Code",codeBlock:"Codeblock",insertCodeBlock:"Codeblock einfügen",link:"Link",insertLink:"Link einfügen",paragraph:"Paragraph",headings:"Überschriften",quote:"Zitat",insertQuote:"Zitat einfügen",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",addComponent:"Komponente hinzufügen",richText:"Rich Text",markdown:"Markdown",type:"Tippen...",decreaseIndent:"Weniger einrücken",increaseIndent:"Einrücken",image:"Bild",insertImage:"Bild einfügen",table:{table:"Tabelle",deleteColumn:"Spalte entfernen",deleteRow:"Zeile entfernen",deleteTable:"Tabelle entfernen",insertColumn:"Spalte einfügen",insertRow:"Zeile einfügen",insertTable:"Tabelle einfügen"}},image:{choose:"Bild wählen",chooseMultiple:"Bilder wählen",chooseUrl:"Von URL hinzufügen",replaceUrl:"Mit URL ersetzen",promptUrl:"Bild-URL eingeben",chooseDifferent:"Anderes Bild wählen",addMore:"Bilder hinzufügen",remove:"Bild entfernen",removeAll:"Alle Bilder entfernen"},file:{choose:"Datei wählen",chooseUrl:"Von URL hinzufügen",chooseMultiple:"Dateien wählen",replaceUrl:"Mit URL ersetzen",promptUrl:"Datei-URL eingeben",chooseDifferent:"Andere Datei wählen",addMore:"Dateien hinzufügen",remove:"Datei entfernen",removeAll:"Alle Dateien entfernen"},folder:{choose:"Ordner wählen",chooseUrl:"Ordner-Pfad eingeben",chooseMultiple:"Ordner wählen",replaceUrl:"Mit Pfad ersetzen",promptUrl:"Ordner-Pfad eingeben",chooseDifferent:"Anderen Ordner wählen",addMore:"Ordner hinzufügen",remove:"Ordner entfernen",removeAll:"Alle Ordner entfernen"},unknownControl:{noControl:"Kein Bedienelement für Widget '%{widget}'."},unknownPreview:{noPreview:"Keine Vorschau für Widget '%{widget}'."},headingOptions:{headingOne:"Überschrift 1",headingTwo:"Überschrift 2",headingThree:"Überschrift 3",headingFour:"Überschrift 4",headingFive:"Überschrift 5",headingSix:"Überschrift 6"},datetime:{now:"Jetzt",invalidDateTitle:"Ungültiges Datum",invalidDateBody:"Das eingegebene Datum ist ungültig."},list:{add:"%{item} hinzufügen",addType:"%{item} hinzufügen",noValue:"Kein Wert"},keyvalue:{key:"Variable",value:"Wert",uniqueKeys:"%{keyLabel} muss einmalig sein"},code:{language:"Programmiersprache",selectLanguage:"Programmiersprache wählen"}}},mediaLibrary:{mediaLibraryCard:{draft:"Entwurf",copy:"Kopieren",copyUrl:"URL kopieren",copyPath:"Pfad kopieren",copyName:"Name kopieren",copied:"Kopiert"},mediaLibrary:{onDeleteTitle:"Ausgewähltes Medium löschen?",onDeleteBody:"Soll das ausgewählte Medium wirklich gelöscht werden?",fileTooLargeTitle:"Datei zu groß",fileTooLargeBody:"Datei zu groß.\nErlaubt sind nur Dateien bis %{size} kB.",alreadyExistsTitle:"Datei existiert bereits",alreadyExistsBody:"%{filename} existiert bereits. Soll sie überschrieben werden?"},mediaLibraryModal:{noResults:"Keine Egebnisse.",noAssetsFound:"Keine Medien gefunden.",noImagesFound:"Keine Bilder gefunden.",private:"Privat ",images:"Bilder",mediaAssets:"Medien",search:"Suchen...",uploading:"Hochladen...",upload:"Hochladen",download:"Download",deleting:"Löschen...",deleteSelected:"Ausgewähltes Element löschen",chooseSelected:"Ausgewähltes Element verwenden",dropImages:"Zum Hochladen Bilder hierher ziehen",dropFiles:"Zum Hochladen Dateien hierher ziehen"},folderSupport:{newFolder:"Neuer Ordner",createNewFolder:"Neuen Ordner erstellen",enterFolderName:"Ordnernamen eingeben...",create:"Erstellen",home:"Start",up:"Zurück",upToFolder:"Zurück zu %{folder}"}},ui:{common:{yes:"Ja",no:"Nein",okay:"OK",cancel:"Abbrechen"},default:{goBackToSite:"Zurück zur Seite"},localBackup:{hasLocalBackup:"Lokales Backup verfügbar"},errorBoundary:{title:"Fehler",details:"Ein Fehler ist aufgetreten - bitte ",reportIt:"berichte ihn.",detailsHeading:"Details",privacyWarning:"Beim Eröffnen eines Fehlerberichts werden automatisch die Fehlermeldung und Debugdaten eingefügt.\nBitte überprüfen Sie, ob die Informationen korrrekt sind und entfernen Sie ggfs. sensible Daten.",recoveredEntry:{heading:"Wiederhergestellter Beitrag",warning:"Bitte sichern Sie sich diese Informationen, bevor Sie die Seite verlassen!",copyButtonLabel:"In Zwischenablage speichern"}},settingsDropdown:{theme:void 0,logOut:"Abmelden"},toast:{onFailToLoadEntries:"Beitrag konnte nicht geladen werden: %{details}",onFailToLoadDeployPreview:"Vorschau konnte nicht geladen werden: %{details}",onFailToPersist:"Beitrag speichern fehlgeschlagen: %{details}",onFailToPersistMedia:"Speichern des Meidums fehlgeschlagen: %{details}",onFailToDelete:"Beitrag löschen fehlgeschlagen: %{details}",onFailToDeleteMedia:"Löschen des Mediums fehlgeschlagen: %{details}",onFailToUpdateStatus:"Status aktualisieren fehlgeschlagen: %{details}",missingRequiredField:"Oops, einige zwingend erforderliche Felder sind nicht ausgefüllt.",entrySaved:"Beitrag gespeichert",entryDeleted:void 0,entryPublished:"Beitrag veröffentlicht",entryUnpublished:"Beitrag nicht mehr öffentlich",onFailToPublishEntry:"Veröffentlichen fehlgeschlagen: %{details}",onFailToUnpublishEntry:"Veröffentlichung des Beitrags konnte nicht rückgängig gemacht werden: %{details}",entryUpdated:"Beitragsstatus aktualisiert",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Unveröffentlichte Änderungen verworfen",onFailToAuth:"%{details}",onLoggedOut:"Sie wurden ausgeloggt. Bitte sichern Sie Ihre Daten und melden Sie sich erneut an.",onBackendDown:"Der Server ist aktuell nicht erreichbar. Für weitere Informationen, siehe: %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Arbeitsablauf Beiträge laden",workflowHeading:"Redaktioneller Arbeitsablauf",newPost:"Neuer Beitrag",description:"%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} von %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"von %{author}",deleteChanges:"Änderungen verwerfen",deleteNewEntry:"Lösche neuen Beitrag",publishChanges:"Veröffentliche Änderungen",publishNewEntry:"Veröffentliche neuen Beitrag"},workflowList:{onDeleteEntry:"Soll dieser Beitrag wirklich gelöscht werden?",onPublishingNotReadyEntry:'Nur Beiträge im Status "Abgeschlossen" können veröffentlicht werden. Bitte ziehen Sie den Beitrag in die "Abgeschlossen" Spalte um die Veröffentlichung zu aktivieren.',onPublishEntry:"Soll dieser Beitrag wirklich veröffentlicht werden soll?",draft:"Entwurf",pending_review:"In Prüfung",pending_publish:"Abgeschlossen",currentEntries:"%{smart_count} Beitrag |||| %{smart_count} Beiträge"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},en:{auth:{login:"Login",loggingIn:"Logging in...",loginWithNetlifyIdentity:"Login with Netlify Identity",loginWithBitbucket:"Login with Bitbucket",loginWithGitHub:"Login with GitHub",loginWithGitLab:"Login with GitLab",loginWithGitea:"Login with Gitea",errors:{email:"Make sure to enter your email.",password:"Please enter your password.",authTitle:"Error logging in",authBody:"%{details}",netlifyIdentityNotFound:"Netlify Identity plugin not found",identitySettings:"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."}},app:{header:{content:"Contents",workflow:"Workflow",media:"Media",quickAdd:"Quick add"},app:{loading:"Loading...",errorHeader:"Error loading the CMS configuration",configErrors:"Config Errors",configNotFound:"Config not found",checkConfigYml:"Check your config.yml file.",loadingConfig:"Loading configuration...",waitingBackend:"Waiting for backend..."},notFoundPage:{header:"Not Found"}},collection:{sidebar:{collections:"Collections",allCollections:"All Collections",searchAll:"Search all",searchIn:"Search in"},collectionTop:{sortBy:"Sort by",viewAs:"View as",newButton:"New %{collectionLabel}",ascending:"Ascending",descending:"Descending",searchResults:'Search Results for "%{searchTerm}"',searchResultsInCollection:'Search Results for "%{searchTerm}" in %{collection}',filterBy:"Filter by",groupBy:"Group by"},entries:{loadingEntries:"Loading Entries...",cachingEntries:"Caching Entries...",longerLoading:"This might take several minutes",noEntries:"No Entries"},groups:{other:"Other",negateLabel:"Not %{label}"},table:{summary:"Summary",collection:"Collection"},defaultFields:{author:{label:"Author"},updatedOn:{label:"Updated On"}},notFound:"Collection not found"},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} is required.",regexPattern:"%{fieldLabel} didn't match the pattern: %{pattern}.",processing:"%{fieldLabel} is processing.",range:"%{fieldLabel} must be between %{minValue} and %{maxValue}.",min:"%{fieldLabel} must be at least %{minValue}.",max:"%{fieldLabel} must be %{maxValue} or less.",rangeCount:"%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).",rangeCountExact:"%{fieldLabel} must have exactly %{count} item(s).",rangeMin:"%{fieldLabel} must have at least %{minCount} item(s).",rangeMax:"%{fieldLabel} must have %{maxCount} or less item(s).",invalidPath:"'%{path}' is not a valid path.",pathExists:"Path '%{path}' already exists.",invalidColor:"Color '%{color}' is invalid.",invalidHexCode:"Hex codes must start with a # sign."},i18n:{writingInLocale:"Writing in %{locale}",copyFromLocale:"Fill in from another locale",copyFromLocaleConfirm:"Do you want to fill in data from %{locale} locale?\nAll existing content will be overwritten."}},editor:{onLeavePage:"Are you sure you want to leave this page?",onUpdatingWithUnsavedChangesTitle:"Unsaved changes",onUpdatingWithUnsavedChangesBody:"You have unsaved changes, please save before updating status.",onPublishingNotReadyTitle:"Not ready to publish",onPublishingNotReadyBody:'Please update status to "Ready" before publishing.',onPublishingWithUnsavedChangesTitle:"Unsaved changes",onPublishingWithUnsavedChangesBody:"You have unsaved changes, please save before publishing.",onPublishingTitle:"Publish entry?",onPublishingBody:"Are you sure you want to publish this entry?",onUnpublishingTitle:"Unpublish entry?",onUnpublishingBody:"Are you sure you want to unpublish this entry?",onDeleteWithUnsavedChangesTitle:"Delete this published entry?",onDeleteWithUnsavedChangesBody:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntryTitle:"Delete this published entry?",onDeletePublishedEntryBody:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:"Delete unpublished changes?",onDeleteUnpublishedChangesWithUnsavedChangesBody:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChangesTitle:"Delete unpublished changes?",onDeleteUnpublishedChangesBody:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"Loading entry..."},editorInterface:{sideBySideI18n:"I18n Side by Side",preview:"Preview",toggleI18n:"Toggle i18n",togglePreview:"Toggle preview",toggleScrollSync:"Sync scrolling"},editorToolbar:{publishing:"Publishing...",publish:"Publish",published:"Published",unpublish:"Unpublish",duplicate:"Duplicate",unpublishing:"Unpublishing...",publishAndCreateNew:"Publish and create new",publishAndDuplicate:"Publish and duplicate",deleteUnpublishedChanges:"Delete unpublished changes",deleteUnpublishedEntry:"Delete unpublished entry",deletePublishedEntry:"Delete published entry",deleteEntry:"Delete entry",saving:"Saving...",save:"Save",statusInfoTooltipDraft:"Entry status is set to draft. To finalize and submit it for review, set the status to �In review�",statusInfoTooltipInReview:"Entry is being reviewed, no further actions are required. However, you can still make additional changes while it is being reviewed.",deleting:"Deleting...",updating:"Updating...",status:"Status: %{status}",backCollection:" Writing in %{collectionLabel} collection",unsavedChanges:"Unsaved Changes",changesSaved:"Changes saved",draft:"Draft",inReview:"In review",ready:"Ready",publishNow:"Publish now",deployPreviewPendingButtonLabel:"Check for Preview",deployPreviewButtonLabel:"View Preview",deployButtonLabel:"View Live",discardChanges:"Discard changes",discardChangesTitle:"Discard changes",discardChangesBody:"Are you sure you want to discard the unsaved changed?"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",code:"Code",codeBlock:"Code block",insertCodeBlock:"Insert code block",link:"Link",insertLink:"Insert link",paragraph:"Paragraph",headings:"Headings",quote:"Quote",insertQuote:"Insert blockquote",bulletedList:"Bulleted List",numberedList:"Numbered List",addComponent:"Add Component",richText:"Rich Text",markdown:"Markdown",type:"Type...",decreaseIndent:"Decrease indent",increaseIndent:"Increase indent",image:"Image",insertImage:"Insert image",table:{table:"Table",deleteColumn:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",insertColumn:"Insert column",insertRow:"Insert row",insertTable:"Insert table"}},image:{choose:"Choose an image",chooseMultiple:"Choose images",chooseUrl:"Insert from URL",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the image",chooseDifferent:"Choose different image",addMore:"Add more images",remove:"Remove image",removeAll:"Remove all images"},file:{choose:"Choose a file",chooseUrl:"Insert from URL",chooseMultiple:"Choose files",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the file",chooseDifferent:"Choose different file",addMore:"Add more files",remove:"Remove file",removeAll:"Remove all files"},folder:{choose:"Choose a folder",chooseUrl:"Insert folder path",chooseMultiple:"Choose folders",replaceUrl:"Replace with path",promptUrl:"Enter path of the folder",chooseDifferent:"Choose different folder",addMore:"Add more folders",remove:"Remove folder",removeAll:"Remove all folders"},unknownControl:{noControl:"No control for widget '%{widget}'."},unknownPreview:{noPreview:"No preview for widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Now",invalidDateTitle:"Invalid date",invalidDateBody:"The date you entered is invalid."},list:{add:"Add %{item}",addType:"Add %{item}",noValue:"No value"},keyvalue:{key:"Key",value:"Value",uniqueKeys:"%{keyLabel} must be unique"},code:{language:"Language",selectLanguage:"Select language"}}},mediaLibrary:{mediaLibraryCard:{draft:"Draft",copy:"Copy",copyUrl:"Copy URL",copyPath:"Copy Path",copyName:"Copy Name",copied:"Copied"},mediaLibrary:{onDeleteTitle:"Delete selected media?",onDeleteBody:"Are you sure you want to delete selected media?",fileTooLargeTitle:"File too large",fileTooLargeBody:"File too large.\nConfigured to not allow files greater than %{size} kB.",alreadyExistsTitle:"File already exists",alreadyExistsBody:"%{filename} already exists. Do you want to replace it?"},mediaLibraryModal:{noResults:"No results.",noAssetsFound:"No assets found.",noImagesFound:"No images found.",private:"Private ",images:"Images",mediaAssets:"Media assets",search:"Search...",uploading:"Uploading...",upload:"Upload",download:"Download",deleting:"Deleting...",deleteSelected:"Delete selected",chooseSelected:"Choose selected",dropImages:"Drop images to upload",dropFiles:"Drop files to upload"},folderSupport:{newFolder:"New folder",createNewFolder:"Create new folder",enterFolderName:"Enter folder name...",create:"Create",home:"Home",up:"Up",upToFolder:"Up to %{folder}"}},ui:{common:{yes:"Yes",no:"No",okay:"OK",cancel:"Cancel"},default:{goBackToSite:"Go back to site"},localBackup:{hasLocalBackup:"Has local backup"},errorBoundary:{title:"Error",details:"There's been an error - please ",reportIt:"open an issue on GitHub.",detailsHeading:"Details",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Recovered document",warning:"Please copy/paste this somewhere before navigating away!",copyButtonLabel:"Copy to clipboard"}},settingsDropdown:{theme:"Theme",logOut:"Log Out"},toast:{onFailToLoadEntries:"Failed to load entry: %{details}",onFailToLoadDeployPreview:"Failed to load preview: %{details}",onFailToPersist:"Failed to persist entry: %{details}",onFailToPersistMedia:"Failed to persist media: %{details}",onFailToDelete:"Failed to delete entry: %{details}",onFailToDeleteMedia:"Failed to delete media: %{details}",onFailToUpdateStatus:"Failed to update status: %{details}",missingRequiredField:"Oops, you've missed a required field. Please complete before saving.",entrySaved:"Entry saved",entryDeleted:"Entry delete",entryPublished:"Entry published",entryUnpublished:"Entry unpublished",onFailToPublishEntry:"Failed to publish: %{details}",onFailToUnpublishEntry:"Failed to unpublish entry: %{details}",entryUpdated:"Entry status updated",onDeletePublishedEntry:"Published entry deleted",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:"You have been logged out, please back up any data and login again",onBackendDown:"The backend service is experiencing an outage. See %{details} for more information"}},workflow:{workflow:{dashboard:"Dashboard",loading:"Loading Editorial Workflow Entries",workflowHeading:"Editorial Workflow",newPost:"New Post",description:"%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Delete changes",deleteNewEntry:"Delete new entry",publishChanges:"Publish changes",publishNewEntry:"Publish new entry"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',onPublishEntry:"Are you sure you want to publish this entry?",draft:"Drafts",pending_review:"In Review",pending_publish:"Ready",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"},openAuthoring:{forkRequired:"Open Authoring is enabled. We need to use a fork on your github account. (If a fork already exists, we'll use that.)",forkRepo:"Fork the repo",markReadyForReview:"Mark Ready for Review"}}},es:{auth:{login:"Iniciar sesión",loggingIn:"Iniciando sesión...",loginWithNetlifyIdentity:"Iniciar sesión con Netlify Identity",loginWithBitbucket:"Iniciar sesión con Bitbucket",loginWithGitHub:"Iniciar sesión con GitHub",loginWithGitLab:"Iniciar sesión con GitLab",loginWithGitea:"Iniciar sesión con Gitea",errors:{email:"Asegúrate de introducir tu correo electrónico.",password:"Por favor introduce tu contraseña.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"No se pudo acceder a la configuración de Identity. Cuando uses el backend git-gateway asegurate de habilitar el servicio Identity y Git Gateway."}},app:{header:{content:"Contenido",workflow:"Flujo Editorial",media:"Medios",quickAdd:"Añadir rápido"},app:{loading:"Cargando...",errorHeader:"Error al cargar la configuración del CMS",configErrors:"Errores de configuración",configNotFound:void 0,checkConfigYml:"Compruebe el archivo config.yml.",loadingConfig:"Cargando configuración....",waitingBackend:"Esperando al servidor..."},notFoundPage:{header:"No encontrado"}},collection:{sidebar:{collections:"Colecciones",allCollections:void 0,searchAll:"Buscar todas",searchIn:void 0},collectionTop:{sortBy:"Ordenar por",viewAs:"Ver como",newButton:"Nuevo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Cargando entradas",cachingEntries:"Almacenando entradas en caché",longerLoading:"Esto puede tardar varios minutos",noEntries:"Ninguna entrada"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizado en"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} es obligatorio.",regexPattern:"%{fieldLabel} no coincide con el patrón: %{pattern}.",processing:"%{fieldLabel} está procesando.",range:"%{fieldLabel} debe estar entre %{minValue} y %{maxValue}.",min:"%{fieldLabel} debe ser por lo menos %{minValue}.",max:"%{fieldLabel} debe ser %{maxValue} o menos.",rangeCount:"%{fieldLabel} debe tener entre %{minCount} y %{maxCount} elemento(s).",rangeCountExact:"%{fieldLabel} debe tener exactamente %{count} elemento(s).",rangeMin:"%{fieldLabel} debe ser por lo menos %{minCount} elemento(s).",rangeMax:"%{fieldLabel} debe ser %{maxCount} o menos elemento(s).",invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"¿Estás seguro de que quieres dejar esta página?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Tiene cambios no guardados, por favor, guárdelos antes de actualizar el estado.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Por favor, actualice el estado a "Ready" antes de publicar.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Tiene cambios no guardados, por favor guárdelos antes de publicarlos.",onPublishingTitle:void 0,onPublishingBody:"¿Estás seguro de que quieres publicar esta entrada?",onUnpublishingTitle:void 0,onUnpublishingBody:"¿Estás seguro de que quieres retirar esta entrada?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"¿Está seguro de que desea eliminar esta entrada publicada, así como los cambios no guardados de la sesión actual?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"¿Estás seguro de que quieres borrar esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Esto eliminará todos los cambios no publicados de esta entrada, así como los cambios no guardados de la sesión actual. ¿Todavía quieres borrar?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Todos los cambios no publicados en esta entrada serán eliminados. ¿Todavía quieres borrar?",loadingEntry:"Cargando entrada..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Retirar",duplicate:"Duplicar",unpublishing:"Retirando...",publishAndCreateNew:"Publicar y crear nuevo",publishAndDuplicate:"Publicar y duplicar",deleteUnpublishedChanges:"Eliminar cambios no publicados",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardando...",save:"Guardar",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Eliminando...",updating:"Actualizando...",status:"Estado: %{status}",backCollection:" Escribiendo en la colección %{collectionLabel}",unsavedChanges:"Cambios no guardados",changesSaved:"Cambios guardados",draft:"Borrador",inReview:"En revisión",ready:"Listo",publishNow:"Publicar ahora",deployPreviewPendingButtonLabel:"Comprobar Vista Previa",deployPreviewButtonLabel:"Ver Vista Previa",deployButtonLabel:"Ver publicación",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Texto enriquecido",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Elige una imagen",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Elige una imagen diferente",addMore:void 0,remove:"Quita la imagen",removeAll:void 0},file:{choose:"Escoge un archivo",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Elige un archivo diferente",addMore:void 0,remove:"Remover archivo",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"No existe un control para el widget '%{widget}'."},unknownPreview:{noPreview:"No existe una vista previa para el widget '%{widget}'."},headingOptions:{headingOne:"Encabezado 1",headingTwo:"Encabezado 2",headingThree:"Encabezado 3",headingFour:"Encabezado 4",headingFive:"Encabezado 5",headingSix:"Encabezado 6"},datetime:{now:"Ahora",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Borrador",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"¿Está seguro de que desea eliminar el archivo seleccionado?",fileTooLargeTitle:void 0,fileTooLargeBody:"Archivo muy pesado.\nConfigurado para no permitir archivos más pesados que %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Sin resultados.",noAssetsFound:"Archivos no encontrados.",noImagesFound:"Imágenes no encontradas.",private:"Privado ",images:"Imágenes",mediaAssets:"Archivos multimedia",search:"Buscar...",uploading:"Subiendo...",upload:"Subir nuevo",download:"Descargar",deleting:"Eliminando...",deleteSelected:"Eliminar selección",chooseSelected:"Confirmar selección",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Regresar al sitio"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Error",details:"Se ha producido un error - por favor ",reportIt:"infórmenos de ello.",detailsHeading:"Detalles",privacyWarning:"Abrir un reporte lo rellena previamente con el mensaje de error y los datos de depuración.\nPor favor verifica que la información es correcta y elimina cualquier dato sensible.",recoveredEntry:{heading:"Documento recuperado",warning:"¡Por favor, copie/pegue esto en algún lugar antes de ir a otra página!",copyButtonLabel:"Copiar al portapapeles"}},settingsDropdown:{theme:void 0,logOut:"Cerrar sesión"},toast:{onFailToLoadEntries:"No se ha podido cargar la entrada: %{details}",onFailToLoadDeployPreview:"No se ha podido cargar la vista previa: %{details}",onFailToPersist:"No se ha podido guardar la entrada: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"No se ha podido borrar la entrada: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"No se ha podido actualizar el estado: %{details}",missingRequiredField:"Oops, no ha rellenado un campo obligatorio. Por favor, rellénelo antes de guardar.",entrySaved:"Entrada guardada",entryDeleted:void 0,entryPublished:"Entrada publicada",entryUnpublished:"Entrada retirada",onFailToPublishEntry:"No se ha podido publicar: %{details}",onFailToUnpublishEntry:"No se ha podido retirar la entrada: %{details}",entryUpdated:"Estado de entrada actualizado",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Cambios no publicados eliminados",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Cargando Entradas del Flujo Editorial",workflowHeading:"Flujo Editorial",newPost:"Nuevo artículo",description:"%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Eliminar cambios",deleteNewEntry:"Eliminar nueva entrada",publishChanges:"Publicar cambios",publishNewEntry:"Publicar nueva entrada"},workflowList:{onDeleteEntry:"¿Está seguro de que quiere borrar esta entrada?",onPublishingNotReadyEntry:'Sólo se pueden publicar los elementos con el estado "Listo". Por favor, arrastre la tarjeta hasta la columna "Listo" para permitir la publicación.',onPublishEntry:"¿Estás seguro de que quieres publicar esta entrada?",draft:"Borradores",pending_review:"En revisión",pending_publish:"Listo",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ca:{auth:{login:"Iniciar sessió",loggingIn:"Iniciant sessió...",loginWithNetlifyIdentity:"Iniciar sessió amb l'identitat de Netlify",loginWithBitbucket:"Iniciar sessió amb Bitbucket",loginWithGitHub:"Iniciar sessió amb GitHub",loginWithGitLab:"Iniciar sessió amb GitLab",loginWithGitea:"Iniciar sessió amb Gitea",errors:{email:"Comprova que has escrit el teu email.",password:"Si us plau escriu la teva contrasenya.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"No s'ha pogut obtenir accés a les configuracions d'identitat. Quan feu servir backend de git-gateway, assegureu-vos que activeu el servei d’identitat i la passarel·la de Git."}},app:{header:{content:"Contingut",workflow:"Flux Editorial",media:"Multimèdia",quickAdd:"Afegir"},app:{loading:"Carregant...",errorHeader:"Error al carregar la configuració del CMS",configErrors:"Errors de configuració",configNotFound:void 0,checkConfigYml:"Comprovi l'arxiu config.yml.",loadingConfig:"Carregant configuració....",waitingBackend:"Esperant al servidor..."},notFoundPage:{header:"No trobat"}},collection:{sidebar:{collections:"Col·leccions",allCollections:"Totes les col·leccions",searchAll:"Buscar tots",searchIn:"Buscar a"},collectionTop:{sortBy:"Ordenar per",viewAs:"Veure com",newButton:"Nou %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Buscar resultats per "%{searchTerm}"',searchResultsInCollection:'Buscar resultats per "%{searchTerm}" a %{collection}',filterBy:"Filtrar per",groupBy:"Agrupar per"},entries:{loadingEntries:"Carregant entrades",cachingEntries:"Emmagatzemant entrades a la caché",longerLoading:"Això podria tardar uns minuts",noEntries:"Cap entrada"},groups:{other:"Altre",negateLabel:"No %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualitzat el"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} és obligatori.",regexPattern:"%{fieldLabel} no coincideix amb el patró: %{pattern}.",processing:"%{fieldLabel} està processant.",range:"%{fieldLabel} ha d'estar entre %{minValue} i %{maxValue}.",min:"%{fieldLabel} ha ser com a mínim %{minValue}.",max:"%{fieldLabel} ha de ser %{maxValue} o més.",rangeCount:"%{fieldLabel} ha de tenir entre %{minCount} i %{maxCount} element(s).",rangeCountExact:"%{fieldLabel} ha de tenir exactament %{count} element(s).",rangeMin:"%{fieldLabel} ha de tenir com a mínim %{minCount} d'element(s).",rangeMax:"%{fieldLabel} ha de ser %{maxCount} o inferior.",invalidPath:"'%{path}' no és una ruta valida",pathExists:"'%{path}' ja existeix",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Escriure en %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Estàs segur que vols deixar aquesta pàgina?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Tens canvis no guardats, si us plau, guarda'ls abans d'actualitzar l'estat.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Si us plau, actualitza l\'estat a "Llest" abans de publicar.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Tens canvis no guardats, si us plau, guarda'ls abans de publicar-los.",onPublishingTitle:void 0,onPublishingBody:"Estàs segur que vols publicar aquesta entrada?",onUnpublishingTitle:void 0,onUnpublishingBody:"Estàs segur que vols esborrar aquesta entrada?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Està segur que vol eliminar aquesta entrada publicada, així com els canvis no guardats de la sessió actual?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Està segur que vol eliminar aquesta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Això eliminarà tots els canvis no publicats d'aquesta entrada així com els canvis no guardats de la sessió actual. Encara vol procedir?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Tots els canvis no publicats en aquesta entrada seràn esborrats. Encara els vol eliminar?",loadingEntry:"Carregant entrada..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Mostrar/Amagar traduccions",togglePreview:"Mostrar/Amagar previsualització",toggleScrollSync:void 0},editorToolbar:{publishing:"Publicant...",publish:"Publicar",published:"Publicat",unpublish:"Despublicar",duplicate:"Duplicar",unpublishing:"Despublicant...",publishAndCreateNew:"Publicar i crear de nou",publishAndDuplicate:"Publica i duplica",deleteUnpublishedChanges:"Eliminar canvis no publicats",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardant...",save:"Guardar",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Eliminant...",updating:"Actualizant...",status:"Estat: %{status}",backCollection:"Escrivint a la colecció %{collectionLabel}",unsavedChanges:"Canvis no guardats",changesSaved:"Canvis guardats",draft:"Esborrany",inReview:"En revisió",ready:"Llest",publishNow:"Publicar ara",deployPreviewPendingButtonLabel:"Comprovar Vista Prèvia",deployPreviewButtonLabel:"Veure Vista Prèvia",deployButtonLabel:"Veure publicació",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Negreta",italic:"Cursiva",strikethrough:void 0,code:"Codi",codeBlock:void 0,insertCodeBlock:void 0,link:"Enllaç",insertLink:void 0,paragraph:void 0,headings:"Encapçalaments",quote:void 0,insertQuote:void 0,bulletedList:"Llista",numberedList:"Llista numèrica",addComponent:"Afegir component",richText:"Text enriquit",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Escull una imatge",chooseMultiple:void 0,chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de la imatge",chooseDifferent:"Escull una imatge diferent",addMore:void 0,remove:"Treu la imatge",removeAll:void 0},file:{choose:"Escull un arxiu",chooseUrl:"Introdueix una URL",chooseMultiple:void 0,replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de l'arxiu",chooseDifferent:"Escull un arxiu diferent",addMore:void 0,remove:"Esborrar arxiu",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"No existeix un control per al widget '%{widget}'."},unknownPreview:{noPreview:"No existeix una vista prèvia per al widget '%{widget}'."},headingOptions:{headingOne:"Encapçalament 1",headingTwo:"Encapçalament 2",headingThree:"Encapçalament 3",headingFour:"Encapçalament 4",headingFive:"Encapçalament 5",headingSix:"Encapçalament 6"},datetime:{now:"Ara",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Esborrany",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar path",copyName:"Copiar nom",copied:"Copiat"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Està segur de que vol eliminar el mitjà seleccionat?",fileTooLargeTitle:void 0,fileTooLargeBody:"El fitxer és massa gran.\nLa configuració no permet fitxers més grans de %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Sense resultats.",noAssetsFound:"Arxius no trobats.",noImagesFound:"Imatges no trobades.",private:"Privat",images:"Imatges",mediaAssets:"Arxius multimèdia",search:"Buscar...",uploading:"Penjant...",upload:"Penjar nou",download:"Descarregar",deleting:"Eliminant...",deleteSelected:"Eliminar selecció",chooseSelected:"Confirmar selecció",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Torna enrere al lloc"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Error",details:"S'ha produït un error - si us plau ",reportIt:"Informa'ns d'això a GitHub.",detailsHeading:"Detalls",privacyWarning:void 0,recoveredEntry:{heading:"Document recuperat",warning:"Si us plau, copiï/enganxi això en algun lloc abans de navegar a una altre pàgina!",copyButtonLabel:"Copiar al porta-retalls"}},settingsDropdown:{theme:void 0,logOut:"Tancar sessió"},toast:{onFailToLoadEntries:"No s'ha ha pogut carregar l'entrada: %{details}",onFailToLoadDeployPreview:"No s'ha pogut carregar la vista prèvia: %{details}",onFailToPersist:"No s'ha pogut guardar l'entrada: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"No s'ha pogut eliminar l'entrada: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"No s'ha pogut actualitzar l'estat: %{details}",missingRequiredField:"Ups, no ha omplert un camp obligatori. Si us plau, ompli'l abans de guardar.",entrySaved:"Entrada guardada",entryDeleted:void 0,entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"No s'ha pogut publicar: %{details}",onFailToUnpublishEntry:"No s'ha pogut despublicar l'entrada: %{details}",entryUpdated:"Estat de l'entrada actualitzat",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Canvis no publicats eliminats",onFailToAuth:"%{details}",onLoggedOut:"La teva sessió ha estat tancada. Si us plau, torna a iniciar-la",onBackendDown:"El servidor està patint problemes. Consulta %{details} per a més informació"}},workflow:{workflow:{dashboard:void 0,loading:"Carregant Entradas del Flux Editorial",workflowHeading:"Flux Editorial",newPost:"Nou article",description:"%{smart_count} entrada esperant revisió, %{readyCount} llesta per a publicar |||| %{smart_count} entrades esperant revisió, %{readyCount} llestes per a publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} per %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"per %{author}",deleteChanges:"Eliminar canvis",deleteNewEntry:"Eliminar nova entrada",publishChanges:"Publicar canvis",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Està segur que vol borrar aquesta entrada?",onPublishingNotReadyEntry:'Només es poden publicar elements amb estat "Llest". Si us plau, arrossegui la targeta fins la columna "Llest" per a permetre\'n la publicació',onPublishEntry:"Està segur que vol publicar aquesta entrada?",draft:"Esborranys",pending_review:"En revisió",pending_publish:"Llest",currentEntries:"%{smart_count} entrada |||| %{smart_count} entrades"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},fr:{auth:{login:"Se connecter",loggingIn:"Connexion en cours...",loginWithNetlifyIdentity:"Se connecter avec Netlify Identity",loginWithBitbucket:"Se connecter avec Bitbucket",loginWithGitHub:"Se connecter avec GitHub",loginWithGitLab:"Se connecter avec GitLab",loginWithGitea:"Se connecter avec Gitea",errors:{email:"Assurez-vous d'avoir entré votre email.",password:"Merci de saisir votre mot de passe.",authTitle:"Erreur de connexion",authBody:"%{details}",netlifyIdentityNotFound:"plugin Netlify Identity non trouvé",identitySettings:"Impossible d'accéder aux paramètres d'identité. Si vous utilisez le backend git-gateway, merci de vous assurer que vous avez bien activé le service Identity et la passerelle Git."}},app:{header:{content:"Contenus",workflow:"Flux",media:"Media",quickAdd:"Ajout rapide"},app:{loading:"Chargement...",errorHeader:"Erreur au chargement de la configuration du CMS",configErrors:"Erreurs de configuration",configNotFound:"Configuration non trouvée",checkConfigYml:"Vérifiez votre fichier config.yml.",loadingConfig:"Chargement de la configuration...",waitingBackend:"En attente du serveur..."},notFoundPage:{header:"Introuvable"}},collection:{sidebar:{collections:"Collections",allCollections:"Toutes les collections",searchAll:"Tout rechercher",searchIn:"Rechercher dans"},collectionTop:{sortBy:"Trier par",viewAs:"Voir comme",newButton:"Créer une entrée de type %{collectionLabel}",ascending:"Croissant",descending:"Décroissant",searchResults:'Résultats de la recherche pour "%{searchTerm}"',searchResultsInCollection:'Résultats de la recherche pour "%{searchTerm}" dans %{collection}',filterBy:"Filtrer par",groupBy:"Grouper par"},entries:{loadingEntries:"Chargement des entrées",cachingEntries:"Mise en cache des entrées",longerLoading:"Cela peut prendre quelques minutes",noEntries:"Aucune entrée"},groups:{other:"Autre",negateLabel:"Non %{label}"},table:{summary:"Résumé",collection:"Collection"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Mis à jour le"}},notFound:"Collection non trouvée"},editor:{editorControl:{field:{optional:"optionnel"}},editorControlPane:{widget:{required:"Le champ %{fieldLabel} est requis.",regexPattern:"Le champ %{fieldLabel} ne correspond pas au schéma: %{pattern}.",processing:"Le champ %{fieldLabel} est en cours de traitement.",range:"Le champ %{fieldLabel} doit être compris entre %{minValue} et %{maxValue}.",min:"Le champ %{fieldLabel} doit avoir une valeur de %{minValue} ou plus.",max:"Le champ %{fieldLabel} doit avoir une valeur de %{maxValue} ou moins.",rangeCount:"%{fieldLabel} doit avoir entre %{minCount} et %{maxCount} élément(s).",rangeCountExact:"%{fieldLabel} doit avoir exactement %{count} éléments(s).",rangeMin:"%{fieldLabel} doit avoir au moins %{minCount} éléments(s).",rangeMax:"%{fieldLabel} doit avoir %{maxCount} éléments(s) ou moins.",invalidPath:"'%{path}' n'est pas un chemin valide",pathExists:"Le chemin '%{path}' existe déjà",invalidColor:"La couleur '%{color}' n'est pas valide.",invalidHexCode:"Les codes hexadécimaux doivent être préfixés par un signe #."},i18n:{writingInLocale:"Écrire en %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Voulez-vous vraiment quitter cette page ?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Veuillez enregistrer vos modifications avant de mettre à jour le statut.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Veuillez mettre à jour le statut à "Prêt" avant de publier.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Veuillez enregistrer vos modifications avant de publier.",onPublishingTitle:void 0,onPublishingBody:"Voulez-vous vraiment publier cette entrée ?",onUnpublishingTitle:void 0,onUnpublishingBody:"Voulez-vous vraiment dépublier cette entrée ?",onDeleteWithUnsavedChangesTitle:"Supprimer cette entrée publiée ?",onDeleteWithUnsavedChangesBody:"Voulez-vous vraiment supprimer cette entrée publiée ainsi que vos modifications non enregistrées de cette session ?",onDeletePublishedEntryTitle:"Supprimer cette entrée publiée ?",onDeletePublishedEntryBody:"Voulez-vous vraiment supprimer cette entrée publiée ?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Ceci supprimera toutes les modifications non publiées de cette entrée ainsi que vos modifications non enregistrées de cette session. Voulez-vous toujours supprimer ?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Toutes les modifications non publiées de cette entrée seront supprimées. Voulez-vous toujours supprimer ?",loadingEntry:"Chargement de l'entrée..."},editorInterface:{sideBySideI18n:"I18n Côte à Côte",preview:"Aperçu",toggleI18n:"Édition multilingue",togglePreview:"Aperçu",toggleScrollSync:"Défilement synchronisé"},editorToolbar:{publishing:"Publication...",publish:"Publier",published:"Publiée",unpublish:"Dépublier",duplicate:"Dupliquer",unpublishing:"Dépublication...",publishAndCreateNew:"Publier et créer une nouvelle entrée",publishAndDuplicate:"Publier et dupliquer",deleteUnpublishedChanges:"Supprimer les modications non publiées",deleteUnpublishedEntry:"Supprimer l'entrée non publiée",deletePublishedEntry:"Supprimer l'entrée publiée",deleteEntry:"Supprimer l'entrée",saving:"Enregistrement...",save:"Enregistrer",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Suppression...",updating:"Mise à jour...",status:"Statut: %{status}",backCollection:" Écriture dans la collection %{collectionLabel}",unsavedChanges:"Modifications non enregistrées",changesSaved:"Modifications enregistrées",draft:"Brouillon",inReview:"En cours de révision",ready:"Prêt",publishNow:"Publier maintenant",deployPreviewPendingButtonLabel:"Vérifier l'aperçu",deployPreviewButtonLabel:"Voir l'aperçu",deployButtonLabel:"Voir en direct",discardChanges:"Abandonner les modifications",discardChangesTitle:"Abandonner les modifications",discardChangesBody:"Voulez-vous vraiment supprimer vos modifications non enregistrées ?"},editorWidgets:{markdown:{bold:"Gras",italic:"Italique",strikethrough:void 0,code:"Code",codeBlock:void 0,insertCodeBlock:void 0,link:"Lien",insertLink:void 0,paragraph:void 0,headings:"Titres",quote:"Citation",insertQuote:void 0,bulletedList:"Liste à puces",numberedList:"Liste numérotée",addComponent:"Ajouter un composant",richText:"Texte enrichi",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Choisir une image",chooseMultiple:"Choisir des images",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web de l'image",chooseDifferent:"Choisir une image différente",addMore:"Ajouter plus d'images",remove:"Supprimer l'image",removeAll:"Supprimer toutes les images"},file:{choose:"Choisir un fichier",chooseUrl:"Insérer depuis une adresse web",chooseMultiple:"Choisir des fichiers",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web du fichier",chooseDifferent:"Choisir un fichier différent",addMore:"Ajouter plus de fichiers",remove:"Effacer le fichier",removeAll:"Effacer tous les fichiers"},folder:{choose:"Choisir un dossier",chooseUrl:"Insérer le chemin du dossier",chooseMultiple:"Choisir des dossiers",replaceUrl:"Remplacer par un chemin",promptUrl:"Entrer le chemin du dossier",chooseDifferent:"Choisir un dossier différent",addMore:"Ajouter plus de dossiers",remove:"Supprimer le dossier",removeAll:"Supprimer tous les dossiers"},unknownControl:{noControl:"Pas de contrôle pour le gadget '%{widget}'."},unknownPreview:{noPreview:"Pas d'aperçu pour le gadget '%{widget}'."},headingOptions:{headingOne:"Titre 1",headingTwo:"Titre 2",headingThree:"Titre 3",headingFour:"Titre 4",headingFive:"Titre 5",headingSix:"Titre 6"},datetime:{now:"Maintenant",invalidDateTitle:"Date invalide",invalidDateBody:"La date que vous avez saisi est invalide."},list:{add:"Ajouter %{item}",addType:"Ajouter une entrée de type %{item}",noValue:"Pas de valeur"},keyvalue:{key:"Clé",value:"Valeur",uniqueKeys:"%{keyLabel} doit être unique"},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Brouillon",copy:"Copier",copyUrl:"Copier l'adresse web",copyPath:"Copier le chemin d'accès",copyName:"Copier le nom",copied:"Copié"},mediaLibrary:{onDeleteTitle:"Supprimer la ressource sélectionné ?",onDeleteBody:"Voulez-vous vraiment supprimer la ressource sélectionné ?",fileTooLargeTitle:"Fichier trop volumineux",fileTooLargeBody:"Le fichier est trop volumineux.\nL'instance est configurée pour bloquer les envois de plus de %{size} kB.",alreadyExistsTitle:"Fichier déjà existant",alreadyExistsBody:"%{filename} existe déjà. Voulez-vous le remplacer ?"},mediaLibraryModal:{noResults:"Aucun résultat.",noAssetsFound:"Aucune ressource trouvée.",noImagesFound:"Aucune image trouvée.",private:"Privé ",images:"Images",mediaAssets:"Ressources",search:"Recherche...",uploading:"Téléversement...",upload:"Téléverser une nouvelle ressource",download:"Télécharger",deleting:"Suppression...",deleteSelected:"Supprimer les éléments sélectionnés",chooseSelected:"Choisir les éléments sélectionnés",dropImages:"Déposer les images à téléverser",dropFiles:"Déposer les fichiers à téléverser"},folderSupport:{newFolder:"Nouveau dossier",createNewFolder:"Créer un nouveau dossier",enterFolderName:"Entrer le nom du dossier",create:void 0,home:"Accueil",up:"Remonter",upToFolder:"Remonter vers %{folder}"}},ui:{common:{yes:"Oui",no:"Non",okay:"OK",cancel:void 0},default:{goBackToSite:"Retourner sur le site"},localBackup:{hasLocalBackup:"A une sauvegarde locale"},errorBoundary:{title:"Erreur",details:"Une erreur est survenue, veuillez ",reportIt:"la signaler sur GitHub.",detailsHeading:"Détails",privacyWarning:"Ouvrir une issue la préremplie avec le message d'erreur et des données de déboggage.\nMerci de vérifier l'exactitude des informations et de supprimer toute donnée sensible si nécessaire.",recoveredEntry:{heading:"Document récupéré",warning:"Veuillez copier/coller ceci quelque part avant de naviguer ailleurs!",copyButtonLabel:"Copier dans le presse-papier"}},settingsDropdown:{theme:void 0,logOut:"Déconnexion"},toast:{onFailToLoadEntries:"Échec du chargement de l'entrée : %{details}",onFailToLoadDeployPreview:"Échec du chargement de l'aperçu : %{details}",onFailToPersist:"Échec de l'enregistrement de l'entrée : %{details}",onFailToPersistMedia:"Échec de l'enregistrement de la ressource : %{details}",onFailToDelete:"Échec de la suppression de l'entrée : %{details}",onFailToDeleteMedia:"Échec de la suppression de la ressource : %{details}",onFailToUpdateStatus:"Échec de la mise à jour du statut : %{details}",missingRequiredField:"Oops, il manque un champ requis. Veuillez le renseigner avant de soumettre.",entrySaved:"Entrée enregistrée",entryDeleted:void 0,entryPublished:"Entrée publiée",entryUnpublished:"Entrée dépubliée",onFailToPublishEntry:"Échec de la publication : %{details}",onFailToUnpublishEntry:"Impossible de dépublier l'entrée : %{details}",entryUpdated:"Statut de l'entrée mis à jour",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Modifications non publiées supprimées",onFailToAuth:"%{details}",onLoggedOut:"Vous avez été déconnecté, merci de sauvegarder les données et vous reconnecter",onBackendDown:"Le serveur est actuellement hors-service. Pour plus d'informations : %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Chargement des entrées du flux éditorial",workflowHeading:"Flux éditorial",newPost:"Nouvel article",description:"%{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} par %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"par %{author}",deleteChanges:"Supprimer les mofications",deleteNewEntry:"Supprimer la nouvelle entrée",publishChanges:"Publier les modifications",publishNewEntry:"Publier la nouvelle entrée"},workflowList:{onDeleteEntry:"Voulez-vous vraiment supprimer cette entrée ?",onPublishingNotReadyEntry:'Seuls les éléments ayant le statut "Prêt" peuvent être publiés. Veuillez glisser/déposer la carte dans la colonne "Prêt" pour activer la publication',onPublishEntry:"Voulez-vous vraiment publier cette entrée ?",draft:"Brouillons",pending_review:"En cours de révision",pending_publish:"Prêt",currentEntries:"%{smart_count} entrée |||| %{smart_count} entrées"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},gr:{auth:{login:"Σύνδεση",loggingIn:"Σύνδεση στο...",loginWithNetlifyIdentity:"Σύνδεση μέσω Netlify",loginWithBitbucket:"Σύνδεση μέσω Bitbucket",loginWithGitHub:"Σύνδεση μέσω GitHub",loginWithGitLab:"Σύνδεση μέσω GitLab",loginWithGitea:"Σύνδεση μέσω Gitea",errors:{email:"Βεβαιωθείτε ότι έχετε εισαγάγει το email σας.",password:"Παρακαλώ εισάγετε τον κωδικό πρόσβασής σας.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Δεν είναι δυνατή η πρόσβαση στις ρυθμίσεις ταυτότητας. Όταν χρησιμοποιείτε το παρασκήνιο του git Gateway, φροντίστε να ενεργοποιήσετε την υπηρεσία Identity και το git Gateway."}},app:{header:{content:"Περιεχόμενα",workflow:"Ροής εργασίας",media:"Πολυμέσα",quickAdd:"Γρήγορη προσθήκη"},app:{loading:"Φόρτωση...",errorHeader:"Σφάλμα κατά τη φόρτωση της ρύθμισης παραμέτρων CMS",configErrors:"Σφάλματα ρύθμισης παραμέτρων",configNotFound:void 0,checkConfigYml:"Ελέγξτε το αρχείο config.yml.",loadingConfig:"Φόρτωση ρύθμισης παραμέτρων...",waitingBackend:"Αναμονή για παρασκηνιακό..."},notFoundPage:{header:"Δεν βρέθηκε"}},collection:{sidebar:{collections:"Συλλογές",allCollections:void 0,searchAll:"Αναζήτηση όλων",searchIn:void 0},collectionTop:{sortBy:void 0,viewAs:"Προβολή ως",newButton:"Νέο %{collectionLabel}",ascending:void 0,descending:void 0,searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Εγγραφές φόρτωσης",cachingEntries:"Εγγραφές προσωρινής αποθήκευσης",longerLoading:"Αυτό μπορεί να διαρκέσει αρκετά λεπτά",noEntries:void 0},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:void 0},updatedOn:{label:void 0}},notFound:void 0},editor:{editorControl:{field:{optional:"προαιρετικός"}},editorControlPane:{widget:{required:"Το %{fieldLabel} είναι απαραίτητο.",regexPattern:"Το %{fieldLabel} δεν ταιριάζει με το μοτίβο: %{pattern}.",processing:"Το %{fieldLabel} επεξεργάζεται.",range:"Το %{fieldLabel} πρέπει να είναι μεταξύ %{minValue} και %{maxValue}.",min:"Το %{fieldLabel} πρέπει να είναι τουλάχιστον %{minValue}.",max:"Το %{fieldLabel} πρέπει να είναι %{maxValue} ή μικρότερο.",rangeCount:void 0,rangeCountExact:void 0,rangeMin:void 0,rangeMax:void 0,invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Είστε βέβαιοι ότι θέλετε να αφήσετε αυτήν τη σελίδα;",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν να ενημερώσετε την κατάσταση.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Ενημερώστε την κατάσταση σε "έτοιμο" πριν από τη δημοσίευση.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν από τη δημοσίευση.",onPublishingTitle:void 0,onPublishingBody:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",onUnpublishingTitle:void 0,onUnpublishingBody:"Είστε βέβαιοι ότι θέλετε να καταργήσετε τη δημοσίευση αυτής της καταχώρησης;",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση, καθώς και τις αλλαγές που δεν αποθηκεύσατε από την τρέχουσα περίοδο λειτουργίας;",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση;",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Αυτό θα διαγράψει όλες τις μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση, καθώς και τις αλλαγές που δεν έχετε αποθηκεύσει από την τρέχουσα περίοδο λειτουργίας. Θέλετε ακόμα να διαγράψετε;",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Όλες οι μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση θα διαγραφούν. Θέλετε ακόμα να διαγράψετε;",loadingEntry:"Φόρτωση εισόδου..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Δημοσίευση...",publish:"Δημοσίευση",published:"Δημοσιεύθηκε",unpublish:"Κατάργηση δημοσίευσης",duplicate:"Διπλότυπο",unpublishing:"Κατάργηση δημοσίευσης...",publishAndCreateNew:"Δημοσίευση και δημιουργία νέων",publishAndDuplicate:"Δημοσίευση και αντίγραφο",deleteUnpublishedChanges:"Διαγραφή μη δημοσιευμένων αλλαγών",deleteUnpublishedEntry:"Διαγραφή μη δημοσιευμένης καταχώρησης",deletePublishedEntry:"Διαγραφή δημοσιευμένης καταχώρησης",deleteEntry:"Διαγραφή καταχώρησης",saving:"Εξοικονόμηση...",save:"Αποθήκευση",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Διαγραφή...",updating:"Ενημέρωση...",status:"Κατάστασης: %{status}",backCollection:" Εγγραφή στη συλλογή %{collectionLabel}",unsavedChanges:"Μη αποθηκευμένες αλλαγές",changesSaved:"Αλλαγές που αποθηκεύτηκαν",draft:"Σχέδιο",inReview:"Σε επανεξέταση",ready:"Έτοιμα",publishNow:"Δημοσίευση τώρα",deployPreviewPendingButtonLabel:"Έλεγχος για προεπισκόπηση",deployPreviewButtonLabel:"Προβολή προεπισκόπησης",deployButtonLabel:"Προβολή Live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:void 0,markdown:void 0,type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Επιλέξτε μια εικόνα",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Επιλέξτε διαφορετική εικόνα",addMore:void 0,remove:"Αφαιρέστε την εικόνα",removeAll:void 0},file:{choose:"Επιλέξτε ένα αρχείο",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Επιλέξτε διαφορετικό αρχείο",addMore:void 0,remove:"Αφαιρέστε το αρχείο",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Δεν υπάρχει έλεγχος για το widget '%{widget}'."},unknownPreview:{noPreview:"Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:void 0,invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Προσχέδιο",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Είστε βέβαιοι ότι θέλετε να διαγράψετε τα επιλεγμένα πολυμέσα;",fileTooLargeTitle:void 0,fileTooLargeBody:"Το αρχείο είναι πολύ μεγάλο.\nΔεν επιτρέπονται αρχεία μεγαλύτερα από %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Χωρίς αποτελέσματα.",noAssetsFound:"Δεν βρέθηκαν αρχεία.",noImagesFound:"Δεν βρέθηκαν εικόνες.",private:"Ιδιωτικό",images:"Εικόνες",mediaAssets:"Αρχεία πολυμέσων",search:"Αναζήτηση...",uploading:"Φόρτωμα...",upload:"Ανεβάστε νέα",download:void 0,deleting:"Διαγραφή...",deleteSelected:"Διαγραφή επιλεγμένου",chooseSelected:"Επιλέξτε επιλεγμένο",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:void 0},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Σφάλμα",details:"Υπάρχει ένα λάθος ",reportIt:"παρακαλώ να το αναφέρετε.",detailsHeading:"Λεπτομέρειες",privacyWarning:void 0,recoveredEntry:{heading:"Ανακτημένο έγγραφο",warning:"Παρακαλώ αντιγράψτε/επικολλήστε αυτό κάπου πριν πλοηγηθείτε μακριά!",copyButtonLabel:"Αντιγραφή στο Πρόχειρο"}},settingsDropdown:{theme:void 0,logOut:"Αποσύνδεση"},toast:{onFailToLoadEntries:"Απέτυχε η φόρτωση της καταχώρησης: %{details}",onFailToLoadDeployPreview:"Απέτυχε η φόρτωση της προεπισκόπησης: %{details}",onFailToPersist:"Απέτυχε η διατήρηση της καταχώρησης:% {Details}",onFailToPersistMedia:void 0,onFailToDelete:"Απέτυχε η διαγραφή της καταχώρησης: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Απέτυχε η ενημέρωση της κατάστασης: %{details}",missingRequiredField:"Ουπς, ξεχάσατε ένα απαιτούμενο πεδίο. Συμπληρώστε το πριν από την αποθήκευση.",entrySaved:"Η καταχώρηση Αποθηκεύτηκε",entryDeleted:void 0,entryPublished:"Η καταχώρηση δημοσιεύτηκε",entryUnpublished:"Μη δημοσιευμένη καταχώρηση",onFailToPublishEntry:"Η δημοσίευση απέτυχε: %{details}",onFailToUnpublishEntry:"Απέτυχε η κατάργηση δημοσίευσης καταχώρησης: %{details}",entryUpdated:"Η κατάσταση εισόδου ενημερώθηκε",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Οι μη δημοσιευμένες αλλαγές διαγράφηκαν",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Φόρτωση καταχωρήσεων ροής εργασίας σύνταξης",workflowHeading:"Ροή εργασιών",newPost:"Νέα δημοσίευση",description:"%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} από %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"από %{author}",deleteChanges:"Διαγραφή αλλαγών",deleteNewEntry:"Διαγραφή νέας καταχώρησης",publishChanges:"Δημοσίευση αλλαγών",publishNewEntry:"Δημοσίευση νέας καταχώρησης"},workflowList:{onDeleteEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την καταχώρηση;",onPublishingNotReadyEntry:'Μόνο τα στοιχεία με κατάσταση "Ready" μπορούν να δημοσιευτούν. Σύρετε την κάρτα στη στήλη "έτοιμο" για να ενεργοποιήσετε τη δημοσίευση.',onPublishEntry:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",draft:"Προσχέδια",pending_review:"Σε ανασκόπηση",pending_publish:"Έτοιμα",currentEntries:"%{smart_count} καταχωρηση |||| %{smart_count} καταχωρησεις"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},hu:{auth:{login:void 0,loggingIn:void 0,loginWithNetlifyIdentity:void 0,loginWithBitbucket:void 0,loginWithGitHub:void 0,loginWithGitLab:void 0,loginWithGitea:void 0,errors:{email:void 0,password:void 0,authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:void 0}},app:{header:{content:"Tartalom",workflow:"Munkafolyamat",media:"Média",quickAdd:"Gyors hozzáadás"},app:{loading:"Betöltés...",errorHeader:"Hiba történt a CMS konfiguráció betöltése közben",configErrors:"Configurációs hibák",configNotFound:void 0,checkConfigYml:"Ellenőrizd a config.yml filet.",loadingConfig:"Konfiguráció betöltése...",waitingBackend:"Várakozás hattérrendszerekre..."},notFoundPage:{header:"Nincs találat"}},collection:{sidebar:{collections:"Gyűjtemények",allCollections:void 0,searchAll:"Keresés mindenre",searchIn:void 0},collectionTop:{sortBy:void 0,viewAs:"Nézet mint",newButton:"Új %{collectionLabel}",ascending:void 0,descending:void 0,searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Bejegyzések betöltése",cachingEntries:"Bejegyzések cacheelése",longerLoading:"Ez még eltarthat néhany percig",noEntries:void 0},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:void 0},updatedOn:{label:void 0}},notFound:void 0},editor:{editorControl:{field:{optional:"választható"}},editorControlPane:{widget:{required:"%{fieldLabel} kötelező mező.",regexPattern:"%{fieldLabel} nem egyezik a %{pattern} mintával.",processing:"%{fieldLabel} feldolgozás alatt.",range:"%{fieldLabel}, %{minValue} és %{maxValue} értékek között kell legyen.",min:"%{fieldLabel} legalább %{minValue} kell legyen vagy több.",max:"%{fieldLabel} legalabb %{maxValue} vagy kevesebb kell legyen.",rangeCount:void 0,rangeCountExact:void 0,rangeMin:void 0,rangeMax:void 0,invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Biztos hogy el akarod hagyni az oldalt?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Mentettlen változtatások vannak, kérjük, mentse az állapot frissítése előtt.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Változtasd az állapotot "Kész"-re publikálás előtt.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Mentetlen változtatások vannak, kérjük, mentsen a publikálás előtt.",onPublishingTitle:void 0,onPublishingBody:"Publikálod ezt a bejegyzést?",onUnpublishingTitle:void 0,onUnpublishingBody:"Publikálás visszavonása erre a bejegyzésre?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Töröljük ezt a publikált bejegyzést, a többi mentetlen modositással együtt?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Töröljük ezt a publikált bejegyzést?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Ezzel törli a bejegyzés összes nem közzétett módosítását, valamint az aktuális munkamenetből nem mentett módosításokat. Még mindig törli?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"A bejegyzés összes, nem közzétett módosítása törlődik. Még mindig törli?",loadingEntry:"Bejegyzés betöltése..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publikálás...",publish:"Publikáció",published:"Publikálás",unpublish:"Publikálás visszavonása",duplicate:"Duplikált",unpublishing:"Publikálás visszavonása...",publishAndCreateNew:"Publikálás és új létrehozása",publishAndDuplicate:"Publikálás és duplikál",deleteUnpublishedChanges:"Nempublikált változtatások törlése",deleteUnpublishedEntry:"Nempublikált bejegyzés törlése",deletePublishedEntry:"Publikált bejegyzés törlése",deleteEntry:"Bejegyzés törlése",saving:"Mentés...",save:"Mentés",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Törlés...",updating:"Frissítés...",status:"Beállitása: %{status}",backCollection:" Írás a %{collectionLabel} gyűjteménybe",unsavedChanges:"Nemmentett változtatások",changesSaved:"Változások elmentve",draft:"Piszkozat",inReview:"Felülvizsgálat alatt",ready:"Kész",publishNow:"Publikálás most",deployPreviewPendingButtonLabel:"Előnézet ellenörzése",deployPreviewButtonLabel:"Előnézet megtekintése",deployButtonLabel:"Élő megtekintése",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:void 0,markdown:void 0,type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Válasszon képet",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Válasszon másik képet",addMore:void 0,remove:"Távolítsa el a képet",removeAll:void 0},file:{choose:"Válasszon fájlt",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Válasszon másik fájlt",addMore:void 0,remove:"Távolítsa el a fájlt",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Nincs vezérlés a '%{widget}' widget számára."},unknownPreview:{noPreview:"Nincs előnézet a '%{widget}' widget számára."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:void 0,invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Új %{item}",addType:"Új típus %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Piszkozat",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Biztos törli a kiválasztott média tartalmat?",fileTooLargeTitle:void 0,fileTooLargeBody:void 0,alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nincs találat.",noAssetsFound:"Nem található tartalom.",noImagesFound:"Nem található kép.",private:"Privát ",images:"Képek",mediaAssets:"Média tartalmak",search:"Keresés...",uploading:"Feltöltés...",upload:"Új feltöltés",download:void 0,deleting:"Törlés...",deleteSelected:"Kijelöltek törlése",chooseSelected:"Kijelöl",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:void 0},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Hiba",details:"Hiba történt - kérjük ",reportIt:"jelentse.",detailsHeading:"Részletek",privacyWarning:void 0,recoveredEntry:{heading:"Helyreállitott dokumentum",warning:"Kérjük mentse ezt el (vágólapra) mielőtt elhagyná az oldalt!",copyButtonLabel:"Másolás a vágólapra"}},settingsDropdown:{theme:void 0,logOut:"Kijelentkezés"},toast:{onFailToLoadEntries:"A bejegyzés betöltése nem sikerült: %{details}",onFailToLoadDeployPreview:"Az előnézet betöltése nem sikerült: %{details}",onFailToPersist:"Bejegyzés megtartása sikertelen: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"A bejegyzés törlése sikertelen: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Az állapot frissítése nem sikerült: %{details}",missingRequiredField:"Hoppá, kihagytál egy kötelező mezőt. Mentés előtt töltsd ki.",entrySaved:"Bejegyzés elmentve",entryDeleted:void 0,entryPublished:"Bejegyzés publikálva",entryUnpublished:"Bejegyzés publikálása visszavonva",onFailToPublishEntry:"Bejegyzés publikálása sikertelen: %{details}",onFailToUnpublishEntry:"Bejegyzés publikálásának visszavonása sikertelen: %{details}",entryUpdated:"Bejegyzés állapota frissült",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"A szerkesztési munkafolyamat-bejegyzések betöltése",workflowHeading:"Szerkesztői Folyamat",newPost:"New Post",description:"%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, írta %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Változtatások törlése",deleteNewEntry:"Új bejegyzés törlése",publishChanges:"Változtatások publikálása",publishNewEntry:"Új bejegyzés publikálása"},workflowList:{onDeleteEntry:"Biztosan törli ezt a bejegyzést?",onPublishingNotReadyEntry:'Csak a "Kész" állapotú tételek tehetők közzé. A közzététel engedélyezéséhez húzza a kártyát a „Kész” oszlopba.',onPublishEntry:"Biztosan közzéteszi ezt a bejegyzést?",draft:"Piszkozat",pending_review:"Vizsgálat alatt",pending_publish:"Kész",currentEntries:"%{smart_count} bejegyzés |||| %{smart_count} bejegyzések"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},it:{auth:{login:"Accedi",loggingIn:"Effettuando l'accesso...",loginWithNetlifyIdentity:"Accedi con Netlify Identity",loginWithBitbucket:"Accedi con Bitbucket",loginWithGitHub:"Accedi con GitHub",loginWithGitLab:"Accedi con GitLab",loginWithGitea:"Accedi con Gitea",errors:{email:"Assicurati di inserire la tua mail.",password:"Inserisci la tua password.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Impossibile accedere alle impostazioni di Identity. Quando usi git-gateway come backend assicurati di abilitare il servizio Itentity e Git Gateway."}},app:{header:{content:"Contenuti",workflow:"Workflow",media:"Media",quickAdd:"Aggiunta veloce"},app:{loading:"Caricamento...",errorHeader:"Errore nel caricamento della configurazione CMS",configErrors:"Errori di Configurazione",configNotFound:void 0,checkConfigYml:"Controlla il tuo file config.yml.",loadingConfig:"Caricando la configurazione...",waitingBackend:"Attendi il backend..."},notFoundPage:{header:"Non trovato"}},collection:{sidebar:{collections:"Collezioni",allCollections:void 0,searchAll:"Cerca su tutto",searchIn:void 0},collectionTop:{sortBy:void 0,viewAs:"Vedi come",newButton:"Nuovo/a %{collectionLabel}",ascending:void 0,descending:void 0,searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Caricando le voci",cachingEntries:"Cachando le voci",longerLoading:"Questa operazione potrebbe durare diversi minuti",noEntries:void 0},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:void 0},updatedOn:{label:void 0}},notFound:void 0},editor:{editorControl:{field:{optional:"opzionale"}},editorControlPane:{widget:{required:"%{fieldLabel} è richiesto.",regexPattern:"%{fieldLabel} non corrisponde allo schema: %{pattern}.",processing:"%{fieldLabel} sta elaborando.",range:"%{fieldLabel} deve essere tra %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve essere almeno %{minValue}.",max:"%{fieldLabel} deve essere %{maxValue} o meno.",rangeCount:void 0,rangeCountExact:void 0,rangeMin:void 0,rangeMax:void 0,invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Sei sicuro di voler lasciare questa pagina?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Hai delle modifiche non salvate, salvale prima di aggiornare lo status.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Aggiorna lo status a "Pronto" prima di pubblicare.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Hai delle modifiche non salvate, salvale prima di pubblicare.",onPublishingTitle:void 0,onPublishingBody:"Sei sicuro di voler pubblicare questa voce?",onUnpublishingTitle:void 0,onUnpublishingBody:"Sei sicuro di voler nascondere questa voce?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Sei sicuro di voler cancellare questa voce pubblicata e tutte le modifiche non salvate della tua sessione corrente?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Sei sicuro di voler cancellare questa voce pubblicata?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Questo cancellerà tutte le modifiche non pubblicate di questa voce, come anche tutte le modifiche non salvate della sessione corrente. Vuoi ancora cancellarle?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Tutte le modifiche non pubblicate a questa voce saranno cancellate. Vuoi ancora cancellarle?",loadingEntry:"Caricando la voce..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Pubblicando...",publish:"Pubblica",published:"Pubblicato",unpublish:"Rimuovi dalla pubblicazione",duplicate:"Duplica",unpublishing:"Rimuovendo dalla pubblicazione...",publishAndCreateNew:"Pubblica e creane uno nuovo",publishAndDuplicate:"Pubblica e duplica",deleteUnpublishedChanges:"Cancella le modifiche non pubblicate",deleteUnpublishedEntry:"Cancella le voci non pubblicate",deletePublishedEntry:"Cancella la voce pubblicata",deleteEntry:"Cancella voce",saving:"Salvando...",save:"Salva",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Cancellando...",updating:"Aggiornando...",status:"Status: %{status}",backCollection:" Scrivendo nella sezione %{collectionLabel}",unsavedChanges:"Modifiche non salvate",changesSaved:"Modifiche salvate",draft:"Bozza",inReview:"In revisione",ready:"Pronto",publishNow:"Pubblica ora",deployPreviewPendingButtonLabel:"Controlla l'anteprima",deployPreviewButtonLabel:"Guarda l'anteprima",deployButtonLabel:"Guarda Live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:void 0,markdown:void 0,type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Scegli un'immagine",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Scegli un'immagine diversa",addMore:void 0,remove:"Rimuovi immagine",removeAll:void 0},file:{choose:"Scegli un file",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Scegli un altro file",addMore:void 0,remove:"Rimuovi il file",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Nessun controllo per il widget '%{widget}'."},unknownPreview:{noPreview:"Nessuna preview per il widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:void 0,invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Bozza",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Sei sicuro di voler cancellare il media selezionato?",fileTooLargeTitle:void 0,fileTooLargeBody:"File troppo grande.\nConfigurato per non accettare file piú grandi di %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nessun risultato.",noAssetsFound:"Nessun assets trovato.",noImagesFound:"Nessuna immagine trovata.",private:"Privato ",images:"Immagini",mediaAssets:"Media assets",search:"Cerca...",uploading:"Uploading...",upload:"Upload",download:void 0,deleting:"Deleting...",deleteSelected:"Cancella selezionato",chooseSelected:"Prendi selezionato",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:void 0},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Errore",details:"C'è stato un errore - per favore ",reportIt:"riportalo.",detailsHeading:"Dettagli",privacyWarning:void 0,recoveredEntry:{heading:"Documento recuperato",warning:"Per favore copia/incollalo da qualche parte prima di navigare altrove!",copyButtonLabel:"Copialo negli appunti"}},settingsDropdown:{theme:void 0,logOut:"Esci"},toast:{onFailToLoadEntries:"Caricamento voce non riuscito: %{details}",onFailToLoadDeployPreview:"Caricamento della preview non riuscito: %{details}",onFailToPersist:"Salvataggio della voce non riuscito: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Cancellazione della voce non riuscita: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Aggiornamento dello status non riuscito: %{details}",missingRequiredField:"Oops, ti sei perso un campo obbligatorio. Per favore completalo prima di salvare.",entrySaved:"Voce salvata",entryDeleted:void 0,entryPublished:"Voce pubblicata",entryUnpublished:"Voce rimossa dalla pubblicazione",onFailToPublishEntry:"Pubblicazione fallita: %{details}",onFailToUnpublishEntry:"Rimozione della pubblicazione fallita: %{details}",entryUpdated:"Status della voce aggiornato",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Modifiche non pubblicate cancellate",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Caricando le voci del Flusso Editoriale",workflowHeading:"Flusso Editoriale",newPost:"Nuovo Post",description:"%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} da %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"da %{author}",deleteChanges:"Cancella le modifiche",deleteNewEntry:"Cancella nuova voce",publishChanges:"Pubblica modifiche",publishNewEntry:"Pubblica una nuova voce"},workflowList:{onDeleteEntry:"Sei sicuro di voler cancellare questa voce?",onPublishingNotReadyEntry:'Solo gli oggetti con lo status "Pronto" possono essere pubblicati. Sposta la Card nella colonna "Pronto" per abilitare la pubblicazione.',onPublishEntry:"Sei sicuro di voler pubblicare questa voce?",draft:"Bozze",pending_review:"In Revisione",pending_publish:"Pronto",currentEntries:"%{smart_count} voce |||| %{smart_count} voci"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},lt:{auth:{login:"Prisijungti",loggingIn:"Prisijungiama...",loginWithNetlifyIdentity:"Prisijungti su Netlify Identity",loginWithBitbucket:"Prisijungti su Bitbucket",loginWithGitHub:"Prisijungti su GitHub",loginWithGitLab:"Prisijungti su GitLab",loginWithGitea:"Prisijungti su Gitea",errors:{email:"Įveskite savo elektroninį paštą.",password:"Įveskite savo slaptažodį.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Deja, nepavyksta pasiekti Identity paslaugos nustatymus. Kai naudojate git-gateway backend metodą, įjunkite „Identity service“ ir „Git Gateway“."}},app:{header:{content:"Turinys",workflow:"Darbo eiga",media:"Medija",quickAdd:"Sukurti naują"},app:{loading:"Kraunama...",errorHeader:"Klaida, neišėjo užkrauti/pasiekti CMS konfigūracijos failą",configErrors:"Konfigūracijos (nustatymų) klaidos",configNotFound:void 0,checkConfigYml:"Patikrinkite config.yml balsą.",loadingConfig:"Kraunamas nustatymų (konfigūracijos) failas...",waitingBackend:"Laukiama serverio..."},notFoundPage:{header:"Nerasta"}},collection:{sidebar:{collections:"Kolekcijos",allCollections:"Visos kolekcijos",searchAll:"Ieškoti viską",searchIn:"Ieškoti tik čia"},collectionTop:{sortBy:"Rikiavimo tvarka",viewAs:"Peržiūrėti kaip",newButton:"Nauja(s) %{collectionLabel}",ascending:"Didėjimo tvarka (A-Z)",descending:"Mažėjimo tvarka (Z-A)",searchResults:"Paieškos rezultatai: „%{searchTerm}“",searchResultsInCollection:"Paieškos rezultatai: „%{searchTerm}“ iš %{collection}",filterBy:"Filtruoti",groupBy:"Grupuoti"},entries:{loadingEntries:"Kraunamas turinys...",cachingEntries:"Talpinami įrašai...",longerLoading:"Šis procesas gali trukti keletą minučių",noEntries:"Nėra turinio"},groups:{other:"Kita",negateLabel:"Ne %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autorius"},updatedOn:{label:"Atnaujinta"}},notFound:void 0},editor:{editorControl:{field:{optional:"neprivaloma"}},editorControlPane:{widget:{required:"Privaloma užpildyti laukelį %{fieldLabel}.",regexPattern:"%{fieldLabel} laukelis neatitiko konfigūracijoje nustatytų taisyklių: %{pattern}.",processing:"Apdorojame %{fieldLabel}.",range:"%{fieldLabel} turi būti tarp %{minValue} ir %{maxValue}.",min:"%{fieldLabel} turi būti bent %{minValue}.",max:"%{fieldLabel} turi būti %{maxValue} arba mažiau.",rangeCount:"%{fieldLabel} turi būti tarp %{minCount} ir %{maxCount} elementų/-o.",rangeCountExact:"%{fieldLabel} turi turėti būtent tik %{count} elementų/-us.",rangeMin:"%{fieldLabel} turi būti bent %{minCount} elementų.",rangeMax:"%{fieldLabel} turi būti %{maxCount} arba mažiau elementų.",invalidPath:"'%{path}' nėra taisyklinga nuoroda/adresas į resursą/-us",pathExists:"Adresas '%{path}' jau egzistuoja",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Rašome %{locale} kalboje",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Ar tikrai norite uždaryti šį puslapį?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Turite neišsaugotų pakeitimų! Prašome išsaugoti prieš pakeičiant statusą.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"Prieš publikuojant, privalote pakeisti statusą į „Paruošta“.",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Yra neišsaugotų pakeitimų, prašome išsaugoti juos prieš publikuojant.",onPublishingTitle:void 0,onPublishingBody:"Ae tikrai norite publikuoti šį įrašą?",onUnpublishingTitle:void 0,onUnpublishingBody:"Tikrai norite panaikinti publikavimo statusą?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Tikrai norite panaikinti publikuotą įrašą ir Jūsų pakeiitmus iš dabartinės sesijos?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Tikrai norite ištrinti šį publikuotą įrašą?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Tai ištrins visus nepublikuotus pakeitimus įraše, taip pat neišsaugotus pakeitimus per dabartinę sesiją. Vis tiek norite trinti?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Visi Jūsų pakeitimai įraše bus panaikinti. Ar tikrai norite trinti jį?",loadingEntry:"Kraunamas įrašas..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publikuojama...",publish:"Publikuoti",published:"Jau publikuota",unpublish:"Atšaukti paskelbimą",duplicate:"Daryti dublį",unpublishing:"Nebeskelbiama...",publishAndCreateNew:"Publikuoti šitą, po to kurti kažką naujo",publishAndDuplicate:"Publikuoti šitą, po to kurti šito dublį",deleteUnpublishedChanges:"Ištrinti publikuotus pakeitimus",deleteUnpublishedEntry:"Ištrinti nepaskelbtą įrašą",deletePublishedEntry:"Ištrinti paskelbtą įrašą",deleteEntry:"Panaikinti įrašą",saving:"Išsaugojama...",save:"Išsaugoti",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Trinama...",updating:"Atnaujinama...",status:"Statusą: %{status}",backCollection:" Rašoma %{collectionLabel} kolekcijoje",unsavedChanges:"Neišsaugoti pakeitimai",changesSaved:"Pakeitimai išsauogti",draft:"Juodraštis",inReview:"Peržiūrima redakcijoje",ready:"Paruošta",publishNow:"Skelbti naują",deployPreviewPendingButtonLabel:"Tikrinti, ar yra demonstracija",deployPreviewButtonLabel:"Žiūrėti demonstraciją (netiesiogiai)",deployButtonLabel:"Žiūrėti tiesiogiai tinklalapyje",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Paryškinta",italic:"Pasvariu tekstu (italic)",strikethrough:void 0,code:"Kodo šriftas",codeBlock:void 0,insertCodeBlock:void 0,link:"Nuoroda (adresas)",insertLink:void 0,paragraph:void 0,headings:"Antraštės",quote:"Citata",insertQuote:void 0,bulletedList:"Sąrašas su ženkleliais",numberedList:"Sąrašas su numeriais",addComponent:"Pridėti komponentą",richText:"Normali peržiūra",markdown:"Rodyti be formatavimo (Markdown)",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Pasirinkti vaizdą",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Pasirinkti skirtingą vaizdą",addMore:void 0,remove:"Panaikinti vaizdą",removeAll:void 0},file:{choose:"Pasirinkti failą",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Pasirinkti kitą failą",addMore:void 0,remove:"Panaikinti failą",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Klaida: valdiklis taisyklingai neveikia. No control for widget '%{widget}'."},unknownPreview:{noPreview:"Klaida: valdiklis taisyklingai neveikia. No preview for widget '%{widget}'."},headingOptions:{headingOne:"Antraštė 1",headingTwo:"Antraštė 2",headingThree:"Antraštė 3",headingFour:"Antraštė 4",headingFive:"Antraštė 5",headingSix:"Antraštė 6"},datetime:{now:"Dabar",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Juodraštis",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Ar jūs tikrai norite ištrinti pasirinktą mediją?",fileTooLargeTitle:void 0,fileTooLargeBody:"Failas per didelis.\nNustatymuose (konfigūracijoje) nurodyta, kad failai negali viršyti %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nėra rezultatų.",noAssetsFound:"Turinio nerasta.",noImagesFound:"Vaizdų nerasta.",private:"Privatu ",images:"Vaizdai",mediaAssets:"Medijos turinys",search:"Paieška...",uploading:"Keliama...",upload:"Įkelti",download:"Parsiųsti",deleting:"Trinama...",deleteSelected:"Ištrinti parinktus",chooseSelected:"Pasirinkti parinktus",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Grįžti atgal į tinklalapį"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Klaida",details:"Buvo klaida - jeigu galite, prašome ",reportIt:"pranešti apie techninę problemą „GitHub“ puslapyje.",detailsHeading:"Detalės",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Sugrąžintas dokumentas",warning:"Prašome kopijuoti/įkluoti šitą kažkur prieš uždarant puslapį!",copyButtonLabel:"Nukopijuoti į iškarpinę"}},settingsDropdown:{theme:void 0,logOut:"Atsijungti"},toast:{onFailToLoadEntries:"Nepavyko užkrauti įrašo: %{details}",onFailToLoadDeployPreview:"Nepavyko užkrauti demonstracijos lango: %{details}",onFailToPersist:"Nepavyko išlaikyti įrašo: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Nepayvko ištrinti: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Nepavyko pakeisti statusą: %{details}",missingRequiredField:"Pasitikrinkite — kažkurio (ar kelių) laukelių neužpildėte. Tai padarius galėsite išsaugoti įrašą.",entrySaved:"Įrašas išsaugotos",entryDeleted:void 0,entryPublished:"Įrašas publikuotas",entryUnpublished:"Įrašas nepublikuotas",onFailToPublishEntry:"Nepavyko publikuoti: %{details}",onFailToUnpublishEntry:"Nepavyko panaikinti publikavimą: %{details}",entryUpdated:"Įrašo statusas pakeistas",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Nepublikuoti pakeitimai ištrinti",onFailToAuth:"Nepavyko prisijungti: %{details}",onLoggedOut:"Mes jus atjungėme. Jeigu yra poreikis, sukurkite duomenų atsarginę kopiją. Galite tiesiog iš naujo prisijungti.",onBackendDown:"Deja, serveris šiuo metu neveikia. Bandykite iš naujo dar sykį arba šiek tiek vėliau. Detalės: %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Kraunamas turinys",workflowHeading:"Redakcijos darbo eiga",newPost:"Naujas įrašas",description:"%{smart_count} įrašas laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojamas. |||| %{smart_count} elementai laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojami. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} pagal %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"oagal %{author}",deleteChanges:"Trinti keitimus",deleteNewEntry:"Trinti naują įrašą",publishChanges:"Publikuoti keitimus",publishNewEntry:"Kurti naują įrašą"},workflowList:{onDeleteEntry:"Ar tikrai norite ištrinti šį įrašą?",onPublishingNotReadyEntry:"Tik įrašai su statusu „Paruošta“ gali būti patvirtinti. Prašome pajudinti įrašo kortelę link „Paruošta“ stulpelio, kad galėtumėte publikuoti įrašą.",onPublishEntry:"Ar jūs tikrai norite publikuoti šį įrašą?",draft:"Juodraščiai",pending_review:"Peržiūrima redakcijoje",pending_publish:"Paruošta",currentEntries:"%{smart_count} įrašas |||| %{smart_count} įrašai"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ja:{auth:{login:"ログイン",loggingIn:"ログインしています...",loginWithNetlifyIdentity:"Netlify Identity でログインする",loginWithBitbucket:"Bitbucket でログインする",loginWithGitHub:"GitHub でログインする",loginWithGitLab:"GitLab でログインする",loginWithGitea:"Gitea でログインする",errors:{email:"メールアドレスを確認してください。",password:"パスワードを入力してください。",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"認証情報にアクセスできませんでした。git-gateway backend を利用している場合は、認証サービスと Git Gateway が有効になっているかを確認してください。"}},app:{header:{content:"コンテンツ",workflow:"ワークフロー",media:"メディア",quickAdd:"新規作成"},app:{loading:"読込中...",errorHeader:"CMS設定の読み込みエラー",configErrors:"設定エラー",configNotFound:void 0,checkConfigYml:"config.ymlを確認してください。",loadingConfig:"設定を読み込んでいます...",waitingBackend:"バックエンドの応答を待機しています..."},notFoundPage:{header:"ページが見つかりません"}},collection:{sidebar:{collections:"コレクション",allCollections:"すべてのコレクション",searchAll:"検索",searchIn:"検索対象"},collectionTop:{sortBy:"ソート",viewAs:"表示モード",newButton:"%{collectionLabel}を作成",ascending:"昇順",descending:"降順",searchResults:"「%{searchTerm}」の検索結果",searchResultsInCollection:"%{collection}内の「%{searchTerm}」の検索結果",filterBy:"絞り込み",groupBy:"グルーピング"},entries:{loadingEntries:"エントリを読み込み中",cachingEntries:"エントリをキャッシュ中",longerLoading:"少々お待ちください",noEntries:"エントリがありません"},groups:{other:"その他",negateLabel:"%{label}以外"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"作成者"},updatedOn:{label:"最終更新"}},notFound:void 0},editor:{editorControl:{field:{optional:"任意"}},editorControlPane:{widget:{required:"%{fieldLabel}は必須です。",regexPattern:"%{fieldLabel}が入力規則(%{pattern})と一致しません。",processing:"%{fieldLabel}を処理しています。",range:"%{fieldLabel}は%{minValue}から%{maxValue}まで入力可能です。",min:"%{fieldLabel}の最小値は%{minValue}です。",max:"%{fieldLabel}の最大値は%{maxValue}です。",rangeCount:"%{fieldLabel}は%{minCount}個から%{maxCount}個まで選択してください。",rangeCountExact:"%{fieldLabel}はちょうど%{count}個選択してください。",rangeMin:"%{fieldLabel}は%{minCount}個以上選択してください。",rangeMax:"%{fieldLabel}は%{maxCount}個以下選択してください。",invalidPath:"'%{path}'は有効なパスではありません。",pathExists:"'%{path}'というパスはすでに存在しています。",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"言語: %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"このページから遷移しますか?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"変更した項目があります。ステータスを更新する前に保存してください。",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"公開する前に、ステータスを「準備完了」に更新してください。",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"変更した項目があります。公開する前に保存してください。",onPublishingTitle:void 0,onPublishingBody:"このエントリを公開しますか?",onUnpublishingTitle:void 0,onUnpublishingBody:"このエントリを未公開にしますか?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"保存されていない変更も削除されますが、この公開エントリを削除しますか?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"この公開エントリを削除しますか?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"保存されていない変更も削除されますが、このエントリの未公開の変更を削除しますか?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"公開されていない変更も削除されますが、このエントリを削除しますか?",loadingEntry:"エントリの読込中..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"言語を切り替える",togglePreview:"プレビュー表示を切り替える",toggleScrollSync:"スクロール同期を切り替える"},editorToolbar:{publishing:"公開しています...",publish:"公開",published:"公開済",unpublish:"未公開",duplicate:"複製",unpublishing:"未公開にしています...",publishAndCreateNew:"公開して新規作成",publishAndDuplicate:"公開して複製する",deleteUnpublishedChanges:"未公開の変更を削除",deleteUnpublishedEntry:"未公開エントリを削除",deletePublishedEntry:"公開エントリを削除",deleteEntry:"エントリを削除",saving:"保存中...",save:"保存",statusInfoTooltipDraft:"エントリのステータスは下書きに設定されています。最終決定してレビューに提出するには、ステータスを「レビュー中」に設定します。",statusInfoTooltipInReview:"エントリはレビュー中なので、それ以上のアクションは必要ありません。ただし、レビュー中でも追加の変更を行うことができます。",deleting:"削除しています...",updating:"更新しています...",status:"ステータス: %{status}",backCollection:"%{collectionLabel}のエントリを作成中",unsavedChanges:"未保存",changesSaved:"保存済",draft:"下書き",inReview:"レビュー中",ready:"準備完了",publishNow:"公開する",deployPreviewPendingButtonLabel:"プレビューのチェック",deployPreviewButtonLabel:"プレビューを見る",deployButtonLabel:"ライブで見る",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"太字",italic:"斜体",strikethrough:void 0,code:"コード",codeBlock:void 0,insertCodeBlock:void 0,link:"リンク",insertLink:void 0,paragraph:void 0,headings:"見出し",quote:"引用",insertQuote:void 0,bulletedList:"箇条書き",numberedList:"番号付きリスト",addComponent:"コンポーネント追加",richText:"リッチテキスト",markdown:"マークダウン",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"画像を選択",chooseMultiple:void 0,chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"画像のURLを入力してください",chooseDifferent:"他の画像を選択",addMore:void 0,remove:"画像を削除",removeAll:void 0},file:{choose:"ファイルを選択",chooseUrl:"URLを入力する",chooseMultiple:void 0,replaceUrl:"URLを変更する",promptUrl:"ファイルのURLを入力してください",chooseDifferent:"他のファイルを選択",addMore:void 0,remove:"ファイルを削除",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"'%{widget}'はウィジェットとして利用できません。"},unknownPreview:{noPreview:"'%{widget}'のウィジェットにはプレビューがありません。"},headingOptions:{headingOne:"見出し 1",headingTwo:"見出し 2",headingThree:"見出し 3",headingFour:"見出し 4",headingFive:"見出し 5",headingSix:"見出し 6"},datetime:{now:"現時刻",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"下書き",copy:"コピー",copyUrl:"URLをコピー",copyPath:"パスをコピー",copyName:"名前をコピー",copied:"コピーしました"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"選択しているデータを削除しますか?",fileTooLargeTitle:void 0,fileTooLargeBody:"ファイルサイズが大きすぎます。\n%{size} kB 以下にしてください。",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"データがありません。",noAssetsFound:"データがありません。",noImagesFound:"データがありません。",private:"プライベート",images:"画像",mediaAssets:"メディア",search:"検索",uploading:"アップロード中...",upload:"アップロードする",download:"ダウンロードする",deleting:"削除中...",deleteSelected:"削除する",chooseSelected:"選択する",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"サイトに戻る"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"エラー",details:"エラーが発生しました。",reportIt:"レポートする",detailsHeading:"詳細",privacyWarning:"エラーメッセージとデバッグのデータがレポートする前に表示されます。\n情報が正しいことを確認し、機密データが存在する場合は削除してください。",recoveredEntry:{heading:"復旧したエントリ",warning:"必要あれば、このページから遷移する前にコピーしてください。",copyButtonLabel:"コピーする"}},settingsDropdown:{theme:void 0,logOut:"ログアウト"},toast:{onFailToLoadEntries:"エントリの読み込みに失敗しました。%{details}",onFailToLoadDeployPreview:"プレビューの読み込みに失敗しました。%{details}",onFailToPersist:"エントリの保存に失敗しました。%{details}",onFailToPersistMedia:void 0,onFailToDelete:"エントリの削除に失敗しました。%{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"エントリのステータス更新に失敗しました。%{details}",missingRequiredField:"すべての必須項目を入力してください。",entrySaved:"保存しました。",entryDeleted:void 0,entryPublished:"公開しました。",entryUnpublished:"未公開にしました。",onFailToPublishEntry:"エントリの公開に失敗しました。%{details}",onFailToUnpublishEntry:"エントリを未公開にするのに失敗しました。%{details}",entryUpdated:"エントリのステータスを更新しました。",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"未公開の変更を削除しました。",onFailToAuth:"%{details}",onLoggedOut:"ログアウトされています。データをバックアップし、再度ログインしてください。",onBackendDown:"バックエンドのシステムが停止しています。%{details}"}},workflow:{workflow:{dashboard:void 0,loading:"ワークフロー内のエントリを読込中",workflowHeading:"ワークフロー",newPost:"新規作成",description:"%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。",dateFormat:"M月D日"},workflowCard:{lastChange:"%{author}が%{date}に更新",lastChangeNoAuthor:"最終更新日:%{date}",lastChangeNoDate:"最終更新者:%{author}",deleteChanges:"変更を削除",deleteNewEntry:"エントリを削除",publishChanges:"変更を公開",publishNewEntry:"エントリを公開"},workflowList:{onDeleteEntry:"このエントリを削除しますか?",onPublishingNotReadyEntry:"「準備完了」のエントリのみを公開できます。「準備完了」列にカードを移動し、ステータスを更新してください。",onPublishEntry:"このエントリを公開しますか?",draft:"下書き",pending_review:"レビュー中",pending_publish:"準備完了",currentEntries:"%{smart_count}件のエントリ"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},nl:{auth:{login:"Inloggen",loggingIn:"Inloggen...",loginWithNetlifyIdentity:"Inloggen met Netlify Identity",loginWithBitbucket:"Inloggen met Bitbucket",loginWithGitHub:"Inloggen met GitHub",loginWithGitLab:"Inloggen met GitLab",loginWithGitea:"Inloggen met Gitea",errors:{email:"Voer uw email in.",password:"Voer uw wachtwoord in.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Netlify Identity instellingen niet gevonden. Wanneer u git-gateway als backend gebruikt moet u de Identity service en Git Gateway activeren in uw Netlify instellingen."}},app:{header:{content:"Inhoud",workflow:"Workflow",media:"Media",quickAdd:"Snel toevoegen"},app:{loading:"Laden...",errorHeader:"Fout bij het laden van de CMS configuratie",configErrors:"configuratiefouten",configNotFound:void 0,checkConfigYml:"Controleer je config.yml bestand",loadingConfig:"Configuatie laden...",waitingBackend:"Wachten op server..."},notFoundPage:{header:"Niet gevonden"}},collection:{sidebar:{collections:"Inhoudstypen",allCollections:"Alle inhoudstypen",searchAll:"Zoeken",searchIn:"Zoeken in"},collectionTop:{sortBy:"Sorteer op",viewAs:"Bekijk als",newButton:"Voeg %{collectionLabel} toe",ascending:"Oplopend",descending:"Aflopend",searchResults:'Zoekresultaten voor "%{searchTerm}"',searchResultsInCollection:'Zoekresultaten voor "%{searchTerm}" in %{collection}',filterBy:"Filteren op",groupBy:"Groepeer op"},entries:{loadingEntries:"Items laden",cachingEntries:"Items cachen",longerLoading:"Dit kan een paar minuten duren",noEntries:"Geen items"},groups:{other:"Anders",negateLabel:"Geen %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Bijgewerkt op"}},notFound:void 0},editor:{editorControl:{field:{optional:"optioneel"}},editorControlPane:{widget:{required:"%{fieldLabel} is vereist.",regexPattern:"%{fieldLabel} komt niet overeen met het patroon: %{pattern}.",processing:"%{fieldLabel} wordt verwerkt.",range:"%{fieldLabel} moet tussen %{minValue} en %{maxValue} liggen.",min:"%{fieldLabel} moet tenminste %{minValue} bevatten.",max:"%{fieldLabel} moet hoogstens %{maxValue} bevatten.",rangeCount:"%{fieldLabel} moet tussen %{minCount} en %{maxCount} item(s) bevatten.",rangeCountExact:"%{fieldLabel} moet exact %{count} item(s) bevatten.",rangeMin:"%{fieldLabel} moet tenminste %{minCount} item(s) bevatten.",rangeMax:"%{fieldLabel} moet hoogstens %{maxCount} item(s) bevatten.",invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"%{locale} aan het bewerken",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Weet je zeker dat je deze pagina wilt verlaten?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar ze voordat u de status bijwerkt.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Stel de status in op "Voltooid" voordat u publiceert.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar deze voordat u publiceert.",onPublishingTitle:void 0,onPublishingBody:"Weet u zeker dat u dit item wil publiceren?",onUnpublishingTitle:void 0,onUnpublishingBody:"Weet u zeker dat u de publicatie voor dit item ongedaan wilt maken?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Weet u zeker dat u dit gepubliceerde item en uw niet-opgeslagen wijzigingen uit de huidige sessie wilt verwijderen?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Weet u zeker dat u dit gepubliceerde item wilt verwijderen?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd, evenals uw niet-opgeslagen wijzigingen uit de huidige sessie. Wilt u nog steeds verwijderen?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd. Wilt u nog steeds verwijderen?",loadingEntry:"Item laden..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Wissel i18n",togglePreview:"Wissel voorvertoning",toggleScrollSync:"Synchroniseer scrollen"},editorToolbar:{publishing:"Publiceren...",publish:"Publiceer",published:"Gepubliceerd",unpublish:"Publicatie terugtrekken",duplicate:"Dupliceren",unpublishing:"Publicatie ongedaan maken...",publishAndCreateNew:"Publiceer en maak nieuw item aan",publishAndDuplicate:"Publiceer en dupliceer item",deleteUnpublishedChanges:"Verwijder niet-gepubliceerde wijzigingen",deleteUnpublishedEntry:"Niet-gepubliceerd item verwijderen",deletePublishedEntry:"Gepubliceerd item verwijderen",deleteEntry:"Item verwijderen",saving:"Opslaan...",save:"Opslaan",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Verwijderen...",updating:"Bijwerken...",status:"Status: %{status}",backCollection:" Terug naar %{collectionLabel}",unsavedChanges:"Niet-opgeslagen wijzigingen",changesSaved:"Wijzigingen opgeslagen",draft:"Concept",inReview:"Wordt beoordeeld",ready:"Klaar",publishNow:"Publiceer nu",deployPreviewPendingButtonLabel:"Controleer of voorvertoning geladen is",deployPreviewButtonLabel:"Bekijk voorvertoning",deployButtonLabel:"Bekijk Live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Vet",italic:"Cursief",strikethrough:void 0,code:"Code",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Hoofdtekst",quote:"Quote",insertQuote:void 0,bulletedList:"Lijst met opsommingstekens",numberedList:"Genummerde lijst",addComponent:"Voeg component toe",richText:"Rijke tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Kies een afbeelding",chooseMultiple:void 0,chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van de afbeelding in",chooseDifferent:"Kies een andere afbeelding",addMore:void 0,remove:"Verwijder afbeelding",removeAll:void 0},file:{choose:"Kies een bestand",chooseUrl:"Voeg toe via URL",chooseMultiple:void 0,replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van het bestand in",chooseDifferent:"Kies een ander bestand",addMore:void 0,remove:"Verwijder bestand",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Geen control voor widget '%{widget}'."},unknownPreview:{noPreview:"Geen voorvertoning voor widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Nu",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Voeg %{item} toe",addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Concept",copy:"Kopieer",copyUrl:"Kopieer URL",copyPath:"Kopieer pad",copyName:"Kopieer naam",copied:"Gekopieerd"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Weet u zeker dat u de geselecteerde media wilt verwijderen?",fileTooLargeTitle:void 0,fileTooLargeBody:"Het bestand is te groot.\n De instellingen staan geen bestanden toe groter dan %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Geen resultaten.",noAssetsFound:"Geen media gevonden.",noImagesFound:"Geen afbeeldingen gevonden.",private:"Privé",images:"Afbeeldingen",mediaAssets:"Media",search:"Zoeken...",uploading:"Uploaden...",upload:"Nieuwe uploaden",download:"Downloaden",deleting:"Verwijderen...",deleteSelected:"Verwijder selectie",chooseSelected:"Gebruik selectie",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Ga terug naar site"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Fout",details:"Er is een fout opgetreden - ",reportIt:"maak er alstublieft een melding van.",detailsHeading:"Details",privacyWarning:"Als u een probleem opent, wordt het vooraf gevuld met het foutbericht en foutopsporingsgegevens. \nControleer of de informatie correct is en verwijder, indien aanwezig, gevoelige gegevens.",recoveredEntry:{heading:"Hersteld document",warning:"Kopieer / plak dit ergens voordat u weggaat!",copyButtonLabel:"Kopieer naar klembord"}},settingsDropdown:{theme:void 0,logOut:"Uitloggen"},toast:{onFailToLoadEntries:"Kan item niet laden: %{details}",onFailToLoadDeployPreview:"Kan voorvertoning niet laden: %{details}",onFailToPersist:"Kan item niet opslaan: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Kan item niet verwijderen: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Kan status niet updaten: %{details}",missingRequiredField:"Oeps, sommige verplichte velden zijn niet ingevuld.",entrySaved:"Item opgeslagen",entryDeleted:void 0,entryPublished:"Item gepubliceerd",entryUnpublished:"Publicatie teruggetrokken",onFailToPublishEntry:"Kan item niet publiceren: %{details}",onFailToUnpublishEntry:"Kan item niet terugtrekken: %{details}",entryUpdated:"Status van item geüpdatet",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Niet-gepubliceerde wijzigingen verwijderd",onFailToAuth:"%{details}",onLoggedOut:"Je bent uitgelogd, back-up alstublieft uw data log daarna in",onBackendDown:"De backend-service ondervindt een storing. Zie% {details} voor meer informatie"}},workflow:{workflow:{dashboard:void 0,loading:"Redactionele Workflow items laden",workflowHeading:"Redactionele Workflow",newPost:"Nieuw bericht",description:"%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} door %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"door %{author}",deleteChanges:"Verwijder wijzigingen",deleteNewEntry:"Verwijder nieuw item",publishChanges:"Publiceer wijzigingen",publishNewEntry:"Publiceer nieuw item"},workflowList:{onDeleteEntry:"Weet u zeker dat u dit item wilt verwijderen?",onPublishingNotReadyEntry:'Alleen items met de status "Gereed" kunnen worden gepubliceerd. Sleep de kaart naar de kolom "Gereed" om publiceren mogelijk te maken.',onPublishEntry:"Weet u zeker dat u dit item wilt publiceren?",draft:"Concepten",pending_review:"Wordt beoordeeld",pending_publish:"Klaar",currentEntries:"%{smart_count} item |||| %{smart_count} items"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},nb_no:{auth:{login:"Logg inn",loggingIn:"Logger inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skrive inn e-posten din.",password:"Du må skrive inn passordet ditt.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Fant ingen innstillinger for Identity. Hvis du skal bruke git-gateway må du skru på Identity service og Git Gateway."}},app:{header:{content:"Innhold",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{loading:"Laster...",errorHeader:"Det oppstod en feil under lastingen av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",configNotFound:void 0,checkConfigYml:"Sjekk config.yml filen.",loadingConfig:"Laster konfigurasjon...",waitingBackend:"Venter på backend..."},notFoundPage:{header:"Ikke funnet"}},collection:{sidebar:{collections:"Samlinger",allCollections:void 0,searchAll:"Søk i alle",searchIn:void 0},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Synkende",searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrer innlegg...",longerLoading:"Dette kan ta opptil flere minutter",noEntries:"Ingen innlegg"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}},notFound:void 0},editor:{editorControl:{field:{optional:"valgfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrevd.",regexPattern:"%{fieldLabel} samsvarer ikke med mønsteret: %{pattern}.",processing:"%{fieldLabel} blir prosessert.",range:"%{fieldLabel} må være mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst være %{minValue}.",max:"%{fieldLabel} må være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element(er).",rangeMin:"%{fieldLabel} må minst ha %{minCount} element(er).",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element(er).",invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Er du sikker på du vil navigere bort fra denne siden?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Du må lagre endringene dine før du oppdaterer status.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Du må endre status til "Klar" før du publiserer.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Du må lagre endringene dine før du kan publisere.",onPublishingTitle:void 0,onPublishingBody:"Er du sikker på at du vil publisere?",onUnpublishingTitle:void 0,onUnpublishingBody:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Er du sikker på at du vil slette et publisert innlegg med tilhørende ulagrede endringer?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Handlingen sletter endringer som ikke er publisert eller lagret enda. Er du sikker på du vil fortsette?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle endringer som ikke er publisert i dette innlegget vil gå tapt. Vil du fortsette?",loadingEntry:"Laster innlegg..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringer",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slett innlegg",saving:"Lagrer...",save:"Lagre",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Sletter...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriver i samlingen %{collectionLabel}",unsavedChanges:"Ulagrede endringer",changesSaved:"Endringer lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser nå",deployPreviewPendingButtonLabel:"Kontroller forhåndsvisning",deployPreviewButtonLabel:"Vis forhåndsvisning",deployButtonLabel:"Vis i produksjon",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Rik-tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Velg et bilde",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Velg et annet bilde",addMore:void 0,remove:"Fjern bilde",removeAll:void 0},file:{choose:"Velg en fil",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Velg en annen fil",addMore:void 0,remove:"Fjern fil",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen forhåndsvisning tilgjengelig for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nå",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Er du sikker på at du vil slette markert element?",fileTooLargeTitle:void 0,fileTooLargeBody:"Filen er for stor.\nMaksimal konfiguert filstørrelse er %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer funnet.",noImagesFound:"Ingen bilder funnet.",private:"Privat ",images:"Bilder",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Laster opp...",upload:"Last opp",download:"Last ned",deleting:"Sletter...",deleteSelected:"Slett markert",chooseSelected:"Velg markert",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Gå tilbake til siden"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Feil",details:"Det har oppstått en feil. Det er fint om du ",reportIt:"oppretter et issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du åpner et issue forhåndsutfylles feil og feilsøkingsdata. Dobbeltsjekk at informasjonen er riktig, og fjern eventuelle sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan være lurt å ta kopi av innholdet før navigerer bort fra denne siden!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{theme:void 0,logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikke laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikke laste forhåndsvisning: %{details}",onFailToPersist:"Kunne ikke lagre: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Kunne ikke slette: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Kunne ikke laste opp: %{details}",missingRequiredField:"Oisann, ser ut som du glemte et påkrevd felt. Du må fylle det ut før du kan fortsette.",entrySaved:"Innlegg lagret",entryDeleted:void 0,entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikke publisere: %{details}",onFailToUnpublishEntry:"Kunne ikke avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Avpubliserte endringer slettet",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Laster innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringer",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringer",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan bare publisere innlegg i "Klar" kolonnen. Trekk kortet til riktig kolonne for å fortsette.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draft:"Kladd",pending_review:"Gjennomgås",pending_publish:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},nn_no:{auth:{login:"Logg inn",loggingIn:"Loggar inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",loginWithGitea:"Logg på med Gitea",errors:{email:"Du må skriva inn e-posten din.",password:"Du må skriva inn passordet ditt.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Fann ingen innstillingar for Identity. Om du ynskjer å nytte git-gateway må du hugse å skru på Identity service og Git Gateway"}},app:{header:{content:"Innhald",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{loading:"Lastar...",errorHeader:"Noko gjekk gale under lastinga av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",configNotFound:void 0,checkConfigYml:"Sjå over config.yml fila.",loadingConfig:"Lastar konfigurasjon...",waitingBackend:"Ventar på backend..."},notFoundPage:{header:"Ikkje funnen"}},collection:{sidebar:{collections:"Samlingar",allCollections:void 0,searchAll:"Søk i alle",searchIn:void 0},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Synkande",searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrar innlegg...",longerLoading:"Dette kan ta fleire minutt",noEntries:"Ingen innlegg"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}},notFound:void 0},editor:{editorControl:{field:{optional:"valfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} krevast.",regexPattern:"%{fieldLabel} samsvarar ikkje med mønsteret: %{pattern}.",processing:"%{fieldLabel} vart prosessert.",range:"%{fieldLabel} må vera mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst vera %{minValue}.",max:"%{fieldLabel} må vera %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element.",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element.",rangeMin:"%{fieldLabel} må minst ha %{minCount} element.",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element.",invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Er du sikker på at du vil navigere bort frå denne sida?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Du må lagra endringane dine før du endrar status",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Du må endre status til "Klar" før du publiserer',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Du må laga endringane dine før du kan publisere.",onPublishingTitle:void 0,onPublishingBody:"Er du sikker på at vil publisere?",onUnpublishingTitle:void 0,onUnpublishingBody:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Er du sikkert på at du vil slette eit publisert innlegg med tilhøyrande ulagra endringar?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Handlinga slettar endringar som ikkje er publisert eller lagra. Vil du halde fram?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alle endringar som ikkje er publisert vil gå tapt. Vil du halde fram?",loadingEntry:"Lastar innlegg..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringar",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slettar innlegg",saving:"Lagrar...",save:"Lagre",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Slettar...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriv i samlinga %{collectionLabel}",unsavedChanges:"Ulagra endringar",changesSaved:"Endringar lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser no",deployPreviewPendingButtonLabel:"Kontroller førehandsvisning",deployPreviewButtonLabel:"Sjå førehandsvisning",deployButtonLabel:"Sjå i produksjon",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Rik-tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Vel bilete",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Vel eit anna bilete",addMore:void 0,remove:"Fjern bilete",removeAll:void 0},file:{choose:"Vel fil",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Vel ei anna fil",addMore:void 0,remove:"Fjern fil",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen førehandsvisning tilgjengeleg for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"No",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Er du sikker på at du vil slette markert element?",fileTooLargeTitle:void 0,fileTooLargeBody:"Fila er for stor.\nMaksimal konfiguert filstorleik er %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Ingen resultat.",noAssetsFound:"Ingen elementer funne.",noImagesFound:"Ingen bilete funne.",private:"Privat ",images:"Bileter",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Lastar opp...",upload:"Last opp",download:"Last ned",deleting:"Slettar...",deleteSelected:"Slett markert",chooseSelected:"Vel markert",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Attende til sida"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Feil",details:"Ein feil har oppstått. Det er fint om du ",reportIt:"opnar eit issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du opnar eit issue vart feil og feilsøkingsdata automatisk fylt ut. Hugs å sjå over at alt ser greitt ut, og ikkje inneheld sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan vere lurt å ta kopi av innhaldet før du navigerer bort frå denne sida!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{theme:void 0,logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikkje laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikkje laste førehandsvisning: %{details}",onFailToPersist:"Kunne ikkje lagre: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Kunne ikkje slette: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Kunne ikkje laste opp: %{details}",missingRequiredField:"Oisann, gløymte du noko? Alle påkrevde felt må fyllast ut før du kan halde fram",entrySaved:"Innlegg lagra",entryDeleted:void 0,entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikkje publisere: %{details}",onFailToUnpublishEntry:"Kunne ikkje avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Avpubliserte endringar sletta",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Lastar innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringar",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringar",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan berre publisere innlegg i "Klar" kolonna. Dra kortet til riktig stad for å halde fram.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draft:"Kladd",pending_review:"Gjennomgås",pending_publish:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},pl:{auth:{login:"Zaloguj się",loggingIn:"Logowanie...",loginWithNetlifyIdentity:"Zaloguj przez konto Netlify",loginWithBitbucket:"Zaloguj przez Bitbucket",loginWithGitHub:"Zaloguj przez GitHub",loginWithGitLab:"Zaloguj przez GitLab",loginWithGitea:"Zaloguj przez Gitea",errors:{email:"Wprowadź swój adres email",password:"Wprowadź swoje hasło",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Brak dostępu do ustawień tożsamości. Jeśli używasza backendu git-gateway upewnij się, że usługa tożsamośći (Identity service) oraz Git Gateway są włączone."}},app:{header:{content:"Treść",workflow:"Przebieg redakcyjny",media:"Multimedia",quickAdd:"Szybkie dodawanie"},app:{loading:"Ładowanie...",errorHeader:"Błąd ładowania konfiguracji CMS",configErrors:"Błędy konfiguracji",configNotFound:void 0,checkConfigYml:"Sprawdź plik config.yml.",loadingConfig:"Ładowanie konfiguracji...",waitingBackend:"Oczekiwanie na backend..."},notFoundPage:{header:"Nie znaleziono"}},collection:{sidebar:{collections:"Kolekcje",allCollections:"Wszystkie kolekcje",searchAll:"Wyszukaj wszystkie",searchIn:"Wyszukaj w"},collectionTop:{sortBy:"Sortuj po",viewAs:"Wyświetl jako",newButton:"Nowy %{collectionLabel}",ascending:"Rosnąco",descending:"Malejąco",searchResults:"Wyszukaj wyniki dla %{searchTerm}",searchResultsInCollection:"Wyszukaj wyniki dla %{searchTerm} w %{collection}",filterBy:"Filtruj po",groupBy:"Grupuj po"},entries:{loadingEntries:"Ładowanie pozycji...",cachingEntries:"Ładowanie pozycji do pamięci podręcznej...",longerLoading:"To może zająć kilka minut",noEntries:"Brak pozycji"},groups:{other:"Inne",negateLabel:"Nie %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Zaktualizowano"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcjonalne"}},editorControlPane:{widget:{required:"%{fieldLabel} jest wymagane.",regexPattern:"%{fieldLabel} nie pasuje do formatu: %{pattern}.",processing:"%{fieldLabel} jest przetwarzane.",range:"%{fieldLabel} musi być pomiędzy %{minValue} a %{maxValue}.",min:"%{fieldLabel} musi być co najmniej %{minValue}.",max:"%{fieldLabel} musi być %{maxValue} lub mniej.",rangeCount:"%{fieldLabel} musi mieć od %{minCount} do %{maxCount} elementów",rangeCountExact:"%{fieldLabel} musi mieć %{count} elementów",rangeMin:"%{fieldLabel} musi mieć przynajmniej %{minCount} elementów",rangeMax:"%{fieldLabel} może mieć maksymalnie %{maxCount} elementów",invalidPath:"'%{path}' nie jest poprawna",pathExists:"Ścieżka '%{path}' już istnieje",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Pisz w języku %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Czy na pewno chcesz opuścić tę stronę?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Masz niezapisane zmiany, proszę zapisz je przed aktualizacją statusu.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Proszę zaktualizować status do "Gotowe" przed publikacją.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Masz niezapisane zmiany, proszę zapisz je przed publikacją.",onPublishingTitle:void 0,onPublishingBody:"Czy na pewno chcesz opublikować tę pozycję?",onUnpublishingTitle:void 0,onUnpublishingBody:"Czy na pewno chcesz cofnąć publikację tej pozycji?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Czy na pewno chcesz usunąć tę opublikowaną pozycję, a także niezapisane zmiany z bieżącej sesji?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Czy na pewno chcesz usunąć tę opublikowaną pozycję?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Spowoduje to usunięcie wszystkich nieopublikowanych zmian tej pozycji, a także niezapisanych zmian z bieżącej sesji. Czy nadal chcesz usunąć?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Wszystkie nieopublikowane zmiany tej pozycji zostaną usunięte. Czy nadal chcesz usunąć?",loadingEntry:"Ładowanie pozycji..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Przełącz i18n",togglePreview:"Przełącz podgląd",toggleScrollSync:"Synchroniczne przesuwanie"},editorToolbar:{publishing:"Publikowanie...",publish:"Opublikuj",published:"Opublikowane",unpublish:"Cofnij publikację",duplicate:"Zduplikuj",unpublishing:"Cofanie publikacji...",publishAndCreateNew:"Opublikuj i dodaj nowy",publishAndDuplicate:"Opublikuj i zduplikuj",deleteUnpublishedChanges:"Usuń nieopublikowane zmiany",deleteUnpublishedEntry:"Usuń nieopublikowaną pozycję",deletePublishedEntry:"Usuń opublikowaną pozycję",deleteEntry:"Usuń pozycję",saving:"Zapisywanie...",save:"Zapisz",statusInfoTooltipDraft:"Dodano jako wersję roboczą. Aby zakończyć i oddać do recenzji zmień status na `Do recenzji`",statusInfoTooltipInReview:"Wpis jest w trakcie recenzji, żadne dodatkowe akcje nie są wymagane. Jeśli chcesz, możesz jeszcze nanieść zmiany.",deleting:"Usuwanie...",updating:"Uaktualnianie...",status:"Status: %{status}",backCollection:" Edycja treści w zbiorze %{collectionLabel}",unsavedChanges:"Niezapisane zmiany",changesSaved:"Zmiany zapisane",draft:"Wersja robocza",inReview:"W recenzji",ready:"Gotowe",publishNow:"Opublikuj teraz",deployPreviewPendingButtonLabel:"Sprawdź, czy istnieje podgląd",deployPreviewButtonLabel:"Zobacz podgląd",deployButtonLabel:"Zobacz na żywo",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Pogrubienie",italic:"Kursywa",strikethrough:void 0,code:"Kod",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Nagłówki",quote:"Cytat",insertQuote:void 0,bulletedList:"Lista punktowana",numberedList:"Lista numerowana",addComponent:"Dodaj komponent",richText:"Tekst sformatowany",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Wybierz zdjęcie",chooseMultiple:void 0,chooseUrl:"Dodaj adres URL zdjęcia",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Wprować adres URL zdjęcia",chooseDifferent:"Zmień zdjęcie",addMore:void 0,remove:"Usuń zdjęcie",removeAll:void 0},file:{choose:"Wybierz plik",chooseUrl:"Dodaj adres URL pliku",chooseMultiple:void 0,replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Dodaj adres URL pliku",chooseDifferent:"Wybierz inny plik",addMore:void 0,remove:"Usuń plik",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Brak kontrolki dla widżetu '%{widget}'."},unknownPreview:{noPreview:"Brak podglądu dla widżetu '%{widget}'."},headingOptions:{headingOne:"Nagłówek 1",headingTwo:"Nagłówek 2",headingThree:"Nagłówek 3",headingFour:"Nagłówek 4",headingFive:"Nagłówek 5",headingSix:"Nagłówek 6"},datetime:{now:"Teraz",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Dodaj %{item}",addType:"Dodaj nowy %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Wersja robocza",copy:"Kopiuj",copyUrl:"Kopiuj URL",copyPath:"Kopiuj ścieżkę",copyName:"Kopiuj nazwę",copied:"Skopiowano"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Czy na pewno chcesz usunąć zaznaczone multimedia?",fileTooLargeTitle:void 0,fileTooLargeBody:"Plik jest za duży.\nUstawiony maksymalny rozmiar pliku: %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Brak wyników.",noAssetsFound:"Nie znaleziono żadnych zasobów.",noImagesFound:"Nie znaleziono żadnych obrazów.",private:"Prywatne ",images:"Obrazy",mediaAssets:"Zasoby multimedialne",search:"Szukaj...",uploading:"Przesyłanie...",upload:"Prześlij nowe",download:"Pobierz",deleting:"Usuwanie...",deleteSelected:"Usuń zaznaczone",chooseSelected:"Wybierz zaznaczone",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Wróć do strony"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Błąd",details:"Wystąpił błąd - proszę ",reportIt:"zgłoś to.",detailsHeading:"Szczegóły",privacyWarning:"Nowe zgłoszenie zostanie wstępnie wypełnione danymi o błędzie.\nZweryfikuj czy dane są poprawne i usuń wrażliwe informacje jeśli takie zostały dodane.",recoveredEntry:{heading:"Odzyskany dokument",warning:"Proszę skopiuj/wklej to gdzieś zanim opuścisz tę stronę!",copyButtonLabel:"Skopiuj do schowka"}},settingsDropdown:{theme:void 0,logOut:"Wyloguj się"},toast:{onFailToLoadEntries:"Nie udało się załadować pozycji: %{details}",onFailToLoadDeployPreview:"Nie udało się załadować podglądu: %{details}",onFailToPersist:"Nie udało się zapisać pozycji: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Nie udało się usunąć pozycji: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Nie udało się zaktualizować statusu: %{details}",missingRequiredField:"Ups, przegapiłeś wymagane pole. Proszę uzupełnij przed zapisaniem.",entrySaved:"Pozycja zapisana",entryDeleted:void 0,entryPublished:"Pozycja opublikowana",entryUnpublished:"Cofnięto publikację pozycji",onFailToPublishEntry:"Nie udało się opublikować: %{details}",onFailToUnpublishEntry:"Nie udało się cofnąć publikacji pozycji: %{details}",entryUpdated:"Zaktualizowano status pozycji",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Nieopublikowane zmiany zostały usunięte",onFailToAuth:"%{details}",onLoggedOut:"Zostałeś wylogowany, utwórz kopię zapasową danych i zaloguj się ponownie.",onBackendDown:"Usługa backendu uległa awarii. Zobacz więcej informacji: %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Ładowanie pozycji przebiegu redakcyjnego",workflowHeading:"Przebieg redakcyjny",newPost:"Nowa pozycja",description:"%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} przez %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"przez %{author}",deleteChanges:"Usuń zmiany",deleteNewEntry:"Usuń nową pozycję",publishChanges:"Opublikuj zmiany",publishNewEntry:"Opublikuj nową pozycję"},workflowList:{onDeleteEntry:"Czy na pewno chcesz usunąć tę pozycję?",onPublishingNotReadyEntry:"Tylko pozycje o statusie „Gotowe” mogą być publikowane. Przeciągnij proszę kartę do kolumny „Gotowe do publikacji”, aby umożliwić publikowanie.",onPublishEntry:"Czy na pewno chcesz opublikować tę pozycję?",draft:"Wersje robocze",pending_review:"W recenzji",pending_publish:"Gotowe do publikacji",currentEntries:"%{smart_count} pozycja |||| %{smart_count} pozycje |||| %{smart_count} pozycji"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},pt:{auth:{login:"Entrar",loggingIn:"Entrando...",loginWithNetlifyIdentity:"Entrar com o Netlify Identity",loginWithBitbucket:"Entrar com o Bitbucket",loginWithGitHub:"Entrar com o GitHub",loginWithGitLab:"Entrar com o GitLab",loginWithGitea:"Entrar com o Gitea",errors:{email:"Certifique-se de inserir seu e-mail.",password:"Por favor, insira sua senha.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Não foi possível acessar as configurações de identidade. Ao usar o back-end git-gateway, certifique-se de habilitar o serviço Identity e o Git Gateway."}},app:{header:{content:"Conteúdos",workflow:"Fluxo de Trabalho",media:"Mídia",quickAdd:"Adição rápida"},app:{loading:"Carregando...",errorHeader:"Erro ao carregar a configuração do CMS",configErrors:"Erros de configuração",configNotFound:void 0,checkConfigYml:"Verifique o arquivo config.yml.",loadingConfig:"Carregando configuração...",waitingBackend:"Aguardando o back-end..."},notFoundPage:{header:"Não Encontrado"}},collection:{sidebar:{collections:"Coleções",allCollections:"Todas as Coleções",searchAll:"Pesquisar em todos",searchIn:"Pesquisar em"},collectionTop:{sortBy:"Ordenar por",viewAs:"Visualizar como",newButton:"Novo(a) %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:'Resultados da busca por "%{searchTerm}"',searchResultsInCollection:'Resultados da busca por "%{searchTerm}" em %{collection}',filterBy:"Filtrar por",groupBy:"Agrupar por"},entries:{loadingEntries:"Carregando Entradas",cachingEntries:"Armazenando Entradas em Cache",longerLoading:"Isso pode levar alguns minutos",noEntries:"Nenhuma Entrada"},groups:{other:"Outro",negateLabel:"Não %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Atualizado em"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} é obrigatório.",regexPattern:"%{fieldLabel} não corresponde com o padrão: %{pattern}.",processing:"%{fieldLabel} está processando.",range:"%{fieldLabel} deve estar entre %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve ser, no mínimo, %{minValue}.",max:"%{fieldLabel} deve ser igual ou menor que %{maxValue}.",rangeCount:"%{fieldLabel} deve ser entre %{minCount} e %{maxCount}.",rangeCountExact:"%{fieldLabel} deve ser exatamente %{count}.",rangeMin:"%{fieldLabel} deve ter, pelo menos, %{minCount}.",rangeMax:"%{fieldLabel} deve ter %{maxCount} ou menos.",invalidPath:"'%{path}' não é um caminho válido",pathExists:"O caminho '%{path}' já existe",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Escrevendo em %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Tem certeza que deseja sair desta página?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Há mudanças não salvas. Por favor, salve-as antes de atualizar o status.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Por favor, altere o status para "Pronto" antes de publicar.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Há mudanças não salvas. Por favor, salve-as antes de publicar.",onPublishingTitle:void 0,onPublishingBody:"Tem certeza que deseja publicar essa entrada?",onUnpublishingTitle:void 0,onUnpublishingBody:"Tem certeza que deseja cancelar a publicação dessa entrada?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Tem certeza de que deseja excluir esta entrada publicada, bem como as alterações não salvas da sessão atual?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Tem certeza de que deseja excluir esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Isso excluirá todas as alterações não publicadas nesta entrada, bem como as alterações não salvas da sessão atual. Você ainda deseja excluir?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Todas as alterações não publicadas nesta entrada serão excluídas. Você ainda deseja excluir?",loadingEntry:"Carregando entrada..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Mudar i18n",togglePreview:"Mudar pré-visualização",toggleScrollSync:"Sincronizar rolagem"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Despublicar",duplicate:"Duplicado",unpublishing:"Despublicando...",publishAndCreateNew:"Publicar e criar novo(a)",publishAndDuplicate:"Publicar e duplicar",deleteUnpublishedChanges:"Excluir alterações não publicadas",deleteUnpublishedEntry:"Excluir entrada não publicada",deletePublishedEntry:"Excluir entrada publicada",deleteEntry:"Excluir entrada",saving:"Salvando...",save:"Salvar",statusInfoTooltipDraft:"Entrada definida como rascunho. Para finalizar e enviá-la a revisão, mude seu estado para 'Em revisão'",statusInfoTooltipInReview:"Entrada está sendo revisada, nenhuma ação extra é requirida. Porém, você ainda pode fazer mudanças adicionais enquanto ela está sendo revisada.",deleting:"Excluindo...",updating:"Atualizando...",status:"Status: %{status}",backCollection:" Escrevendo na coleção %{collectionLabel}",unsavedChanges:"Alterações não salvas",changesSaved:"Alterações salvas",draft:"Rascunho",inReview:"Em revisão",ready:"Pronto",publishNow:"Publicar agora",deployPreviewPendingButtonLabel:"Verificar se há Pré-visualização",deployPreviewButtonLabel:"Ver Pré-visualização",deployButtonLabel:"Ver em Produção",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Negrito",italic:"Itálico",strikethrough:void 0,code:"Código",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Cabeçalho",quote:"Citação",insertQuote:void 0,bulletedList:"Lista Pontilhada",numberedList:"Lista Numerada",addComponent:"Adicionar Componente",richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Escolha uma imagem",chooseMultiple:void 0,chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL da imagem",chooseDifferent:"Escolha uma imagem diferente",addMore:void 0,remove:"Remover imagem",removeAll:void 0},file:{choose:"Escolha um arquivo",chooseUrl:"Inserir de uma URL",chooseMultiple:void 0,replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL do arquivo",chooseDifferent:"Escolha um arquivo diferente",addMore:void 0,remove:"Remover arquivo",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Nenhum controle para o widget '%{widget}'."},unknownPreview:{noPreview:"Nenhuma pré-visualização para o widget '%{widget}'."},headingOptions:{headingOne:"Título nível 1",headingTwo:"Título nível 2",headingThree:"Título nível 3",headingFour:"Título nível 4",headingFive:"Título nível 5",headingSix:"Título nível 6"},datetime:{now:"Agora",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Adicionar %{item}",addType:"Adicionar %{item} item",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Rascunho",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar Caminho",copyName:"Copiar Nome",copied:"Copiado"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Tem certeza de que deseja excluir a mídia selecionada?",fileTooLargeTitle:void 0,fileTooLargeBody:"Arquivo muito grande.\nConfigurado para não permitir arquivos maiores que %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nenhum resultado.",noAssetsFound:"Nenhum recurso encontrado.",noImagesFound:"Nenhuma imagem encontrada.",private:"Privado ",images:"Imagens",mediaAssets:"Recursos de mídia",search:"Pesquisar...",uploading:"Enviando...",upload:"Enviar novo",download:"Download",deleting:"Excluindo...",deleteSelected:"Excluir selecionado",chooseSelected:"Escolher selecionado",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Voltar ao site"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Erro",details:"Ocorreu um erro - por favor ",reportIt:"relatar.",detailsHeading:"Detalhes",privacyWarning:"Ao abrir uma issue, ela é preenchida com a mensagem de erro e o log de debug.\nPor favor, verifique se a informação está correta e remova dados sensíveis caso existam.",recoveredEntry:{heading:"Documento recuperado",warning:"Copie/cole isso em algum lugar antes de sair!",copyButtonLabel:"Copiar para área de transferência"}},settingsDropdown:{theme:void 0,logOut:"Sair"},toast:{onFailToLoadEntries:"Falha ao carregar a entrada: %{details}",onFailToLoadDeployPreview:"Falha ao carregar a pré-visualização: %{details}",onFailToPersist:"Falha ao persistir na entrada: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Falha ao excluir a entrada: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Falha ao atualizar status: %{details}",missingRequiredField:"Ops, você perdeu um campo obrigatório. Por favor, preencha antes de salvar.",entrySaved:"Entrada salva",entryDeleted:void 0,entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"Falha ao publicar: %{details}",onFailToUnpublishEntry:"Falha ao cancelar a publicação da entrada: %{details}",entryUpdated:"Status da entrada atualizado",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Alterações não publicadas excluídas",onFailToAuth:"%{details}",onLoggedOut:"Você foi desconectado. Por favor, salve as alterações e entre novamente",onBackendDown:"O serviço de back-end está fora do ar. Veja %{details} para mais informações"}},workflow:{workflow:{dashboard:void 0,loading:"Carregando entradas do Fluxo de Trabalho Editorial",workflowHeading:"Fluxo de Trabalho Editorial",newPost:"Nova Publicação",description:"%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Excluir alterações",deleteNewEntry:"Excluir nova entrada",publishChanges:"Publicar alterações",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Tem certeza de que deseja excluir esta entrada?",onPublishingNotReadyEntry:'Somente itens com o status "Pronto" podem ser publicados. Arraste o cartão para a coluna "Pronto" para poder publicar.',onPublishEntry:"Tem certeza de que quer publicar esta entrada?",draft:"Rascunhos",pending_review:"Em Revisão",pending_publish:"Prontos",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ro:{auth:{login:"Autentifică-te",loggingIn:"Te autentificăm...",loginWithNetlifyIdentity:"Autentifică-te cu Netlify Identity",loginWithBitbucket:"Autentifică-te cu Bitbucket",loginWithGitHub:"Autentifică-te cu GitHub",loginWithGitLab:"Autentifică-te cu GitLab",loginWithGitea:"Autentifică-te cu Gitea",errors:{email:"Asigură-te că ai introdus email-ul.",password:"Te rugăm introdu parola.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Nu s-a putut accesa serviciul de autentificare. Dacă folosești git-gateway, asigură-te că ai activat serviciul Identity și Git-Gateway."}},app:{header:{content:"Conținut",workflow:"Workflow",media:"Fișiere",quickAdd:"Adaugă"},app:{loading:"Se încarcă...",errorHeader:"A apărut o eroare cu configurarea CMS-ului.",configErrors:"Au apărut erori de configurare.",configNotFound:void 0,checkConfigYml:"Verifică fișierul de configurare (config.yml).",loadingConfig:"Se încarcă configurările...",waitingBackend:"Așteptăm după backend..."},notFoundPage:{header:"Pagină inexistentă."}},collection:{sidebar:{collections:"Colecții",allCollections:"Toate colecțiile",searchAll:"Căutare",searchIn:"Caută în"},collectionTop:{sortBy:"Sortează",viewAs:"Vizualizează ca",newButton:"Adaugă %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Rezultatele căutării pentru "%{searchTerm}"',searchResultsInCollection:'Rezultatele căutării pentru "%{searchTerm}" în %{collection}',filterBy:"Filtrează după",groupBy:"Grupează după"},entries:{loadingEntries:"Se încarcă intrările...",cachingEntries:"Se salvează temporar intrările...",longerLoading:"Ar putea dura câteva minute.",noEntries:"Nu există intrări."},groups:{other:"Altul",negateLabel:"Nu %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizat la"}},notFound:void 0},editor:{editorControl:{field:{optional:"opțional"}},editorControlPane:{widget:{required:"%{fieldLabel}” este obligatoriu.",regexPattern:"%{fieldLabel} nu se potrivește după modelul: %{pattern}.",processing:"%{fieldLabel} se procesează.",range:"%{fieldLabel} poate fi între %{minValue} și %{maxValue}.",min:"%{fieldLabel} poate fi mai mare sau egal cu %{minValue}.",max:"%{fieldLabel} poate fi mai mic sau egal cu %{maxValue}.",rangeCount:"%{fieldLabel} poate avea între %{minCount} și %{maxCount} intrări.",rangeCountExact:"%{fieldLabel} trebuie să conțină exact %{count} intrări.",rangeMin:"%{fieldLabel} trebuie să conțină cel puțin %{minCount} intrări.",rangeMax:"%{fieldLabel} trebuie să conțină cel mult %{maxCount} intrări.",invalidPath:"'%{path}' nu este o cale validă.",pathExists:"Calea '%{path}' există deja.",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Scrii în limba %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Ești sigur/ă că dorești să părăsești pagina?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Există modificări nesalvate! Te rugăm salvează înainte de a actualiza statusul.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"Actualizează statusul la „Gata” înainte de publicare.",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Există modificări nesalvate, salvează-le înainte de publicare.",onPublishingTitle:void 0,onPublishingBody:"Ești sigur/ă că dorești să publici acest articol?",onUnpublishingTitle:void 0,onUnpublishingBody:"Ești sigur/ă că dorești să anulezi publicarea acestui articol?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Ești sigur/ă că dorești să ștergi această publicare, dar și modificările nesalvate din sesiunea curentă?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Ești sigur/ă că dorești să ștergi această publicare?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Se vor șterge toate modificările nepublicate din aceast articol și modificările nesalvate din sesiunea curentă. Continui cu ștergerea?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Toate modificările nepublicate din acest articol vor fi șterse. Continui cu ștergerea?",loadingEntry:"Se încarcă..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Comută limba",togglePreview:"Comută previzualizarea",toggleScrollSync:"Sincronizează scroll-ul"},editorToolbar:{publishing:"Se publică...",publish:"Publicare",published:"Publicat",unpublish:"Anulează publicarea",duplicate:"Duplifică",unpublishing:"Se anulează publicarea...",publishAndCreateNew:"Publicare apoi crează altul",publishAndDuplicate:"Publicare apoi duplifică",deleteUnpublishedChanges:"Șterge modificări nepublicate",deleteUnpublishedEntry:"Șterge intrarea nepublicată",deletePublishedEntry:"Șterge intrarea publicată",deleteEntry:"Șterge intrare",saving:"Se salvează...",save:"Salvează",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Se șterge...",updating:"Se actualizează...",status:"Status: %{status}",backCollection:" Scrii în colecția „%{collectionLabel}”",unsavedChanges:"Modificări nesalvate",changesSaved:"Modificări salvate",draft:"Ciornă",inReview:"În revizuire",ready:"Gata",publishNow:"Publicare",deployPreviewPendingButtonLabel:"Verifică publicare",deployPreviewButtonLabel:"Previzualizare",deployButtonLabel:"Vezi publicarea",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",strikethrough:void 0,code:"Cod sursă",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Titluri",quote:"Citat",insertQuote:void 0,bulletedList:"Listă cu puncte",numberedList:"Listă cu numere",addComponent:"Adaugă componentă",richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Alege o imagine",chooseMultiple:void 0,chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul imaginii",chooseDifferent:"Alege altă imagine",addMore:void 0,remove:"Șterge imaginea",removeAll:void 0},file:{choose:"Alege un fișier",chooseUrl:"Inserează din URL",chooseMultiple:void 0,replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul fișierului",chooseDifferent:"Alege alt fișier",addMore:void 0,remove:"Șterge fișier",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Widget-ul „%{widget}” nu are configurări valabile."},unknownPreview:{noPreview:"Nu există previzualizare pentru widget-ul „%{widget}”."},headingOptions:{headingOne:"Titlu 1",headingTwo:"Titlu 2",headingThree:"Titlu 3",headingFour:"Titlu 4",headingFive:"Titlu 5",headingSix:"Titlu 6"},datetime:{now:"Acum",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Ciornă",copy:"Copiază",copyUrl:"Copiază URL",copyPath:"Copiază cale",copyName:"Copiaza nume",copied:"Copiat"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Ești sigur/ă că dorești să ștergi fișierul selectat?",fileTooLargeTitle:void 0,fileTooLargeBody:"Fișier prea mare.\nConfigurarea nu permite fișiere mai mari de %{size} KB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nu sunt rezultate.",noAssetsFound:"Nu s-au găsit fișiere.",noImagesFound:"Nu s-au găsit imagini.",private:"Privat ",images:"Imagini",mediaAssets:"Fișiere media",search:"Caută...",uploading:"Se încarcă...",upload:"Încarcă",download:"Descarcă",deleting:"Se șterge...",deleteSelected:"Șterge fișierele selectate",chooseSelected:"Alege fișierele selectate",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Înapoi la site"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Eroare",details:"A apărut o eroare - te rugăm ",reportIt:"Deschide o problemă pe GitHub.",detailsHeading:"Detalii",privacyWarning:"Problema deschisă va fi precompletată cu mesajul de eroare și datele de depanare.\nTe rugăm verifică datele să fie corecte și șterge orice fel de date personale.",recoveredEntry:{heading:"Document recuperat",warning:"Te rugăm să faci copy/paste la datele acestea undeva înainte de ieșire!",copyButtonLabel:"Copiază în clipboard"}},settingsDropdown:{theme:void 0,logOut:"Ieșire din cont"},toast:{onFailToLoadEntries:"A eșuat încărcarea intrării: %{details}",onFailToLoadDeployPreview:"A eșuat încărcarea previzualizării: %{details}",onFailToPersist:"A eșuat persistarea intrării: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"A eșuat ștergerea intrării: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"A eșuat actualizarea status-ului: %{details}",missingRequiredField:"Oops, ai ratat un câmp obligatoriu. Completează-l pentru a salva.",entrySaved:"Intrare salvată",entryDeleted:void 0,entryPublished:"Intrare publicată",entryUnpublished:"Publicare anulată",onFailToPublishEntry:"A eșuat publicarea: %{details}",onFailToUnpublishEntry:"A eșuat anularea publicării: %{details}",entryUpdated:"S-a actualizat status-ul intrării",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Modificări nepublicate șterse",onFailToAuth:"%{details}",onLoggedOut:"Ai fost delogat, te rugăm salvează orice date și autentifică-te din nou.",onBackendDown:"Există probleme la server. Vezi %{details} pentru mai multe informații."}},workflow:{workflow:{dashboard:void 0,loading:"Se încarcă intrările din Workflow-ul Editorial",workflowHeading:"Workflow Editorial",newPost:"Postare nouă",description:"%{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. |||| %{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} de %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"de %{author}",deleteChanges:"Modificări șterse",deleteNewEntry:"Șterge intrarea nouă",publishChanges:"Publicare modificări",publishNewEntry:"Publicare intrare nouă"},workflowList:{onDeleteEntry:"Ești sigur/ă că dorești ștergerea intrării?",onPublishingNotReadyEntry:"Numai intrări cu status-ul „Gata” pot fi publicate. Trage un card în coloana „Gata” pentru a putea publica.",onPublishEntry:"Ești sigur/ă că dorești să faci publicarea?",draft:"Ciorne",pending_review:"În revizuire",pending_publish:"Gata",currentEntries:"%{smart_count} intrări |||| %{smart_count} intrări"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ru:{auth:{login:"Войти",loggingIn:"Вхожу...",loginWithNetlifyIdentity:"Войти через Netlify Identity",loginWithBitbucket:"Войти через Bitbucket",loginWithGitHub:"Войти через GitHub",loginWithGitLab:"Войти через GitLab",loginWithGitea:"Войти через Gitea",errors:{email:"Введите ваш email.",password:"Введите пароль.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Нет доступа к настройкам. Если используете git-gateway, убедитесь, что включили Identity service и Git Gateway."}},app:{header:{content:"Записи",workflow:"Рабочая область",media:"Медиафайлы",quickAdd:"Быстрое добавление"},app:{loading:"Загрузка медифайлов…",errorHeader:"Ошибка загрузки конфигурации CMS",configErrors:"Ошибки конфигурации",configNotFound:void 0,checkConfigYml:"Проверьте свой config.yml файл.",loadingConfig:"Загрузка конфигурации…",waitingBackend:"Ожидание ответа от бэкенда…"},notFoundPage:{header:"Не найден"}},collection:{sidebar:{collections:"Коллекции",allCollections:"Все коллекции",searchAll:"Искать повсюду",searchIn:"Искать в"},collectionTop:{sortBy:"Сортировать по",viewAs:"Вид",newButton:"Создать %{collectionLabel}",ascending:"По возрастанию",descending:"По убывания",searchResults:'Результаты по запросу "%{searchTerm}"',searchResultsInCollection:'Результаты по запросу "%{searchTerm}" в %{collection}',filterBy:"Фильтровать по",groupBy:"Группировать по"},entries:{loadingEntries:"Загрузка записей…",cachingEntries:"Кэширование записей…",longerLoading:"Это может занять несколько минут",noEntries:"Нет записей"},groups:{other:"Другая",negateLabel:"Не %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Дате обновления"}},notFound:void 0},editor:{editorControl:{field:{optional:"необязательный"}},editorControlPane:{widget:{required:"Необходимо указать значение поля %{fieldLabel}.",regexPattern:"Значение поля %{fieldLabel} не соответствует шаблону: %{pattern}.",processing:"Значение поля %{fieldLabel} обрабатывается…",range:"Значение поля %{fieldLabel} должно быть между %{minValue} и %{maxValue}.",min:"Значение поля %{fieldLabel} должно быть не менее %{minValue}.",max:"Значение поля %{fieldLabel} должно быть %{maxValue} или менее.",rangeCount:"%{fieldLabel} должно содержать от %{minCount} до %{maxCount} элементов.",rangeCountExact:"%{fieldLabel} должно содержать строго %{count} элементов.",rangeMin:"%{fieldLabel} должно содержать не менее %{minCount} элементов.",rangeMax:"%{fieldLabel} должно содержать %{maxCount} или менее элементов.",invalidPath:"Путь '%{path}' содежрит ошибки",pathExists:"Путь '%{path}' уже существует",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Пишем на %{locale}",copyFromLocale:"Заполнить из другого региона",copyFromLocaleConfirm:"Вы хотите заполнять данные используя %{locale} локализацию?\nВесь существующий контент будет перезаписан."}},editor:{onLeavePage:"Вы уверены, что хотите покинуть эту страницу?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"У вас есть несохраненные изменения, сохраните их перед обновлением статуса.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"Пожалуйста, измените статус на «Готов» перед публикацией.",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"У вас есть несохраненные изменения, сохраните их перед публикацией.",onPublishingTitle:void 0,onPublishingBody:"Вы уверены, что хотите опубликовать эту запись?",onUnpublishingTitle:void 0,onUnpublishingBody:"Вы уверены, что хотите отменить публикацию этой записи?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Вы уверены, что хотите удалить эту опубликованную запись, а также несохраненные изменения из текущего сеанса?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Вы уверены, что хотите удалить эту опубликованную запись?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Это удалит все неопубликованные изменения в этой записи, а также ваши несохраненные изменения из текущего сеанса. Вы все еще хотите удалить?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Все неопубликованные изменения в этой записи будут удалены. Вы все еще хотите удалить?",loadingEntry:"Загрузка записи…"},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Переключиться на i18n",togglePreview:"Переключиться на предварительный просмотр",toggleScrollSync:"Синхронизация прокрутки"},editorToolbar:{publishing:"Публикация…",publish:"Опубликовать",published:"Опубликовано",unpublish:"Отменить публикацию",duplicate:"Дублировать",unpublishing:"Отмена публикации…",publishAndCreateNew:"Опубликовать и создать новую",publishAndDuplicate:"Опубликовать и дублировать",deleteUnpublishedChanges:"Удалить неопубликованные изменения",deleteUnpublishedEntry:"Удалить неопубликованную запись",deletePublishedEntry:"Удалить опубликованную запись",deleteEntry:"Удалить запись",saving:"Сохранение…",save:"Сохранить",statusInfoTooltipDraft:"Статус записи установлен на черновик. Чтобы доработать и отправить его на рассмотрение, установите статус «На рассмотрении».",statusInfoTooltipInReview:"Запись находится на рассмотрении, дальнейших действий не требуется. Тем не менее, вы все еще можете внести дополнительные изменения, пока она находится на рассмотрении.",deleting:"Удаление…",updating:"Обновление…",status:"Cтатус: %{status}",backCollection:"Запись в коллекцию %{collectionLabel}",unsavedChanges:"Несохраненные изменения",changesSaved:"Изменения сохранены",draft:"Черновик",inReview:"На рассмотрении",ready:"Одобрен",publishNow:"Опубликовать сейчас",deployPreviewPendingButtonLabel:"Проверить предварительный просмотр",deployPreviewButtonLabel:"Предварительный просмотр",deployButtonLabel:"Просмотр",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Полужиный",italic:"Курсив",strikethrough:void 0,code:"Код",codeBlock:void 0,insertCodeBlock:void 0,link:"Ссылка",insertLink:void 0,paragraph:void 0,headings:"Заголовки",quote:"Цитата",insertQuote:void 0,bulletedList:"Маркированный список",numberedList:"Нумерованный список",addComponent:"Добавить компонент",richText:"Форматированный текст",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Выберите изображение",chooseMultiple:"Выберите изображения",chooseUrl:"Вставить из URL",replaceUrl:"Заменить на URL",promptUrl:"Введите URL изображения",chooseDifferent:"Выберите другое изображение",addMore:"Добавьте еще изображений",remove:"Удалить изображение",removeAll:"Удалить все изображения"},file:{choose:"Выберите файл",chooseUrl:"Вставить из URL",chooseMultiple:"Выбрать файлы",replaceUrl:"Заменить на URL",promptUrl:"Введите URL файла",chooseDifferent:"Выберите другой файл",addMore:"Добавить больше файлов",remove:"Удалить файл",removeAll:"Удалить все файлы"},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Нет контрола для виджета '%{widget}'."},unknownPreview:{noPreview:"Нет превью для виджета '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сейчас",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Добавить %{item}",addType:"Добавить %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Черновик",copy:"Копировать",copyUrl:"Копировать URL",copyPath:"Копировать путь",copyName:"Копировать имя",copied:"Скопировано"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Вы уверены, что хотите удалить выбранный медиафайл?",fileTooLargeTitle:void 0,fileTooLargeBody:"Файл слишком большой.\nНастройки не позволяют сохранять файлы более %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Нет результатов.",noAssetsFound:"Ресурсы не найдены.",noImagesFound:"Изображения не найдены.",private:"Приватные ",images:"Изображения",mediaAssets:"Медиаресурсы",search:"Идёт поиск…",uploading:"Загрузка…",upload:"Загрузить новый",download:"Скачать",deleting:"Удаление…",deleteSelected:"Удалить помеченные",chooseSelected:"Выбрать помеченные",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Вернуться на сайт"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Ошибка",details:"Произошла ошибка. Пожалуйста, ",reportIt:"сообщите о ней.",detailsHeading:"Подробности",privacyWarning:"При открытии тикет автоматически предзаполняется сообщением об ошибке и отладочной информацией.\nПожалуйста, проверьте, что данные верны и не содержат конфиденциальной информации.",recoveredEntry:{heading:"Восстановленный документ",warning:"Пожалуйста, скопируйте это сообщение куда-нибудь, прежде чем уйти со страницы!",copyButtonLabel:"Скопировать в буфер обмена"}},settingsDropdown:{theme:void 0,logOut:"Выйти"},toast:{onFailToLoadEntries:"Не удалось загрузить запись: %{details}",onFailToLoadDeployPreview:"Не удалось загрузить превью: %{details}",onFailToPersist:"Не удалось сохранить запись: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Не удалось удалить запись: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Не удалось обновить статус: %{details}",missingRequiredField:"К сожалению, вы пропустили обязательное поле. Пожалуйста, заполните перед сохранением.",entrySaved:"Запись сохранена",entryDeleted:void 0,entryPublished:"Запись опубликована",entryUnpublished:"Публикация записи отменена",onFailToPublishEntry:"Не удалось опубликовать запись: %{details}",onFailToUnpublishEntry:"Не удалось отменить публикацию записи: %{details}",entryUpdated:"Статус записи обновлен",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Неопубликованные изменения удалены",onFailToAuth:"%{details}",onLoggedOut:"Вы вышли. Пожалуйста, сохраните все данные и войдите снова",onBackendDown:"Происходят перебои в работе бекенда. См. %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Загрузка записей в рабочей области",workflowHeading:"Рабочая область",newPost:"Новая запись",description:"Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Удалить изменения",deleteNewEntry:"Удалить новую запись",publishChanges:"Опубликовать изменения",publishNewEntry:"Опубликовать новую запись"},workflowList:{onDeleteEntry:"Вы уверены, что хотите удалить эту запись?",onPublishingNotReadyEntry:"Только элементы со статусом «Готов» могут быть опубликованы. Перетащите карточку в столбец «Одобренные», чтобы разрешить публикацию.",onPublishEntry:"Вы уверены, что хотите опубликовать эту запись?",draft:"Черновики",pending_review:"На рассмотрении",pending_publish:"Одобренные",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},sv:{auth:{login:"Logga in",loggingIn:"Loggar in...",loginWithNetlifyIdentity:"Logga in med Netlify Identity",loginWithBitbucket:"Logga in med Bitbucket",loginWithGitHub:"Logga in med GitHub",loginWithGitLab:"Logga in med GitLab",loginWithGitea:"Logga in med Gitea",errors:{email:"Fyll i din epostadress.",password:"Vänligen skriv ditt lösenord.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Kan inte hämta inställningar för Identity. Vid användade av git-gateway backend, kontrollera att Identity service och Git Gateway är aktiverade."}},app:{header:{content:"Innehåll",workflow:"Arbetsflöde",media:"Media",quickAdd:"Snabbt tillägg"},app:{loading:"Hämtar...",errorHeader:"Ett fel uppstod vid hämtning av CMS-konfigurationen",configErrors:"Konfigurationsfel",configNotFound:void 0,checkConfigYml:"Kontrollera din config.yml-fil.",loadingConfig:"Hämtar konfiguration...",waitingBackend:"Väntar på backend..."},notFoundPage:{header:"Sidan finns inte"}},collection:{sidebar:{collections:"Samlingar",allCollections:"Alla Samlingar",searchAll:"Sök",searchIn:"Sök i"},collectionTop:{sortBy:"Sortera efter",viewAs:"Visa som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Fallande",searchResults:'Sökresultat för "%{searchTerm}"',searchResultsInCollection:'Sökresultat för "%{searchTerm}" i %{collection}',filterBy:"Filtrera efter",groupBy:"Gruppera efter"},entries:{loadingEntries:"Hämtar inlägg...",cachingEntries:"Sparar inlägg i cache...",longerLoading:"Det här kan ta några minuter",noEntries:"Inga inlägg"},groups:{other:"Annat",negateLabel:"Inte %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Författare"},updatedOn:{label:"Uppdaterad vid"}},notFound:void 0},editor:{editorControl:{field:{optional:"frivillig"}},editorControlPane:{widget:{required:"%{fieldLabel} är obligatoriskt.",regexPattern:"%{fieldLabel} matchar inte mönstret: %{pattern}.",processing:"%{fieldLabel} bearbetas.",range:"%{fieldLabel} måste vara mellan %{minValue} och %{maxValue}.",min:"%{fieldLabel} måste vara åtminstone %{minValue}.",max:"%{fieldLabel} måste vara %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} måste ha mellan %{minCount} och %{maxCount} element.",rangeCountExact:"%{fieldLabel} måste ha exakt %{count} element.",rangeMin:"%{fieldLabel} måste ha åtminstone %{minCount} element.",rangeMax:"%{fieldLabel} måste ha %{maxCount} eller färre element.",invalidPath:"'%{path}' är inte en giltig sökväg",pathExists:"Sökvägen '%{path}' existerar redan",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Skriver i %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Är du säker på att du vill lämna sidan?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Du har osparade ändringar, vänligen spara dem innan du uppdaterar status.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Vänligen uppdatera status till "Redo" innan du publicerar.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Du har osparade ändringar, vänligen spara innan du publicerar.",onPublishingTitle:void 0,onPublishingBody:"Är du säker på att du vill publicera det här inlägget?",onUnpublishingTitle:void 0,onUnpublishingBody:"Är du säker på att du vill avpublicera det här inlägget?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Är du säker på att du vill radera det här publicerade inlägget, inklusive dina osparade ändringar från nuvarande session?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Är du säker på att du vill radera det här publicerade inlägget?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Du är på väg att radera alla opublicerade ändringar för det här inlägget, inklusive dina osparade ändringar från nuvarande session. Vill du fortfarande radera?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Alla opublicerade ändringar kommer raderas. Vill du fortfarande radera?",loadingEntry:"Hämtar inlägg..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Slå på/av i18n",togglePreview:"Visa/Dölj förhandsvisning",toggleScrollSync:"Synka scrollning"},editorToolbar:{publishing:"Publicerar...",publish:"Publicera",published:"Publicerad",unpublish:"Avpublicera",duplicate:"Duplicera",unpublishing:"Avpublicerar...",publishAndCreateNew:"Publicera och skapa ny",publishAndDuplicate:"Publicera och duplicera",deleteUnpublishedChanges:"Radera opublicerade ändringar",deleteUnpublishedEntry:"Radera opublicerat inlägg",deletePublishedEntry:"Radera publicerat inlägg",deleteEntry:"Radera inlägg",saving:"Sparar...",save:"Spara",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Raderar...",updating:"Updaterar...",status:"Status: %{status}",backCollection:" Redigerar i samlingen %{collectionLabel}",unsavedChanges:"Osparade ändringar",changesSaved:"Ändringar sparade",draft:"Utkast",inReview:"Under granskning",ready:"Redo",publishNow:"Publicera nu",deployPreviewPendingButtonLabel:"Kontrollera förhandsvisning",deployPreviewButtonLabel:"Visa förhandsvisning",deployButtonLabel:"Visa Live",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Fetstil",italic:"Kursiv",strikethrough:void 0,code:"Kod",codeBlock:void 0,insertCodeBlock:void 0,link:"Länk",insertLink:void 0,paragraph:void 0,headings:"Rubriker",quote:"Citat",insertQuote:void 0,bulletedList:"Punktlista",numberedList:"Numrerad lista",addComponent:"Lägg till komponent",richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Välj en bild",chooseMultiple:void 0,chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för bilden",chooseDifferent:"Välj en annan bild",addMore:void 0,remove:"Ta bort bild",removeAll:void 0},file:{choose:"Välj en fil",chooseUrl:"Infoga från URL",chooseMultiple:void 0,replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för filen",chooseDifferent:"Välj en annan fil",addMore:void 0,remove:"Ta bort fil",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Inget reglage för widget '%{widget}'."},unknownPreview:{noPreview:"Ingen förhandsvisning för widget '%{widget}'."},headingOptions:{headingOne:"Rubrik 1",headingTwo:"Rubrik 2",headingThree:"Rubrik 3",headingFour:"Rubrik 4",headingFive:"Rubrik 5",headingSix:"Rubrik 6"},datetime:{now:"Nu",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Utkast",copy:"Kopiera",copyUrl:"Kopiera URL",copyPath:"Kopiera Sökväg",copyName:"Kopiera Namn",copied:"Kopierad"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Är du säker på att du vill radera valt mediaobjekt?",fileTooLargeTitle:void 0,fileTooLargeBody:"Maximal filstorlek överskriden.\nKonfigurerad att inte tillåta filer större än %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Inga resultat.",noAssetsFound:"Hittade inga mediaobjekt.",noImagesFound:"Hittade inga bilder.",private:"Privat ",images:"Bilder",mediaAssets:"Mediaobjekt",search:"Sök...",uploading:"Laddar upp...",upload:"Ladda upp",download:"Ladda ner",deleting:"Raderar...",deleteSelected:"Radera markerad",chooseSelected:"Välj markerad",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Tillbaka till sida"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Fel",details:"Ett fel har uppstått - vänligen ",reportIt:"öppna ett ärende på GitHub.",detailsHeading:"Detaljer",privacyWarning:"När ett ärende öppnas bifogas felsökningsdata automatiskt.\nVänligen kontrollera att informationen är korrekt och ta bort känslig data om det skulle finnas sådan.",recoveredEntry:{heading:"Återskapade dokument",warning:"Vänligen kopiera materialet någon annanstans innan du navigerar från sidan!",copyButtonLabel:"Kopiera till urklipp"}},settingsDropdown:{theme:void 0,logOut:"Logga ut"},toast:{onFailToLoadEntries:"Kunde inte hämta inlägg: %{details}",onFailToLoadDeployPreview:"Kunde inte ladda förhandsvisning: %{details}",onFailToPersist:"Kunde inte spara inlägg: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Kunde inte radera inlägg: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Kunde inte uppdatera status: %{details}",missingRequiredField:"Oops, du har missat ett obligatoriskt fält. Vänligen fyll i det innan du sparar.",entrySaved:"Inlägg sparat",entryDeleted:void 0,entryPublished:"Inlägg publicerat",entryUnpublished:"Inlägg avpublicerat",onFailToPublishEntry:"Kunde inte publicera: %{details}",onFailToUnpublishEntry:"Kunde inte avpublicera inlägg: %{details}",entryUpdated:"Inläggsstatus uppdaterad",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Opublicerade ändringar raderade",onFailToAuth:"%{details}",onLoggedOut:"Du har blivit utloggad, vänligen spara en kopia av eventuella ändringar och logga in på nytt",onBackendDown:"Tjänsten är drabbad av en störning. Se %{details} för mer information"}},workflow:{workflow:{dashboard:void 0,loading:"Hämtar inlägg för redaktionellt arbetsflöde",workflowHeading:"Redaktionellt arbetsflöde",newPost:"Nytt inlägg",description:"%{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. |||| %{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Radera ändringar",deleteNewEntry:"Radera nytt inlägg",publishChanges:"Publicera ändringar",publishNewEntry:"Publicera nytt inlägg"},workflowList:{onDeleteEntry:"Är du säker på att du vill radera det här inlägget?",onPublishingNotReadyEntry:'Bara inlägg med statusen "Redo" kan publiceras. Vänligen dra kortet till "Redo"-kolumnen för att möjliggöra publicering',onPublishEntry:"Är du säker på att du vill publicera det här inlägget?",draft:"Utkast",pending_review:"Under granskning",pending_publish:"Redo",currentEntries:"%{smart_count} inlägg |||| %{smart_count} inlägg"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},th:{auth:{login:"เข้าสู่ระบบ",loggingIn:"กำลังเข้าสู่ระบบ...",loginWithNetlifyIdentity:"เข้าสู่ระบบด้วย Netlify Identity",loginWithBitbucket:"เข้าสู่ระบบด้วย Bitbucket",loginWithGitHub:"เข้าสู่ระบบด้วย GitHub",loginWithGitLab:"เข้าสู่ระบบด้วย GitLab",loginWithGitea:"เข้าสู่ระบบด้วย Gitea",errors:{email:"ตรวจสอบให้แน่ใจว่าได้ใส่อีเมลล์แล้ว",password:"โปรดใส่รหัสผ่านของคุณ",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"ไม่สามารถเข้าถึงการตั้งค่าส่วนตัว เมื่อใช้ git-gateway backend ตรวจสอบให้แน่ใจว่าได้เปิดใช้งานระบบยืนยันตัวตนและ Git Gateway."}},app:{header:{content:"เนื้อหา",workflow:"ขั้นตอนการทำงาน",media:"มีเดีย",quickAdd:"เพิ่มเนื้อหา อย่างเร็ว"},app:{loading:"กำลังโหลด...",errorHeader:"เกิดข้อผิดพลาดในการโหลดการตั้งค่า CMS",configErrors:"คอนฟิกมีข้อผิดพลาด",configNotFound:void 0,checkConfigYml:"กรุณาตรวจสอบไฟล์ config.yml ของคุณ",loadingConfig:"กำลังโหลดการตั้งค่า...",waitingBackend:"กำลังรอการตอบกลับจาก backend..."},notFoundPage:{header:"ไม่พบหน้านี้"}},collection:{sidebar:{collections:"กลุ่ม",allCollections:"ทุกกลุ่ม",searchAll:"ค้นหาทั้งหมด",searchIn:"ค้าหาใน"},collectionTop:{sortBy:"จัดเรียงตาม",viewAs:"ดูในฐานะ",newButton:"สร้าง %{collectionLabel}",ascending:"น้อยไปมาก",descending:"มากไปน้อย",searchResults:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}"',searchResultsInCollection:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}" ใน %{collection}',filterBy:"กรองตาม",groupBy:void 0},entries:{loadingEntries:"กำลังโหลดเนิ้อหา...",cachingEntries:"กำลังแคชข้อมูลเนื้อหา...",longerLoading:"อาจจะโหลดนานหลายนาที",noEntries:"ไม่มีเนื้อหา"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"ผู้เขียน"},updatedOn:{label:"อัพเดตเมื่อ"}},notFound:void 0},editor:{editorControl:{field:{optional:"ทางเลือก"}},editorControlPane:{widget:{required:"%{fieldLabel} ต้องระบุ",regexPattern:"%{fieldLabel} ไม่ตรงกับรูปแบบ: %{pattern}",processing:"%{fieldLabel} กำลังประมวลผล",range:"%{fieldLabel} ต้องอยู่ระหว่าง %{minValue} และ %{maxValue}",min:"%{fieldLabel} จะต้องมีค่าไม่ต่ำกว่า %{minValue}",max:"%{fieldLabel} จะต้องมีค่าไม่มากกว่า %{maxValue}",rangeCount:"%{fieldLabel} จะต้องอยู่ระหว่าง %{minCount} และ %{maxCount} รายการ",rangeCountExact:"%{fieldLabel} จะต้องมี %{count} รายการ",rangeMin:"%{fieldLabel} จะต้องมีไม่ต่ำกว่า %{minCount} รายการ",rangeMax:"%{fieldLabel} จะต้องมีไม่มากกว่า %{maxCount} รายการ",invalidPath:"'%{path}' พาทไม่ถูกต้อง",pathExists:"พาท '%{path}' มีอยู่แล้ว",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"เขียนด้วยภาษา %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"คุณแน่ใจหรือว่าจะออกจากหน้านี้?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนอัปเดตสถานะ",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'โปรดอัปเดตสถานะเป็น "พร้อม" ก่อนจะเผยแพร่',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนจะเผยแพร่",onPublishingTitle:void 0,onPublishingBody:"คุณแน่ใจหรือว่าจะเผยแพร่เนื้อหานี้?",onUnpublishingTitle:void 0,onUnpublishingBody:"คุณแน่ใจหรือว่าจะไม่ต้องการเผยแพร่เนื้อหานี้?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้?",loadingEntry:"กำลังโหลดเนื้อหา..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"กำลังเผยแพร่...",publish:"เผยแพร่",published:"เผยแพร่แล้ว",unpublish:"ไม่ได้เผยแพร่",duplicate:"ทำซ้ำ",unpublishing:"ไม่ทำการเผยแพร่...",publishAndCreateNew:"เผยแพร่ และ สร้างใหม่",publishAndDuplicate:"เผยแพร่ และ ทำซ้ำ",deleteUnpublishedChanges:"ลบการเปลี่ยแปลงเนื้อหาที่ยังไม่ได้เผยแพร่",deleteUnpublishedEntry:"ลบเนื้อหาที่ยังไม่ได้เผยแพร่",deletePublishedEntry:"ลบเนื้อหาที่เผยแพร่",deleteEntry:"ลบเนื้อหา",saving:"กำลังบันทึก...",save:"บันทึก",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"กำลังลบ...",updating:"กำลังอัปเดต...",status:"สถานะ: %{status}",backCollection:" เขียนในกลุ่ม %{collectionLabel}",unsavedChanges:"การเปลี่ยนแปลงยังไม่ได้บันทึก",changesSaved:"การเปลี่ยนเปลงถูกบันทึกแล้ว",draft:"ร่าง",inReview:"อยู่ระหว่างการตรวจสอบ",ready:"พร้อม",publishNow:"เผยแพร่ตอนนี้",deployPreviewPendingButtonLabel:"ตรวจสอบตัวอย่าง",deployPreviewButtonLabel:"ดูตัวอย่าง",deployButtonLabel:"ดูตัวอย่างจากหน้าจริง",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"เลือกรูปภาพ",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"เลือกรูปภาพอื่น",addMore:void 0,remove:"เอารูปภาพออก",removeAll:void 0},file:{choose:"เลือกไฟล์",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"เลือกไฟล์อื่น",addMore:void 0,remove:"เอาไฟล์ออก",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"ไม่มีการควบคุม widget '%{widget}'."},unknownPreview:{noPreview:"ไม่มีตัวอย่างสำหรับ widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"เวลาตอนนี้",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"ร่าง",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"คุณแน่ใจหรือว่าจะลบมีเดียที่ถูกเลือก?",fileTooLargeTitle:void 0,fileTooLargeBody:"ไฟล์ใหญ่เกินไป\n ค่าที่ตั้งไว้ไม่ยอมรับไฟล์ที่ใหญ่กว่า %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"ไม่มีผลลัพธ์",noAssetsFound:"ไม่พบข้อมูล",noImagesFound:"ไม่พบรูปภาพ",private:"ส่วนตัว ",images:"รูปภาพ",mediaAssets:"ข้อมูลมีเดีย",search:"ค้นหา...",uploading:"กำลังอัปโหลด...",upload:"อัปโหลด",download:"ดาวน์โหลด",deleting:"กำลังลบ...",deleteSelected:"ลบข้อมูลที่เลือก",chooseSelected:"เลือกข้อมูลที่ถูกเลือก",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"กลับไปยังเว็บไซต์"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"มีข้อผิดพลาด",details:"มีข้อผิดพลาดเกิดขึ้น",reportIt:"แจ้งข้อผิดพลาดบน GitHub",detailsHeading:"รายละเอียด",privacyWarning:"การแจ้งปัญหาจะเติมข้อมูลล่วงหน้าด้วยข้อความแสดงข้อผิดพลาดและข้อมูลการดีบัก\nโปรดตรวจสอบข้อมูลว่าถูกต้องและลบข้อมูลที่สำคัญหากมีอยู่",recoveredEntry:{heading:"เอกสารถูกกู้คืน",warning:"โปรด คัดลอก/วาง ที่ใดที่หนึ่งก่อนจะทำอย่างอื่น!",copyButtonLabel:"คัดลอกไปที่คลิปบอร์ด"}},settingsDropdown:{theme:void 0,logOut:"ออกจากระบบ"},toast:{onFailToLoadEntries:"ล้มเหลวในการโหลดเนื้อหา: %{details}",onFailToLoadDeployPreview:"ล้มเหลวในการโหลดตัวอย่าง: %{details}",onFailToPersist:"ล้มเหลวในการยืนยันเนื้อหา: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"ล้มเหลวในการลบเนื้อหา: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"ล้มเหลวในการอัปเดตสถานะ: %{details}",missingRequiredField:"คุณไม่ได้ใส่ข้อมูลในช่องที่ต้องการ กรุณาใส่ข้อมูลก่อนบันทึก",entrySaved:"เนื้อหาถูกบันทึก",entryDeleted:void 0,entryPublished:"เนื้อหาถูกเผยแพร่",entryUnpublished:"เนื้อหาไม่ได้ถูกเผยแพร่",onFailToPublishEntry:"ล้มเหลวในการเผยแพร่เนื้อหา: %{details}",onFailToUnpublishEntry:"ล้มเหลวในการไม่เผยแพร่เนื้อหา: %{details}",entryUpdated:"สถานะเนื้อหาถูกอัปเดต",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"การเปลี่ยนแปลงเนื้อหาไม่ถูกเผยแพร่ได้ถูกลบ",onFailToAuth:"%{details}",onLoggedOut:"คุณได้ออกจากระบบ โปรดสำรองข้อมูลแล้วเข้าสู่ระบบอีกครั้ง",onBackendDown:"บริการแบ็กเอนด์เกิดการขัดข้อง ดู %{details} สำหรับข้อมูลเพิ่มเติม"}},workflow:{workflow:{dashboard:void 0,loading:"กำลังโหลดเนื้อหาขั้นตอนการทำงานของบรรณาธิการ",workflowHeading:"ขั้นตอนการทำงานของบรรณาธิการ",newPost:"สร้างโพสต์ใหม่",description:"%{smart_count} เนื้อหารอการตรวจสอบ, %{readyCount} พร้อมที่จะเผยแพร่ ่",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} โดย %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"โดย %{author}",deleteChanges:"ลบการเปลี่ยนแปลง",deleteNewEntry:"ลบเนื้อหาใหม่",publishChanges:"เผยแพร่การเปลี่ยนแปลง",publishNewEntry:"เผยแพร่เนื้อหาใหม่"},workflowList:{onDeleteEntry:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหานี้?",onPublishingNotReadyEntry:'เฉพาะรายการที่มีสถานะ "พร้อม" สามารถทำการเผยแพร่ โปรดลากเนื้อหาไปยังช่อง "พร้อม" เพื่อจะทำการเผยแพร่.',onPublishEntry:"คุณแน่ใจหรือว่าจะต้องการเผยแพร่เนื้อหานี้?",draft:"ร่าง",pending_review:"อยู่ในการตรวจสอบ",pending_publish:"พร้อม",currentEntries:"%{smart_count} เนื้อหา"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},tr:{auth:{login:"Giriş",loggingIn:"Giriş yapılıyor..",loginWithNetlifyIdentity:"Netlify Identity ile Giriş",loginWithBitbucket:"Bitbucket ile Giriş",loginWithGitHub:"GitHub ile Giriş",loginWithGitLab:"GitLab ile Giriş",loginWithGitea:"Gitea ile Giriş",errors:{email:"E-postanızı girdiğinizden emin olun.",password:"Lütfen şifrenizi girin.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Identity ayarlarına erişilemiyor. Git-gateway sunucusunu kullanmak için Identity servisi ve Git Gateway'in etkin olduğundan emin olun."}},app:{header:{content:"İçerikler",workflow:"İş Akışı",media:"Medya",quickAdd:"Hızlı ekle"},app:{loading:"Yükleniyor...",errorHeader:"CMS yapılandırması yüklenirken hata oluştu",configErrors:"Yapılandırma Hataları",configNotFound:void 0,checkConfigYml:"config.yml dosyanızı kontrol edin.",loadingConfig:"Yapılandırma yükleniyor...",waitingBackend:"Arka uç bekleniyor..."},notFoundPage:{header:"Bulunamadı"}},collection:{sidebar:{collections:"Koleksiyonlar",allCollections:"Bütün Koleksiyonlar",searchAll:"Tümünü ara",searchIn:"İçinde ara"},collectionTop:{sortBy:"Sırala ...",viewAs:"Görüntüle",newButton:"Yeni %{collectionLabel}",ascending:"Artan",descending:"Azalan",searchResults:'"%{searchTerm}" için Arama Sonuçları',searchResultsInCollection:'%{collection} koleksiyonunda, "%{searchTerm}" için Arama Sonuçları',filterBy:"Filtrele",groupBy:"Grupla"},entries:{loadingEntries:"Girdiler yükleniyor...",cachingEntries:"Girdi önbelleği...",longerLoading:"Bu birkaç dakika sürebilir",noEntries:"Hiç Girdi Yok"},groups:{other:"Diğer",negateLabel:"%{label} hariç"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Yazar"},updatedOn:{label:"Güncellenme Tarihi"}},notFound:void 0},editor:{editorControl:{field:{optional:"isteğe bağlı"}},editorControlPane:{widget:{required:"%{fieldLabel} gerekli.",regexPattern:"%{fieldLabel} eşleşmeyen kalıp: %{pattern}.",processing:"%{fieldLabel} işleniyor.",range:"%{fieldLabel} %{minValue} ve %{maxValue} arasında olmalı.",min:"%{fieldLabel} en az %{minValue} olmalı.",max:"%{fieldLabel}, %{maxValue} veya daha az olmalı.",rangeCount:"%{fieldLabel}, %{minCount} ve %{maxCount} öğeleri arasında olmalı.",rangeCountExact:"%{fieldLabel}, %{count} öğe olmalıdır.",rangeMin:"%{fieldLabel}, en az %{minCount} öğe olmalıdır.",rangeMax:"%{fieldLabel}, %{maxCount} veya daha az öğe olmalıdır.",invalidPath:"'%{path}' geçerli bir yol değil",pathExists:"'%{path}' yolu zaten var",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"%{locale} için yazılıyor",copyFromLocale:"Başka bir dilden doldurun",copyFromLocaleConfirm:"Verileri %{locale} dilinden mi doldurmak istiyorsun?\nVarolan bütün verilerin üzerine yazılacak."}},editor:{onLeavePage:"Bu sayfadan ayrılmak istediğinize emin misiniz?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Kaydedilmemiş değişiklikleriniz var, lütfen içeriği güncellemeden önce kaydedin.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Lütfen yayınlamadan önce içeriği "Hazır" olarak güncelleyin.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Kaydedilmemiş değişiklikleriniz var, lütfen yayınlamadan önce kaydedin.",onPublishingTitle:void 0,onPublishingBody:"Bu girdiyi yayınlamak istediğinize emin misiniz?",onUnpublishingTitle:void 0,onUnpublishingBody:"Bu girdiyi yayından kaldırmak istediğinizden emin misiniz?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Bu oturumda kaydedilmiş değişikliklerin yanı sıra geçerli oturumdaki kaydedilmemiş değişikliklerinizi silmek istediğinize emin misiniz?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Bu yayınlanmış girdiyi silmek istediğinize emin misiniz?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Bu girdide yayınlanmamış tüm değişiklikleri ve geçerli oturumdaki kaydedilmemiş değişikliklerinizi siler. Hala silmek istiyor musun?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Bu girdide yayınlanmamış tüm değişiklikler silinecek. Hala silmek istiyor musun?",loadingEntry:"Girdiler yükleniyor..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"i18n değiştir",togglePreview:"Önizlemeyi değiştir",toggleScrollSync:"Kaydırmayı senkronize et"},editorToolbar:{publishing:"Yayınlanıyor...",publish:"Yayınla",published:"Yayınlanan",unpublish:"Yayından Kaldır",duplicate:"Kopyala",unpublishing:"Yayından kaldırılıyor...",publishAndCreateNew:"Yayınla ve yeni oluştur",publishAndDuplicate:"Yayınla ve kopya oluştur",deleteUnpublishedChanges:"Yayımlanmamış değişiklikleri sil",deleteUnpublishedEntry:"Yayımlanmamış girdiyi sil",deletePublishedEntry:"Yayınlanan girdiyi sil",deleteEntry:"Girdiyi sil",saving:"Kaydediliyor...",save:"Kaydet",statusInfoTooltipDraft:"Giriş durumu taslak olarak ayarlandı. Girişi bitirmek ve incelemeye göndermek için giriş durumunu ‘İncelemede’ olarak ayarlayın",statusInfoTooltipInReview:"Giriş gözden geçiriliyor, başka bir işlem yapılmasına gerek yok. Ancak, incelenirken yine de ek değişiklikler yapabilirsiniz.",deleting:"Siliniyor...",updating:"Güncelleniyor...",status:"Durumu: %{status}",backCollection:" %{collectionLabel} koleksiyonunda yazılı",unsavedChanges:"Kaydedilmemiş Değişiklikler",changesSaved:"Değişiklikler kaydedildi",draft:"Taslak",inReview:"İncelemede",ready:"Hazır",publishNow:"Şimdi yayımla",deployPreviewPendingButtonLabel:"Önizlemeyi Denetle",deployPreviewButtonLabel:"Önizlemeyi Görüntüle",deployButtonLabel:"Canlı Görüntüle",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Kalın",italic:"İtalik",strikethrough:void 0,code:"Kod",codeBlock:void 0,insertCodeBlock:void 0,link:"Bağlantı",insertLink:void 0,paragraph:void 0,headings:"Başlıklar",quote:"Alıntı",insertQuote:void 0,bulletedList:"Maddeli Liste",numberedList:"Numaralı Liste",addComponent:"Bileşen Ekle",richText:"Zengin Metin",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Bir resim seçin",chooseMultiple:void 0,chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Resmin URL'sini girin",chooseDifferent:"Farklı bir resim seçin",addMore:void 0,remove:"Resmi kaldır",removeAll:void 0},file:{choose:"Bir dosya seçin",chooseUrl:"URL'den ekle",chooseMultiple:void 0,replaceUrl:"URL ile değiştir",promptUrl:"Dosyanın URL'sini girin",chooseDifferent:"Farklı bir dosya seçin",addMore:void 0,remove:"Dosyayı kaldır",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"'%{widget}' bileşeni için kontrol yok."},unknownPreview:{noPreview:"'%{widget}' bileşeni için önizleme yok."},headingOptions:{headingOne:"Başlık 1",headingTwo:"Başlık 2",headingThree:"Başlık 3",headingFour:"Başlık 4",headingFive:"Başlık 5",headingSix:"Başlık 6"},datetime:{now:"Şimdi",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"%{item} Ekle",addType:"%{item} Ekle",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Taslak",copy:"Kopyala",copyUrl:"URLyi Kopyala",copyPath:"Dosya Yolunu Kopyala",copyName:"Adını Kopyala",copied:"Kopyalandı"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Seçilen medyayı silmek istediğinize emin misiniz?",fileTooLargeTitle:void 0,fileTooLargeBody:"Dosya çok büyük.\n%{size} kilobaytdan daha büyük dosyaların yüklenmemesi için ayarlanmış.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Sonuç yok.",noAssetsFound:"Hiçbir dosya bulunamadı.",noImagesFound:"Resim bulunamadı.",private:"Özel ",images:"Görseller",mediaAssets:"Medya dosyaları",search:"Ara...",uploading:"Yükleniyor...",upload:"Yükle",download:"İndir",deleting:"Siliniyor...",deleteSelected:"Seçileni sil",chooseSelected:"Seçileni kullan",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Siteye geri git"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Hata",details:"Bir hata oluştu - lütfen ",reportIt:"GitHub üzerinde hata raporu aç.",detailsHeading:"Ayrıntılar",privacyWarning:"Bir hata raporu oluşturmak için gereken form otomatik olarak hata mesajı ve hata ayıklama verileriyle doldurulur.\nLütfen bilgilerin doğru olduğunu doğrulayın ve varsa hassas verileri kaldırın.",recoveredEntry:{heading:"Kurtarılan belge",warning:"Lütfen gitmeden önce bunu bir yere kopyalayın / yapıştırın!",copyButtonLabel:"Panoya kopyala"}},settingsDropdown:{theme:void 0,logOut:"Çıkış Yap"},toast:{onFailToLoadEntries:"Girdi yüklenemedi: %{details}",onFailToLoadDeployPreview:"Önizleme yüklenemedi: %{details}",onFailToPersist:"Girdi devam ettirilemedi: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Girdi silinemedi: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Durum güncellenemedi: %{details}",missingRequiredField:"Gerekli bir alan eksik. Lütfen kaydetmeden önce tamamlayın.",entrySaved:"Girdi kaydedildi",entryDeleted:void 0,entryPublished:"Girdi yayınlandı",entryUnpublished:"Girdi yayınlanmamış",onFailToPublishEntry:"Yayınlanamadı: %{details}",onFailToUnpublishEntry:"Girdi yayından kaldırılamadı: %{details}",entryUpdated:"Girdi durumu güncellendi",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Yayımlanmamış değişiklikler silindi",onFailToAuth:"%{details}",onLoggedOut:"Çıkış yaptınız, lütfen tüm verileri yedekleyin ve tekrar giriş yapın",onBackendDown:"Arka uç hizmetinde bir kesinti yaşanıyor. Daha fazla bilgi için %{details} gör"}},workflow:{workflow:{dashboard:void 0,loading:"İş Akışı Girdileri Yükleniyor",workflowHeading:"Editoryal İş Akışı",newPost:"Yeni Mesaj",description:"%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} tarafından %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author} tarafından",deleteChanges:"Değişiklikleri sil",deleteNewEntry:"Yeni girdiyi sil",publishChanges:"Değişiklikleri yayınla",publishNewEntry:"Yeni girdi yayınla"},workflowList:{onDeleteEntry:"Bu girdiyi silmek istediğinize emin misiniz?",onPublishingNotReadyEntry:'Yalnızca "Hazır" durumu olan öğeler yayınlanabilir. Lütfen yayınlamayı etkinleştirmek için kartı "Hazır" sütununa sürükleyin.',onPublishEntry:"Bu girdiyi yayınlamak istediğinize emin misiniz?",draft:"Taslaklar",pending_review:"İncelemede",pending_publish:"Hazır",currentEntries:"%{smart_count} girdi |||| %{smart_count} girdiler"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},uk:{auth:{login:void 0,loggingIn:void 0,loginWithNetlifyIdentity:void 0,loginWithBitbucket:void 0,loginWithGitHub:void 0,loginWithGitLab:void 0,loginWithGitea:void 0,errors:{email:void 0,password:void 0,authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:void 0}},app:{header:{content:"Зміст",workflow:"Робочий процес",media:"Медіа",quickAdd:"Додати"},app:{loading:"Завантаження...",errorHeader:"Помилка завантаження конфігурації",configErrors:"Помилка конфігурації",configNotFound:void 0,checkConfigYml:"Перевірте config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування серверу..."},notFoundPage:{header:"Сторінку не знайдено "}},collection:{sidebar:{collections:"Колекції",allCollections:void 0,searchAll:"Пошук",searchIn:void 0},collectionTop:{sortBy:void 0,viewAs:"Змінити вигляд",newButton:"Створити %{collectionLabel}",ascending:void 0,descending:void 0,searchResults:void 0,searchResultsInCollection:void 0,filterBy:void 0,groupBy:void 0},entries:{loadingEntries:"Завантаження записів",cachingEntries:"Кешування записів",longerLoading:"Це може зайняти декілька хвилинок",noEntries:void 0},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:void 0},updatedOn:{label:void 0}},notFound:void 0},editor:{editorControl:{field:{optional:"необов’язково"}},editorControlPane:{widget:{required:"%{fieldLabel} є обов'язковим.",regexPattern:"%{fieldLabel} не задовільняє умові: %{pattern}.",processing:"обробляється %{fieldLabel}.",range:"значення %{fieldLabel} повинне бути від %{minValue} до %{maxValue}.",min:"значення %{fieldLabel} має бути від %{minValue}.",max:"значення %{fieldLabel} має бути %{maxValue} та менше.",rangeCount:void 0,rangeCountExact:void 0,rangeMin:void 0,rangeMax:void 0,invalidPath:void 0,pathExists:void 0,invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Ви дійсно бажаєте залишити сторінку?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Присутні незбережені зміни, будь ласка збережіть перед зміною статусу.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Будь ласка, встановіть статус "Готово" перед публікацією.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Присутні незбережені зміни, будь ласка збережіть їх перед публікацією.",onPublishingTitle:void 0,onPublishingBody:"Ви дійсно бажаєте опублікувати запис?",onUnpublishingTitle:void 0,onUnpublishingBody:void 0,onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Ви дійсно бажаєте видалити опублікований запис, як і всі незбережені зміни під час поточної сесії?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Ви дійсно бажаєте видалити опублікований запис?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Видаляться всі неопубліковані зміни до цього запису, а також всі незбережені зміни під час поточної сесії. Бажаєте продовжити?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Всі незбережені зміни до цього запису буде видалено. Бажаєте продовжити?",loadingEntry:"Завантаження..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",unpublish:void 0,duplicate:void 0,unpublishing:void 0,publishAndCreateNew:"Опублікувати і створити нову",publishAndDuplicate:void 0,deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану сторінку",deletePublishedEntry:"Видалити опубліковану сторінку",deleteEntry:"Видалити",saving:"Збереження...",save:"Зберегти",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Видалення...",updating:"Оновлення...",status:"Cтан: %{status}",backCollection:" Робота над %{collectionLabel} колекцією",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережено",draft:"В роботі",inReview:"На розгляді",ready:"Готово",publishNow:"Опублікувати",deployPreviewPendingButtonLabel:"Перевірити оновлення",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Переглянути наживо",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:void 0,markdown:void 0,type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Виберіть зображення",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Виберіть інше зображення",addMore:void 0,remove:"Видалити зображення",removeAll:void 0},file:{choose:"Виберіть файл",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Виберіть інший файл",addMore:void 0,remove:"Видалити файл",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Відсутній модуль для '%{widget}'."},unknownPreview:{noPreview:"Відсутній перегляд для '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:void 0,invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"В роботі",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Ви дійсно бажаєте видалити обрані матеріали?",fileTooLargeTitle:void 0,fileTooLargeBody:void 0,alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Результати відсутні.",noAssetsFound:"Матеріали відсутні.",noImagesFound:"Зображення відсутні.",private:"Private ",images:"Зображення",mediaAssets:"Медіа матеріали",search:"Пошук...",uploading:"Завантаження...",upload:"Завантажити",download:void 0,deleting:"Видалення...",deleteSelected:"Видалити обране",chooseSelected:"Додати обране",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:void 0},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Помилка",details:"Відбулась помилка - будь ласка ",reportIt:"надішліть нам деталі.",detailsHeading:"Деталі",privacyWarning:void 0,recoveredEntry:{heading:"Відновлено документ",warning:"Будь ласка, збережіть це десь перед тим як піти!",copyButtonLabel:"Скопіювати в буфер"}},settingsDropdown:{theme:void 0,logOut:"Вихід"},toast:{onFailToLoadEntries:"Помилка завантаження: %{details}",onFailToLoadDeployPreview:"Помилка завантаження перегляду: %{details}",onFailToPersist:"Помилка перезапису: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Помилка видалення: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Помилка оновлення статусу: %{details}",missingRequiredField:"Йой, здається пропущено обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Збережено",entryDeleted:void 0,entryPublished:"Опубліковано",entryUnpublished:void 0,onFailToPublishEntry:"Помилка публікації: %{details}",onFailToUnpublishEntry:void 0,entryUpdated:"Статус оновлено",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Видалено неопубліковані зміни",onFailToAuth:"%{details}",onLoggedOut:void 0,onBackendDown:void 0}},workflow:{workflow:{dashboard:void 0,loading:"Завантаження редакційних матеріалів",workflowHeading:"Редакція",newPost:"Новий запис",description:"%{smart_count} записів очікують розгляду, %{readyCount} готові до публікації. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} від %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"від %{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати всі зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви дійсно бажаєте видалити запис?",onPublishingNotReadyEntry:'Тільки елементи з статусом "Готово" можуть бути опубліковані. Будь ласка перемістіть картку в колонку "Готово" для публікації.',onPublishEntry:"Дійсно бажаєте опублікувати запис?",draft:"В роботі",pending_review:"На розгляді",pending_publish:"Готово",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},vi:{auth:{login:"Đăng nhập",loggingIn:"Đang đăng nhập...",loginWithNetlifyIdentity:"Đăng nhập bằng Netlify Identity",loginWithBitbucket:"Đăng nhập bằng Bitbucket",loginWithGitHub:"Đăng nhập bằng GitHub",loginWithGitLab:"Đăng nhập bằng GitLab",loginWithGitea:"Đăng nhập bằng Gitea",errors:{email:"Hãy nhập email của bạn.",password:"Hãy nhập mật khẩu của bạn.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Không thể truy cập thiêt lập danh tính. Hãy chắc chắn rằng bạn đã bật dịch vụ Identity và Git Gateway khi sử dụng git-gateway."}},app:{header:{content:"Nội dung",workflow:"Biên tập",media:"Tập tin",quickAdd:"Tạo nhanh"},app:{loading:"Đang tải...",errorHeader:"Xảy ra lỗi khi tải cấu hình CMS",configErrors:"Lỗi cấu hình",configNotFound:void 0,checkConfigYml:"Kiểm tra lại file config.yml của bạn.",loadingConfig:"Đang tải cấu hình...",waitingBackend:"Đang chờ backend..."},notFoundPage:{header:"Không tìm thấy"}},collection:{sidebar:{collections:"Bộ sưu tập",allCollections:"Tất cả bộ sưu tập",searchAll:"Tìm kiếm tất cả",searchIn:"Tìm kiếm trong"},collectionTop:{sortBy:"Sắp xếp theo",viewAs:"View as",newButton:"%{collectionLabel} mới",ascending:"Tăng dần",descending:"Giảm dần",searchResults:'Kết quả tìm kiếm cho "%{searchTerm}"',searchResultsInCollection:'Kết quả tìm kiếm cho "%{searchTerm}" trong %{collection}',filterBy:"Lọc theo",groupBy:void 0},entries:{loadingEntries:"Đang tải...",cachingEntries:"Đang lưu...",longerLoading:"Sẽ mất vài phút",noEntries:"Không có mục nào"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Tác giả"},updatedOn:{label:"Ngày cập nhật"}},notFound:void 0},editor:{editorControl:{field:{optional:"không bắt buộc"}},editorControlPane:{widget:{required:"%{fieldLabel} bắt buộc nhập.",regexPattern:"%{fieldLabel} không khớp với mẫu: %{pattern}.",processing:"%{fieldLabel} đang xử lý.",range:"%{fieldLabel} phải nằm trong khoảng từ %{minValue} đến %{maxValue}.",min:"%{fieldLabel} phải ít nhất %{minValue}.",max:"%{fieldLabel} tối đa %{maxValue} hoặc ít hơn.",rangeCount:"%{fieldLabel} phải nằm trong khoảng từ %{minCount} đến %{maxCount} mục.",rangeCountExact:"%{fieldLabel} phải có %{count} mục.",rangeMin:"%{fieldLabel} phải có ít nhất %{minCount} mục.",rangeMax:"%{fieldLabel} phải có tối đa %{maxCount} mục hoặc ít hơn.",invalidPath:"Đường dẫn '%{path}' không hợp lệ",pathExists:"Đường dẫn '%{path}' đã tồn tại",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:void 0,copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Bạn có chắc rằng bạn muốn rời khỏi trang này?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Bạn chưa lưu những thay đổi, hãy lưu trước khi thay đổi trạng thái.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Hãy thay đổi trạng thái thành "Sẵn sàng" trước khi công bố.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Bạn có thay đổi chưa lưu, hãy lưu trước khi công bố.",onPublishingTitle:void 0,onPublishingBody:"Bạn có chắc rằng bạn muốn công bố mục này?",onUnpublishingTitle:void 0,onUnpublishingBody:"Bạn có chắc rằng bạn muốn ngừng công bố mục này?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này, cũng như là những thay đổi chưa lưu của bạn trong phiên làm việc này?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Điều này sẽ xoá tất cả những thay đổi chưa được lưu trong mục này, cũng như là những thay đổi chưa được lưu của bạn trong phiên làm việc này. Bạn vẫn muốn xoá chứ?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Tất cả những thay đổi chưa được lưu trong mục này sẽ bị xoá. Bạn vẫn muốn xoá chứ?",loadingEntry:"Đang tải..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Đang công bố...",publish:"Công bố",published:"Đã công bố",unpublish:"Ngừng công bố",duplicate:"Sao chép",unpublishing:"Đang ngừng công bố...",publishAndCreateNew:"Công bố và tạo mới",publishAndDuplicate:"Công bố và sao chép",deleteUnpublishedChanges:"Xoá thay đổi chưa công bố này",deleteUnpublishedEntry:"Xoá mục chưa được công bố này",deletePublishedEntry:"Xoá mục đã được công bố này",deleteEntry:"Xoá mục này",saving:"Đang lưu...",save:"Lưu",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Đang xoá...",updating:"Đang cập nhật...",status:"Trạng: %{status}",backCollection:" Đang viết trong bộ sưu tập %{collectionLabel}",unsavedChanges:"Thay đổi chưa được lưu",changesSaved:"Thay đổi đã được lưu",draft:"Bản nháp",inReview:"Đang xét duyệt",ready:"Sẵn sàng",publishNow:"Công bố ngay",deployPreviewPendingButtonLabel:"Kiểm tra Xem trước",deployPreviewButtonLabel:"Xem trước",deployButtonLabel:"Xem bản hoàn chỉnh",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:void 0,italic:void 0,strikethrough:void 0,code:void 0,codeBlock:void 0,insertCodeBlock:void 0,link:void 0,insertLink:void 0,paragraph:void 0,headings:void 0,quote:void 0,insertQuote:void 0,bulletedList:void 0,numberedList:void 0,addComponent:void 0,richText:"Văn bản định dạng",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Chọn một hình",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Chọn hình khác",addMore:void 0,remove:"Gỡ bỏ hình",removeAll:void 0},file:{choose:"Chọn một tập tin",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Chọn tập tin khác",addMore:void 0,remove:"Gỡ bỏ tập tin",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Không tìm thấy control cho widget '%{widget}'."},unknownPreview:{noPreview:"Không tìm thấy preview cho widget '%{widget}'."},headingOptions:{headingOne:"Tiêu đề cấp 1",headingTwo:"Tiêu đề cấp 2",headingThree:"Tiêu đề cấp 3",headingFour:"Tiêu đề cấp 4",headingFive:"Tiêu đề cấp 5",headingSix:"Tiêu đề cấp 6"},datetime:{now:"Ngay lúc này",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Bản nháp",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Bạn có chắc rằng bạn muốn xoá tập tin này?",fileTooLargeTitle:void 0,fileTooLargeBody:"Tập tin quá lớn.\nCấu hình không cho phép những tập tin lớn hơn %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Không có kết quả.",noAssetsFound:"Không tìm thấy tập tin nào.",noImagesFound:"Không tìm thấy hình nào.",private:"Riêng tư ",images:"Hình ảnh",mediaAssets:"Tập tin",search:"Tìm kiếm...",uploading:"Đang tải lên...",upload:"Tải lên",download:"Tải về",deleting:"Đang xoá...",deleteSelected:"Xoá những cái đã chọn",chooseSelected:"Lấy những cái đã chọn",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Quay về trang web"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Lỗi",details:"Đã xảy ra lỗi - xin hãy ",reportIt:"tạo một issue trên GitHub.",detailsHeading:"Chi tiết",privacyWarning:"Tạo một issue với nội dung lỗi và dữ liệu debug được nhập sẵn.\nHãy xác nhận những thông tin này là đúng và gỡ bỏ dữ liệu nhạy cảm nếu cần thiết.",recoveredEntry:{heading:"Tài liệu đã được phục hồi",warning:"Hãy sao chép/dán nội dung này ở đâu đó trước khi chuyển sang trang khác!",copyButtonLabel:"Sao chép vào vùng nhớ"}},settingsDropdown:{theme:void 0,logOut:"Đăng xuất"},toast:{onFailToLoadEntries:"Không thể tải mục: %{details}",onFailToLoadDeployPreview:"Không thể tải xem trước: %{details}",onFailToPersist:"Không thể giữ lại mục: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Không thể xoá mục: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Không thể cập nhật trạng thái: %{details}",missingRequiredField:"Bạn còn thiếu vài thông tin bắt buộc. Hãy hoàn thành trước khi lưu.",entrySaved:"Mục đã được lưu",entryDeleted:void 0,entryPublished:"Mục đã được công bố",entryUnpublished:"Mục đã ngừng công bố",onFailToPublishEntry:"Không thể công bố: %{details}",onFailToUnpublishEntry:"Không thể ngừng công bố mục: %{details}",entryUpdated:"Trạng thái của mục đã được cập nhật",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Những thay đổi chưa được công bố đã được xoá",onFailToAuth:"%{details}",onLoggedOut:"Bạn đã đăng xuất, hãy sao lưu dữ liệu và đăng nhập lại",onBackendDown:"Dịch vụ backend đang gặp trục trặc. Hãy xem {details} để biết thêm thông tin"}},workflow:{workflow:{dashboard:void 0,loading:"Đang tải bài viết",workflowHeading:"Quy trình biên tập",newPost:"Bài mới",description:"%{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. |||| %{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. ",dateFormat:"D MMMM"},workflowCard:{lastChange:"%{date} bởi %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"bởi %{author}",deleteChanges:"Xoá thay đổi",deleteNewEntry:"Xoá bài mới",publishChanges:"Công bố thay đổi",publishNewEntry:"Công bố bài mới"},workflowList:{onDeleteEntry:"Bạn có chắc rằng bạn muốn xoá bài này?",onPublishingNotReadyEntry:'Chỉ những bài với trạng thái "Sẵn sàng" mới có thể được công bố. Hãy kéo thẻ vào cột "Sẵn sàng" để cho phép công bố.',onPublishEntry:"Bạn có chắc rằng bạn muốn công khai bài này?",draft:"Bản nháp",pending_review:"Đang xét duyệt",pending_publish:"Sẵn sàng",currentEntries:"%{smart_count} bài |||| %{smart_count} bài"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},zh_Hant:{auth:{login:"登入",loggingIn:"正在登入...",loginWithNetlifyIdentity:"使用你的 Netlify 帳號來進行登入",loginWithBitbucket:"使用你的 Bitbucket 帳號來進行登入",loginWithGitHub:"使用你的 GitHub 帳號來進行登入",loginWithGitLab:"使用你的 GitLab 帳號來進行登入",loginWithGitea:"使用你的 Gitea 帳號來進行登入",errors:{email:"請確認你已經輸入你的電子郵件。",password:"請輸入你的密碼。",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"無法連接認證系統!當使用 git-gateway 作為後端資料庫時,請確認您已開啟認證服務及 Git Gateway。"}},app:{header:{content:"內容",workflow:"作業流程",media:"媒體",quickAdd:"快速新增"},app:{loading:"載入中...",errorHeader:"載入 CMS 設定時發生錯誤",configErrors:"設定錯誤",configNotFound:void 0,checkConfigYml:"請確認你的 config.yml 設定檔的內容是否正確",loadingConfig:"正在載入設定...",waitingBackend:"正在等待後端資料連接..."},notFoundPage:{header:"找不到頁面"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"尋找所有集合",searchIn:"搜尋範圍"},collectionTop:{sortBy:"排序方式",viewAs:"瀏覽方式",newButton:"新增 %{collectionLabel}",ascending:"由小到大",descending:"由大到小",searchResults:'搜尋 "%{searchTerm}" 的結果',searchResultsInCollection:'在 %{collection} 中搜尋 %{searchTerm}" 的結果',filterBy:"篩選方式",groupBy:void 0},entries:{loadingEntries:"載入內容",cachingEntries:"快取內容",longerLoading:"這可能需要幾分鐘的時間",noEntries:"沒有內容"},groups:{other:void 0,negateLabel:void 0},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新於"}},notFound:void 0},editor:{editorControl:{field:{optional:"選填"}},editorControlPane:{widget:{required:"%{fieldLabel} 是必須的。",regexPattern:"%{fieldLabel} 並不符合 %{pattern} 的型態",processing:"%{fieldLabel} 正在處理",range:"%{fieldLabel} 必須介於 %{minValue} 和 %{maxValue} 之間",min:"%{fieldLabel} 必須至少為 %{minValue}",max:"%{fieldLabel} 必須小於或等於 %{maxValue}",rangeCount:"%{fieldLabel} 必須有 %{minCount} 到 %{maxCount} 個項目。",rangeCountExact:"%{fieldLabel} 必須正好有 %{count} 個項目。",rangeMin:"%{fieldLabel} 必須至少有 %{minCount} 個項目。",rangeMax:"%{fieldLabel} 最多只能有 %{maxCount} 個項目。",invalidPath:"'%{path}' 不是有效的路徑",pathExists:"路徑 '%{path}' 已經存在",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"以 %{locale} 書寫",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"您確定要離開這頁嗎?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"您有未儲存的變更,在更新狀態前請先進行儲存。",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"在發布前,請先將狀態設定為:預備發布。",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"您有未儲存的變更,在發布前請先進行儲存。",onPublishingTitle:void 0,onPublishingBody:"你確定要發表此內容嗎?",onUnpublishingTitle:void 0,onUnpublishingBody:"你確定要取消發表此內容嗎?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"你確定要刪除這篇已發布的內容以及你尚未儲存的變更?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"你確定要刪除這篇已發布的內容?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"這將會刪除此內容所有未發布的變更,以及未儲存的變更。你確定還是要刪除?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"此內容所有未發布的變更都將會被刪除。你確定還是要刪除?",loadingEntry:"載入內容中..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"發布中...",publish:"發布",published:"已發布",unpublish:"取消發布",duplicate:"建立新內容",unpublishing:"取消發布中...",publishAndCreateNew:"發布並建立內容",publishAndDuplicate:"發布並複製內容",deleteUnpublishedChanges:"刪除未發布的變更",deleteUnpublishedEntry:"刪除未發布的內容",deletePublishedEntry:"刪除已發布的內容",deleteEntry:"刪除內容",saving:"儲存中...",save:"儲存",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"刪除中...",updating:"更新中...",status:"狀態: %{status}",backCollection:"在集合 %{collectionLabel} 新增內容",unsavedChanges:"未儲存變更",changesSaved:"已儲存變更",draft:"草稿",inReview:"正在審核",ready:"預備發布",publishNow:"立即發布",deployPreviewPendingButtonLabel:"點擊來進行預覽",deployPreviewButtonLabel:"進行預覽",deployButtonLabel:"觀看已發布的內容",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"粗體",italic:"斜體",strikethrough:void 0,code:"程式碼",codeBlock:void 0,insertCodeBlock:void 0,link:"連結",insertLink:void 0,paragraph:void 0,headings:"標題",quote:"引言",insertQuote:void 0,bulletedList:"項目符號清單",numberedList:"編號清單",addComponent:"加入元件",richText:"Rich Text",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"選擇一張圖片",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"選擇其他圖片",addMore:void 0,remove:"刪除圖片",removeAll:void 0},file:{choose:"選擇一個檔案",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"選擇其他檔案",addMore:void 0,remove:"刪除檔案",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"無法控制元件: '%{widget}'."},unknownPreview:{noPreview:"無法預覽元件: '%{widget}'."},headingOptions:{headingOne:"標題 1",headingTwo:"標題 2",headingThree:"標題 3",headingFour:"標題 4",headingFive:"標題 5",headingSix:"標題 6"},datetime:{now:"現在",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"你確定要刪除已選擇的媒體嗎?",fileTooLargeTitle:void 0,fileTooLargeBody:"檔案太大。\n已設定不允許大於 %{size} kB 的檔案。",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"沒有結果",noAssetsFound:"沒有發現媒體資產。",noImagesFound:"沒有發現影像。",private:"私人",images:"影像",mediaAssets:"媒體資產",search:"搜尋中...",uploading:"上傳中...",upload:"上傳新內容",download:"下載",deleting:"刪除中...",deleteSelected:"刪除已選擇的項目",chooseSelected:"選擇已選擇的項目",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"回到網站"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"錯誤",details:"發生錯誤!請 ",reportIt:"回報錯誤",detailsHeading:"細節",privacyWarning:"建立 issue,並加上錯誤訊息及除錯資訊。\n請確認資訊正確,敏感資料也已經去除。",recoveredEntry:{heading:"已恢復的內容",warning:"在你離開本頁前,請將此處的內容複製貼上到其他地方來進行備份!",copyButtonLabel:"複製到剪貼簿"}},settingsDropdown:{theme:void 0,logOut:"登出"},toast:{onFailToLoadEntries:"無法載入內容: %{details}",onFailToLoadDeployPreview:"無法預覽內容: %{details}",onFailToPersist:"無法暫存內容: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"無法刪除內容: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"無法更新狀態: %{details}",missingRequiredField:"糟了!你漏填了一個必須填入的欄位,在儲存前請先填完所有內容",entrySaved:"已儲存內容",entryDeleted:void 0,entryPublished:"已發布內容",entryUnpublished:"已取消發布內容",onFailToPublishEntry:"無法發布: %{details}",onFailToUnpublishEntry:"無法取消發布: %{details}",entryUpdated:"內容狀態已更新",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"已刪除未發布的變更",onFailToAuth:"%{details}",onLoggedOut:"你已經登出,請備份任何資料然後重新登入",onBackendDown:"後端服務發生中斷。看 %{details} 取得更多資訊"}},workflow:{workflow:{dashboard:void 0,loading:"正在載入編輯流程的內容",workflowHeading:"編輯作業流程",newPost:"建立新的內容",description:"%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"刪除變更",deleteNewEntry:"刪除新內容",publishChanges:"發布變更",publishNewEntry:"發布新內容"},workflowList:{onDeleteEntry:"你確定要刪除這個項目嗎?",onPublishingNotReadyEntry:"只有狀態為 預備發布 的內容可以被發布,請將本內容的狀態設定為 預備發布 來進行發布前的準備",onPublishEntry:"你確定要發表這篇內容嗎?",draft:"草稿",pending_review:"正在預覽",pending_publish:"準備完成",currentEntries:"%{smart_count} 篇內容 |||| %{smart_count} 篇內容"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},ko:{auth:{login:"로그인",loggingIn:"로그인 중...",loginWithNetlifyIdentity:"Netlify Identity 로 로그인",loginWithBitbucket:"Bitbucket 으로 로그인",loginWithGitHub:"GitHub 로 로그인",loginWithGitLab:"GitLab 으로 로그인",loginWithGitea:"Gitea 으로 로그인",errors:{email:"반드시 이메일을 입력해 주세요.",password:"암호를 입력해 주세요.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"설정에 접근할 수 없습니다. git-gateway 백엔드 사용시 Identity service와 Git Gateway를 활성화 해야 합니다."}},app:{header:{content:"콘텐츠",workflow:"워크플로우",media:"미디어",quickAdd:"빠른 추가"},app:{loading:"불러오는 중...",errorHeader:"CMS 구성을 불러오는 중 오류가 발생했습니다.",configErrors:"구성 오류",configNotFound:void 0,checkConfigYml:"config.yml 파일을 확인하세요.",loadingConfig:"구성 불러오는 중...",waitingBackend:"백엔드 기다리는 중..."},notFoundPage:{header:"찾을 수 없음"}},collection:{sidebar:{collections:"컬렉션",allCollections:"모든 컬렉션",searchAll:"모든 컬렉션에서 검색",searchIn:"다음 컬렉션에서 검색"},collectionTop:{sortBy:"정렬 기준",viewAs:"다음으로 보기",newButton:"새 %{collectionLabel} 항목",ascending:"오름차순",descending:"내림차순",searchResults:'"%{searchTerm}"에 대한 검색결과',searchResultsInCollection:'%{collection} 컬랙션에서 "%{searchTerm}"에 대한 검색결과',filterBy:"필터 기준",groupBy:"그룹화 기준"},entries:{loadingEntries:"항목 불러오는 중...",cachingEntries:"항목 캐시 중...",longerLoading:"몇 분 정도 걸릴 수 있습니다.",noEntries:"항목 없음"},groups:{other:"다른 그룹",negateLabel:"%{label} 제외"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"저자"},updatedOn:{label:"업데이트 시각"}},notFound:void 0},editor:{editorControl:{field:{optional:"선택사항"}},editorControlPane:{widget:{required:"%{fieldLabel} 은(는) 필수입니다.",regexPattern:"%{fieldLabel} 이(가) %{pattern} 패턴과 일치하지 않습니다.",processing:"%{fieldLabel} 은(는) 처리중 입니다.",range:"%{fieldLabel} 은(는) 반드시 %{minValue} 에서 %{maxValue} 사이여야 합니다.",min:"%{fieldLabel} 은(는) 적어도 %{minValue} 이상 이여야 합니다.",max:"%{fieldLabel} 은(는) 최대 %{maxValue} 여야 합니다.",rangeCount:"%{fieldLabel} 개수는 %{minCount} 개 에서 %{maxCount} 개 사이여야 합니다.",rangeCountExact:"%{fieldLabel} 개수는 정확히 %{count} 개 여야 합니다.",rangeMin:"%{fieldLabel} 개수는 적어도 %{minCount} 개 이상 이여야 합니다.",rangeMax:"%{fieldLabel} 개수는 최대 %{maxCount} 개 여야 합니다.",invalidPath:"'%{path}' 은(는) 올바른 경로가 아닙니다.",pathExists:"'%{path}' 경로가 이미 존재합니다.",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"%{locale}로 작성 중",copyFromLocale:"다른 로케일로부터 채우기",copyFromLocaleConfirm:"%{locale} 로케일로부터 데이터를 채우시겠습니까?\n모든 기존 내용을 덮어쓰기 합니다."}},editor:{onLeavePage:"이 페이지를 떠나시겠습니까?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"저장하지 않은 변경사항이 있습니다. 상태 업데이트 전 먼저 저장하세요.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'게시 하기 앞서 상태를 "준비됨" 으로 업데이트 하세요.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"저장하지 않은 변경사항이 있습니다, 게시하기 전 먼저 저장하세요.",onPublishingTitle:void 0,onPublishingBody:"이 항목을 게시하시곘습니까?",onUnpublishingTitle:void 0,onUnpublishingBody:"이 항목을 게시 철회 하시겠습니까?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"현재 세션에서의 저장되지 않은 변경사항과 이 게시된 항목을 삭제하시겠습니까?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"이 게시된 항목을 삭제하시겠습니까?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"이 항목의 게시되지 않은 모든 변경사항과 현재 세션의 저장되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"이 항목에 대해 게시되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",loadingEntry:"항목 불러오는 중..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"국제화(i18n) 토글",togglePreview:"미리보기 토글",toggleScrollSync:"스크롤 동기화"},editorToolbar:{publishing:"게시 중...",publish:"게시",published:"게시됨",unpublish:"게시 철회",duplicate:"복제",unpublishing:"게시 철회 중...",publishAndCreateNew:"게시하고 새로 만들기",publishAndDuplicate:"게시하고 복제",deleteUnpublishedChanges:"게시 안된 변경사항 삭제",deleteUnpublishedEntry:"게시 안된 항목 삭제",deletePublishedEntry:"게시된 항목 삭제",deleteEntry:"항목 삭제",saving:"저장 중...",save:"저장",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"삭제 중...",updating:"업데이트 중...",status:"상태: %{status}",backCollection:"%{collectionLabel} 컬랙션에 작성하는 중",unsavedChanges:"변경사항 저장되지 않음",changesSaved:"변경사항 저장됨",draft:"초안",inReview:"검토중",ready:"준비됨",publishNow:"지금 게시",deployPreviewPendingButtonLabel:"미리보기 확인",deployPreviewButtonLabel:"미리보기 보기",deployButtonLabel:"라이브 보기",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"굵은체",italic:"기울임체",strikethrough:void 0,code:"코드",codeBlock:void 0,insertCodeBlock:void 0,link:"링크",insertLink:void 0,paragraph:void 0,headings:"제목",quote:"인용",insertQuote:void 0,bulletedList:"글머리 기호 목록",numberedList:"번호 매기기 목록",addComponent:"구성요소 추가",richText:"리치 텍스트",markdown:"마크다운",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"이미지 선택",chooseMultiple:"이미지 여러개 선택",chooseUrl:"URL에서 삽입",replaceUrl:"URL 변경",promptUrl:"이미지 URL을 입력하세요",chooseDifferent:"다른 이미지 선택",addMore:"더 많은 이미지 추가",remove:"이미지 삭제",removeAll:"모든 이미지 삭제"},file:{choose:"파일 선택",chooseUrl:"URL에서 삽입",chooseMultiple:"파일 여러개 선택",replaceUrl:"URL 변경",promptUrl:"파일 URL을 입력하세요",chooseDifferent:"다른 파일 선택",addMore:"더 많은 파일 추가",remove:"파일 삭제",removeAll:"모든 파일 삭제"},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"'%{widget}' 위젯에 대한 컨트롤이 없습니다."},unknownPreview:{noPreview:"'%{widget}' 위젯에 대한 미리보기가 없습니다."},headingOptions:{headingOne:"제목 1",headingTwo:"제목 2",headingThree:"제목 3",headingFour:"제목 4",headingFive:"제목 5",headingSix:"제목 6"},datetime:{now:"현재시각",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"%{item} 추가",addType:"%{item} 추가",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"초안",copy:"복사",copyUrl:"URL 복사",copyPath:"경로 복사",copyName:"이름 복사",copied:"복사됨"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"선택하신 미디어를 삭제하시겠습니까?",fileTooLargeTitle:void 0,fileTooLargeBody:"파일이 너무 큽니다.\n%{size} kB 보다 큰 파일을 허용하지 않도록 구성되어 있습니다.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"일치 항목 없음.",noAssetsFound:"발견된 에셋 없음.",noImagesFound:"발견된 이미지 없음.",private:"개인 ",images:"이미지",mediaAssets:"미디어 에셋",search:"검색...",uploading:"업로드 중...",upload:"업로드",download:"다운로드",deleting:"삭제 중...",deleteSelected:"선택항목 삭제",chooseSelected:"선택한 것으로 결정",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"사이트로 돌아가기"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"오류",details:"오류가 발생했습니다.",reportIt:"GitHub에서 이슈를 열어 보고해 주세요.",detailsHeading:"자세한 내용",privacyWarning:"이슈를 열면 사전에 오류 메시지와 디버깅 데이터로 채워집니다.\n정보가 올바른지 확인하시고 민감한 정보가 있다면 지워주세요.",recoveredEntry:{heading:"복구된 문서",warning:"다른 곳으로 가시기 전에 이 내용을 꼭 복사해두세요!",copyButtonLabel:"클립보드로 복사"}},settingsDropdown:{theme:void 0,logOut:"로그아웃"},toast:{onFailToLoadEntries:"항목 불러오기 실패: %{details}",onFailToLoadDeployPreview:"미리보기 불러오기 실패: %{details}",onFailToPersist:"항목 저장 실패: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"항목 삭제 실패: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"상태 업데이트 실패: %{details}",missingRequiredField:"이런! 필수 필드를 놓치셨습니다. 저장하기 전에 먼저 채우세요.",entrySaved:"항목 저장됨",entryDeleted:void 0,entryPublished:"항목 게시됨",entryUnpublished:"항목 게시 철회됨",onFailToPublishEntry:"게시 실패: %{details}",onFailToUnpublishEntry:"항목 게시 철회 실해: %{details}",entryUpdated:"항목 상태 업데이트됨",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"게시되지 않은 변경사항 삭제됨",onFailToAuth:"%{details}",onLoggedOut:"로그아웃 하셨습니다, 데티어를 백업하시고 다시 로그인 하세요.",onBackendDown:"백엔드 서비스가 장애를 겪고 있습니다. 자세한 사항은 %{details} 을(를) 참고하세요."}},workflow:{workflow:{dashboard:void 0,loading:"편집 워크플로우의 항목을 불러오는 중",workflowHeading:"편집 워크플로우",newPost:"새 게시물",description:"%{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. |||| %{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. ",dateFormat:"M월 D일"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"변경사항 삭제",deleteNewEntry:"새 항목 삭제",publishChanges:"변경사항 게시",publishNewEntry:"새 항목 게시"},workflowList:{onDeleteEntry:"정말로 이 항목을 삭제하시겠습니까?",onPublishingNotReadyEntry:'"준비됨" 상태의 항목만 게시할 수 있습니다. 게시를 활성화 하려면 카드를 "준비됨" 열에 끌어 놓으세요.',onPublishEntry:"이 항목을 게시하시곘습니까?",draft:"초안",pending_review:"검토 진행중",pending_publish:"준비됨",currentEntries:"%{smart_count}개 항목 |||| %{smart_count}개 항목"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},hr:{auth:{login:"Prijava",loggingIn:"Prijava u tijeku...",loginWithNetlifyIdentity:"Prijava sa Netlify računom",loginWithBitbucket:"Prijava sa Bitbucket računom",loginWithGitHub:"Prijava sa GitHub računom",loginWithGitLab:"Prijava sa GitLab računom",loginWithGitea:"Prijava sa Gitea računom",errors:{email:"Unesite email.",password:"Molimo unisite lozinku.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:'Nemoguće pristupiti postavkama identita. Kod korištenja git-gateway backenda morate uključiti "Identity service" te "Git Gateway"'}},app:{header:{content:"Sadržaj",workflow:"Tijek rada",media:"Mediji",quickAdd:"Dodaj"},app:{loading:"Učitavanje...",errorHeader:"Greška pri učitavanju CMS konfiguracije",configErrors:"Greška u konfiguraciji",configNotFound:void 0,checkConfigYml:"Provjeri config.yml datoteku.",loadingConfig:"Učitavanje konfiguracije...",waitingBackend:"Čekanje na backend..."},notFoundPage:{header:"Stranica nije pronađena"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Sve zbirke",searchAll:"Pretraži sve",searchIn:"Pretraži u"},collectionTop:{sortBy:"Sortiraj",viewAs:"Pogledaj kao",newButton:"Nova %{collectionLabel}",ascending:"Uzlazno",descending:"Silzano",searchResults:'Rezulatati pretraživanja za "%{searchTerm}"',searchResultsInCollection:'Rezulatati pretraživanja za "%{searchTerm}" u %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Učitavanje unosa...",cachingEntries:"Predmemoriranje unosa...",longerLoading:"Ovo bi moglo potrajati par minuta",noEntries:"Nema unosa"},groups:{other:"Ostalo",negateLabel:"Nije %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Ažurirano na"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcionalno"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezan.",regexPattern:"%{fieldLabel} se ne podudara sa uzorkom: %{pattern}.",processing:"%{fieldLabel} se procesira.",range:"%{fieldLabel} mora biti između %{minValue} i %{maxValue}.",min:"%{fieldLabel} mora biti najmanje %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ili manje.",rangeCount:"%{fieldLabel} mora imati između %{minCount} i %{maxCount} predmeta.",rangeCountExact:"%{fieldLabel} mora imati točno %{count} predmeta.",rangeMin:"%{fieldLabel} mora imati najmanje %{minCount} predmet(a).",rangeMax:"%{fieldLabel} mora imate %{maxCount} ili manje predmeta.",invalidPath:"'%{path}' nije valjana putanja",pathExists:"Putanja '%{path}' već postoji",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Pisanje na %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Jeste li sigurni da želite napustiti stranicu?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Imate nespremljene promjene, molimo spremite prije ažuriranja statusa.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Molimo ažurirajte status na "Spremno" prije objavljivanja.',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Imate nespremljene promjene, molimo spremite prije objavljivanja.",onPublishingTitle:void 0,onPublishingBody:"Jeste li sigurni da želite objaviti ovaj unos?",onUnpublishingTitle:void 0,onUnpublishingBody:"Jeste li sigurni da želite maknuti objavu za ovaj unos?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Jeste li sigurni da želite obrisati objavljeni unos, te nespremljene promjene u trenutnoj sesiji?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Jeste li sigurni da želite obrisati ovaj objavljeni unos?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Obrisat ćete sve neobjavljene promjene na ovom unosu, te sve nespremljene promjene u trenutnoj sesiji. Želite li i dalje obrisati?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Sve nespremljene promjene na ovom unosu će biti obrisane. Želite li i dalje obrisati?",loadingEntry:"Učitavanje unosa..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:void 0,togglePreview:void 0,toggleScrollSync:void 0},editorToolbar:{publishing:"Objavljivanje...",publish:"Objavi",published:"Objavljeno",unpublish:"Obriši iz objava",duplicate:"Dupliciraj",unpublishing:"Brisanje iz objava...",publishAndCreateNew:"Objavi i kreiraj novo",publishAndDuplicate:"Objavi i dupliciraj",deleteUnpublishedChanges:"Obriši neobjavljene promjene",deleteUnpublishedEntry:"Obriši neobjavljene unose",deletePublishedEntry:"Obriši objavljeni unos",deleteEntry:"Obriši unos",saving:"Spremanje...",save:"Spremi",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Brisanje...",updating:"Ažuriranje...",status:"Status: %{status}",backCollection:"Pisanje u %{collectionLabel} zbirci",unsavedChanges:"Nespremljene promjene",changesSaved:"Promjene spremljene",draft:"Skica",inReview:"Osvrt",ready:"Spremno",publishNow:"Objavi sad",deployPreviewPendingButtonLabel:"Provjeri za osvrt",deployPreviewButtonLabel:"Pogledaj osvrt",deployButtonLabel:"Pogledaj na produkciji",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Podebljano",italic:"Kurziv",strikethrough:void 0,code:"Kod",codeBlock:void 0,insertCodeBlock:void 0,link:"Link",insertLink:void 0,paragraph:void 0,headings:"Naslovi",quote:"Citat",insertQuote:void 0,bulletedList:"Nabrajan popis",numberedList:"Numeriran popis",addComponent:"Dodaj komponentu",richText:"Bogati tekst",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Odaberi sliku",chooseMultiple:void 0,chooseUrl:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Odaberi drugu sliku",addMore:void 0,remove:"Izbriši sliku",removeAll:void 0},file:{choose:"Odaberi datoteku",chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:"Odaberi drugu datoteku",addMore:void 0,remove:"Obriši datoteku",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Kontrola nije pronađena za widget '%{widget}'."},unknownPreview:{noPreview:"Prikaz nije pronađen za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Sad",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Skica",copy:void 0,copyUrl:void 0,copyPath:void 0,copyName:void 0,copied:void 0},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Jeste li sigurni da želite obrisati odabrane medijske datoteke?",fileTooLargeTitle:void 0,fileTooLargeBody:"Datoteka prevelika.\nKonfigurirano da ne podržava datoteke veće od %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Nema rezultata.",noAssetsFound:"Sredstva nisu pronađena.",noImagesFound:"Slike nisu pronađene.",private:"Privatno ",images:"Slike",mediaAssets:"Medijska sredstva",search:"Pretraži...",uploading:"Učitavanje...",upload:"Učitaj",download:"Preuzmi",deleting:"Brisanje...",deleteSelected:"Obriši označeno",chooseSelected:"Odaberi označeno",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Povratak na stranicu"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Greška",details:"Dogodila se greška - molimo ",reportIt:"otvori issue (problem) na GitHubu.",detailsHeading:"Detalji",privacyWarning:"Otvaranje issue-a (problema) populira ga sa porukom od greške i debug podacima.\nProvjerite jesu li infomacije točne i obrišite osjetljive podatke ako postoje.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Molimo kopiraj/zalijepi ovo negdje prije odlaska dalje!",copyButtonLabel:"Kopiraj u međuspremnik"}},settingsDropdown:{theme:void 0,logOut:"Odjava"},toast:{onFailToLoadEntries:"Neuspjelo dohvaćanje unosa: %{details}",onFailToLoadDeployPreview:"Neuspjelo dohvaćanje pregleda: %{details}",onFailToPersist:"Neuspjelo spremanje unosa: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Neuspjelo brisanje unosa: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Neuspjelo ažuriranje statusa: %{details}",missingRequiredField:"Uups, preskočili ste obvezno polje. Molimo popunite prije spremanja.",entrySaved:"Unos spremljen",entryDeleted:void 0,entryPublished:"Unos objavljen",entryUnpublished:"Unos obrisan",onFailToPublishEntry:"Neuspjelo objavljivanje unosa: %{details}",onFailToUnpublishEntry:"Neuspjelo brisanje unosa: %{details}",entryUpdated:"Status unosa ažuriran",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Otkrivene neobjavljene objave",onFailToAuth:"%{details}",onLoggedOut:"Odjavljeni ste, molimo spremite sve podatke i prijavite se ponovno",onBackendDown:"Backend servis ima prekid rada. Pogledaj %{details} za više informacija"}},workflow:{workflow:{dashboard:void 0,loading:"Učitavanje unosa uredničkog tijeka rada",workflowHeading:"Urednički tijek rada",newPost:"Nova objava",description:"%{smart_count} unos čeka pregled, %{readyCount} unos spreman za produkciju. |||| %{smart_count} unosa čeka pregled, %{readyCount} unosa spremno za produkciju. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} od strane %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"od strane %{author}",deleteChanges:"Obriši promjene",deleteNewEntry:"Obriši novi unos",publishChanges:"Objavi promjene",publishNewEntry:"Objavi novi unos"},workflowList:{onDeleteEntry:"Jeste li sigurni da želite obrisati unos?",onPublishingNotReadyEntry:'Samo promjene sa statusom "Spremno" mogu biti objavljene. Molimo povucite karticu u kolumnu "Spremno" prije objavljivanja.',onPublishEntry:"Jeste li sigurni da želite objaviti unos?",draft:"Skice",pending_review:"U osvrtu",pending_publish:"Spremno",currentEntries:"%{smart_count} unos |||| %{smart_count} unosa"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},sl:{auth:{login:"Vpiši se",loggingIn:"Prijavljanje...",loginWithNetlifyIdentity:"Prijavi se z Netlify Identity",loginWithBitbucket:"Prijavi se z BitBucket računom",loginWithGitHub:"Prijavi se z GitHub računom",loginWithGitLab:"Prijavi se z Gitlab računom",loginWithGitea:void 0,errors:{email:"Vnesi svoj pravi e-poštni naslov.",password:"Vnesi svoje geslo.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Ni mogoče dostopati do nastavitev identitete. Ko uporabljate Git-Gateway zaledje, se prepričajte, da omogočite Identity Service in Git Gateway."}},app:{header:{content:"Vsebina",workflow:"Potek dela",media:"Media",quickAdd:"Hitro dodajanje"},app:{loading:"Nalaganje...",errorHeader:"Napaka pri nalaganju CMS konfiguracije",configErrors:"Konfiguracijske napake",configNotFound:void 0,checkConfigYml:"Preverite svojo datoteko config.yml.",loadingConfig:"Nalaganje konfiguracije ...",waitingBackend:"Čakanje na zaledje ..."},notFoundPage:{header:"Ni najdeno"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Vse zbirke",searchAll:"Išči vse",searchIn:"Išči v"},collectionTop:{sortBy:"Razvrsti po",viewAs:"Poglej kot",newButton:"Nov %{collectionLabel}",ascending:"Naraščajoče",descending:"Padajoče",searchResults:'Rezultati iskanja za "%{searchTerm}"',searchResultsInCollection:'Rezultati iskanja za "%{searchTerm}" v %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Nalaganje vnosov ...",cachingEntries:"Predpomnjenje vnosov ...",longerLoading:"To lahko traja nekaj minut",noEntries:"Ni vnosov"},groups:{other:"Drugo",negateLabel:"Ne %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Avtor"},updatedOn:{label:"Nazadnje posodobljeno"}},notFound:void 0},editor:{editorControl:{field:{optional:"opcijsko"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezen.",regexPattern:"%{fieldLabel} se ni ujemal z vzorcem: %{pattern}.",processing:"%{fieldLabel} je v obdelavi.",range:"%{fieldLabel} mora biti med %{minValue} in %{maxValue}.",min:"%{fieldLabel} mora biti vsaj %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ali manj.",rangeCount:"%{fieldLabel} mora imeti med %{minCount} in %{maxCount} elementov.",rangeCountExact:"%{fieldLabel} mora imeti točno %{count} elemente.",rangeMin:"%{fieldLabel} mora imeti vsaj %{minCount} elementov.",rangeMax:"%{fieldLabel} mora imeti %{maxCount} ali manj elementov.",invalidPath:"'%{path}' ni veljavna pot",pathExists:"Pot '%{path}' že obstaja",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Pisanje v %{locale}",copyFromLocale:"Izpolnite iz drugega jezika",copyFromLocaleConfirm:"Ali želiš izpolniti podatke iz %{locale} jezika?\nVsa obstoječa vsebina bo prepisana."}},editor:{onLeavePage:"Ste prepričani, da želite zapustiti to stran?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Imaš neshranjene spremembe. Shrani pred posodobitvijo stanja.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:'Pred objavo posodobi status na "pripravljen".',onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Imaš neshranjene spremembe. Shrani pred objavo.",onPublishingTitle:void 0,onPublishingBody:"Ste prepričani, da želite objaviti ta vnos?",onUnpublishingTitle:void 0,onUnpublishingBody:"Ste prepričani, da želite preklicati objavo tega vnosa?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Ste prepričani, da želite izbrisati ta objavljen vnos, pa tudi neshrannjene spremembe iz trenutne seje?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Ste prepričani, da želite izbrisati ta objavljeni vnos?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"To bo izbrisalo vse neobjavljene spremembe tega vnosa, pa tudi neshranjene spremembe iz trenutne seje. Ali še vedno želiš izbrisati?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Vse neobjavljene spremembe tega vnosa bodo izbrisane. Ali še vedno želiš izbrisati?",loadingEntry:"Nalaganje vnosa ..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Preklopi i18n",togglePreview:"Preklopi predogled",toggleScrollSync:"Sinhroniziraj drsenje"},editorToolbar:{publishing:"Objavljanje ...",publish:"Objavi",published:"Objavljeno",unpublish:"Prekliči objavo",duplicate:"Podvoji",unpublishing:"Preklicevanje objave ...",publishAndCreateNew:"Objavi in ustvari novo",publishAndDuplicate:"Objavi in podvoji",deleteUnpublishedChanges:"Izbriši neobjavljene spremembe",deleteUnpublishedEntry:"Izbriši neobjavljen vnos",deletePublishedEntry:"Izbriši objavljen vnos",deleteEntry:"Izbriši vnos",saving:"Shranjevanje ...",save:"Shrani",statusInfoTooltipDraft:"Status vnosa je nastavljen na osnutek. Če ga želiš dokončati in predložiti v pregled, nastavi stanje na „v pregledu“",statusInfoTooltipInReview:"Vnos je v pregledu, nadaljnja dejanja niso potrebna. Vendar lahko med pregledovanjem še vedno narediš spremembe.",deleting:"Brisanje ...",updating:"Posodabljanje ...",status:"status: %{status}",backCollection:" Pisanje v %{collectionLabel} zbirko",unsavedChanges:"Neshranjene spremembe",changesSaved:"Spremembe shranjene",draft:"Osnutek",inReview:"V pregledu",ready:"Pripravljen",publishNow:"Objavi zdaj",deployPreviewPendingButtonLabel:"Preveri za predogled",deployPreviewButtonLabel:"Ogled predogleda",deployButtonLabel:"Pogled v živo",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Debelo",italic:"Poševno",strikethrough:void 0,code:"Koda",codeBlock:void 0,insertCodeBlock:void 0,link:"Povezava",insertLink:void 0,paragraph:void 0,headings:"Naslovi",quote:"Citat",insertQuote:void 0,bulletedList:"Seznam z oznakami",numberedList:"Oštevilčen seznam",addComponent:"Dodaj komponento",richText:"Bogato besedilo",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Izberi sliko",chooseMultiple:"Izberi slike",chooseUrl:"Vstavi iz URL-ja",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL slike",chooseDifferent:"Izberi drugo sliko",addMore:"Dodaj več slik",remove:"Odstrani sliko",removeAll:"Odstrani vse slike"},file:{choose:"Izberi datoteko",chooseUrl:"Vstavi iz URL-ja",chooseMultiple:"Izberi datoteke",replaceUrl:"Zamenjaj z URL",promptUrl:"Vnesi URL datoteke",chooseDifferent:"Izberi drugo datoteko",addMore:"Dodaj več datotek",remove:"Odstrani datoteko",removeAll:"Odstrani vse datoteke"},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Ni kontrole za gradnik '%{widget}'."},unknownPreview:{noPreview:"Nipredogleda za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Zdaj",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"Dodaj %{item}",addType:"Dodaj %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Osnutek",copy:"Kopiraj",copyUrl:"Kopiraj URL",copyPath:"Kopiraj pot",copyName:"Kopiraj ime",copied:"Kopirano"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Ste prepričani, da želite izbrisati izbrane medije?",fileTooLargeTitle:void 0,fileTooLargeBody:"Datoteka je prevelika.\n Ne sme biti večja od %{size} kb.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Ni rezultatov.",noAssetsFound:"Ni najdenih sredstev.",noImagesFound:"Ni najdenih slik.",private:"Private",images:"Slike",mediaAssets:"Multimedijska sredstva",search:"Iskanje ...",uploading:"Nalaganje ...",upload:"Naloži",download:"Prenesi",deleting:"Brisanje ...",deleteSelected:"Izbriši izbrano",chooseSelected:"Dodaj izbrano",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Vrni se na spletno mesto"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Napaka",details:"Prišlo je do napake.",reportIt:"Odprite težavo na GitHubu.",detailsHeading:"Podrobnosti",privacyWarning:"Odpiranje Github Issue bo javno objavilo vašo napako. Ne vključujte osebnih podatkov v vaši napaki.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Prosimo, tole kopirajte/prilepite nekam, preden navigirate drugam!",copyButtonLabel:"Kopiraj v odložišče"}},settingsDropdown:{theme:void 0,logOut:"Odjava"},toast:{onFailToLoadEntries:"Ni naložilo vnosa: %{details}",onFailToLoadDeployPreview:"Ni naložilo predogleda: %{details}",onFailToPersist:"Ni uspelo vztrajati: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Ni uspelo izbrisati vnosa: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Ni uspelo posodobiti stanja: %{details}",missingRequiredField:"Ups, zgrešili ste obvezno polje. Pred shranjevanjem izpolnite.",entrySaved:"Vnos shranjen",entryDeleted:void 0,entryPublished:"Vnos objavljen",entryUnpublished:"Objava vnosa preklicana",onFailToPublishEntry:"Vnosa ni uspelo objaviti: %{details}",onFailToUnpublishEntry:"Preklicanje objave vnosa ni uspelo: %{details}",entryUpdated:"Status vnosa posodobljen",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Neobjavljene spremembe izbrisane",onFailToAuth:"%{details}",onLoggedOut:"Bili ste odjavljeni, varnostno kopirate vse podatke in se ponovno prijavite",onBackendDown:"Zaledna storitev doživlja izpad. Glejte %{details} za več informacij"}},workflow:{workflow:{dashboard:void 0,loading:"Nalaganje uredniških vnosov",workflowHeading:"Uredniški potek dela",newPost:"Nov vnos",description:"%{smart_count} vnos čaka na pregled, %{readyCount} pripravljen za objavo. |||| %{smart_count} vnosov čaka na pregled, %{readyCount} pripravljenih za objavo.",dateFormat:"DD. MM. YYYY"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Izbriši spremembe",deleteNewEntry:"Izbriši nov vnos",publishChanges:"Objavi spremembe",publishNewEntry:"Objavi nov vnos"},workflowList:{onDeleteEntry:"Ali ste prepričani, da želite izbrisati ta vnos?",onPublishingNotReadyEntry:'Objavijo se lahko samo elementi s statusom "pripravljen". Prosimo, povlecite kartico v stolpec "pripravljen", da omogočite objavo.',onPublishEntry:"Ste prepričani, da želite objaviti ta vnos?",draft:"Osnutki",pending_review:"V pregledu",pending_publish:"Pripravljen",currentEntries:"%{smart_count} vnos |||| %{smart_count} vnosov"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},bg:{auth:{login:"Вход",loggingIn:"Влизане...",loginWithNetlifyIdentity:"Вход с Netlify Identity",loginWithBitbucket:"Вход с Bitbucket",loginWithGitHub:"Вход с GitHub",loginWithGitLab:"Вход с GitLab",loginWithGitea:"Вход с Gitea",errors:{email:"Въведете вашия имейл.",password:"Въведете паролата.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"Няма достъп до настройките. Ако използвате git-gateway, не забравяйте да активирате услугата Identity и Git Gateway."}},app:{header:{content:"Съдържание",workflow:"Работен процес",media:"Мултимедийни файлове",quickAdd:"Бързо добавяне"},app:{loading:void 0,errorHeader:"Грешка при зареждането на конфигурацията на CMS",configErrors:"Грешки в конфигурацията",configNotFound:void 0,checkConfigYml:"Проверете вашия файл config.yml.",loadingConfig:"Зареждане на конфигурация ...",waitingBackend:"В очакване на отговор от бекенда ..."},notFoundPage:{header:"Не е намерен"}},collection:{sidebar:{collections:"Колекции",allCollections:"Всички колекции",searchAll:"Търсете навсякъде",searchIn:"Търсене в"},collectionTop:{sortBy:"Сортирай по",viewAs:"Виж като",newButton:"Създай %{collectionLabel}",ascending:"Възходящ",descending:"Низходящ",searchResults:'Ресултати от търсенето за "%{searchTerm}"',searchResultsInCollection:'Ресултати от търсенето за "%{searchTerm}" в %{collection}',filterBy:"Филтрирай по",groupBy:"Групирай по"},entries:{loadingEntries:"Зареждане на записи...",cachingEntries:"Кеширане на записи...",longerLoading:"Това може да отнеме няколко минути",noEntries:"Няма записи"},groups:{other:"Други",negateLabel:"Не %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Обновено"}},notFound:void 0},editor:{editorControl:{field:{optional:"незадължителен"}},editorControlPane:{widget:{required:"%{fieldLabel} е задължително.",regexPattern:"%{fieldLabel} не съответства на модела: %{pattern}.",processing:"%{fieldLabel} се обработва.",range:"%{fieldLabel} трябва да бъде между %{minValue} и %{maxValue}.",min:"%{fieldLabel} трябва да бъде поне %{minValue}.",max:"%{fieldLabel} трябва да бъде %{maxValue} или по-малко.",rangeCount:"%{fieldLabel} трябва да има между %{minCount} и %{maxCount} елемент(и).",rangeCountExact:"%{fieldLabel} трябва да има точно %{count} елемент(и).",rangeMin:"%{fieldLabel} трябва да бъде поне %{minCount} елемент(и).",rangeMax:"%{fieldLabel} трябва да бъде %{maxCount} или по-малко елемент(и).",invalidPath:"'%{path}' не е валиден път",pathExists:"Пътят '%{path}' вече съществува",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"Писане на %{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"Наистина ли искате да напуснете тази страница?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"Имате незапазени промени, моля, запазете преди актуализиране на състоянието.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"Моля, актуализирайте състоянието на „Готово“, преди да публикувате",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"Имате незапазени промени, моля, запазете преди публикуване.",onPublishingTitle:void 0,onPublishingBody:"Наистина ли искате да публикувате този запис?",onUnpublishingTitle:void 0,onUnpublishingBody:"Наистина ли искате да прекратите публикуването на този запис?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"Наистина ли искате да изтриете този публикуван запис, както и незаписаните промени от текущата сесия?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"Наистина ли искате да изтриете този публикуван запис?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"Това ще изтрие всички непубликувани промени в този запис, както и незаписаните ви промени от текущата сесия. Все още ли искате да изтриете?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"Всички непубликувани промени в този запис ще бъдат изтрити. Все още ли искате да изтриете?",loadingEntry:"Зареждане на запис..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"Превключване i18n",togglePreview:"Превключване на визуализация",toggleScrollSync:"Синхронизирай превъртане"},editorToolbar:{publishing:"Публикуване...",publish:"Публикувай",published:"Публикуван",unpublish:"Непубликувай",duplicate:"Дублирай",unpublishing:"Непубликуване...",publishAndCreateNew:"Публикувай и създай нов",publishAndDuplicate:"Публикувай и дублирай",deleteUnpublishedChanges:"Изтриване на непубликувани промени",deleteUnpublishedEntry:"Изтрий непубликувани записи",deletePublishedEntry:"Изтрий публикувани записи",deleteEntry:"Изтрий запис",saving:"Запазване...",save:"Запази",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"Изтриване...",updating:"Актуализиране...",status:"Cъстояние: %{status}",backCollection:"Записване в %{collectionLabel} колекция",unsavedChanges:"Незапазени Промени",changesSaved:"Запазени промени",draft:"Чернова",inReview:"В ревю",ready:"Готово",publishNow:"Публикувай сега",deployPreviewPendingButtonLabel:"Проверете визуализацията",deployPreviewButtonLabel:"Визуализация",deployButtonLabel:"Изглед",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"Удебелен",italic:"Курсив",strikethrough:void 0,code:"Код",codeBlock:void 0,insertCodeBlock:void 0,link:"Връзка",insertLink:void 0,paragraph:void 0,headings:"Заглавия",quote:"Цитат",insertQuote:void 0,bulletedList:"Маркиран Списък",numberedList:"Номериран Списък",addComponent:"Добави Компонент",richText:"Форматиране на текст",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"Избери изображение",chooseMultiple:void 0,chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на изображението",chooseDifferent:"Избери различно изображение",addMore:void 0,remove:"Премахни изображение",removeAll:void 0},file:{choose:"Избери файл file",chooseUrl:"Вмъкване от URL",chooseMultiple:void 0,replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на файла",chooseDifferent:"Избери различен файл",addMore:void 0,remove:"Премахни файл",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"Няма контрол за приспособлението '%{widget}'."},unknownPreview:{noPreview:"Няма визуализация за приспособлението '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сега",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"Чернова",copy:"Копирай",copyUrl:"Копирай URL",copyPath:"Копитай път",copyName:"Копитай име",copied:"Копирано"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"Наистина ли искате да изтриете избрания медиен файл?",fileTooLargeTitle:void 0,fileTooLargeBody:"Файлът е твърде голям.\nНастройките не позволяват запазване на файлове по-големи от %{size} kB.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"Няма резултати.",noAssetsFound:"Няма намерени ресурси.",noImagesFound:"Няма намерени изображения.",private:"Частен ",images:"Изображения",mediaAssets:"Медийни ресурси",search:"Търсене...",uploading:"Качване...",upload:"Качи",download:"Изтегли",deleting:"Изтриване...",deleteSelected:"Изтрай избрани",chooseSelected:"Избери избрани",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"Обратно към сайта"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"Грешка",details:"Възникна грешка - моля ",reportIt:"докладвайте в GitHub.",detailsHeading:"Детайли",privacyWarning:"При отваряне на билет той автоматично се попълва предварително със съобщение за грешка и информация за отстраняване на грешки.\nМоля, проверете дали данните са верни и не съдържат поверителна информация.",recoveredEntry:{heading:"Възстановен документ",warning:"Моля, копирайте това съобщение някъде, преди да напуснете страницата!",copyButtonLabel:"Копиране в клипборда"}},settingsDropdown:{theme:void 0,logOut:"Изход"},toast:{onFailToLoadEntries:"Неуспешно зареждане на записа: %{details}",onFailToLoadDeployPreview:"Неуспешно зареждане на визуализация: %{details}",onFailToPersist:"Неуспешно запазване на записа: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"Неуспешно изтриване на записа: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"Неуспешно актуализиране на състоянието: %{details}",missingRequiredField:"Извинете, пропуснахте задължително поле. Моля, попълнете преди запазване.",entrySaved:"Записът е запазен",entryDeleted:void 0,entryPublished:"Записът е публикуван",entryUnpublished:"Записът е непубликуван",onFailToPublishEntry:"Неуспешно публикуване на запис: %{details}",onFailToUnpublishEntry:"Неуспешно премахване на публикацията на записа: %{details}",entryUpdated:"Статусът на записа е актуализиран",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"Непубликуваните промени са изтрити",onFailToAuth:"%{details}",onLoggedOut:"Излезли сте. Моля, запазете всички данни и влезте отново",onBackendDown:"Има прекъсване в работата на бекенда. Виж детайлите %{details}"}},workflow:{workflow:{dashboard:void 0,loading:"Зареждане на редакционни записи",workflowHeading:"Редакционен работен процес",newPost:"Нова публикация",description:"Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. |||| Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Изтриване на промените",deleteNewEntry:"Изтриване на нов запис",publishChanges:"Публикуване на промени",publishNewEntry:"Публикуване на нов запис"},workflowList:{onDeleteEntry:"Наистина ли искате да изтриете този запис?",onPublishingNotReadyEntry:'Могат да се публикуват само елементи със статус "Готов". Плъзенете картата в колоната "Готов" за да активирате публикуването.',onPublishEntry:"Наистина ли искате да публикувате този запис?",draft:"Чернови",pending_review:"В Ревю",pending_publish:"Готов",currentEntries:"%{smart_count} запис |||| %{smart_count} записи"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},zh_Hans:{auth:{login:"登录",loggingIn:"正在登录...",loginWithNetlifyIdentity:"使用 Netlify Identity 登录",loginWithBitbucket:"使用 Bitbucket 登录",loginWithGitHub:"使用 GitHub 登录",loginWithGitLab:"使用 GitLab 登录",loginWithGitea:"使用 Gitea 登录",errors:{email:"请输入电子邮箱",password:"请输入密码",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"无法连接账户认证系统(如果正在使用 git-gateway 作为 backend,请确保已经开启 Netlify Identity 服务以及 Git Gateway)"}},app:{header:{content:"内容",workflow:"工作流",media:"媒体",quickAdd:"快速新建"},app:{loading:"正在加载...",errorHeader:"加载 CMS 配置时发生错误",configErrors:"配置错误",configNotFound:void 0,checkConfigYml:"请检查 config.yml 文件是否配置正确",loadingConfig:"正在加载配置...",waitingBackend:"等待 backend 数据..."},notFoundPage:{header:"页面不存在"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"查找所有...",searchIn:"查找"},collectionTop:{sortBy:"排序",viewAs:"查看",newButton:"新建%{collectionLabel}",ascending:"升序",descending:"降序",searchResults:"有关“%{searchTerm}”的搜索结果",searchResultsInCollection:"在%{collection}中有关“%{searchTerm}”的搜索结果",filterBy:"筛选",groupBy:"分组"},entries:{loadingEntries:"正在加载内容...",cachingEntries:"正在缓存内容...",longerLoading:"这可能需要花费几分钟时间",noEntries:"暂无内容"},groups:{other:"其他",negateLabel:"非%{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新于"}},notFound:void 0},editor:{editorControl:{field:{optional:"可选"}},editorControlPane:{widget:{required:"“%{fieldLabel}”是必填项",regexPattern:"“%{fieldLabel}”不满足模式%{pattern}",processing:"“%{fieldLabel}”正在处理中",range:"“%{fieldLabel}”必须位于 %{minValue} 和 %{maxValue} 之间",min:"“%{fieldLabel}”必须至少为 %{minValue}",max:"“%{fieldLabel}”必须小于等于 %{maxValue}",rangeCount:"“%{fieldLabel}”必须包含 %{minCount} 到 %{maxCount} 个项目",rangeCountExact:"“%{fieldLabel}”必须且只能包含 %{count} 个项目",rangeMin:"“%{fieldLabel}”必须为至少 %{minCount} 个项目",rangeMax:"“%{fieldLabel}”必须为小于等于 %{maxCount} 个项目",invalidPath:"“%{path}”为无效路径",pathExists:"路径“%{path}”已经存在",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"正在使用%{locale}撰写",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"你确定要离开此页面吗?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"你有尚未保存的修改,请在更新状态前进行保存",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"请在发布之前将状态更新为“就绪”",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"你有尚未保存的修改,请在发布前进行保存",onPublishingTitle:void 0,onPublishingBody:"你确定要发布此内容吗?",onUnpublishingTitle:void 0,onUnpublishingBody:"你确定要撤销发布此内容吗?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"你确定要删除这个已经发布的内容,以及当前尚未保存的修改吗?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"你确定要删除这个已经发布的内容吗?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"此内容所有未被发布的修改,以及当前尚未保存的修改都将被删除,你确定吗?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"此内容所有未被发布的修改都将被删除,你确定吗?",loadingEntry:"正在加载内容..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"打开/关闭国际化",togglePreview:"打开/关闭预览",toggleScrollSync:"同步滚动"},editorToolbar:{publishing:"正在发布...",publish:"发布",published:"已发布",unpublish:"撤销发布",duplicate:"复制",unpublishing:"正在撤销发布...",publishAndCreateNew:"发布,然后新建内容",publishAndDuplicate:"发布,然后复制内容",deleteUnpublishedChanges:"删除未发布的修改",deleteUnpublishedEntry:"删除未发布的内容",deletePublishedEntry:"删除已发布的内容",deleteEntry:"删除内容",saving:"正在保存...",save:"保存",statusInfoTooltipDraft:void 0,statusInfoTooltipInReview:void 0,deleting:"正在删除...",updating:"正在更新...",status:"状态: %{status}",backCollection:"正在集合“%{collectionLabel}”中编写",unsavedChanges:"含未保存的修改",changesSaved:"修改已保存",draft:"草稿",inReview:"审核中",ready:"就绪",publishNow:"立即发布",deployPreviewPendingButtonLabel:"点击以预览",deployPreviewButtonLabel:"查看预览",deployButtonLabel:"查看发布",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"粗体",italic:"斜体",strikethrough:void 0,code:"代码",codeBlock:void 0,insertCodeBlock:void 0,link:"链接",insertLink:void 0,paragraph:void 0,headings:"标题",quote:"引用",insertQuote:void 0,bulletedList:"无序列表",numberedList:"有序列表",addComponent:"添加组件",richText:"富文本",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"选择图片",chooseMultiple:void 0,chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入图片的 URL",chooseDifferent:"选择其他图片",addMore:void 0,remove:"移除图片",removeAll:void 0},file:{choose:"选择文件",chooseUrl:"从 URL 插入",chooseMultiple:void 0,replaceUrl:"用 URL 替代",promptUrl:"输入文件的 URL",chooseDifferent:"选择其他文件",addMore:void 0,remove:"移除文件",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"'%{widget}'的控件不存在"},unknownPreview:{noPreview:"'%{widget}'无法预览"},headingOptions:{headingOne:"标题 1",headingTwo:"标题 2",headingThree:"标题 3",headingFour:"标题 4",headingFive:"标题 5",headingSix:"标题 6"},datetime:{now:"现在",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:void 0,addType:void 0,noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:"复制",copyUrl:"复制 URL",copyPath:"复制路径",copyName:"复制名称",copied:"已复制"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"你确定要删除此媒体项目吗?",fileTooLargeTitle:void 0,fileTooLargeBody:"文件体积过大\n目前的配置中不允许文件体积超过 %{size} kB",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"暂无结果",noAssetsFound:"未找到资源",noImagesFound:"未找到图片",private:"私有",images:"图片",mediaAssets:"媒体资源",search:"搜索...",uploading:"正在上传...",upload:"上传",download:"下载",deleting:"正在下载...",deleteSelected:"删除已选中项目",chooseSelected:"选用已选中项目",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"返回主页"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"错误",details:"程序发生了一个错误,请",reportIt:"在 Github 上发布一个 Issue",detailsHeading:"详情",privacyWarning:"发布一个 Issue 会将错误信息和调试数据预置其中\n请确保这些信息是正确的,同时移除那些敏感数据",recoveredEntry:{heading:"已恢复的文档",warning:"请在切换至其他页面之前,将它复制并粘贴到某个地方",copyButtonLabel:"复制到剪贴板"}},settingsDropdown:{theme:void 0,logOut:"注销"},toast:{onFailToLoadEntries:"加载内容失败: %{details}",onFailToLoadDeployPreview:"加载预览失败: %{details}",onFailToPersist:"保存内容失败: %{details}",onFailToPersistMedia:void 0,onFailToDelete:"删除内容失败: %{details}",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"更新状态失败: %{details}",missingRequiredField:"你漏掉了一个必填项,请在保存之前将它填写好",entrySaved:"内容已保存",entryDeleted:void 0,entryPublished:"内容已发布",entryUnpublished:"内容已撤销发布",onFailToPublishEntry:"发布失败: %{details}",onFailToUnpublishEntry:"撤销发布失败: %{details}",entryUpdated:"内容状态已更新",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"未发布的修改已删除",onFailToAuth:"%{details}",onLoggedOut:"你已注销,请先保存好数据然后再次登录",onBackendDown:"Backend 服务已中断,欲知详情请查看:%{details}"}},workflow:{workflow:{dashboard:void 0,loading:"正在加载编辑工作流项目",workflowHeading:"编辑工作流",newPost:"新建帖子",description:"%{smart_count} 个待审查的内容、%{readyCount} 个已就绪的内容 |||| %{smart_count} 个待检查的内容、%{readyCount} 个已就绪的内容",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} 由 %{author} 修改",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"由 %{author} 修改",deleteChanges:"删除修改",deleteNewEntry:"删除新内容",publishChanges:"发布修改",publishNewEntry:"发布新内容"},workflowList:{onDeleteEntry:"你确定要删除此内容吗?",onPublishingNotReadyEntry:"只有状态为“就绪”的项目才能被发布。需要先将卡片拖动到“就绪”一列才能发布",onPublishEntry:"你确定要发布此内容吗?",draft:"草稿",pending_review:"审查中",pending_publish:"就绪",currentEntries:"%{smart_count} 个内容 |||| %{smart_count} 个内容"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}},he:{auth:{login:"התחברות",loggingIn:"התחברות...",loginWithNetlifyIdentity:"התחברות עם Netlify Identity",loginWithBitbucket:"התחברות עם Bitbucket",loginWithGitHub:"התחברות עם GitHub",loginWithGitLab:"התחברות עם GitLab",loginWithGitea:"התחברות עם Gitea",errors:{email:"נא לא לשכוח להקליד את כתובת המייל",password:"נא להקליד את הסיסמה.",authTitle:void 0,authBody:"%{details}",netlifyIdentityNotFound:void 0,identitySettings:"הגדרות אימות הזהות אינן נגישות. כאשר משתמשים ב-git-gateway כשירות ה-backend יש לוודא ששירות אימות הזהות ו-Git Gateway הופעלו."}},app:{header:{content:"תוכן",workflow:"ניהול אייטמים לפני הפרסום",media:"מדיה",quickAdd:"הוספה מהירה"},app:{loading:"טעינה...",errorHeader:"אירעה שגיאה בטעינת הגדרות מערכת ניהול התוכן",configErrors:"שגיאות בהגדרות",configNotFound:void 0,checkConfigYml:"יש לבדוק את הקובץ config.yml.",loadingConfig:"טעינת הגדרות...",waitingBackend:"ממתין לטעינת ה-backend..."},notFoundPage:{header:"לא נמצא"}},collection:{sidebar:{collections:"קטגוריות",allCollections:"כל הקטגוריות",searchAll:"חיפוש כללי",searchIn:"חיפוש בקטגוריית"},collectionTop:{sortBy:"מיון לפי",viewAs:"תצוגה לפי",newButton:"חדש %{collectionLabel}",ascending:"בסדר עולה",descending:"בסדר יורד",searchResults:'תוצאות חיפוש עבור "%{searchTerm}"',searchResultsInCollection:'תוצאות חיפוש עבור "%{searchTerm}" ב%{collection}',filterBy:"סינון לפי",groupBy:"ארגון לפי"},entries:{loadingEntries:"טעינת אייטמים...",cachingEntries:"שמירת אייטמים בזכרון המטמון",longerLoading:"התהליך עשוי להימשך כמה דקות",noEntries:"לא נמצאו אייטמים"},groups:{other:"אחר",negateLabel:"לא %{label}"},table:{summary:void 0,collection:void 0},defaultFields:{author:{label:"מאת"},updatedOn:{label:"עודכן בתאריך"}},notFound:void 0},editor:{editorControl:{field:{optional:"רשות"}},editorControlPane:{widget:{required:"%{fieldLabel} הוא שדה חובה.",regexPattern:"%{fieldLabel} לא תואם לדפוס %{pattern}.",processing:"%{fieldLabel} מעובד.",range:"%{fieldLabel} חייב להיות בין %{minValue} לבין %{maxValue}.",min:"%{fieldLabel} חייב להיות לפחות %{minValue}.",max:"%{fieldLabel} חייב להיות %{maxValue} או פחות.",rangeCount:"%{fieldLabel} חייב לכלול בין %{minCount} לבין %{maxCount} אייטמים.",rangeCountExact:"%{fieldLabel} חייב לכלול בדיוק %{count} אייטמים.",rangeMin:"%{fieldLabel} חייב לכלול לפחות %{minCount} אייטמים",rangeMax:"%{fieldLabel} חייב לכלול %{maxCount} אייטמים לכל היותר.",invalidPath:"'%{path}' אינו URL תקין",pathExists:"'%{path}' כבר קיים",invalidColor:void 0,invalidHexCode:void 0},i18n:{writingInLocale:"כתיבה בשפה ה%{locale}",copyFromLocale:void 0,copyFromLocaleConfirm:void 0}},editor:{onLeavePage:"האם ברצונך לעבור לעמוד אחר ללא שמירה?",onUpdatingWithUnsavedChangesTitle:void 0,onUpdatingWithUnsavedChangesBody:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני עדכון מצב האייטם.",onPublishingNotReadyTitle:void 0,onPublishingNotReadyBody:"נא לשנות את מצב האייטם ל״מוכן לפרסום״ לפני הפרסום.",onPublishingWithUnsavedChangesTitle:void 0,onPublishingWithUnsavedChangesBody:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני הפרסום.",onPublishingTitle:void 0,onPublishingBody:"האם ברצונך לפרסם את האייטם?",onUnpublishingTitle:void 0,onUnpublishingBody:"האם ברצונך לבטל את פרסום האייטם?",onDeleteWithUnsavedChangesTitle:void 0,onDeleteWithUnsavedChangesBody:"האם ברצונך למחוק את האייטם הזה לפני פרסומו, וכן את השינויים שבוצעו כעת וטרם נשמרו?",onDeletePublishedEntryTitle:void 0,onDeletePublishedEntryBody:"האם ברצונך למחוק את האייטם הזה לאחר פרסומו?",onDeleteUnpublishedChangesWithUnsavedChangesTitle:void 0,onDeleteUnpublishedChangesWithUnsavedChangesBody:"פעולה זו תמחק את כל השינויים שבוצעו באייטם זה ולא פורסמו, וכן את השינויים שבוצעו כעת וטרם נשמרו. האם ברצונך למחוק?",onDeleteUnpublishedChangesTitle:void 0,onDeleteUnpublishedChangesBody:"כל השינויים שבוצעו באייטם זה ולא פורסמו יימחקו. האם ברצונך למחוק אותו?",loadingEntry:"טעינת אייטם..."},editorInterface:{sideBySideI18n:void 0,preview:void 0,toggleI18n:"החלפת שפות",togglePreview:"הפעלת תצוגה מקדימה",toggleScrollSync:"סנכרון הגלילה"},editorToolbar:{publishing:"פרסום...",publish:"פרסום",published:"פורסם",unpublish:"ביטול הפרסום",duplicate:"שכפול",unpublishing:"ביטול הפרסום...",publishAndCreateNew:"פרסום ויצירת אייטם חדש",publishAndDuplicate:"פרסום ושכפול",deleteUnpublishedChanges:"מחיקת השינויים שלא פורסמו",deleteUnpublishedEntry:"מחיקת אייטם שטרם פורסם",deletePublishedEntry:"מחיקת אייטם שפורסם",deleteEntry:"מחיקת האייטם",saving:"שמירה...",save:"שמירה",statusInfoTooltipDraft:"האייטם מוגדר כטיוטה. כדי להשלים את הפעולה ולהעביר אותו למצב ״ממתין לאישור״ יש להעביר אותו למצב ״ממתין לאישור״",statusInfoTooltipInReview:"האייטם ממתין לאישור - לא נדרשת פעולה נוספת. ניתן עדיין לבצע שינויים בעת שהאייטם ממתין לאישור.",deleting:"מחיקה...",updating:"עדכון...",status:"מצב: %{status}",backCollection:"כתיבה בקטגוריית %{collectionLabel}",unsavedChanges:"שינויים לא שמורים",changesSaved:"השינויים נשמרו",draft:"טיוטה",inReview:"ממתין לאישור",ready:"מוכן לפרסום",publishNow:"פרסום מיידי",deployPreviewPendingButtonLabel:"בדיקת תצוגה מקדימה",deployPreviewButtonLabel:"צפייה בתצוגה מקדימה",deployButtonLabel:"צפייה באתר",discardChanges:void 0,discardChangesTitle:void 0,discardChangesBody:void 0},editorWidgets:{markdown:{bold:"מודגש",italic:"נטוי",strikethrough:void 0,code:"קוד",codeBlock:void 0,insertCodeBlock:void 0,link:"קישור",insertLink:void 0,paragraph:void 0,headings:"כותרת",quote:"ציטוט",insertQuote:void 0,bulletedList:"רשימה לא-ממוספרת",numberedList:"רשימה ממוספרת",addComponent:"הוספת רכיב",richText:"טקסט עשיר",markdown:"Markdown",type:void 0,decreaseIndent:void 0,increaseIndent:void 0,image:void 0,insertImage:void 0,table:{table:void 0,deleteColumn:void 0,deleteRow:void 0,deleteTable:void 0,insertColumn:void 0,insertRow:void 0,insertTable:void 0}},image:{choose:"בחירת תמונה",chooseMultiple:void 0,chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת תמונה מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של התמונה",chooseDifferent:"בחירת תמונה אחרת",addMore:void 0,remove:"הסרת תמונה",removeAll:void 0},file:{choose:"בחירת קובץ",chooseUrl:"הוספה מכתובת אינטרנט",chooseMultiple:void 0,replaceUrl:"החלפת קובץ מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של הקובץ",chooseDifferent:"בחירת קובץ אחר",addMore:void 0,remove:"הסרת קובץ",removeAll:void 0},folder:{choose:void 0,chooseUrl:void 0,chooseMultiple:void 0,replaceUrl:void 0,promptUrl:void 0,chooseDifferent:void 0,addMore:void 0,remove:void 0,removeAll:void 0},unknownControl:{noControl:"לא הוגדרו פעולות ל'%{widget}'."},unknownPreview:{noPreview:"אין תצוגה מקדימה ל'%{widget}'."},headingOptions:{headingOne:"כותרת 1",headingTwo:"כותרת 2",headingThree:"כותרת 3",headingFour:"כותרת 4",headingFive:"כותרת 5",headingSix:"כותרת 6"},datetime:{now:"עכשיו",invalidDateTitle:void 0,invalidDateBody:void 0},list:{add:"הוספת %{item}",addType:"הוספת אייטם מסוג %{item}",noValue:void 0},keyvalue:{key:void 0,value:void 0,uniqueKeys:void 0},code:{language:void 0,selectLanguage:void 0}}},mediaLibrary:{mediaLibraryCard:{draft:"טיוטה",copy:"העתקה",copyUrl:"העתקת ה-URL",copyPath:"העתקת הנתיב",copyName:"העתקת השם",copied:"העתקה הושלמה"},mediaLibrary:{onDeleteTitle:void 0,onDeleteBody:"האם ברצונך למחוק את פריט המדיה הזה?",fileTooLargeTitle:void 0,fileTooLargeBody:"הקובץ גדול מדי.\nמוגדר לא לאפשר העלאת קבצים גדולים מ-%{size} קילובייט.",alreadyExistsTitle:void 0,alreadyExistsBody:void 0},mediaLibraryModal:{noResults:"לא נמצאו תוצאות.",noAssetsFound:"לא נמצאו קבצים.",noImagesFound:"לא נמצאו תמונות.",private:"פרטי ",images:"תמונות",mediaAssets:"קבצי מדיה",search:"חיפוש...",uploading:"העלאה...",upload:"העלאה",download:"הורדה",deleting:"מחיקה...",deleteSelected:"למחוק את הקובץ המסומן",chooseSelected:"לבחור את הקובץ המסומן",dropImages:void 0,dropFiles:void 0},folderSupport:{newFolder:void 0,createNewFolder:void 0,enterFolderName:void 0,create:void 0,home:void 0,up:void 0,upToFolder:void 0}},ui:{common:{yes:void 0,no:void 0,okay:void 0,cancel:void 0},default:{goBackToSite:"בחזרה לאתר"},localBackup:{hasLocalBackup:void 0},errorBoundary:{title:"שגיאה",details:"אירעה שגיאה. נא ",reportIt:"דווחו על הבעיה ב-GitHub.",detailsHeading:"פרטים",privacyWarning:"פתיחת Issue מעתיקה את הודעת השגיאה ונתונים רלוונטיים לאיתור הבעיה (debugging).\nיש לוודא שהמידע מדויק ולמחוק נתונים אישיים כלשהם.",recoveredEntry:{heading:"מסמך משוחזר",warning:"נא להעתיק ולהדביק את זה לפני ניווט לחלון אחר!",copyButtonLabel:"העתקה"}},settingsDropdown:{theme:void 0,logOut:"התנתקות"},toast:{onFailToLoadEntries:"טעינת האייטם %{details} נכשלה",onFailToLoadDeployPreview:"טעינת התצוגה המקדימה של האייטם %{details} נכשלה",onFailToPersist:"אחסון האייטם %{details} נכשל",onFailToPersistMedia:void 0,onFailToDelete:"מחיקת האייטם %{details} נכשלה",onFailToDeleteMedia:void 0,onFailToUpdateStatus:"עדכון מצב האייטם %{details} נכשל",missingRequiredField:"אופס, שכחת למלא שדה חובה. נא להשלים את המידע החסר לפני השמירה",entrySaved:"האייטם נשמר",entryDeleted:void 0,entryPublished:"האייטם פורסם",entryUnpublished:"האייטם הועבר לטיוטות",onFailToPublishEntry:"פרסום האייטם %{details} נכשל",onFailToUnpublishEntry:"ביטול פרסום האייטם %{details} נכשל",entryUpdated:"מצב האייטם עודכן",onDeletePublishedEntry:void 0,onDeleteUnpublishedChanges:"השינויים שלא פורסמו נמחקו",onFailToAuth:"%{details}",onLoggedOut:"נותקת מהמערכת. יש לגבות מידע לא שמור ולהתחבר שוב",onBackendDown:"ה-backend המוגדר אינו זמין. ראו %{details} למידע נוסף"}},workflow:{workflow:{dashboard:void 0,loading:"טעינת אייטמים",workflowHeading:"ניהול אייטמים לפני הפרסום",newPost:"אייטם חדש",description:"%אייטם {smart_count} ממתין לאישור, אייטם %{readyCount} מוכן לפרסום |||| %{smart_count} אייטמים ממתינים לאישור, %{readyCount} מוכנים לפרסום",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} מאת %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"מאת %{author}",deleteChanges:"למחוק את השינויים",deleteNewEntry:"למחוק אייטם חדש",publishChanges:"פרסום השינויים",publishNewEntry:"פרסום אייטם חדש"},workflowList:{onDeleteEntry:"האם ברצונך למחוק אייטם זה?",onPublishingNotReadyEntry:"ניתן לפרסם רק אייטמים שנמצאים במצב ״מוכן לפרסום״. נא לגרור את האייטם לטור ״מוכן לפרסום״ כדי לפרסם.",onPublishEntry:"האם ברצונך לפרסם אייטם זה?",draft:"טיוטות",pending_review:"ממתין לאישור",pending_publish:"מוכן לפרסום",currentEntries:"אייטם %{smart_count} |||| %{smart_count} אייטמים"},openAuthoring:{forkRequired:void 0,forkRepo:void 0,markReadyForReview:void 0}}}},uoe=UD("ErrorMessage",["root"]),coe=({errors:e,className:t})=>e.length?c.createElement("div",{key:"error","data-testid":"error",className:qD(uoe.root,t)},e[0].message):null;function doe(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const foe=/[$_\p{ID_Start}]/u,hoe=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,poe=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,moe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,goe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,voe={};function Ooe(e){return!!e&&foe.test(String.fromCodePoint(e))}function yoe(e,t){const n=(t||voe).jsx?poe:hoe;return!!e&&n.test(String.fromCodePoint(e))}function boe(e,t){return((t||voe).jsx?goe:moe).test(e)}const woe=/[ \t\n\f\r]/g;function koe(e){return"object"==typeof e?"text"===e.type&&xoe(e.value):xoe(e)}function xoe(e){return""===e.replace(woe,"")}class _oe{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Soe(e,t){const n={},r={};let i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Uoe=Loe({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Xoe(e,t){return t in e?e[t]:t}function qoe(e,t){return Xoe(e,t.toLowerCase())}const Boe=Loe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:qoe,properties:{xmlns:null,xmlnsXLink:null}}),Voe=Loe({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:$oe,ariaAutoComplete:null,ariaBusy:$oe,ariaChecked:$oe,ariaColCount:Roe,ariaColIndex:Roe,ariaColSpan:Roe,ariaControls:Aoe,ariaCurrent:null,ariaDescribedBy:Aoe,ariaDetails:null,ariaDisabled:$oe,ariaDropEffect:Aoe,ariaErrorMessage:null,ariaExpanded:$oe,ariaFlowTo:Aoe,ariaGrabbed:$oe,ariaHasPopup:null,ariaHidden:$oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Aoe,ariaLevel:Roe,ariaLive:null,ariaModal:$oe,ariaMultiLine:$oe,ariaMultiSelectable:$oe,ariaOrientation:null,ariaOwns:Aoe,ariaPlaceholder:null,ariaPosInSet:Roe,ariaPressed:$oe,ariaReadOnly:$oe,ariaRelevant:null,ariaRequired:$oe,ariaRoleDescription:Aoe,ariaRowCount:Roe,ariaRowIndex:Roe,ariaRowSpan:Roe,ariaSelected:$oe,ariaSetSize:Roe,ariaSort:null,ariaValueMax:Roe,ariaValueMin:Roe,ariaValueNow:Roe,ariaValueText:null,role:null}}),Yoe=Loe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:qoe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:joe,acceptCharset:Aoe,accessKey:Aoe,action:null,allow:null,allowFullScreen:Toe,allowPaymentRequest:Toe,allowUserMedia:Toe,alt:null,as:null,async:Toe,autoCapitalize:null,autoComplete:Aoe,autoFocus:Toe,autoPlay:Toe,capture:Toe,charSet:null,checked:Toe,cite:null,className:Aoe,cols:Roe,colSpan:null,content:null,contentEditable:$oe,controls:Toe,controlsList:Aoe,coords:Roe|joe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Toe,defer:Toe,dir:null,dirName:null,disabled:Toe,download:Qoe,draggable:$oe,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Toe,formTarget:null,headers:Aoe,height:Roe,hidden:Toe,high:Roe,href:null,hrefLang:null,htmlFor:Aoe,httpEquiv:Aoe,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Toe,itemId:null,itemProp:Aoe,itemRef:Aoe,itemScope:Toe,itemType:Aoe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Toe,low:Roe,manifest:null,max:null,maxLength:Roe,media:null,method:null,min:null,minLength:Roe,multiple:Toe,muted:Toe,name:null,nonce:null,noModule:Toe,noValidate:Toe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Toe,optimum:Roe,pattern:null,ping:Aoe,placeholder:null,playsInline:Toe,poster:null,preload:null,readOnly:Toe,referrerPolicy:null,rel:Aoe,required:Toe,reversed:Toe,rows:Roe,rowSpan:Roe,sandbox:Aoe,scope:null,scoped:Toe,seamless:Toe,selected:Toe,shape:null,size:Roe,sizes:null,slot:null,span:Roe,spellCheck:$oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Roe,step:null,style:null,tabIndex:Roe,target:null,title:null,translate:null,type:null,typeMustMatch:Toe,useMap:null,value:$oe,width:Roe,wrap:null,align:null,aLink:null,archive:Aoe,axis:null,background:null,bgColor:null,border:Roe,borderColor:null,bottomMargin:Roe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Toe,declare:Toe,event:null,face:null,frame:null,frameBorder:null,hSpace:Roe,leftMargin:Roe,link:null,longDesc:null,lowSrc:null,marginHeight:Roe,marginWidth:Roe,noResize:Toe,noHref:Toe,noShade:Toe,noWrap:Toe,object:null,profile:null,prompt:null,rev:null,rightMargin:Roe,rules:null,scheme:null,scrolling:$oe,standby:null,summary:null,text:null,topMargin:Roe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Roe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Toe,disableRemotePlayback:Toe,prefix:null,property:null,results:Roe,security:null,unselectable:null}}),Zoe=Loe({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Xoe,properties:{about:Doe,accentHeight:Roe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Roe,amplitude:Roe,arabicForm:null,ascent:Roe,attributeName:null,attributeType:null,azimuth:Roe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Roe,by:null,calcMode:null,capHeight:Roe,className:Aoe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Roe,diffuseConstant:Roe,direction:null,display:null,dur:null,divisor:Roe,dominantBaseline:null,download:Toe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Roe,enableBackground:null,end:null,event:null,exponent:Roe,externalResourcesRequired:null,fill:null,fillOpacity:Roe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:joe,g2:joe,glyphName:joe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Roe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Roe,horizOriginX:Roe,horizOriginY:Roe,id:null,ideographic:Roe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Roe,k:Roe,k1:Roe,k2:Roe,k3:Roe,k4:Roe,kernelMatrix:Doe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Roe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Roe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Roe,overlineThickness:Roe,paintOrder:null,panose1:null,path:null,pathLength:Roe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Aoe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Roe,pointsAtY:Roe,pointsAtZ:Roe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Doe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Doe,rev:Doe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Doe,requiredFeatures:Doe,requiredFonts:Doe,requiredFormats:Doe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Roe,specularExponent:Roe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Roe,strikethroughThickness:Roe,string:null,stroke:null,strokeDashArray:Doe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Roe,strokeOpacity:Roe,strokeWidth:null,style:null,surfaceScale:Roe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Doe,tabIndex:Roe,tableValues:null,target:null,targetX:Roe,targetY:Roe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Doe,to:null,transform:null,u1:null,u2:null,underlinePosition:Roe,underlineThickness:Roe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Roe,values:null,vAlphabetic:Roe,vMathematical:Roe,vectorEffect:null,vHanging:Roe,vIdeographic:Roe,version:null,vertAdvY:Roe,vertOriginX:Roe,vertOriginY:Roe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Roe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Goe=Soe([Uoe,Foe,Boe,Voe,Yoe],"html"),Hoe=Soe([Uoe,Foe,Boe,Voe,Zoe],"svg"),Koe=/^data[-\w.:]+$/i,Joe=/-[a-z]/g,eae=/[A-Z]/g;function tae(e,t){const n=Poe(t);let r=t,i=Eoe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Koe.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Joe,rae);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Joe.test(e)){let n=e.replace(eae,nae);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=zoe}return new i(r,t)}function nae(e){return"-"+e.toLowerCase()}function rae(e){return e.charAt(1).toUpperCase()}const iae={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function oae(e){return e.join(" ").trim()}var aae=__webpack_require__(94821);const sae=aae.default||aae,lae=cae("end"),uae=cae("start");function cae(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function dae(e){const t=uae(e),n=lae(e);if(t&&n)return{start:t,end:n}}function fae(e){return pae(e&&e.line)+":"+pae(e&&e.column)}function hae(e){return fae(e&&e.start)+"-"+fae(e&&e.end)}function pae(e){return e&&"number"==typeof e?e:1}class mae extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;var s;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=((s=i.place)&&"object"==typeof s?"position"in s||"type"in s?hae(s.position):"start"in s||"end"in s?hae(s):"line"in s||"column"in s?fae(s):"":"")||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}mae.prototype.file="",mae.prototype.name="",mae.prototype.reason="",mae.prototype.message="",mae.prototype.stack="",mae.prototype.column=void 0,mae.prototype.line=void 0,mae.prototype.ancestors=void 0,mae.prototype.cause=void 0,mae.prototype.fatal=void 0,mae.prototype.place=void 0,mae.prototype.ruleId=void 0,mae.prototype.source=void 0;const gae={}.hasOwnProperty,vae=new Map,Oae=/[A-Z]/g,yae=/-([a-z])/g,bae=new Set(["table","tbody","thead","tfoot","tr"]),wae=new Set(["td","th"]),kae="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xae(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=Hoe,e.schema=i),e.ancestors.push(t);const o=Cae(e,t.tagName,!1),a=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&gae.call(t.properties,i)){const o=Eae(e,i,t.properties[i]);if(o){const[i,a]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof a&&wae.has(t.tagName)?r=a:n[i]=a}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=Pae(e,t);return bae.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!koe(e)}))),_ae(e,a,o,t),Sae(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Tae(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=Hoe,e.schema=i),e.ancestors.push(t);const o=null===t.name?e.Fragment:Cae(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const i=t.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Tae(e,t.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else Tae(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),s=Pae(e,t);return _ae(e,a,o,t),Sae(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Tae(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Sae(r,Pae(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function _ae(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Sae(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Pae(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:vae;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Iae(e,e.length,0,t),e):t}function Wae(e){const t={};let n,r,i,o,a,s,l,u=-1;for(;++ui?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a-1&&e.test(String.fromCharCode(t))}}function ise(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return tse(r)?(e.enter(n),a(r)):t(r)};function a(r){return tse(r)&&o++o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(v(a),e=n;er;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function O(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},sse={tokenize:function(e,t,n){return ise(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},lse={tokenize:function(e,t,n){return function(t){return tse(t)?ise(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Jae(e)?t(e):n(e)}},partial:!0},use={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Jae(t)?e.check(cse,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Wae(e),e}},cse={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ise(e,i,"linePrefix")};function i(i){if(null===i||Jae(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},dse={tokenize:function(e){const t=this,n=e.attempt(lse,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,ise(e,e.attempt(this.parser.constructs.flow,r,e.attempt(use,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},fse={resolveAll:gse()},hse=mse("string"),pse=mse("text");function mse(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function m(e){l=void 0,d=e,f=f(e)}function g(e,t){t.restore()}function v(e,t){return function(n,i,o){let a,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?o:g(e[d])}function g(e){return function(n){return h=function(){const e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,y()},from:i}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?O():e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,v,O)(n)}}function v(t){return l=!0,e(f,h),i}function O(e){return l=!0,h.restore(),++d=3&&(null===o||Jae(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),tse(t)?ise(e,o,"whitespace")(t):o(t))}}},wse={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Gae(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(bse,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Gae(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(lse,r.interrupt?n:u,e.attempt(kse,d,c))}function u(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function c(t){return tse(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(lse,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ise(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!tse(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(xse,t,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ise(e,e.attempt(wse,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},kse={tokenize:function(e,t,n){const r=this;return ise(e,(function(e){const i=r.events[r.events.length-1];return!tse(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},xse={tokenize:function(e,t,n){const r=this;return ise(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},_se={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return tse(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){return tse(t)?ise(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(_se,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Sse(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||Zae(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Jae(t)?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return c||null!==i&&41!==i&&!ese(i)?c999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Jae(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||Jae(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!tse(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function Ese(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):Jae(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ise(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||Jae(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function Cse(e,t){let n;return function r(i){return Jae(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):tse(i)?ise(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Tse(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $se={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Pse.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Tse(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ese(t)?Cse(e,s)(t):s(t)}function s(t){return Sse(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Qse,u,u)(t)}function u(t){return tse(t)?ise(e,c,"whitespace")(t):c(t)}function c(o){return null===o||Jae(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},Qse={tokenize:function(e,t,n){return function(t){return ese(t)?Cse(e,r)(t):n(t)};function r(t){return Ese(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return tse(t)?ise(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Jae(e)?t(e):n(e)}},partial:!0},Rse={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ise(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):Jae(t)?e.attempt(Ase,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Jae(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Ase={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Jae(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ise(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Jae(e)?i(e):n(e)}},partial:!0},jse={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||ese(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Jae(n)?(e.exit("atxHeading"),t(n)):tse(n)?ise(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||ese(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Iae(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},Dse={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),tse(t)?ise(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Jae(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},Mse=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ise=["pre","script","style","textarea"],zse={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:j):Bae(s)?(e.consume(s),a=String.fromCharCode(s),p):n(s)}function c(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,f):Bae(o)?(e.consume(o),i=4,r.interrupt?t:j):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:j):n(i)}function f(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:P:f):n(i)}function h(t){return Bae(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||ese(s)){const l=47===s,u=a.toLowerCase();return l||o||!Ise.includes(u)?Mse.includes(a.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):P(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):v(s)):(i=1,r.interrupt?t(s):P(s))}return 45===s||Vae(s)?(e.consume(s),a+=String.fromCharCode(s),p):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:P):n(i)}function g(t){return tse(t)?(e.consume(t),g):_(t)}function v(t){return 47===t?(e.consume(t),_):58===t||95===t||Bae(t)?(e.consume(t),O):tse(t)?(e.consume(t),v):_(t)}function O(t){return 45===t||46===t||58===t||95===t||Vae(t)?(e.consume(t),O):y(t)}function y(t){return 61===t?(e.consume(t),b):tse(t)?(e.consume(t),y):v(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):tse(t)?(e.consume(t),b):k(t)}function w(t){return t===l?(e.consume(t),l=null,x):null===t||Jae(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ese(t)?y(t):(e.consume(t),k)}function x(e){return 47===e||62===e||tse(e)?v(e):n(e)}function _(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||Jae(t)?P(t):tse(t)?(e.consume(t),S):n(t)}function P(t){return 45===t&&2===i?(e.consume(t),$):60===t&&1===i?(e.consume(t),Q):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),j):93===t&&5===i?(e.consume(t),A):!Jae(t)||6!==i&&7!==i?null===t||Jae(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(Wse,M,E)(t))}function E(t){return e.check(Nse,C,M)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||Jae(t)?E(t):(e.enter("htmlFlowData"),P(t))}function $(t){return 45===t?(e.consume(t),j):P(t)}function Q(t){return 47===t?(e.consume(t),a="",R):P(t)}function R(t){if(62===t){const n=a.toLowerCase();return Ise.includes(n)?(e.consume(t),D):P(t)}return Bae(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):P(t)}function A(t){return 93===t?(e.consume(t),j):P(t)}function j(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),j):P(t)}function D(t){return null===t||Jae(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},Wse={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(lse,t,n)}},partial:!0},Nse={tokenize:function(e,t,n){const r=this;return function(t){return Jae(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Lse={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Fse={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),tse(t)?ise(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=s?(e.exit("codeFencedFenceSequence"),tse(t)?ise(e,c,"whitespace")(t):c(t)):n(t)}function c(r){return null===r||Jae(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),tse(t)?ise(e,u,"whitespace")(t):u(t))}function u(n){return null===n||Jae(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Lse,h,O)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||Jae(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):tse(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ise(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),c)}function d(t){return null===t||Jae(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Jae(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===o?n(t):(e.consume(t),f)}function h(t){return e.attempt(i,O,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&tse(t)?ise(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Jae(t)?e.check(Lse,h,O)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Jae(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function O(n){return e.exit("codeFenced"),t(n)}},concrete:!0},Use=document.createElement("i");function Xse(e){const t="&"+e+";";Use.innerHTML=t;const n=Use.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const qse={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Vae,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Hae,u):(e.enter("characterReferenceValue"),i=7,o=Gae,u(t))}function u(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==Vae||Xse(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);ele(d,-s),ele(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=zae(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=zae(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=zae(l,Ose(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=zae(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=zae(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Iae(e,n-1,c-n+3,l),c=n+l.length-u-2;break}for(c=-1;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const mle=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gle(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return ple(n.slice(t?2:1),t?16:10)}return Xse(n)||e}function vle(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Ole(e){return e&&"object"==typeof e?"position"in e||"type"in e?ble(e.position):"start"in e||"end"in e?ble(e):"line"in e||"column"in e?yle(e):"":""}function yle(e){return wle(e&&e.line)+":"+wle(e&&e.column)}function ble(e){return yle(e&&e.start)+"-"+yle(e&&e.end)}function wle(e){return e&&"number"==typeof e?e:1}const kle={}.hasOwnProperty;function xle(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(O),autolinkProtocol:c,autolinkEmail:c,atxHeading:i(m),blockQuote:i((function(){return{type:"blockquote",children:[]}})),characterEscape:c,characterReference:c,codeFenced:i(p),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(p,o),codeText:i((function(){return{type:"inlineCode",value:""}}),o),codeTextData:c,data:c,codeFlowValue:c,definition:i((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:i(g),hardBreakTrailing:i(g),htmlFlow:i(v,o),htmlFlowData:c,htmlText:i(v,o),htmlTextData:c,image:i((function(){return{type:"image",title:null,url:"",alt:null}})),label:o,link:i(O),listItem:i((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(y,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:i(y),paragraph:i((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(m),strong:i((function(){return{type:"strong",children:[]}})),thematicBreak:i((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=ple(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Xse(t);const i=this.stack.pop();i.value+=r,i.position.end=_le(e.end)},codeFenced:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=vle(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(f),hardBreakTrailing:s(f),htmlFlow:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:d,htmlText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:d,image:s((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(mle,gle)}(t),n.identifier=vle(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=_le(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),d.call(this,e))},link:s((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=vle(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};Sle(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:a,exit:l,buffer:o,resume:u,data:n},c=[];let d=-1;for(;++d0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Ele).call(s,void 0,e[0])}for(i.position={start:_le(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:_le(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{const e=n([],i);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Tle[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new Tle[o](a),i)};return r})(new Map,e)(0),Qle="",{toString:Rle}={},{keys:Ale}=Object,jle=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Rle.call(e).slice(8,-1);switch(n){case"Array":return[1,Qle];case"Object":return[2,Qle];case"Date":return[3,Qle];case"RegExp":return[4,Qle];case"Map":return[5,Qle];case"Set":return[6,Qle]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Dle=([e,t])=>0===e&&("function"===t||"symbol"===t),Mle=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=jle(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s)return i([s,[...r]],r);const e=[],t=i([a,e],r);for(const t of r)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([a,n],r);for(const t of Ale(r))!e&&Dle(jle(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[n,i]of r)(e||!Dle(jle(n))&&!Dle(jle(i)))&&t.push([o(n),o(i)]);return n}case 6:{const t=[],n=i([a,t],r);for(const n of r)!e&&Dle(jle(n))||t.push(o(n));return n}}const{message:l}=r;return i([a,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},Ile="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?$le(Mle(e,t)):structuredClone(e):(e,t)=>$le(Mle(e,t)),zle=(Wle(/\p{P}/u),Wle(/[A-Za-z]/),Wle(/[\dA-Za-z]/));function Wle(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Nle(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Lle(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Fle(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}Wle(/[#-'*+\--9=?A-Z^-~]/),Wle(/\d/),Wle(/[\dA-Fa-f]/),Wle(/[!-/:-@[-`{-~]/),Wle(/\s/);const Ule=function(e){if(null==e)return qle;if("function"==typeof e)return Xle(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return c;function c(){let u,c,d,f=Ble;if((!t||o(i,s,l[l.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[Vle,e]:null==e?Ble:[e]}(n(i,l)),f[0]===Yle))return f;if("children"in i&&i.children){const t=i;if(t.children&&f[0]!==Zle)for(c=(r?t.children.length:-1)+a,d=l.concat(t);c>-1&&c1:t}const Jle=9,eue=32;function tue(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(nue(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(nue(t.slice(i),i>0,!1)),o.join("")}function nue(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Jle||t===eue;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Jle||t===eue;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const rue={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Nle(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hle(e,t);const i={src:Nle(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Nle(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hle(e,t);const i={href:Nle(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Nle(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=uae(t.children[1]),a=lae(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s0&&n.push({type:"text",value:"\n"}),n}function due(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function fue(e,t){const n=function(e,t){const n=t||aue,r=new Map,i=new Map,o=new Map,a={...rue,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ile(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function hue(e,t){return e&&"run"in e?async function(n,r){const i=fue(n,t);await e.run(i,r)}:function(n){return fue(n,t||e)}}function pue(e){if(e)throw e}var mue=__webpack_require__(51302);function gue(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const vue={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Oue(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){if(Oue(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Oue(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function Oue(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yue=function(){return"/"};function bue(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const wue=["history","path","basename","stem","extname","dirname"];class kue{constructor(e){let t;t=e?bue(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=yue(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++rt.length;let a;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a instanceof Promise?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}(s,i)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new Cue;let t=-1;for(;++t0){let[r,...o]=t;const a=n[i][1];gue(a)&&gue(r)&&(r=mue(!0,a,r)),n[i]=[e,r,...o]}}}}const Tue=(new Cue).freeze();function $ue(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Que(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rue(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Aue(e){if(!gue(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function jue(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Due(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new kue(e)}const Mue=[],Iue={allowDangerousHtml:!0},zue=/^(https?|ircs?|mailto|xmpp)$/i,Wue=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Nue(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Mue,l=e.remarkPlugins||Mue,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Iue}:Iue,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Lue,h=Tue().use(Cle).use(l).use(hue,u).use(s),p=new kue;"string"==typeof r&&(p.value=r);for(const t of Wue)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const m=h.parse(p);let g=h.runSync(m,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:"root"===g.type?g.children:[g]}),Gle(g,(function(e,r,i){if("raw"===e.type&&i&&"number"==typeof r)return c?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Aae)if(Object.hasOwn(Aae,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Aae[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,i)),o&&i&&"number"==typeof r)return d&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}})),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,i,o){const a=Array.isArray(i.children),s=uae(n);return t(r,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,r=function(e,t,n,r){const a=Array.isArray(n.children)?o:i;return r?a(t,n,r):a(t,n)}}var i,o;const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Hoe:Goe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=xae(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(g,{Fragment:lM.Fragment,components:o,ignoreInvalidStyle:!0,jsx:lM.jsx,jsxs:lM.jsxs,passKeys:!0,passNode:!0})}function Lue(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||zue.test(e.slice(0,t))?e:""}function Fue(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const Uue=Gue(/\p{P}/u),Xue=Gue(/[A-Za-z]/),que=Gue(/[\dA-Za-z]/);Gue(/[#-'*+\--9=?A-Z^-~]/),Gue(/\d/),Gue(/[\dA-Fa-f]/);const Bue=Gue(/[!-/:-@[-`{-~]/);function Vue(e){return null!==e&&(e<0||32===e)}function Yue(e){return Bue(e)||Uue(e)}const Zue=Gue(/\s/);function Gue(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}const Hue=function(e){if(null==e)return Jue;if("function"==typeof e)return Kue(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return c;function c(){let u,c,d,f=ece;if((!t||o(i,s,l[l.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[tce,e]:null==e?ece:[e]}(n(i,l)),f[0]===nce))return f;if("children"in i&&i.children){const t=i;if(t.children&&f[0]!==rce)for(c=(r?t.children.length:-1)+a,d=l.concat(t);c>-1&&c0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Fue(e,"(");let o=Fue(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function vce(e,t,n,r){return!(!Oce(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Oce(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Zue(n)||Yue(n))&&(!t||47!==n)}function yce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function bce(){return{enter:{gfmFootnoteDefinition:kce,gfmFootnoteDefinitionLabelString:xce,gfmFootnoteCall:Pce,gfmFootnoteCallString:Ece},exit:{gfmFootnoteDefinition:Sce,gfmFootnoteDefinitionLabelString:_ce,gfmFootnoteCall:Tce,gfmFootnoteCallString:Cce}}}function wce(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Qce,footnoteReference:$ce}}}function kce(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function xce(){this.buffer()}function _ce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=yce(this.sliceSerialize(e)).toLowerCase()}function Sce(e){this.exit(e)}function Pce(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ece(){this.buffer()}function Cce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=yce(this.sliceSerialize(e)).toLowerCase()}function Tce(e){this.exit(e)}function $ce(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function Qce(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),Rce)),a(),o}function Rce(e,t,n){return 0===t?e:(n?"":" ")+e}$ce.peek=function(){return"["};const Ace=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function jce(){return{canContainEols:["delete"],enter:{strikethrough:Mce},exit:{strikethrough:Ice}}}function Dce(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ace}],handlers:{delete:zce}}}function Mce(e){this.enter({type:"delete",children:[]},e)}function Ice(e){this.exit(e)}function zce(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Wce(e){return e.length}function Nce(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Lce(e,t,n){return">"+(n?"":" ")+e}function Fce(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function Jce(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),"full"!==i&&u&&u===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ede(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}function nde(e,t,n,r){const i=qce(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(tde(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function rde(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),"full"!==i&&u&&u===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ide(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ode(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Hce.peek=function(){return"<"},Kce.peek=function(){return"!"},Jce.peek=function(){return"!"},ede.peek=function(){return"`"},nde.peek=function(e,t,n){return tde(e,n)?"<":"["},rde.peek=function(){return"["};const ade=function(e){if(null==e)return lde;if("function"==typeof e)return sde(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),Lce);return i(),a},break:Uce,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,Xce);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...s.current()})),t()}return c+=s.move("\n"),o&&(c+=s.move(o+"\n")),c+=s.move(l),u(),c},definition:function(e,t,n,r){const i=qce(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u},emphasis:Bce,hardBreak:Uce,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Gle(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Yle})),Boolean((!e.depth||e.depth<3)&&Yce(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u},html:Hce,image:Kce,imageReference:Jce,inlineCode:ede,link:nde,linkReference:rde,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ide(n);const s=e.ordered?"."===a?")":".":function(e){const t=ide(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ode(n)===a&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e}));return l(),u},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){const i=e.children.some((function(e){return ude(e)}));return(i?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:cde,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ode(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function fde(){return{enter:{table:hde,tableData:vde,tableHeader:vde,tableRow:mde},exit:{codeText:Ode,table:pde,tableData:gde,tableHeader:gde,tableRow:gde}}}function hde(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function pde(e){this.exit(e),this.data.inTable=void 0}function mde(e){this.enter({type:"tableRow",children:[]},e)}function gde(e){this.exit(e)}function vde(e){this.enter({type:"tableCell",children:[]},e)}function Ode(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,yde));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function yde(e,t){return"|"===t?t:e}function bde(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=dde.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++il&&(l=e[u].length);++ds[d])&&(s[d]=e)}n.push(o)}o[u]=n,a[u]=i}var c;let d=-1;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=o),h[d]=o),f[d]=a}o.splice(1,0,f),a.splice(1,0,h),u=-1;const p=[];for(;++u0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Lde(e){return null!==e&&(e<0||32===e)}function Fde(e){return-2===e||-1===e||32===e}function Ude(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Xde(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return Fde(r)?(e.enter(n),a(r)):t(r)};function a(r){return Fde(r)&&o++999||93===s&&!o||null===s||91===s||Lde(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Bde(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Lde(s)||(o=!0),a++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function Kde(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||Lde(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Bde(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Lde(t)||(a=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),Xde(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function Jde(e,t,n){return e.check(qde,t,e.attempt(Vde,t,n))}function efe(e){e.exit("gfmFootnoteDefinition")}function tfe(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a-1&&e.test(String.fromCharCode(t))}}function afe(e){return null===e||function(e){return null!==e&&(e<0||32===e)}(e)||ife(e)?1:function(e){return rfe(e)||nfe(e)}(e)?2:void 0}function sfe(e,t,n){const r=[];let i=-1;for(;++i1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const u=e.exit("strikethroughSequenceTemporary"),c=afe(o);return u._open=!c||2===c&&Boolean(l),u._close=!l||2===l&&Boolean(c),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n-1&&e.test(String.fromCharCode(t))}}function hfe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return dfe(r)?(e.enter(n),a(r)):t(r)};function a(r){return dfe(r)&&o++0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function mfe(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?b:s;return o===b&&r.parser.lazy[r.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):ufe(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):dfe(t)?hfe(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||cfe(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,dfe(t)?hfe(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):y(t)}function h(t){return dfe(t)?hfe(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||ufe(t)?O(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return dfe(t)?hfe(e,O,"whitespace")(t):O(t)}function O(n){return 124===n?f(n):(null===n||ufe(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function b(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||ufe(n)?(e.exit("tableRow"),t(n)):dfe(n)?hfe(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||cfe(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?x:k)}function x(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function Ofe(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0;const f=new pfe;for(;++on[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},wfe(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function bfe(e,t,n,r,i){const o=[],a=wfe(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function wfe(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}function kfe(e){return-2===e||-1===e||32===e}function xfe(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}xfe(/\p{P}/u),xfe(/[A-Za-z]/),xfe(/[\dA-Za-z]/),xfe(/[#-'*+\--9=?A-Z^-~]/),xfe(/\d/),xfe(/[\dA-Fa-f]/),xfe(/[!-/:-@[-`{-~]/),xfe(/\s/);const _fe={tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return function(e){return null!==e&&(e<0||32===e)}(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return function(e){return null!==e&&e<-2}(r)?t(r):kfe(r)?e.check({tokenize:Pfe},t,n)(r):n(r)}}};function Sfe(){return{text:{91:_fe}}}function Pfe(e,t,n){return function(e,t,n,r){const i=Number.POSITIVE_INFINITY;let o=0;return function(r){return kfe(r)?(e.enter(n),a(r)):t(r)};function a(r){return kfe(r)&&o++{const o=F0(n,i),a=(0,c.useCallback)((e=>{e.stopPropagation()}),[]);return c.createElement("div",{"data-testid":"hint",className:qD(Qfe.root,"pointer"===o&&Qfe["cursor-pointer"],"text"===o&&Qfe["cursor-text"],"default"===o&&Qfe["cursor-default"],"inline"===t&&Qfe.inline,r),onClick:a},c.createElement(Nue,{remarkPlugins:[Cfe],allowedElements:["a","strong","em","del"],unwrapDisallowed:!0,components:{a:e=>{let{node:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{const s=F0(r,o);return c.createElement("label",{htmlFor:e,"data-testid":null!=a?a:"label",className:qD(Afe.root,"pointer"===s&&Afe["cursor-pointer"],"text"===s&&Afe["cursor-text"],"default"===s&&Afe["cursor-default"],"inline"===n&&Afe.inline,i)},t)},Dfe=UD("Field",["root","inline","wrapper","inline-wrapper","disabled","no-highlight","no-padding","cursor-pointer","cursor-text","cursor-default","error","valid","for-single-list","end-adornment","hint","label"]),Mfe=({inputRef:e,label:t,children:n,errors:r,variant:i="default",cursor:o="default",hint:a,forSingleList:s,noPadding:l=!1,noHightlight:u=!1,disabled:d,disableClick:f=!1,endAdornment:h,rootClassName:p,wrapperClassName:m})=>{const g=F0(o,d),v=(0,c.useMemo)((()=>r.length>0),[r.length]),O=t=>{var n,r;d||f||t.target!==(null==e?void 0:e.current)&&(null==e||null===(n=e.current)||void 0===n||n.focus(),null==e||null===(r=e.current)||void 0===r||r.click(),t.preventDefault(),t.stopPropagation())},y=(0,c.useMemo)((()=>t?c.createElement(jfe,{key:"label",hasErrors:v,variant:i,cursor:g,disabled:d,className:Dfe.label},t.trim()):null),[g,d,v,t,i]),b=(0,c.useMemo)((()=>a?c.createElement(Rfe,{key:"hint",hasErrors:v,variant:i,cursor:g,disabled:d,className:Dfe.hint},a):null),[d,g,v,a,i]),w=(0,c.useMemo)((()=>c.createElement(coe,{errors:r})),[r]),k=(0,c.useMemo)((()=>qD(Dfe.root,p,d&&Dfe.disabled,u&&Dfe["no-highlight"],l&&Dfe["no-padding"],"pointer"===g&&Dfe["cursor-pointer"],"text"===g&&Dfe["cursor-text"],"default"===g&&Dfe["cursor-default"],v&&Dfe.error)),[p,u,d,l,g,v]),x=(0,c.useMemo)((()=>qD(Dfe.wrapper,m,s&&Dfe["for-single-list"])),[s,m]);return"inline"===i?c.createElement("div",{"data-testid":"inline-field",className:`${k} ${Dfe.inline}`,onClick:O},c.createElement("div",{"data-testid":"inline-field-wrapper",className:x},c.createElement("div",{className:Dfe["inline-wrapper"]},y,b,n),w)):c.createElement("div",{"data-testid":`field-${null==t?void 0:t.trim()}`,className:k,onClick:O},c.createElement("div",{"data-testid":"field-wrapper",className:x},y,n,b,w),h?c.createElement("div",{className:Dfe["end-adornment"]},h):null)},Ife=UD("Switch",["root","disabled","input","toggle","label"]),zfe=(0,c.forwardRef)((({label:e,value:t,disabled:n,rootClassName:r,inputClassName:i,onChange:o},a)=>{const s=(0,c.useCallback)((e=>{null==o||o(e)}),[o]);return c.createElement("label",{className:qD(Ife.root,n&&Ife.disabled,r)},c.createElement("input",{"data-testid":"switch-input",ref:a,type:"checkbox",checked:t,className:qD(Ife.input,i),disabled:n,onChange:s,onClick:()=>!1}),c.createElement("div",{className:Ife.toggle}),e?c.createElement("span",{className:Ife.label},e):null)}));zfe.displayName="Switch";const Wfe=zfe,Nfe=UD("WidgetBoolean",["root","error","required","disabled","for-single-list","input","content","prefix","suffix"]),Lfe=({value:e,label:t,errors:n,hasErrors:r,disabled:i,field:o,forSingleList:a,duplicate:s,onChange:l})=>{const[u,d]=(0,c.useState)(null!=e&&e),f=(0,c.useMemo)((()=>s?null!=e&&e:u),[u,s,e]),h=(0,c.useRef)(null),p=(0,c.useCallback)((e=>{d(e.target.checked),l(e.target.checked)}),[l]),m=(0,c.useMemo)((()=>{var e;return null!==(e=o.prefix)&&void 0!==e?e:""}),[o.prefix]),g=(0,c.useMemo)((()=>{var e;return null!==(e=o.suffix)&&void 0!==e?e:""}),[o.suffix]);return c.createElement(Mfe,{inputRef:h,label:t,errors:n,variant:"inline",cursor:"pointer",hint:o.hint,forSingleList:a,disabled:i,rootClassName:qD(Nfe.root,i&&Nfe.disabled,!1!==o.required&&Nfe.required,r&&Nfe.error,a&&Nfe["for-single-list"])},c.createElement("div",{className:Nfe.content},Ne(m)?c.createElement("div",{className:Nfe.prefix},m):null,c.createElement(Wfe,{ref:h,value:f,disabled:i,onChange:p,rootClassName:Nfe.input}),Ne(g)?c.createElement("div",{className:Nfe.suffix},g):null))},Ffe={properties:{default:{type:"boolean"},prefix:{type:"string"},suffix:{type:"string"}}},Ufe=()=>({name:"boolean",controlComponent:Lfe,options:{schema:Ffe,getDefaultValue:e=>"boolean"==typeof e&&e}});function Xfe(e){return cB("MuiCollapse",e)}dB("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const qfe=Pq("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(Cq((({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]})))),Bfe=Pq("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Vfe=Pq("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Yfe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiCollapse"}),{addEndListener:r,children:i,className:o,collapsedSize:a="0px",component:s,easing:l,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:p,onExited:m,onExiting:g,orientation:v="vertical",style:O,timeout:y=tq.standard,TransitionComponent:b=Gq,...w}=n,k={...n,orientation:v,collapsedSize:a},x=(e=>{const{orientation:t,classes:n}=e;return qN({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},Xfe,n)})(k),_=eB(),S=h3(),P=c.useRef(null),E=c.useRef(),C="number"==typeof a?`${a}px`:a,T="horizontal"===v,$=T?"width":"height",Q=c.useRef(null),R=rB(t,Q),A=e=>t=>{if(e){const n=Q.current;void 0===t?e(n):e(n,t)}},j=()=>P.current?P.current[T?"clientWidth":"clientHeight"]:0,D=A(((e,t)=>{P.current&&T&&(P.current.style.position="absolute"),e.style[$]=C,d&&d(e,t)})),M=A(((e,t)=>{const n=j();P.current&&T&&(P.current.style.position="");const{duration:r,easing:i}=nB({style:O,timeout:y,easing:l},{mode:"enter"});if("auto"===y){const t=_.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,E.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[$]=`${n}px`,e.style.transitionTimingFunction=i,h&&h(e,t)})),I=A(((e,t)=>{e.style[$]="auto",f&&f(e,t)})),z=A((e=>{e.style[$]=`${j()}px`,p&&p(e)})),W=A(m),N=A((e=>{const t=j(),{duration:n,easing:r}=nB({style:O,timeout:y,easing:l},{mode:"exit"});if("auto"===y){const n=_.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,E.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[$]=C,e.style.transitionTimingFunction=r,g&&g(e)}));return(0,lM.jsx)(b,{in:u,onEnter:D,onEntered:I,onEntering:M,onExit:z,onExited:W,onExiting:N,addEndListener:e=>{"auto"===y&&S.start(E.current||0,e),r&&r(Q.current,e)},nodeRef:Q,timeout:"auto"===y?null:y,...w,children:(e,{ownerState:t,...n})=>(0,lM.jsx)(qfe,{as:s,className:XN(x.root,o,{entered:x.entered,exited:!u&&"0px"===C&&x.hidden}[e]),style:{[T?"minWidth":"minHeight"]:C,...O},ref:R,ownerState:{...k,state:e},...n,children:(0,lM.jsx)(Bfe,{ownerState:{...k,state:e},className:x.wrapper,ref:P,children:(0,lM.jsx)(Vfe,{ownerState:{...k,state:e},className:x.wrapperInner,children:i})})})})}));Yfe&&(Yfe.muiSupportAuto=!0);const Zfe=Yfe;var Gfe=__webpack_require__(72107);function Hfe(e){return new Gfe.ri(Gfe.il.define(e))}function Kfe(e){return Promise.resolve().then(__webpack_require__.bind(__webpack_require__,46764)).then((t=>t.sql({dialect:t[e]})))}const Jfe=[Gfe.c6.of({name:"C",extensions:["c","h","ino"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23193)).then((e=>e.cpp()))}),Gfe.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23193)).then((e=>e.cpp()))}),Gfe.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>Kfe("Cassandra")}),Gfe.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59958)).then((e=>e.css()))}),Gfe.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,6407)).then((e=>e.html()))}),Gfe.c6.of({name:"Java",extensions:["java"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,7501)).then((e=>e.java()))}),Gfe.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59403)).then((e=>e.javascript()))}),Gfe.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,54623)).then((e=>e.json()))}),Gfe.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59403)).then((e=>e.javascript({jsx:!0})))}),Gfe.c6.of({name:"LESS",extensions:["less"],load:()=>__webpack_require__.e(54).then(__webpack_require__.bind(__webpack_require__,11054)).then((e=>e.less()))}),Gfe.c6.of({name:"MariaDB SQL",load:()=>Kfe("MariaSQL")}),Gfe.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,83856)).then((e=>e.markdown()))}),Gfe.c6.of({name:"MS SQL",load:()=>Kfe("MSSQL")}),Gfe.c6.of({name:"MySQL",load:()=>Kfe("MySQL")}),Gfe.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48291)).then((e=>e.php()))}),Gfe.c6.of({name:"PLSQL",extensions:["pls"],load:()=>Kfe("PLSQL")}),Gfe.c6.of({name:"PostgreSQL",load:()=>Kfe("PostgreSQL")}),Gfe.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,99213)).then((e=>e.python()))}),Gfe.c6.of({name:"Rust",extensions:["rs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,80940)).then((e=>e.rust()))}),Gfe.c6.of({name:"Sass",extensions:["sass"],load:()=>__webpack_require__.e(355).then(__webpack_require__.bind(__webpack_require__,32355)).then((e=>e.sass({indented:!0})))}),Gfe.c6.of({name:"SCSS",extensions:["scss"],load:()=>__webpack_require__.e(355).then(__webpack_require__.bind(__webpack_require__,32355)).then((e=>e.sass()))}),Gfe.c6.of({name:"SQL",extensions:["sql"],load:()=>Kfe("StandardSQL")}),Gfe.c6.of({name:"SQLite",load:()=>Kfe("SQLite")}),Gfe.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59403)).then((e=>e.javascript({jsx:!0,typescript:!0})))}),Gfe.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,59403)).then((e=>e.javascript({typescript:!0})))}),Gfe.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,967)).then((e=>e.wast()))}),Gfe.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,47152)).then((e=>e.xml()))}),Gfe.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,24631)).then((e=>Hfe(e.apl)))}),Gfe.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,66396)).then((e=>Hfe(e.asciiArmor)))}),Gfe.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>__webpack_require__.e(238).then(__webpack_require__.bind(__webpack_require__,92238)).then((e=>Hfe(e.asn1({}))))}),Gfe.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,88522)).then((e=>Hfe(e.asterisk)))}),Gfe.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,12860)).then((e=>Hfe(e.brainfuck)))}),Gfe.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,10021)).then((e=>Hfe(e.cobol)))}),Gfe.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Hfe(e.csharp)))}),Gfe.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23463)).then((e=>Hfe(e.clojure)))}),Gfe.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23463)).then((e=>Hfe(e.clojure)))}),Gfe.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,41525)).then((e=>Hfe(e.gss)))}),Gfe.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,49612)).then((e=>Hfe(e.cmake)))}),Gfe.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,73182)).then((e=>Hfe(e.coffeeScript)))}),Gfe.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,31402)).then((e=>Hfe(e.commonLisp)))}),Gfe.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,67065)).then((e=>Hfe(e.cypher)))}),Gfe.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>__webpack_require__.e(595).then(__webpack_require__.bind(__webpack_require__,24595)).then((e=>Hfe(e.cython)))}),Gfe.c6.of({name:"Crystal",extensions:["cr"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,69802)).then((e=>Hfe(e.crystal)))}),Gfe.c6.of({name:"D",extensions:["d"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,61632)).then((e=>Hfe(e.d)))}),Gfe.c6.of({name:"Dart",extensions:["dart"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Hfe(e.dart)))}),Gfe.c6.of({name:"diff",extensions:["diff","patch"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,37155)).then((e=>Hfe(e.diff)))}),Gfe.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,95812)).then((e=>Hfe(e.dockerFile)))}),Gfe.c6.of({name:"DTD",extensions:["dtd"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,16398)).then((e=>Hfe(e.dtd)))}),Gfe.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,46528)).then((e=>Hfe(e.dylan)))}),Gfe.c6.of({name:"EBNF",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,24140)).then((e=>Hfe(e.ebnf)))}),Gfe.c6.of({name:"ECL",extensions:["ecl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,54176)).then((e=>Hfe(e.ecl)))}),Gfe.c6.of({name:"edn",extensions:["edn"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23463)).then((e=>Hfe(e.clojure)))}),Gfe.c6.of({name:"Eiffel",extensions:["e"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,36653)).then((e=>Hfe(e.eiffel)))}),Gfe.c6.of({name:"Elm",extensions:["elm"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,63488)).then((e=>Hfe(e.elm)))}),Gfe.c6.of({name:"Erlang",extensions:["erl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,58984)).then((e=>Hfe(e.erlang)))}),Gfe.c6.of({name:"Esper",load:()=>__webpack_require__.e(977).then(__webpack_require__.bind(__webpack_require__,11977)).then((e=>Hfe(e.esper)))}),Gfe.c6.of({name:"Factor",extensions:["factor"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,77991)).then((e=>Hfe(e.factor)))}),Gfe.c6.of({name:"FCL",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,42753)).then((e=>Hfe(e.fcl)))}),Gfe.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,90313)).then((e=>Hfe(e.forth)))}),Gfe.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,78968)).then((e=>Hfe(e.fortran)))}),Gfe.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>__webpack_require__.e(936).then(__webpack_require__.bind(__webpack_require__,43936)).then((e=>Hfe(e.fSharp)))}),Gfe.c6.of({name:"Gas",extensions:["s"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,78923)).then((e=>Hfe(e.gas)))}),Gfe.c6.of({name:"Gherkin",extensions:["feature"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,8952)).then((e=>Hfe(e.gherkin)))}),Gfe.c6.of({name:"Go",extensions:["go"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,60574)).then((e=>Hfe(e.go)))}),Gfe.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,9259)).then((e=>Hfe(e.groovy)))}),Gfe.c6.of({name:"Haskell",extensions:["hs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,39498)).then((e=>Hfe(e.haskell)))}),Gfe.c6.of({name:"Haxe",extensions:["hx"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,64114)).then((e=>Hfe(e.haxe)))}),Gfe.c6.of({name:"HXML",extensions:["hxml"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,64114)).then((e=>Hfe(e.hxml)))}),Gfe.c6.of({name:"HTTP",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,96427)).then((e=>Hfe(e.http)))}),Gfe.c6.of({name:"IDL",extensions:["pro"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,78074)).then((e=>Hfe(e.idl)))}),Gfe.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>__webpack_require__.e(759).then(__webpack_require__.bind(__webpack_require__,22759)).then((e=>Hfe(e.jsonld)))}),Gfe.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,53398)).then((e=>Hfe(e.jinja2)))}),Gfe.c6.of({name:"Julia",extensions:["jl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,41254)).then((e=>Hfe(e.julia)))}),Gfe.c6.of({name:"Kotlin",extensions:["kt"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Hfe(e.kotlin)))}),Gfe.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,94813)).then((e=>Hfe(e.liveScript)))}),Gfe.c6.of({name:"Lua",extensions:["lua"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,27797)).then((e=>Hfe(e.lua)))}),Gfe.c6.of({name:"mIRC",extensions:["mrc"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,86794)).then((e=>Hfe(e.mirc)))}),Gfe.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,53756)).then((e=>Hfe(e.mathematica)))}),Gfe.c6.of({name:"Modelica",extensions:["mo"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,39038)).then((e=>Hfe(e.modelica)))}),Gfe.c6.of({name:"MUMPS",extensions:["mps"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,26850)).then((e=>Hfe(e.mumps)))}),Gfe.c6.of({name:"Mbox",extensions:["mbox"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,20214)).then((e=>Hfe(e.mbox)))}),Gfe.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,32290)).then((e=>Hfe(e.nginx)))}),Gfe.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,93204)).then((e=>Hfe(e.nsis)))}),Gfe.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,84895)).then((e=>Hfe(e.ntriples)))}),Gfe.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Hfe(e.objectiveC)))}),Gfe.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Hfe(e.objectiveCpp)))}),Gfe.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>__webpack_require__.e(936).then(__webpack_require__.bind(__webpack_require__,43936)).then((e=>Hfe(e.oCaml)))}),Gfe.c6.of({name:"Octave",extensions:["m"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,21798)).then((e=>Hfe(e.octave)))}),Gfe.c6.of({name:"Oz",extensions:["oz"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,93816)).then((e=>Hfe(e.oz)))}),Gfe.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,68948)).then((e=>Hfe(e.pascal)))}),Gfe.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,26375)).then((e=>Hfe(e.perl)))}),Gfe.c6.of({name:"Pig",extensions:["pig"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,53410)).then((e=>Hfe(e.pig)))}),Gfe.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,69144)).then((e=>Hfe(e.powerShell)))}),Gfe.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,15859)).then((e=>Hfe(e.properties)))}),Gfe.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,68478)).then((e=>Hfe(e.protobuf)))}),Gfe.c6.of({name:"Puppet",extensions:["pp"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,91782)).then((e=>Hfe(e.puppet)))}),Gfe.c6.of({name:"Q",extensions:["q"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,61164)).then((e=>Hfe(e.q)))}),Gfe.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,95098)).then((e=>Hfe(e.r)))}),Gfe.c6.of({name:"RPM Changes",load:()=>__webpack_require__.e(468).then(__webpack_require__.bind(__webpack_require__,16468)).then((e=>Hfe(e.rpmChanges)))}),Gfe.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>__webpack_require__.e(468).then(__webpack_require__.bind(__webpack_require__,16468)).then((e=>Hfe(e.rpmSpec)))}),Gfe.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,11197)).then((e=>Hfe(e.ruby)))}),Gfe.c6.of({name:"SAS",extensions:["sas"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,73836)).then((e=>Hfe(e.sas)))}),Gfe.c6.of({name:"Scala",extensions:["scala"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Hfe(e.scala)))}),Gfe.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,29893)).then((e=>Hfe(e.scheme)))}),Gfe.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,24347)).then((e=>Hfe(e.shell)))}),Gfe.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,64674)).then((e=>Hfe(e.sieve)))}),Gfe.c6.of({name:"Smalltalk",extensions:["st"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,2075)).then((e=>Hfe(e.smalltalk)))}),Gfe.c6.of({name:"Solr",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,97919)).then((e=>Hfe(e.solr)))}),Gfe.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>__webpack_require__.e(936).then(__webpack_require__.bind(__webpack_require__,43936)).then((e=>Hfe(e.sml)))}),Gfe.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,27629)).then((e=>Hfe(e.sparql)))}),Gfe.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,1013)).then((e=>Hfe(e.spreadsheet)))}),Gfe.c6.of({name:"Squirrel",extensions:["nut"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48231)).then((e=>Hfe(e.squirrel)))}),Gfe.c6.of({name:"Stylus",extensions:["styl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,11273)).then((e=>Hfe(e.stylus)))}),Gfe.c6.of({name:"Swift",extensions:["swift"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,1763)).then((e=>Hfe(e.swift)))}),Gfe.c6.of({name:"sTeX",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,66996)).then((e=>Hfe(e.stex)))}),Gfe.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,66996)).then((e=>Hfe(e.stex)))}),Gfe.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23074)).then((e=>Hfe(e.verilog)))}),Gfe.c6.of({name:"Tcl",extensions:["tcl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,41680)).then((e=>Hfe(e.tcl)))}),Gfe.c6.of({name:"Textile",extensions:["textile"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,95883)).then((e=>Hfe(e.textile)))}),Gfe.c6.of({name:"TiddlyWiki",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,84510)).then((e=>Hfe(e.tiddlyWiki)))}),Gfe.c6.of({name:"Tiki wiki",load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,21351)).then((e=>Hfe(e.tiki)))}),Gfe.c6.of({name:"TOML",extensions:["toml"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,68212)).then((e=>Hfe(e.toml)))}),Gfe.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,89349)).then((e=>Hfe(e.troff)))}),Gfe.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,82668)).then((e=>Hfe(e.ttcn)))}),Gfe.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>__webpack_require__.e(428).then(__webpack_require__.bind(__webpack_require__,56428)).then((e=>Hfe(e.ttcnCfg)))}),Gfe.c6.of({name:"Turtle",extensions:["ttl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,68774)).then((e=>Hfe(e.turtle)))}),Gfe.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,10198)).then((e=>Hfe(e.webIDL)))}),Gfe.c6.of({name:"VB.NET",extensions:["vb"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,152)).then((e=>Hfe(e.vb)))}),Gfe.c6.of({name:"VBScript",extensions:["vbs"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,20530)).then((e=>Hfe(e.vbScript)))}),Gfe.c6.of({name:"Velocity",extensions:["vtl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,50889)).then((e=>Hfe(e.velocity)))}),Gfe.c6.of({name:"Verilog",extensions:["v"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,23074)).then((e=>Hfe(e.verilog)))}),Gfe.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,14119)).then((e=>Hfe(e.vhdl)))}),Gfe.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,83365)).then((e=>Hfe(e.xQuery)))}),Gfe.c6.of({name:"Yacas",extensions:["ys"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,5717)).then((e=>Hfe(e.yacas)))}),Gfe.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,55273)).then((e=>Hfe(e.yaml)))}),Gfe.c6.of({name:"Z80",extensions:["z80"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,835)).then((e=>Hfe(e.z80)))}),Gfe.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,94782)).then((e=>Hfe(e.mscgen)))}),Gfe.c6.of({name:"Xù",extensions:["xu"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,94782)).then((e=>Hfe(e.xu)))}),Gfe.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,94782)).then((e=>Hfe(e.msgenny)))}),Gfe.c6.of({name:"Vue",extensions:["vue"],load:()=>__webpack_require__.e(938).then(__webpack_require__.bind(__webpack_require__,99938)).then((e=>e.vue()))}),Gfe.c6.of({name:"Angular Template",load:()=>__webpack_require__.e(553).then(__webpack_require__.bind(__webpack_require__,26553)).then((e=>e.angular()))})];var ehe=__webpack_require__(83856),the=__webpack_require__(59403),nhe=__webpack_require__(6407),rhe=__webpack_require__(59958),ihe=__webpack_require__(54623),ohe=__webpack_require__(99213),ahe=__webpack_require__(47152),she=__webpack_require__(46764),lhe=__webpack_require__(7501),uhe=__webpack_require__(80940),che=__webpack_require__(23193),dhe=__webpack_require__(64963),fhe=__webpack_require__(7778);const hhe=(0,fhe.Gv)({LineComment:fhe.pJ.lineComment,BlockComment:fhe.pJ.blockComment,AnyChar:fhe.pJ.character,Literal:fhe.pJ.string,"tokens from grammar as empty prop extend specialize AtName":fhe.pJ.keyword,"@top @left @right @cut @external":fhe.pJ.modifier,"@precedence @tokens @context @dialects @skip @detectDelim @conflict":fhe.pJ.definitionKeyword,"@extend @specialize":fhe.pJ.operatorKeyword,"CharSet InvertedCharSet":fhe.pJ.regexp,CharClass:fhe.pJ.atom,RuleName:fhe.pJ.variableName,"RuleDeclaration/RuleName InlineRule/RuleName TokensBody/RuleName":fhe.pJ.definition(fhe.pJ.variableName),PrecedenceName:fhe.pJ.labelName,Name:fhe.pJ.name,"( )":fhe.pJ.paren,"[ ]":fhe.pJ.squareBracket,"{ }":fhe.pJ.brace,'"!" ~ "*" + ? |':fhe.pJ.operator}),phe={__proto__:null,"@asciiLetter":244,"@asciiUpperCase":244,"@asciiLowerCase":244,"@digit":244,"@whitespace":244,"@eof":244,"@specialize":76,"@extend":78,"@top":98,"@precedence":102,"@left":108,"@right":110,"@cut":112,"@tokens":116,"@conflict":126,"@local":134,"@else":142,"@external":146,"@context":172,"@dialects":176,"@skip":182,"@detectDelim":190},mhe={__proto__:null,tokens:136,from:148,prop:156,as:158,propSource:162,extend:166,specialize:168},ghe=dhe.WQ.deserialize({version:14,states:"nAN>nO7oQPOAN>sO6lQPOAN>xOOQO1G.s1G.sOOQO,5;O,5;OOOQO-E8b-E8bOOQO7+$g7+$gOOQO7+%`7+%`O7tQPO7+%`O7yQPO'#DzO8XQPO'#EkO8dQPO,5:eOOQO,5:e,5:eOOQOG24_G24_OOQOG24dG24dOOQO<phe[e]||-1},{term:125,get:e=>mhe[e]||-1}],tokenPrec:1086}),vhe=Gfe.qp.define({name:"lezer",parser:ghe.configure({props:[Gfe.x0.add({"Body TokensBody SkipBody PrecedenceBody":Gfe.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/}});var Ohe=__webpack_require__(48291),yhe=__webpack_require__(967),bhe=__webpack_require__(24631),whe=__webpack_require__(66396),khe=__webpack_require__(88522),xhe=__webpack_require__(12860),_he=__webpack_require__(48231),She=__webpack_require__(23463),Phe=__webpack_require__(41525),Ehe=__webpack_require__(49612),Che=__webpack_require__(10021),The=__webpack_require__(73182),$he=__webpack_require__(31402),Qhe=__webpack_require__(69802),Rhe=__webpack_require__(67065),Ahe=__webpack_require__(61632),jhe=__webpack_require__(37155),Dhe=__webpack_require__(95812),Mhe=__webpack_require__(16398),Ihe=__webpack_require__(46528),zhe=__webpack_require__(24140),Whe=__webpack_require__(54176),Nhe=__webpack_require__(36653),Lhe=__webpack_require__(63488),Fhe=__webpack_require__(58984),Uhe=__webpack_require__(77991),Xhe=__webpack_require__(42753),qhe=__webpack_require__(90313),Bhe=__webpack_require__(78968),Vhe=__webpack_require__(78923),Yhe=__webpack_require__(8952),Zhe=__webpack_require__(60574),Ghe=__webpack_require__(9259),Hhe=__webpack_require__(39498),Khe=__webpack_require__(64114),Jhe=__webpack_require__(96427),epe=__webpack_require__(78074),tpe=__webpack_require__(53398),npe=__webpack_require__(41254),rpe=__webpack_require__(94813),ipe=__webpack_require__(27797),ope=__webpack_require__(53756),ape=__webpack_require__(20214),spe=__webpack_require__(86794),lpe=__webpack_require__(39038),upe=__webpack_require__(94782),cpe=__webpack_require__(26850),dpe=__webpack_require__(32290),fpe=__webpack_require__(93204),hpe=__webpack_require__(84895),ppe=__webpack_require__(21798),mpe=__webpack_require__(93816),gpe=__webpack_require__(68948),vpe=__webpack_require__(26375),Ope=__webpack_require__(53410),ype=__webpack_require__(69144),bpe=__webpack_require__(15859),wpe=__webpack_require__(68478),kpe=__webpack_require__(91782),xpe=__webpack_require__(61164),_pe=__webpack_require__(95098),Spe=__webpack_require__(11197),Ppe=__webpack_require__(73836);const Epe=new Set(Phe.keywords.properties),Cpe=new Set(Phe.keywords.colors),Tpe=new Set(Phe.keywords.values),$pe=new Set(Phe.keywords.fonts);let Qpe,Rpe=new RegExp("^"+["true","false","null","auto"].join("|")),Ape=new RegExp("^"+["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"].join("|")),jpe=/^::?[a-zA-Z_][\w\-]*/;function Dpe(e){return!e.peek()||e.match(/\s+$/,!1)}function Mpe(e,t){let n=e.peek();return")"===n?(e.next(),t.tokenizer=Fpe,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=zpe(e.next()),"string"):(t.tokenizer=zpe(")",!1),"string")}function Ipe(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=Fpe,Fpe(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=Fpe):n.skipToEnd(),"comment")}}function zpe(e,t){return null==t&&(t=!0),function n(r,i){let o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2);return"\\"!==o&&a===e||o===e&&"\\"!==s?(o!==e&&t&&r.next(),Dpe(r)&&(i.cursorHalf=0),i.tokenizer=Fpe,"string"):"#"===o&&"{"===a?(i.tokenizer=Wpe(n),r.next(),"operator"):"string"}}function Wpe(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):Fpe(t,n)}}function Npe(e,t){if(0==e.indentCount){e.indentCount++;let n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function Lpe(e){1!=e.scopes.length&&e.scopes.shift()}function Fpe(e,t){let n=e.peek();if(e.match("/*"))return t.tokenizer=Ipe(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=Ipe(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=Wpe(Fpe),"operator";if('"'===n||"'"===n)return e.next(),t.tokenizer=zpe(n),"string";if(t.cursorHalf){if("#"===n&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return Dpe(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return Dpe(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return Dpe(e)&&(t.cursorHalf=0),"unit";if(e.match(Rpe))return Dpe(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=Mpe,Dpe(e)&&(t.cursorHalf=0),"atom";if("$"===n)return e.next(),e.eatWhile(/[\w-]/),Dpe(e)&&(t.cursorHalf=0),"variable-2";if("!"===n)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(Ape))return Dpe(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return Dpe(e)&&(t.cursorHalf=0),Qpe=e.current().toLowerCase(),Tpe.has(Qpe)?"atom":Cpe.has(Qpe)?"keyword":Epe.has(Qpe)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(Dpe(e))return t.cursorHalf=0,null}else{if("-"===n&&e.match(/^-\w+-/))return"meta";if("."===n){if(e.next(),e.match(/^[\w-]+/))return Npe(t,e),"qualifier";if("#"===e.peek())return Npe(t,e),"tag"}if("#"===n){if(e.next(),e.match(/^[\w-]+/))return Npe(t,e),"builtin";if("#"===e.peek())return Npe(t,e),"tag"}if("$"===n)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(Rpe))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=Mpe,"atom";if("="===n&&e.match(/^=[\w-]+/))return Npe(t,e),"meta";if("+"===n&&e.match(/^\+[\w-]+/))return"meta";if("@"===n&&e.match("@extend")&&(e.match(/\s*[\w]/)||Lpe(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return Npe(t,e),"def";if("@"===n)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){Qpe=e.current().toLowerCase();let n=t.prevProp+"-"+Qpe;return Epe.has(n)?"property":Epe.has(Qpe)?(t.prevProp=Qpe,"property"):$pe.has(Qpe)?"property":"tag"}return e.match(/ *:/,!1)?(Npe(t,e),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||Npe(t,e),"tag")}if(":"===n)return e.match(jpe)?"type":(e.next(),t.cursorHalf=1,"operator")}return e.match(Ape)?"operator":(e.next(),null)}const Upe={name:"sass",startState:function(){return{tokenizer:Fpe,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,t){let n=function(e,t){e.sol()&&(t.indentCount=0);let n=t.tokenizer(e,t),r=e.current();if("@return"!==r&&"}"!==r||Lpe(t),null!==n){let n=e.pos-r.length+e.indentUnit*t.indentCount,i=[];for(let e=0;eGfe.il.define(bhe.apl),asciiArmor:()=>Gfe.il.define(whe.asciiArmor),asterisk:()=>Gfe.il.define(khe.asterisk),c:()=>Gfe.il.define(_he.c),csharp:()=>Gfe.il.define(_he.csharp),scala:()=>Gfe.il.define(_he.scala),kotlin:()=>Gfe.il.define(_he.kotlin),shader:()=>Gfe.il.define(_he.shader),nesC:()=>Gfe.il.define(_he.nesC),objectiveC:()=>Gfe.il.define(_he.objectiveC),objectiveCpp:()=>Gfe.il.define(_he.objectiveCpp),squirrel:()=>Gfe.il.define(_he.squirrel),ceylon:()=>Gfe.il.define(_he.ceylon),dart:()=>Gfe.il.define(_he.dart),cmake:()=>Gfe.il.define(Ehe.cmake),cobol:()=>Gfe.il.define(Che.cobol),commonLisp:()=>Gfe.il.define($he.commonLisp),crystal:()=>Gfe.il.define(Qhe.crystal),cypher:()=>Gfe.il.define(Rhe.cypher),d:()=>Gfe.il.define(Ahe.d),diff:()=>Gfe.il.define(jhe.diff),dtd:()=>Gfe.il.define(Mhe.dtd),dylan:()=>Gfe.il.define(Ihe.dylan),ebnf:()=>Gfe.il.define(zhe.ebnf),ecl:()=>Gfe.il.define(Whe.ecl),eiffel:()=>Gfe.il.define(Nhe.eiffel),elm:()=>Gfe.il.define(Lhe.elm),factor:()=>Gfe.il.define(Uhe.factor),fcl:()=>Gfe.il.define(Xhe.fcl),forth:()=>Gfe.il.define(qhe.forth),fortran:()=>Gfe.il.define(Bhe.fortran),gas:()=>Gfe.il.define(Vhe.gas),gherkin:()=>Gfe.il.define(Yhe.gherkin),groovy:()=>Gfe.il.define(Ghe.groovy),haskell:()=>Gfe.il.define(Hhe.haskell),haxe:()=>Gfe.il.define(Khe.haxe),http:()=>Gfe.il.define(Jhe.http),idl:()=>Gfe.il.define(epe.idl),jinja2:()=>Gfe.il.define(tpe.jinja2),mathematica:()=>Gfe.il.define(ope.mathematica),mbox:()=>Gfe.il.define(ape.mbox),mirc:()=>Gfe.il.define(spe.mirc),modelica:()=>Gfe.il.define(lpe.modelica),mscgen:()=>Gfe.il.define(upe.mscgen),mumps:()=>Gfe.il.define(cpe.mumps),nsis:()=>Gfe.il.define(fpe.nsis),ntriples:()=>Gfe.il.define(hpe.ntriples),octave:()=>Gfe.il.define(ppe.octave),oz:()=>Gfe.il.define(mpe.oz),pig:()=>Gfe.il.define(Ope.pig),properties:()=>Gfe.il.define(bpe.properties),protobuf:()=>Gfe.il.define(wpe.protobuf),puppet:()=>Gfe.il.define(kpe.puppet),q:()=>Gfe.il.define(xpe.q),sas:()=>Gfe.il.define(Ppe.sas),sass:()=>Gfe.il.define(Upe),sieve:()=>Gfe.il.define(Bpe.sieve),smalltalk:()=>Gfe.il.define(Vpe.smalltalk),solr:()=>Gfe.il.define(Ype.solr),sparql:()=>Gfe.il.define(Zpe.sparql),spreadsheet:()=>Gfe.il.define(Gpe.spreadsheet),stex:()=>Gfe.il.define(Hpe.stex),textile:()=>Gfe.il.define(tme.textile),tiddlyWiki:()=>Gfe.il.define(nme.tiddlyWiki),tiki:()=>Gfe.il.define(rme.tiki),troff:()=>Gfe.il.define(ome.troff),ttcn:()=>Gfe.il.define(ame.ttcn),turtle:()=>Gfe.il.define(sme.turtle),velocity:()=>Gfe.il.define(cme.velocity),verilog:()=>Gfe.il.define(dme.verilog),vhdl:()=>Gfe.il.define(fme.vhdl),webIDL:()=>Gfe.il.define(hme.webIDL),xQuery:()=>Gfe.il.define(pme.xQuery),yacas:()=>Gfe.il.define(mme.yacas),z80:()=>Gfe.il.define(vme.z80),wast:yhe.wast,javascript:the.javascript,jsx:()=>(0,the.javascript)({jsx:!0}),typescript:()=>(0,the.javascript)({typescript:!0}),tsx:()=>(0,the.javascript)({jsx:!0,typescript:!0}),json:ihe.json,html:nhe.html,css:rhe.css,python:ohe.python,markdown:()=>(0,ehe.markdown)({base:ehe.markdownLanguage,codeLanguages:Jfe}),xml:ahe.xml,sql:she.sql,mysql:()=>(0,she.sql)({dialect:she.MySQL}),pgsql:()=>(0,she.sql)({dialect:she.PostgreSQL}),java:lhe.java,rust:uhe.rust,cpp:che.cpp,lezer:function(){return new Gfe.ri(vhe)},php:Ohe.php,go:()=>Gfe.il.define(Zhe.go),shell:()=>Gfe.il.define(qpe.shell),lua:()=>Gfe.il.define(ipe.lua),swift:()=>Gfe.il.define(Jpe.swift),tcl:()=>Gfe.il.define(eme.tcl),yaml:()=>Gfe.il.define(gme.yaml),vb:()=>Gfe.il.define(lme.vb),powershell:()=>Gfe.il.define(ype.powerShell),brainfuck:()=>Gfe.il.define(xhe.brainfuck),stylus:()=>Gfe.il.define(Kpe.stylus),erlang:()=>Gfe.il.define(Fhe.erlang),nginx:()=>Gfe.il.define(dpe.nginx),perl:()=>Gfe.il.define(vpe.perl),ruby:()=>Gfe.il.define(Spe.ruby),pascal:()=>Gfe.il.define(gpe.pascal),livescript:()=>Gfe.il.define(rpe.liveScript),less:()=>Gfe.il.define(Phe.less),scheme:()=>Gfe.il.define(Xpe.scheme),toml:()=>Gfe.il.define(ime.toml),vbscript:()=>Gfe.il.define(ume.vbScript),clojure:()=>Gfe.il.define(She.clojure),coffeescript:()=>Gfe.il.define(The.coffeeScript),julia:()=>Gfe.il.define(npe.julia),dockerfile:()=>Gfe.il.define(Dhe.dockerFile),r:()=>Gfe.il.define(_pe.r)};function yme(e){return Ome[e]?Ome[e]():null}function bme(){return bme=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}const Sme=_me(Qme,0),Pme=_me($me,0),Eme=_me(((e,t)=>$me(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function Cme(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const Tme=50;function $me(e,t,n=t.selection.ranges){let r=n.map((e=>Cme(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,{open:t,close:n},r,i){let o,a,s=e.sliceDoc(r-Tme,r),l=e.sliceDoc(i,i+Tme),u=/\s*$/.exec(s)[0].length,c=/^\s*/.exec(l)[0].length,d=s.length-u;if(s.slice(d-t.length,d)==t&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-r<=2*Tme?o=a=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+Tme),a=e.sliceDoc(i-Tme,i));let f=/^\s*/.exec(o)[0].length,h=/\s*$/.exec(a)[0].length,p=a.length-h-n.length;return o.slice(f,f+t.length)==t&&a.slice(p,p+n.length)==n?{open:{pos:r+f+t.length,margin:/\s/.test(o.charAt(f+t.length))?1:0},close:{pos:i-h-n.length,margin:/\s/.test(a.charAt(p-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;ni&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+s.length)==s?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:a}of r)!a&&o||e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const Rme=wme.q6.define(),Ame=wme.q6.define(),jme=wme.r$.define(),Dme=wme.r$.define({combine:e=>(0,wme.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),Mme=wme.QQ.define({create:()=>Jme.empty,update(e,t){let n=t.state.facet(Dme),r=t.annotation(Rme);if(r){let i=t.docChanged?wme.jT.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,o=Ume.fromTransaction(t,i),a=r.side,s=0==a?e.undone:e.done;return s=o?Xme(s,s.length,n.minDepth,o):Yme(s,t.startState.selection),new Jme(0==a?r.rest:s,0==a?s:r.rest)}let i=t.annotation(Ame);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(wme.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Ume.fromTransaction(t),a=t.annotation(wme.YW.time),s=t.annotation(wme.YW.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Jme(e.done.map(Ume.fromJSON),e.undone.map(Ume.fromJSON))});function Ime(e={}){return[Mme,Dme.of(e),kme.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?Wme:"historyRedo"==e.inputType?Nme:null;return!!n&&(e.preventDefault(),n(t))}})]}function zme(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Mme,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const Wme=zme(0,!1),Nme=zme(1,!1),Lme=zme(0,!0),Fme=zme(1,!0);class Ume{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new Ume(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Ume(e.changes&&wme.as.fromJSON(e.changes),[],e.mapped&&wme.n0.fromJSON(e.mapped),e.startSelection&&wme.jT.fromJSON(e.startSelection),e.selectionsAfter.map(wme.jT.fromJSON))}static fromTransaction(e,t){let n=Bme;for(let t of e.startState.facet(jme)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new Ume(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Bme)}static selection(e){return new Ume(void 0,Bme,void 0,void 0,e)}}function Xme(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function qme(e,t){return e.length?t.length?e.concat(t):e:t}const Bme=[],Vme=200;function Yme(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Vme));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),Xme(e,e.length-1,1e9,n.setSelAfter(r)))}return[Ume.selection([t])]}function Zme(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Gme(e,t){if(!e.length)return e;let n=e.length,r=Bme;for(;n;){let i=Hme(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Ume.selection(r)]:Bme}function Hme(e,t,n){let r=qme(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Bme,n);if(!e.changes)return Ume.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new Ume(i,wme.Py.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const Kme=/^(input\.type|delete)($|\.)/;class Jme{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new Jme(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||Kme.test(n))&&(!a.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let e=0;e=t&&i<=a&&(r=!0)}})),r}(a.changes,e.changes))||"input.type.compose"==n)?Xme(o,o.length-1,r.minDepth,new Ume(e.changes.compose(a.changes),qme(e.effects,a.effects),a.mapped,a.startSelection,Bme)):Xme(o,o.length,r.minDepth,e),new Jme(o,Bme,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Bme;return i.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty)).length}(i[i.length-1],e)?this:new Jme(Yme(this.done,e),this.undone,t,n)}addMapping(e){return new Jme(Gme(this.done,e),Gme(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Rme.of({side:e,rest:Zme(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?Bme:r.slice(0,r.length-1);return i.mapped&&(n=Gme(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Rme.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Jme.empty=new Jme(Bme,Bme);const ege=[{key:"Mod-z",run:Wme,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Nme,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Nme,preventDefault:!0},{key:"Mod-u",run:Lme,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Fme,preventDefault:!0}];function tge(e,t){return wme.jT.create(e.ranges.map(t),e.mainIndex)}function nge(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function rge({state:e,dispatch:t},n){let r=tge(e.selection,n);return!r.eq(e.selection)&&(t(nge(e,r)),!0)}function ige(e,t){return wme.jT.cursor(t?e.to:e.from)}function oge(e,t){return rge(e,(n=>n.empty?e.moveByChar(n,t):ige(n,t)))}function age(e){return e.textDirectionAt(e.state.selection.main.head)==kme.Nm.LTR}const sge=e=>oge(e,!age(e)),lge=e=>oge(e,age(e));function uge(e,t){return rge(e,(n=>n.empty?e.moveByGroup(n,t):ige(n,t)))}function cge(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function dge(e,t,n){let r,i,o=(0,Gfe.qz)(e).resolveInner(t.head),a=n?xme.md.closedBy:xme.md.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;cge(e,t,a)?o=t:r=n?t.to:t.from}return i=o.type.prop(a)&&(r=n?(0,Gfe.Um)(e,o.from,1):(0,Gfe.Um)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,wme.jT.cursor(i,n?-1:1)}function fge(e,t){return rge(e,(n=>{if(!n.empty)return ige(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}"undefined"!=typeof Intl&&Intl.Segmenter;const hge=e=>fge(e,!1),pge=e=>fge(e,!0);function mge(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):ige(n,t)));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),s=a.top+r.marginTop,l=a.bottom-r.marginBottom;t&&t.top>s&&t.bottomgge(e,!1),Oge=e=>gge(e,!0);function yge(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=wme.jT.cursor(r.from+n))}return i}function bge(e,t){let n=tge(e.state.selection,(e=>{let n=t(e);return wme.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(nge(e.state,n)),!0)}function wge(e,t){return bge(e,(n=>e.moveByChar(n,t)))}const kge=e=>wge(e,!age(e)),xge=e=>wge(e,age(e));function _ge(e,t){return bge(e,(n=>e.moveByGroup(n,t)))}function Sge(e,t){return bge(e,(n=>e.moveVertically(n,t)))}const Pge=e=>Sge(e,!1),Ege=e=>Sge(e,!0);function Cge(e,t){return bge(e,(n=>e.moveVertically(n,t,mge(e).height)))}const Tge=e=>Cge(e,!1),$ge=e=>Cge(e,!0),Qge=({state:e,dispatch:t})=>(t(nge(e,{anchor:0})),!0),Rge=({state:e,dispatch:t})=>(t(nge(e,{anchor:e.doc.length})),!0),Age=({state:e,dispatch:t})=>(t(nge(e,{anchor:e.selection.main.anchor,head:0})),!0),jge=({state:e,dispatch:t})=>(t(nge(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function Dge(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let a=t(r);ai&&(n="delete.forward",a=Mge(e,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=Mge(e,i,!1),o=Mge(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:wme.jT.cursor(i,it(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const Ige=(e,t)=>Dge(e,(n=>{let r,i,o=n.from,{state:a}=e,s=a.doc.lineAt(o);if(!t&&o>s.from&&oIge(e,!1),Wge=e=>Ige(e,!0),Nge=(e,t)=>Dge(e,(n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=(0,wme.cp)(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,s)-o.from,Math.max(r,s)-o.from),u=a(l);if(null!=e&&u!=e)break;" "==l&&r==n.head||(e=u),r=s}return r})),Lge=e=>Nge(e,!1);function Fge(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function Uge(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of Fge(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),a=o.length+1;if(n){r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)i.push(wme.jT.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)))}else{r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)i.push(wme.jT.range(e.anchor-a,e.head-a))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:wme.jT.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Xge(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of Fge(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const qge=Vge(!1),Bge=Vge(!0);function Vge(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange((n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,Gfe.qz)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(xme.md.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let s=new Gfe.Gn(t,{simulateBreak:r,simulateDoubleBreak:!!a}),l=(0,Gfe.K0)(s,r);for(null==l&&(l=(0,wme.IS)(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));io.from&&r{let i=[];for(let o=r.from;o<=r.to;){let a=e.doc.lineAt(o);a.number>n&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),o=a.to+1}let o=e.changes(i);return{changes:i,range:wme.jT.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}}))}const Zge=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Yge(e,((t,n)=>{n.push({from:t.from,insert:e.facet(Gfe.c)})})),{userEvent:"input.indent"})),!0),Gge=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Yge(e,((t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=(0,wme.IS)(r,e.tabSize),o=0,a=(0,Gfe.SS)(e,Math.max(0,i-(0,Gfe.y1)(e)));for(;orge(e,(t=>wme.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>bge(e,(t=>wme.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>rge(e,(t=>wme.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>bge(e,(t=>wme.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:Wge},{key:"Ctrl-h",run:zge},{key:"Ctrl-k",run:e=>Dge(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:wme.xv.of(["",""])},range:wme.jT.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:(0,wme.cp)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,wme.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:wme.jT.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Oge}],Kge=[{key:"ArrowLeft",run:sge,shift:kge,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>uge(e,!age(e)),shift:e=>_ge(e,!age(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>rge(e,(t=>yge(e,t,!age(e)))),shift:e=>bge(e,(t=>yge(e,t,!age(e)))),preventDefault:!0},{key:"ArrowRight",run:lge,shift:xge,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>uge(e,age(e)),shift:e=>_ge(e,age(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>rge(e,(t=>yge(e,t,age(e)))),shift:e=>bge(e,(t=>yge(e,t,age(e)))),preventDefault:!0},{key:"ArrowUp",run:hge,shift:Pge,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Qge,shift:Age},{mac:"Ctrl-ArrowUp",run:vge,shift:Tge},{key:"ArrowDown",run:pge,shift:Ege,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Rge,shift:jge},{mac:"Ctrl-ArrowDown",run:Oge,shift:$ge},{key:"PageUp",run:vge,shift:Tge},{key:"PageDown",run:Oge,shift:$ge},{key:"Home",run:e=>rge(e,(t=>yge(e,t,!1))),shift:e=>bge(e,(t=>yge(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:Qge,shift:Age},{key:"End",run:e=>rge(e,(t=>yge(e,t,!0))),shift:e=>bge(e,(t=>yge(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Rge,shift:jge},{key:"Enter",run:qge},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:zge,shift:zge},{key:"Delete",run:Wge},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Lge},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Nge(e,!0)},{mac:"Mod-Backspace",run:e=>Dge(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>Dge(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift})))),Jge=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>rge(e,(t=>dge(e.state,t,!age(e)))),shift:e=>bge(e,(t=>dge(e.state,t,!age(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>rge(e,(t=>dge(e.state,t,age(e)))),shift:e=>bge(e,(t=>dge(e.state,t,age(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Uge(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Xge(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Uge(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Xge(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=wme.jT.create([n.main]):n.main.empty||(r=wme.jT.create([wme.jT.cursor(n.main.head)])),!!r&&(t(nge(e,r)),!0)}},{key:"Mod-Enter",run:Bge},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Fge(e).map((({from:t,to:n})=>wme.jT.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:wme.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=tge(e.selection,(t=>{var n;for(let r=(0,Gfe.qz)(e).resolveStack(t.from,1);r;r=r.next){let{node:e}=r;if((e.from=t.to||e.to>t.to&&e.from<=t.from)&&(null===(n=e.parent)||void 0===n?void 0:n.parent))return wme.jT.range(e.to,e.from)}return t}));return t(nge(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:Gge},{key:"Mod-]",run:Zge},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Gfe.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=Yge(e,((t,i,o)=>{let a=(0,Gfe.K0)(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let s=/^\s*/.exec(t.text)[0],l=(0,Gfe.SS)(e,a);(s!=l||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Fge(t).map((({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let r=!1,i=tge(e.selection,(t=>{let i=(0,Gfe.Um)(e,t.head,-1)||(0,Gfe.Um)(e,t.head,1)||t.head>0&&(0,Gfe.Um)(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=Cme(e.state,n.from);return r.line?Sme(e):!!r.block&&Eme(e)}},{key:"Alt-A",run:Pme}].concat(Kge),eve={key:"Tab",run:Zge,shift:Gge};function tve(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class ive{constructor(e,t,n=0,r=e.length,i,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(rve(e)):rve,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,wme.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,wme.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,wme.nZ)(e);let r=this.normalize(t);for(let e=0,i=n;;e++){let o=r.charCodeAt(e),a=this.match(o,i);if(e==r.length-1){if(a)return this.value=a,this;break}i==n&&ethis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=dve(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new uve(t,e.sliceString(t,n));return lve.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=dve(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=uve.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function dve(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function fve(e){let t=tve("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,i=r.doc.lineAt(r.selection.main.head),[,o,a,s,l]=n,u=s?+s.slice(1):0,c=a?+a:i.number;if(a&&l){let e=c/100;o&&(e=e*("-"==o?-1:1)+i.number/r.doc.lines),c=Math.round(r.doc.lines*e)}else a&&o&&(c=c*("-"==o?-1:1)+i.number);let d=r.doc.line(Math.max(1,Math.min(r.doc.lines,c))),f=wme.jT.cursor(d.from+Math.max(0,Math.min(u,d.length)));e.dispatch({effects:[hve.of(!1),kme.tk.scrollIntoView(f.from,{y:"center"})],selection:f}),e.focus()}return{dom:tve("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:hve.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},tve("label",e.state.phrase("Go to line"),": ",t)," ",tve("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(sve.prototype[Symbol.iterator]=cve.prototype[Symbol.iterator]=function(){return this});const hve=wme.Py.define(),pve=wme.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(hve)&&(e=n.value);return e},provide:e=>kme.mH.from(e,(e=>e?fve:null))}),mve=kme.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),gve={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},vve=wme.r$.define({combine:e=>(0,wme.BO)(e,gve,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function Ove(e){let t=[xve,kve];return e&&t.push(vve.of(e)),t}const yve=kme.p.mark({class:"cm-selectionMatch"}),bve=kme.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function wve(e,t,n,r){return!(0!=n&&e(t.sliceDoc(n-1,n))==wme.D0.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==wme.D0.Word)}const kve=kme.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(vve),{state:n}=e,r=n.selection;if(r.ranges.length>1)return kme.p.none;let i,o=r.main,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return kme.p.none;let e=n.wordAt(o.head);if(!e)return kme.p.none;a=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return kme.p.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),a=n.charCategorizer(o.head),!wve(a,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==wme.D0.Word&&e(t.sliceDoc(r-1,r))==wme.D0.Word}(a,n,o.from,o.to))return kme.p.none}else if(i=n.sliceDoc(o.from,o.to).trim(),!i)return kme.p.none}let s=[];for(let r of e.visibleRanges){let e=new ive(n.doc,i,r.from,r.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!a||wve(a,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?s.push(bve.range(r,i)):(r>=o.to||i<=o.from)&&s.push(yve.range(r,i)),s.length>t.maxMatches))return kme.p.none}}return kme.p.set(s)}},{decorations:e=>e.decorations}),xve=kme.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),_ve=wme.r$.define({combine:e=>(0,wme.BO)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Jve(e),scrollToMatch:e=>kme.tk.scrollIntoView(e)})});class Sve{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,ave),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Rve(this):new Cve(this)}getCursor(e,t=0,n){let r=e.doc?e:wme.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?Tve(this,r,t,n):Eve(this,r,t,n)}}class Pve{constructor(e){this.spec=e}}function Eve(e,t,n,r){return new ive(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Eve(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function Tve(e,t,n,r){return new sve(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i($ve(n.input,n.index))!=wme.D0.Word||i(Qve(n.input,n.index))!=wme.D0.Word)&&(i(Qve(n.input,n.index+n[0].length))!=wme.D0.Word||i($ve(n.input,n.index+n[0].length))!=wme.D0.Word)):void 0},n,r);var i}function $ve(e,t){return e.slice((0,wme.cp)(e,t,!1),t)}function Qve(e,t){return e.slice(t,(0,wme.cp)(e,t))}class Rve extends Pve{nextMatch(e,t,n){let r=Tve(this.spec,e,n,e.doc.length).next();return r.done&&(r=Tve(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=Tve(this.spec,e,i,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Tve(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const Ave=wme.Py.define(),jve=wme.Py.define(),Dve=wme.QQ.define({create:e=>new Mve(Vve(e).create(),null),update(e,t){for(let n of t.effects)n.is(Ave)?e=new Mve(n.value.create(),e.panel):n.is(jve)&&(e=new Mve(e.query,n.value?Bve:null));return e},provide:e=>kme.mH.from(e,(e=>e.panel))});class Mve{constructor(e,t){this.query=e,this.panel=t}}const Ive=kme.p.mark({class:"cm-searchMatch"}),zve=kme.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Wve=kme.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Dve))}update(e){let t=e.state.field(Dve);(t!=e.startState.field(Dve)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return kme.p.none;let{view:n}=this,r=new wme.f_;for(let t=0,i=n.visibleRanges,o=i.length;ti[t+1].from-500;)s=i[++t].to;e.highlight(n.state,a,s,((e,t)=>{let i=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));r.add(e,t,i?zve:Ive)}))}return r.finish()}},{decorations:e=>e.decorations});function Nve(e){return t=>{let n=t.state.field(Dve,!1);return n&&n.query.spec.valid?e(t,n):Gve(t)}}const Lve=Nve(((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=wme.jT.single(r.from,r.to),o=e.state.facet(_ve);return e.dispatch({selection:i,effects:[rOe(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),Zve(e),!0})),Fve=Nve(((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=wme.jT.single(i.from,i.to),a=e.state.facet(_ve);return e.dispatch({selection:o,effects:[rOe(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),Zve(e),!0})),Uve=Nve(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:wme.jT.create(n.map((e=>wme.jT.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),Xve=Nve(((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let a,s,l=[],u=[];if(o.from==r&&o.to==i&&(s=n.toText(t.getReplacement(o)),l.push({from:o.from,to:o.to,insert:s}),o=t.nextMatch(n,o.from,o.to),u.push(kme.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let t=0==l.length||l[0].from>=o.to?0:o.to-o.from-s.length;a=wme.jT.single(o.from-t,o.to-t),u.push(rOe(e,o)),u.push(n.facet(_ve).scrollToMatch(a.main,e))}return e.dispatch({changes:l,selection:a,effects:u,userEvent:"input.replace"}),!0})),qve=Nve(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}}));if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:kme.tk.announce.of(r),userEvent:"input.replace.all"}),!0}));function Bve(e){return e.state.facet(_ve).createPanel(e)}function Vve(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(_ve);return new Sve({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:u.literal,regexp:null!==(o=null==t?void 0:t.regexp)&&void 0!==o?o:u.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:u.wholeWord})}function Yve(e){let t=(0,kme.Sd)(e,Bve);return t&&t.dom.querySelector("[main-field]")}function Zve(e){let t=Yve(e);t&&t==e.root.activeElement&&t.select()}const Gve=e=>{let t=e.state.field(Dve,!1);if(t&&t.panel){let n=Yve(e);if(n&&n!=e.root.activeElement){let r=Vve(e.state,t.query.spec);r.valid&&e.dispatch({effects:Ave.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[jve.of(!0),t?Ave.of(Vve(e.state,t.query.spec)):wme.Py.appendConfig.of(oOe)]});return!0},Hve=e=>{let t=e.state.field(Dve,!1);if(!t||!t.panel)return!1;let n=(0,kme.Sd)(e,Bve);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:jve.of(!1)}),!0},Kve=[{key:"Mod-f",run:Gve,scope:"editor search-panel"},{key:"F3",run:Lve,shift:Fve,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Lve,shift:Fve,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Hve,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let t=new ive(e.doc,e.sliceDoc(r,i));!t.next().done;){if(o.length>1e3)return!1;t.value.from==r&&(a=o.length),o.push(wme.jT.range(t.value.from,t.value.to))}return t(e.update({selection:wme.jT.create(o,a),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,kme.Sd)(e,fve);if(!t){let n=[hve.of(!0)];null==e.state.field(pve,!1)&&n.push(wme.Py.appendConfig.of([pve,mve])),e.dispatch({effects:n}),t=(0,kme.Sd)(e,fve)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=wme.jT.create(n.ranges.map((t=>e.wordAt(t.head)||wme.jT.cursor(t.head))),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=r)))return!1;let i=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new ive(e.doc,t,r[r.length-1].to);;){if(i.next(),!i.done){if(n&&r.some((e=>e.from==i.value.from)))continue;if(o){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}if(n)return null;i=new ive(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}}(e,r);return!!i&&(t(e.update({selection:e.selection.addRange(wme.jT.range(i.from,i.to),!1),effects:kme.tk.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class Jve{constructor(e){this.view=e;let t=this.query=e.state.field(Dve).query.spec;function n(e,t,n){return tve("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=tve("input",{value:t.search,placeholder:eOe(e,"Find"),"aria-label":eOe(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=tve("input",{value:t.replace,placeholder:eOe(e,"Replace"),"aria-label":eOe(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=tve("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=tve("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=tve("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=tve("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>Lve(e)),[eOe(e,"next")]),n("prev",(()=>Fve(e)),[eOe(e,"previous")]),n("select",(()=>Uve(e)),[eOe(e,"all")]),tve("label",null,[this.caseField,eOe(e,"match case")]),tve("label",null,[this.reField,eOe(e,"regexp")]),tve("label",null,[this.wordField,eOe(e,"by word")]),...e.state.readOnly?[]:[tve("br"),this.replaceField,n("replace",(()=>Xve(e)),[eOe(e,"replace")]),n("replaceAll",(()=>qve(e)),[eOe(e,"replace all")])],tve("button",{name:"close",onclick:()=>Hve(e),"aria-label":eOe(e,"close"),type:"button"},["×"])])}commit(){let e=new Sve({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Ave.of(e)}))}keydown(e){(0,kme.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Fve:Lve)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Xve(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(Ave)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(_ve).top}}function eOe(e,t){return e.state.phrase(t)}const tOe=30,nOe=/[\s\.,:;?!]/;function rOe(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-tOe),a=Math.min(i,n+tOe),s=e.state.sliceDoc(o,a);if(o!=r.from)for(let e=0;es.length-tOe;e--)if(!nOe.test(s[e-1])&&nOe.test(s[e])){s=s.slice(0,e);break}return kme.tk.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const iOe=kme.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),oOe=[Dve,wme.Wl.low(Wve),iOe];var aOe=__webpack_require__(71170);class sOe{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class lOe{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,i=n.facet(yOe).markerFilter;i&&(r=i(r));let o=kme.p.set(r.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?kme.p.widget({widget:new kOe(e),diagnostic:e}).range(e.from):kme.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new lOe(o,t,uOe(o))}}function uOe(e,t=null,n=0){let r=null;return e.between(n,1e9,((e,n,{spec:i})=>{if(!t||i.diagnostic==t)return r=new sOe(e,n,i.diagnostic),!1})),r}const cOe=wme.Py.define(),dOe=wme.Py.define(),fOe=wme.Py.define(),hOe=wme.QQ.define({create:()=>new lOe(kme.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=uOe(n,e.selected.diagnostic,i)||uOe(n,null,i)}e=new lOe(n,e.panel,r)}for(let n of t.effects)n.is(cOe)?e=lOe.init(n.value,e.panel,t.state):n.is(dOe)?e=new lOe(e.diagnostics,n.value?_Oe.open:null,e.selected):n.is(fOe)&&(e=new lOe(e.diagnostics,e.panel,n.value));return e},provide:e=>[kme.mH.from(e,(e=>e.panel)),kme.tk.decorations.from(e,(e=>e.diagnostics))]}),pOe=kme.p.mark({class:"cm-lintRange cm-lintRange-active"});function mOe(e,t,n){let{diagnostics:r}=e.state.field(hOe),i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:s})=>{t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t({dom:gOe(e,i)})}:null}function gOe(e,t){return tve("ul",{class:"cm-tooltip-lint"},t.map((t=>wOe(e,t,!1))))}const vOe=e=>{let t=e.state.field(hOe,!1);return!(!t||!t.panel||(e.dispatch({effects:dOe.of(!1)}),0))},OOe=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(hOe,!1);var n,r;t&&t.panel||e.dispatch({effects:(n=e.state,r=[dOe.of(!0)],n.field(hOe,!1)?r:r.concat(wme.Py.appendConfig.of(COe)))});let i=(0,kme.Sd)(e,_Oe.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(hOe,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)||(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),0))}}],yOe=wme.r$.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},(0,wme.BO)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function bOe(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function wOe(e,t,n){var r;let i=n?bOe(t.actions):[];return tve("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},tve("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,a=r=>{if(r.preventDefault(),o)return;o=!0;let i=uOe(e.state.field(hOe).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,l=i[r]?s.indexOf(i[r]):-1,u=l<0?s:[s.slice(0,l),tve("u",s.slice(l,l+1)),s.slice(l+1)];return tve("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${s}${l<0?"":` (access key "${i[r]})"`}.`},u)})),t.source&&tve("div",{class:"cm-diagnosticSource"},t.source))}class kOe extends kme.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return tve("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class xOe{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=wOe(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class _Oe{constructor(e){this.view=e,this.items=[],this.list=tve("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)vOe(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=bOe(n.actions);for(let i=0;i{for(let t=0;tvOe(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(hOe).selected;if(!e)return-1;for(let t=0;t{let s,l=-1;for(let e=n;en&&(this.items.splice(n,l-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),i=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),n++}));n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=uOe(this.view.state.field(hOe).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:fOe.of(t)})}static open(e){return new _Oe(e)}}function SOe(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}(``,'width="6" height="3"')}const POe=kme.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:SOe("#d11")},".cm-lintRange-warning":{backgroundImage:SOe("orange")},".cm-lintRange-info":{backgroundImage:SOe("#999")},".cm-lintRange-hint":{backgroundImage:SOe("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});class EOe extends kme.SJ{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce(((e,t)=>severityWeight(e)function(e,t,n){function r(){let r=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(r.from)&&e.dispatch({effects:setLintGutterTooltip.of({pos:r.from,above:!1,create:()=>({dom:gOe(e,n),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let n=r=>{let i=t.getBoundingClientRect();if(!(r.clientX>i.left-10&&r.clientXi.top-10&&r.clientY{clearTimeout(o),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(o),setTimeout(r,i)}}(e,t,n)),t}}const COe=[hOe,kme.tk.decorations.compute([hOe],(e=>{let{selected:t,panel:n}=e.field(hOe);return t&&n&&t.from!=t.to?kme.p.set([pOe.range(t.from,t.to)]):kme.p.none})),(0,kme.bF)(mOe,{hideOn:function(e,t){let n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(cOe)))&&!e.changes.touchesRange(n.from,n.to))}}),POe];var TOe=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(aOe.GA)),!1!==e.defaultKeymap&&(t=t.concat(Jge)),!1!==e.searchKeymap&&(t=t.concat(Kve)),!1!==e.historyKeymap&&(t=t.concat(ege)),!1!==e.foldKeymap&&(t=t.concat(Gfe.e7)),!1!==e.completionKeymap&&(t=t.concat(aOe.B1)),!1!==e.lintKeymap&&(t=t.concat(OOe));var n=[];return!1!==e.lineNumbers&&n.push((0,kme.Eu)()),!1!==e.highlightActiveLineGutter&&n.push((0,kme.HQ)()),!1!==e.highlightSpecialChars&&n.push((0,kme.AE)()),!1!==e.history&&n.push(Ime()),!1!==e.foldGutter&&n.push((0,Gfe.mi)()),!1!==e.drawSelection&&n.push((0,kme.Uw)()),!1!==e.dropCursor&&n.push((0,kme.qr)()),!1!==e.allowMultipleSelections&&n.push(wme.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&n.push((0,Gfe.nY)()),!1!==e.syntaxHighlighting&&n.push((0,Gfe.nF)(Gfe.R_,{fallback:!0})),!1!==e.bracketMatching&&n.push((0,Gfe.n$)()),!1!==e.closeBrackets&&n.push((0,aOe.vQ)()),!1!==e.autocompletion&&n.push((0,aOe.ys)()),!1!==e.rectangularSelection&&n.push((0,kme.Zs)()),!1!==e.crosshairCursor&&n.push((0,kme.S2)()),!1!==e.highlightActiveLine&&n.push((0,kme.ZO)()),!1!==e.highlightSelectionMatches&&n.push(Ove()),e.tabSize&&"number"==typeof e.tabSize&&n.push(Gfe.c.of(" ".repeat(e.tabSize))),n.concat([kme.$f.of(t.flat())]).filter(Boolean)};const $Oe="#e06c75",QOe="#abb2bf",ROe="#7d8799",AOe="#d19a66",jOe="#2c313a",DOe="#282c34",MOe="#353a42",IOe="#528bff",zOe=kme.tk.theme({"&":{color:QOe,backgroundColor:DOe},".cm-content":{caretColor:IOe},".cm-cursor, .cm-dropCursor":{borderLeftColor:IOe},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:QOe},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:DOe,color:ROe,border:"none"},".cm-activeLineGutter":{backgroundColor:jOe},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:MOe},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:MOe,borderBottomColor:MOe},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:jOe,color:QOe}}},{dark:!0}),WOe=Gfe.Qf.define([{tag:fhe.pJ.keyword,color:"#c678dd"},{tag:[fhe.pJ.name,fhe.pJ.deleted,fhe.pJ.character,fhe.pJ.propertyName,fhe.pJ.macroName],color:$Oe},{tag:[fhe.pJ.function(fhe.pJ.variableName),fhe.pJ.labelName],color:"#61afef"},{tag:[fhe.pJ.color,fhe.pJ.constant(fhe.pJ.name),fhe.pJ.standard(fhe.pJ.name)],color:AOe},{tag:[fhe.pJ.definition(fhe.pJ.name),fhe.pJ.separator],color:QOe},{tag:[fhe.pJ.typeName,fhe.pJ.className,fhe.pJ.number,fhe.pJ.changed,fhe.pJ.annotation,fhe.pJ.modifier,fhe.pJ.self,fhe.pJ.namespace],color:"#e5c07b"},{tag:[fhe.pJ.operator,fhe.pJ.operatorKeyword,fhe.pJ.url,fhe.pJ.escape,fhe.pJ.regexp,fhe.pJ.link,fhe.pJ.special(fhe.pJ.string)],color:"#56b6c2"},{tag:[fhe.pJ.meta,fhe.pJ.comment],color:ROe},{tag:fhe.pJ.strong,fontWeight:"bold"},{tag:fhe.pJ.emphasis,fontStyle:"italic"},{tag:fhe.pJ.strikethrough,textDecoration:"line-through"},{tag:fhe.pJ.link,color:ROe,textDecoration:"underline"},{tag:fhe.pJ.heading,fontWeight:"bold",color:$Oe},{tag:[fhe.pJ.atom,fhe.pJ.bool,fhe.pJ.special(fhe.pJ.variableName)],color:AOe},{tag:[fhe.pJ.processingInstruction,fhe.pJ.string,fhe.pJ.inserted],color:"#98c379"},{tag:fhe.pJ.invalid,color:"#ffffff"}]),NOe=[zOe,(0,Gfe.nF)(WOe)];var LOe=wme.q6.define();function FOe(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:o,onUpdate:a,extensions:s=[],autoFocus:l,theme:u="light",height:d="",minHeight:f="",maxHeight:h="",placeholder:p="",width:m="",minWidth:g="",maxWidth:v="",editable:O=!0,readOnly:y=!1,indentWithTab:b=!0,basicSetup:w=!0,root:k,initialState:x}=e,[_,S]=(0,c.useState)(),[P,E]=(0,c.useState)(),[C,T]=(0,c.useState)(),$=kme.tk.theme({"&":{height:d,minHeight:f,maxHeight:h,width:m,minWidth:g,maxWidth:v}}),Q=kme.tk.updateListener.of((e=>{if(e.docChanged&&"function"==typeof r&&!e.transactions.some((e=>e.annotation(LOe)))){var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),R=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:a=!0}=e,s=[],l=kme.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1});switch(t&&s.unshift(kme.$f.of([eve])),a&&("boolean"==typeof a?s.unshift(TOe()):s.unshift(TOe(a))),o&&s.unshift((0,kme.W$)(o)),i){case"light":s.push(l);break;case"dark":s.push(NOe);break;case"none":break;default:s.push(i)}return!1===n&&s.push(kme.tk.editable.of(!1)),r&&s.push(wme.yy.readOnly.of(!0)),[...s]}({theme:u,editable:O,readOnly:y,placeholder:p,indentWithTab:b,basicSetup:w}),A=[Q,$,...R];return a&&"function"==typeof a&&A.push(kme.tk.updateListener.of(a)),A=A.concat(s),(0,c.useEffect)((()=>{if(_&&!C){var e={doc:t,selection:n,extensions:A},r=x?wme.yy.fromJSON(x.json,e,x.fields):wme.yy.create(e);if(T(r),!P){var i=new kme.tk({state:r,parent:_,root:k});E(i),o&&o(i,r)}}return()=>{P&&(T(void 0),E(void 0))}}),[_,C]),(0,c.useEffect)((()=>S(e.container)),[e.container]),(0,c.useEffect)((()=>()=>{P&&(P.destroy(),E(void 0))}),[P]),(0,c.useEffect)((()=>{l&&P&&P.focus()}),[l,P]),(0,c.useEffect)((()=>{P&&P.dispatch({effects:wme.Py.reconfigure.of(A)})}),[u,s,d,f,h,m,g,v,p,O,y,b,w,r,a]),(0,c.useEffect)((()=>{if(void 0!==t){var e=P?P.state.doc.toString():"";P&&t!==e&&P.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[LOe.of(!0)]})}}),[t,P]),{state:C,setState:T,view:P,setView:E,container:_,setContainer:S}}var UOe=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],XOe=(0,c.forwardRef)(((e,t)=>{var{className:n,value:r="",selection:i,extensions:o=[],onChange:a,onStatistics:s,onCreateEditor:l,onUpdate:u,autoFocus:d,theme:f="light",height:h,minHeight:p,maxHeight:m,width:g,minWidth:v,maxWidth:O,basicSetup:y,placeholder:b,indentWithTab:w,editable:k,readOnly:x,root:_,initialState:S}=e,P=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,UOe),E=(0,c.useRef)(null),{state:C,view:T,container:$}=FOe({container:E.current,root:_,value:r,autoFocus:d,theme:f,height:h,minHeight:p,maxHeight:m,width:g,minWidth:v,maxWidth:O,basicSetup:y,placeholder:b,indentWithTab:w,editable:k,readOnly:x,selection:i,onChange:a,onStatistics:s,onCreateEditor:l,onUpdate:u,extensions:o,initialState:S});if((0,c.useImperativeHandle)(t,(()=>({editor:E.current,state:C,view:T})),[E,$,C,T]),"string"!=typeof r)throw new Error("value must be typeof string but got "+typeof r);var Q="string"==typeof f?"cm-theme-"+f:"cm-theme";return(0,lM.jsx)("div",bme({ref:E,className:Q+(n?" "+n:"")},P))}));XOe.displayName="CodeMirror";const qOe=XOe;var BOe=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}))}));BOe.displayName="Settings";const VOe=UD("WidgetCode_SettingsButton",["root"]),YOe=({showClose:e=!1,disabled:t,onClick:n})=>c.createElement(FN,{icon:e?yG:BOe,onClick:n,size:"small",color:"secondary",variant:"text",disabled:t,rootClassName:VOe.root,"aria-label":"toggle settings"});var ZOe=__webpack_require__(84111);const GOe={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"},HOe=e=>{const{label:t,value:n}=e;return"string"==typeof t?t:"string"==typeof n?n:String(e)};function KOe(e,t){const{open:n}=e,{context:{selectionMode:r}}=t;if(t.type===GOe.buttonClick){var i;const r=null!=(i=e.selectedValues[0])?i:iZ(null,"start",t.context);return HD({},e,{open:!n,highlightedValue:n?null:r})}if(t.type===GOe.browserAutoFill)return oZ(t.item,e,t.context);const o=sZ(e,t);switch(t.type){case rZ.keyDown:if(e.open){if("Escape"===t.event.key)return HD({},o,{open:!1})}else{var a,s;if("ArrowDown"===t.event.key)return HD({},e,{open:!0,highlightedValue:null!=(a=e.selectedValues[0])?a:iZ(null,"start",t.context)});if("ArrowUp"===t.event.key)return HD({},e,{open:!0,highlightedValue:null!=(s=e.selectedValues[0])?s:iZ(null,"end",t.context)})}break;case rZ.itemClick:if("single"===r)return HD({},o,{open:!1});break;case rZ.blur:return HD({},o,{open:!1});default:return o}return o}const JOe={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0};function eye(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map((e=>e.value))):null==(null==e?void 0:e.value)?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function tye(e){return RM("MuiSelect",e)}function nye(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:i,getItemState:o,registerItem:a,totalSubitemCount:s}=t,l=c.useMemo((()=>({dispatch:r,getItemState:o,getItemIndex:i})),[r,i,o]),u=c.useMemo((()=>({getItemIndex:i,registerItem:a,totalSubitemCount:s})),[a,i,s]);return(0,lM.jsx)(OZ.Provider,{value:u,children:(0,lM.jsx)(kZ.Provider,{value:l,children:n})})}var rye;AM("MuiSelect",["root","button","listbox","popper","active","expanded","disabled","focusVisible"]);const iye=["areOptionsEqual","autoComplete","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","listboxId","listboxOpen","multiple","name","required","onChange","onListboxOpenChange","getOptionAsString","renderValue","placeholder","slotProps","slots","value"];function oye(e){var t;return Array.isArray(e)?(0,lM.jsx)(c.Fragment,{children:e.map((e=>e.label)).join(", ")}):null!=(t=null==e?void 0:e.label)?t:null}const aye=c.forwardRef((function(e,t){var n,r,i,o,a;const{areOptionsEqual:s,autoComplete:l,autoFocus:u,children:d,defaultValue:f,defaultListboxOpen:h=!1,disabled:p,getSerializedValue:m,listboxId:g,listboxOpen:v,multiple:O=!1,name:y,required:b=!1,onChange:w,onListboxOpenChange:k,getOptionAsString:x=HOe,renderValue:_,placeholder:S,slotProps:P={},slots:E={},value:C}=e,T=KD(e,iye),$=null!=_?_:oye,[Q,R]=c.useState(!1),A=c.useRef(null),j=c.useRef(null),D=null!=(n=E.root)?n:"button",M=null!=(r=E.listbox)?r:"ul",I=null!=(i=E.popper)?i:xY,z=c.useCallback((e=>{R(null!=e)}),[]),W=eM(t,A,z);c.useEffect((()=>{u&&A.current.focus()}),[u]);const{buttonActive:N,buttonFocusVisible:L,contextValue:F,disabled:U,getButtonProps:X,getListboxProps:q,getHiddenInputProps:B,getOptionMetadata:V,value:Y,open:Z}=function(e){const{areOptionsEqual:t,buttonRef:n,defaultOpen:r=!1,defaultValue:i,disabled:o=!1,listboxId:a,listboxRef:s,multiple:l=!1,name:u,required:d,onChange:f,onHighlightChange:h,onOpenChange:p,open:m,options:g,getOptionAsString:v=HOe,getSerializedValue:O=eye,value:y,componentName:b="useSelect"}=e,w=c.useRef(null),k=eM(n,w),x=c.useRef(null),_=nZ(a);let S;void 0===y&&void 0===i?S=[]:void 0!==i&&(S=l?i:null==i?[]:[i]);const P=c.useMemo((()=>{if(void 0!==y)return l?y:null==y?[]:[y]}),[y,l]),{subitems:E,contextValue:C}=yZ(),T=c.useMemo((()=>null!=g?new Map(g.map(((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:c.createRef(),id:`${_}_${t}`}]))):E),[g,E,_]),$=eM(s,x),{getRootProps:Q,active:R,focusVisible:A,rootRef:j}=jZ({disabled:o,rootRef:k}),D=c.useMemo((()=>Array.from(T.keys())),[T]),M=c.useCallback((e=>{if(void 0!==t){const n=D.find((n=>t(n,e)));return T.get(n)}return T.get(e)}),[T,t,D]),I=c.useCallback((e=>{var t;const n=M(e);return null!=(t=null==n?void 0:n.disabled)&&t}),[M]),z=c.useCallback((e=>{const t=M(e);return t?v(t):""}),[M,v]),W=c.useMemo((()=>({selectedValues:P,open:m})),[P,m]),N=c.useCallback((e=>{var t;return null==(t=T.get(e))?void 0:t.id}),[T]),L=c.useCallback(((e,t)=>{var n;l?null==f||f(e,t):null==f||f(e,null!=(n=t[0])?n:null)}),[l,f]),F=c.useCallback(((e,t)=>{null==h||h(e,null!=t?t:null)}),[h]),U=c.useCallback(((e,t,n)=>{var r;"open"===t&&(null==p||p(n),!1===n&&"blur"!==(null==e?void 0:e.type)&&(null==(r=w.current)||r.focus()))}),[p]),X={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=S)?e:[],open:r}},getItemId:N,controlledProps:W,focusManagement:"DOM",getItemDomElement:c.useCallback((e=>{var t,n;return null==e?null:null!=(t=null==(n=E.get(e))?void 0:n.ref.current)?t:null}),[E]),itemComparer:t,isItemDisabled:I,rootRef:$,onChange:L,onHighlightChange:F,onStateChange:U,reducerActionContext:c.useMemo((()=>({multiple:l})),[l]),items:D,getItemAsString:z,selectionMode:l?"multiple":"single",stateReducer:KOe,componentName:b},{dispatch:q,getRootProps:B,contextValue:V,state:{open:Y,highlightedValue:Z,selectedValues:G},rootRef:H}=vZ(X),K=c.useRef(Y);pM((()=>{if(Y&&null!==Z){var e;const t=null==(e=M(Z))?void 0:e.ref;if(!x.current||null==t||!t.current)return;K.current||t.current.focus({preventScroll:!0});const n=x.current.getBoundingClientRect(),r=t.current.getBoundingClientRect();r.topn.bottom&&(x.current.scrollTop+=r.bottom-n.bottom)}}),[Y,Z,M]);const J=c.useCallback((e=>M(e)),[M]),ee=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),q({type:rZ.keyDown,key:t.key,event:t}))},te=(e={})=>HD({},e,((e={})=>{return{onClick:(t=e,e=>{var n;if(null==t||null==(n=t.onClick)||n.call(t,e),!e.defaultMuiPrevented){const t={type:GOe.buttonClick,event:e};q(t)}}),onKeyDown:ee(e)};var t})(e),{role:"combobox","aria-expanded":Y,"aria-controls":_}),ne=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||(null!=(r=x.current)&&r.contains(t.relatedTarget)||t.relatedTarget===w.current)&&(t.defaultMuiPrevented=!0)},re=(e={})=>({onBlur:ne(e)});c.useDebugValue({selectedOptions:G,highlightedOption:Z,open:Y});const ie=c.useMemo((()=>HD({},V,C)),[V,C]);let oe,ae;var se;oe=e.multiple?G:G.length>0?G[0]:null,ae=l?oe.map((e=>J(e))).filter((e=>void 0!==e)):null!=(se=J(oe))?se:null;const le=e=>t=>{var n;if(null==e||null==(n=e.onChange)||n.call(e,t),t.defaultMuiPrevented)return;const r=T.get(t.target.value);""===t.target.value?q({type:rZ.clearSelection}):void 0!==r&&q({type:GOe.browserAutoFill,item:r.value,event:t})};return{buttonActive:R,buttonFocusVisible:A,buttonRef:j,contextValue:ie,disabled:o,dispatch:q,getButtonProps:(e={})=>{const t=iM(e);return HD({},e,bZ(Q,te)(t))},getHiddenInputProps:(e={})=>{const t=iM(e);return HD({name:u,tabIndex:-1,"aria-hidden":!0,required:!!d||void 0,value:O(ae),style:JOe},e,{onChange:le(t)})},getListboxProps:(e={})=>{const t=iM(e),n=bZ(re,B);return HD({id:_,role:"listbox","aria-multiselectable":l?"true":void 0},e,n(t))},getOptionMetadata:J,listboxRef:H,open:Y,options:D,value:oe,highlightedOption:Z}}({name:y,required:b,getSerializedValue:m,areOptionsEqual:s,buttonRef:W,defaultOpen:h,defaultValue:f,disabled:p,listboxId:g,multiple:O,open:v,onChange:w,onOpenChange:k,getOptionAsString:x,value:C,componentName:"Select"}),G=HD({},e,{active:N,defaultListboxOpen:h,disabled:U,focusVisible:L,open:Z,multiple:O,renderValue:$,value:Y}),H=function(e){const{active:t,disabled:n,open:r,focusVisible:i}=e;return hM({root:["root",n&&"disabled",i&&"focusVisible",t&&"active",r&&"expanded"],listbox:["listbox",n&&"disabled"],popper:["popper"]},fM(tye))}(G),K=sM({elementType:D,getSlotProps:X,externalSlotProps:P.root,externalForwardedProps:T,ownerState:G,className:H.root}),J=sM({elementType:M,getSlotProps:q,externalSlotProps:P.listbox,additionalProps:{ref:j},ownerState:G,className:H.listbox}),ee=sM({elementType:I,externalSlotProps:P.popper,additionalProps:{anchorEl:A.current,keepMounted:!0,open:Z,placement:"bottom-start",role:void 0},ownerState:G,className:H.popper});let te;var ne;return te=O?Y.map((e=>V(e))).filter((e=>void 0!==e)):null!=(ne=V(Y))?ne:null,(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(D,HD({},K,{children:null!=(o=null!=(a=$(te))?a:S)?o:rye||(rye=(0,lM.jsx)("span",{className:"notranslate",children:"​"}))})),Q&&(0,lM.jsx)(I,HD({},ee,{children:(0,lM.jsx)(M,HD({},J,{children:(0,lM.jsx)(nye,{value:F,children:d})}))})),(0,lM.jsx)("input",HD({},B(),{autoComplete:l}))]})}));function sye(e){return RM("MuiOption",e)}AM("MuiOption",["root","disabled","selected","highlighted"]);const lye=["children","disabled","label","slotProps","slots","value"],uye=c.memo(c.forwardRef((function(e,t){var n,r;const{children:i,disabled:o=!1,label:a,slotProps:s={},slots:l={},value:u}=e,d=KD(e,lye),f=null!=(n=l.root)?n:"li",h=c.useRef(null),p=eM(h,t),m=null!=a?a:"string"==typeof i?i:null==(r=h.current)?void 0:r.innerText,{getRootProps:g,selected:v,highlighted:O,index:y}=function(e){const{value:t,label:n,disabled:r,rootRef:i,id:o}=e,{getRootProps:a,highlighted:s,selected:l}=XZ({item:t}),{getRootProps:u,rootRef:d}=jZ({disabled:r,focusableWhenDisabled:!0}),f=nZ(o),h=c.useRef(null),p=c.useMemo((()=>({disabled:r,label:n,value:t,ref:h,id:f})),[r,n,t,f]),{index:m}=qZ(t,p),g=eM(i,h,d),v=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||[" ","Enter"].includes(t.key)&&(t.defaultMuiPrevented=!0)},O=(e={})=>({onKeyDown:v(e)});return{getRootProps:(e={})=>{const t=iM(e);return HD({},e,t,bZ(a,bZ(u,O))(t),{id:f,ref:g,role:"option","aria-selected":l})},highlighted:s,index:m,selected:l,rootRef:g}}({disabled:o,label:m,rootRef:p,value:u}),b=HD({},e,{disabled:o,highlighted:O,index:y,selected:v}),w=function(e){const{disabled:t,highlighted:n,selected:r}=e;return hM({root:["root",t&&"disabled",n&&"highlighted",r&&"selected"]},fM(sye))}(b),k=sM({getSlotProps:g,elementType:f,externalSlotProps:s.root,externalForwardedProps:d,className:w.root,ownerState:b});return(0,lM.jsx)(f,HD({},k,{children:i}))}))),cye=c.forwardRef((function(e,t){const{value:n}=e,{contextValue:r}=function(e){const t=c.useContext(kZ);if(!t)throw new Error("Option: ListContext was not found.");const{getItemState:n,dispatch:r}=t,{highlighted:i,selected:o,focusable:a}=n(e),s=c.useCallback((t=>{if(t!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:i,selected:o,focusable:a}}),[i,o,a,e]);return{contextValue:c.useMemo((()=>({dispatch:r,getItemState:s})),[r,s])}}(n);return(0,lM.jsx)(kZ.Provider,{value:r,children:(0,lM.jsx)(uye,HD({},e,{ref:t}))})})),dye=UD("SelectOption",["root","selected","label"]),fye=function({selectedValue:e,value:t,children:n,"data-testid":r}){const i=(0,c.useMemo)((()=>Array.isArray(e)&&Ie(t)?e.includes(t):e===t),[e,t]);return c.createElement(cye,{value:t,"data-testid":r,slotProps:{root:{className:qD(dye.root,i&&dye.selected)}}},c.createElement("span",{className:dye.label},n))},hye=UD("Select",["root","disabled","input","value","label","label-text","dropdown","dropdown-icon","input","popper"]),pye=(0,c.forwardRef)((({label:e,placeholder:t,value:n,options:r,required:i=!1,disabled:o,rootClassName:a,onChange:s,onOpenChange:l},u)=>{const{width:d}=function(e=null){const[t,n]=(0,c.useState)(null),[r,i]=(0,c.useState)({width:0,height:0}),o=(0,c.useCallback)((()=>{i({width:(null==t?void 0:t.offsetWidth)||0,height:(null==t?void 0:t.offsetHeight)||0})}),[null==t?void 0:t.offsetHeight,null==t?void 0:t.offsetWidth]);return XD("resize",o),(0,c.useEffect)((()=>{var t;n("function"!=typeof e&&null!==(t=null==e?void 0:e.current)&&void 0!==t?t:null)}),[e]),(0,c.useEffect)((()=>{o()}),[null==t?void 0:t.offsetHeight,null==t?void 0:t.offsetWidth]),r}(u),[f,h]=(0,c.useState)(!1),p=(0,c.useCallback)((e=>{h(e),null==l||l(e)}),[l]),m=(0,c.useCallback)(((e,t)=>{if(Array.isArray(n)){const r=[...n],i=r.indexOf(t);return i>-1?r.splice(i,1):("number"==typeof t||Ne(t))&&r.push(t),s(r,e),void h(!1)}s(t,e),h(!1)}),[s,n]),g=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),p(!f)}),[p,f]),v=(0,c.useCallback)((()=>{p(!1)}),[p]);return c.createElement(j4,{onClickAway:v},c.createElement("div",{className:qD(hye.root,a)},c.createElement(aye,{renderValue:()=>c.createElement("div",{className:hye.value},c.createElement("div",{className:hye.label},c.createElement("span",{className:hye["label-text"]},null!=e?e:t)),c.createElement("span",{className:hye.dropdown},c.createElement(zZ,{className:hye["dropdown-icon"],"aria-hidden":"true"}))),ref:u,onClick:g,slotProps:{root:{className:hye.input},popper:{className:hye.popper,style:{width:u?d:"auto"},disablePortal:!1}},value:n,disabled:o,onChange:m,listboxOpen:f,"data-testid":"select-input"},Array.isArray(n)||i?null:c.createElement(fye,{value:"",selectedValue:n},c.createElement("i",null,"None")),r.map(((e,t)=>{const{label:r,value:i}=function(e){return e&&"object"==typeof e&&"label"in e&&"value"in e?e:{label:String(e),value:e}}(e);return c.createElement(fye,{key:t,value:i,selectedValue:n,"data-testid":`select-option-${i}`},r)})))))}));pye.displayName="Select";const mye=pye,gye=UD("WidgetCodeSettings",["root"]),vye=({value:e,label:t,placeholder:n,options:r,onChange:i,uniqueId:o,type:a})=>c.createElement("div",null,c.createElement(jfe,{htmlFor:`${o}-select-${a}-label`,disabled:!1},t),c.createElement(mye,{value:e.value,label:e.value,placeholder:n,options:r,onChange:e=>{"string"==typeof e&&i(e)}})),Oye=({hideSettings:e,uniqueId:t,languages:n,language:r,onChangeLanguage:i})=>{const o=LD();return c.createElement("div",{onKeyDown:t=>(0,ZOe.ZP)("esc",t)&&e(),className:gye.root},c.createElement(vye,{type:"language",label:o("editor.editorWidgets.code.language"),placeholder:o("editor.editorWidgets.code.selectLanguage"),uniqueId:t,value:r,options:n,onChange:i}))},yye=[{label:"AGS Script",identifiers:["ags","asc","ash"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"APL",identifiers:["apl","dyalog"],codemirror_mode:"apl",codemirror_mime_type:"text/apl"},{label:"ASP",identifiers:["asp","aspx","asax","ascx","ashx","asmx","axd"],codemirror_mode:"html",codemirror_mime_type:"application/x-aspx"},{label:"Alpine Abuild",identifiers:["abuild","apkbuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"AngelScript",identifiers:["angelscript","as"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Ant Build System",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"application/xml"},{label:"Apex",identifiers:["apex","cls"],codemirror_mode:"c",codemirror_mime_type:"text/x-java"},{label:"Asymptote",identifiers:["asymptote","asy"],codemirror_mode:"c",codemirror_mime_type:"text/x-kotlin"},{label:"BibTeX",identifiers:["bibtex","bib"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Brainfuck",identifiers:["brainfuck","b","bf"],codemirror_mode:"brainfuck",codemirror_mime_type:"text/x-brainfuck"},{label:"C",identifiers:["c","cats","h","idc"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"C#",identifiers:["csharp","cs","cake","csx"],codemirror_mode:"csharp",codemirror_mime_type:"text/x-csharp"},{label:"C++",identifiers:["cpp","cc","cp","cxx","h","hh","hpp","hxx","inc","inl","ino","ipp","re","tcc","tpp"],codemirror_mode:"cpp",codemirror_mime_type:"text/x-c++src"},{label:"C2hs Haskell",identifiers:["chs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"CMake",identifiers:["cmake"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"COBOL",identifiers:["cobol","cob","cbl","ccp","cpy"],codemirror_mode:"cobol",codemirror_mime_type:"text/x-cobol"},{label:"COLLADA",identifiers:["collada","dae"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"CSON",identifiers:["cson"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"CSS",identifiers:["css"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Cabal Config",identifiers:["Cabal","cabal"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"ChucK",identifiers:["chuck","ck"],codemirror_mode:"c",codemirror_mime_type:"text/x-java"},{label:"Clojure",identifiers:["clojure","clj","boot","cljc","cljs","cljscm","cljx","hic"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Cloud Firestore Security Rules",identifiers:[],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"CoffeeScript",identifiers:["coffeescript","coffee","cake","cjsx","iced"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Common Lisp",identifiers:["lisp","asd","cl","l","lsp","ny","podsl","sexp"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Common Workflow Language",identifiers:["cwl"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Component Pascal",identifiers:["delphi","objectpascal","cp","cps"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Crystal",identifiers:["crystal","cr"],codemirror_mode:"crystal",codemirror_mime_type:"text/x-crystal"},{label:"Cuda",identifiers:["cuda","cu","cuh"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Cycript",identifiers:["cycript","cy"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"Cython",identifiers:["cython","pyrex","pyx","pxd","pxi"],codemirror_mode:"python",codemirror_mime_type:"text/x-cython"},{label:"D",identifiers:["d","di"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"DTrace",identifiers:["dtrace","d"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"Dart",identifiers:["dart"],codemirror_mode:"dart",codemirror_mime_type:"application/dart"},{label:"Dhall",identifiers:["dhall"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Diff",identifiers:["diff","udiff","patch"],codemirror_mode:"diff",codemirror_mime_type:"text/x-diff"},{label:"Dockerfile",identifiers:["dockerfile"],codemirror_mode:"dockerfile",codemirror_mime_type:"text/x-dockerfile"},{label:"Dylan",identifiers:["dylan","dyl","intr","lid"],codemirror_mode:"dylan",codemirror_mime_type:"text/x-dylan"},{label:"EBNF",identifiers:["ebnf"],codemirror_mode:"ebnf",codemirror_mime_type:"text/x-ebnf"},{label:"ECL",identifiers:["ecl","eclxml"],codemirror_mode:"ecl",codemirror_mime_type:"text/x-ecl"},{label:"EQ",identifiers:["eq"],codemirror_mode:"c",codemirror_mime_type:"text/x-csharp"},{label:"Eagle",identifiers:["eagle","sch","brd"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Easybuild",identifiers:["easybuild","eb"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Ecere Projects",identifiers:["epj"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"EditorConfig",identifiers:["editorconfig"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Edje Data Collection",identifiers:["edc"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Eiffel",identifiers:["eiffel","e"],codemirror_mode:"eiffel",codemirror_mime_type:"text/x-eiffel"},{label:"Elm",identifiers:["elm"],codemirror_mode:"elm",codemirror_mime_type:"text/x-elm"},{label:"Emacs Lisp",identifiers:["elisp","emacs","el"],codemirror_mode:"c",codemirror_mime_type:"text/x-common-lisp"},{label:"EmberScript",identifiers:["emberscript","em"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Erlang",identifiers:["erlang","erl","es","escript","hrl","xrl","yrl"],codemirror_mode:"erlang",codemirror_mime_type:"text/x-erlang"},{label:"Factor",identifiers:["factor"],codemirror_mode:"factor",codemirror_mime_type:"text/x-factor"},{label:"Forth",identifiers:["forth","fth","f","for","fr","frt","fs"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Fortran",identifiers:["fortran","f","for","fpp"],codemirror_mode:"fortran",codemirror_mime_type:"text/x-fortran"},{label:"GCC Machine Description",identifiers:["md"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"GN",identifiers:["gn","gni"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Game Maker Language",identifiers:["gml"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Genshi",identifiers:["genshi","kid"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Gentoo Ebuild",identifiers:["ebuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Gentoo Eclass",identifiers:["eclass"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Attributes",identifiers:["gitattributes"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Config",identifiers:["gitconfig","gitmodules"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Glyph",identifiers:["glyph","glf"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Go",identifiers:["go","golang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"Grammatical Framework",identifiers:["gf"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Groovy",identifiers:["groovy","grt","gtpl","gvy"],codemirror_mode:"groovy",codemirror_mime_type:"text/x-groovy"},{label:"HCL",identifiers:["hcl","terraform","tf","tfvars","workflow"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"HTML",identifiers:["html","xhtml","htm","inc","st","xht"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"HTML+ECR",identifiers:["ecr"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"HTML+EEX",identifiers:["eex"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"HTML+ERB",identifiers:["erb"],codemirror_mode:"html",codemirror_mime_type:"application/x-erb"},{label:"HTML+PHP",identifiers:["phtml"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"HTML+Razor",identifiers:["razor","cshtml"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"HTTP",identifiers:["http"],codemirror_mode:"http",codemirror_mime_type:"message/http"},{label:"Hack",identifiers:["hack","hh","php"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"Haskell",identifiers:["haskell","hs","hsc"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Haxe",identifiers:["haxe","hx","hxsl"],codemirror_mode:"haxe",codemirror_mime_type:"text/x-haxe"},{label:"HolyC",identifiers:["holyc","hc"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"IDL",identifiers:["idl","pro","dlm"],codemirror_mode:"idl",codemirror_mime_type:"text/x-idl"},{label:"INI",identifiers:["ini","dosini","cfg","lektorproject","prefs","pro","properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"IRC log",identifiers:["irc","irclog","weechatlog"],codemirror_mode:"mirc",codemirror_mime_type:"text/mirc"},{label:"Ignore List",identifiers:["ignore","gitignore"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"JSON",identifiers:["json","avsc","geojson","gltf","har","ice","jsonl","mcmeta","tfstate","topojson","webapp","webmanifest","yy","yyp"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSON with Comments",identifiers:["jsonc"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JSON5",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONLD",identifiers:["jsonld"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONiq",identifiers:["jsoniq","jq"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSX",identifiers:["jsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Java",identifiers:["java"],codemirror_mode:"java",codemirror_mime_type:"text/x-java"},{label:"Java Properties",identifiers:["properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Java Server Pages",identifiers:["jsp"],codemirror_mode:"html",codemirror_mime_type:"application/x-jsp"},{label:"JavaScript",identifiers:["javascript","js","node","bones","es","frag","gs","jake","jsb","jscad","jsfl","jsm","jss","mjs","njs","pac","sjs","ssjs","xsjs","xsjslib"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JavaScript+ERB",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/javascript"},{label:"Julia",identifiers:["julia","jl"],codemirror_mode:"julia",codemirror_mime_type:"text/x-julia"},{label:"Jupyter Notebook",identifiers:["ipynb"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"KiCad Layout",identifiers:["pcbnew"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Kit",identifiers:["kit"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"Kotlin",identifiers:["kotlin","kt","ktm","kts"],codemirror_mode:"kotlin",codemirror_mime_type:"text/x-kotlin"},{label:"LFE",identifiers:["lfe"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"LTspice Symbol",identifiers:["asy"],codemirror_mode:"spreadsheet",codemirror_mime_type:"text/x-spreadsheet"},{label:"LabVIEW",identifiers:["labview","lvproj"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Less",identifiers:["less"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Literate Haskell",identifiers:["lhaskell","lhs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-literate-haskell"},{label:"LiveScript",identifiers:["livescript","ls"],codemirror_mode:"livescript",codemirror_mime_type:"text/x-livescript"},{label:"LookML",identifiers:["lookml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Lua",identifiers:["lua","fcgi","nse","rbxs","wlua"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"M",identifiers:["m","mumps"],codemirror_mode:"mumps",codemirror_mime_type:"text/x-mumps"},{label:"MATLAB",identifiers:["matlab","octave","m"],codemirror_mode:"octave",codemirror_mime_type:"text/x-octave"},{label:"MTML",identifiers:["mtml"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"MUF",identifiers:["muf","m"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Makefile",identifiers:["makefile","bsdmake","make","mf","mak","d","mk","mkfile"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"Markdown",identifiers:["markdown","pandoc","md","mdown","mdwn","mdx","mkd","mkdn","mkdown","ronn","workbook"],codemirror_mode:"markdown",codemirror_mime_type:"text/x-gfm"},{label:"Marko",identifiers:["marko","markojs"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"Mathematica",identifiers:["mathematica","mma","cdf","m","ma","mt","nb","nbp","wl","wlt"],codemirror_mode:"mathematica",codemirror_mime_type:"text/x-mathematica"},{label:"Maven POM",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Max",identifiers:["max","maxmsp","maxpat","maxhelp","maxproj","mxt","pat"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"Metal",identifiers:["metal"],codemirror_mode:"c",codemirror_mime_type:"text/x-c++src"},{label:"Mirah",identifiers:["mirah","druby","duby"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Modelica",identifiers:["modelica","mo"],codemirror_mode:"modelica",codemirror_mime_type:"text/x-modelica"},{label:"NSIS",identifiers:["nsis","nsi","nsh"],codemirror_mode:"nsis",codemirror_mime_type:"text/x-nsis"},{label:"NetLogo",identifiers:["netlogo","nlogo"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"NewLisp",identifiers:["newlisp","nl","lisp","lsp"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Nginx",identifiers:["nginx","nginxconf","vhost"],codemirror_mode:"nginx",codemirror_mime_type:"text/x-nginx-conf"},{label:"Nu",identifiers:["nu","nush"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"NumPy",identifiers:["numpy","numpyw","numsc"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Objective-C",identifiers:["objc","objectivec","m","h"],codemirror_mode:"c",codemirror_mime_type:"text/x-objectivec"},{label:"Objective-C++",identifiers:["mm"],codemirror_mode:"c",codemirror_mime_type:"text/x-objectivec"},{label:"OpenCL",identifiers:["opencl","cl"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"OpenRC runscript",identifiers:["openrc"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Oz",identifiers:["oz"],codemirror_mode:"oz",codemirror_mime_type:"text/x-oz"},{label:"PHP",identifiers:["php","inc","aw","ctp","fcgi","phps","phpt"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"PLSQL",identifiers:["plsql","pls","bdy","ddl","fnc","pck","pkb","pks","plb","prc","spc","sql","tpb","tps","trg","vw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-plsql"},{label:"PLpgSQL",identifiers:["plpgsql","pgsql","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"Pascal",identifiers:["pascal","pas","dfm","dpr","inc","lpr","pp"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Perl",identifiers:["perl","cperl","pl","al","cgi","fcgi","ph","plx","pm","psgi","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Perl 6",identifiers:["nqp","pl","pm","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Pic",identifiers:["pic","chem"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Pod",identifiers:["pod"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"PowerShell",identifiers:["powershell","posh","pwsh"],codemirror_mode:"powershell",codemirror_mime_type:"application/x-powershell"},{label:"Protocol Buffer",identifiers:["protobuf","proto"],codemirror_mode:"protobuf",codemirror_mime_type:"text/x-protobuf"},{label:"Public Key",identifiers:["asc","pub"],codemirror_mode:"asciiArmor",codemirror_mime_type:"application/pgp"},{label:"Puppet",identifiers:["puppet","pp"],codemirror_mode:"puppet",codemirror_mime_type:"text/x-puppet"},{label:"PureScript",identifiers:["purescript","purs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Python",identifiers:["python","rusthon","py","bzl","cgi","fcgi","gyp","gypi","lmi","pyde","pyi","pyp","pyt","pyw","rpy","spec","tac","wsgi","xpy"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"R",identifiers:["r","R","Rscript","splus","rd","rsx"],codemirror_mode:"r",codemirror_mime_type:"text/x-rsrc"},{label:"RAML",identifiers:["raml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"RHTML",identifiers:["rhtml"],codemirror_mode:"html",codemirror_mime_type:"application/x-erb"},{label:"RMarkdown",identifiers:["rmarkdown","rmd"],codemirror_mode:"markdown",codemirror_mime_type:"text/x-gfm"},{label:"Reason",identifiers:["reason","re","rei"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"Roff",identifiers:["roff","groff","man","manpage","mdoc","nroff","troff","l","me","ms","n","nr","rno","tmac"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Roff Manpage",identifiers:["man","mdoc"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Rouge",identifiers:["rouge","rg"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Ruby",identifiers:["ruby","jruby","macruby","rake","rb","rbx","builder","eye","fcgi","gemspec","god","jbuilder","mspec","pluginspec","podspec","rabl","rbuild","rbw","ru","spec","thor","watchr"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Rust",identifiers:["rust","rs"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"SAS",identifiers:["sas"],codemirror_mode:"sas",codemirror_mime_type:"text/x-sas"},{label:"SCSS",identifiers:["scss"],codemirror_mode:"css",codemirror_mime_type:"text/x-scss"},{label:"SPARQL",identifiers:["sparql","rq"],codemirror_mode:"sparql",codemirror_mime_type:"application/sparql-query"},{label:"SQL",identifiers:["sql","cql","ddl","inc","mysql","prc","tab","udf","viw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SQLPL",identifiers:["sqlpl","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SRecode Template",identifiers:["srt"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"SVG",identifiers:["svg"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Sage",identifiers:["sage","sagews"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"SaltStack",identifiers:["saltstack","saltstate","salt","sls"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Sass",identifiers:["sass"],codemirror_mode:"sass",codemirror_mime_type:"text/x-sass"},{label:"Scala",identifiers:["scala","kojo","sbt","sc"],codemirror_mode:"scala",codemirror_mime_type:"text/x-scala"},{label:"Scheme",identifiers:["scheme","scm","sch","sld","sls","sps","ss"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"Shell",identifiers:["shell","sh","bash","zsh","bats","cgi","command","fcgi","ksh","tmux","tool"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"ShellSession",identifiers:["shellsession","console"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Smalltalk",identifiers:["smalltalk","squeak","st","cs"],codemirror_mode:"smalltalk",codemirror_mime_type:"text/x-stsrc"},{label:"Squirrel",identifiers:["squirrel","nut"],codemirror_mode:"squirrel",codemirror_mime_type:"text/x-c++src"},{label:"Svelte",identifiers:["svelte"],codemirror_mode:"html",codemirror_mime_type:"text/html"},{label:"Swift",identifiers:["swift"],codemirror_mode:"swift",codemirror_mime_type:"text/x-swift"},{label:"SystemVerilog",identifiers:["systemverilog","sv","svh","vh"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-systemverilog"},{label:"TOML",identifiers:["toml"],codemirror_mode:"toml",codemirror_mime_type:"text/x-toml"},{label:"TSX",identifiers:["tsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Tcl",identifiers:["tcl","adp","tm"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Tcsh",identifiers:["tcsh","csh"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"TeX",identifiers:["tex","latex","aux","bbx","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Terra",identifiers:["terra","t"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"Textile",identifiers:["textile"],codemirror_mode:"textile",codemirror_mime_type:"text/x-textile"},{label:"Turtle",identifiers:["turtle","ttl"],codemirror_mode:"turtle",codemirror_mime_type:"text/turtle"},{label:"TypeScript",identifiers:["typescript","ts"],codemirror_mode:"javascript",codemirror_mime_type:"application/typescript"},{label:"Unified Parallel C",identifiers:["upc"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"Unity3D Asset",identifiers:["anim","asset","mat","meta","prefab","unity"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Uno",identifiers:["uno"],codemirror_mode:"c",codemirror_mime_type:"text/x-csharp"},{label:"UnrealScript",identifiers:["unrealscript","uc"],codemirror_mode:"c",codemirror_mime_type:"text/x-java"},{label:"V",identifiers:["v","vlang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"VHDL",identifiers:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],codemirror_mode:"vhdl",codemirror_mime_type:"text/x-vhdl"},{label:"Verilog",identifiers:["verilog","v","veo"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-verilog"},{label:"Visual Basic",identifiers:["vbnet","vb","bas","cls","frm","frx","vba","vbhtml","vbs"],codemirror_mode:"vb",codemirror_mime_type:"text/x-vb"},{label:"Volt",identifiers:["volt"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"WebAssembly",identifiers:["webassembly","wast","wasm","wat"],codemirror_mode:"commonLisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Windows Registry Entries",identifiers:["reg"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"X BitMap",identifiers:["xbm"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"X PixMap",identifiers:["xpm","pm"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"XC",identifiers:["xc"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"XML",identifiers:["xml","rss","xsd","wsdl","adml","admx","ant","axml","builds","ccproj","ccxml","clixml","cproject","cscfg","csdef","csl","csproj","ct","depproj","dita","ditamap","ditaval","dotsettings","filters","fsproj","fxml","glade","gml","gmx","grxml","iml","ivy","jelly","jsproj","kml","launch","mdpolicy","mjml","mm","mod","mxml","natvis","ncl","ndproj","nproj","nuspec","odd","osm","pkgproj","pluginspec","proj","props","pt","rdf","resx","sch","scxml","sfproj","shproj","srdf","storyboard","targets","tml","ts","tsx","ui","urdf","ux","vbproj","vcxproj","vsixmanifest","vssettings","vstemplate","vxml","wixproj","workflow","wsf","wxi","wxl","wxs","xacro","xaml","xib","xlf","xliff","xmi","xproj","xspec","xul","zcml"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XML Property List",identifiers:["plist","stTheme","tmCommand","tmLanguage","tmPreferences","tmSnippet","tmTheme"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XPages",identifiers:["xpages"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XProc",identifiers:["xproc","xpl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XQuery",identifiers:["xquery","xq","xql","xqm","xqy"],codemirror_mode:"xQuery",codemirror_mime_type:"application/xquery"},{label:"XS",identifiers:["xs"],codemirror_mode:"c",codemirror_mime_type:"text/x-csrc"},{label:"XSLT",identifiers:["xslt","xsl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"YAML",identifiers:["yaml","yml","mir","reek","rviz","syntax"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"edn",identifiers:["edn"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"wisp",identifiers:["wisp"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"}];function bye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wye(e){for(var t=1;t{var u;const d=f4(),f=(0,c.useMemo)((()=>{var e;const n=null!==(e=t.keys)&&void 0!==e?e:{};return wye(wye({},{code:"code",lang:"lang"}),n)}),[t]),h=(0,c.useMemo)((()=>Boolean(!t.output_code_only)),[t.output_code_only]),[p,m]=(0,c.useState)(null!=o?o:""),g=(0,c.useMemo)((()=>n?null!=o?o:"":p),[p,n,o]),[v,O]=(0,c.useState)(null),[y,b]=(0,c.useState)(!1),w=(0,c.useCallback)((e=>{e.stopPropagation(),b((e=>!e))}),[]),k=(0,c.useCallback)((()=>{b(!1)}),[]),[x,_]=(0,c.useState)(!0),S=(0,c.useCallback)((()=>{_((e=>!e)),b(!1)}),[]),P=(0,c.useCallback)((e=>{m(null!=e?e:""),r(null!=e?e:"")}),[r]),E=(0,c.useCallback)((e=>{var t;h&&P({lang:null!==(t=null==v?void 0:v.label)&&void 0!==t?t:"",code:e}),P(e)}),[P,null==v?void 0:v.label,h]),C=(0,c.useMemo)((()=>v?yme(v.codemirror_mode):null),[v]),T=(0,c.useMemo)((()=>C?[C]:[]),[C]),$=(0,c.useMemo)((()=>"string"==typeof g?g:g[f.code]),[g,f.code]),Q=Wz(),R=(0,c.useMemo)((()=>Boolean(t.allow_language_selection)),[t.allow_language_selection]),A=yye.map((e=>_ye(e.label))),j=(0,c.useCallback)((e=>{const t=yye.find((t=>t.label===e));t&&O(t)}),[]);return(0,c.useEffect)((()=>{let e;e="string"!=typeof g?g[f.lang]:g,We(e)||j(e)}),[t.default_language,j,g,f.lang,h]),c.createElement("div",{"data-testid":`code-field-${e}`,className:qD(xye.root,l&&xye.disabled,i&&xye.error,a&&xye["for-single-list"],!1!==t.required&&xye.required,x&&xye.expanded)},c.createElement("div",{"data-testid":"field-wrapper",className:xye["field-wrapper"]},c.createElement("button",{"data-testid":"list-expand-button",className:xye["expand-button"],onClick:S},c.createElement(jfe,{key:"label",hasErrors:i,className:xye.label,cursor:"pointer",variant:"inline",disabled:l},e.trim()),x&&R?c.createElement(YOe,{onClick:w,disabled:l}):null,c.createElement(EY,{className:xye["expand-button-icon"]})),x&&R&&y?c.createElement(Oye,{uniqueId:Q,languages:A,language:_ye(null!==(u=null==v?void 0:v.label)&&void 0!==u?u:""),allowLanguageSelection:R,onChangeLanguage:j,hideSettings:k}):null,c.createElement(Zfe,{in:x,appear:!1},c.createElement("div",null,c.createElement(qOe,{value:$,height:"auto",minHeight:"120px",width:"100%",editable:!0,onChange:E,extensions:T,theme:d.codemirror.theme,readOnly:l}))),t.hint?c.createElement(Rfe,{key:"hint",hasErrors:i,cursor:"pointer",disabled:l},t.hint):null,c.createElement(coe,{errors:s,className:xye["error-message"]})))},Pye=UD("WidgetCodePreview",["root"]),Eye=({value:e,field:t})=>c.createElement("pre",{className:Pye.root},c.createElement("code",null,function(e,t){return fo()(e)?e:e&&null!==(n=e[null!==(r=null===(i=t.keys)||void 0===i?void 0:i.code)&&void 0!==r?r:"code"])&&void 0!==n?n:"";var n,r,i}(e,t))),Cye={properties:{default:{oneOf:[{type:"string"},{type:"object"}]},default_language:{type:"string"},allow_language_selection:{type:"boolean"},keys:{type:"object",properties:{code:{type:"string"},lang:{type:"string"}}},output_code_only:{type:"boolean"},code_mirror_config:{type:"object"}}},Tye=()=>({name:"code",controlComponent:Sye,previewComponent:Eye,options:{schema:Cye,getValidValue:(e,t)=>e&&"string"!=typeof e?e[t.keys?t.keys.code:"code"]:e,getDefaultValue:(e,t)=>{var n,r,i,o,a,s,l;if(t.output_code_only)return String(e);const u=null!==(n=null===(r=t.keys)||void 0===r?void 0:r.lang)&&void 0!==n?n:"lang",c=null!==(i=null===(o=t.keys)||void 0===o?void 0:o.code)&&void 0!==i?i:"code";var d;return"string"==typeof e?{[u]:null!==(d=t.default_language)&&void 0!==d?d:"",[c]:e}:{[u]:null!==(a=null!==(s=t.default_language)&&void 0!==s?s:null==e?void 0:e[u])&&void 0!==a?a:"",[c]:null!==(l=null==e?void 0:e[c])&&void 0!==l?l:""}}}});var $ye=__webpack_require__(37980),Qye={},Rye=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(Qye[i])return Qye[i];var o=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,r);return Qye[i]=o,o},Aye=Object.assign||function(e){for(var t=1;ta?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f;if(r!==(f=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},zye(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Iye(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,$ye.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:Mye({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return c.createElement("div",{style:n.alpha},c.createElement("div",{style:n.checkboard},c.createElement(Dye,{renderers:this.props.renderers})),c.createElement("div",{style:n.gradient}),c.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.createElement("div",{style:n.pointer},this.props.pointer?c.createElement(this.props.pointer,this.props):c.createElement("div",{style:n.slider}))))}}]),t}(c.PureComponent||c.Component);const Nye=Wye;var Lye=function(){function e(e,t){for(var n=0;n-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+Uye++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Lye(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,$ye.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return c.createElement("div",{style:t.wrap},c.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?c.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(c.PureComponent||c.Component);const qye=Xye;var Bye=function(){function e(e,t){for(var n=0;no?0:360*(-100*u/o+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d;if(d=l<0?0:l>i?359:100*l/i*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},Vye(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Bye(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,$ye.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return c.createElement("div",{style:r.hue},c.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),c.createElement("div",{style:r.pointer},this.props.pointer?c.createElement(this.props.pointer,this.props):c.createElement("div",{style:r.slider}))))}}]),t}(c.PureComponent||c.Component);const Zye=Yye;var Gye=__webpack_require__(97641),Hye=__webpack_require__.n(Gye);const Kye=function(e,t){return e===t||e!=e&&t!=t},Jye=function(e,t){for(var n=e.length;n--;)if(Kye(e[n][0],t))return n;return-1};var ebe=Array.prototype.splice;function tbe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},tbe.prototype.set=function(e,t){var n=this.__data__,r=Jye(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const nbe=tbe,rbe="object"==typeof global&&global&&global.Object===Object&&global;var ibe="object"==typeof self&&self&&self.Object===Object&&self;const obe=rbe||ibe||Function("return this")(),abe=obe.Symbol;var sbe=Object.prototype,lbe=sbe.hasOwnProperty,ube=sbe.toString,cbe=abe?abe.toStringTag:void 0;var dbe=Object.prototype.toString;var fbe=abe?abe.toStringTag:void 0;const hbe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":fbe&&fbe in Object(e)?function(e){var t=lbe.call(e,cbe),n=e[cbe];try{e[cbe]=void 0;var r=!0}catch(e){}var i=ube.call(e);return r&&(t?e[cbe]=n:delete e[cbe]),i}(e):function(e){return dbe.call(e)}(e)},pbe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},mbe=function(e){if(!pbe(e))return!1;var t=hbe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},gbe=obe["__core-js_shared__"];var vbe,Obe=(vbe=/[^.]+$/.exec(gbe&&gbe.keys&&gbe.keys.IE_PROTO||""))?"Symbol(src)_1."+vbe:"";var ybe=Function.prototype.toString;const bbe=function(e){if(null!=e){try{return ybe.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var wbe=/^\[object .+?Constructor\]$/,kbe=Function.prototype,xbe=Object.prototype,_be=kbe.toString,Sbe=xbe.hasOwnProperty,Pbe=RegExp("^"+_be.call(Sbe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ebe=function(e){return!(!pbe(e)||function(e){return!!Obe&&Obe in e}(e))&&(mbe(e)?Pbe:wbe).test(bbe(e))},Cbe=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ebe(n)?n:void 0},Tbe=Cbe(obe,"Map"),$be=Cbe(Object,"create");var Qbe=Object.prototype.hasOwnProperty;var Rbe=Object.prototype.hasOwnProperty;function Abe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991},hwe=function(e){return null!=e&&fwe(e.length)&&!mbe(e)};var pwe="object"==typeof exports&&exports&&!exports.nodeType&&exports,mwe=pwe&&"object"==typeof module&&module&&!module.nodeType&&module,gwe=mwe&&mwe.exports===pwe?obe.Buffer:void 0;const vwe=(gwe?gwe.isBuffer:void 0)||function(){return!1};var Owe=Function.prototype,ywe=Object.prototype,bwe=Owe.toString,wwe=ywe.hasOwnProperty,kwe=bwe.call(Object);var xwe={};xwe["[object Float32Array]"]=xwe["[object Float64Array]"]=xwe["[object Int8Array]"]=xwe["[object Int16Array]"]=xwe["[object Int32Array]"]=xwe["[object Uint8Array]"]=xwe["[object Uint8ClampedArray]"]=xwe["[object Uint16Array]"]=xwe["[object Uint32Array]"]=!0,xwe["[object Arguments]"]=xwe["[object Array]"]=xwe["[object ArrayBuffer]"]=xwe["[object Boolean]"]=xwe["[object DataView]"]=xwe["[object Date]"]=xwe["[object Error]"]=xwe["[object Function]"]=xwe["[object Map]"]=xwe["[object Number]"]=xwe["[object Object]"]=xwe["[object RegExp]"]=xwe["[object Set]"]=xwe["[object String]"]=xwe["[object WeakMap]"]=!1;var _we="object"==typeof exports&&exports&&!exports.nodeType&&exports,Swe=_we&&"object"==typeof module&&module&&!module.nodeType&&module,Pwe=Swe&&Swe.exports===_we&&rbe.process,Ewe=function(){try{return Swe&&Swe.require&&Swe.require("util").types||Pwe&&Pwe.binding&&Pwe.binding("util")}catch(e){}}(),Cwe=Ewe&&Ewe.isTypedArray;const Twe=Cwe?function(e){return function(t){return e(t)}}(Cwe):function(e){return owe(e)&&fwe(e.length)&&!!xwe[hbe(e)]},$we=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var Qwe=Object.prototype.hasOwnProperty;const Rwe=function(e,t,n){var r=e[t];Qwe.call(e,t)&&Kye(r,n)&&(void 0!==n||t in e)||Fbe(e,t,n)};var Awe=/^(?:0|[1-9]\d*)$/;const jwe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Awe.test(e))&&e>-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Bwe),Zwe=function(e,t){return Ywe(function(e,t,n){return t=Xwe(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Xwe(r.length-t,0),a=Array(o);++i1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Gwe.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!pbe(n))return!1;var r=typeof t;return!!("number"==r?hwe(n)&&jwe(t,n.length):"string"==r&&t in n)&&Kye(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n=t||n<0||d&&e-u>=o}function m(){var e=tke();if(p(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?fke(n,o-(e-u)):n}(e))}function g(e){return s=void 0,f&&r?h(e):(r=i=void 0,a)}function v(){var e=tke(),n=p(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(m,t),c?h(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=cke(t)||0,pbe(n)&&(c=!!n.leading,o=(d="maxWait"in n)?dke(cke(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(tke())},v};var pke=function(){function e(e,t){for(var n=0;ni&&(l=i),u<0?u=0:u>o&&(u=o);var c=l/i,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return pbe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),hke(e,t,{leading:r,maxWait:t,trailing:i})}((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),pke(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,o=t.pointer,a=t.circle,s=(0,$ye.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:o,circle:a}},{custom:!!this.props.style});return c.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},c.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),c.createElement("div",{style:s.white,className:"saturation-white"},c.createElement("div",{style:s.black,className:"saturation-black"}),c.createElement("div",{style:s.pointer},this.props.pointer?c.createElement(this.props.pointer,this.props):c.createElement("div",{style:s.circle}))))}}]),t}(c.PureComponent||c.Component);const gke=mke,vke=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Bke(e,360),t=Bke(t,100),n=Bke(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=qke(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Eke(e,t,n){e=Bke(e,255),t=Bke(t,255),n=Bke(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Pke(r));return o}function Fke(e,t){t=t||6;for(var n=Pke(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(Pke({h:r,s:i,v:o})),o=(o+s)%1;return a}Pke.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=qke(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Cke(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Cke(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=Eke(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Eke(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return Tke(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[Zke(Math.round(e).toString(16)),Zke(Math.round(t).toString(16)),Zke(Math.round(n).toString(16)),Zke(Hke(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Bke(this._r,255))+"%",g:Math.round(100*Bke(this._g,255))+"%",b:Math.round(100*Bke(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Bke(this._r,255))+"%, "+Math.round(100*Bke(this._g,255))+"%, "+Math.round(100*Bke(this._b,255))+"%)":"rgba("+Math.round(100*Bke(this._r,255))+"%, "+Math.round(100*Bke(this._g,255))+"%, "+Math.round(100*Bke(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Xke[Tke(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+$ke(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=Pke(e);n="#"+$ke(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Pke(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(jke,arguments)},brighten:function(){return this._applyModification(Dke,arguments)},darken:function(){return this._applyModification(Mke,arguments)},desaturate:function(){return this._applyModification(Qke,arguments)},saturate:function(){return this._applyModification(Rke,arguments)},greyscale:function(){return this._applyModification(Ake,arguments)},spin:function(){return this._applyModification(Ike,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Lke,arguments)},complement:function(){return this._applyCombination(zke,arguments)},monochromatic:function(){return this._applyCombination(Fke,arguments)},splitcomplement:function(){return this._applyCombination(Nke,arguments)},triad:function(){return this._applyCombination(Wke,[3])},tetrad:function(){return this._applyCombination(Wke,[4])}},Pke.fromRatio=function(e,t){if("object"==xke(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Gke(e[r]));e=n}return Pke(e,t)},Pke.equals=function(e,t){return!(!e||!t)&&Pke(e).toRgbString()==Pke(t).toRgbString()},Pke.random=function(){return Pke.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Pke.mix=function(e,t,n){n=0===n?0:n||50;var r=Pke(e).toRgb(),i=Pke(t).toRgb(),o=n/100;return Pke({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},Pke.readability=function(e,t){var n=Pke(e),r=Pke(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Pke.isReadable=function(e,t,n){var r,i,o=Pke.readability(e,t);switch(i=!1,r=function(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},Pke.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;ul&&(l=r,s=Pke(t[u]));return Pke.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,Pke.mostReadable(e,["#fff","#000"],n))};var Uke=Pke.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Xke=Pke.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(Uke);function qke(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bke(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Vke(e){return Math.min(1,Math.max(0,e))}function Yke(e){return parseInt(e,16)}function Zke(e){return 1==e.length?"0"+e:""+e}function Gke(e){return e<=1&&(e=100*e+"%"),e}function Hke(e){return Math.round(255*parseFloat(e)).toString(16)}function Kke(e){return Yke(e)/255}var Jke,exe,txe,nxe=(exe="[\\s|\\(]+("+(Jke="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Jke+")[,|\\s]+("+Jke+")\\s*\\)?",txe="[\\s|\\(]+("+Jke+")[,|\\s]+("+Jke+")[,|\\s]+("+Jke+")[,|\\s]+("+Jke+")\\s*\\)?",{CSS_UNIT:new RegExp(Jke),rgb:new RegExp("rgb"+exe),rgba:new RegExp("rgba"+txe),hsl:new RegExp("hsl"+exe),hsla:new RegExp("hsla"+txe),hsv:new RegExp("hsv"+exe),hsva:new RegExp("hsva"+txe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function rxe(e){return!!nxe.CSS_UNIT.exec(e)}var ixe=function(e){var t=0,n=0;return kke(["r","g","b","a","h","s","l","v"],(function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1)})),t===n&&e},oxe=function(e,t){var n=e.hex?Pke(e.hex):Pke(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#"+a,rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}},axe=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Pke(e).isValid()},sxe=function(e){if(!e)return"#fff";var t=oxe(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},lxe=function(e,t){return Pke(t+" ("+e.replace("°","")+")")._ok},uxe=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var i=arguments.length,o=Array(i),a=0;as))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=2&n?new wxe:void 0;for(o.set(e,t),o.set(t,e);++d1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(pPe(e.s)?n.props.hsl.s:e.s),l:Number(pPe(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),gPe(t,[{key:"render",value:function(){var e=this,t=(0,$ye.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=c.createElement("div",{style:t.fields,className:"flexbox-fix"},c.createElement("div",{style:t.field},c.createElement(qye,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=c.createElement("div",{style:t.fields,className:"flexbox-fix"},c.createElement("div",{style:t.field},c.createElement(qye,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),c.createElement("div",{style:t.field},c.createElement(qye,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),c.createElement("div",{style:t.field},c.createElement(qye,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),c.createElement("div",{style:t.alpha},c.createElement(qye,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=c.createElement("div",{style:t.fields,className:"flexbox-fix"},c.createElement("div",{style:t.field},c.createElement(qye,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),c.createElement("div",{style:t.field},c.createElement(qye,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),c.createElement("div",{style:t.field},c.createElement(qye,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),c.createElement("div",{style:t.alpha},c.createElement(qye,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),c.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,c.createElement("div",{style:t.toggle},c.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},c.createElement(mPe.Z,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(c.Component);vPe.defaultProps={view:"hex"};const OPe=vPe,yPe=function(){var e=(0,$ye.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return c.createElement("div",{style:e.picker})},bPe=function(){var e=(0,$ye.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return c.createElement("div",{style:e.picker})};var wPe=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,o=e.hsl,a=e.hsv,s=e.hex,l=e.renderers,u=e.styles,d=void 0===u?{}:u,f=e.className,h=void 0===f?"":f,p=e.defaultView,m=(0,$ye.ZP)(Kwe({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},d),{disableAlpha:r});return c.createElement("div",{style:m.picker,className:"chrome-picker "+h},c.createElement("div",{style:m.saturation},c.createElement(gke,{style:m.Saturation,hsl:o,hsv:a,pointer:bPe,onChange:n})),c.createElement("div",{style:m.body},c.createElement("div",{style:m.controls,className:"flexbox-fix"},c.createElement("div",{style:m.color},c.createElement("div",{style:m.swatch},c.createElement("div",{style:m.active}),c.createElement(Dye,{renderers:l}))),c.createElement("div",{style:m.toggles},c.createElement("div",{style:m.hue},c.createElement(Zye,{style:m.Hue,hsl:o,pointer:yPe,onChange:n})),c.createElement("div",{style:m.alpha},c.createElement(Nye,{style:m.Alpha,rgb:i,hsl:o,pointer:yPe,renderers:l,onChange:n})))),c.createElement(OPe,{rgb:i,hsl:o,hex:s,view:p,onChange:n,disableAlpha:r})))};wPe.propTypes={width:Hye().oneOfType([Hye().string,Hye().number]),disableAlpha:Hye().bool,styles:Hye().object,defaultView:Hye().oneOf(["hex","rgb","hsl"])},wPe.defaultProps={width:225,disableAlpha:!1,styles:{}};const kPe=dxe(wPe),xPe=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,o=e.active,a=(0,$ye.ZP)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:sxe(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return c.createElement(gxe,{style:a.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},c.createElement("div",{style:a.dot}))},_Pe=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,$ye.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return c.createElement("div",{style:i.fields,className:"flexbox-fix"},c.createElement("div",{style:i.active}),c.createElement(qye,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:o}),c.createElement(qye,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),c.createElement(qye,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),c.createElement(qye,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))};var SPe=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,o=e.rgb,a=e.styles,s=void 0===a?{}:a,l=e.className,u=void 0===l?"":l,d=(0,$ye.ZP)(Kwe({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},s)),f=function(e,n){e.hex?axe(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return c.createElement(eke,{style:d.Compact,styles:s},c.createElement("div",{style:d.compact,className:"compact-picker "+u},c.createElement("div",null,E_e(r,(function(e){return c.createElement(xPe,{key:e,color:e,active:e.toLowerCase()===i,onClick:f,onSwatchHover:n})})),c.createElement("div",{style:d.clear})),c.createElement(_Pe,{hex:i,rgb:o,onChange:f})))};SPe.propTypes={colors:Hye().arrayOf(Hye().string),styles:Hye().object},SPe.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},dxe(SPe);const PPe=(0,$ye.tz)((function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},a=(0,$ye.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:t});return c.createElement("div",{style:a.swatch},c.createElement(gxe,{color:n,onClick:r,onHover:i,focusStyle:o}))}));var EPe=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,o=e.triangle,a=e.styles,s=void 0===a?{}:a,l=e.className,u=void 0===l?"":l,d=(0,$ye.ZP)(Kwe({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},s),{"hide-triangle":"hide"===o,"top-left-triangle":"top-left"===o,"top-right-triangle":"top-right"===o,"bottom-left-triangle":"bottom-left"===o,"bottom-right-triangle":"bottom-right"===o}),f=function(e,t){return r({hex:e,source:"hex"},t)};return c.createElement("div",{style:d.card,className:"github-picker "+u},c.createElement("div",{style:d.triangleShadow}),c.createElement("div",{style:d.triangle}),E_e(n,(function(e){return c.createElement(PPe,{color:e,key:e,onClick:f,onSwatchHover:i})})))};EPe.propTypes={width:Hye().oneOfType([Hye().string,Hye().number]),colors:Hye().arrayOf(Hye().string),triangle:Hye().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:Hye().object},EPe.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},dxe(EPe);var CPe=Object.assign||function(e){for(var t=1;t.5});return c.createElement("div",{style:n.picker})},RPe=function(){var e=(0,$ye.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return c.createElement("div",{style:e.pointer},c.createElement("div",{style:e.left},c.createElement("div",{style:e.leftInside})),c.createElement("div",{style:e.right},c.createElement("div",{style:e.rightInside})))},APe=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,o=(0,$ye.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return c.createElement("div",{style:o.button,onClick:t},n||r)},jPe=function(e){var t=e.rgb,n=e.currentColor,r=(0,$ye.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return c.createElement("div",null,c.createElement("div",{style:r.label},"new"),c.createElement("div",{style:r.swatches},c.createElement("div",{style:r.new}),c.createElement("div",{style:r.current})),c.createElement("div",{style:r.label},"current"))};var DPe=function(){function e(e,t){for(var n=0;n100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return c.createElement("div",{style:a.fields,className:"flexbox-fix"},c.createElement("div",{style:a.double},c.createElement(qye,{style:{input:a.input,label:a.label},label:"hex",value:i.replace("#",""),onChange:s})),c.createElement("div",{style:a.single},c.createElement(qye,{style:{input:a.input,label:a.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:a.single},c.createElement(qye,{style:{input:a.input,label:a.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:a.single},c.createElement(qye,{style:{input:a.input,label:a.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:a.alpha},c.createElement(qye,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))};var zPe=Object.assign||function(e){for(var t=1;t{var u,d;const f=(0,c.useRef)(null),h=(0,c.useRef)(null),[p,m]=(0,c.useState)(!1),[g,v]=(0,c.useState)(null!=r?r:""),O=(0,c.useMemo)((()=>t?null!=r?r:"":g),[g,t,r]),y=(0,c.useCallback)((e=>{e.stopPropagation(),m((e=>!e))}),[]),b=(0,c.useCallback)((e=>{e.stopPropagation(),v(""),n("")}),[n]),w=(0,c.useCallback)((()=>{m(!1)}),[]),k=(0,c.useCallback)((e=>{var t,r;const i=(null!==(t=null===(r=e.rgb)||void 0===r?void 0:r.a)&&void 0!==t?t:1)<1?`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`:e.hex;v(i),n(i)}),[n]),x=(0,c.useCallback)((e=>{v(e.target.value),n(e.target.value)}),[n]),_=null!==(u=e.allow_input)&&void 0!==u&&u,S=!_&&O;return c.createElement(Mfe,{inputRef:_?h:f,label:a,errors:i,hint:e.hint,forSingleList:s,cursor:_?"text":"pointer",disabled:l,disableClick:p,rootClassName:qD(oEe.root,l&&oEe.disabled,!1!==e.required&&oEe.required,o&&oEe.error,s&&oEe["for-single-list"],_&&oEe["allow-input"])},c.createElement("div",{className:oEe.content},c.createElement("div",{className:oEe["color-swatch-wrapper"]},c.createElement("div",{ref:f,key:"color-swatch","data-testid":"color-swatch",onClick:l?void 0:y,style:{background:iEe()(O)?O:"#fff",color:iEe()(O)?"rgba(255, 255, 255, 0)":"rgb(150, 150, 150)"},className:oEe["color-swatch"]},"?")),p&&c.createElement("div",{key:"color-picker-wrapper",className:oEe["color-picker-wrapper"]},c.createElement("div",{key:"click-outside",onClick:w,className:oEe["color-picker-backdrop"]}),c.createElement(kPe,{key:"color-picker",color:O,onChange:k,disableAlpha:!(null!==(d=e.enable_alpha)&&void 0!==d&&d),className:oEe["color-picker"]})),c.createElement(Y0,{type:"text",inputRef:h,key:"color-picker-input",value:O,onChange:x,onClick:_||l?void 0:y,disabled:l,readonly:!_,cursor:_?"text":"pointer",rootClassName:oEe.input}),S?c.createElement(FN,{icon:yG,variant:"text",onClick:b,disabled:l,rootClassName:oEe["clear-button"],"aria-label":"clear"}):null))},sEe=UD("WidgetColorPreview",["root"]),lEe=({value:e})=>c.createElement("div",{className:sEe.root},e),uEe={properties:{default:{type:"string"},allow_input:{type:"boolean"},enable_alpha:{type:"boolean"}}},cEe=({value:e,t})=>"string"==typeof e&&!iEe()(e)&&(/^[a-fA-F0-9]{3}$|^[a-fA-F0-9]{4}$|^[a-fA-F0-9]{6}$/g.test(e)?{type:FE.CUSTOM,message:t("editor.editorControlPane.widget.invalidHexCode")}:{type:FE.CUSTOM,message:t("editor.editorControlPane.widget.invalidColor",{color:e})}),dEe=()=>({name:"color",controlComponent:aEe,previewComponent:lEe,options:{schema:uEe,validator:cEe}});function fEe(e,t){return Jo(e,+Go(e)+t)}function hEe(e,t){return fEe(e,t*Yo)}function pEe(e,t){const n=Go(e);if(isNaN(t))return Jo(e,NaN);if(!t)return n;const r=n.getDate(),i=Jo(e,n.getTime());return i.setMonth(n.getMonth()+t+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function mEe(e){const t=Go(e);return t.setHours(23,59,59,999),t}function gEe(e){const t=Go(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function vEe(e){const t=Go(e),n=t.getFullYear(),r=t.getMonth(),i=Jo(e,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function OEe(e,t){const n=Go(e),r=Go(t);return n.getTime()>r.getTime()}function yEe(e,t){return+Go(e)<+Go(t)}function bEe(e){const t=Go(e);return t.setMinutes(0,0,0),t}function wEe(){return wEe=Object.assign?Object.assign.bind():function(e){for(var t=1;tvoid 0===e?new Date:null===e?null:new Date(e),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=e=>e,this.toJsDate=e=>e,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,this.longFormatters[t])(e,this.locale.formatLong):e})).join(""),this.formatNumber=e=>e,this.getDayOfWeek=e=>e.getDay()+1;const{locale:t,formats:n,longFormatters:r,lib:i}=e;this.locale=t,this.formats=wEe({},xEe,n),this.longFormatters=r,this.lib=i||"date-fns"}}class SEe extends _Ee{constructor({locale:e,formats:t}={}){super({locale:e??Uo,formats:t,longFormatters:ga}),this.parse=(e,t)=>""===e?null:ls(e,t,new Date,{locale:this.locale}),this.isValid=e=>null!=e&&xa(e),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>Ta(e,t,{locale:this.locale}),this.isEqual=(e,t)=>{return null===e&&null===t||null!==e&&null!==t&&(n=t,+Go(e)==+Go(n));var n},this.isSameYear=(e,t)=>function(e,t){const n=Go(e),r=Go(t);return n.getFullYear()===r.getFullYear()}(e,t),this.isSameMonth=(e,t)=>function(e,t){const n=Go(e),r=Go(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t),this.isSameDay=(e,t)=>{return n=t,+Ho(e)==+Ho(n);var n},this.isSameHour=(e,t)=>{return n=t,+bEe(e)==+bEe(n);var n},this.isAfter=(e,t)=>OEe(e,t),this.isAfterYear=(e,t)=>OEe(e,gEe(t)),this.isAfterDay=(e,t)=>OEe(e,mEe(t)),this.isBefore=(e,t)=>yEe(e,t),this.isBeforeYear=(e,t)=>yEe(e,this.startOfYear(t)),this.isBeforeDay=(e,t)=>yEe(e,this.startOfDay(t)),this.isWithinRange=(e,[t,n])=>function(e,t){const n=+Go(e),[r,i]=[+Go(t.start),+Go(t.end)].sort(((e,t)=>e-t));return n>=r&&n<=i}(e,{start:t,end:n}),this.startOfYear=e=>ea(e),this.startOfMonth=e=>function(e){const t=Go(e);return t.setDate(1),t.setHours(0,0,0,0),t}(e),this.startOfWeek=e=>na(e,{locale:this.locale}),this.startOfDay=e=>Ho(e),this.endOfYear=e=>gEe(e),this.endOfMonth=e=>function(e){const t=Go(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(e),this.endOfWeek=e=>function(e,t){const n=qo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Go(e),o=i.getDay(),a=6+(omEe(e),this.addYears=(e,t)=>function(e,t){return pEe(e,12*t)}(e,t),this.addMonths=(e,t)=>pEe(e,t),this.addWeeks=(e,t)=>function(e,t){return Ka(e,7*t)}(e,t),this.addDays=(e,t)=>Ka(e,t),this.addHours=(e,t)=>function(e,t){return fEe(e,t*Zo)}(e,t),this.addMinutes=(e,t)=>hEe(e,t),this.addSeconds=(e,t)=>function(e,t){return fEe(e,1e3*t)}(e,t),this.getYear=e=>Go(e).getFullYear(),this.getMonth=e=>Go(e).getMonth(),this.getDate=e=>Go(e).getDate(),this.getHours=e=>Go(e).getHours(),this.getMinutes=e=>Go(e).getMinutes(),this.getSeconds=e=>Go(e).getSeconds(),this.getMilliseconds=e=>Go(e).getMilliseconds(),this.setYear=(e,t)=>function(e,t){const n=Go(e);return isNaN(+n)?Jo(e,NaN):(n.setFullYear(t),n)}(e,t),this.setMonth=(e,t)=>function(e,t){const n=Go(e),r=n.getFullYear(),i=n.getDate(),o=Jo(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const a=vEe(o);return n.setMonth(t,Math.min(i,a)),n}(e,t),this.setDate=(e,t)=>function(e,t){const n=Go(e);return n.setDate(t),n}(e,t),this.setHours=(e,t)=>function(e,t){const n=Go(e);return n.setHours(t),n}(e,t),this.setMinutes=(e,t)=>function(e,t){const n=Go(e);return n.setMinutes(t),n}(e,t),this.setSeconds=(e,t)=>function(e,t){const n=Go(e);return n.setSeconds(t),n}(e,t),this.setMilliseconds=(e,t)=>function(e,t){const n=Go(e);return n.setMilliseconds(t),n}(e,t),this.getDaysInMonth=e=>vEe(e),this.getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,i=t;const o=[];for(;this.isBefore(i,n);){const e=Math.floor(r/7);o[e]=o[e]||[],o[e].push(i),i=this.addDays(i,1),r+=1}return o},this.getWeekNumber=e=>sa(e,{locale:this.locale}),this.getYearRange=([e,t])=>{const n=this.startOfYear(e),r=this.endOfYear(t),i=[];let o=n;for(;this.isBefore(o,r);)i.push(o),o=this.addYears(o,1);return i}}}function PEe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function EEe({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let i=Jq(n);return r&&(i=i[r]||i),A2({theme:i,name:t,props:e})}({props:e,name:t,defaultTheme:wq,themeId:kq})}const CEe=Hye().oneOfType([Hye().func,Hye().object]),TEe=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),$Ee=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(null!=e)o=e;else if(i.includes(t))o=t;else{if(!(i.length>0))throw new Error("MUI X: The `views` prop must contain at least one view.");o=i[0]}return{views:i,openTo:o}},QEe=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},REe=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=QEe(a,a.date(void 0,s),e);n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,i)&&(u=i,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,i)&&(c=null),u){if(!o(u))return u;u=a.addDays(u,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},AEe=(e,t,n)=>null!=t&&e.isValid(t)?t:n,jEe=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},DEe=(e,t,n)=>"date"===n?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),MEe=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},IEe=["year","month","day"],zEe=e=>IEe.includes(e),WEe=(e,{format:t,views:n},r)=>{if(null!=t)return t;const i=e.formats;return TEe(n,["year"])?i.year:TEe(n,["month"])?i.month:TEe(n,["day"])?i.dayOfMonth:TEe(n,["month","year"])?`${i.month} ${i.year}`:TEe(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},NEe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))},LEe=["hours","minutes","seconds"],FEe=e=>LEe.includes(e),UEe=e=>LEe.includes(e)||"meridiem"===e,XEe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,qEe=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?"am"===t?e-12:e+12:e,BEe=(e,t,n,r)=>{const i=qEe(r.getHours(e),t,n);return r.setHours(e,i)},VEe=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),YEe=(e,t)=>(n,r)=>e?t.isAfter(n,r):VEe(n,t)>VEe(r,t),ZEe=(e,{format:t,views:n,ampm:r})=>{if(null!=t)return t;const i=e.formats;return TEe(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:TEe(n,["minutes"])?i.minutes:TEe(n,["seconds"])?i.seconds:TEe(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:TEe(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},GEe={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},HEe=(e,t,n)=>{if(t===GEe.year)return e.startOfYear(n);if(t===GEe.month)return e.startOfMonth(n);if(t===GEe.day)return e.startOfDay(n);let r=n;return t{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},JEe=(e,t)=>{const n=[],r=e.date(void 0,"default"),i=e.startOfWeek(r),o=e.endOfWeek(r);let a=i;for(;e.isBefore(a,o);)n.push(a),a=e.addDays(a,1);return n.map((n=>e.formatByString(n,t)))},eCe=(e,t,n,r)=>{switch(n){case"month":return jEe(e,e.date(void 0,t)).map((t=>e.formatByString(t,r)));case"weekDay":return JEe(e,r);case"meridiem":{const n=e.date(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},tCe=["0","1","2","3","4","5","6","7","8","9"],nCe=(e,t)=>{if("0"===t[0])return e;const n=[];let r="";for(let i=0;i-1&&(n.push(o.toString()),r="")}return n.join("")},rCe=(e,t)=>"0"===t[0]?e:e.split("").map((e=>t[Number(e)])).join(""),iCe=(e,t)=>{const n=nCe(e,t);return" "!==n&&!Number.isNaN(Number(n))},oCe=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if("day"===i.type&&"digit-with-letter"===i.contentType){const r=e.setDate(n.longestMonth,t);return e.formatByString(r,i.format)}let o=t.toString();return i.hasLeadingZerosInInput&&(o=oCe(o,i.maxLength)),rCe(o,r)},sCe=(e,t,n)=>{let r=e.value||e.placeholder;const i="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(nCe(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!i&&1===r.length&&(r=`${r}‎`),"input-rtl"===t&&(r=`⁨${r}⁩`),r},lCe=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),uCe=(e,t)=>4===e.formatByString(e.date(void 0,"system"),t).length,cCe=(e,t,n,r)=>{if("digit"!==t)return!1;const i=e.date(void 0,"default");switch(n){case"year":return uCe(e,r)?"0001"===e.formatByString(e.setYear(i,1),r):"01"===e.formatByString(e.setYear(i,2001),r);case"month":return e.formatByString(e.startOfYear(i),r).length>1;case"day":return e.formatByString(e.startOfMonth(i),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),r).length>1;case"hours":return e.formatByString(e.setHours(i,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),r).length>1;default:throw new Error("Invalid section type")}},dCe={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},fCe=(e,t,n,r,i)=>[...n].sort(((e,t)=>dCe[e.type]-dCe[t.type])).reduce(((n,r)=>!i||r.modified?((e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const r=JEe(e,t.format),i=e.formatByString(n,t.format),o=r.indexOf(i),a=r.indexOf(t.value)-o;return e.addDays(n,a)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const t=e.getHours(n)<12,i=e.getHours(r);return t&&i>=12?e.addHours(r,-12):!t&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}})(e,r,t,n):n),r),hCe=(e,t)=>{if(null==e)return null;if("all"===e)return"all";if("string"==typeof e){const n=t.findIndex((t=>t.type===e));return-1===n?null:n}return e},pCe=(e,t)=>{if(e.value)switch(e.type){case"month":{if("digit"===e.contentType)return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return"digit"===e.contentType?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;default:return}},mCe=(e,t)=>{if(e.value)switch(e.type){case"weekDay":if("letter"===e.contentType)return;return Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return"digit-with-letter"===e.contentType?parseInt(e.value,10):Number(e.value);case"month":{if("digit"===e.contentType)return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return"letter"!==e.contentType?Number(e.value):void 0}},gCe=["value","referenceDate"],vCe={emptyValue:null,getTodayValue:DEe,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=PEe(e,gCe);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(({props:e,utils:t,granularity:n,timezone:r,getTodayDate:i})=>{let o=i?i():HEe(t,n,DEe(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,o)&&(o=HEe(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,o)&&(o=HEe(t,n,e.maxDate));const a=YEe(e.disableIgnoringDatePartForTimeValidation??!1,t);return null!=e.minTime&&a(e.minTime,o)&&(o=HEe(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:QEe(t,o,e.minTime))),null!=e.maxTime&&a(o,e.maxTime)&&(o=HEe(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:QEe(t,o,e.maxTime))),o})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},OCe={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:e=>e.map((e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`)).join(""),getV6InputValueFromSections:(e,t,n)=>{const r=e.map((e=>{const r=sCe(e,n?"input-rtl":"input-ltr",t);return`${e.startSeparator}${r}${e.endSeparator}`})).join("");return n?`⁦${r}⁩`:r},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},yCe=["localeText"],bCe=c.createContext(null),wCe=function(e){const{localeText:t}=e,n=PEe(e,yCe),{utils:r,localeText:i}=c.useContext(bCe)??{utils:void 0,localeText:void 0},o=EEe({props:n,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:s,dateFormats:l,dateLibInstance:u,adapterLocale:d,localeText:f}=o,h=c.useMemo((()=>wEe({},f,i,t)),[f,i,t]),p=c.useMemo((()=>{if(!s)return r||null;const e=new s({locale:d,formats:l,instance:u});if(!e.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[s,d,l,u,r]),m=c.useMemo((()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null),[p]),g=c.useMemo((()=>({utils:p,defaultDates:m,localeText:h})),[m,p,h]);return(0,lM.jsx)(bCe.Provider,{value:g,children:a})},kCe=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:i}=e;return e=>{const o=null!==e&&t.isValid(e)?t.format(e,n):null;return(i??r)(e,t,o)}},xCe={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${r||null!==t&&n.isValid(t)?`Selected time is ${r??n.format(t,"fullTime")}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},_Ce=xCe;wEe({},xCe);const SCe=()=>{const e=c.useContext(bCe);if(null===e)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=c.useMemo((()=>wEe({},_Ce,e.localeText)),[e.localeText]);return c.useMemo((()=>wEe({},e,{localeText:t})),[e,t])},PCe=()=>SCe().utils,ECe=()=>SCe().defaultDates,CCe=e=>{const t=PCe(),n=c.useRef();return void 0===n.current&&(n.current=t.date(void 0,e)),n.current};const TCe=function({styles:e,themeId:t,defaultTheme:n={}}){const r=Jq(n),i="function"==typeof e?e(t&&r[t]||r):e;return(0,lM.jsx)(qG,{styles:i})},$Ce=function(e){return(0,lM.jsx)(TCe,{...e,defaultTheme:wq,themeId:kq})};function QCe(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function RCe(e){return cB("MuiTypography",e)}dB("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ACe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},jCe=function(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??iX;return Object.keys(e).forEach((r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]})),t})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return nU(n)?{...r,...n}:r}:{...r,...t},{...i,sx:o}},DCe=Pq("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${LB(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Cq((({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter((([e,t])=>"inherit"!==e&&t&&"object"==typeof t)).map((([e,t])=>({props:{variant:e},style:t}))),...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette?.text||{}).filter((([,e])=>"string"==typeof e)).map((([t])=>({props:{color:`text${LB(t)}`},style:{color:(e.vars||e).palette.text[t]}}))),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]})))),MCe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ICe=c.forwardRef((function(e,t){const{color:n,...r}=Rq({props:e,name:"MuiTypography"}),i=jCe({...r,...!ACe[n]&&{color:n}}),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=MCe,...h}=i,p={...i,align:o,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f},m=s||(c?"p":f[d]||MCe[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return qN({root:["root",o,"inherit"!==e.align&&`align${LB(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},RCe,a)})(p);return(0,lM.jsx)(DCe,{as:m,ref:t,className:XN(g.root,a),...h,ownerState:p,style:{..."inherit"!==o&&{"--Typography-textAlign":o},...h.style}})})),zCe=ICe;function WCe(e){return cB("MuiPickersToolbar",e)}const NCe=dB("MuiPickersToolbar",["root","content"]),LCe=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],FCe=Pq("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]}))),UCe=Pq("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),XCe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:o,hidden:a,titleId:s}=n,l=PEe(n,LCe),u=n,c=(e=>{const{classes:t}=e;return qN({root:["root"],content:["content"]},WCe,t)})(u);return a?null:(0,lM.jsxs)(FCe,wEe({ref:t,className:XN(c.root,i),ownerState:u},l,{children:[(0,lM.jsx)(zCe,{color:"text.secondary",variant:"overline",id:s,children:o}),(0,lM.jsx)(UCe,{className:c.content,ownerState:u,children:r})]}))})),qCe=()=>SCe().localeText;function BCe(e){return cB("MuiDatePickerToolbar",e)}dB("MuiDatePickerToolbar",["root","title"]);const VCe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],YCe=Pq(XCe,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZCe=Pq(zCe,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),GCe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:o,toolbarPlaceholder:a="––",views:s,className:l}=n,u=PEe(n,VCe),d=PCe(),f=qCe(),h=(e=>{const{classes:t}=e;return qN({root:["root"],title:["title"]},BCe,t)})(n),p=c.useMemo((()=>{if(!r)return a;const e=WEe(d,{format:o,views:s},!0);return d.formatByString(r,e)}),[r,o,a,d,s]),m=n;return(0,lM.jsx)(YCe,wEe({ref:t,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:XN(h.root,l)},u,{children:(0,lM.jsx)(ZCe,{variant:"h4",align:i?"left":"center",ownerState:m,className:h.title,children:p})}))}));function HCe(e,t){const n=PCe(),r=ECe(),i=EEe({props:e,name:t}),o=c.useMemo((()=>null==i.localeText?.toolbarTitle?i.localeText:wEe({},i.localeText,{datePickerToolbarTitle:i.localeText.toolbarTitle})),[i.localeText]);return wEe({},i,{localeText:o},$Ee({views:i.views,openTo:i.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:AEe(n,i.minDate,r.minDate),maxDate:AEe(n,i.maxDate,r.maxDate),slots:wEe({toolbar:GCe},i.slots)})}const KCe=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],JCe=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],eTe=["minDateTime","maxDateTime"],tTe=[...KCe,...JCe,...eTe],nTe=e=>tTe.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),rTe=({props:e,value:t,timezone:n,adapter:r})=>{if(null===t)return null;const{shouldDisableDate:i,shouldDisableMonth:o,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,u=r.utils.date(void 0,n),c=AEe(r.utils,e.minDate,r.defaultDates.minDate),d=AEe(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case Boolean(i&&i(t)):return"shouldDisableDate";case Boolean(o&&o(t)):return"shouldDisableMonth";case Boolean(a&&a(t)):return"shouldDisableYear";case Boolean(l&&r.utils.isAfterDay(t,u)):return"disableFuture";case Boolean(s&&r.utils.isBeforeDay(t,u)):return"disablePast";case Boolean(c&&r.utils.isBeforeDay(t,c)):return"minDate";case Boolean(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};rTe.valueManager=vCe;const iTe=c.createContext(void 0);function oTe(){return c.useContext(iTe)}function aTe(e){return cB("MuiInputAdornment",e)}const sTe=dB("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var lTe;const uTe=Pq("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${LB(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Cq((({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${sTe.positionStart}&:not(.${sTe.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]})))),cTe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiInputAdornment"}),{children:r,className:i,component:o="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:u,...d}=n,f=oTe()||{};let h=u;u&&f.variant,f&&!h&&(h=f.variant);const p={...n,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:l,variant:h},m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e;return qN({root:["root",n&&"disablePointerEvents",i&&`position${LB(i)}`,a,r&&"hiddenLabel",o&&`size${LB(o)}`]},aTe,t)})(p);return(0,lM.jsx)(iTe.Provider,{value:null,children:(0,lM.jsx)(uTe,{as:o,ownerState:p,className:XN(m.root,i),ref:t,...d,children:"string"!=typeof r||s?(0,lM.jsxs)(c.Fragment,{children:["start"===l?lTe||(lTe=(0,lM.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]}):(0,lM.jsx)(zCe,{color:"textSecondary",children:r})})})})),dTe=cTe;class fTe{static create(){return new fTe}static use(){const e=c3(fTe.create).current,[t,n]=c.useState(!1);return e.shouldMount=t,e.setShouldMount=n,c.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}function hTe(e,t){var n=Object.create(null);return e&&c.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,c.isValidElement)(e)?t(e):e}(e)})),n}function pTe(e,t,n){return null!=n[t]?n[t]:e.props[t]}function mTe(e,t,n){var r=hTe(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),(0,lM.jsx)("span",{className:h,style:p,children:(0,lM.jsx)("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})` +`,xTe=Pq("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_Te=Pq((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[d,f]=c.useState(!1),h=XN(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+o,left:-a/2+i},m=XN(n.child,d&&n.childLeaving,r&&n.childPulsate);return s||d||f(!0),c.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),(0,lM.jsx)("span",{className:h,style:p,children:(0,lM.jsx)("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; - &.${bTe.rippleVisible} { + &.${yTe.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${wTe}; + animation-name: ${bTe}; animation-duration: ${550}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } - &.${bTe.ripplePulsate} { + &.${yTe.ripplePulsate} { animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; } - & .${bTe.child} { + & .${yTe.child} { opacity: 1; display: block; width: 100%; @@ -99,22 +99,22 @@ background-color: currentColor; } - & .${bTe.childLeaving} { + & .${yTe.childLeaving} { opacity: 0; - animation-name: ${kTe}; + animation-name: ${wTe}; animation-duration: ${550}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } - & .${bTe.childPulsate} { + & .${yTe.childPulsate} { position: absolute; /* @noflip */ left: 0px; top: 0; - animation-name: ${xTe}; + animation-name: ${kTe}; animation-duration: 2500ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`,PTe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o,...a}=n,[s,l]=c.useState([]),u=c.useRef(0),d=c.useRef(null);c.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const f=c.useRef(!1),h=h3(),p=c.useRef(null),m=c.useRef(null),g=c.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,(0,lM.jsx)(STe,{classes:{ripple:XN(i.ripple,bTe.ripple),rippleVisible:XN(i.rippleVisible,bTe.rippleVisible),ripplePulsate:XN(i.ripplePulsate,bTe.ripplePulsate),child:XN(i.child,bTe.child),childLeaving:XN(i.childLeaving,bTe.childLeaving),childPulsate:XN(i.childPulsate,bTe.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,d.current=a}),[i]),v=c.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})},h.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[r,g,h]),O=c.useCallback((()=>{v({},{pulsate:!0})}),[v]),y=c.useCallback(((e,t)=>{if(h.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void h.start(0,(()=>{y(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),d.current=t}),[h]);return c.useImperativeHandle(t,(()=>({pulsate:O,start:v,stop:y})),[O,v,y]),(0,lM.jsx)(_Te,{className:XN(bTe.root,i.root,o),ref:m,...a,children:(0,lM.jsx)(yTe,{component:null,exit:!0,children:s})})})),ETe=PTe;function CTe(e){return cB("MuiButtonBase",e)}const TTe=dB("MuiButtonBase",["root","disabled","focusVisible"]),$Te=Pq("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${TTe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),QTe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:m,onClick:g,onContextMenu:v,onDragLeave:O,onFocus:y,onFocusVisible:b,onKeyDown:w,onKeyUp:k,onMouseDown:x,onMouseLeave:_,onMouseUp:S,onTouchEnd:P,onTouchMove:E,onTouchStart:C,tabIndex:T=0,TouchRippleProps:$,touchRippleRef:Q,type:R,...A}=n,j=c.useRef(null),D=hTe.use(),M=rB(D.ref,Q),[I,z]=c.useState(!1);l&&I&&z(!1),c.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),j.current.focus()}})),[]);const W=D.shouldMount&&!u&&!l;c.useEffect((()=>{I&&f&&!u&&D.pulsate()}),[u,f,I,D]);const N=RTe(D,"start",x,d),L=RTe(D,"stop",v,d),F=RTe(D,"stop",O,d),U=RTe(D,"stop",S,d),X=RTe(D,"stop",(e=>{I&&e.preventDefault(),_&&_(e)}),d),q=RTe(D,"start",C,d),B=RTe(D,"stop",P,d),V=RTe(D,"stop",E,d),Y=RTe(D,"stop",(e=>{p3(e.target)||z(!1),m&&m(e)}),!1),Z=T3((e=>{j.current||(j.current=e.currentTarget),p3(e.target)&&(z(!0),b&&b(e)),y&&y(e)})),G=()=>{const e=j.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},H=T3((e=>{f&&!e.repeat&&I&&" "===e.key&&D.stop(e,(()=>{D.start(e)})),e.target===e.currentTarget&&G()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&G()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))})),K=T3((e=>{f&&" "===e.key&&I&&!e.defaultPrevented&&D.stop(e,(()=>{D.pulsate(e)})),k&&k(e),g&&e.target===e.currentTarget&&G()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let J=s;"button"===J&&(A.href||A.to)&&(J=p);const ee={};"button"===J?(ee.type=void 0===R?"button":R,ee.disabled=l):(A.href||A.to||(ee.role="button"),l&&(ee["aria-disabled"]=l));const te=rB(t,j),ne={...n,centerRipple:i,component:s,disabled:l,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:T,focusVisible:I},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=qN({root:["root",t&&"disabled",n&&"focusVisible"]},CTe,i);return n&&r&&(o.root+=` ${r}`),o})(ne);return(0,lM.jsxs)($Te,{as:J,className:XN(re.root,a),ownerState:ne,onBlur:Y,onClick:g,onContextMenu:L,onFocus:Z,onKeyDown:H,onKeyUp:K,onMouseDown:N,onMouseLeave:X,onMouseUp:U,onDragLeave:F,onTouchEnd:B,onTouchMove:V,onTouchStart:q,ref:te,tabIndex:l?-1:T,type:R,...ee,...A,children:[o,W?(0,lM.jsx)(ETe,{ref:M,center:i,...$}):null]})}));function RTe(e,t,n,r=!1){return T3((i=>(n&&n(i),r||e[t](i),!0)))}const ATe=QTe;function jTe(e){return cB("MuiIconButton",e)}const DTe=dB("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),MTe=Pq(ATe,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${LB(n.color)}`],n.edge&&t[`edge${LB(n.edge)}`],t[`size${LB(n.size)}`]]}})(Cq((({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}))),Cq((({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}}))),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${DTe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})))),ITe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium",...c}=n,d={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,size:u},f=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e;return qN({root:["root",n&&"disabled","default"!==r&&`color${LB(r)}`,i&&`edge${LB(i)}`,`size${LB(o)}`]},jTe,t)})(d);return(0,lM.jsx)(MTe,{className:XN(f.root,o),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,...c,ownerState:d,children:i})})),zTe=ITe;function WTe(e){return cB("MuiPickersPopper",e)}function NTe(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}dB("MuiPickersPopper",["root","paper"]);const LTe=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?LTe(t.shadowRoot):t:null},FTe=e=>Array.from(e.children).indexOf(LTe(document)),UTe="@media (pointer: fine)",XTe="undefined"!=typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),qTe=XTe&&XTe[1]?parseInt(XTe[1],10):null,BTe=XTe&&XTe[2]?parseInt(XTe[2],10):null,VTe=qTe&&qTe<10||BTe&&BTe<13||!1,YTe=()=>z2("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||VTe,ZTe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],GTe=Pq(C3,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({zIndex:e.zIndex.modal}))),HTe=Pq(NB,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]}),KTe=c.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=EEe(e,ZTe),d=kEe({},i,{placement:r}),f=b3({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return(0,lM.jsx)(n,kEe({},c,f,{onClick:e=>{l(e),f.onClick?.(e)},onTouchStart:e=>{u(e),f.onTouchStart?.(e)},ownerState:d,children:o}))}));function JTe(e){const t=CEe({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:i=null,shouldRestoreFocus:o,onBlur:a,onDismiss:s,open:l,role:u,placement:d,slots:f,slotProps:h,reduceAnimations:p}=t;c.useEffect((()=>{function e(e){l&&"Escape"===e.key&&s()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[s,l]);const m=c.useRef(null);c.useEffect((()=>{"tooltip"===u||o&&!o()||(l?m.current=LTe(document):m.current&&m.current instanceof HTMLElement&&setTimeout((()=>{m.current instanceof HTMLElement&&m.current.focus()})))}),[l,u,o]);const[g,v,O]=function(e,t){const n=c.useRef(!1),r=c.useRef(!1),i=c.useRef(null),o=c.useRef(!1);c.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),o.current=!1};function t(){o.current=!0}}),[e]);const a=gB((e=>{if(!o.current)return;const a=r.current;r.current=!1;const s=KN(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||a||t(e)})),s=()=>{r.current=!0};return c.useEffect((()=>{if(e){const e=KN(i.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",a),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",t)}}}),[e,a]),c.useEffect((()=>{if(e){const e=KN(i.current);return e.addEventListener("click",a),()=>{e.removeEventListener("click",a),r.current=!1}}}),[e,a]),[i,s,s]}(l,a??s),y=GN(c.useRef(null),i),b=GN(y,g),w=t,k=(e=>{const{classes:t}=e;return qN({root:["root"],paper:["paper"]},WTe,t)})(w),x=YTe(),_=p??x,S=f?.desktopTransition??_?aB:y3,P=f?.desktopTrapFocus??nL,E=f?.desktopPaper??HTe,C=f?.popper??GTe,T=b3({elementType:C,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:u,open:l,anchorEl:n,placement:d,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),s())}},className:k.root,ownerState:t});return(0,lM.jsx)(C,kEe({},T,{children:({TransitionProps:e,placement:t})=>(0,lM.jsx)(P,kEe({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===u,isEnabled:()=>!0},h?.desktopTrapFocus,{children:(0,lM.jsx)(S,kEe({},e,h?.desktopTransition,{children:(0,lM.jsx)(KTe,{PaperComponent:E,ownerState:w,popperPlacement:t,ref:b,onPaperClick:v,onPaperTouchStart:O,paperClasses:k.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}function e$e(e){const{props:t,validator:n,value:r,timezone:i,onError:o}=e,a=PCe(),s=c.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:i,props:t}),u=n.valueManager.hasError(l);c.useEffect((()=>{o&&!n.valueManager.isSameError(l,s.current)&&o(l,r),s.current=l}),[n,o,l,r]);const d=gB((e=>n({adapter:a,value:e,timezone:i,props:t})));return{validationError:l,hasValidationError:u,getValidationErrorForNewValue:d}}const t$e=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:i,valueManager:o})=>{const a=ECe(),s=c.useRef(n),l=t??s.current??o.emptyValue,u=c.useMemo((()=>o.getTimezone(a,l)),[a,o,l]),d=gB((e=>null==u?e:o.setTimezone(a,u,e)));let f;return f=e||u||(r?a.getTimezone(r):"default"),{value:c.useMemo((()=>o.setTimezone(a,f,l)),[o,a,f,l]),handleValueChange:gB(((e,...t)=>{const n=d(e);i?.(n,...t)})),timezone:f}},n$e=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:i,onChange:o,valueManager:a})=>{const[s,l]=j3({name:e,state:"value",controlled:n,default:r??a.emptyValue}),u=gB(((e,...t)=>{l(e),o?.(e,...t)}));return t$e({timezone:t,value:s,defaultValue:void 0,referenceDate:i,onChange:u,valueManager:a})};function r$e({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){const l=c.useRef(n),u=c.useRef(i),d=c.useRef(i.includes(n)?n:i[0]),[f,h]=j3({name:"useViews",state:"view",controlled:r,default:d.current}),p=c.useRef(o?f:null),[m,g]=j3({name:"useViews",state:"focusedView",controlled:a,default:p.current});c.useEffect((()=>{(l.current&&l.current!==n||u.current&&u.current.some((e=>!i.includes(e))))&&(h(i.includes(n)?n:i[0]),u.current=i,l.current=n)}),[n,h,f,i]);const v=i.indexOf(f),O=i[v-1]??null,y=i[v+1]??null,b=gB(((e,t)=>{g(t?e:t=>e===t?null:t),s?.(e,t)})),w=gB((e=>{b(e,!0),e!==f&&(h(e),t&&t(e))})),k=gB((()=>{y&&w(y)})),x=gB(((t,n,r)=>{const o="finish"===n,a=r?i.indexOf(r){const u=(({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:u="desktop"===r,timezone:d,referenceDate:f}=e,{current:h}=c.useRef(l),{current:p}=c.useRef(void 0!==s),[m,g]=c.useState(d),v=ECe(),O=PCe(),{isOpen:y,setIsOpen:b}=(({open:e,onOpen:t,onClose:n})=>{const r=c.useRef("boolean"==typeof e).current,[i,o]=c.useState(!1);return c.useEffect((()=>{if(r){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}}),[r,e]),{isOpen:i,setIsOpen:c.useCallback((e=>{r||o(e),e&&t&&t(),!e&&n&&n()}),[r,t,n])}})(e),{timezone:w,value:k,handleValueChange:x}=t$e({timezone:d,value:s,defaultValue:h,referenceDate:f,onChange:a,valueManager:t}),[_,S]=c.useState((()=>{let e;return e=void 0!==k?k:void 0!==h?h:t.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:s,hasBeenModifiedSinceMount:!1}})),P=t.getTimezone(v,_.draft);m!==d&&(g(d),d&&P&&d!==P&&S((e=>kEe({},e,{draft:t.setTimezone(v,d,e.draft)}))));const{getValidationErrorForNewValue:E}=e$e({props:e,validator:i,timezone:w,value:_.draft,onError:e.onError}),C=gB((e=>{const n={action:e,dateState:_,hasChanged:n=>!t.areValuesEqual(v,e.value,n),isControlled:p,closeOnSelect:u},r=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!o||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!o||n(r.lastPublishedValue)))})(n),i=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&o?!!a||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(n),a=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(n);S((t=>kEe({},t,{draft:e.value,lastPublishedValue:r?e.value:t.lastPublishedValue,lastCommittedValue:i?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0})));let s=null;const l=()=>{if(!s){const t="setValueFromField"===e.name?e.context.validationError:E(e.value);s={validationError:t},"setValueFromShortcut"===e.name&&(s.shortcut=e.shortcut)}return s};r&&x(e.value,l()),i&&o&&o(e.value,l()),a&&b(!1)}));if(_.lastControlledValue!==s){const e=t.areValuesEqual(v,_.draft,k);S((t=>kEe({},t,{lastControlledValue:s},e?{}:{lastCommittedValue:k,lastPublishedValue:k,draft:k,hasBeenModifiedSinceMount:!0})))}const T=gB((()=>{C({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),$=gB((()=>{C({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),Q=gB((()=>{C({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),R=gB((()=>{C({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),A=gB((()=>{C({value:t.getTodayValue(v,w,n),name:"setValueFromAction",pickerAction:"today"})})),j=gB((e=>{e.preventDefault(),b(!0)})),D=gB((e=>{e?.preventDefault(),b(!1)})),M=gB(((e,t="partial")=>C({name:"setValueFromView",value:e,selectionState:t}))),I=gB(((e,t,n)=>C({name:"setValueFromShortcut",value:e,changeImportance:t,shortcut:n}))),z=gB(((e,t)=>C({name:"setValueFromField",value:e,context:t}))),W={onClear:T,onAccept:$,onDismiss:Q,onCancel:R,onSetToday:A,onOpen:j,onClose:D},N={value:_.draft,onChange:z},L=c.useMemo((()=>t.cleanValue(v,_.draft)),[v,t,_.draft]),F={value:L,onChange:M,onClose:D,open:y},U=kEe({},W,{value:L,onChange:M,onSelectShortcut:I,isValid:n=>{const r=i({adapter:O,value:n,timezone:w,props:e});return!t.hasError(r)}}),X=c.useMemo((()=>({onOpen:j,onClose:D,open:y})),[y,D,j]);return{open:y,fieldProps:N,viewProps:F,layoutProps:U,actions:W,contextValue:X}})({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o}),d=(({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:i,fieldRef:o})=>{const{onChange:a,open:s,onClose:l}=t,{view:u,views:d,openTo:f,onViewChange:h,viewRenderers:p,timezone:m}=e,g=EEe(e,i$e),{view:v,setView:O,defaultView:y,focusedView:b,setFocusedView:w,setValueAndGoToNextView:k}=r$e({view:u,views:d,openTo:f,onChange:a,onViewChange:h,autoFocus:r}),{hasUIView:x,viewModeLookup:_}=c.useMemo((()=>d.reduce(((e,t)=>{let n;return n=null!=p[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[p,d]),S=c.useMemo((()=>d.reduce(((e,t)=>null!=p[t]&&UEe(t)?e+1:e),0)),[p,d]),P=_[v],E=gB((()=>"UI"===P)),[C,T]=c.useState("UI"===P?v:null);return C!==v&&"UI"===_[v]&&T(v),rL((()=>{"field"===P&&s&&(l(),setTimeout((()=>{o?.current?.setSelectedSections(v),o?.current?.focusField(v)})))}),[v]),rL((()=>{if(!s)return;let e=v;"field"===P&&null!=C&&(e=C),e!==y&&"UI"===_[e]&&"UI"===_[y]&&(e=y),e!==v&&O(e),w(e,!0)}),[s]),{hasUIView:x,shouldRestoreFocus:E,layoutProps:{views:d,view:C,onViewChange:O},renderCurrentView:()=>{if(null==C)return null;const e=p[C];if(null==e)return null;const r=kEe({},g,n,t,{views:d,timezone:m,onChange:k,view:C,onViewChange:O,focusedView:b,onFocusedViewChange:w,showViewSwitcher:S>1,timeViewsCount:S});return i?i(p,C,r):e(r)}}})({props:e,additionalViewProps:i,autoFocusView:a,fieldRef:l,propsFromPickerValue:u.viewProps,rendererInterceptor:s}),f=(({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=((e,t)=>{const[n,r]=c.useState(o$e);return rL((()=>{const e=()=>{r(o$e())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!NTe(e,["hours","minutes","seconds"])&&"landscape"===(t||n)})(n.views,i);return{layoutProps:kEe({},n,t,{isLandscape:o,isRtl:VN(),wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}})({props:e,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps}),h=function(e){const{props:t,pickerValueResponse:n}=e;return c.useMemo((()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1})),[n.viewProps.value,n.open,t.disabled,t.readOnly])}({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:f.layoutProps,contextValue:u.contextValue,ownerState:h}};function s$e(e){return cB("MuiPickersLayout",e)}const l$e=dB("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function u$e(e){return cB("MuiButton",e)}const c$e=dB("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),d$e=c.createContext({}),f$e=c.createContext(void 0),h$e=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],p$e=Pq(ATe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${LB(n.color)}`],t[`size${LB(n.size)}`],t[`${n.variant}Size${LB(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Cq((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${c$e.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${c$e.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${c$e.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${c$e.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:xX(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette[t].main,e.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${c$e.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${c$e.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}}))),m$e=Pq("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${LB(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...h$e]}),g$e=Pq("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${LB(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...h$e]}),v$e=c.forwardRef((function(e,t){const n=c.useContext(d$e),r=c.useContext(f$e),i=Rq({props:Tq(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:p,fullWidth:m=!1,size:g="medium",startIcon:v,type:O,variant:y="text",...b}=i,w={...i,color:a,component:s,disabled:u,disableElevation:d,disableFocusRipple:f,fullWidth:m,size:g,type:O,variant:y},k=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s=qN({root:["root",o,`${o}${LB(t)}`,`size${LB(i)}`,`${o}Size${LB(i)}`,`color${LB(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${LB(i)}`],endIcon:["icon","endIcon",`iconSize${LB(i)}`]},u$e,a);return{...a,...s}})(w),x=v&&(0,lM.jsx)(m$e,{className:k.startIcon,ownerState:w,children:v}),_=h&&(0,lM.jsx)(g$e,{className:k.endIcon,ownerState:w,children:h}),S=r||"";return(0,lM.jsxs)(p$e,{ownerState:w,className:XN(n.className,k.root,l,S),component:s,disabled:u,focusRipple:!f,focusVisibleClassName:XN(k.focusVisible,p),ref:t,type:O,...b,classes:k,children:[x,o,_]})})),O$e=v$e;function y$e(e){return cB("MuiDialogActions",e)}dB("MuiDialogActions",["root","spacing"]);const b$e=Pq("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),w$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...o}=n,a={...n,disableSpacing:i},s=(e=>{const{classes:t,disableSpacing:n}=e;return qN({root:["root",!n&&"spacing"]},y$e,t)})(a);return(0,lM.jsx)(b$e,{className:XN(s.root,r),ownerState:a,ref:t,...o})})),k$e=w$e,x$e=["onAccept","onClear","onCancel","onSetToday","actions"];function _$e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=EEe(e,x$e),s=BCe();if(null==o||0===o.length)return null;const l=o?.map((e=>{switch(e){case"clear":return(0,lM.jsx)(O$e,{onClick:n,children:s.clearButtonLabel},e);case"cancel":return(0,lM.jsx)(O$e,{onClick:r,children:s.cancelButtonLabel},e);case"accept":return(0,lM.jsx)(O$e,{onClick:t,children:s.okButtonLabel},e);case"today":return(0,lM.jsx)(O$e,{onClick:i,children:s.todayButtonLabel},e);default:return null}}));return(0,lM.jsx)(k$e,kEe({},a,{children:l}))}const S$e=c.createContext({});function P$e(e){return cB("MuiList",e)}dB("MuiList",["root","padding","dense","subheader"]);const E$e=Pq("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),C$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l,...u}=n,d=c.useMemo((()=>({dense:a})),[a]),f={...n,component:o,dense:a,disablePadding:s},h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return qN({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},P$e,t)})(f);return(0,lM.jsx)(S$e.Provider,{value:d,children:(0,lM.jsxs)(E$e,{as:o,className:XN(h.root,i),ref:t,ownerState:f,...u,children:[l,r]})})})),T$e=C$e,$$e=function(e){return"string"==typeof e},Q$e=function(e,t){return c.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)};function R$e(e){return cB("MuiListItem",e)}dB("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const A$e=dB("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function j$e(e){return cB("MuiListItemSecondaryAction",e)}dB("MuiListItemSecondaryAction",["root","disableGutters"]);const D$e=Pq("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),M$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...i}=n,o=c.useContext(S$e),a={...n,disableGutters:o.disableGutters},s=(e=>{const{disableGutters:t,classes:n}=e;return qN({root:["root",t&&"disableGutters"]},j$e,n)})(a);return(0,lM.jsx)(D$e,{className:XN(s.root,r),ownerState:a,ref:t,...i})}));M$e.muiName="ListItemSecondaryAction";const I$e=M$e,z$e=Pq("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(Cq((({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${A$e.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]})))),W$e=Pq("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),N$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiListItem"}),{alignItems:r="center",children:i,className:o,component:a,components:s={},componentsProps:l={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:h=!1,disableGutters:p=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:v,slotProps:O={},slots:y={},...b}=n,w=c.useContext(S$e),k=c.useMemo((()=>({dense:h||w.dense||!1,alignItems:r,disableGutters:p})),[r,w.dense,h,p]),x=c.useRef(null),_=c.Children.toArray(i),S=_.length&&Q$e(_[_.length-1],["ListItemSecondaryAction"]),P={...n,alignItems:r,dense:k.dense,disableGutters:p,disablePadding:m,divider:g,hasSecondaryAction:S},E=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:a,hasSecondaryAction:s}=e;return qN({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},R$e,n)})(P),C=rB(x,t),T=y.root||s.Root||z$e,$=O.root||l.root||{},Q={className:XN(E.root,$.className,o),...b};let R=a||"li";return S?(R=Q.component||a?R:"div","li"===u&&("li"===R?R="div":"li"===Q.component&&(Q.component="div")),(0,lM.jsx)(S$e.Provider,{value:k,children:(0,lM.jsxs)(W$e,{as:u,className:XN(E.container,d),ref:C,ownerState:P,...f,children:[(0,lM.jsx)(T,{...$,...!$$e(T)&&{as:R,ownerState:{...P,...$.ownerState}},...Q,children:_}),_.pop()]})})):(0,lM.jsx)(S$e.Provider,{value:k,children:(0,lM.jsxs)(T,{...$,as:R,ref:C,...!$$e(T)&&{ownerState:{...P,...$.ownerState}},...Q,children:[_,v&&(0,lM.jsx)(I$e,{children:v})]})})})),L$e=N$e;function F$e(e){return cB("MuiSvgIcon",e)}dB("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const U$e=Pq("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${LB(n.color)}`],t[`fontSize${LB(n.fontSize)}`]]}})(Cq((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),X$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...h}=n,p=c.isValidElement(r)&&"svg"===r.type,m={...n,color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:p},g={};u||(g.viewBox=f);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return qN({root:["root","inherit"!==t&&`color${LB(t)}`,`fontSize${LB(n)}`]},F$e,r)})(m);return(0,lM.jsxs)(U$e,{as:a,className:XN(v.root,i),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...h,...p&&r.props,ownerState:m,children:[p?r.props.children:r,d?(0,lM.jsx)("title",{children:d}):null]})}));X$e.muiName="SvgIcon";const q$e=X$e;function B$e(e,t){function n(n,r){return(0,lM.jsx)(q$e,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return n.muiName=q$e.muiName,c.memo(c.forwardRef(n))}const V$e=B$e((0,lM.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Y$e(e){return cB("MuiChip",e)}const Z$e=dB("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),G$e=Pq("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${Z$e.avatar}`]:t.avatar},{[`& .${Z$e.avatar}`]:t[`avatar${LB(s)}`]},{[`& .${Z$e.avatar}`]:t[`avatarColor${LB(r)}`]},{[`& .${Z$e.icon}`]:t.icon},{[`& .${Z$e.icon}`]:t[`icon${LB(s)}`]},{[`& .${Z$e.icon}`]:t[`iconColor${LB(i)}`]},{[`& .${Z$e.deleteIcon}`]:t.deleteIcon},{[`& .${Z$e.deleteIcon}`]:t[`deleteIcon${LB(s)}`]},{[`& .${Z$e.deleteIcon}`]:t[`deleteIconColor${LB(r)}`]},{[`& .${Z$e.deleteIcon}`]:t[`deleteIcon${LB(l)}Color${LB(r)}`]},t.root,t[`size${LB(s)}`],t[`color${LB(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${LB(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${LB(r)}`],t[l],t[`${l}${LB(r)}`]]}})(Cq((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Z$e.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Z$e.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Z$e.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Z$e.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Z$e.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Z$e.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Z$e.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:xX(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:xX(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Z$e.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Z$e.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(RCe(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Z$e.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:xX(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${Z$e.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${Z$e.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Z$e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xX(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(RCe(["dark"])).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${Z$e.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xX(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Z$e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xX(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(RCe(["dark"])).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${Z$e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Z$e.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Z$e.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Z$e.avatar}`]:{marginLeft:4},[`& .${Z$e.avatarSmall}`]:{marginLeft:2},[`& .${Z$e.icon}`]:{marginLeft:4},[`& .${Z$e.iconSmall}`]:{marginLeft:2},[`& .${Z$e.deleteIcon}`]:{marginRight:5},[`& .${Z$e.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:xX(e.palette[t].main,.7)}`,[`&.${Z$e.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${Z$e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${Z$e.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:xX(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),H$e=Pq("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${LB(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function K$e(e){return"Backspace"===e.key||"Delete"===e.key}const J$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiChip"}),{avatar:r,className:i,clickable:o,color:a="default",component:s,deleteIcon:l,disabled:u=!1,icon:d,label:f,onClick:h,onDelete:p,onKeyDown:m,onKeyUp:g,size:v="medium",variant:O="filled",tabIndex:y,skipFocusWhenDisabled:b=!1,...w}=n,k=c.useRef(null),x=rB(k,t),_=e=>{e.stopPropagation(),p&&p(e)},S=!(!1===o||!h)||o,P=S||p?ATe:s||"div",E={...n,component:P,disabled:u,size:v,color:a,iconColor:c.isValidElement(d)&&d.props.color||a,onDelete:!!p,clickable:S,variant:O},C=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e;return qN({root:["root",l,n&&"disabled",`size${LB(r)}`,`color${LB(i)}`,s&&"clickable",s&&`clickableColor${LB(i)}`,a&&"deletable",a&&`deletableColor${LB(i)}`,`${l}${LB(i)}`],label:["label",`label${LB(r)}`],avatar:["avatar",`avatar${LB(r)}`,`avatarColor${LB(i)}`],icon:["icon",`icon${LB(r)}`,`iconColor${LB(o)}`],deleteIcon:["deleteIcon",`deleteIcon${LB(r)}`,`deleteIconColor${LB(i)}`,`deleteIcon${LB(l)}Color${LB(i)}`]},Y$e,t)})(E),T=P===ATe?{component:s||"div",focusVisibleClassName:C.focusVisible,...p&&{disableRipple:!0}}:{};let $=null;p&&($=l&&c.isValidElement(l)?c.cloneElement(l,{className:XN(l.props.className,C.deleteIcon),onClick:_}):(0,lM.jsx)(V$e,{className:XN(C.deleteIcon),onClick:_}));let Q=null;r&&c.isValidElement(r)&&(Q=c.cloneElement(r,{className:XN(C.avatar,r.props.className)}));let R=null;return d&&c.isValidElement(d)&&(R=c.cloneElement(d,{className:XN(C.icon,d.props.className)})),(0,lM.jsxs)(G$e,{as:P,className:XN(C.root,i),disabled:!(!S||!u)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&K$e(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&p&&K$e(e)&&p(e),g&&g(e)},ref:x,tabIndex:b&&u?-1:y,ownerState:E,...T,...w,children:[Q||R,(0,lM.jsx)(H$e,{className:XN(C.label),ownerState:E,children:f}),$]})})),eQe=J$e,tQe=320,nQe=336,rQe=48,iQe=["items","changeImportance","isLandscape","onChange","isValid"],oQe=["getValue"];function aQe(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:i}=e,o=EEe(e,iQe);if(null==t||0===t.length)return null;const a=t.map((e=>{let{getValue:t}=e,o=EEe(e,oQe);const a=t({isValid:i});return kEe({},o,{label:o.label,onClick:()=>{r(a,n,o)},disabled:!i(a)})}));return(0,lM.jsx)(T$e,kEe({dense:!0,sx:[{maxHeight:nQe,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map((e=>(0,lM.jsx)(L$e,{children:(0,lM.jsx)(eQe,kEe({},e))},e.id??e.label)))}))}const sQe=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:i,onSetToday:o,view:a,views:s,onViewChange:l,value:u,onChange:c,onSelectShortcut:d,isValid:f,isLandscape:h,disabled:p,readOnly:m,children:g,slots:v,slotProps:O}=e,y=(e=>{const{classes:t,isLandscape:n}=e;return qN({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},s$e,t)})(e),b=v?.actionBar??_$e,w=b3({elementType:b,externalSlotProps:O?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:i,onSetToday:o,actions:"desktop"===t?[]:["cancel","accept"]},className:y.actionBar,ownerState:kEe({},e,{wrapperVariant:t})}),k=(0,lM.jsx)(b,kEe({},w)),x=v?.toolbar,_=b3({elementType:x,externalSlotProps:O?.toolbar,additionalProps:{isLandscape:h,onChange:c,value:u,view:a,onViewChange:l,views:s,disabled:p,readOnly:m},className:y.toolbar,ownerState:kEe({},e,{wrapperVariant:t})}),S=function(e){return null!==e.view}(_)&&x?(0,lM.jsx)(x,kEe({},_)):null,P=g,E=v?.tabs,C=a&&E?(0,lM.jsx)(E,kEe({view:a,onViewChange:l,className:y.tabs},O?.tabs)):null,T=v?.shortcuts??aQe,$=b3({elementType:T,externalSlotProps:O?.shortcuts,additionalProps:{isValid:f,isLandscape:h,onChange:d},className:y.shortcuts,ownerState:{isValid:f,isLandscape:h,onChange:d,wrapperVariant:t}});return{toolbar:S,content:P,tabs:C,actionBar:k,shortcuts:a&&T?(0,lM.jsx)(T,kEe({},$)):null}},lQe=Pq("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${l$e.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${l$e.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${l$e.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${l$e.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${l$e.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${l$e.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${l$e.shortcuts}`]:{gridColumn:3}}}]}),uQe=Pq("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),cQe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=sQe(n),{sx:l,className:u,isLandscape:d,wrapperVariant:f}=n,h=(e=>{const{isLandscape:t,classes:n}=e;return qN({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},s$e,n)})(n);return(0,lM.jsxs)(lQe,{ref:t,sx:l,className:XN(h.root,u),ownerState:n,children:[d?s:r,d?r:s,(0,lM.jsx)(uQe,{className:h.contentWrapper,children:"desktop"===f?(0,lM.jsxs)(c.Fragment,{children:[i,o]}):(0,lM.jsxs)(c.Fragment,{children:[o,i]})}),a]})})),dQe=c.createContext(null);function fQe(e){const{contextValue:t,localeText:n,children:r}=e;return(0,lM.jsx)(dQe.Provider,{value:t,children:(0,lM.jsx)(kCe,{localeText:n,children:r})})}const hQe=["props","getOpenDialogAriaText"],pQe=["ownerState"],mQe=["ownerState"],gQe=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=EEe(e,hQe);const{slots:i,slotProps:o,className:a,sx:s,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:p,name:m,label:g,inputRef:v,readOnly:O,disabled:y,autoFocus:b,localeText:w,reduceAnimations:k}=t,x=c.useRef(null),_=c.useRef(null),S=R3(),P=o?.toolbar?.hidden??!1,{open:E,actions:C,hasUIView:T,layoutProps:$,renderCurrentView:Q,shouldRestoreFocus:R,fieldProps:A,contextValue:j,ownerState:D}=a$e(kEe({},r,{props:t,fieldRef:_,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=i.inputAdornment??fTe,I=EEe(b3({elementType:M,externalSlotProps:o?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),pQe),z=i.openPickerButton??zTe,W=EEe(b3({elementType:z,externalSlotProps:o?.openPickerButton,additionalProps:{disabled:y||O,onClick:E?C.onClose:C.onOpen,"aria-label":n(A.value),edge:I.position},ownerState:t}),mQe),N=i.openPickerIcon,L=b3({elementType:N,externalSlotProps:o?.openPickerIcon,ownerState:D}),F=i.field,U=b3({elementType:F,externalSlotProps:o?.field,additionalProps:kEe({},A,P&&{id:S},{readOnly:O,disabled:y,className:a,sx:s,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:p,label:g,name:m,autoFocus:b&&!t.open,focused:!!E||void 0},v?{inputRef:v}:{}),ownerState:t});T&&(U.InputProps=kEe({},U.InputProps,{ref:x},!t.disableOpenPicker&&{[`${I.position}Adornment`]:(0,lM.jsx)(M,kEe({},I,{children:(0,lM.jsx)(z,kEe({},W,{children:(0,lM.jsx)(N,kEe({},L))}))}))}));const X=kEe({textField:i.textField,clearIcon:i.clearIcon,clearButton:i.clearButton},U.slots),q=i.layout??cQe;let B=S;P&&(B=g?`${S}-label`:void 0);const V=kEe({},o,{toolbar:kEe({},o?.toolbar,{titleId:S}),popper:kEe({"aria-labelledby":B},o?.popper)}),Y=GN(_,U.unstableFieldRef);return{renderPicker:()=>(0,lM.jsxs)(fQe,{contextValue:j,localeText:w,children:[(0,lM.jsx)(F,kEe({},U,{slots:X,slotProps:V,unstableFieldRef:Y})),(0,lM.jsx)(JTe,kEe({role:"dialog",placement:"bottom-start",anchorEl:x.current},C,{open:E,slots:i,slotProps:V,shouldRestoreFocus:R,reduceAnimations:k,children:(0,lM.jsx)(q,kEe({},$,V?.layout,{slots:i,slotProps:V,children:Q()}))}))]})}},vQe=B$e((0,lM.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),OQe=B$e((0,lM.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),yQe=B$e((0,lM.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),bQe=B$e((0,lM.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),wQe=B$e((0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,lM.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),kQe=B$e((0,lM.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),xQe=B$e((0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,lM.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),_Qe=B$e((0,lM.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function SQe(e){return parseInt(e,10)||0}const PQe={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},EQe=c.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:i=1,style:o,value:a,...s}=e,{current:l}=c.useRef(null!=a),u=c.useRef(null),d=GN(t,u),f=c.useRef(null),h=c.useRef(null),p=c.useCallback((()=>{const t=u.current,n=OB(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const o=h.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const a=n.boxSizing,s=SQe(n.paddingBottom)+SQe(n.paddingTop),l=SQe(n.borderBottomWidth)+SQe(n.borderTopWidth),c=o.scrollHeight;o.value="x";const d=o.scrollHeight;let f=c;return i&&(f=Math.max(Number(i)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d),{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[r,i,e.placeholder]),m=c.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=u.current;f.current!==n&&(f.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[p]);return rL((()=>{const e=()=>{m()};const t=QB(e),n=u.current,r=OB(n);let i;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),i&&i.disconnect()}}),[p,m]),rL((()=>{m()})),(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("textarea",{value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:i,style:o,...s}),(0,lM.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...PQe,...o,paddingTop:0,paddingBottom:0}})]})})),CQe=EQe;function TQe({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const $Qe=rL;function QQe(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function RQe(e,t=!1){return e&&(QQe(e.value)&&""!==e.value||t&&QQe(e.defaultValue)&&""!==e.defaultValue)}function AQe(e){return cB("MuiInputBase",e)}const jQe=dB("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var DQe;const MQe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${LB(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},IQe=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},zQe=Pq("div",{name:"MuiInputBase",slot:"Root",overridesResolver:MQe})(Cq((({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${jQe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]})))),WQe=Pq("input",{name:"MuiInputBase",slot:"Input",overridesResolver:IQe})(Cq((({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${jQe.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${jQe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}}))),NQe=function(e){return function(t){return(0,lM.jsx)(QCe,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),LQe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:o,className:a,color:s,components:l={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:p,error:m,fullWidth:g=!1,id:v,inputComponent:O="input",inputProps:y={},inputRef:b,margin:w,maxRows:k,minRows:x,multiline:_=!1,name:S,onBlur:P,onChange:E,onClick:C,onFocus:T,onKeyDown:$,onKeyUp:Q,placeholder:R,readOnly:A,renderSuffix:j,rows:D,size:M,slotProps:I={},slots:z={},startAdornment:W,type:N="text",value:L,...F}=n,U=null!=y.value?y.value:L,{current:X}=c.useRef(null!=U),q=c.useRef(),B=c.useCallback((e=>{}),[]),V=rB(q,b,y.ref,B),[Y,Z]=c.useState(!1),G=aTe(),H=TQe({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=G?G.focused:Y,c.useEffect((()=>{!G&&f&&Y&&(Z(!1),P&&P())}),[G,f,Y,P]);const K=G&&G.onFilled,J=G&&G.onEmpty,ee=c.useCallback((e=>{RQe(e)?K&&K():J&&J()}),[K,J]);$Qe((()=>{X&&ee({value:U})}),[U,ee,X]),c.useEffect((()=>{ee(q.current)}),[]);let te=O,ne=y;_&&"input"===te&&(ne=D?{type:void 0,minRows:D,maxRows:D,...ne}:{type:void 0,maxRows:k,minRows:x,...ne},te=CQe),c.useEffect((()=>{G&&G.setAdornedStart(Boolean(W))}),[G,W]);const re={...n,color:H.color||"primary",disabled:H.disabled,endAdornment:p,error:H.error,focused:H.focused,formControl:G,fullWidth:g,hiddenLabel:H.hiddenLabel,multiline:_,size:H.size,startAdornment:W,type:N},ie=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:h,type:p}=e;return qN({root:["root",`color${LB(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${LB(f)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===p&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},AQe,t)})(re),oe=z.root||l.Root||zQe,ae=I.root||u.root||{},se=z.input||l.Input||WQe;return ne={...ne,...I.input??u.input},(0,lM.jsxs)(c.Fragment,{children:[!h&&"function"==typeof NQe&&(DQe||(DQe=(0,lM.jsx)(NQe,{}))),(0,lM.jsxs)(oe,{...ae,ref:t,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),C&&C(e)},...F,...!$$e(oe)&&{ownerState:{...re,...ae.ownerState}},className:XN(ie.root,ae.className,a,A&&"MuiInputBase-readOnly"),children:[W,(0,lM.jsx)(oTe.Provider,{value:null,children:(0,lM.jsx)(se,{"aria-invalid":H.error,"aria-describedby":r,autoComplete:i,autoFocus:o,defaultValue:d,disabled:H.disabled,id:v,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:S,placeholder:R,readOnly:A,required:H.required,rows:D,value:U,onKeyDown:$,onKeyUp:Q,type:N,...ne,...!$$e(se)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:V,className:XN(ie.input,ne.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{P&&P(e),y.onBlur&&y.onBlur(e),G&&G.onBlur?G.onBlur(e):Z(!1)},onChange:(e,...t)=>{if(!X){const t=e.target||q.current;if(null==t)throw new Error(cU(1));ee({value:t.value})}y.onChange&&y.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{T&&T(e),y.onFocus&&y.onFocus(e),G&&G.onFocus?G.onFocus(e):Z(!0)}})}),p,j?j({...H,startAdornment:W}):null]})]})})),FQe=LQe;function UQe(e){return cB("MuiInput",e)}const XQe={...jQe,...dB("MuiInput",["root","underline","input"])},qQe=Pq(zQe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...MQe(e,t),!n.disableUnderline&&t.underline]}})(Cq((({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${XQe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${XQe.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${XQe.disabled}, .${XQe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${XQe.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})))]}}))),BQe=Pq(WQe,{name:"MuiInput",slot:"Input",overridesResolver:IQe})({}),VQe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:o,fullWidth:a=!1,inputComponent:s="input",multiline:l=!1,slotProps:u,slots:c={},type:d="text",...f}=n,h=(e=>{const{classes:t,disableUnderline:n}=e,r=qN({root:["root",!n&&"underline"],input:["input"]},UQe,t);return{...t,...r}})(n),p={root:{ownerState:{disableUnderline:r}}},m=u??o?iU(u??o,p):p,g=c.root??i.Root??qQe,v=c.input??i.Input??BQe;return(0,lM.jsx)(FQe,{slots:{root:g,input:v},slotProps:m,fullWidth:a,inputComponent:s,multiline:l,ref:t,type:d,...f,classes:h})}));VQe.muiName="Input";const YQe=VQe;function ZQe(e){return cB("MuiFilledInput",e)}const GQe={...jQe,...dB("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},HQe=Pq(zQe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...MQe(e,t),!n.disableUnderline&&t.underline]}})(Cq((({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${GQe.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${GQe.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${GQe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${GQe.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${GQe.disabled}, .${GQe.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${GQe.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}}))),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}}))),KQe=Pq(WQe,{name:"MuiFilledInput",slot:"Input",overridesResolver:IQe})(Cq((({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]})))),JQe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:o,fullWidth:a=!1,hiddenLabel:s,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:f="text",...h}=n,p={...n,disableUnderline:r,fullWidth:a,inputComponent:l,multiline:u,type:f},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l=qN({root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd","small"===o&&`size${LB(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},ZQe,t);return{...t,...l}})(n),g={root:{ownerState:p},input:{ownerState:p}},v=c??o?iU(g,c??o):g,O=d.root??i.Root??HQe,y=d.input??i.Input??KQe;return(0,lM.jsx)(FQe,{slots:{root:O,input:y},slotProps:v,fullWidth:a,inputComponent:l,multiline:u,ref:t,type:f,...h,classes:m})}));JQe.muiName="Input";const eRe=JQe;var tRe;const nRe=Pq("fieldset",{shouldForwardProp:_q})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rRe=Pq("legend",{shouldForwardProp:_q})(Cq((({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))));function iRe(e){return cB("MuiOutlinedInput",e)}const oRe={...jQe,...dB("MuiOutlinedInput",["root","notchedOutline","input"])},aRe=Pq(zQe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:MQe})(Cq((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${oRe.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${oRe.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${oRe.focused} .${oRe.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{color:t},style:{[`&.${oRe.focused} .${oRe.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${oRe.error} .${oRe.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${oRe.disabled} .${oRe.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}}))),sRe=Pq((function(e){const{children:t,classes:n,className:r,label:i,notched:o,...a}=e,s=null!=i&&""!==i,l={...e,notched:o,withLabel:s};return(0,lM.jsx)(nRe,{"aria-hidden":!0,className:r,ownerState:l,...a,children:(0,lM.jsx)(rRe,{ownerState:l,children:s?(0,lM.jsx)("span",{children:i}):tRe||(tRe=(0,lM.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Cq((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}))),lRe=Pq(WQe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:IQe})(Cq((({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]})))),uRe=c.forwardRef((function(e,t){var n;const r=Rq({props:e,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:u,slots:d={},type:f="text",...h}=r,p=(e=>{const{classes:t}=e,n=qN({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iRe,t);return{...t,...n}})(r),m=aTe(),g=TQe({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:f},O=d.root??i.Root??aRe,y=d.input??i.Input??lRe;return(0,lM.jsx)(FQe,{slots:{root:O,input:y},renderSuffix:e=>(0,lM.jsx)(sRe,{ownerState:v,className:p.notchedOutline,label:null!=s&&""!==s&&g.required?n||(n=(0,lM.jsxs)(c.Fragment,{children:[s," ","*"]})):s,notched:void 0!==u?u:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:f,...h,classes:{...p,notchedOutline:null}})}));uRe.muiName="Input";const cRe=uRe;function dRe(e){return cB("MuiFormLabel",e)}const fRe=dB("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hRe=Pq("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(Cq((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(RCe()).map((([t])=>({props:{color:t},style:{[`&.${fRe.focused}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${fRe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fRe.error}`]:{color:(e.vars||e).palette.error.main}}}]})))),pRe=Pq("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Cq((({theme:e})=>({[`&.${fRe.error}`]:{color:(e.vars||e).palette.error.main}})))),mRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiFormLabel"}),{children:r,className:i,color:o,component:a="label",disabled:s,error:l,filled:u,focused:c,required:d,...f}=n,h=TQe({props:n,muiFormControl:aTe(),states:["color","required","focused","disabled","error","filled"]}),p={...n,color:h.color||"primary",component:a,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},m=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e;return qN({root:["root",`color${LB(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]},dRe,t)})(p);return(0,lM.jsxs)(hRe,{as:a,ownerState:p,className:XN(m.root,i),ref:t,...f,children:[r,h.required&&(0,lM.jsxs)(pRe,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})})),gRe=mRe;function vRe(e){return cB("MuiInputLabel",e)}dB("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ORe=Pq(gRe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fRe.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Cq((({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]})))),yRe=c.forwardRef((function(e,t){const n=Rq({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:i,shrink:o,variant:a,className:s,...l}=n,u=aTe();let c=o;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);const d=TQe({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f={...n,disableAnimation:r,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused},h=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l=qN({root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&"normal"!==r&&`size${LB(r)}`,a],asterisk:[s&&"asterisk"]},vRe,t);return{...t,...l}})(f);return(0,lM.jsx)(ORe,{"data-shrink":c,ref:t,className:XN(h.root,s),...l,ownerState:f,classes:h})})),bRe=yRe;function wRe(e){return cB("MuiFormControl",e)}dB("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const kRe=Pq("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${LB(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),xRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiFormControl"}),{children:r,className:i,color:o="primary",component:a="div",disabled:s=!1,error:l=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:p=!1,size:m="medium",variant:g="outlined",...v}=n,O={...n,color:o,component:a,disabled:s,error:l,fullWidth:d,hiddenLabel:f,margin:h,required:p,size:m,variant:g},y=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return qN({root:["root","none"!==n&&`margin${LB(n)}`,r&&"fullWidth"]},wRe,t)})(O),[b,w]=c.useState((()=>{let e=!1;return r&&c.Children.forEach(r,(t=>{if(!Q$e(t,["Input","Select"]))return;const n=Q$e(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[k,x]=c.useState((()=>{let e=!1;return r&&c.Children.forEach(r,(t=>{Q$e(t,["Input","Select"])&&(RQe(t.props,!0)||RQe(t.props.inputProps,!0))&&(e=!0)})),e})),[_,S]=c.useState(!1);s&&_&&S(!1);const P=void 0===u||s?_:u;let E;c.useRef(!1);const C=c.useMemo((()=>({adornedStart:b,setAdornedStart:w,color:o,disabled:s,error:l,filled:k,focused:P,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{S(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{S(!0)},registerEffect:E,required:p,variant:g})),[b,o,s,l,k,P,d,f,E,p,m,g]);return(0,lM.jsx)(oTe.Provider,{value:C,children:(0,lM.jsx)(kRe,{as:a,ownerState:O,className:XN(y.root,i),ref:t,...v,children:r})})})),_Re=xRe;function SRe(e){return cB("MuiFormHelperText",e)}const PRe=dB("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ERe;const CRe=Pq("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${LB(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Cq((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${PRe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${PRe.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]})))),TRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:o="p",disabled:a,error:s,filled:l,focused:u,margin:c,required:d,variant:f,...h}=n,p=TQe({props:n,muiFormControl:aTe(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:o,contained:"filled"===p.variant||"outlined"===p.variant,variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete m.ownerState;const g=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e;return qN({root:["root",i&&"disabled",o&&"error",r&&`size${LB(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]},SRe,t)})(m);return(0,lM.jsx)(CRe,{as:o,className:XN(g.root,i),ref:t,...h,ownerState:m,children:" "===r?ERe||(ERe=(0,lM.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})})),$Re=TRe,QRe=KN,RRe=yB;function ARe(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jRe(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function DRe(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function MRe(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&DRe(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const IRe=c.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:o,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:d="selectedMenu",...f}=e,h=c.useRef(null),p=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$Qe((()=>{r&&h.current.focus()}),[r]),c.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!h.current.style.width;if(e.clientHeight{c.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=o.length&&(g=-1))):g===t&&(g+=1,g>=o.length&&(g=-1))}));const v=c.Children.map(o,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),c.cloneElement(e,t)}return e}));return(0,lM.jsx)(T$e,{role:"menu",ref:m,className:a,onKeyDown:e=>{const t=h.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=QRe(t).activeElement;if("ArrowDown"===n)e.preventDefault(),MRe(t,r,l,s,ARe);else if("ArrowUp"===n)e.preventDefault(),MRe(t,r,l,s,jRe);else if("Home"===n)e.preventDefault(),MRe(t,null,l,s,ARe);else if("End"===n)e.preventDefault(),MRe(t,null,l,s,jRe);else if(1===n.length){const i=p.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const l=r&&!i.repeating&&DRe(r,i);i.previousKeyMatched&&(l||MRe(t,r,!1,s,ARe,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...f,children:v})})),zRe=IRe;function WRe(e){return cB("MuiPopover",e)}function NRe(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function LRe(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function FRe(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function URe(e){return"function"==typeof e?e():e}dB("MuiPopover",["root","paper"]);const XRe=Pq($B,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qRe=Pq(NB,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),BRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:u,container:d,elevation:f=8,marginThreshold:h=16,open:p,PaperProps:m={},slots:g={},slotProps:v={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:y=y3,transitionDuration:b="auto",TransitionProps:{onEntering:w,...k}={},disableScrollLock:x=!1,..._}=n,S=v?.paper??m,P=c.useRef(),E={...n,anchorOrigin:o,anchorReference:s,elevation:f,marginThreshold:h,externalPaperSlotProps:S,transformOrigin:O,TransitionComponent:y,transitionDuration:b,TransitionProps:k},C=(e=>{const{classes:t}=e;return qN({root:["root"],paper:["paper"]},WRe,t)})(E),T=c.useCallback((()=>{if("anchorPosition"===s)return a;const e=URe(i),t=(e&&1===e.nodeType?e:QRe(P.current).body).getBoundingClientRect();return{top:t.top+NRe(t,o.vertical),left:t.left+LRe(t,o.horizontal)}}),[i,o.horizontal,o.vertical,a,s]),$=c.useCallback((e=>({vertical:NRe(e,O.vertical),horizontal:LRe(e,O.horizontal)})),[O.horizontal,O.vertical]),Q=c.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=$(t);if("none"===s)return{top:null,left:null,transformOrigin:FRe(n)};const r=T();let o=r.top-n.vertical,a=r.left-n.horizontal;const l=o+t.height,u=a+t.width,c=AB(URe(i)),d=c.innerHeight-h,f=c.innerWidth-h;if(null!==h&&od){const e=l-d;o-=e,n.vertical+=e}if(null!==h&&af){const e=u-f;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:FRe(n)}}),[i,s,T,$,h]),[R,A]=c.useState(p),j=c.useCallback((()=>{const e=P.current;if(!e)return;const t=Q(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[Q]);c.useEffect((()=>(x&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[i,x,j]),c.useEffect((()=>{p&&j()})),c.useImperativeHandle(r,(()=>p?{updatePosition:()=>{j()}}:null),[p,j]),c.useEffect((()=>{if(!p)return;const e=RB((()=>{j()})),t=AB(i);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[i,p,j]);let D=b;"auto"!==b||y.muiSupportAuto||(D=void 0);const M=d||(i?QRe(URe(i)).body:void 0),I={slots:g,slotProps:{...v,paper:S}},[z,W]=zq("paper",{elementType:qRe,externalForwardedProps:I,additionalProps:{elevation:f,className:XN(C.paper,S?.className),style:R?S.style:{...S.style,opacity:0}},ownerState:E}),[N,{slotProps:L,...F}]=zq("root",{elementType:XRe,externalForwardedProps:I,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:M,open:p},ownerState:E,className:XN(C.root,u)}),U=rB(P,W.ref);return(0,lM.jsx)(N,{...F,...!$$e(N)&&{slotProps:L,disableScrollLock:x},..._,ref:t,children:(0,lM.jsx)(y,{appear:!0,in:p,onEntering:(e,t)=>{w&&w(e,t),j()},onExited:()=>{A(!1)},timeout:D,...k,children:(0,lM.jsx)(z,{...W,ref:U,children:l})})})})),VRe=BRe;function YRe(e){return cB("MuiMenu",e)}dB("MuiMenu",["root","paper","list"]);const ZRe={vertical:"top",horizontal:"right"},GRe={vertical:"top",horizontal:"left"},HRe=Pq(VRe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KRe=Pq(qRe,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),JRe=Pq(zRe,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eAe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:o,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:p,...m}={},variant:g="selectedMenu",slots:v={},slotProps:O={},...y}=n,b=VN(),w={...n,autoFocus:r,disableAutoFocusItem:a,MenuListProps:s,onEntering:p,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:g},k=(e=>{const{classes:t}=e;return qN({root:["root"],paper:["paper"],list:["list"]},YRe,t)})(w),x=r&&!a&&u,_=c.useRef(null);let S=-1;c.Children.map(i,((e,t)=>{c.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===S)&&(S=t))}));const P=v.paper??KRe,E=O.paper??d,C=b3({elementType:v.root,externalSlotProps:O.root,ownerState:w,className:[k.root,o]}),T=b3({elementType:P,externalSlotProps:E,ownerState:w,className:k.paper});return(0,lM.jsx)(HRe,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?ZRe:GRe,slots:{paper:P,root:v.root},slotProps:{root:C,paper:T},open:u,ref:t,transitionDuration:h,TransitionProps:{onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:b?"rtl":"ltr"}),p&&p(e,t)},...m},ownerState:w,...y,classes:f,children:(0,lM.jsx)(JRe,{onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:_,autoFocus:r&&(-1===S||a),autoFocusItem:x,variant:g,...s,className:XN(k.list,s.className),children:i})})})),tAe=eAe;function nAe(e){return cB("MuiNativeSelect",e)}const rAe=dB("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iAe=Pq("select")((({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${rAe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]}))),oAe=Pq(iAe,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_q,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${rAe.multiple}`]:t.multiple}]}})({}),aAe=Pq("svg")((({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${rAe.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]}))),sAe=Pq(aAe,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${LB(n.variant)}`],n.open&&t.iconOpen]}})({}),lAe=c.forwardRef((function(e,t){const{className:n,disabled:r,error:i,IconComponent:o,inputRef:a,variant:s="standard",...l}=e,u={...e,disabled:r,variant:s,error:i},d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return qN({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${LB(n)}`,o&&"iconOpen",r&&"disabled"]},nAe,t)})(u);return(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(oAe,{ownerState:u,className:XN(d.select,n),disabled:r,ref:a||t,...l}),e.multiple?null:(0,lM.jsx)(sAe,{as:o,ownerState:u,className:d.icon})]})})),uAe=lAe;function cAe(e){return cB("MuiSelect",e)}const dAe=dB("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fAe;const hAe=Pq(iAe,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${dAe.select}`]:t.select},{[`&.${dAe.select}`]:t[n.variant]},{[`&.${dAe.error}`]:t.error},{[`&.${dAe.multiple}`]:t.multiple}]}})({[`&.${dAe.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),pAe=Pq(aAe,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${LB(n.variant)}`],n.open&&t.iconOpen]}})({}),mAe=Pq("input",{shouldForwardProp:e=>xq(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function gAe(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function vAe(e){return null==e||"string"==typeof e&&!e.trim()}const OAe=c.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:o,children:a,className:s,defaultOpen:l,defaultValue:u,disabled:d,displayEmpty:f,error:h=!1,IconComponent:p,inputRef:m,labelId:g,MenuProps:v={},multiple:O,name:y,onBlur:b,onChange:w,onClose:k,onFocus:x,onOpen:_,open:S,readOnly:P,renderValue:E,required:C,SelectDisplayProps:T={},tabIndex:$,type:Q,value:R,variant:A="standard",...j}=e,[D,M]=D3({controlled:R,default:u,name:"Select"}),[I,z]=D3({controlled:S,default:l,name:"Select"}),W=c.useRef(null),N=c.useRef(null),[L,F]=c.useState(null),{current:U}=c.useRef(null!=S),[X,q]=c.useState(),B=rB(t,m),V=c.useCallback((e=>{N.current=e,e&&F(e)}),[]),Y=L?.parentNode;c.useImperativeHandle(B,(()=>({focus:()=>{N.current.focus()},node:W.current,value:D})),[D]),c.useEffect((()=>{l&&I&&L&&!U&&(q(o?null:Y.clientWidth),N.current.focus())}),[L,o]),c.useEffect((()=>{i&&N.current.focus()}),[i]),c.useEffect((()=>{if(!g)return;const e=QRe(N.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&N.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Z=(e,t)=>{e?_&&_(t):k&&k(t),U||(q(o?null:Y.clientWidth),z(e))},G=c.Children.toArray(a),H=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(O){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(M(n),w)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:y}}),w(i,e)}O||Z(!1,t)}},K=null!==L&&I;let J,ee;delete j["aria-invalid"];const te=[];let ne=!1,re=!1;(RQe({value:D})||f)&&(E?J=E(D):ne=!0);const ie=G.map((e=>{if(!c.isValidElement(e))return null;let t;if(O){if(!Array.isArray(D))throw new Error(cU(2));t=D.some((t=>gAe(t,e.props.value))),t&&ne&&te.push(e.props.children)}else t=gAe(D,e.props.value),t&&ne&&(ee=e.props.children);return t&&(re=!0),c.cloneElement(e,{"aria-selected":t?"true":"false",onClick:H(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(J=O?0===te.length?null:te.reduce(((e,t,n)=>(e.push(t),n{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return qN({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${LB(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},cAe,t)})(le),ce={...v.PaperProps,...v.slotProps?.paper},de=R3();return(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(hAe,{as:"div",ref:V,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":d?"true":void 0,"aria-expanded":K?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,se].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":C?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:e=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Z(!0,e))},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),N.current.focus(),Z(!0,e))},onBlur:e=>{!K&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),b(e))},onFocus:x,...T,ownerState:le,className:XN(T.className,ue.select,s),id:se,children:vAe(J)?fAe||(fAe=(0,lM.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):J}),(0,lM.jsx)(mAe,{"aria-invalid":h,value:Array.isArray(D)?D.join(","):D,name:y,ref:W,"aria-hidden":!0,onChange:e=>{const t=G.find((t=>t.props.value===e.target.value));void 0!==t&&(M(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:ue.nativeInput,autoFocus:i,required:C,...j,ownerState:le}),(0,lM.jsx)(pAe,{as:p,className:ue.icon,ownerState:le}),(0,lM.jsx)(tAe,{id:`menu-${y||""}`,anchorEl:Y,open:K,onClose:e=>{Z(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,MenuListProps:{"aria-labelledby":g,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:de,...v.MenuListProps},slotProps:{...v.slotProps,paper:{...ce,style:{minWidth:ae,...null!=ce?ce.style:null}}},children:ie})]})})),yAe=OAe,bAe=B$e((0,lM.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),wAe={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_q(e)&&"variant"!==e,slot:"Root"},kAe=Pq(YQe,wAe)(""),xAe=Pq(cRe,wAe)(""),_Ae=Pq(eRe,wAe)(""),SAe=c.forwardRef((function(e,t){const n=Rq({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:i,classes:o={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=bAe,id:d,input:f,inputProps:h,label:p,labelId:m,MenuProps:g,multiple:v=!1,native:O=!1,onClose:y,onOpen:b,open:w,renderValue:k,SelectDisplayProps:x,variant:_="outlined",...S}=n,P=O?uAe:yAe,E=TQe({props:n,muiFormControl:aTe(),states:["variant","error"]}),C=E.variant||_,T={...n,variant:C,classes:o},$=(e=>{const{classes:t}=e;return t})(T),{root:Q,...R}=$,A=f||{standard:(0,lM.jsx)(kAe,{ownerState:T}),outlined:(0,lM.jsx)(xAe,{label:p,ownerState:T}),filled:(0,lM.jsx)(_Ae,{ownerState:T})}[C],j=rB(t,HN(A));return(0,lM.jsx)(c.Fragment,{children:c.cloneElement(A,{inputComponent:P,inputProps:{children:i,error:E.error,IconComponent:u,variant:C,type:void 0,multiple:v,...O?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:g,onClose:y,onOpen:b,open:w,renderValue:k,SelectDisplayProps:{id:d,...x}},...h,classes:h?iU(R,h.classes):R,...f?f.props.inputProps:{}},...(v&&O||l)&&"outlined"===C?{notched:!0}:{},ref:j,className:XN(A.props.className,a,$.root),...!f&&{variant:C},...S})})}));SAe.muiName="Select";const PAe=SAe;function EAe(e){return cB("MuiTextField",e)}dB("MuiTextField",["root"]);const CAe={standard:YQe,filled:eRe,outlined:cRe},TAe=Pq(_Re,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Ae=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:h,id:p,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:O,label:y,maxRows:b,minRows:w,multiline:k=!1,name:x,onBlur:_,onChange:S,onFocus:P,placeholder:E,required:C=!1,rows:T,select:$=!1,SelectProps:Q,slots:R={},slotProps:A={},type:j,value:D,variant:M="outlined",...I}=n,z={...n,autoFocus:i,color:s,disabled:u,error:c,fullWidth:f,multiline:k,required:C,select:$,variant:M},W=(e=>{const{classes:t}=e;return qN({root:["root"]},EAe,t)})(z),N=R3(p),L=h&&N?`${N}-helper-text`:void 0,F=y&&N?`${N}-label`:void 0,U=CAe[M],X={slots:R,slotProps:{input:v,inputLabel:m,htmlInput:g,formHelperText:d,select:Q,...A}},q={},B=X.slotProps.inputLabel;"outlined"===M&&(B&&void 0!==B.shrink&&(q.notched=B.shrink),q.label=y),$&&(Q&&Q.native||(q.id=void 0),q["aria-describedby"]=void 0);const[V,Y]=zq("input",{elementType:U,externalForwardedProps:X,additionalProps:q,ownerState:z}),[Z,G]=zq("inputLabel",{elementType:bRe,externalForwardedProps:X,ownerState:z}),[H,K]=zq("htmlInput",{elementType:"input",externalForwardedProps:X,ownerState:z}),[J,ee]=zq("formHelperText",{elementType:$Re,externalForwardedProps:X,ownerState:z}),[te,ne]=zq("select",{elementType:PAe,externalForwardedProps:X,ownerState:z}),re=(0,lM.jsx)(V,{"aria-describedby":L,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:f,multiline:k,name:x,rows:T,maxRows:b,minRows:w,type:j,value:D,id:N,inputRef:O,onBlur:_,onChange:S,onFocus:P,placeholder:E,inputProps:K,slots:{input:R.htmlInput?H:void 0},...Y});return(0,lM.jsxs)(TAe,{className:XN(W.root,a),disabled:u,error:c,fullWidth:f,ref:t,required:C,color:s,variant:M,ownerState:z,...I,children:[null!=y&&""!==y&&(0,lM.jsx)(Z,{htmlFor:N,id:F,...G,children:y}),$?(0,lM.jsx)(te,{"aria-describedby":L,id:N,labelId:F,value:D,input:re,...ne,children:o}):re,h&&(0,lM.jsx)(J,{id:L,...ee,children:h})]})})),QAe=$Ae,RAe=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},AAe=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:i,now:o,token:a,startSeparator:s})=>{if(""===a)throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=JEe(e,a),u=dCe(e,l.contentType,l.type,a),c=n?u:"digit"===l.contentType,d=null!=t&&e.isValid(t);let f=d?e.formatByString(t,a):"",h=null;if(c)if(u)h=""===f?e.formatByString(o,a).length:f.length;else{if(null==l.maxLength)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);h=l.maxLength,d&&(f=iCe(aCe(rCe(f,i),h),i))}return kEe({},l,{format:a,maxLength:h,value:f,placeholder:RAe(e,r,l,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:c,startSeparator:s,endSeparator:"",modified:!1})},jAe=e=>{let t=(({utils:e,format:t})=>{let n=10,r=t,i=e.expandFormat(t);for(;i!==r;)if(r=i,i=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return i})(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=(({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n})(kEe({},e,{expandedFormat:t})),r=(e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,i=t.date(void 0),o=[];let a="";const s=Object.keys(t.formatTokenMap).sort(((e,t)=>t.length-e.length)),l=/^([a-zA-Z]+)/,u=new RegExp(`^(${s.join("|")})*$`),c=new RegExp(`^(${s.join("|")})`),d=e=>r.find((t=>t.start<=e&&t.end>=e));let f=0;for(;f0;){const n=c.exec(t)[1];t=t.slice(n.length),o.push(AAe(kEe({},e,{now:i,token:n,startSeparator:a}))),a=""}f+=s.length}else{const e=n[f];r&&t?.start===f||t?.end===f||(0===o.length?a+=e:o[o.length-1].endSeparator+=e),f+=1}}return 0===o.length&&a.length>0&&o.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),o})(kEe({},e,{expandedFormat:t,escapedParts:n}));return(({isRtl:e,formatDensity:t,sections:n})=>n.map((n=>{const r=n=>{let r=n;return e&&null!==r&&r.includes(" ")&&(r=`⁩${r}⁦`),"spacious"===t&&["/",".","-"].includes(r)&&(r=` ${r} `),r};return n.startSeparator=r(n.startSeparator),n.endSeparator=r(n.endSeparator),n})))(kEe({},e,{sections:r}))},DAe=e=>null!=e.saveQuery,MAe=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:i,onClick:o,onFocus:a,onInput:s,onPaste:l,focused:u,autoFocus:d=!1},fieldValueManager:f,applyCharacterEditing:h,resetCharacterQuery:p,setSelectedSections:m,parsedSelectedSections:g,state:v,clearActiveSection:O,clearValue:y,updateSectionValue:b,updateValueFromValueStr:w,sectionOrder:k,areAllSectionsEmpty:x,sectionsValueBoundaries:_}=e,S=c.useRef(null),P=GN(r,S),E=BCe(),C=ECe(),T=R3(),[$,Q]=c.useState(!1),R=c.useMemo((()=>({syncSelectionToDOM:()=>{if(!S.current)return;const e=document.getSelection();if(!e)return;if(null==g)return e.rangeCount>0&&S.current.getRoot().contains(e.getRangeAt(0).startContainer)&&e.removeAllRanges(),void($&&S.current.getRoot().blur());if(!S.current.getRoot().contains(LTe(document)))return;const t=new window.Range;let n;n="all"===g?S.current.getRoot():"empty"===v.sections[g].type?S.current.getSectionContainer(g):S.current.getSectionContent(g),t.selectNodeContents(n),n.focus(),e.removeAllRanges(),e.addRange(t)},getActiveSectionIndexFromDOM:()=>{const e=LTe(document);return e&&S.current&&S.current.getRoot().contains(e)?S.current.getSectionIndexFromDOMElement(e):null},focusField:(e=0)=>{if(!S.current)return;const t=pCe(e,v.sections);Q(!0),S.current.getSectionContent(t).focus()},setSelectedSections:e=>{if(!S.current)return;const t=pCe(e,v.sections);Q(null!==("all"===t?0:t)),m(e)},isFieldFocused:()=>{const e=LTe(document);return!!S.current&&S.current.getRoot().contains(e)}})),[g,m,v.sections,$]),A=gB((e=>{if(!S.current)return;const t=v.sections[e];S.current.getSectionContent(e).innerHTML=t.value||t.placeholder,R.syncSelectionToDOM()})),j=gB(((e,...t)=>{!e.isDefaultPrevented()&&S.current&&(Q(!0),o?.(e,...t),"all"===g?setTimeout((()=>{const e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void m(k.startIndex);let t=0,n=0;for(;n{if(s?.(e),!S.current||"all"!==g)return;const t=e.target.textContent??"";S.current.getRoot().innerHTML=v.sections.map((e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`)).join(""),R.syncSelectionToDOM(),0===t.length||10===t.charCodeAt(0)?(p(),y(),m("all")):t.length>1?w(t):h({keyPressed:t,sectionIndex:0})})),M=gB((e=>{if(l?.(e),n||"all"!==g)return void e.preventDefault();const t=e.clipboardData.getData("text");e.preventDefault(),p(),w(t)})),I=gB(((...e)=>{a?.(...e),!$&&S.current&&(Q(!0),null!=S.current.getSectionIndexFromDOMElement(LTe(document))||m(k.startIndex))})),z=gB(((...e)=>{i?.(...e),setTimeout((()=>{if(!S.current)return;const e=LTe(document);!S.current.getRoot().contains(e)&&(Q(!1),m(null))}))})),W=gB((e=>t=>{t.isDefaultPrevented()||m(e)})),N=gB((e=>{e.preventDefault()})),L=gB((e=>()=>{m(e)})),F=gB((e=>{if(e.preventDefault(),n||t||"number"!=typeof g)return;const r=v.sections[g],i=e.clipboardData.getData("text"),o=/^[a-zA-Z]+$/.test(i),a=/^[0-9]+$/.test(i),s=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(i);"letter"===r.contentType&&o||"digit"===r.contentType&&a||"digit-with-letter"===r.contentType&&s?(p(),b({activeSection:r,newSectionValue:i,shouldGoToNextSection:!0})):o||a||(p(),w(i))})),U=gB((e=>{e.preventDefault(),e.dataTransfer.dropEffect="none"})),X=gB((e=>{if(!S.current)return;const t=e.target,r=t.textContent??"",i=S.current.getSectionIndexFromDOMElement(t),o=v.sections[i];if(!n&&S.current){if(0===r.length){if(""===o.value)return void A(i);const t=e.nativeEvent.inputType;return"insertParagraph"===t||"insertLineBreak"===t?void A(i):(p(),void O())}h({keyPressed:r,sectionIndex:i}),A(i)}else A(i)}));rL((()=>{if($&&S.current)if("all"===g)S.current.getRoot().focus();else if("number"==typeof g){const e=S.current.getSectionContent(g);e&&e.focus()}}),[g,$]);const q=c.useMemo((()=>v.sections.reduce(((e,t)=>(e[t.type]=_[t.type]({currentDate:null,contentType:t.contentType,format:t.format}),e)),{})),[_,v.sections]),B="all"===g,V=c.useMemo((()=>v.sections.map(((e,r)=>{const i=!B&&!t&&!n;return{container:{"data-sectionindex":r,onClick:W(r)},content:{tabIndex:B||r>0?-1:0,contentEditable:!B&&!t&&!n,role:"spinbutton",id:`${T}-${e.type}`,"aria-labelledby":`${T}-${e.type}`,"aria-readonly":n,"aria-valuenow":gCe(e,C),"aria-valuemin":q[e.type].minimum,"aria-valuemax":q[e.type].maximum,"aria-valuetext":e.value?mCe(e,C):E.empty,"aria-label":E[e.type],"aria-disabled":t,spellCheck:!i&&void 0,autoCapitalize:i?"off":void 0,autoCorrect:i?"off":void 0,[parseInt(c.version,10)>=17?"enterKeyHint":"enterkeyhint"]:i?"next":void 0,children:e.value||e.placeholder,onInput:X,onPaste:F,onFocus:L(r),onDragOver:U,onMouseUp:N,inputMode:"letter"===e.contentType?"text":"numeric"},before:{children:e.startSeparator},after:{children:e.endSeparator}}}))),[v.sections,L,F,U,X,W,N,t,n,B,E,C,q,T]),Y=gB((e=>{w(e.target.value)})),Z=c.useMemo((()=>x?"":f.getV7HiddenInputValueFromSections(v.sections)),[x,v.sections,f]);return c.useEffect((()=>{if(null==S.current)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join("\n"));d&&S.current&&S.current.getSectionContent(k.startIndex).focus()}),[]),{interactions:R,returnedValue:{autoFocus:d,readOnly:n,focused:u??$,sectionListRef:P,onBlur:z,onClick:j,onFocus:I,onInput:D,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:V,tabIndex:0===g?-1:0,contentEditable:B,value:Z,onChange:Y,areAllSectionsEmpty:x}}},IAe=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),zAe=e=>{const t=VN(),n=c.useRef(),r=c.useRef(),{forwardedProps:{onFocus:i,onClick:o,onPaste:a,onBlur:s,inputRef:l,placeholder:u},internalProps:{readOnly:d=!1,disabled:f=!1},parsedSelectedSections:h,activeSectionIndex:p,state:m,fieldValueManager:g,valueManager:v,applyCharacterEditing:O,resetCharacterQuery:y,updateSectionValue:b,updateValueFromValueStr:w,clearActiveSection:k,clearValue:x,setTempAndroidValueStr:_,setSelectedSections:S,getSectionsFromValue:P,areAllSectionsEmpty:E,localizedDigits:C}=e,T=c.useRef(null),$=GN(l,T),Q=c.useMemo((()=>((e,t,n)=>{let r=0,i=n?1:0;const o=[];for(let a=0;a({syncSelectionToDOM:()=>{if(!T.current)return;if(null==h)return void(T.current.scrollLeft&&(T.current.scrollLeft=0));if(T.current!==LTe(document))return;const e=T.current.scrollTop;if("all"===h)T.current.select();else{const e=Q[h],t="empty"===e.type?e.startInInput-e.startSeparator.length:e.startInInput,n="empty"===e.type?e.endInInput+e.endSeparator.length:e.endInInput;t===T.current.selectionStart&&n===T.current.selectionEnd||T.current===LTe(document)&&T.current.setSelectionRange(t,n),clearTimeout(r.current),r.current=setTimeout((()=>{!T.current||T.current!==LTe(document)||T.current.selectionStart!==T.current.selectionEnd||T.current.selectionStart===t&&T.current.selectionEnd===n||R.syncSelectionToDOM()}))}T.current.scrollTop=e},getActiveSectionIndexFromDOM:()=>{const e=T.current.selectionStart??0,t=T.current.selectionEnd??0;if(0===e&&0===t)return null;const n=e<=Q[0].startInInput?1:Q.findIndex((t=>t.startInInput-t.startSeparator.length>e));return-1===n?Q.length-1:n-1},focusField:(e=0)=>{T.current?.focus(),S(e)},setSelectedSections:e=>S(e),isFieldFocused:()=>T.current===LTe(document)})),[T,h,Q,S]),A=()=>{const e=T.current.selectionStart??0;let t;t=e<=Q[0].startInInput||e>=Q[Q.length-1].endInInput?1:Q.findIndex((t=>t.startInInput-t.startSeparator.length>e));const n=-1===t?Q.length-1:t-1;S(n)},j=gB(((...e)=>{i?.(...e);const t=T.current;clearTimeout(n.current),n.current=setTimeout((()=>{t&&t===T.current&&null==p&&(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?S("all"):A())}))})),D=gB(((e,...t)=>{e.isDefaultPrevented()||(o?.(e,...t),A())})),M=gB((e=>{if(a?.(e),e.preventDefault(),d||f)return;const t=e.clipboardData.getData("text");if("number"==typeof h){const e=m.sections[h],n=/^[a-zA-Z]+$/.test(t),r=/^[0-9]+$/.test(t),i=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===e.contentType&&n||"digit"===e.contentType&&r||"digit-with-letter"===e.contentType&&i)return y(),void b({activeSection:e,newSectionValue:t,shouldGoToNextSection:!0});if(n||r)return}y(),w(t)})),I=gB(((...e)=>{s?.(...e),S(null)})),z=gB((e=>{if(d)return;const n=e.target.value;if(""===n)return y(),void x();const r=e.nativeEvent.data,i=r&&r.length>1,o=i?r:n,a=IAe(o);if(null==p||i)return void w(i?r:a);let s;if("all"===h&&1===a.length)s=a;else{const e=IAe(g.getV6InputValueFromSections(Q,C,t));let n=-1,r=-1;for(let t=0;ti.end)return;const o=a.length-e.length+i.end-IAe(i.endSeparator||"").length;s=a.slice(i.start+IAe(i.startSeparator||"").length,o)}if(0===s.length)return navigator.userAgent.toLowerCase().includes("android")&&_(o),y(),void k();O({keyPressed:s,sectionIndex:p})})),W=c.useMemo((()=>void 0!==u?u:g.getV6InputValueFromSections(P(v.emptyValue),C,t)),[u,g,P,v.emptyValue,C,t]),N=c.useMemo((()=>m.tempValueStrAndroid??g.getV6InputValueFromSections(m.sections,C,t)),[m.sections,g,m.tempValueStrAndroid,C,t]);c.useEffect((()=>(T.current&&T.current===LTe(document)&&S("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)})),[]);const L=c.useMemo((()=>null==p||"letter"===m.sections[p].contentType?"text":"numeric"),[p,m.sections]),F=T.current&&T.current===LTe(document);return{interactions:R,returnedValue:{readOnly:d,onBlur:I,onClick:D,onFocus:j,onPaste:M,inputRef:$,enableAccessibleFieldDOMStructure:!1,placeholder:W,inputMode:L,autoComplete:"off",value:!F&&E?"":N,onChange:z}}},WAe=e=>{const t=ECe(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:i,enableAccessibleFieldDOMStructure:o=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:u,clearable:d,onClear:f},fieldValueManager:h,valueManager:p,validator:m}=e,g=VN(),v=(e=>{const t=ECe(),n=BCe(),r=PCe(),i=VN(),{valueManager:o,fieldValueManager:a,valueType:s,validator:l,internalProps:u,internalProps:{value:d,defaultValue:f,referenceDate:h,onChange:p,format:m,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:O,shouldRespectLeadingZeros:y=!1,timezone:b,enableAccessibleFieldDOMStructure:w=!1}}=e,{timezone:k,value:x,handleValueChange:_}=t$e({timezone:b,value:d,defaultValue:f,referenceDate:h,onChange:p,valueManager:o}),S=c.useMemo((()=>(e=>{const t=e.date(void 0);return"0"===e.formatByString(e.setSeconds(t,0),"s")?nCe:Array.from({length:10}).map(((n,r)=>e.formatByString(e.setSeconds(t,r),"s")))})(t)),[t]),P=c.useMemo((()=>((e,t,n)=>{const r=e.date(void 0,n),i=e.endOfYear(r),o=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=DEe(e,r).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:cCe(e,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):a,longestMonth:s}),weekDay:({format:t,contentType:n})=>{if("digit"===n){const n=eCe(e,t).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:({format:n})=>{const i=e.getHours(o);return rCe(e.formatByString(e.endOfDay(r),n),t)!==i.toString()?{minimum:1,maximum:Number(rCe(e.formatByString(e.startOfDay(r),n),t))}:{minimum:0,maximum:i}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}})(t,S,k)),[t,S,k]),E=c.useCallback(((e,r=null)=>a.getSectionsFromValue(t,e,r,(e=>jAe({utils:t,localeText:n,localizedDigits:S,format:m,date:e,formatDensity:g,shouldRespectLeadingZeros:y,enableAccessibleFieldDOMStructure:w,isRtl:i})))),[a,m,n,S,i,y,t,g,w]),[C,T]=c.useState((()=>{const e=E(x),n={sections:e,value:x,referenceValue:o.emptyValue,tempValueStrAndroid:null},r=(e=>Math.max(...e.map((e=>HEe[e.type]??1))))(e);return kEe({},n,{referenceValue:o.getInitialReferenceValue({referenceDate:h,value:x,utils:t,props:u,granularity:r,timezone:k})})})),[$,Q]=j3({controlled:v,default:null,name:"useField",state:"selectedSections"}),R=e=>{Q(e),O?.(e)},A=c.useMemo((()=>pCe($,C.sections)),[$,C.sections]),j="all"===A?0:A,D=({value:e,referenceValue:n,sections:i})=>{if(T((t=>kEe({},t,{sections:i,value:e,referenceValue:n,tempValueStrAndroid:null}))),o.areValuesEqual(t,C.value,e))return;const a={validationError:l({adapter:r,value:e,timezone:k,props:u})};_(e,a)},M=(e,t)=>{const n=[...C.sections];return n[e]=kEe({},n[e],{value:t,modified:!0}),n};return c.useEffect((()=>{const e=E(C.value);T((t=>kEe({},t,{sections:e})))}),[m,t.locale,i]),c.useEffect((()=>{let e;e=!o.areValuesEqual(t,C.value,x)||o.getTimezone(t,C.value)!==o.getTimezone(t,x),e&&T((e=>kEe({},e,{value:x,referenceValue:a.updateReferenceValue(t,x,e.referenceValue),sections:E(x)})))}),[x]),{state:C,activeSectionIndex:j,parsedSelectedSections:A,setSelectedSections:R,clearValue:()=>{D({value:o.emptyValue,referenceValue:C.referenceValue,sections:E(o.emptyValue)})},clearActiveSection:()=>{if(null==j)return;const e=C.sections[j],n=a.getActiveDateManager(t,C,e),r=n.getSections(C.sections).filter((e=>""!==e.value)).length===(""===e.value?0:1),i=M(j,""),o=r?null:t.getInvalidDate(),s=n.getNewValuesFromNewActiveDate(o);D(kEe({},s,{sections:i}))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:r})=>{r&&j{const r=t.some((e=>"day"===e.type)),i=[],o=[];for(let e=0;ekEe({},e,u,{sections:o,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const r=a.parseValueStr(e,C.referenceValue,((e,r)=>{const o=t.parse(e,m);if(null==o||!t.isValid(o))return null;const a=jAe({utils:t,localeText:n,localizedDigits:S,format:m,date:o,formatDensity:g,shouldRespectLeadingZeros:y,enableAccessibleFieldDOMStructure:w,isRtl:i});return hCe(t,o,a,r,!1)})),o=a.updateReferenceValue(t,r,C.referenceValue);D({value:r,referenceValue:o,sections:E(r,C.sections)})},setTempAndroidValueStr:e=>T((t=>kEe({},t,{tempValueStrAndroid:e}))),getSectionsFromValue:E,sectionsValueBoundaries:P,localizedDigits:S,timezone:k}})(e),{state:O,activeSectionIndex:y,parsedSelectedSections:b,setSelectedSections:w,clearValue:k,clearActiveSection:x,updateSectionValue:_,setTempAndroidValueStr:S,sectionsValueBoundaries:P,localizedDigits:E,timezone:C}=v,T=(({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:i,timezone:o})=>{const a=ECe(),[s,l]=c.useState(null),u=gB((()=>l(null)));c.useEffect((()=>{null!=s&&e[s.sectionIndex]?.type!==s.sectionType&&u()}),[e,s,u]),c.useEffect((()=>{if(null!=s){const e=setTimeout((()=>u()),5e3);return()=>{clearTimeout(e)}}return()=>{}}),[s,u]);const d=({keyPressed:t,sectionIndex:n},r,i)=>{const o=t.toLowerCase(),a=e[n];if(null!=s&&(!i||i(s.value))&&s.sectionIndex===n){const e=`${s.value}${o}`,t=r(e,a);if(!DAe(t))return l({sectionIndex:n,value:e,sectionType:a.type}),t}const c=r(o,a);return DAe(c)&&!c.saveQuery?(u(),null):(l({sectionIndex:n,value:o,sectionType:a.type}),DAe(c)?null:c)},f=gB((s=>{const l=e[s.sectionIndex],u=oCe(s.keyPressed,r)?(e=>{const t=(e,t)=>{const i=rCe(e,r),o=Number(i),s=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(o>s.maximum)return{saveQuery:!1};if(os.maximum||i.length===s.maximum.toString().length;return{sectionValue:sCe(a,o,s,r,t),shouldGoToNextSection:l}};return d(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const r=dCe(a,"digit","month","MM"),i=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});return DAe(i)?i:kEe({},i,{sectionValue:uCe(a,i.sectionValue,"MM",n.format)})}if("weekDay"===n.type){const r=t(e,n);return DAe(r)?r:kEe({},r,{sectionValue:eCe(a,n.format)[Number(r.sectionValue)-1]})}return{saveQuery:!1}}),(e=>oCe(e,r)))})(kEe({},s,{keyPressed:iCe(s.keyPressed,r)})):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,r,i)=>{const s=e=>tCe(a,o,n.type,e);if("letter"===n.contentType)return t(n.format,s(n.format),e);if(r&&null!=i&&"letter"===JEe(a,r).contentType){const n=s(r),o=t(0,n,e);return DAe(o)?{saveQuery:!1}:kEe({},o,{sectionValue:i(o.sectionValue,n)})}return{saveQuery:!1}};return d(e,((e,t)=>{switch(t.type){case"month":{const r=e=>uCe(a,e,a.formats.month,t.format);return n(e,t,a.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,a.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(s);null!=u?t({activeSection:l,newSectionValue:u.sectionValue,shouldGoToNextSection:u.shouldGoToNextSection}):i(null)}));return{applyCharacterEditing:f,resetCharacterQuery:u}})({sections:O.sections,updateSectionValue:_,sectionsValueBoundaries:P,localizedDigits:E,setTempAndroidValueStr:S,timezone:C}),{resetCharacterQuery:$}=T,Q=p.areValuesEqual(t,O.value,p.emptyValue),R=o?MAe:zAe,A=c.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const i=0===r?null:r-1,o=r===e.length-1?null:r+1;n[r]={leftIndex:i,rightIndex:o}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex(((e,t)=>t>=o&&e.endSeparator?.includes(" ")&&" / "!==e.endSeparator)),-1===a&&(a=e.length-1);for(let e=a;e>=o;e-=1)i[e]=s,r[s]=e,s-=1;o=a+1}return e.forEach(((t,o)=>{const a=i[o],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[o]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(O.sections,g&&!o)),[O.sections,g,o]),{returnedValue:j,interactions:D}=R(kEe({},e,v,T,{areAllSectionsEmpty:Q,sectionOrder:A})),M=gB((e=>{if(l?.(e),!a)switch(!0){case(e.ctrlKey||e.metaKey)&&"A"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey:e.preventDefault(),w("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==b)w(A.startIndex);else if("all"===b)w(A.endIndex);else{const e=A.neighbors[b].rightIndex;null!==e&&w(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==b)w(A.endIndex);else if("all"===b)w(A.startIndex);else{const e=A.neighbors[b].leftIndex;null!==e&&w(e)}break;case"Delete"===e.key:if(e.preventDefault(),s)break;null==b||"all"===b?k():x(),$();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),s||null==y)break;const n=O.sections[y],r=h.getActiveDateManager(t,O,n),o=((e,t,n,r,i,o,a,s)=>{const l=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),u="Home"===r,c="End"===r,d=""===n.value||u||c;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),f=t=>sCe(e,t,r,o,n),h="minutes"===n.type&&s?.minutesStep?s.minutesStep:1;let p=parseInt(rCe(n.value,o),10)+l*h;if(d){if("year"===n.type&&!c&&!u)return e.formatByString(e.date(void 0,t),n.format);p=l>0||u?r.minimum:r.maximum}return p%h!=0&&((l<0||u)&&(p+=h-(h+p)%h),(l>0||c)&&(p-=p%h)),p>r.maximum?f(r.minimum+(p-r.maximum-1)%(r.maximum-r.minimum+1)):p{const r=tCe(e,t,n.type,n.format);if(0===r.length)return n.value;if(d)return l>0||u?r[0]:r[r.length-1];const i=r.indexOf(n.value);return r[((i+l)%r.length+r.length)%r.length]})()})(t,C,n,e.key,P,E,r.date,{minutesStep:i});_({activeSection:n,newSectionValue:o,shouldGoToNextSection:!1});break}}}));rL((()=>{D.syncSelectionToDOM()}));const{hasValidationError:I}=e$e({props:n,validator:m,timezone:C,value:O.value,onError:n.onError}),z=c.useMemo((()=>void 0!==u?u:I),[I,u]);c.useEffect((()=>{z||null!=y||$()}),[O.referenceValue,y,z]),c.useEffect((()=>{null!=O.tempValueStrAndroid&&null!=y&&($(),x())}),[O.sections]),c.useImperativeHandle(r,(()=>({getSections:()=>O.sections,getActiveSectionIndex:D.getActiveSectionIndexFromDOM,setSelectedSections:D.setSelectedSections,focusField:D.focusField,isFieldFocused:D.isFieldFocused})));const W={onKeyDown:M,onClear:gB(((e,...t)=>{e.preventDefault(),f?.(e,...t),k(),D.isFieldFocused()?w(A.startIndex):D.focusField(0)})),error:z,clearable:Boolean(d&&!Q&&!s&&!a)},N={disabled:a,readOnly:s};return kEe({},e.forwardedProps,W,N,j)},NAe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],LAe=(e,t)=>c.useMemo((()=>{const n=kEe({},e),r={},i=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return NAe.forEach(i),"date"===t?JCe.forEach(i):"time"===t?eTe.forEach(i):"date-time"===t&&(JCe.forEach(i),eTe.forEach(i),tTe.forEach(i)),{forwardedProps:n,internalProps:r}}),[e,t]),FAe=["clearable","onClear","InputProps","sx","slots","slotProps"],UAe=["ownerState"],XAe=e=>{const t=BCe(),{clearable:n,onClear:r,InputProps:i,sx:o,slots:a,slotProps:s}=e,l=EEe(e,FAe),u=a?.clearButton??zTe,d=EEe(b3({elementType:u,externalSlotProps:s?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),UAe),f=a?.clearIcon??_Qe,h=b3({elementType:f,externalSlotProps:s?.clearIcon,ownerState:{}});return kEe({},l,{InputProps:kEe({},i,{endAdornment:(0,lM.jsxs)(c.Fragment,{children:[n&&(0,lM.jsx)(fTe,{position:"end",sx:{marginRight:i?.endAdornment?-1:-1.5},children:(0,lM.jsx)(u,kEe({},d,{onClick:r,children:(0,lM.jsx)(f,kEe({fontSize:"small"},h))}))}),i?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o)?o:[o]]})};function qAe(e){return cB("MuiPickersTextField",e)}function BAe(e){return cB("MuiPickersInputBase",e)}dB("MuiPickersTextField",["root","focused","disabled","error","required"]);const VAe=dB("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function YAe(e){return cB("MuiPickersOutlinedInput",e)}const ZAe=kEe({},VAe,dB("MuiPickersOutlinedInput",["root","notchedOutline","input"])),GAe=["children","className","label","notched","shrink"],HAe=Pq("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),KAe=Pq("span")((({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"}))),JAe=Pq("legend")((({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function eje(e){const{className:t,label:n}=e,r=EEe(e,GAe),i=null!=n&&""!==n,o=kEe({},e,{withLabel:i});return(0,lM.jsx)(HAe,kEe({"aria-hidden":!0,className:t},r,{ownerState:o,children:(0,lM.jsx)(JAe,{ownerState:o,children:i?(0,lM.jsx)(KAe,{children:n}):(0,lM.jsx)(KAe,{className:"notranslate",children:"​"})})}))}function tje(e){return cB("MuiPickersSectionList",e)}const nje=dB("MuiPickersSectionList",["root","section","sectionContent"]),rje=["slots","slotProps","elements","sectionListRef"],ije=Pq("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),oje=Pq("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),aje=Pq("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),sje=Pq("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"});function lje(e){const{slots:t,slotProps:n,element:r,classes:i}=e,o=t?.section??oje,a=b3({elementType:o,externalSlotProps:n?.section,externalForwardedProps:r.container,className:i.section,ownerState:{}}),s=t?.sectionContent??sje,l=b3({elementType:s,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:{}}),u=t?.sectionSeparator??aje,c=b3({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=b3({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return(0,lM.jsxs)(o,kEe({},a,{children:[(0,lM.jsx)(u,kEe({},c)),(0,lM.jsx)(s,kEe({},l)),(0,lM.jsx)(u,kEe({},d))]}))}const uje=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:o,sectionListRef:a}=n,s=EEe(n,rje),l=(e=>{const{classes:t}=e;return qN({root:["root"],section:["section"],sectionContent:["sectionContent"]},tje,t)})(n),u=c.useRef(null),d=GN(t,u),f=e=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${e} before the mount of the component.`);return u.current};c.useImperativeHandle(a,(()=>({getRoot:()=>f("getRoot"),getSectionContainer:e=>f("getSectionContainer").querySelector(`.${nje.section}[data-sectionindex="${e}"]`),getSectionContent:e=>f("getSectionContent").querySelector(`.${nje.section}[data-sectionindex="${e}"] .${nje.sectionContent}`),getSectionIndexFromDOMElement(e){const t=f("getSectionIndexFromDOMElement");if(null==e||!t.contains(e))return null;let n=null;return e.classList.contains(nje.section)?n=e:e.classList.contains(nje.sectionContent)&&(n=e.parentElement),null==n?null:Number(n.dataset.sectionindex)}})));const h=r?.root??ije,p=b3({elementType:h,externalSlotProps:i?.root,externalForwardedProps:s,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:l.root,ownerState:{}});return(0,lM.jsx)(h,kEe({},p,{children:p.contentEditable?o.map((({content:e,before:t,after:n})=>`${t.children}${e.children}${n.children}`)).join(""):(0,lM.jsx)(c.Fragment,{children:o.map(((e,t)=>(0,lM.jsx)(lje,{slots:r,slotProps:i,element:e,classes:l},t)))})}))})),cje=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],dje=Pq("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>kEe({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:(.15/16,Math.round(937.5)/1e5+"em"),variants:[{props:{fullWidth:!0},style:{width:"100%"}}]}))),fje=Pq(ije,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})((({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:t,filled:n,label:r})=>!e&&!t&&!n&&null==r,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:"light"===e.palette.mode?.42:.5}}]}))),hje=Pq(oje,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})((({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"}))),pje=Pq(sje,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})((({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"}))),mje=Pq(aje,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})((()=>({whiteSpace:"pre",letterSpacing:"inherit"}))),gje=Pq("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(kEe({},{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"})),vje=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:o,onChange:a,id:s,endAdornment:l,startAdornment:u,renderSuffix:d,slots:f,slotProps:h,contentEditable:p,tabIndex:m,onInput:g,onPaste:v,onKeyDown:O,name:y,readOnly:b,inputProps:w,inputRef:k,sectionListRef:x}=n,_=EEe(n,cje),S=GN(t,c.useRef(null)),P=GN(w?.ref,k),E=VN(),C=aTe();if(!C)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");c.useEffect((()=>{C&&C.setAdornedStart(Boolean(u))}),[C,u]),c.useEffect((()=>{C&&(i?C.onEmpty():C.onFilled())}),[C,i]);const T=kEe({},n,C,{isRtl:E}),$=(e=>{const{focused:t,disabled:n,error:r,classes:i,fullWidth:o,readOnly:a,color:s,size:l,endAdornment:u,startAdornment:c}=e;return qN({root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",o&&"fullWidth",`color${dU(s)}`,"small"===l&&"inputSizeSmall",Boolean(c)&&"adornedStart",Boolean(u)&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]},BAe,i)})(T),Q=f?.root||dje,R=b3({elementType:Q,externalSlotProps:h?.root,externalForwardedProps:_,additionalProps:{"aria-invalid":C.error,ref:S},className:$.root,ownerState:T}),A=f?.input||fje;return(0,lM.jsxs)(Q,kEe({},R,{children:[u,(0,lM.jsx)(uje,{sectionListRef:x,elements:r,contentEditable:p,tabIndex:m,className:$.sectionsContainer,onFocus:e=>{C.disabled?e.stopPropagation():C.onFocus?.(e)},onBlur:C.onBlur,onInput:g,onPaste:v,onKeyDown:O,slots:{root:A,section:hje,sectionContent:pje,sectionSeparator:mje},slotProps:{root:{ownerState:T},sectionContent:{className:VAe.sectionContent},sectionSeparator:({position:e})=>({className:"before"===e?VAe.sectionBefore:VAe.sectionAfter})}}),l,d?d(kEe({},C)):null,(0,lM.jsx)(gje,kEe({name:y,className:$.input,value:o,onChange:a,id:s,"aria-hidden":"true",tabIndex:-1,readOnly:b,required:C.required,disabled:C.disabled},w,{ref:P}))]}))})),Oje=["label","autoFocus","ownerState","notched"],yje=Pq(dje,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ZAe.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ZAe.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${ZAe.focused} .${ZAe.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${ZAe.disabled}`]:{[`& .${ZAe.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${ZAe.error} .${ZAe.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t]?.main??!1)).map((t=>({props:{color:t},style:{[`&.${ZAe.focused}:not(.${ZAe.error}) .${ZAe.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})))}})),bje=Pq(fje,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),wje=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:o}=n,a=EEe(n,Oje),s=aTe(),l=kEe({},n,i,s,{color:s?.color||"primary"}),u=(e=>{const{classes:t}=e;return kEe({},t,qN({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},YAe,t))})(l);return(0,lM.jsx)(vje,kEe({slots:{root:yje,input:bje},renderSuffix:e=>(0,lM.jsx)(eje,{shrink:Boolean(o||e.adornedStart||e.focused||e.filled),notched:Boolean(o||e.adornedStart||e.focused||e.filled),className:u.notchedOutline,label:null!=r&&""!==r&&s?.required?(0,lM.jsxs)(c.Fragment,{children:[r," ","*"]}):r,ownerState:l})},a,{label:r,classes:u,ref:t}))}));function kje(e){return cB("MuiPickersFilledInput",e)}wje.muiName="Input";const xje=kEe({},VAe,dB("MuiPickersFilledInput",["root","underline","input"])),_je=["label","autoFocus","disableUnderline","ownerState"],Sje=Pq(dje,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dX(e)&&"disableUnderline"!==e})((({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${xje.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${xje.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[...Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t].main)).map((t=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}}))),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xje.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xje.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xje.disabled}, .${xje.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xje.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:12}},{props:({endAdornment:e})=>!!e,style:{paddingRight:12}}]}})),Pje=Pq(fje,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),Eje=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:o}=n,a=EEe(n,_je),s=aTe(),l=(e=>{const{classes:t,disableUnderline:n}=e;return kEe({},t,qN({root:["root",!n&&"underline"],input:["input"]},kje,t))})(kEe({},n,o,s,{color:s?.color||"primary"}));return(0,lM.jsx)(vje,kEe({slots:{root:Sje,input:Pje},slotProps:{root:{disableUnderline:i}}},a,{label:r,classes:l,ref:t}))}));function Cje(e){return cB("MuiPickersFilledInput",e)}Eje.muiName="Input";const Tje=kEe({},VAe,dB("MuiPickersInput",["root","input"])),$je=["label","autoFocus","disableUnderline","ownerState"],Qje=Pq(dje,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t].main)).map((t=>({props:{color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Tje.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Tje.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Tje.disabled}, .${Tje.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Tje.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}})),Rje=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:o}=n,a=EEe(n,$je),s=aTe(),l=(e=>{const{classes:t,disableUnderline:n}=e;return kEe({},t,qN({root:["root",!n&&"underline"],input:["input"]},Cje,t))})(kEe({},n,o,s,{disableUnderline:i,color:s?.color||"primary"}));return(0,lM.jsx)(vje,kEe({slots:{root:Qje}},a,{label:r,classes:l,ref:t}))}));Rje.muiName="Input";const Aje=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],jje={standard:Rje,filled:Eje,outlined:wje},Dje=Pq(_Re,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mje=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:o,color:a="primary",disabled:s=!1,error:l=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:h,inputRef:p,sectionListRef:m,elements:g,areAllSectionsEmpty:v,onClick:O,onKeyDown:y,onKeyUp:b,onPaste:w,onInput:k,endAdornment:x,startAdornment:_,tabIndex:S,contentEditable:P,focused:E,value:C,onChange:T,fullWidth:$,id:Q,name:R,helperText:A,FormHelperTextProps:j,label:D,InputLabelProps:M}=n,I=EEe(n,Aje),z=GN(t,c.useRef(null)),W=R3(Q),N=A&&W?`${W}-helper-text`:void 0,L=D&&W?`${W}-label`:void 0,F=kEe({},n,{color:a,disabled:s,error:l,focused:E,required:d,variant:u}),U=(e=>{const{focused:t,disabled:n,classes:r,required:i}=e;return qN({root:["root",t&&!n&&"focused",n&&"disabled",i&&"required"]},qAe,r)})(F),X=jje[u];return(0,lM.jsxs)(Dje,kEe({className:XN(U.root,o),ref:z,focused:E,onFocus:r,onBlur:i,disabled:s,variant:u,error:l,color:a,fullWidth:$,required:d,ownerState:F},I,{children:[(0,lM.jsx)(bRe,kEe({htmlFor:W,id:L},M,{children:D})),(0,lM.jsx)(X,kEe({elements:g,areAllSectionsEmpty:v,onClick:O,onKeyDown:y,onKeyUp:b,onInput:k,onPaste:w,endAdornment:x,startAdornment:_,tabIndex:S,contentEditable:P,value:C,onChange:T,id:W,fullWidth:$,inputProps:h,inputRef:p,sectionListRef:m,label:D,name:R,role:"group","aria-labelledby":L},f)),A&&(0,lM.jsx)($Re,kEe({id:N},j,{children:A}))]}))})),Ije=["enableAccessibleFieldDOMStructure"],zje=["InputProps","readOnly"],Wje=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Nje=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=EEe(e,Ije);if(t){const{InputProps:e,readOnly:t}=n;return kEe({},EEe(n,zje),{InputProps:kEe({},e??{},{readOnly:t})})}const{onPaste:r,onKeyDown:i,inputMode:o,readOnly:a,InputProps:s,inputProps:l,inputRef:u}=n;return kEe({},EEe(n,Wje),{InputProps:kEe({},s??{},{readOnly:a}),inputProps:kEe({},l??{},{inputMode:o,onPaste:r,onKeyDown:i,ref:u})})},Lje=["slots","slotProps","InputProps","inputProps"],Fje=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:o,inputProps:a}=n,s=EEe(n,Lje),l=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Mje:QAe),c=b3({elementType:u,externalSlotProps:i?.textField,externalForwardedProps:s,additionalProps:{ref:t},ownerState:l});c.inputProps=kEe({},a,c.inputProps),c.InputProps=kEe({},o,c.InputProps);const d=(e=>{const t=(e=>{const t=ECe(),n=CCe();return kEe({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:jEe(t,e.minDate,n.minDate),maxDate:jEe(t,e.maxDate,n.maxDate)})})(e),{forwardedProps:n,internalProps:r}=LAe(t,"date");return WAe({forwardedProps:n,internalProps:r,valueManager:OCe,fieldValueManager:yCe,validator:iTe,valueType:"date"})})(c),f=Nje(d),h=XAe(kEe({},f,{slots:r,slotProps:i}));return(0,lM.jsx)(u,kEe({},h))})),Uje=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=PCe();return c.useCallback((u=>null!==iTe({adapter:l,value:u,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a}})),[l,e,t,n,r,i,o,a,s])},Xje=e=>cB("MuiPickersFadeTransitionGroup",e),qje=(dB("MuiPickersFadeTransitionGroup",["root"]),Pq(yTe,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function Bje(e){const t=CEe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=(e=>{const{classes:t}=e;return qN({root:["root"]},Xje,t)})(t),s=eB();return i?n:(0,lM.jsx)(qje,{className:XN(a.root,r),children:(0,lM.jsx)(aB,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function Vje(e){return cB("MuiPickersDay",e)}const Yje=dB("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Zje=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Gje=({theme:e})=>kEe({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Yje.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Yje.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Yje.disabled}:not(.${Yje.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yje.disabled}&.${Yje.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:"0 2px"}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Yje.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Hje=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Kje=Pq(ATe,{name:"MuiPickersDay",slot:"Root",overridesResolver:Hje})(Gje),Jje=Pq("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Hje})((({theme:e})=>kEe({},Gje({theme:e}),{opacity:0,pointerEvents:"none"}))),eDe=()=>{},tDe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:l=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:h=eDe,onBlur:p=eDe,onKeyDown:m=eDe,onMouseDown:g=eDe,onMouseEnter:v=eDe,outsideCurrentMonth:O,selected:y=!1,showDaysOutsideCurrentMonth:b=!1,children:w,today:k=!1}=n,x=EEe(n,Zje),_=kEe({},n,{autoFocus:r,disabled:a,disableHighlightToday:s,disableMargin:l,selected:y,showDaysOutsideCurrentMonth:b,today:k}),S=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return qN({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Vje,l)})(_),P=ECe(),E=c.useRef(null),C=GN(E,t);return rL((()=>{!r||a||u||O||E.current.focus()}),[r,a,u,O]),O&&!b?(0,lM.jsx)(Jje,{className:XN(S.root,S.hiddenDaySpacingFiller,i),ownerState:_,role:x.role}):(0,lM.jsx)(Kje,kEe({className:XN(S.root,i),ref:C,centerRipple:!0,disabled:a,tabIndex:y?0:-1,onKeyDown:e=>m(e,o),onFocus:e=>h(e,o),onBlur:e=>p(e,o),onMouseEnter:e=>v(e,o),onClick:e=>{a||f(o),O&&e.currentTarget.focus(),d&&d(e)},onMouseDown:e=>{g(e),O&&e.preventDefault()}},x,{ownerState:_,children:w||P.format(o,"dayOfMonth")}))})),nDe=c.memo(tDe);function rDe(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var iDe=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=rDe(n.className,r):n.setAttribute("class",rDe(n.className&&n.className.baseVal||"",r)));var n,r}))},oDe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;icB("MuiPickersSlideTransition",e),lDe=dB("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),uDe=["children","className","reduceAnimations","slideDirection","transKey","classes"],cDe=Pq(yTe,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${lDe["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${lDe["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${lDe.slideEnterActive}`]:t.slideEnterActive},{[`.${lDe.slideExit}`]:t.slideExit},{[`.${lDe["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${lDe["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})((({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${lDe["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${lDe["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${lDe.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${lDe.slideExit}`]:{transform:"translate(0%)"},[`& .${lDe["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${lDe["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}})),dDe=e=>cB("MuiDayCalendar",e),fDe=(dB("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),hDe=["ownerState"],pDe=Pq("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mDe=Pq("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),gDe=Pq(WCe,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary}))),vDe=Pq(WCe,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled}))),ODe=Pq(WCe,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})((({theme:e})=>kEe({},e.typography.caption,{width:36,height:36,padding:0,margin:"0 2px",color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"}))),yDe=Pq("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),bDe=Pq((function(e){const t=CEe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=EEe(t,uDe),s=(e=>{const{classes:t,slideDirection:n}=e;return qN({root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]},sDe,t)})(t),l=eB();if(i)return(0,lM.jsx)("div",{className:XN(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return(0,lM.jsx)(cDe,{className:XN(s.root,r),childFactory:e=>c.cloneElement(e,{classNames:u}),role:"presentation",children:(0,lM.jsx)(aDe,kEe({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),wDe=Pq("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),kDe=Pq("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function xDe(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:i,isDateDisabled:o,currentMonthNumber:a,isViewFocused:s}=e,l=EEe(e,fDe);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:p,slotProps:m,timezone:g}=t,v=ECe(),O=TCe(g),y=null!==r&&v.isSameDay(n,r),b=i.some((e=>v.isSameDay(e,n))),w=v.isSameDay(n,O),k=p?.day??nDe,x=EEe(b3({elementType:k,externalSlotProps:m?.day,additionalProps:kEe({disableHighlightToday:d,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":v.toJsDate(n).valueOf()},l),ownerState:kEe({},t,{day:n,selected:b})}),hDe),_=c.useMemo((()=>u||o(n)),[u,o,n]),S=c.useMemo((()=>v.getMonth(n)!==a),[v,n,a]),P=c.useMemo((()=>{const e=v.startOfMonth(v.setMonth(n,a));return h?v.isSameDay(n,v.startOfWeek(e)):v.isSameDay(n,e)}),[a,n,h,v]),E=c.useMemo((()=>{const e=v.endOfMonth(v.setMonth(n,a));return h?v.isSameDay(n,v.endOfWeek(e)):v.isSameDay(n,e)}),[a,n,h,v]);return(0,lM.jsx)(k,kEe({},x,{day:n,disabled:_,autoFocus:s&&y,today:w,outsideCurrentMonth:S,isFirstVisibleCell:P,isLastVisibleCell:E,selected:b,tabIndex:y?0:-1,"aria-selected":b,"aria-current":w?"date":void 0}))}function _De(e){const t=CEe({props:e,name:"MuiDayCalendar"}),n=ECe(),{onFocusedDayChange:r,className:i,currentMonth:o,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:f,reduceAnimations:h,renderLoading:p=(()=>(0,lM.jsx)("span",{children:"..."})),slideDirection:m,TransitionProps:g,disablePast:v,disableFuture:O,minDate:y,maxDate:b,shouldDisableDate:w,shouldDisableMonth:k,shouldDisableYear:x,dayOfWeekFormatter:_=(e=>n.format(e,"weekdayShort").charAt(0).toUpperCase()),hasFocus:S,onFocusedViewChange:P,gridLabelId:E,displayWeekNumber:C,fixedWeekNumber:T,autoFocus:$,timezone:Q}=t,R=TCe(Q),A=(e=>{const{classes:t}=e;return qN({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},dDe,t)})(t),j=VN(),D=Uje({shouldDisableDate:w,shouldDisableMonth:k,shouldDisableYear:x,minDate:y,maxDate:b,disablePast:v,disableFuture:O,timezone:Q}),M=BCe(),[I,z]=j3({name:"DayCalendar",state:"hasFocus",controlled:S,default:$??!1}),[W,N]=c.useState((()=>s||R)),L=gB((e=>{f||u(e)})),F=e=>{D(e)||(r(e),N(e),P?.(!0),z(!0))},U=gB(((e,t)=>{switch(e.key){case"ArrowUp":F(n.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":F(n.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const r=n.addDays(t,j?1:-1),i=n.addMonths(t,j?1:-1),o=AEe({utils:n,date:r,minDate:j?r:n.startOfMonth(i),maxDate:j?n.endOfMonth(i):r,isDateDisabled:D,timezone:Q});F(o||r),e.preventDefault();break}case"ArrowRight":{const r=n.addDays(t,j?-1:1),i=n.addMonths(t,j?-1:1),o=AEe({utils:n,date:r,minDate:j?n.startOfMonth(i):r,maxDate:j?r:n.endOfMonth(i),isDateDisabled:D,timezone:Q});F(o||r),e.preventDefault();break}case"Home":F(n.startOfWeek(t)),e.preventDefault();break;case"End":F(n.endOfWeek(t)),e.preventDefault();break;case"PageUp":F(n.addMonths(t,1)),e.preventDefault();break;case"PageDown":F(n.addMonths(t,-1)),e.preventDefault()}})),X=gB(((e,t)=>F(t))),q=gB(((e,t)=>{I&&n.isSameDay(W,t)&&P?.(!1)})),B=n.getMonth(o),V=n.getYear(o),Y=c.useMemo((()=>a.filter((e=>!!e)).map((e=>n.startOfDay(e)))),[n,a]),Z=`${V}-${B}`,G=c.useMemo((()=>c.createRef()),[Z]),H=c.useMemo((()=>{const e=n.startOfMonth(o),t=n.endOfMonth(o);return D(W)||n.isAfterDay(W,t)||n.isBeforeDay(W,e)?AEe({utils:n,date:W,minDate:e,maxDate:t,disablePast:v,disableFuture:O,isDateDisabled:D,timezone:Q}):W}),[o,O,v,W,D,n,Q]),K=c.useMemo((()=>{const e=n.getWeekArray(o);let t=n.addMonths(o,1);for(;T&&e.length{e.length(0,lM.jsx)(gDe,{variant:"caption",role:"columnheader","aria-label":n.format(e,"weekday"),className:A.weekDayLabel,children:_(e)},t.toString())))]}),l?(0,lM.jsx)(yDe,{className:A.loadingContainer,children:p()}):(0,lM.jsx)(bDe,kEe({transKey:Z,onExited:d,reduceAnimations:h,slideDirection:m,className:XN(i,A.slideTransition)},g,{nodeRef:G,children:(0,lM.jsx)(wDe,{ref:G,role:"rowgroup",className:A.monthContainer,children:K.map(((e,r)=>(0,lM.jsxs)(kDe,{role:"row",className:A.weekContainer,"aria-rowindex":r+1,children:[C&&(0,lM.jsx)(ODe,{className:A.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(e[0])),children:M.calendarWeekNumberText(n.getWeekNumber(e[0]))}),e.map(((e,n)=>(0,lM.jsx)(xDe,{parentProps:t,day:e,selectedDays:Y,focusableDay:H,onKeyDown:U,onFocus:X,onBlur:q,onDaySelect:L,isDateDisabled:D,currentMonthNumber:B,isViewFocused:I,"aria-colindex":n+1},e.toString())))]},`week-${e[0]}`)))})}))]})}function SDe(e){return cB("MuiPickersMonth",e)}const PDe=dB("MuiPickersMonth",["root","monthButton","disabled","selected"]),EDe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],CDe=Pq("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),TDe=Pq("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${PDe.disabled}`]:t.disabled},{[`&.${PDe.selected}`]:t.selected}]})((({theme:e})=>kEe({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${PDe.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${PDe.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),$De=c.memo((function(e){const t=CEe({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:d,onFocus:f,onBlur:h,"aria-current":p,"aria-label":m,slots:g,slotProps:v}=t,O=EEe(t,EDe),y=c.useRef(null),b=(e=>{const{disabled:t,selected:n,classes:r}=e;return qN({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},SDe,r)})(t);rL((()=>{n&&y.current?.focus()}),[n]);const w=g?.monthButton??TDe,k=b3({elementType:w,externalSlotProps:v?.monthButton,additionalProps:{children:i,disabled:o,tabIndex:l,ref:y,type:"button",role:"radio","aria-current":p,"aria-checked":a,"aria-label":m,onClick:e=>u(e,s),onKeyDown:e=>d(e,s),onFocus:e=>f(e,s),onBlur:e=>h(e,s)},ownerState:t,className:b.monthButton});return(0,lM.jsx)(CDe,kEe({className:XN(b.root,r),ownerState:t},O,{children:(0,lM.jsx)(w,kEe({},k))}))}));function QDe(e){return cB("MuiMonthCalendar",e)}dB("MuiMonthCalendar",["root"]);const RDe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],ADe=Pq("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:tQe,boxSizing:"border-box"}),jDe=c.forwardRef((function(e,t){const n=function(e,t){const n=ECe(),r=CCe(),i=CEe({props:e,name:"MuiMonthCalendar"});return kEe({disableFuture:!1,disablePast:!1},i,{minDate:jEe(n,i.minDate,r.minDate),maxDate:jEe(n,i.maxDate,r.maxDate)})}(e),{className:r,value:i,defaultValue:o,referenceDate:a,disabled:s,disableFuture:l,disablePast:u,maxDate:d,minDate:f,onChange:h,shouldDisableMonth:p,readOnly:m,autoFocus:g=!1,onMonthFocus:v,hasFocus:O,onFocusedViewChange:y,monthsPerRow:b=3,timezone:w,gridLabelId:k,slots:x,slotProps:_}=n,S=EEe(n,RDe),{value:P,handleValueChange:E,timezone:C}=n$e({name:"MonthCalendar",timezone:w,value:i,defaultValue:o,referenceDate:a,onChange:h,valueManager:OCe}),T=TCe(C),$=VN(),Q=ECe(),R=c.useMemo((()=>OCe.getInitialReferenceValue({value:P,utils:Q,props:n,timezone:C,referenceDate:a,granularity:HEe.month})),[]),A=n,j=(e=>{const{classes:t}=e;return qN({root:["root"]},QDe,t)})(A),D=c.useMemo((()=>Q.getMonth(T)),[Q,T]),M=c.useMemo((()=>null!=P?Q.getMonth(P):null),[P,Q]),[I,z]=c.useState((()=>M||Q.getMonth(R))),[W,N]=j3({name:"MonthCalendar",state:"hasFocus",controlled:O,default:g??!1}),L=gB((e=>{N(e),y&&y(e)})),F=c.useCallback((e=>{const t=Q.startOfMonth(u&&Q.isAfter(T,f)?T:f),n=Q.startOfMonth(l&&Q.isBefore(T,d)?T:d),r=Q.startOfMonth(e);return!!Q.isBefore(r,t)||!!Q.isAfter(r,n)||!!p&&p(r)}),[l,u,d,f,T,p,Q]),U=gB(((e,t)=>{if(m)return;const n=Q.setMonth(P??R,t);E(n)})),X=gB((e=>{F(Q.setMonth(P??R,e))||(z(e),L(!0),v&&v(e))}));c.useEffect((()=>{z((e=>null!==M&&e!==M?M:e))}),[M]);const q=gB(((e,t)=>{const n=12;switch(e.key){case"ArrowUp":X((n+t-3)%n),e.preventDefault();break;case"ArrowDown":X((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":X((n+t+($?1:-1))%n),e.preventDefault();break;case"ArrowRight":X((n+t+($?-1:1))%n),e.preventDefault()}})),B=gB(((e,t)=>{X(t)})),V=gB(((e,t)=>{I===t&&L(!1)}));return(0,lM.jsx)(ADe,kEe({ref:t,className:XN(j.root,r),ownerState:A,role:"radiogroup","aria-labelledby":k},S,{children:DEe(Q,P??R).map((e=>{const t=Q.getMonth(e),n=Q.format(e,"monthShort"),r=Q.format(e,"month"),i=t===M,o=s||F(e);return(0,lM.jsx)($De,{selected:i,value:t,onClick:U,onKeyDown:q,autoFocus:W&&t===I,disabled:o,tabIndex:t!==I||o?-1:0,onFocus:B,onBlur:V,"aria-current":D===t?"date":void 0,"aria-label":r,monthsPerRow:b,slots:x,slotProps:_,children:n},n)}))}))}));function DDe(e){return cB("MuiPickersYear",e)}const MDe=dB("MuiPickersYear",["root","yearButton","selected","disabled"]),IDe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],zDe=Pq("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),WDe=Pq("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${MDe.disabled}`]:t.disabled},{[`&.${MDe.selected}`]:t.selected}]})((({theme:e})=>kEe({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${MDe.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${MDe.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),NDe=c.memo((function(e){const t=CEe({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:d,onFocus:f,onBlur:h,"aria-current":p,slots:m,slotProps:g}=t,v=EEe(t,IDe),O=c.useRef(null),y=(e=>{const{disabled:t,selected:n,classes:r}=e;return qN({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},DDe,r)})(t);rL((()=>{n&&O.current?.focus()}),[n]);const b=m?.yearButton??WDe,w=b3({elementType:b,externalSlotProps:g?.yearButton,additionalProps:{children:i,disabled:o,tabIndex:l,ref:O,type:"button",role:"radio","aria-current":p,"aria-checked":a,onClick:e=>u(e,s),onKeyDown:e=>d(e,s),onFocus:e=>f(e,s),onBlur:e=>h(e,s)},ownerState:t,className:y.yearButton});return(0,lM.jsx)(zDe,kEe({className:XN(y.root,r),ownerState:t},v,{children:(0,lM.jsx)(b,kEe({},w))}))}));function LDe(e){return cB("MuiYearCalendar",e)}dB("MuiYearCalendar",["root"]);const FDe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],UDe=Pq("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:tQe,maxHeight:280,boxSizing:"border-box",position:"relative"}),XDe=c.forwardRef((function(e,t){const n=function(e,t){const n=ECe(),r=CCe(),i=CEe({props:e,name:"MuiYearCalendar"});return kEe({disablePast:!1,disableFuture:!1},i,{yearsPerRow:i.yearsPerRow??3,minDate:jEe(n,i.minDate,r.minDate),maxDate:jEe(n,i.maxDate,r.maxDate)})}(e),{autoFocus:r,className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:d,maxDate:f,minDate:h,onChange:p,readOnly:m,shouldDisableYear:g,onYearFocus:v,hasFocus:O,onFocusedViewChange:y,yearsOrder:b="asc",yearsPerRow:w,timezone:k,gridLabelId:x,slots:_,slotProps:S}=n,P=EEe(n,FDe),{value:E,handleValueChange:C,timezone:T}=n$e({name:"YearCalendar",timezone:k,value:o,defaultValue:a,referenceDate:s,onChange:p,valueManager:OCe}),$=TCe(T),Q=VN(),R=ECe(),A=c.useMemo((()=>OCe.getInitialReferenceValue({value:E,utils:R,props:n,timezone:T,referenceDate:s,granularity:HEe.year})),[]),j=n,D=(e=>{const{classes:t}=e;return qN({root:["root"]},LDe,t)})(j),M=c.useMemo((()=>R.getYear($)),[R,$]),I=c.useMemo((()=>null!=E?R.getYear(E):null),[E,R]),[z,W]=c.useState((()=>I||R.getYear(A))),[N,L]=j3({name:"YearCalendar",state:"hasFocus",controlled:O,default:r??!1}),F=gB((e=>{L(e),y&&y(e)})),U=c.useCallback((e=>{if(d&&R.isBeforeYear(e,$))return!0;if(u&&R.isAfterYear(e,$))return!0;if(h&&R.isBeforeYear(e,h))return!0;if(f&&R.isAfterYear(e,f))return!0;if(!g)return!1;const t=R.startOfYear(e);return g(t)}),[u,d,f,h,$,g,R]),X=gB(((e,t)=>{if(m)return;const n=R.setYear(E??A,t);C(n)})),q=gB((e=>{U(R.setYear(E??A,e))||(W(e),F(!0),v?.(e))}));c.useEffect((()=>{W((e=>null!==I&&e!==I?I:e))}),[I]);const B="desc"!==b?1*w:-1*w,V=Q&&"asc"===b||!Q&&"desc"===b?-1:1,Y=gB(((e,t)=>{switch(e.key){case"ArrowUp":q(t-B),e.preventDefault();break;case"ArrowDown":q(t+B),e.preventDefault();break;case"ArrowLeft":q(t-V),e.preventDefault();break;case"ArrowRight":q(t+V),e.preventDefault()}})),Z=gB(((e,t)=>{q(t)})),G=gB(((e,t)=>{z===t&&F(!1)})),H=c.useRef(null),K=GN(t,H);c.useEffect((()=>{if(r||null===H.current)return;const e=H.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,i=H.current.clientHeight,o=H.current.scrollTop,a=n+t;t>i||n{const t=R.getYear(e),n=t===I,r=l||U(e);return(0,lM.jsx)(NDe,{selected:n,value:t,onClick:X,onKeyDown:Y,autoFocus:N&&t===z,disabled:r,tabIndex:t!==z||r?-1:0,onFocus:Z,onBlur:G,"aria-current":M===t?"date":void 0,yearsPerRow:w,slots:_,slotProps:S,children:R.format(e,"year")},R.format(e,"year"))}))}))}));function qDe(e){return cB("MuiPickersArrowSwitcher",e)}dB("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const BDe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],VDe=["ownerState"],YDe=["ownerState"],ZDe=Pq("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),GDe=Pq("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((({theme:e})=>({width:e.spacing(3)}))),HDe=Pq(zTe,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),KDe=c.forwardRef((function(e,t){const n=VN(),r=CEe({props:e,name:"MuiPickersArrowSwitcher"}),{children:i,className:o,slots:a,slotProps:s,isNextDisabled:l,isNextHidden:u,onGoToNext:c,nextLabel:d,isPreviousDisabled:f,isPreviousHidden:h,onGoToPrevious:p,previousLabel:m,labelId:g}=r,v=EEe(r,BDe),O=r,y=(e=>{const{classes:t}=e;return qN({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},qDe,t)})(O),b={isDisabled:l,isHidden:u,goTo:c,label:d},w={isDisabled:f,isHidden:h,goTo:p,label:m},k=a?.previousIconButton??HDe,x=b3({elementType:k,externalSlotProps:s?.previousIconButton,additionalProps:{size:"medium",title:w.label,"aria-label":w.label,disabled:w.isDisabled,edge:"end",onClick:w.goTo},ownerState:kEe({},O,{hidden:w.isHidden}),className:XN(y.button,y.previousIconButton)}),_=a?.nextIconButton??HDe,S=b3({elementType:_,externalSlotProps:s?.nextIconButton,additionalProps:{size:"medium",title:b.label,"aria-label":b.label,disabled:b.isDisabled,edge:"start",onClick:b.goTo},ownerState:kEe({},O,{hidden:b.isHidden}),className:XN(y.button,y.nextIconButton)}),P=a?.leftArrowIcon??OQe,E=EEe(b3({elementType:P,externalSlotProps:s?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:O,className:y.leftArrowIcon}),VDe),C=a?.rightArrowIcon??yQe,T=EEe(b3({elementType:C,externalSlotProps:s?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:O,className:y.rightArrowIcon}),YDe);return(0,lM.jsxs)(ZDe,kEe({ref:t,className:XN(y.root,o),ownerState:O},v,{children:[(0,lM.jsx)(k,kEe({},x,{children:n?(0,lM.jsx)(C,kEe({},T)):(0,lM.jsx)(P,kEe({},E))})),i?(0,lM.jsx)(WCe,{variant:"subtitle1",component:"span",id:g,children:i}):(0,lM.jsx)(GDe,{className:y.spacer,ownerState:O}),(0,lM.jsx)(_,kEe({},S,{children:n?(0,lM.jsx)(P,kEe({},E)):(0,lM.jsx)(C,kEe({},T))}))]}))}));function JDe(e,t,n,r){const i=ECe();return{meridiemMode:qEe(e,i),handleMeridiemChange:c.useCallback((o=>{const a=null==e?null:VEe(e,o,Boolean(t),i);n(a,r??"partial")}),[t,e,n,r,i])}}const eMe=e=>cB("MuiPickersCalendarHeader",e),tMe=dB("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),nMe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],rMe=["ownerState"],iMe=Pq("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),oMe=Pq("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>kEe({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),aMe=Pq("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),sMe=Pq(zTe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${tMe.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),lMe=Pq(vQe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"}))),uMe=c.forwardRef((function(e,t){const n=BCe(),r=ECe(),i=CEe({props:e,name:"MuiPickersCalendarHeader"}),{slots:o,slotProps:a,currentMonth:s,disabled:l,disableFuture:u,disablePast:d,maxDate:f,minDate:h,onMonthChange:p,onViewChange:m,view:g,reduceAnimations:v,views:O,labelId:y,className:b,timezone:w,format:k=`${r.formats.month} ${r.formats.year}`}=i,x=EEe(i,nMe),_=i,S=(e=>{const{classes:t}=e;return qN({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},eMe,t)})(i),P=o?.switchViewButton??sMe,E=b3({elementType:P,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(g)},ownerState:_,className:S.switchViewButton}),C=o?.switchViewIcon??lMe,T=EEe(b3({elementType:C,externalSlotProps:a?.switchViewIcon,ownerState:_,className:S.switchViewIcon}),rMe),$=function(e,{disableFuture:t,maxDate:n,timezone:r}){const i=ECe();return c.useMemo((()=>{const o=i.date(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)}),[t,n,e,i,r])}(s,{disableFuture:u,maxDate:f,timezone:w}),Q=function(e,{disablePast:t,minDate:n,timezone:r}){const i=ECe();return c.useMemo((()=>{const o=i.date(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)}),[t,n,e,i,r])}(s,{disablePast:d,minDate:h,timezone:w});if(1===O.length&&"year"===O[0])return null;const R=r.formatByString(s,k);return(0,lM.jsxs)(iMe,kEe({},x,{ownerState:_,className:XN(S.root,b),ref:t,children:[(0,lM.jsxs)(oMe,{role:"presentation",onClick:()=>{if(1!==O.length&&m&&!l)if(2===O.length)m(O.find((e=>e!==g))||O[0]);else{const e=0!==O.indexOf(g)?0:1;m(O[e])}},ownerState:_,"aria-live":"polite",className:S.labelContainer,children:[(0,lM.jsx)(Bje,{reduceAnimations:v,transKey:R,children:(0,lM.jsx)(aMe,{id:y,ownerState:_,className:S.label,children:R})}),O.length>1&&!l&&(0,lM.jsx)(P,kEe({},E,{children:(0,lM.jsx)(C,kEe({},T))}))]}),(0,lM.jsx)(aB,{in:"day"===g,children:(0,lM.jsx)(KDe,{slots:o,slotProps:a,onGoToPrevious:()=>p(r.addMonths(s,-1),"right"),isPreviousDisabled:Q,previousLabel:n.previousMonth,onGoToNext:()=>p(r.addMonths(s,1),"left"),isNextDisabled:$,nextLabel:n.nextMonth})})]}))})),cMe=Pq("div")({overflow:"hidden",width:tQe,maxHeight:nQe,display:"flex",flexDirection:"column",margin:"0 auto"}),dMe=e=>cB("MuiDateCalendar",e),fMe=(dB("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"]),hMe=Pq(cMe,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:nQe}),pMe=Pq(Bje,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),mMe=c.forwardRef((function(e,t){const n=ECe(),r=R3(),i=function(e,t){const n=ECe(),r=CCe(),i=YTe(),o=CEe({props:e,name:"MuiDateCalendar"});return kEe({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??"day",views:o.views??["year","day"],reduceAnimations:o.reduceAnimations??i,renderLoading:o.renderLoading??(()=>(0,lM.jsx)("span",{children:"..."})),minDate:jEe(n,o.minDate,r.minDate),maxDate:jEe(n,o.maxDate,r.maxDate)})}(e),{autoFocus:o,onViewChange:a,value:s,defaultValue:l,referenceDate:u,disableFuture:d,disablePast:f,onChange:h,onYearChange:p,onMonthChange:m,reduceAnimations:g,shouldDisableDate:v,shouldDisableMonth:O,shouldDisableYear:y,view:b,views:w,openTo:k,className:x,disabled:_,readOnly:S,minDate:P,maxDate:E,disableHighlightToday:C,focusedView:T,onFocusedViewChange:$,showDaysOutsideCurrentMonth:Q,fixedWeekNumber:R,dayOfWeekFormatter:A,slots:j,slotProps:D,loading:M,renderLoading:I,displayWeekNumber:z,yearsOrder:W,yearsPerRow:N,monthsPerRow:L,timezone:F}=i,U=EEe(i,fMe),{value:X,handleValueChange:q,timezone:B}=n$e({name:"DateCalendar",timezone:F,value:s,defaultValue:l,referenceDate:u,onChange:h,valueManager:OCe}),{view:V,setView:Y,focusedView:Z,setFocusedView:G,goToNextView:H,setValueAndGoToNextView:K}=r$e({view:b,views:w,openTo:k,onChange:q,onViewChange:a,autoFocus:o,focusedView:T,onFocusedViewChange:$}),{referenceDate:J,calendarState:ee,changeFocusedDay:te,changeMonth:ne,handleChangeMonth:re,isDateDisabled:ie,onMonthSwitchingAnimationEnd:oe}=(e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:o=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:u,shouldDisableDate:d,timezone:f}=e,h=ECe(),p=c.useRef(((e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return kEe({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const e=i.newTimezone;if(n.getTimezone(r.currentMonth)===e)return r;let t=n.setTimezone(r.currentMonth,e);return n.getMonth(t)!==n.getMonth(r.currentMonth)&&(t=n.setMonth(t,n.getMonth(r.currentMonth))),kEe({},r,{currentMonth:t})}case"finishMonthSwitchingAnimation":return kEe({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=i.focusedDay&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=null!=i.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return kEe({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:null!=i.focusedDay&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(u),o,h)).current,m=c.useMemo((()=>OCe.getInitialReferenceValue({value:t,utils:h,timezone:f,props:e,referenceDate:n,granularity:HEe.day})),[n,f]),[g,v]=c.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:h.startOfMonth(m),slideDirection:"left"});c.useEffect((()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(m)})}),[m,h]);const O=c.useCallback((e=>{v(kEe({type:"changeMonth"},e)),l&&l(e.newMonth)}),[l]),y=c.useCallback((e=>{const t=e;h.isSameMonth(t,g.currentMonth)||O({newMonth:h.startOfMonth(t),direction:h.isAfterDay(t,g.currentMonth)?"left":"right"})}),[g.currentMonth,O,h]),b=Uje({shouldDisableDate:d,minDate:s,maxDate:a,disableFuture:r,disablePast:i,timezone:f}),w=c.useCallback((()=>{v({type:"finishMonthSwitchingAnimation"})}),[]),k=gB(((e,t)=>{b(e)||v({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:m,calendarState:g,changeMonth:y,changeFocusedDay:k,isDateDisabled:b,onMonthSwitchingAnimationEnd:w,handleChangeMonth:O}})({value:X,referenceDate:u,reduceAnimations:g,onMonthChange:m,minDate:P,maxDate:E,shouldDisableDate:v,disablePast:f,disableFuture:d,timezone:B}),ae=_&&X||P,se=_&&X||E,le=`${r}-grid-label`,ue=null!==Z,ce=j?.calendarHeader??uMe,de=b3({elementType:ce,externalSlotProps:D?.calendarHeader,additionalProps:{views:w,view:V,currentMonth:ee.currentMonth,onViewChange:Y,onMonthChange:(e,t)=>re({newMonth:e,direction:t}),minDate:ae,maxDate:se,disabled:_,disablePast:f,disableFuture:d,reduceAnimations:g,timezone:B,labelId:le},ownerState:i}),fe=gB((e=>{const t=n.startOfMonth(e),r=n.endOfMonth(e),i=ie(e)?AEe({utils:n,date:e,minDate:n.isBefore(P,t)?t:P,maxDate:n.isAfter(E,r)?r:E,disablePast:f,disableFuture:d,isDateDisabled:ie,timezone:B}):e;i?(K(i,"finish"),m?.(t)):(H(),ne(t)),te(i,!0)})),he=gB((e=>{const t=n.startOfYear(e),r=n.endOfYear(e),i=ie(e)?AEe({utils:n,date:e,minDate:n.isBefore(P,t)?t:P,maxDate:n.isAfter(E,r)?r:E,disablePast:f,disableFuture:d,isDateDisabled:ie,timezone:B}):e;i?(K(i,"finish"),p?.(i)):(H(),ne(t)),te(i,!0)})),pe=gB((e=>q(e?REe(n,e,X??J):e,"finish",V)));c.useEffect((()=>{null!=X&&n.isValid(X)&&ne(X)}),[X]);const me=i,ge=(e=>{const{classes:t}=e;return qN({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},dMe,t)})(me),ve={disablePast:f,disableFuture:d,maxDate:E,minDate:P},Oe={disableHighlightToday:C,readOnly:S,disabled:_,timezone:B,gridLabelId:le,slots:j,slotProps:D},ye=c.useRef(V);c.useEffect((()=>{ye.current!==V&&(Z===ye.current&&G(V,!0),ye.current=V)}),[Z,G,V]);const be=c.useMemo((()=>[X]),[X]);return(0,lM.jsxs)(hMe,kEe({ref:t,className:XN(ge.root,x),ownerState:me},U,{children:[(0,lM.jsx)(ce,kEe({},de,{slots:j,slotProps:D})),(0,lM.jsx)(pMe,{reduceAnimations:g,className:ge.viewTransitionContainer,transKey:V,ownerState:me,children:(0,lM.jsxs)("div",{children:["year"===V&&(0,lM.jsx)(XDe,kEe({},ve,Oe,{value:X,onChange:he,shouldDisableYear:y,hasFocus:ue,onFocusedViewChange:e=>G("year",e),yearsOrder:W,yearsPerRow:N,referenceDate:J})),"month"===V&&(0,lM.jsx)(jDe,kEe({},ve,Oe,{hasFocus:ue,className:x,value:X,onChange:fe,shouldDisableMonth:O,onFocusedViewChange:e=>G("month",e),monthsPerRow:L,referenceDate:J})),"day"===V&&(0,lM.jsx)(_De,kEe({},ee,ve,Oe,{onMonthSwitchingAnimationEnd:oe,onFocusedDayChange:te,reduceAnimations:g,selectedDays:be,onSelectedDaysChange:pe,shouldDisableDate:v,shouldDisableMonth:O,shouldDisableYear:y,hasFocus:ue,onFocusedViewChange:e=>G("day",e),showDaysOutsideCurrentMonth:Q,fixedWeekNumber:R,dayOfWeekFormatter:A,displayWeekNumber:z,loading:M,renderLoading:I}))]})})]}))})),gMe=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:h,maxDate:p,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:O,onMonthChange:y,monthsPerRow:b,onYearChange:w,yearsOrder:k,yearsPerRow:x,slots:_,slotProps:S,loading:P,renderLoading:E,disableHighlightToday:C,readOnly:T,disabled:$,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:R,sx:A,autoFocus:j,fixedWeekNumber:D,displayWeekNumber:M,timezone:I})=>(0,lM.jsx)(mMe,{view:e,onViewChange:t,views:n.filter(WEe),focusedView:r&&WEe(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:h,maxDate:p,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:O,onMonthChange:y,monthsPerRow:b,onYearChange:w,yearsOrder:k,yearsPerRow:x,slots:_,slotProps:S,loading:P,renderLoading:E,disableHighlightToday:C,readOnly:T,disabled:$,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:R,sx:A,autoFocus:j,fixedWeekNumber:D,displayWeekNumber:M,timezone:I}),vMe=c.forwardRef((function(e,t){const n=BCe(),r=ECe(),i=KCe(e,"MuiDesktopDatePicker"),o=kEe({day:gMe,month:gMe,year:gMe},i.viewRenderers),a=kEe({},i,{viewRenderers:o,format:NEe(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:kEe({openPickerIcon:bQe,field:Fje},i.slots),slotProps:kEe({},i.slotProps,{field:e=>kEe({},jq(i.slotProps?.field,e),rTe(i),{ref:t}),toolbar:kEe({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:s}=gQe({props:a,valueManager:OCe,valueType:"date",getOpenDialogAriaText:xCe({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:iTe});return s()}));function OMe(e){return cB("MuiDialogContent",e)}vMe.propTypes={autoFocus:Kye().bool,className:Kye().string,closeOnSelect:Kye().bool,dayOfWeekFormatter:Kye().func,defaultValue:Kye().object,disabled:Kye().bool,disableFuture:Kye().bool,disableHighlightToday:Kye().bool,disableOpenPicker:Kye().bool,disablePast:Kye().bool,displayWeekNumber:Kye().bool,enableAccessibleFieldDOMStructure:Kye().any,fixedWeekNumber:Kye().number,format:Kye().string,formatDensity:Kye().oneOf(["dense","spacious"]),inputRef:TEe,label:Kye().node,loading:Kye().bool,localeText:Kye().object,maxDate:Kye().object,minDate:Kye().object,monthsPerRow:Kye().oneOf([3,4]),name:Kye().string,onAccept:Kye().func,onChange:Kye().func,onClose:Kye().func,onError:Kye().func,onMonthChange:Kye().func,onOpen:Kye().func,onSelectedSectionsChange:Kye().func,onViewChange:Kye().func,onYearChange:Kye().func,open:Kye().bool,openTo:Kye().oneOf(["day","month","year"]),orientation:Kye().oneOf(["landscape","portrait"]),readOnly:Kye().bool,reduceAnimations:Kye().bool,referenceDate:Kye().object,renderLoading:Kye().func,selectedSections:Kye().oneOfType([Kye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Kye().number]),shouldDisableDate:Kye().func,shouldDisableMonth:Kye().func,shouldDisableYear:Kye().func,showDaysOutsideCurrentMonth:Kye().bool,slotProps:Kye().object,slots:Kye().object,sx:Kye().oneOfType([Kye().arrayOf(Kye().oneOfType([Kye().func,Kye().object,Kye().bool])),Kye().func,Kye().object]),timezone:Kye().string,value:Kye().object,view:Kye().oneOf(["day","month","year"]),viewRenderers:Kye().shape({day:Kye().func,month:Kye().func,year:Kye().func}),views:Kye().arrayOf(Kye().oneOf(["day","month","year"]).isRequired),yearsOrder:Kye().oneOf(["asc","desc"]),yearsPerRow:Kye().oneOf([3,4])},dB("MuiDialogContent",["root","dividers"]);const yMe=dB("MuiDialogTitle",["root"]),bMe=Pq("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Cq((({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${yMe.root} + &`]:{paddingTop:0}}}]})))),wMe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...o}=n,a={...n,dividers:i},s=(e=>{const{classes:t,dividers:n}=e;return qN({root:["root",n&&"dividers"]},OMe,t)})(a);return(0,lM.jsx)(bMe,{className:XN(s.root,r),ownerState:a,ref:t,...o})})),kMe=wMe;function xMe(e){return cB("MuiDialog",e)}const _Me=dB("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),SMe=c.createContext({}),PMe=Pq(mB,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),EMe=Pq($B,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),CMe=Pq("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${LB(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),TMe=Pq(NB,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${LB(n.scroll)}`],t[`paperWidth${LB(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Cq((({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_Me.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter((e=>"xs"!==e)).map((t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${_Me.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}}))),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${_Me.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]})))),$Me=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDialog"}),r=eB(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":a,"aria-modal":s=!0,BackdropComponent:l,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:v,onClick:O,onClose:y,open:b,PaperComponent:w=NB,PaperProps:k={},scroll:x="paper",TransitionComponent:_=aB,transitionDuration:S=i,TransitionProps:P,...E}=n,C={...n,disableEscapeKeyDown:h,fullScreen:p,fullWidth:m,maxWidth:g,scroll:x},T=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e;return qN({root:["root"],container:["container",`scroll${LB(n)}`],paper:["paper",`paperScroll${LB(n)}`,`paperWidth${LB(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]},xMe,t)})(C),$=c.useRef(),Q=R3(a),R=c.useMemo((()=>({titleId:Q})),[Q]);return(0,lM.jsx)(EMe,{className:XN(T.root,f),closeAfterTransition:!0,components:{Backdrop:PMe},componentsProps:{backdrop:{transitionDuration:S,as:l,...u}},disableEscapeKeyDown:h,onClose:y,open:b,ref:t,onClick:e=>{O&&O(e),$.current&&($.current=null,v&&v(e),y&&y(e,"backdropClick"))},ownerState:C,...E,children:(0,lM.jsx)(_,{appear:!0,in:b,timeout:S,role:"presentation",...P,children:(0,lM.jsx)(CMe,{className:XN(T.container),onMouseDown:e=>{$.current=e.target===e.currentTarget},ownerState:C,children:(0,lM.jsx)(TMe,{as:w,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":Q,"aria-modal":s,...k,className:XN(T.paper,k.className),ownerState:C,children:(0,lM.jsx)(SMe.Provider,{value:R,children:d})})})})})})),QMe=Pq($Me)({[`& .${_Me.container}`]:{outline:0},[`& .${_Me.paper}`]:{outline:0,minWidth:tQe}}),RMe=Pq(kMe)({"&:first-of-type":{padding:0}});function AMe(e){const{children:t,onDismiss:n,open:r,slots:i,slotProps:o}=e,a=i?.dialog??QMe,s=i?.mobileTransition??aB;return(0,lM.jsx)(a,kEe({open:r,onClose:n},o?.dialog,{TransitionComponent:s,TransitionProps:o?.mobileTransition,PaperComponent:i?.mobilePaper,PaperProps:o?.mobilePaper,children:(0,lM.jsx)(RMe,{children:t})}))}const jMe=["props","getOpenDialogAriaText"],DMe=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=EEe(e,jMe);const{slots:i,slotProps:o,className:a,sx:s,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:p,name:m,label:g,inputRef:v,readOnly:O,disabled:y,localeText:b}=t,w=c.useRef(null),k=R3(),x=o?.toolbar?.hidden??!1,{open:_,actions:S,layoutProps:P,renderCurrentView:E,fieldProps:C,contextValue:T}=a$e(kEe({},r,{props:t,fieldRef:w,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),$=i.field,Q=b3({elementType:$,externalSlotProps:o?.field,additionalProps:kEe({},C,x&&{id:k},!(y||O)&&{onClick:S.onOpen,onKeyDown:(R=S.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(R(e),e.preventDefault(),e.stopPropagation())})},{readOnly:O??!0,disabled:y,className:a,sx:s,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:p,label:g,name:m},v?{inputRef:v}:{}),ownerState:t});var R;Q.inputProps=kEe({},Q.inputProps,{"aria-label":n(C.value)});const A=kEe({textField:i.textField},Q.slots),j=i.layout??cQe;let D=k;x&&(D=g?`${k}-label`:void 0);const M=kEe({},o,{toolbar:kEe({},o?.toolbar,{titleId:k}),mobilePaper:kEe({"aria-labelledby":D},o?.mobilePaper)}),I=GN(w,Q.unstableFieldRef);return{renderPicker:()=>(0,lM.jsxs)(fQe,{contextValue:T,localeText:b,children:[(0,lM.jsx)($,kEe({},Q,{slots:A,slotProps:M,unstableFieldRef:I})),(0,lM.jsx)(AMe,kEe({},S,{open:_,slots:i,slotProps:M,children:(0,lM.jsx)(j,kEe({},P,M?.layout,{slots:i,slotProps:M,children:E()}))}))]})}},MMe=c.forwardRef((function(e,t){const n=BCe(),r=ECe(),i=KCe(e,"MuiMobileDatePicker"),o=kEe({day:gMe,month:gMe,year:gMe},i.viewRenderers),a=kEe({},i,{viewRenderers:o,format:NEe(r,i,!1),slots:kEe({field:Fje},i.slots),slotProps:kEe({},i.slotProps,{field:e=>kEe({},jq(i.slotProps?.field,e),rTe(i),{ref:t}),toolbar:kEe({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:s}=DMe({props:a,valueManager:OCe,valueType:"date",getOpenDialogAriaText:xCe({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:iTe});return s()}));MMe.propTypes={autoFocus:Kye().bool,className:Kye().string,closeOnSelect:Kye().bool,dayOfWeekFormatter:Kye().func,defaultValue:Kye().object,disabled:Kye().bool,disableFuture:Kye().bool,disableHighlightToday:Kye().bool,disableOpenPicker:Kye().bool,disablePast:Kye().bool,displayWeekNumber:Kye().bool,enableAccessibleFieldDOMStructure:Kye().any,fixedWeekNumber:Kye().number,format:Kye().string,formatDensity:Kye().oneOf(["dense","spacious"]),inputRef:TEe,label:Kye().node,loading:Kye().bool,localeText:Kye().object,maxDate:Kye().object,minDate:Kye().object,monthsPerRow:Kye().oneOf([3,4]),name:Kye().string,onAccept:Kye().func,onChange:Kye().func,onClose:Kye().func,onError:Kye().func,onMonthChange:Kye().func,onOpen:Kye().func,onSelectedSectionsChange:Kye().func,onViewChange:Kye().func,onYearChange:Kye().func,open:Kye().bool,openTo:Kye().oneOf(["day","month","year"]),orientation:Kye().oneOf(["landscape","portrait"]),readOnly:Kye().bool,reduceAnimations:Kye().bool,referenceDate:Kye().object,renderLoading:Kye().func,selectedSections:Kye().oneOfType([Kye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Kye().number]),shouldDisableDate:Kye().func,shouldDisableMonth:Kye().func,shouldDisableYear:Kye().func,showDaysOutsideCurrentMonth:Kye().bool,slotProps:Kye().object,slots:Kye().object,sx:Kye().oneOfType([Kye().arrayOf(Kye().oneOfType([Kye().func,Kye().object,Kye().bool])),Kye().func,Kye().object]),timezone:Kye().string,value:Kye().object,view:Kye().oneOf(["day","month","year"]),viewRenderers:Kye().shape({day:Kye().func,month:Kye().func,year:Kye().func}),views:Kye().arrayOf(Kye().oneOf(["day","month","year"]).isRequired),yearsOrder:Kye().oneOf(["asc","desc"]),yearsPerRow:Kye().oneOf([3,4])};const IMe=["desktopModeMediaQuery"],zMe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=UTe}=n,i=EEe(n,IMe);return z2(r,{defaultMatches:!0})?(0,lM.jsx)(vMe,kEe({ref:t},i)):(0,lM.jsx)(MMe,kEe({ref:t},i))}));function WMe(e){return cB("MuiDivider",e)}const NMe=dB("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),LMe=Pq("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(Cq((({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:xX(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]})))),FMe=Pq("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Cq((({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]})))),UMe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,orientation:a="horizontal",component:s=(i||"vertical"===a?"div":"hr"),flexItem:l=!1,light:u=!1,role:c=("hr"!==s?"separator":void 0),textAlign:d="center",variant:f="fullWidth",...h}=n,p={...n,absolute:r,component:s,flexItem:l,light:u,orientation:a,role:c,textAlign:d,variant:f},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return qN({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},WMe,r)})(p);return(0,lM.jsx)(LMe,{as:s,className:XN(m.root,o),role:c,ref:t,ownerState:p,"aria-orientation":"separator"!==c||"hr"===s&&"vertical"!==a?void 0:a,...h,children:i?(0,lM.jsx)(FMe,{className:m.wrapper,ownerState:p,children:i}):null})}));UMe&&(UMe.muiSkipListHighlight=!0);const XMe=UMe,qMe=({adapter:e,value:t,timezone:n,props:r})=>{if(null===t)return null;const{minTime:i,maxTime:o,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c}=r,d=e.utils.date(void 0,n),f=ZEe(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(i&&f(i,t)):return"minTime";case Boolean(o&&f(t,o)):return"maxTime";case Boolean(c&&e.utils.isAfter(t,d)):return"disableFuture";case Boolean(u&&e.utils.isBefore(t,d)):return"disablePast";case Boolean(s&&s(t,"hours")):return"shouldDisableTime-hours";case Boolean(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case Boolean(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case Boolean(a&&e.utils.getMinutes(t)%a!=0):return"minutesStep";default:return null}};qMe.valueManager=OCe;const BMe=({adapter:e,value:t,timezone:n,props:r})=>{const i=iTe({adapter:e,value:t,timezone:n,props:r});return null!==i?i:qMe({adapter:e,value:t,timezone:n,props:r})};BMe.valueManager=OCe;const VMe=["slots","slotProps","InputProps","inputProps"],YMe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiDateTimeField"}),{slots:r,slotProps:i,InputProps:o,inputProps:a}=n,s=EEe(n,VMe),l=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Mje:QAe),c=b3({elementType:u,externalSlotProps:i?.textField,externalForwardedProps:s,ownerState:l,additionalProps:{ref:t}});c.inputProps=kEe({},a,c.inputProps),c.InputProps=kEe({},o,c.InputProps);const d=(e=>{const t=(e=>{const t=ECe(),n=CCe(),r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return kEe({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r,disableIgnoringDatePartForTimeValidation:Boolean(e.minDateTime||e.maxDateTime),minDate:jEe(t,e.minDateTime??e.minDate,n.minDate),maxDate:jEe(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})})(e),{forwardedProps:n,internalProps:r}=LAe(t,"date-time");return WAe({forwardedProps:n,internalProps:r,valueManager:OCe,fieldValueManager:yCe,validator:BMe,valueType:"date-time"})})(c),f=Nje(d),h=XAe(kEe({},f,{slots:r,slotProps:i}));return(0,lM.jsx)(u,kEe({},h))}));function ZMe(e){return cB("MuiTab",e)}const GMe=dB("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),HMe=Pq(ATe,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${LB(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${GMe.iconWrapper}`]:t.iconWrapper},{[`& .${GMe.icon}`]:t.icon}]}})(Cq((({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${GMe.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${GMe.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${GMe.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${GMe.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${GMe.selected}`]:{opacity:1},[`&.${GMe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${GMe.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${GMe.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${GMe.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${GMe.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]})))),KMe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTab"}),{className:r,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:u,label:d,onChange:f,onClick:h,onFocus:p,selected:m,selectionFollowsFocus:g,textColor:v="inherit",value:O,wrapped:y=!1,...b}=n,w={...n,disabled:i,disableFocusRipple:o,selected:m,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:v,wrapped:y},k=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e;return qN({root:["root",o&&a&&"labelIcon",`textColor${LB(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},ZMe,t)})(w),x=s&&d&&c.isValidElement(s)?c.cloneElement(s,{className:XN(k.icon,s.props.className)}):s;return(0,lM.jsxs)(HMe,{focusRipple:!o,className:XN(k.root,r),ref:t,role:"tab","aria-selected":m,disabled:i,onClick:e=>{!m&&f&&f(e,O),h&&h(e)},onFocus:e=>{g&&!m&&f&&f(e,O),p&&p(e)},ownerState:w,tabIndex:m?0:-1,...b,children:["top"===l||"start"===l?(0,lM.jsxs)(c.Fragment,{children:[x,d]}):(0,lM.jsxs)(c.Fragment,{children:[d,x]}),u]})})),JMe=KMe;function eIe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const tIe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},nIe=B$e((0,lM.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),rIe=B$e((0,lM.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function iIe(e){return cB("MuiTabScrollButton",e)}const oIe=dB("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),aIe=Pq(ATe,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${oIe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),sIe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTabScrollButton"}),{className:r,slots:i={},slotProps:o={},direction:a,orientation:s,disabled:l,...u}=n,c=VN(),d={isRtl:c,...n},f=(e=>{const{classes:t,orientation:n,disabled:r}=e;return qN({root:["root",n,r&&"disabled"]},iIe,t)})(d),h=i.StartScrollButtonIcon??nIe,p=i.EndScrollButtonIcon??rIe,m=b3({elementType:h,externalSlotProps:o.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=b3({elementType:p,externalSlotProps:o.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,lM.jsx)(aIe,{component:"div",className:XN(f.root,r),ref:t,role:null,ownerState:d,tabIndex:null,...u,style:{...u.style,..."vertical"===s&&{"--TabScrollButton-svgRotate":`rotate(${c?-90:90}deg)`}},children:"left"===a?(0,lM.jsx)(h,{...m}):(0,lM.jsx)(p,{...g})})})),lIe=sIe;function uIe(e){return cB("MuiTabs",e)}const cIe=dB("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),dIe=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,fIe=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,hIe=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},pIe=Pq("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cIe.scrollButtons}`]:t.scrollButtons},{[`& .${cIe.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Cq((({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${cIe.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]})))),mIe=Pq("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),gIe=Pq("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),vIe=Pq("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Cq((({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]})))),OIe=Pq((function(e){const{onChange:t,...n}=e,r=c.useRef(),i=c.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return $Qe((()=>{const e=RB((()=>{const e=r.current;o(),e!==r.current&&t(r.current)})),n=AB(i.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),c.useEffect((()=>{o(),t(r.current)}),[t]),(0,lM.jsx)("div",{style:tIe,...n,ref:i})}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),yIe={},bIe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTabs"}),r=eB(),i=VN(),{"aria-label":o,"aria-labelledby":a,action:s,centered:l=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:v=lIe,scrollButtons:O="auto",selectionFollowsFocus:y,slots:b={},slotProps:w={},TabIndicatorProps:k={},TabScrollButtonProps:x={},textColor:_="primary",value:S,variant:P="standard",visibleScrollbar:E=!1,...C}=n,T="scrollable"===P,$="vertical"===g,Q=$?"scrollTop":"scrollLeft",R=$?"top":"left",A=$?"bottom":"right",j=$?"clientHeight":"clientWidth",D=$?"height":"width",M={...n,component:f,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:$,scrollButtons:O,textColor:_,variant:P,visibleScrollbar:E,fixed:!T,hideScrollbar:T&&!E,scrollableX:T&&!$,scrollableY:T&&$,centered:l&&!T,scrollButtonsHideMobile:!h},I=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return qN({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},uIe,l)})(M),z=b3({elementType:b.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:M}),W=b3({elementType:b.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:M}),[N,L]=c.useState(!1),[F,U]=c.useState(yIe),[X,q]=c.useState(!1),[B,V]=c.useState(!1),[Y,Z]=c.useState(!1),[G,H]=c.useState({overflow:"hidden",scrollbarWidth:0}),K=new Map,J=c.useRef(null),ee=c.useRef(null),te=()=>{const e=J.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==S){const e=ee.current.children;if(e.length>0){const t=e[K.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ne=T3((()=>{const{tabsMeta:e,tabMeta:t}=te();let n,r=0;$?(n="top",t&&e&&(r=t.top-e.top+e.scrollTop)):(n=i?"right":"left",t&&e&&(r=(i?-1:1)*(t[n]-e[n]+e.scrollLeft)));const o={[n]:r,[D]:t?t[D]:0};if("number"!=typeof F[n]||"number"!=typeof F[D])U(o);else{const e=Math.abs(F[n]-o[n]),t=Math.abs(F[D]-o[D]);(e>=1||t>=1)&&U(o)}})),re=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},i=(()=>{})){const{ease:o=eIe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=r=>{if(u)return void i(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=o(d)*(n-l)+l,d>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(c)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(c)}(Q,J.current,e,{duration:r.transitions.duration.standard}):J.current[Q]=e},ie=e=>{let t=J.current[Q];t+=$?e:e*(i?-1:1),re(t)},oe=()=>{const e=J.current[j];let t=0;const n=Array.from(ee.current.children);for(let r=0;re){0===r&&(t=e);break}t+=i[j]}return t},ae=()=>{ie(-1*oe())},se=()=>{ie(oe())},le=c.useCallback((e=>{H({overflow:null,scrollbarWidth:e})}),[]),ue=T3((e=>{const{tabsMeta:t,tabMeta:n}=te();if(n&&t)if(n[R]t[A]){const r=t[Q]+(n[A]-t[A]);re(r,{animation:e})}})),ce=T3((()=>{T&&!1!==O&&Z(!Y)}));c.useEffect((()=>{const e=RB((()=>{J.current&&ne()}));let t;const n=AB(J.current);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(r=new MutationObserver((n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{t?.unobserve(e)})),e.addedNodes.forEach((e=>{t?.observe(e)}))})),e(),ce()})),r.observe(ee.current,{childList:!0})),()=>{e.clear(),n.removeEventListener("resize",e),r?.disconnect(),t?.disconnect()}}),[ne,ce]),c.useEffect((()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&T&&!1!==O){const n=e[0],r=e[t-1],i={root:J.current,threshold:.99},o=new IntersectionObserver((e=>{q(!e[0].isIntersecting)}),i);o.observe(n);const a=new IntersectionObserver((e=>{V(!e[0].isIntersecting)}),i);return a.observe(r),()=>{o.disconnect(),a.disconnect()}}}),[T,O,Y,u?.length]),c.useEffect((()=>{L(!0)}),[]),c.useEffect((()=>{ne()})),c.useEffect((()=>{ue(yIe!==F)}),[ue,F]),c.useImperativeHandle(s,(()=>({updateIndicator:ne,updateScrollButtons:ce})),[ne,ce]);const de=(0,lM.jsx)(vIe,{...k,className:XN(I.indicator,k.className),ownerState:M,style:{...F,...k.style}});let fe=0;const he=c.Children.map(u,(e=>{if(!c.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;K.set(t,fe);const n=t===S;return fe+=1,c.cloneElement(e,{fullWidth:"fullWidth"===P,indicator:n&&!N&&de,selected:n,selectionFollowsFocus:y,onChange:m,textColor:_,value:t,...1!==fe||!1!==S||e.props.tabIndex?{}:{tabIndex:0}})})),pe=(()=>{const e={};e.scrollbarSizeListener=T?(0,lM.jsx)(OIe,{onChange:le,className:XN(I.scrollableX,I.hideScrollbar)}):null;const t=T&&("auto"===O&&(X||B)||!0===O);return e.scrollButtonStart=t?(0,lM.jsx)(v,{slots:{StartScrollButtonIcon:b.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:g,direction:i?"right":"left",onClick:ae,disabled:!X,...x,className:XN(I.scrollButtons,x.className)}):null,e.scrollButtonEnd=t?(0,lM.jsx)(v,{slots:{EndScrollButtonIcon:b.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:W},orientation:g,direction:i?"left":"right",onClick:se,disabled:!B,...x,className:XN(I.scrollButtons,x.className)}):null,e})();return(0,lM.jsxs)(pIe,{className:XN(I.root,d),ownerState:M,ref:t,as:f,...C,children:[pe.scrollButtonStart,pe.scrollbarSizeListener,(0,lM.jsxs)(mIe,{className:I.scroller,ownerState:M,style:{overflow:G.overflow,[$?"margin"+(i?"Left":"Right"):"marginBottom"]:E?void 0:-G.scrollbarWidth},ref:J,children:[(0,lM.jsx)(gIe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":"vertical"===g?"vertical":null,className:I.flexContainer,ownerState:M,onKeyDown:e=>{const t=ee.current,n=QRe(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",o="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&i&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),hIe(t,n,fIe);break;case o:e.preventDefault(),hIe(t,n,dIe);break;case"Home":e.preventDefault(),hIe(t,null,dIe);break;case"End":e.preventDefault(),hIe(t,null,fIe)}},ref:ee,role:"tablist",children:he}),N&&de]}),pe.scrollButtonEnd]})})),wIe=bIe;function kIe(e){return cB("MuiDateTimePickerTabs",e)}dB("MuiDateTimePickerTabs",["root"]);const xIe=e=>WEe(e)?"date":"time",_Ie=Pq(wIe,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${cIe.indicator}`]:{bottom:"auto",top:0}}}))),SIe=function(e){const t=CEe({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:n=(0,lM.jsx)(kQe,{}),onViewChange:r,timeIcon:i=(0,lM.jsx)(xQe,{}),view:o,hidden:a="undefined"==typeof window||window.innerHeight<667,className:s,sx:l}=t,u=BCe(),d=(e=>{const{classes:t}=e;return qN({root:["root"]},kIe,t)})(t);return a?null:(0,lM.jsxs)(_Ie,{ownerState:t,variant:"fullWidth",value:xIe(o),onChange:(e,t)=>{r((e=>"date"===e?"day":"hours")(t))},className:XN(s,d.root),sx:l,children:[(0,lM.jsx)(JMe,{value:"date","aria-label":u.dateTableLabel,icon:(0,lM.jsx)(c.Fragment,{children:n})}),(0,lM.jsx)(JMe,{value:"time","aria-label":u.timeTableLabel,icon:(0,lM.jsx)(c.Fragment,{children:i})})]})};function PIe(e){return cB("MuiPickersToolbarText",e)}const EIe=dB("MuiPickersToolbarText",["root","selected"]),CIe=["className","selected","value"],TIe=Pq(WCe,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${EIe.selected}`]:t.selected}]})((({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${EIe.selected}`]:{color:(e.vars||e).palette.text.primary}}))),$Ie=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersToolbarText"}),{className:r,value:i}=n,o=EEe(n,CIe),a=(e=>{const{classes:t,selected:n}=e;return qN({root:["root",n&&"selected"]},PIe,t)})(n);return(0,lM.jsx)(TIe,kEe({ref:t,className:XN(a.root,r),component:"span"},o,{children:i}))})),QIe=["align","className","selected","typographyClassName","value","variant","width"],RIe=Pq(O$e,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),AIe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:i,selected:o,typographyClassName:a,value:s,variant:l,width:u}=n,c=EEe(n,QIe),d=(e=>{const{classes:t}=e;return qN({root:["root"]},NCe,t)})(n);return(0,lM.jsx)(RIe,kEe({variant:"text",ref:t,className:XN(d.root,i)},u?{sx:{width:u}}:{},c,{children:(0,lM.jsx)($Ie,{align:r,className:a,variant:l,value:s,selected:o})}))}));function jIe(e){return cB("MuiDateTimePickerToolbar",e)}const DIe=dB("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),MIe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],IIe=e=>{const{classes:t,isLandscape:n,isRtl:r}=e;return qN({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},jIe,t)},zIe=Pq(qCe,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${LCe.content} .${EIe.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]}))),WIe=Pq("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),NIe=Pq("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&"desktop"!==t,style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&"desktop"!==t&&n,style:{flexDirection:"column-reverse"}}]}),LIe=Pq("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),FIe=Pq($Ie,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),UIe=Pq("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${DIe.ampmLabel}`]:t.ampmLabel},{[`&.${DIe.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${DIe.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function XIe(e){const t=CEe({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:d="––",views:f,disabled:h,readOnly:p,toolbarVariant:m="mobile",toolbarTitle:g,className:v}=t,O=EEe(t,MIe),y=kEe({},t,{isRtl:VN()}),b=ECe(),{meridiemMode:w,handleMeridiemChange:k}=JDe(i,n,o),x=Boolean(n&&!r),_="desktop"===m,S=BCe(),P=IIe(y),E=g??S.dateTimePickerToolbarTitle,C=c.useMemo((()=>i?u?b.formatByString(i,u):b.format(i,"shortDate"):d),[i,u,d,b]);return(0,lM.jsxs)(zIe,kEe({isLandscape:s,className:XN(P.root,v),toolbarTitle:E},O,{ownerState:y,children:[(0,lM.jsxs)(WIe,{className:P.dateContainer,ownerState:y,children:[f.includes("year")&&(0,lM.jsx)(AIe,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:"year"===a,value:i?b.format(i,"year"):"–"}),f.includes("day")&&(0,lM.jsx)(AIe,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:"day"===a,value:C})]}),(0,lM.jsxs)(NIe,{className:P.timeContainer,ownerState:y,children:[(0,lM.jsxs)(LIe,{className:P.timeDigitsContainer,ownerState:y,children:[f.includes("hours")&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(AIe,{variant:_?"h5":"h3",width:_&&!s?rQe:void 0,onClick:()=>l("hours"),selected:"hours"===a,value:i?(e=>n?b.format(e,"hours12h"):b.format(e,"hours24h"))(i):"--"}),(0,lM.jsx)(FIe,{variant:_?"h5":"h3",value:":",className:P.separator,ownerState:y}),(0,lM.jsx)(AIe,{variant:_?"h5":"h3",width:_&&!s?rQe:void 0,onClick:()=>l("minutes"),selected:"minutes"===a||!f.includes("minutes")&&"hours"===a,value:i?b.format(i,"minutes"):"--",disabled:!f.includes("minutes")})]}),f.includes("seconds")&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(FIe,{variant:_?"h5":"h3",value:":",className:P.separator,ownerState:y}),(0,lM.jsx)(AIe,{variant:_?"h5":"h3",width:_&&!s?rQe:void 0,onClick:()=>l("seconds"),selected:"seconds"===a,value:i?b.format(i,"seconds"):"--"})]})]}),x&&!_&&(0,lM.jsxs)(UIe,{className:P.ampmSelection,ownerState:y,children:[(0,lM.jsx)(AIe,{variant:"subtitle2",selected:"am"===w,typographyClassName:P.ampmLabel,value:IEe(b,"am"),onClick:p?void 0:()=>k("am"),disabled:h}),(0,lM.jsx)(AIe,{variant:"subtitle2",selected:"pm"===w,typographyClassName:P.ampmLabel,value:IEe(b,"pm"),onClick:p?void 0:()=>k("pm"),disabled:h})]}),n&&_&&(0,lM.jsx)(AIe,{variant:"h5",onClick:()=>l("meridiem"),selected:"meridiem"===a,value:i&&w?IEe(b,w):"--",width:rQe})]})]}))}function qIe(e,t){const n=ECe(),r=CCe(),i=CEe({props:e,name:t}),o=i.ampm??n.is12HourCycleInCurrentLocale(),a=c.useMemo((()=>null==i.localeText?.toolbarTitle?i.localeText:kEe({},i.localeText,{dateTimePickerToolbarTitle:i.localeText.toolbarTitle})),[i.localeText]);return kEe({},i,QEe({views:i.views,openTo:i.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:o,localeText:a,orientation:i.orientation??"portrait",disableIgnoringDatePartForTimeValidation:i.disableIgnoringDatePartForTimeValidation??Boolean(i.minDateTime||i.maxDateTime||i.disablePast||i.disableFuture),disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:jEe(n,i.minDateTime??i.minDate,r.minDate),maxDate:jEe(n,i.maxDateTime??i.maxDate,r.maxDate),minTime:i.minDateTime??i.minTime,maxTime:i.maxDateTime??i.maxTime,slots:kEe({toolbar:XIe,tabs:SIe},i.slots),slotProps:kEe({},i.slotProps,{toolbar:kEe({ampm:o},i.slotProps?.toolbar)})})}const BIe=["views","format"],VIe=(e,t,n)=>{let{views:r,format:i}=t,o=EEe(t,BIe);if(i)return i;const a=[],s=[];if(r.forEach((e=>{UEe(e)?s.push(e):WEe(e)&&a.push(e)})),0===s.length)return NEe(e,kEe({views:a},o),!1);if(0===a.length)return GEe(e,kEe({views:s},o));const l=GEe(e,kEe({views:s},o));return`${n?e.formats.keyboardDate:NEe(e,kEe({views:a},o),!1)} ${l}`},YIe=(e,t,n)=>n?t.filter((e=>!XEe(e)||"hours"===e)):e?[...t,"meridiem"]:t;function ZIe({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=kEe({hours:1,minutes:5,seconds:5},n),a=((e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t)(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:YIe(t,r,a)}}function GIe(e){return cB("MuiTimeClock",e)}dB("MuiTimeClock",["root","arrowSwitcher"]);const HIe=220,KIe=36,JIe=HIe/2,eze=HIe/2,tze=JIe-JIe,nze=0-eze,rze=(e,t,n)=>{const r=t-JIe,i=n-eze;let o=(Math.atan2(tze,nze)-Math.atan2(r,i))*(180/Math.PI);o=Math.round(o/e)*e,o%=360;const a=r**2+i**2;return{value:Math.floor(o/e)||0,distance:Math.sqrt(a)}};function ize(e){return cB("MuiClockPointer",e)}dB("MuiClockPointer",["root","thumb"]);const oze=["className","hasSelected","isInner","type","viewValue"],aze=e=>{const{classes:t}=e;return qN({root:["root"],thumb:["thumb"]},ize,t)},sze=Pq("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]}))),lze=Pq("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]})));function uze(e){const t=CEe({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=EEe(t,oze),s=c.useRef(i);c.useEffect((()=>{s.current=i}),[i]);const l=kEe({},t,{shouldAnimate:s.current!==i}),u=aze(l);return(0,lM.jsx)(sze,kEe({style:(()=>{let e=360/("hours"===i?12:60)*o;return"hours"===i&&o>12&&(e-=360),{height:Math.round((r?.26:.4)*HIe),transform:`rotateZ(${e}deg)`}})(),className:XN(u.root,n),ownerState:l},a,{children:(0,lM.jsx)(lze,{ownerState:l,className:u.thumb})}))}function cze(e){return cB("MuiClock",e)}dB("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const dze=Pq("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)}))),fze=Pq("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),hze=Pq("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),pze=Pq("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),mze=Pq("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})((({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}))),gze=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:KIe,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),vze=Pq(zTe,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})((({theme:e})=>kEe({},gze(e,"am"),{position:"absolute",left:8}))),Oze=Pq(zTe,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})((({theme:e})=>kEe({},gze(e,"pm"),{position:"absolute",right:8}))),yze=Pq(WCe,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function bze(e){const t=CEe({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:d=1,onChange:f,selectedId:h,type:p,viewValue:m,viewRange:[g,v],disabled:O=!1,readOnly:y,className:b}=t,w=t,k=ECe(),x=BCe(),_=c.useRef(!1),S=(e=>{const{classes:t,meridiemMode:n}=e;return qN({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton","am"===n&&"selected"],pmButton:["pmButton","pm"===n&&"selected"],meridiemText:["meridiemText"]},cze,t)})(w),P=l(m,p),E=!n&&"hours"===p&&(m<1||m>12),C=(e,t)=>{O||y||l(e,p)||f(e,t)},T=(e,t)=>{let{offsetX:r,offsetY:i}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,i=e.changedTouches[0].clientY-t.top}const o="seconds"===p||"minutes"===p?((e,t,n=1)=>{const r=6*n;let{value:i}=rze(r,e,t);return i=i*n%60,i})(r,i,d):((e,t,n)=>{const{value:r,distance:i}=rze(30,e,t);let o=r||12;return n?o%=12:i{_.current=!0,T(e,"shallow")},Q=c.useMemo((()=>"hours"===p||m%5==0),[p,m]),R="minutes"===p?d:1,A=c.useRef(null);rL((()=>{i&&A.current.focus()}),[i]);const j=e=>Math.max(g,Math.min(v,e)),D=e=>(e+(v+1))%(v+1);return(0,lM.jsxs)(dze,{className:XN(S.root,b),children:[(0,lM.jsxs)(fze,{className:S.clock,children:[(0,lM.jsx)(pze,{onTouchMove:$,onTouchStart:$,onTouchEnd:e=>{_.current&&(T(e,"finish"),_.current=!1),e.preventDefault()},onMouseUp:e=>{_.current&&(_.current=!1),T(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&T(e.nativeEvent,"shallow")},ownerState:{disabled:O},className:S.squareMask}),!P&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(mze,{className:S.pin}),null!=a&&(0,lM.jsx)(uze,{type:p,viewValue:m,isInner:E,hasSelected:Q})]}),(0,lM.jsx)(hze,{"aria-activedescendant":h,"aria-label":x.clockLabelText(p,a,k,null==a?null:k.format(a,"fullTime")),ref:A,role:"listbox",onKeyDown:e=>{if(!_.current)switch(e.key){case"Home":C(g,"partial"),e.preventDefault();break;case"End":C(v,"partial"),e.preventDefault();break;case"ArrowUp":C(D(m+R),"partial"),e.preventDefault();break;case"ArrowDown":C(D(m-R),"partial"),e.preventDefault();break;case"PageUp":C(j(m+5),"partial"),e.preventDefault();break;case"PageDown":C(j(m-5),"partial"),e.preventDefault();break;case"Enter":case" ":C(m,"finish"),e.preventDefault()}},tabIndex:0,className:S.wrapper,children:o})]}),n&&r&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(vze,{onClick:y?void 0:()=>s("am"),disabled:O||null===u,ownerState:w,className:S.amButton,title:IEe(k,"am"),children:(0,lM.jsx)(yze,{variant:"caption",className:S.meridiemText,children:IEe(k,"am")})}),(0,lM.jsx)(Oze,{disabled:O||null===u,onClick:y?void 0:()=>s("pm"),ownerState:w,className:S.pmButton,title:IEe(k,"pm"),children:(0,lM.jsx)(yze,{variant:"caption",className:S.meridiemText,children:IEe(k,"pm")})})]})]})}function wze(e){return cB("MuiClockNumber",e)}const kze=dB("MuiClockNumber",["root","selected","disabled"]),xze=["className","disabled","index","inner","label","selected"],_ze=Pq("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${kze.disabled}`]:t.disabled},{[`&.${kze.selected}`]:t.selected}]})((({theme:e})=>({height:KIe,width:KIe,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${kze.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${kze.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:kEe({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]})));function Sze(e){const t=CEe({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=EEe(t,xze),u=t,c=(e=>{const{classes:t,selected:n,disabled:r}=e;return qN({root:["root",n&&"selected",r&&"disabled"]},wze,t)})(u),d=i%12/12*Math.PI*2-Math.PI/2,f=(HIe-KIe-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*f),p=Math.round(Math.sin(d)*f);return(0,lM.jsx)(_ze,kEe({className:XN(c.root,n),"aria-disabled":!!r||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${h}px, ${p+(HIe-KIe)/2}px`},ownerState:u},l,{children:a}))}const Pze=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?12:23,u=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=o.formatNumber(a);const c=u(t);s.push((0,lM.jsx)(Sze,{id:c?i:void 0,index:t,inner:l,selected:c,disabled:r(t),label:a,"aria-label":n(a)},t))}return s},Eze=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map((([e,o],a)=>{const s=e===t;return(0,lM.jsx)(Sze,{label:o,id:s?i:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(o)},e)}))},Cze=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=c.useMemo((()=>OCe.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:HEe.day,timezone:i,getTodayDate:()=>MEe(n,i,"date")})),[]);return e??o},Tze=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],$ze=Pq(cMe,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Qze=Pq(KDe,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Rze=["hours","minutes"],Aze=c.forwardRef((function(e,t){const n=ECe(),r=CEe({props:e,name:"MuiTimeClock"}),{ampm:i=n.is12HourCycleInCurrentLocale(),ampmInClock:o=!1,autoFocus:a,slots:s,slotProps:l,value:u,defaultValue:d,referenceDate:f,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:p,minTime:m,disableFuture:g,disablePast:v,minutesStep:O=1,shouldDisableTime:y,showViewSwitcher:b,onChange:w,view:k,views:x=Rze,openTo:_,onViewChange:S,focusedView:P,onFocusedViewChange:E,className:C,disabled:T,readOnly:$,timezone:Q}=r,R=EEe(r,Tze),{value:A,handleValueChange:j,timezone:D}=n$e({name:"TimeClock",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:w,valueManager:OCe}),M=Cze({value:A,referenceDate:f,utils:n,props:r,timezone:D}),I=BCe(),z=TCe(D),{view:W,setView:N,previousView:L,nextView:F,setValueAndGoToNextView:U}=r$e({view:k,views:x,openTo:_,onViewChange:S,onChange:j,focusedView:P,onFocusedViewChange:E}),{meridiemMode:X,handleMeridiemChange:q}=JDe(M,i,U),B=c.useCallback(((e,t)=>{const r=ZEe(h,n),o="hours"===t||"minutes"===t&&x.includes("seconds"),a=({start:e,end:t})=>!(m&&r(m,t)||p&&r(e,p)||g&&r(e,z)||v&&r(z,o?t:e)),s=(e,r=1)=>{if(e%r!=0)return!1;if(y)switch(t){case"hours":return!y(n.setHours(M,e),"hours");case"minutes":return!y(n.setMinutes(M,e),"minutes");case"seconds":return!y(n.setSeconds(M,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=BEe(e,X,i),r=n.setHours(M,t);return n.getHours(r)!==t||(!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t))}case"minutes":{const t=n.setMinutes(M,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,O)}case"seconds":{const t=n.setSeconds(M,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[i,M,h,p,X,m,O,y,n,g,v,z,x]),V=R3(),Y=c.useMemo((()=>{switch(W){case"hours":{const e=(e,t)=>{const r=BEe(e,X,i);U(n.setHours(M,r),t,"hours")},t=n.getHours(M);let r;return r=i?t>12?[12,23]:[0,11]:[0,23],{onChange:e,viewValue:t,children:Pze({value:A,utils:n,ampm:i,onChange:e,getClockNumberText:I.hoursClockNumberText,isDisabled:e=>T||B(e,"hours"),selectedId:V}),viewRange:r}}case"minutes":{const e=n.getMinutes(M),t=(e,t)=>{U(n.setMinutes(M,e),t,"minutes")};return{viewValue:e,onChange:t,children:Eze({utils:n,value:e,onChange:t,getClockNumberText:I.minutesClockNumberText,isDisabled:e=>T||B(e,"minutes"),selectedId:V}),viewRange:[0,59]}}case"seconds":{const e=n.getSeconds(M),t=(e,t)=>{U(n.setSeconds(M,e),t,"seconds")};return{viewValue:e,onChange:t,children:Eze({utils:n,value:e,onChange:t,getClockNumberText:I.secondsClockNumberText,isDisabled:e=>T||B(e,"seconds"),selectedId:V}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}}),[W,n,A,i,I.hoursClockNumberText,I.minutesClockNumberText,I.secondsClockNumberText,X,U,M,B,V,T]),Z=r,G=(e=>{const{classes:t}=e;return qN({root:["root"],arrowSwitcher:["arrowSwitcher"]},GIe,t)})(Z);return(0,lM.jsxs)($ze,kEe({ref:t,className:XN(G.root,C),ownerState:Z},R,{children:[(0,lM.jsx)(bze,kEe({autoFocus:a??!!P,ampmInClock:o&&x.includes("hours"),value:A,type:W,ampm:i,minutesStep:O,isTimeDisabled:B,meridiemMode:X,handleMeridiemChange:q,selectedId:V,disabled:T,readOnly:$},Y)),b&&(0,lM.jsx)(Qze,{className:G.arrowSwitcher,slots:s,slotProps:l,onGoToPrevious:()=>N(L),isPreviousDisabled:!L,previousLabel:I.openPreviousView,onGoToNext:()=>N(F),isNextDisabled:!F,nextLabel:I.openNextView,ownerState:Z})]}))})),jze=dB("MuiListItemIcon",["root","alignItemsFlexStart"]),Dze=dB("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Mze(e){return cB("MuiMenuItem",e)}const Ize=dB("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zze=Pq(ATe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Cq((({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ize.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ize.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ize.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ize.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ize.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${NMe.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${NMe.inset}`]:{marginLeft:52},[`& .${Dze.root}`]:{marginTop:0,marginBottom:0},[`& .${Dze.inset}`]:{paddingLeft:36},[`& .${jze.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${jze.root} svg`]:{fontSize:"1.25rem"}}}]})))),Wze=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:o=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:d,className:f,...h}=n,p=c.useContext(S$e),m=c.useMemo((()=>({dense:o||p.dense||!1,disableGutters:s})),[p.dense,o,s]),g=c.useRef(null);$Qe((()=>{r&&g.current&&g.current.focus()}),[r]);const v={...n,dense:m.dense,divider:a,disableGutters:s},O=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,s=qN({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Mze,a);return{...a,...s}})(n),y=rB(g,t);let b;return n.disabled||(b=void 0!==d?d:-1),(0,lM.jsx)(S$e.Provider,{value:m,children:(0,lM.jsx)(zze,{ref:y,role:u,tabIndex:b,component:i,focusVisibleClassName:XN(O.focusVisible,l),className:XN(O.root,f),...h,ownerState:v,classes:O})})})),Nze=Wze;function Lze(e){return cB("MuiDigitalClock",e)}const Fze=dB("MuiDigitalClock",["root","list","item"]),Uze=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Xze=Pq(cMe,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:232,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),qze=Pq(zRe,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Bze=Pq(Nze,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette.primary.main,e.palette.action.focusOpacity)}}))),Vze=c.forwardRef((function(e,t){const n=ECe(),r=c.useRef(null),i=GN(t,r),o=c.useRef(null),a=CEe({props:e,name:"MuiDigitalClock"}),{ampm:s=n.is12HourCycleInCurrentLocale(),timeStep:l=30,autoFocus:u,slots:d,slotProps:f,value:h,defaultValue:p,referenceDate:m,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:v,minTime:O,disableFuture:y,disablePast:b,minutesStep:w=1,shouldDisableTime:k,onChange:x,view:_,openTo:S,onViewChange:P,focusedView:E,onFocusedViewChange:C,className:T,disabled:$,readOnly:Q,views:R=["hours"],skipDisabled:A=!1,timezone:j}=a,D=EEe(a,Uze),{value:M,handleValueChange:I,timezone:z}=n$e({name:"DigitalClock",timezone:j,value:h,defaultValue:p,referenceDate:m,onChange:x,valueManager:OCe}),W=BCe(),N=TCe(z),L=c.useMemo((()=>kEe({},a,{alreadyRendered:!!r.current})),[a]),F=(e=>{const{classes:t}=e;return qN({root:["root"],list:["list"],item:["item"]},Lze,t)})(L),U=d?.digitalClockItem??Bze,X=b3({elementType:U,externalSlotProps:f?.digitalClockItem,ownerState:{},className:F.item}),q=Cze({value:M,referenceDate:m,utils:n,props:a,timezone:z}),B=gB((e=>I(e,"finish","hours"))),{setValueAndGoToNextView:V}=r$e({view:_,views:R,openTo:S,onViewChange:P,onChange:B,focusedView:E,onFocusedViewChange:C}),Y=gB((e=>{V(e,"finish")}));c.useEffect((()=>{if(null===r.current)return;const e=r.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;(u||E)&&e.focus(),r.current.scrollTop=t-4}));const Z=c.useCallback((e=>{const t=ZEe(g,n);return!!(O&&t(O,e)||v&&t(e,v)||y&&t(e,N)||b&&t(N,e))||!!(n.getMinutes(e)%w!=0||k&&k(e,"hours"))}),[g,n,O,v,y,N,b,w,k]),G=c.useMemo((()=>{const e=[];let t=n.startOfDay(q);for(;n.isSameDay(q,t);)e.push(t),t=n.addMinutes(t,l);return e}),[q,l,n]),H=G.findIndex((e=>n.isEqual(e,q)));return(0,lM.jsx)(Xze,kEe({ref:i,className:XN(F.root,T),ownerState:L},D,{children:(0,lM.jsx)(qze,{ref:o,role:"listbox","aria-label":W.timePickerToolbarTitle,className:F.list,onKeyDown:e=>{switch(e.key){case"PageUp":{const t=FTe(o.current)-5,n=o.current.children[Math.max(0,t)];n&&n.focus(),e.preventDefault();break}case"PageDown":{const t=FTe(o.current)+5,n=o.current.children,r=n[Math.min(n.length-1,t)];r&&r.focus(),e.preventDefault();break}}},children:G.map(((e,t)=>{if(A&&Z(e))return null;const r=n.isEqual(e,M),i=n.format(e,s?"fullTime12h":"fullTime24h"),o=H===t||-1===H&&0===t?0:-1;return(0,lM.jsx)(U,kEe({onClick:()=>!Q&&Y(e),selected:r,disabled:$||Z(e),disableRipple:Q,role:"option","aria-disabled":Q,"aria-selected":r,tabIndex:o},X,{children:i}),`${e.valueOf()}-${i}`)}))})}))}));function Yze(e){return cB("MuiMultiSectionDigitalClock",e)}const Zze=dB("MuiMultiSectionDigitalClock",["root"]);function Gze(e){return cB("MuiMultiSectionDigitalClockSection",e)}const Hze=dB("MuiMultiSectionDigitalClockSection",["root","item"]),Kze=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Jze=Pq(zRe,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({maxHeight:232,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}))),eWe=Pq(Nze,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:8,margin:"2px 4px",width:rQe,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette.primary.main,e.palette.action.focusOpacity)}}))),tWe=c.forwardRef((function(e,t){const n=c.useRef(null),r=GN(t,n),i=c.useRef(null),o=CEe({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:s,className:l,disabled:u,readOnly:d,items:f,active:h,slots:p,slotProps:m,skipDisabled:g}=o,v=EEe(o,Kze),O=c.useMemo((()=>kEe({},o,{alreadyRendered:!!n.current})),[o]),y=(e=>{const{classes:t}=e;return qN({root:["root"],item:["item"]},Gze,t)})(O),b=p?.digitalClockSectionItem??eWe;c.useEffect((()=>{if(null===n.current)return;const e=n.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(h&&a&&e&&e.focus(),!e||i.current===e)return;i.current=e;const t=e.offsetTop;n.current.scrollTop=t-4}));const w=f.findIndex((e=>e.isFocused(e.value)));return(0,lM.jsx)(Jze,kEe({ref:r,className:XN(y.root,l),ownerState:O,autoFocusItem:a&&h,role:"listbox",onKeyDown:e=>{switch(e.key){case"PageUp":{const t=FTe(n.current)-5,r=n.current.children[Math.max(0,t)];r&&r.focus(),e.preventDefault();break}case"PageDown":{const t=FTe(n.current)+5,r=n.current.children,i=r[Math.min(r.length-1,t)];i&&i.focus(),e.preventDefault();break}}}},v,{children:f.map(((e,t)=>{const n=e.isDisabled?.(e.value),r=u||n;if(g&&r)return null;const i=e.isSelected(e.value),o=w===t||-1===w&&0===t?0:-1;return(0,lM.jsx)(b,kEe({onClick:()=>!d&&s(e.value),selected:i,disabled:r,disableRipple:d,role:"option","aria-disabled":d||r||void 0,"aria-label":e.ariaLabel,"aria-selected":i,tabIndex:o,className:y.item},m?.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),nWe=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,u=[],c=(e,t)=>{const n=t??l;return null!==n&&(r?12===e?12===n||0===n:n===e||n-12===e:n===e)},d=e=>c(e,n.getHours(s)),f=r?11:23;for(let t=0;t<=f;t+=a){let a=n.format(n.setHours(e,t),r?"hours12h":"hours24h");const s=o(parseInt(a,10).toString());a=n.formatNumber(a),u.push({value:t,label:a,isSelected:c,isDisabled:i,isFocused:d,ariaLabel:s})}return u},rWe=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=t=>null!==e&&a&&e===t,l=t=>e===t;return[...Array.from({length:Math.ceil(60/r)},((e,a)=>{const u=r*a;return{value:u,label:t.formatNumber(i(u)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:o(u.toString())}}))]},iWe=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],oWe=Pq(cMe,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`}))),aWe=c.forwardRef((function(e,t){const n=ECe(),r=VN(),i=CEe({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:o=n.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,slots:l,slotProps:u,value:d,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:m,minTime:g,disableFuture:v,disablePast:O,minutesStep:y=1,shouldDisableTime:b,onChange:w,view:k,views:x=["hours","minutes"],openTo:_,onViewChange:S,focusedView:P,onFocusedViewChange:E,className:C,disabled:T,readOnly:$,skipDisabled:Q=!1,timezone:R}=i,A=EEe(i,iWe),{value:j,handleValueChange:D,timezone:M}=n$e({name:"MultiSectionDigitalClock",timezone:R,value:d,defaultValue:f,referenceDate:h,onChange:w,valueManager:OCe}),I=BCe(),z=TCe(M),W=c.useMemo((()=>kEe({hours:1,minutes:5,seconds:5},a)),[a]),N=Cze({value:j,referenceDate:h,utils:n,props:i,timezone:M}),L=gB(((e,t,n)=>D(e,t,n))),F=c.useMemo((()=>o&&x.includes("hours")?x.includes("meridiem")?x:[...x,"meridiem"]:x),[o,x]),{view:U,setValueAndGoToNextView:X,focusedView:q}=r$e({view:k,views:F,openTo:_,onViewChange:S,onChange:L,focusedView:P,onFocusedViewChange:E}),B=gB((e=>{X(e,"finish","meridiem")})),{meridiemMode:V,handleMeridiemChange:Y}=JDe(N,o,B,"finish"),Z=c.useCallback(((e,t)=>{const r=ZEe(p,n),i="hours"===t||"minutes"===t&&F.includes("seconds"),a=({start:e,end:t})=>!(g&&r(g,t)||m&&r(e,m)||v&&r(e,z)||O&&r(z,i?t:e)),s=(e,r=1)=>{if(e%r!=0)return!1;if(b)switch(t){case"hours":return!b(n.setHours(N,e),"hours");case"minutes":return!b(n.setMinutes(N,e),"minutes");case"seconds":return!b(n.setSeconds(N,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=BEe(e,V,o),r=n.setHours(N,t);return n.getHours(r)!==t||(!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t))}case"minutes":{const t=n.setMinutes(N,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,y)}case"seconds":{const t=n.setSeconds(N,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[o,N,p,m,V,g,y,b,n,v,O,z,F]),G=c.useCallback((e=>{switch(e){case"hours":return{onChange:e=>{const t=BEe(e,V,o);X(n.setHours(N,t),"finish","hours")},items:nWe({now:z,value:j,ampm:o,utils:n,isDisabled:e=>Z(e,"hours"),timeStep:W.hours,resolveAriaLabel:I.hoursClockNumberText,valueOrReferenceDate:N})};case"minutes":return{onChange:e=>{X(n.setMinutes(N,e),"finish","minutes")},items:rWe({value:n.getMinutes(N),utils:n,isDisabled:e=>Z(e,"minutes"),resolveLabel:e=>n.format(n.setMinutes(z,e),"minutes"),timeStep:W.minutes,hasValue:!!j,resolveAriaLabel:I.minutesClockNumberText})};case"seconds":return{onChange:e=>{X(n.setSeconds(N,e),"finish","seconds")},items:rWe({value:n.getSeconds(N),utils:n,isDisabled:e=>Z(e,"seconds"),resolveLabel:e=>n.format(n.setSeconds(z,e),"seconds"),timeStep:W.seconds,hasValue:!!j,resolveAriaLabel:I.secondsClockNumberText})};case"meridiem":{const e=IEe(n,"am"),t=IEe(n,"pm");return{onChange:Y,items:[{value:"am",label:e,isSelected:()=>!!j&&"am"===V,isFocused:()=>!!N&&"am"===V,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!j&&"pm"===V,isFocused:()=>!!N&&"pm"===V,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}}),[z,j,o,n,W.hours,W.minutes,W.seconds,I.hoursClockNumberText,I.minutesClockNumberText,I.secondsClockNumberText,V,X,N,Z,Y]),H=c.useMemo((()=>{if(!r)return F;const e=F.filter((e=>"meridiem"!==e));return e.reverse(),F.includes("meridiem")&&e.push("meridiem"),e}),[r,F]),K=c.useMemo((()=>F.reduce(((e,t)=>kEe({},e,{[t]:G(t)})),{})),[F,G]),J=i,ee=(e=>{const{classes:t}=e;return qN({root:["root"]},Yze,t)})(J);return(0,lM.jsx)(oWe,kEe({ref:t,className:XN(ee.root,C),ownerState:J,role:"group"},A,{children:H.map((e=>(0,lM.jsx)(tWe,{items:K[e].items,onChange:K[e].onChange,active:U===e,autoFocus:s??q===e,disabled:T,readOnly:$,slots:l,slotProps:u,skipDisabled:Q,"aria-label":I.selectViewText(e)},e)))}))})),sWe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,ampmInClock:O,slots:y,slotProps:b,readOnly:w,disabled:k,sx:x,autoFocus:_,showViewSwitcher:S,disableIgnoringDatePartForTimeValidation:P,timezone:E})=>(0,lM.jsx)(Aze,{view:e,onViewChange:t,focusedView:n&&UEe(n)?n:null,onFocusedViewChange:r,views:i.filter(UEe),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,ampmInClock:O,slots:y,slotProps:b,readOnly:w,disabled:k,sx:x,autoFocus:_,showViewSwitcher:S,disableIgnoringDatePartForTimeValidation:P,timezone:E}),lWe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,slots:O,slotProps:y,readOnly:b,disabled:w,sx:k,autoFocus:x,disableIgnoringDatePartForTimeValidation:_,timeSteps:S,skipDisabled:P,timezone:E})=>(0,lM.jsx)(Vze,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(UEe),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,slots:O,slotProps:y,readOnly:b,disabled:w,sx:k,autoFocus:x,disableIgnoringDatePartForTimeValidation:_,timeStep:S?.minutes,skipDisabled:P,timezone:E}),uWe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,slots:O,slotProps:y,readOnly:b,disabled:w,sx:k,autoFocus:x,disableIgnoringDatePartForTimeValidation:_,timeSteps:S,skipDisabled:P,timezone:E})=>(0,lM.jsx)(aWe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(UEe),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,slots:O,slotProps:y,readOnly:b,disabled:w,sx:k,autoFocus:x,disableIgnoringDatePartForTimeValidation:_,timeSteps:S,skipDisabled:P,timezone:E}),cWe=c.forwardRef((function(e,t){const n=VN(),{toolbar:r,tabs:i,content:o,actionBar:a,shortcuts:s}=sQe(e),{sx:l,className:u,isLandscape:c,classes:d}=e,f=a&&(a.props.actions?.length??0)>0,h=kEe({},e,{isRtl:n});return(0,lM.jsxs)(lQe,{ref:t,className:XN(l$e.root,d?.root,u),sx:[{[`& .${l$e.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${l$e.actionBar}`]:{gridRow:5}},...Array.isArray(l)?l:[l]],ownerState:h,children:[c?s:r,c?r:s,(0,lM.jsxs)(uQe,{className:XN(l$e.contentWrapper,d?.contentWrapper),sx:{display:"grid"},children:[o,i,f&&(0,lM.jsx)(XMe,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})})),dWe=["openTo","focusedView","timeViewsCount"],fWe=function(e,t,n){const{openTo:r,focusedView:i,timeViewsCount:o}=n,a=kEe({},EEe(n,dWe),{focusedView:null,sx:[{[`&.${Zze.root}`]:{borderBottom:0},[`&.${Zze.root}, .${Hze.root}, &.${Fze.root}`]:{maxHeight:nQe}}]}),s=XEe(t);return(0,lM.jsxs)(c.Fragment,{children:[e[s?"day":t]?.(kEe({},n,{view:s?"day":t,focusedView:i&&WEe(i)?i:null,views:n.views.filter(WEe),sx:[{gridColumn:1},...a.sx]})),o>0&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(XMe,{orientation:"vertical",sx:{gridColumn:2}}),e[s?t:"hours"]?.(kEe({},a,{view:s?t:"hours",focusedView:i&&XEe(i)?i:null,openTo:XEe(r)?r:"hours",views:n.views.filter(XEe),sx:[{gridColumn:3},...a.sx]}))]})]})},hWe=c.forwardRef((function(e,t){const n=BCe(),r=ECe(),i=qIe(e,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:o,thresholdToRenderTimeInASingleColumn:a,views:s,timeSteps:l}=ZIe(i),u=o?lWe:uWe,c=kEe({day:gMe,month:gMe,year:gMe,hours:u,minutes:u,seconds:u,meridiem:u},i.viewRenderers),d=i.ampmInClock??!0,f=c.hours?.name===uWe.name?s:s.filter((e=>"meridiem"!==e)),h=o?[]:["accept"],p=kEe({},i,{viewRenderers:c,format:VIe(r,i),views:f,yearsPerRow:i.yearsPerRow??4,ampmInClock:d,timeSteps:l,thresholdToRenderTimeInASingleColumn:a,shouldRenderTimeInASingleColumn:o,slots:kEe({field:YMe,layout:cWe,openPickerIcon:bQe},i.slots),slotProps:kEe({},i.slotProps,{field:e=>kEe({},jq(i.slotProps?.field,e),rTe(i),{ref:t}),toolbar:kEe({hidden:!0,ampmInClock:d,toolbarVariant:"desktop"},i.slotProps?.toolbar),tabs:kEe({hidden:!0},i.slotProps?.tabs),actionBar:e=>kEe({actions:h},jq(i.slotProps?.actionBar,e))})}),{renderPicker:m}=gQe({props:p,valueManager:OCe,valueType:"date-time",getOpenDialogAriaText:xCe({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:p.localeText?.openDatePickerDialogue}),validator:BMe,rendererInterceptor:fWe});return m()}));hWe.propTypes={ampm:Kye().bool,ampmInClock:Kye().bool,autoFocus:Kye().bool,className:Kye().string,closeOnSelect:Kye().bool,dayOfWeekFormatter:Kye().func,defaultValue:Kye().object,disabled:Kye().bool,disableFuture:Kye().bool,disableHighlightToday:Kye().bool,disableIgnoringDatePartForTimeValidation:Kye().bool,disableOpenPicker:Kye().bool,disablePast:Kye().bool,displayWeekNumber:Kye().bool,enableAccessibleFieldDOMStructure:Kye().any,fixedWeekNumber:Kye().number,format:Kye().string,formatDensity:Kye().oneOf(["dense","spacious"]),inputRef:TEe,label:Kye().node,loading:Kye().bool,localeText:Kye().object,maxDate:Kye().object,maxDateTime:Kye().object,maxTime:Kye().object,minDate:Kye().object,minDateTime:Kye().object,minTime:Kye().object,minutesStep:Kye().number,monthsPerRow:Kye().oneOf([3,4]),name:Kye().string,onAccept:Kye().func,onChange:Kye().func,onClose:Kye().func,onError:Kye().func,onMonthChange:Kye().func,onOpen:Kye().func,onSelectedSectionsChange:Kye().func,onViewChange:Kye().func,onYearChange:Kye().func,open:Kye().bool,openTo:Kye().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Kye().oneOf(["landscape","portrait"]),readOnly:Kye().bool,reduceAnimations:Kye().bool,referenceDate:Kye().object,renderLoading:Kye().func,selectedSections:Kye().oneOfType([Kye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Kye().number]),shouldDisableDate:Kye().func,shouldDisableMonth:Kye().func,shouldDisableTime:Kye().func,shouldDisableYear:Kye().func,showDaysOutsideCurrentMonth:Kye().bool,skipDisabled:Kye().bool,slotProps:Kye().object,slots:Kye().object,sx:Kye().oneOfType([Kye().arrayOf(Kye().oneOfType([Kye().func,Kye().object,Kye().bool])),Kye().func,Kye().object]),thresholdToRenderTimeInASingleColumn:Kye().number,timeSteps:Kye().shape({hours:Kye().number,minutes:Kye().number,seconds:Kye().number}),timezone:Kye().string,value:Kye().object,view:Kye().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Kye().shape({day:Kye().func,hours:Kye().func,meridiem:Kye().func,minutes:Kye().func,month:Kye().func,seconds:Kye().func,year:Kye().func}),views:Kye().arrayOf(Kye().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Kye().oneOf(["asc","desc"]),yearsPerRow:Kye().oneOf([3,4])};const pWe=c.forwardRef((function(e,t){const n=BCe(),r=ECe(),i=qIe(e,"MuiMobileDateTimePicker"),o=kEe({day:gMe,month:gMe,year:gMe,hours:sWe,minutes:sWe,seconds:sWe},i.viewRenderers),a=i.ampmInClock??!1,s=kEe({},i,{viewRenderers:o,format:VIe(r,i),ampmInClock:a,slots:kEe({field:YMe},i.slots),slotProps:kEe({},i.slotProps,{field:e=>kEe({},jq(i.slotProps?.field,e),rTe(i),{ref:t}),toolbar:kEe({hidden:!1,ampmInClock:a},i.slotProps?.toolbar),tabs:kEe({hidden:!1},i.slotProps?.tabs)})}),{renderPicker:l}=DMe({props:s,valueManager:OCe,valueType:"date-time",getOpenDialogAriaText:xCe({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:BMe});return l()}));pWe.propTypes={ampm:Kye().bool,ampmInClock:Kye().bool,autoFocus:Kye().bool,className:Kye().string,closeOnSelect:Kye().bool,dayOfWeekFormatter:Kye().func,defaultValue:Kye().object,disabled:Kye().bool,disableFuture:Kye().bool,disableHighlightToday:Kye().bool,disableIgnoringDatePartForTimeValidation:Kye().bool,disableOpenPicker:Kye().bool,disablePast:Kye().bool,displayWeekNumber:Kye().bool,enableAccessibleFieldDOMStructure:Kye().any,fixedWeekNumber:Kye().number,format:Kye().string,formatDensity:Kye().oneOf(["dense","spacious"]),inputRef:TEe,label:Kye().node,loading:Kye().bool,localeText:Kye().object,maxDate:Kye().object,maxDateTime:Kye().object,maxTime:Kye().object,minDate:Kye().object,minDateTime:Kye().object,minTime:Kye().object,minutesStep:Kye().number,monthsPerRow:Kye().oneOf([3,4]),name:Kye().string,onAccept:Kye().func,onChange:Kye().func,onClose:Kye().func,onError:Kye().func,onMonthChange:Kye().func,onOpen:Kye().func,onSelectedSectionsChange:Kye().func,onViewChange:Kye().func,onYearChange:Kye().func,open:Kye().bool,openTo:Kye().oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Kye().oneOf(["landscape","portrait"]),readOnly:Kye().bool,reduceAnimations:Kye().bool,referenceDate:Kye().object,renderLoading:Kye().func,selectedSections:Kye().oneOfType([Kye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Kye().number]),shouldDisableDate:Kye().func,shouldDisableMonth:Kye().func,shouldDisableTime:Kye().func,shouldDisableYear:Kye().func,showDaysOutsideCurrentMonth:Kye().bool,slotProps:Kye().object,slots:Kye().object,sx:Kye().oneOfType([Kye().arrayOf(Kye().oneOfType([Kye().func,Kye().object,Kye().bool])),Kye().func,Kye().object]),timezone:Kye().string,value:Kye().object,view:Kye().oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Kye().shape({day:Kye().func,hours:Kye().func,minutes:Kye().func,month:Kye().func,seconds:Kye().func,year:Kye().func}),views:Kye().arrayOf(Kye().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Kye().oneOf(["asc","desc"]),yearsPerRow:Kye().oneOf([3,4])};const mWe=["desktopModeMediaQuery"],gWe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:r=UTe}=n,i=EEe(n,mWe);return z2(r,{defaultMatches:!0})?(0,lM.jsx)(hWe,kEe({ref:t},i)):(0,lM.jsx)(pWe,kEe({ref:t},i))})),vWe=["slots","slotProps","InputProps","inputProps"],OWe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiTimeField"}),{slots:r,slotProps:i,InputProps:o,inputProps:a}=n,s=EEe(n,vWe),l=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Mje:QAe),c=b3({elementType:u,externalSlotProps:i?.textField,externalForwardedProps:s,ownerState:l,additionalProps:{ref:t}});c.inputProps=kEe({},a,c.inputProps),c.InputProps=kEe({},o,c.InputProps);const d=(e=>{const t=(e=>{const t=ECe(),n=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return kEe({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??n})})(e),{forwardedProps:n,internalProps:r}=LAe(t,"time");return WAe({forwardedProps:n,internalProps:r,valueManager:OCe,fieldValueManager:yCe,validator:qMe,valueType:"time"})})(c),f=Nje(d),h=XAe(kEe({},f,{slots:r,slotProps:i}));return(0,lM.jsx)(u,kEe({},h))}));function yWe(e){return cB("MuiTimePickerToolbar",e)}const bWe=dB("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),wWe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],kWe=e=>{const{isLandscape:t,classes:n,isRtl:r}=e;return qN({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",t&&"hourMinuteLabelLandscape",r&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",t&&"ampmLandscape"],ampmLabel:["ampmLabel"]},yWe,n)},xWe=Pq(qCe,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_We=Pq($Ie,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),SWe=Pq("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${bWe.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${bWe.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{isLandscape:!0},style:{marginTop:"auto"}}]}),PWe=Pq("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${bWe.ampmLabel}`]:t.ampmLabel},{[`&.${bWe.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${bWe.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function EWe(e){const t=CEe({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:s,onViewChange:l,views:u,disabled:c,readOnly:d,className:f}=t,h=EEe(t,wWe),p=ECe(),m=BCe(),g=VN(),v=Boolean(n&&!r&&u.includes("hours")),{meridiemMode:O,handleMeridiemChange:y}=JDe(i,n,a),b=kEe({},t,{isRtl:g}),w=kWe(b),k=(0,lM.jsx)(_We,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:w.separator});return(0,lM.jsxs)(xWe,kEe({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:b,className:XN(w.root,f)},h,{children:[(0,lM.jsxs)(SWe,{className:w.hourMinuteLabel,ownerState:b,children:[NTe(u,"hours")&&(0,lM.jsx)(AIe,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:"hours"===s,value:i?(e=>n?p.format(e,"hours12h"):p.format(e,"hours24h"))(i):"--"}),NTe(u,["hours","minutes"])&&k,NTe(u,"minutes")&&(0,lM.jsx)(AIe,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:"minutes"===s,value:i?p.format(i,"minutes"):"--"}),NTe(u,["minutes","seconds"])&&k,NTe(u,"seconds")&&(0,lM.jsx)(AIe,{variant:"h3",onClick:()=>l("seconds"),selected:"seconds"===s,value:i?p.format(i,"seconds"):"--"})]}),v&&(0,lM.jsxs)(PWe,{className:w.ampmSelection,ownerState:b,children:[(0,lM.jsx)(AIe,{disableRipple:!0,variant:"subtitle2",selected:"am"===O,typographyClassName:w.ampmLabel,value:IEe(p,"am"),onClick:d?void 0:()=>y("am"),disabled:c}),(0,lM.jsx)(AIe,{disableRipple:!0,variant:"subtitle2",selected:"pm"===O,typographyClassName:w.ampmLabel,value:IEe(p,"pm"),onClick:d?void 0:()=>y("pm"),disabled:c})]})]}))}function CWe(e,t){const n=ECe(),r=CEe({props:e,name:t}),i=r.ampm??n.is12HourCycleInCurrentLocale(),o=c.useMemo((()=>null==r.localeText?.toolbarTitle?r.localeText:kEe({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle})),[r.localeText]);return kEe({},r,{ampm:i,localeText:o},QEe({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,slots:kEe({toolbar:EWe},r.slots),slotProps:kEe({},r.slotProps,{toolbar:kEe({ampm:i,ampmInClock:r.ampmInClock},r.slotProps?.toolbar)})})}const TWe=c.forwardRef((function(e,t){const n=BCe(),r=ECe(),i=CWe(e,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:o,views:a,timeSteps:s}=ZIe(i),l=o?lWe:uWe,u=kEe({hours:l,minutes:l,seconds:l,meridiem:l},i.viewRenderers),c=i.ampmInClock??!0,d=o?[]:["accept"],f=u.hours?.name===uWe.name?a:a.filter((e=>"meridiem"!==e)),h=kEe({},i,{ampmInClock:c,timeSteps:s,viewRenderers:u,format:GEe(r,i),views:o?["hours"]:f,slots:kEe({field:OWe,openPickerIcon:wQe},i.slots),slotProps:kEe({},i.slotProps,{field:e=>kEe({},jq(i.slotProps?.field,e),rTe(i),{ref:t}),toolbar:kEe({hidden:!0,ampmInClock:c},i.slotProps?.toolbar),actionBar:kEe({actions:d},i.slotProps?.actionBar)})}),{renderPicker:p}=gQe({props:h,valueManager:OCe,valueType:"time",getOpenDialogAriaText:xCe({utils:r,formatKey:"fullTime",contextTranslation:n.openTimePickerDialogue,propsTranslation:h.localeText?.openTimePickerDialogue}),validator:qMe});return p()}));TWe.propTypes={ampm:Kye().bool,ampmInClock:Kye().bool,autoFocus:Kye().bool,className:Kye().string,closeOnSelect:Kye().bool,defaultValue:Kye().object,disabled:Kye().bool,disableFuture:Kye().bool,disableIgnoringDatePartForTimeValidation:Kye().bool,disableOpenPicker:Kye().bool,disablePast:Kye().bool,enableAccessibleFieldDOMStructure:Kye().any,format:Kye().string,formatDensity:Kye().oneOf(["dense","spacious"]),inputRef:TEe,label:Kye().node,localeText:Kye().object,maxTime:Kye().object,minTime:Kye().object,minutesStep:Kye().number,name:Kye().string,onAccept:Kye().func,onChange:Kye().func,onClose:Kye().func,onError:Kye().func,onOpen:Kye().func,onSelectedSectionsChange:Kye().func,onViewChange:Kye().func,open:Kye().bool,openTo:Kye().oneOf(["hours","meridiem","minutes","seconds"]),orientation:Kye().oneOf(["landscape","portrait"]),readOnly:Kye().bool,reduceAnimations:Kye().bool,referenceDate:Kye().object,selectedSections:Kye().oneOfType([Kye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Kye().number]),shouldDisableTime:Kye().func,skipDisabled:Kye().bool,slotProps:Kye().object,slots:Kye().object,sx:Kye().oneOfType([Kye().arrayOf(Kye().oneOfType([Kye().func,Kye().object,Kye().bool])),Kye().func,Kye().object]),thresholdToRenderTimeInASingleColumn:Kye().number,timeSteps:Kye().shape({hours:Kye().number,minutes:Kye().number,seconds:Kye().number}),timezone:Kye().string,value:Kye().object,view:Kye().oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Kye().shape({hours:Kye().func,meridiem:Kye().func,minutes:Kye().func,seconds:Kye().func}),views:Kye().arrayOf(Kye().oneOf(["hours","minutes","seconds"]).isRequired)};const $We=c.forwardRef((function(e,t){const n=BCe(),r=ECe(),i=CWe(e,"MuiMobileTimePicker"),o=kEe({hours:sWe,minutes:sWe,seconds:sWe},i.viewRenderers),a=i.ampmInClock??!1,s=kEe({},i,{ampmInClock:a,viewRenderers:o,format:GEe(r,i),slots:kEe({field:OWe},i.slots),slotProps:kEe({},i.slotProps,{field:e=>kEe({},jq(i.slotProps?.field,e),rTe(i),{ref:t}),toolbar:kEe({hidden:!1,ampmInClock:a},i.slotProps?.toolbar)})}),{renderPicker:l}=DMe({props:s,valueManager:OCe,valueType:"time",getOpenDialogAriaText:xCe({utils:r,formatKey:"fullTime",contextTranslation:n.openTimePickerDialogue,propsTranslation:s.localeText?.openTimePickerDialogue}),validator:qMe});return l()}));$We.propTypes={ampm:Kye().bool,ampmInClock:Kye().bool,autoFocus:Kye().bool,className:Kye().string,closeOnSelect:Kye().bool,defaultValue:Kye().object,disabled:Kye().bool,disableFuture:Kye().bool,disableIgnoringDatePartForTimeValidation:Kye().bool,disableOpenPicker:Kye().bool,disablePast:Kye().bool,enableAccessibleFieldDOMStructure:Kye().any,format:Kye().string,formatDensity:Kye().oneOf(["dense","spacious"]),inputRef:TEe,label:Kye().node,localeText:Kye().object,maxTime:Kye().object,minTime:Kye().object,minutesStep:Kye().number,name:Kye().string,onAccept:Kye().func,onChange:Kye().func,onClose:Kye().func,onError:Kye().func,onOpen:Kye().func,onSelectedSectionsChange:Kye().func,onViewChange:Kye().func,open:Kye().bool,openTo:Kye().oneOf(["hours","minutes","seconds"]),orientation:Kye().oneOf(["landscape","portrait"]),readOnly:Kye().bool,reduceAnimations:Kye().bool,referenceDate:Kye().object,selectedSections:Kye().oneOfType([Kye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Kye().number]),shouldDisableTime:Kye().func,slotProps:Kye().object,slots:Kye().object,sx:Kye().oneOfType([Kye().arrayOf(Kye().oneOfType([Kye().func,Kye().object,Kye().bool])),Kye().func,Kye().object]),timezone:Kye().string,value:Kye().object,view:Kye().oneOf(["hours","minutes","seconds"]),viewRenderers:Kye().shape({hours:Kye().func,minutes:Kye().func,seconds:Kye().func}),views:Kye().arrayOf(Kye().oneOf(["hours","minutes","seconds"]).isRequired)};const QWe=["desktopModeMediaQuery"],RWe=c.forwardRef((function(e,t){const n=CEe({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=UTe}=n,i=EEe(n,QWe);return z2(r,{defaultMatches:!0})?(0,lM.jsx)(TWe,kEe({ref:t},i)):(0,lM.jsx)($We,kEe({ref:t},i))}));const AWe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},jWe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,DWe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,MWe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function IWe(e){return e?parseInt(e):1}function zWe(e){return e&&parseFloat(e.replace(",","."))||0}const WWe=[31,null,31,30,31,30,31,31,30,31,30,31];function NWe(e){return e%400==0||e%4==0&&e%100!=0}const LWe=UD("WidgetDateTime_NowButton",["root","button"]),FWe=({disabled:e,field:t,handleChange:n})=>{var r;const i=LD(),o=(0,c.useCallback)((e=>{e.stopPropagation(),n(new Date)}),[n]);return c.createElement("div",{key:"now-button-wrapper",className:LWe.root},c.createElement(GD,{key:"now-button","data-testid":"datetime-now",onClick:o,disabled:e,color:"secondary",variant:"outlined",className:LWe.button,"aria-label":`set ${null!==(r=t.label)&&void 0!==r?r:t.name} to now`},i("editor.editorWidgets.datetime.now")))};function UWe(e){return pEe(e.getTime(),qWe(e))}function XWe(e){return pEe(e.getTime(),-1*qWe(e))}function qWe(e){return e.getTimezoneOffset()}const BWe=UD("WidgetDateTime",["root","error","required","disabled","for-single-list","wrapper","inputs","input-wrapper","input"]),VWe=({field:e,label:t,value:r,disabled:i,duplicate:o,errors:a,hasErrors:s,forSingleList:l,config:{locale:u},onChange:d})=>{const f=(0,c.useRef)(null),[h,p]=(0,c.useState)(!1),m=(0,c.useCallback)((()=>{p(!0)}),[]),g=(0,c.useCallback)((()=>{p(!1)}),[]),{storageFormat:v,dateFormat:O,timeFormat:y,displayFormat:b}=QO(e),w=(0,c.useMemo)((()=>{const t=e.picker_utc?UWe(new Date):new Date;return void 0===e.default?Ta(t,v||CO):e.default}),[e.default,e.picker_utc,v]),[k,x]=(0,c.useState)(r),_=(0,c.useMemo)((()=>o?r:k),[k,o,r]),S=(0,c.useMemo)((()=>{let e=_;if(e||(e=w),"string"!=typeof e)return e;if(v){const t=ls(e,v,new Date);if(!isNaN(t.getTime()))return t}return function(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(AWe.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],AWe.timeZoneDelimiter.test(t.date)&&(t.date=e.split(AWe.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const e=AWe.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let i;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);i=function(e,t){if(null===t)return new Date(NaN);const n=e.match(jWe);if(!n)return new Date(NaN);const r=!!n[4],i=IWe(n[1]),o=IWe(n[2])-1,a=IWe(n[3]),s=IWe(n[4]),l=IWe(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(t,s,l):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(WWe[t]||(NWe(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(NWe(e)?366:365)}(t,i)?(e.setUTCFullYear(t,o,Math.max(i,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a,s=0;if(r.time&&(s=function(e){const t=e.match(DWe);if(!t)return NaN;const n=zWe(t[1]),r=zWe(t[2]),i=zWe(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*Zo+r*Yo+1e3*i:NaN}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(o+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(MWe);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*Zo+i*Yo):NaN}(r.timezone),isNaN(a)?new Date(NaN):new Date(o+s+a)}(e)}),[w,v,_]),P=(0,c.useCallback)((t=>{if(null===t||isNaN(t.getTime()))return x(w),void d(w);const n=Ta(e.picker_utc?UWe(t):t,v);x(n),d(n)}),[w,e.picker_utc,v,d]),E=GN(f,(0,c.useRef)()),C=(0,c.useMemo)((()=>O&&!y?c.createElement(zMe,{key:"date-picker",format:b,value:S,disabled:i,onChange:P,onOpen:m,onClose:g,className:BWe["input-wrapper"],inputRef:E,slotProps:{textField:{inputProps:{"data-testid":"date-input",className:BWe.input}}}}):!O&&y?c.createElement(RWe,{key:"time-picker",format:b,value:S,disabled:i,onChange:P,onOpen:m,onClose:g,className:BWe["input-wrapper"],inputRef:E,slotProps:{textField:{inputProps:{"data-testid":"time-input",className:BWe.input}}}}):c.createElement(gWe,{key:"date-time-picker",format:b,value:S,disabled:i,onChange:P,onOpen:m,onClose:g,className:BWe["input-wrapper"],inputRef:E,slotProps:{textField:{inputProps:{"data-testid":"date-time-input",className:BWe.input}}}})),[O,y,b,S,i,P,m,g,E]),T=(0,c.useMemo)((()=>u?function(e){var t;return null!==(t=n[e])&&void 0!==t?t:Uo}(u):void 0),[u]);return c.createElement(Ife,{inputRef:h?void 0:f,label:t,errors:a,hint:e.hint,forSingleList:l,cursor:"text",disabled:i,rootClassName:qD(BWe.root,i&&BWe.disabled,!1!==e.required&&BWe.required,s&&BWe.error,l&&BWe["for-single-list"]),wrapperClassName:BWe.wrapper},c.createElement("div",{className:BWe.inputs},c.createElement(kCe,{key:"localization-provider",dateAdapter:PEe,adapterLocale:T},C),c.createElement(FWe,{key:"date-now",field:e,handleChange:e=>P(e),disabled:i})))},YWe=UD("WidgetDateTimePreview",["root"]),ZWe=({value:e})=>c.createElement("div",{className:YWe.root},e?e.toString():null),GWe=(e,t)=>{var n,r;if(Ie(e))return e;const i=null===(n=t.date_format)||void 0===n||n,o=null===(r=t.time_format)||void 0===r||r;let a=t.format;var s;if(!1===o)a=null!==(s=t.format)&&void 0!==s?s:PO;else if(!1===i){var l;a=null!==(l=t.format)&&void 0!==l?l:EO}else{var u;a=null!==(u=t.format)&&void 0!==u?u:CO}return Ta(t.picker_utc?UWe(new Date):new Date,a)},HWe={properties:{default:{type:"string"},format:{type:"string"},date_format:{oneOf:[{type:"string"},{type:"boolean"}]},time_format:{oneOf:[{type:"string"},{type:"boolean"}]},picker_utc:{type:"boolean"}}},KWe=()=>({name:"datetime",controlComponent:VWe,previewComponent:ZWe,options:{schema:HWe,getDefaultValue:GWe}}),JWe=({value:e,collection:t,field:n,entry:r})=>{const i=Sz(e,t,n,r);return c.createElement("a",{href:i,rel:"noopener noreferrer",target:"_blank"},e)},eNe=({value:e,collection:t,field:n,entry:r})=>e?Array.isArray(e)?c.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}},e.map(((e,i)=>c.createElement(JWe,{key:`link-preview-${i}`,value:e,collection:t,field:n,entry:r})))):c.createElement(JWe,{key:e,value:e,collection:t,field:n,entry:r}):null,tNe=e=>c.createElement("div",null,e.value?c.createElement(eNe,e):null),nNe={properties:{allow_multiple:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},media_folder:{type:"string"},public_folder:{type:"string"},select_folder:{type:"boolean"},choose_url:{type:"boolean"},multiple:{type:"boolean"},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}}}};function rNe(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function iNe(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function oNe(e){return null!==e&&e>=0}const aNe=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=rNe(t,r,n),a=t[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},sNe={scaleX:1,scaleY:1},lNe=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const s=null!=(t=o[n])?t:r;if(!s)return null;if(i===n){const e=o[a];return e?{x:0,y:nn&&i<=a?{x:0,y:-s.height-l,...sNe}:i=a?{x:0,y:s.height+l,...sNe}:{x:0,y:0,...sNe}},uNe="Sortable",cNe=c.createContext({activeIndex:-1,containerId:uNe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:aNe,disabled:{draggable:!1,droppable:!1}});function dNe(e){let{children:t,id:n,items:r,strategy:i=aNe,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:d}=h9(),f=m5(uNe,n),h=Boolean(null!==s.rect),p=(0,c.useMemo)((()=>r.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[r]),m=null!=a,g=a?p.indexOf(a.id):-1,v=u?p.indexOf(u.id):-1,O=(0,c.useRef)(p),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{y&&m&&d(p)}),[y,p,m,d]),(0,c.useEffect)((()=>{O.current=p}),[p]);const k=(0,c.useMemo)((()=>({activeIndex:g,containerId:f,disabled:w,disableTransforms:b,items:p,overIndex:v,useDragOverlay:h,sortedRects:iNe(p,l),strategy:i})),[g,f,w.draggable,w.droppable,b,p,v,l,h,i]);return c.createElement(cNe.Provider,{value:k},t)}const fNe=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return rNe(n,r,i).indexOf(t)},hNe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!(!u||!r||s!==o&&i===a||!n&&(a===i||t!==l))},pNe={duration:200,easing:"ease"},mNe="transform",gNe=w5.Transition.toString({property:mNe,duration:0,easing:"linear"}),vNe={roleDescription:"sortable"};function ONe(e){let{animateLayoutChanges:t=hNe,attributes:n,disabled:r,data:i,getNewIndex:o=fNe,id:a,strategy:s,resizeObserverConfig:l,transition:u=pNe}=e;const{items:d,containerId:f,activeIndex:h,disabled:p,disableTransforms:m,sortedRects:g,overIndex:v,useDragOverlay:O,strategy:y}=(0,c.useContext)(cNe),b=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,p),w=d.indexOf(a),k=(0,c.useMemo)((()=>({sortable:{containerId:f,index:w,items:d},...i})),[f,i,w,d]),x=(0,c.useMemo)((()=>d.slice(d.indexOf(a))),[d,a]),{rect:_,node:S,isOver:P,setNodeRef:E}=g9({id:a,data:k,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...l}}),{active:C,activatorEvent:T,activeNodeRect:$,attributes:Q,setNodeRef:R,listeners:A,isDragging:j,over:D,setActivatorNodeRef:M,transform:I}=f9({id:a,data:k,attributes:{...vNe,...n},disabled:b.draggable}),z=function(){for(var e=arguments.length,t=new Array(e),n=0;ne=>{t.forEach((t=>t(e)))}),t)}(E,R),W=Boolean(C),N=W&&!m&&oNe(h)&&oNe(v),L=!O&&j,F=L&&N?I:null,U=N?null!=F?F:(null!=s?s:y)({rects:g,activeNodeRect:$,activeIndex:h,overIndex:v,index:w}):null,X=oNe(h)&&oNe(v)?o({id:a,items:d,activeIndex:h,overIndex:v}):w,q=null==C?void 0:C.id,B=(0,c.useRef)({activeId:q,items:d,newIndex:X,containerId:f}),V=d!==B.current.items,Y=t({active:C,containerId:f,isDragging:j,isSorting:W,id:a,index:w,items:d,newIndex:B.current.newIndex,previousItems:B.current.items,previousContainerId:B.current.containerId,transition:u,wasDragging:null!=B.current.activeId}),Z=function(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=(0,c.useState)(null),s=(0,c.useRef)(n);return l5((()=>{if(!t&&n!==s.current&&r.current){const e=i.current;if(e){const t=H5(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==s.current&&(s.current=n)}),[t,n,r,i]),(0,c.useEffect)((()=>{o&&a(null)}),[o]),o}({disabled:!Y,index:w,node:S,rect:_});return(0,c.useEffect)((()=>{W&&B.current.newIndex!==X&&(B.current.newIndex=X),f!==B.current.containerId&&(B.current.containerId=f),d!==B.current.items&&(B.current.items=d)}),[W,X,f,d]),(0,c.useEffect)((()=>{if(q===B.current.activeId)return;if(q&&!B.current.activeId)return void(B.current.activeId=q);const e=setTimeout((()=>{B.current.activeId=q}),50);return()=>clearTimeout(e)}),[q]),{active:C,activeIndex:h,attributes:Q,data:k,rect:_,index:w,newIndex:X,items:d,isOver:P,isSorting:W,isDragging:j,listeners:A,node:S,overIndex:v,over:D,setNodeRef:z,setActivatorNodeRef:M,setDroppableNodeRef:E,setDraggableNodeRef:R,transform:null!=Z?Z:U,transition:Z||V&&B.current.newIndex===w?gNe:L&&!y5(T)||!u?void 0:W||Y?w5.Transition.toString({...u,property:mNe}):void 0}}function yNe(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const bNe=[O6.Down,O6.Right,O6.Up,O6.Left],wNe=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:a,scrollableAncestors:s}}=t;if(bNe.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];o.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const o=i.get(n.id);if(o)switch(e.code){case O6.Down:r.topo.top&&t.push(n);break;case O6.Left:r.left>o.left&&t.push(n);break;case O6.Right:r.left{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=N5(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=N5(r),a=i.reduce(((e,t,r)=>e+M5(n[r],t)),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(z5)})({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null});let u=L5(l,"id");if(u===(null==a?void 0:a.id)&&l.length>1&&(u=l[1].id),null!=u){const e=o.get(n.id),t=o.get(u),a=t?i.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&a&&e&&t){const n=J5(l).some(((e,t)=>s[t]!==e)),i=kNe(e,t),o=function(e,t){return!(!yNe(e)||!yNe(t))&&(!!kNe(e,t)&&e.data.current.sortable.index{const o=Sz(e,n,r,pz(JM));return c.createElement("a",{key:"link",href:o,"data-testid":null!=i?i:"link"},t)},_Ne=UD("WidgetFileImage",["root","error","required","disabled","for-single-list","drag-over-active","for-image","multiple","wrapper","drop-area","for-image","image-grid","empty-content","content","actions"]);var SNe=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("circle",{cx:12,cy:12,r:3.2}),c.createElement("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}))}));function PNe(){return PNe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=(0,c.useMemo)((()=>({id:e})),[e]),{attributes:s,listeners:l,setNodeRef:u,transform:d,transition:f}=ONe(a),h=(0,c.useMemo)((()=>({transform:w5.Transform.toString(d),transition:f})),[d,f]),p=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault()}),[]),m=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),null==o||o(e)}),[o]),g=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),null==i||i(e)}),[i]);return c.createElement("div",PNe({ref:u,style:h},s,l,{className:ENe.root,tabIndex:-1,title:t}),c.createElement("div",{onClick:p,"data-testid":`image-card-${t}`,className:ENe.card},c.createElement("div",{key:"handle","data-testid":`image-card-handle-${t}`,tabIndex:0,className:ENe.handle}),c.createElement("div",{className:ENe["controls-wrapper"]},c.createElement("div",{className:ENe.controls},o?c.createElement(FN,{icon:SNe,key:"replace",variant:"text",onClick:m,rootClassName:ENe["replace-button"],"aria-label":"replace image"}):null,i?c.createElement(FN,{icon:p1,key:"remove",variant:"text",color:"error",onClick:g,rootClassName:ENe["remove-button"],"aria-label":"remove image"}):null)),c.createElement("div",{className:ENe.content},c.createElement(WK,{src:t,className:ENe.image,collection:n,field:r}))))};var TNe=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}))}));function $Ne(){return $Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=(0,c.useMemo)((()=>({id:e})),[e]),{attributes:o,listeners:a,setNodeRef:s,transform:l,transition:u}=ONe(i),d=(0,c.useMemo)((()=>({transform:w5.Transform.toString(l),transition:u})),[l,u]),f=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault()}),[]),h=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),null==r||r(e)}),[r]),p=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),null==n||n(e)}),[n]),m=t.length<=100?t:`${t.slice(0,50)}…${t.slice(-49)}`;return c.createElement("div",$Ne({ref:s,style:d},o,a,{className:QNe.root,tabIndex:-1,title:t}),c.createElement("div",{onClick:f,"data-testid":`image-card-${t}`,className:QNe.card},c.createElement("div",{className:QNe.content},c.createElement("span",null,m),c.createElement("div",{className:QNe.controls},r?c.createElement(FN,{icon:TNe,key:"replace",color:"secondary",variant:"text",onClick:h,rootClassName:QNe["replace-button"],"aria-label":"replace link"}):null,n?c.createElement(FN,{icon:p1,key:"remove",variant:"text",color:"error",onClick:p,rootClassName:QNe["remove-button"],"aria-label":"remove link"}):null))))};function ANe(e){return Array.isArray(e)}function jNe(e){return e?ANe(e)?e.map((e=>ES(e))):ES(e):e}const DNe=({forImage:e=!1}={})=>{const t=(0,c.memo)((({value:t,label:n,collection:r,field:i,errors:o,forSingleList:a,duplicate:s,onChange:l,hasErrors:u,disabled:d,t:f})=>{var h;const p=Wz(),m=(0,c.useMemo)((()=>{var e;return null!==(e=i.multiple)&&void 0!==e&&e}),[i.multiple]),g=(0,c.useMemo)((()=>m?[]:""),[m]),[{keys:v,internalRawValue:O},y]=(0,c.useState)((()=>{const e=null!=t?t:g;return{keys:Array.from({length:Array.isArray(e)?e.length:1},(()=>PA())),internalRawValue:e}})),b=(0,c.useMemo)((()=>s?null!=t?t:g:O),[s,t,g,O]),w=(0,c.useRef)(null),k=(0,c.useMemo)((()=>{var e;return null!==(e=i.select_folder)&&void 0!==e&&e}),[i.select_folder]),x=(0,c.useCallback)((({path:e},t)=>{if(e!==b){const n=[...null!=t?t:v];if(Array.isArray(e))for(;n.length{l(e)}))}}),[b,v,l]),_=$z({path:b},{collection:r,field:i,controlID:p,forImage:e,forFolder:k,insertOptions:{chooseUrl:i.choose_url}},x),S=pz(dC),P=(0,c.useCallback)(((e,t)=>{var n;const r=m?[...Array.isArray(b)?b:[b],...t.filter((e=>e)).map((e=>e.path))]:null===(n=t[0])||void 0===n?void 0:n.path;Array.isArray(r)&&0===r.length||!r||x({path:r})}),[m,x,b]),E=zz({mediaConfig:null!==(h=i.media_library)&&void 0!==h?h:null==S?void 0:S.media_library,field:i,callback:P}),{dragOverActive:C,handleDragEnter:T,handleDragLeave:$,handleDragOver:Q,handleDrop:R}=T0(E),A=(0,c.useMemo)((()=>{var e;return null!==(e=i.choose_url)&&void 0!==e&&e}),[i.choose_url]),j=(0,c.useCallback)((e=>t=>{var n;t.preventDefault();const r=null!==(n=window.prompt(f(`editor.editorWidgets.${e}.promptUrl`)))&&void 0!==n?n:"";""!==r&&x({path:m?[...Array.isArray(b)?b:[b],r]:r})}),[m,x,b,f]),D=(0,c.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),x({path:""})}),[x]),M=(0,c.useCallback)((e=>()=>{if(Array.isArray(b)){const t=[...b],n=[...v];t.splice(e,1),n.splice(e,1),x({path:t},n)}}),[x,b,v]),I=(0,c.useCallback)((e=>t=>{_(t,{replaceIndex:e})}),[_]),z=j5(A5(T9),A5($9,{coordinateGetter:wNe})),W=(0,c.useCallback)((({active:e,over:t})=>{if(Array.isArray(b)&&t&&e.id!==t.id){const n=v.indexOf(`${e.id}`),r=v.indexOf(`${t.id}`),i=rNe(v,n,r),o=rNe(b,n,r);x({path:o},i)}}),[x,b,v]),N=(0,c.useCallback)((e=>{if(!e)return null;const t=e.length<=50?e:`${e.slice(0,25)}…${e.slice(-24)}`;return c.createElement(xNe,{href:e,collection:r,field:i},t)}),[r,i]),L=(0,c.useMemo)((()=>e?b?ANe(b)?c.createElement(l9,{key:"multi-image-wrapper",sensors:z,collisionDetection:U5,onDragEnd:W},c.createElement(dNe,{items:v,strategy:aNe},c.createElement("div",{className:_Ne["image-grid"]},b.map(((e,t)=>{const n=v[t];return c.createElement(CNe,{id:n,key:`image-${n}`,itemValue:e,collection:r,field:i,onRemove:M(t),onReplace:I(t)})}))))):c.createElement("div",{key:"single-image-wrapper"},c.createElement(WK,{key:"single-image",src:b,collection:r,field:i})):null:ANe(b)?c.createElement(l9,{key:"multi-image-wrapper",sensors:z,collisionDetection:U5,onDragEnd:W},c.createElement(dNe,{items:v,strategy:lNe},c.createElement("div",{key:"mulitple-file-links"},b.map(((e,t)=>{const n=v[t];return c.createElement(RNe,{id:n,key:`link-${n}`,itemValue:e,onRemove:M(t),onReplace:I(t)})}))))):c.createElement("div",{key:"single-file-links"},N(b))),[r,i,b,v,M,I,W,N,z]),F=(0,c.useMemo)((()=>{const t=e?"image":k?"folder":"file";return(Array.isArray(b)?0===b.length:We(b))?c.createElement("div",{key:"selection",className:_Ne["empty-content"]},c.createElement("div",{key:"controls",className:_Ne.actions},c.createElement(GD,{buttonRef:w,color:"secondary",variant:"outlined",key:"upload",onClick:_,"data-testid":"choose-upload",disabled:d},f(`editor.editorWidgets.${t}.choose${m?"Multiple":""}`)),A?c.createElement(GD,{color:"secondary",variant:"outlined",key:"choose-url",onClick:j(t),"data-testid":"choose-url",disabled:d},f(`editor.editorWidgets.${t}.chooseUrl`)):null)):c.createElement("div",{key:"selection",className:_Ne.content},L,c.createElement("div",{key:"controls",className:_Ne.actions},c.createElement(GD,{buttonRef:w,color:"secondary",variant:"outlined",key:"add-replace",onClick:_,"data-testid":"add-replace-upload",disabled:d},f(`editor.editorWidgets.${t}.${m?"addMore":"chooseDifferent"}`)),A?m?c.createElement(GD,{color:"secondary",variant:"outlined",key:"choose-url",onClick:j(t),"data-testid":"choose-url",disabled:d},f(`editor.editorWidgets.${t}.chooseUrl`)):c.createElement(GD,{color:"secondary",variant:"outlined",key:"replace-url",onClick:j(t),"data-testid":"replace-url",disabled:d},f(`editor.editorWidgets.${t}.replaceUrl`)):null,c.createElement(GD,{color:"error",variant:"outlined",key:"remove",onClick:D,"data-testid":"remove-upload",disabled:d},f(`editor.editorWidgets.${t}.remove${m?"All":""}`))))}),[k,b,m,L,_,d,f,A,j,D]);return(0,c.useMemo)((()=>c.createElement("div",{onDrop:R,onDragEnter:T,onDragLeave:$,onDragOver:Q,className:qD(_Ne.root,d&&_Ne.disabled,!1!==i.required&&_Ne.required,u&&_Ne.error,a&&_Ne["for-single-list"],C&&_Ne["drag-over-active"],e&&_Ne["for-image"],ANe(t)&&_Ne.multiple)},c.createElement("div",{className:_Ne.wrapper},c.createElement(Ife,{inputRef:m?void 0:w,label:n,errors:o,noPadding:!u,hint:i.hint,forSingleList:a,cursor:m?"default":"pointer",disabled:d},F),c.createElement("div",{className:_Ne["drop-area"]},f("mediaLibrary.mediaLibraryModal."+(e?"dropImages":"dropFiles")))))),[R,T,$,Q,d,i.required,i.hint,u,a,C,t,m,n,o,F,f])}));return t.displayName="FileControl",t},MNe=DNe(),INe=()=>({name:"file",controlComponent:MNe,previewComponent:tNe,options:{schema:nNe,getValidValue:jNe}}),zNe=({value:e,collection:t,field:n,entry:r})=>{const i=Sz(e,t,n,r);return c.createElement("img",{src:i||"",role:"presentation"})},WNe=({value:e,collection:t,field:n,entry:r})=>e?Array.isArray(e)?c.createElement(c.Fragment,null,e.map(((e,i)=>c.createElement(zNe,{key:`image-preview-${i}`,value:e,collection:t,field:n,entry:r})))):c.createElement(zNe,{value:e,collection:t,field:n,entry:r}):null,NNe=e=>c.createElement("div",null,e.value?c.createElement(WNe,e):null),LNe={properties:{allow_multiple:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},media_folder:{type:"string"},public_folder:{type:"string"},choose_url:{type:"boolean"},multiple:{type:"boolean"},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}}}},FNe=DNe({forImage:!0}),UNe=function(){return{name:"image",controlComponent:FNe,previewComponent:NNe,options:{schema:LNe,getValidValue:jNe}}};function XNe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qNe(e){for(var t=1;t{const f=(0,c.useMemo)((()=>{var e;return o.label_singular?o.label_singular:null!==(e=o.label)&&void 0!==e?e:o.name}),[o.label,o.label_singular,o.name]),h=(0,c.useMemo)((()=>{var e;return null!==(e=o.key_label)&&void 0!==e?e:d("editor.editorWidgets.keyvalue.key")}),[o.key_label,d]),p=(0,c.useMemo)((()=>{var e;return null!==(e=o.value_label)&&void 0!==e?e:d("editor.editorWidgets.keyvalue.value")}),[o.value_label,d]),m=(0,c.useMemo)((()=>e||[{key:"",value:""}]),[e]),[g,v]=(0,c.useState)(m),O=(0,c.useMemo)((()=>l||s?m:g),[l,s,m,g]),y=(0,c.useRef)(null),b=y0(u,250),w=(0,c.useCallback)((e=>{v(e),b(e)}),[b]),k=(0,c.useCallback)(((e,t)=>n=>{const r=[...O];r[e]=qNe(qNe({},r[e]),{},{[t]:n.target.value}),w(r)}),[O,w]),x=(0,c.useCallback)((()=>{const e=[...O];e.push({key:"",value:""}),w(e)}),[O,w]),_=(0,c.useCallback)((e=>()=>{const t=[...O];t.splice(e,1),w(t)}),[O,w]),S=(0,c.useCallback)((e=>{e.stopPropagation()}),[]);return c.createElement(Ife,{inputRef:y,label:t,errors:n,hint:o.hint,forSingleList:a,cursor:"text",disabled:i,rootClassName:qD(VNe.root,i&&VNe.disabled,!1!==o.required&&VNe.required,r&&VNe.error,a&&VNe["for-single-list"])},c.createElement("div",{className:VNe.header},c.createElement("div",{className:VNe["header-cell"]},h),c.createElement("div",{className:VNe["header-cell"]},p),c.createElement("div",{className:VNe["header-action-cell"]},c.createElement("div",{className:VNe["header-action-cell-content"]}))),O.map(((e,t)=>c.createElement("div",{key:`keyvalue-${t}`,className:VNe.row},c.createElement(Y0,{type:"text","data-testid":`key-${t}`,inputRef:0===t?y:void 0,value:e.key,disabled:i,onChange:k(t,"key"),onClick:S,variant:"contained"}),c.createElement(Y0,{type:"text","data-testid":`value-${t}`,value:e.value,disabled:i,onChange:k(t,"value"),onClick:S,variant:"contained"}),c.createElement(FN,{icon:yG,"data-testid":`remove-button-${t}`,size:"small",variant:"text",onClick:_(t),disabled:i,rootClassName:VNe["delete-button"],"aria-label":"delete"})))),c.createElement("div",{className:VNe.actions},c.createElement(GD,{color:"secondary",variant:"outlined",onClick:x,className:VNe["add-button"],"data-testid":"key-value-add",disabled:i},d("editor.editorWidgets.list.add",{item:f}))))},ZNe=UD("WidgetKeyValuePreview",["root"]),GNe=({value:e})=>c.createElement("ul",{className:ZNe.root},(null!=e?e:[]).map(((e,t)=>{var n,r;return c.createElement("li",{key:`preview-keyvalue-${t}`},c.createElement("b",null,null!==(n=e.key)&&void 0!==n?n:"")," - ",null!==(r=e.value)&&void 0!==r?r:"")}))),HNe={deserialize:e=>e?Object.keys(e).map((t=>{var n;return{key:t,value:null!==(n=e[t])&&void 0!==n?n:""}})):[{key:"",value:""}],serialize:e=>null==e?void 0:e.reduce(((e,t)=>(e[t.key]=t.value,e)),{})},KNe=HNe,JNe={properties:{default:{type:"object"},label_singular:{type:"string"},key_label:{type:"string"},value_label:{type:"string"},max:{type:"number"},min:{type:"number"}}},eLe=({field:e,value:t,t:n})=>{var r,i;const o=e.min,a=e.max,s=null!==(r=e.key_label)&&void 0!==r?r:n("editor.editorWidgets.keyvalue.key"),l=null!==(i=e.value_label)&&void 0!==i?i:n("editor.editorWidgets.keyvalue.value");let u=!1;const c=null!=t?t:[];var d;0===c.length&&e.required&&(u={type:FE.PRESENCE,message:n("editor.editorControlPane.widget.required",{fieldLabel:null!==(d=e.label)&&void 0!==d?d:e.name})});const f=[];if(!u)for(const e of c){if(We(e.key)){u={type:FE.PRESENCE,message:n("editor.editorControlPane.widget.required",{fieldLabel:s})};break}if(f.includes(e.key)){u={type:FE.CUSTOM,message:n("editor.editorWidgets.keyvalue.uniqueKeys",{keyLabel:s})};break}if(f.push(e.key),We(e.value)){u={type:FE.PRESENCE,message:n("editor.editorControlPane.widget.required",{fieldLabel:l})};break}}var h;return u||(u=UE(n,null!==(h=e.label)&&void 0!==h?h:e.name,c,o,a)),u},tLe=()=>({name:"keyvalue",controlComponent:YNe,previewComponent:GNe,options:{converters:KNe,validator:eLe,schema:JNe}}),nLe=UD("WidgetList",["root","disabled","error","required","for-single-list","open","summary","field-wrapper","field","expand-button","expand-button-icon","content","error-message","delimited","delimited-input","fields","actions","add-types-button","add-button","sortable-item","multi-field-item"]),rLe=({field:e,openLabel:t,closedLabel:n,children:r,errors:i,hasChildErrors:o,hint:a,forSingleList:s,disabled:l})=>{var u;const d=(0,c.useMemo)((()=>i.length>0),[i.length]),[f,h]=(0,c.useState)(null===(u=!e.collapsed)||void 0===u||u),p=(0,c.useCallback)((()=>{h((e=>!e))}),[]);return c.createElement("div",{"data-testid":`list-field-${null==t?void 0:t.trim()}`,className:qD(nLe.root,l&&nLe.disabled,!1!==e.required&&nLe.required,(d||o)&&nLe.error,s&&nLe["for-single-list"],f&&nLe.open)},c.createElement("div",{"data-testid":"field-wrapper",className:nLe["field-wrapper"]},c.createElement("button",{"data-testid":"list-expand-button",className:nLe["expand-button"],onClick:p},c.createElement(Dfe,{key:"label",hasErrors:d||o,className:nLe.summary,cursor:"pointer",variant:"inline",disabled:l},f?t.trim():n.trim()),c.createElement(EY,{className:nLe["expand-button-icon"]})),c.createElement(Gfe,{in:f,appear:!1},c.createElement("div",{className:nLe.content},c.createElement("div",{"data-testid":"object-fields"},r))),a?c.createElement(Afe,{key:"hint",hasErrors:d,cursor:"pointer",disabled:l},a):null,c.createElement(doe,{errors:i,className:nLe["error-message"]})))};function iLe(){return iLe=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("span",iLe({"data-testid":"drag-handle",className:oLe["drag-handle"]},t?{}:e),c.createElement(MN,{className:oLe["drag-handle-icon"]})),sLe=({label:e,summary:t,collapsed:n=!1,onRemove:r,listeners:i,hasErrors:o,children:a,isSingleField:s,disabled:l})=>{const[u,d]=(0,c.useState)(!n),f=(0,c.useCallback)((()=>{d((e=>!e))}),[]),h=(0,c.useMemo)((()=>c.createElement("div",{className:oLe.controls},r?c.createElement(FN,{icon:yG,"data-testid":"remove-button",size:"small",color:"secondary",variant:"text",onClick:r,disabled:l,rootClassName:oLe["remove-button"],iconClassName:oLe["button-icon"],"aria-label":"remove"}):null,i?c.createElement(aLe,{listeners:i,disabled:l}):null)),[l,i,r]);return s?c.createElement("div",{"data-testid":`list-item-field-${null==e?void 0:e.trim()}`,className:qD(oLe["single-field-root"],o&&oLe.error,l&&oLe.disabled)},c.createElement("div",{"data-testid":"list-item-objects",className:oLe.content},c.createElement("div",{className:oLe["content-fields"]},a),c.createElement("div",{className:oLe["single-field-controls"]},h))):c.createElement("div",{"data-testid":`list-item-field-${null==e?void 0:e.trim()}`,className:qD(oLe.root,o&&oLe.error,l&&oLe.disabled,u&&oLe.open)},c.createElement("div",{className:oLe.header},c.createElement("button",{"data-testid":"list-item-expand-button",className:oLe["expand-button"],onClick:f,"aria-label":u?"collapse":"expand"},c.createElement(EY,{className:oLe["expand-button-icon"]}),c.createElement("div",{className:oLe.summary},c.createElement(Dfe,{key:"label",hasErrors:o,className:oLe["summary-label"],cursor:"pointer",variant:"inline","data-testid":"item-label",disabled:l},e.trim()),u?null:c.createElement("span",{"data-testid":"item-summary"},t))),h),u?null:c.createElement("div",{className:oLe["not-open-placeholder"]}),c.createElement(Gfe,{in:u,appear:!1},c.createElement("div",{className:oLe.content},c.createElement("div",{className:oLe["content-fields"]},a))))};function lLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uLe(e){for(var t=1;t{var g,v,O;const y=LD(),[b,w]=(0,c.useMemo)((()=>{var e;const i={name:`${t}`,label:r.label,summary:r.summary,widget:"object",fields:[]},o=null!==(e=r.label)&&void 0!==e?e:r.name;if(null===d)return[o,i];const a=null!=f?f:{};switch(d){case OLe.MIXED:{var s;if(!fLe(r,a))return[o,i];const e=a,[l,u]=VK(r,e,t);if(!u)return[o,i];const c=null!==(s=u.label)&&void 0!==s?s:l,d="summary"in u&&u.summary?u.summary:r.summary,f=d?`${c} - ${dLe(d,n,c,e,u.fields,y)}`:c;return[null!=f?f:y("editor.editorWidgets.list.noValue"),u]}case OLe.MULTIPLE:{var l;if(i.fields=null!==(l=r.fields)&&void 0!==l?l:[],!fLe(r,a))return[o,i];const e=r.fields,t=e&&e[0];if(!t)return[o,i];const s="object"!=typeof a||a instanceof Date||Array.isArray(a)?a:a[t.name],u=r.summary,c=u?dLe(u,n,String(s),a,e,y):s?String(s):void 0;return[null!=c?c:y("editor.editorWidgets.list.noValue"),i]}}}),[n,r,t,y,f,d]),k=wz(u,i,h,!1),x=(0,c.useMemo)((()=>r.fields&&1===r.fields.length?{[r.fields[0].name]:f}:f),[r.fields,f]),_=(0,c.useMemo)((()=>{var e;return 1===(null===(e=r.fields)||void 0===e?void 0:e.length)}),[null===(g=r.fields)||void 0===g?void 0:g.length]);return c.createElement("div",{key:"sortable-list-item"},c.createElement(sLe,{key:"list-item-top-bar",collapsed:r.collapsed,onRemove:gee()(m,t),"data-testid":`list-item-top-bar-${e}`,label:null!==(v=null!==(O=r.label_singular)&&void 0!==O?O:r.label)&&void 0!==v?v:r.name,summary:b,listeners:p,hasErrors:k,isSingleField:_,disabled:a},c.createElement(l3,{key:`control-${e}`,field:w,value:x,fieldsErrors:i,submitted:o,parentPath:u,disabled:a||s,parentDuplicate:s,locale:l,i18n:h,forList:!0,listItemPath:`${u}.${w.name}`,forSingleList:_})))},pLe=({field:e,label:t,disabled:n,duplicate:r,value:i,errors:o,hasErrors:a,forSingleList:s,controlled:l,onChange:u})=>{const d=(0,c.useMemo)((()=>{var t;return null!==(t=e.delimiter)&&void 0!==t?t:","}),[e.delimiter]),f=(0,c.useMemo)((()=>(null!=i?i:[]).join(d)),[d,i]),[h,p]=(0,c.useState)(f),m=(0,c.useMemo)((()=>l||r?f:h),[l,r,f,h]),g=kz(m,250),v=(0,c.useRef)(null),O=(0,c.useCallback)((e=>{const t=e.target.value;p(t)}),[]);return(0,c.useEffect)((()=>{if(f===g)return;const e=g.split(d).map((e=>e.trim()));u(e)}),[g,d,u,f]),c.createElement(Ife,{inputRef:v,label:t,errors:o,hint:e.hint,forSingleList:s,cursor:"text",disabled:n,rootClassName:qD(nLe.root,nLe.delimited,n&&nLe.disabled,!1!==e.required&&nLe.required,a&&nLe.error,s&&nLe["for-single-list"])},c.createElement(Y0,{type:"text",inputRef:v,value:m,disabled:n,onChange:O,inputClassName:nLe["delimited-input"]}))};function mLe(){return mLe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var m;const{attributes:g,listeners:v,setNodeRef:O,transform:y,transition:b}=ONe({id:e}),w={transform:w5.Translate.toString(y),transition:b};return null===r?c.createElement("div",{key:e}):c.createElement("div",mLe({ref:O,"data-testid":`object-control-${n}`,style:w},u?{}:g,{className:qD(nLe["sortable-item"],1!==(null===(m=a.fields)||void 0===m?void 0:m.length)&&nLe["multi-field-item"])}),c.createElement(hLe,{index:n,id:e,key:`sortable-item-${e}`,valueType:r,handleRemove:i,"data-testid":`object-control-${n}`,entry:o,field:a,fieldsErrors:s,submitted:l,disabled:u,duplicate:d,locale:f,path:h,value:t,i18n:p,listeners:v}))};let OLe=function(e){return e[e.MULTIPLE=0]="MULTIPLE",e[e.MIXED=1]="MIXED",e[e.DELIMITED=2]="DELIMITED",e}({});function yLe(e,t={}){if(1===e.length){if("default"in e[0]&&e[0].default)return e[0].default;switch(e[0].widget){case"string":case"text":return"";case"boolean":return!1;case"number":return 0}return null}return e.reduce(((e,t)=>{const n="fields"in t&&t.fields,r=t.name,i="default"in t&&t.default?t.default:null;if(Array.isArray(n)){const t=yLe(n);return C0()(t)||(e[r]=t),e}if("object"==typeof n){const t=yLe([n]);return!C0()(t)&&(e[r]=t),e}return null!==i&&(e[r]=i),e}),t)}const bLe=e=>{var t,n;const{entry:r,field:i,fieldsErrors:o,submitted:a,disabled:s,duplicate:l,locale:u,path:d,value:f,i18n:h,errors:p,forSingleList:m,onChange:g,clearChildValidation:v,t:O}=e,y=(0,c.useMemo)((()=>null!=f?f:[]),[f]),[b,w]=(0,c.useState)(Array.from({length:y.length},(()=>PA()))),k=(0,c.useMemo)((()=>"fields"in i?OLe.MULTIPLE:"types"in i?OLe.MIXED:OLe.DELIMITED),[i]),x=(0,c.useCallback)((e=>yLe(e)),[]),_=(0,c.useCallback)(((e,t)=>{var n,r;const o="types"in i&&(null===(n=i.types)||void 0===n?void 0:n.find((e=>e.name===t)));return o?yLe(null!==(r=o.fields)&&void 0!==r?r:[],{[e]:t}):{}}),[i]),S=(0,c.useCallback)((e=>{var t;const n=null!==(t=i.add_to_top)&&void 0!==t&&t,r=[...b],o=[...y];n?(r.unshift(PA()),o.unshift(e)):(r.push(PA()),o.push(e)),w(r),g(o)}),[i.add_to_top,g,y,b]),P=(0,c.useCallback)((e=>{var t;e.preventDefault();const n=x(null!==(t=i.fields)&&void 0!==t?t:[]);S(n)}),[S,i,x]),E=(0,c.useCallback)(((e,t)=>{const n=_(t,e);S(n)}),[S,_]),C=(0,c.useCallback)(((e,t)=>{t.preventDefault();const n=[...b],r=[...y];n.splice(e,1),r.splice(e,1),v(),w(n),g(r)}),[b,y,v,g]),T=(0,c.useCallback)((({active:e,over:t})=>{if(!t||e.id===t.id)return;const n=b.indexOf(e.id),r=b.indexOf(t.id);w(gLe(b,n,r)),g(gLe(y,n,r))}),[g,y,b]),$=wz(d,o,h,!1),Q=null!==(t=i.label)&&void 0!==t?t:i.name,R=i.label_singular?i.label_singular:null!==(n=i.label)&&void 0!==n?n:i.name,A=1===y.length?R:Q,j=i[XK];return k===OLe.DELIMITED?c.createElement(pLe,e):c.createElement(rLe,{key:"list-control-wrapper",field:i,openLabel:Q,closedLabel:A,errors:p,hasChildErrors:$,hint:i.hint,forSingleList:m,disabled:s},y.length>0?c.createElement(l9,{key:"dnd-context",id:"dnd-context",onDragEnd:T},c.createElement(dNe,{items:b},c.createElement("div",{"data-testid":"list-widget-children",className:nLe.fields},y.map(((e,t)=>{const n=b[t];return n?c.createElement(vLe,{index:t,key:n,id:n,item:e,valueType:k,handleRemove:C,entry:r,field:i,fieldsErrors:o,submitted:a,disabled:s,duplicate:l,locale:u,path:d,value:e,i18n:h}):null}))))):null,!1!==i.allow_add?c.createElement("div",{className:nLe.actions},j&&j.length?c.createElement(NZ,{label:O("editor.editorWidgets.list.addType",{item:Q}),color:"secondary",variant:"outlined",buttonClassName:nLe["add-types-button"],"data-testid":"list-type-add",disabled:s,"aria-label":"add type options dropdown"},c.createElement(FZ,null,j.map(((e,t)=>{var n;return e?c.createElement(OG,{key:t,onClick:()=>E(e.name,ZK(i)),"data-testid":`list-type-add-item-${e.name}`},null!==(n=e.label)&&void 0!==n?n:e.name):null})))):c.createElement(GD,{color:"secondary",variant:"outlined",onClick:P,className:nLe["add-button"],"data-testid":"list-add",disabled:s},O("editor.editorWidgets.list.add",{item:R}))):null)},wLe=UD("WidgetListPreview",["root"]);function kLe(e){return ze(e)?null:Array.isArray(e)?c.createElement("ul",{style:{marginTop:0}},e.map(((e,t)=>c.createElement("li",{key:t},kLe(e))))):"object"==typeof e?e instanceof Date?e.toISOString():Object.keys(e).map(((t,n)=>c.createElement("div",{key:n},c.createElement("strong",null,t,":")," ",kLe(e[t])))):e}const xLe=({field:e,value:t})=>{var n;return Array.isArray(t)?c.createElement("div",{style:{marginTop:"12px"},className:wLe.root},c.createElement("label",null,c.createElement("strong",null,null!==(n=e.label)&&void 0!==n?n:e.name,":")),e.fields&&1===e.fields.length&&!["object","list"].includes(e.fields[0].widget)||!e.fields&&!e.types?c.createElement("ul",{style:{marginTop:0}},null==t?void 0:t.map(((e,t)=>c.createElement("li",{key:t},String(e))))):kLe(t)):null},_Le={properties:{default:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"},{type:"object"},{type:"array",minItems:1,items:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"},{type:"object"}]}}]},allow_add:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},label_singular:{type:"string"},fields:{type:"array",items:{type:"object"}},max:{type:"number"},min:{type:"number"},i18n:{type:"boolean"},add_to_top:{type:"boolean"},types:{type:"array",items:{type:"object"}},type_key:{type:"string"}}},SLe=()=>({name:"list",controlComponent:bLe,previewComponent:xLe,options:{schema:_Le}}),PLe=UD("WidgetMapPreview",["root"]),ELe=({value:e})=>c.createElement("div",{className:PLe.root},e),CLe={properties:{decimals:{type:"integer"},type:{type:"string",enum:["Point","LineString","Polygon"]}}},TLe=class{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},$Le="propertychange",QLe=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function RLe(e,t){return e>t?1:e0){for(i=1;i0?i-1:i:e[i-1]-t0)}removeEventListener(e,t){const n=this.listeners_&&this.listeners_[e];if(n){const r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=WLe,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}}},ULe={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function XLe(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){const r=n;n=function(){e.removeEventListener(t,n),r.apply(this,arguments)}}const o={target:e,type:t,listener:n};return e.addEventListener(t,n),o}function qLe(e,t,n,r){return XLe(e,t,n,r,!0)}function BLe(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),NLe(e))}class VLe extends FLe{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(ULe.CHANGE)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){const n=e.length,r=new Array(n);for(let i=0;ii&&(l|=yFe.RIGHT),so&&(l|=yFe.ABOVE),l===yFe.UNKNOWN&&(l=yFe.INTERSECTING),l}function CFe(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function TFe(e){return CFe(1/0,1/0,-1/0,-1/0,e)}function $Fe(e,t,n,r,i){return jFe(TFe(i),e,t,n,r)}function QFe(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function RFe(e,t){return t[0]e[2]&&(e[2]=t[2]),t[1]e[3]&&(e[3]=t[3]),e}function AFe(e,t){t[0]e[2]&&(e[2]=t[0]),t[1]e[3]&&(e[3]=t[1])}function jFe(e,t,n,r,i){for(;nt[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function GFe(e){return e[2]=n[2])){const t=YFe(n),i=Math.floor((r[0]-n[0])/t)*t;e[0]-=i,e[2]-=i}return e}const KFe={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},JFe=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||KFe[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}},eUe=6378137,tUe=Math.PI*eUe,nUe=[-tUe,-tUe,tUe,tUe],rUe=[-180,-85,180,85],iUe=eUe*Math.log(Math.tan(Math.PI/2));class oUe extends JFe{constructor(e){super({code:e,units:"m",extent:nUe,global:!0,worldExtent:rUe,getPointResolution:function(e,t){return e/Math.cosh(t[1]/eUe)}})}}const aUe=[new oUe("EPSG:3857"),new oUe("EPSG:102100"),new oUe("EPSG:102113"),new oUe("EPSG:900913"),new oUe("http://www.opengis.net/def/crs/EPSG/0/3857"),new oUe("http://www.opengis.net/gml/srs/epsg.xml#3857")];const sUe=[-180,-90,180,90],lUe=6378137*Math.PI/180;class uUe extends JFe{constructor(e,t){super({code:e,units:"degrees",extent:sUe,axisOrientation:t,global:!0,metersPerUnit:lUe,worldExtent:sUe})}}const cUe=[new uUe("CRS:84"),new uUe("EPSG:4326","neu"),new uUe("urn:ogc:def:crs:OGC:1.3:CRS84"),new uUe("urn:ogc:def:crs:OGC:2:84"),new uUe("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new uUe("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new uUe("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let dUe={},fUe={};function hUe(e,t,n){const r=e.getCode(),i=t.getCode();r in fUe||(fUe[r]={}),fUe[r][i]=n}function pUe(e,t){let n=!0;for(let r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function mUe(e,t){const n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function gUe(e,t){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function vUe(e,t){return Math.sqrt(gUe(e,t))}function OUe(e,t){if(t.canWrapX()){const n=YFe(t.getExtent()),r=function(e,t,n){const r=t.getExtent();let i=0;return t.canWrapX()&&(e[0]r[2])&&(n=n||YFe(r),i=Math.floor((e[0]-r[0])/n)),i}(e,t,n);r&&(e[0]-=r*n)}return e}function yUe(e,t,n){return Math.min(Math.max(e,t),n)}function bUe(e,t,n,r,i,o){const a=i-n,s=o-r;if(0!==a||0!==s){const l=((e-n)*a+(t-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return wUe(e,t,n,r)}function wUe(e,t,n,r){const i=n-e,o=r-t;return i*i+o*o}function kUe(e){return e*Math.PI/180}function xUe(e,t){const n=e%t;return n*t<0?n+t:n}function _Ue(e,t,n){return e+n*(t-e)}function SUe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function PUe(e,t){return Math.floor(SUe(e,t))}function EUe(e,t){return Math.ceil(SUe(e,t))}const CUe=6371008.8;function TUe(e,t,n){n=n||CUe;const r=kUe(e[1]),i=kUe(t[1]),o=(i-r)/2,a=kUe(t[0]-e[0])/2,s=Math.sin(o)*Math.sin(o)+Math.sin(a)*Math.sin(a)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}const $Ue={info:1,warn:2,error:3,none:4};let QUe=$Ue.info;function RUe(...e){QUe>$Ue.warn||console.warn(...e)}let AUe=!0;function jUe(e,t){if(void 0!==t)for(let n=0,r=e.length;n=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(AUe=!1,RUe("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e}function ZUe(e,t){return e}function GUe(e,t){return e}function HUe(e,t){return e}function KUe(e,t,n,r,i,o){o=o||[];let a=0;for(let s=t;s1?n:2,void 0===t&&(t=n>2?e.slice():new Array(r));for(let i=0;iiUe?n=iUe:n<-iUe&&(n=-iUe),t[i+1]=n}return t},rXe=function(e,t,n){const r=e.length;n=n>1?n:2,void 0===t&&(t=n>2?e.slice():new Array(r));for(let i=0;i1)d=n;else{if(f>0){for(let i=0;ii&&(i=s),o=n,a=r}return i}function vXe(e,t,n,r,i){for(let o=0,a=n.length;o0;){const n=u.pop(),o=u.pop();let a=0;const s=e[o],d=e[o+1],f=e[n],h=e[n+1];for(let t=o+r;ta&&(c=t,a=n)}a>i&&(l[(c-t)/r]=1,o+r0&&p>f)&&(h<0&&m0&&m>h)?(s=n,l=d):(o[a++]=s,o[a++]=l,u=s,c=l,s=n,l=d)}return o[a++]=s,o[a++]=l,a}function PXe(e,t,n,r,i,o,a,s){for(let l=0,u=n.length;l>1),i=+n(e[r],t),i<0?o=r+1:(a=r,s=!i);return s?o:~o}(c,d);f<0?(l=(d-c[-f-2])/(c[-f-1]-c[-f-2]),s=t+(-f-2)*r):s=t+f*r}a=a>1?a:2,o=o||new Array(a);for(let t=0;t>1;io&&(n-s)*(o-l)-(i-s)*(r-l)>0&&a++:r<=o&&(n-s)*(o-l)-(i-s)*(r-l)<0&&a--,s=n,l=r}return 0!==a}function DXe(e,t,n,r,i,o){if(0===n.length)return!1;if(!jXe(e,t,n[0],r,i,o))return!1;for(let t=1,a=n.length;t=i[0]&&o[2]<=i[2]||o[1]>=i[1]&&o[3]<=i[3]||EXe(e,t,n,r,(function(e,t){return function(e,t,n){let r=!1;const i=EFe(e,t),o=EFe(e,n);if(i===yFe.INTERSECTING||o===yFe.INTERSECTING)r=!0;else{const a=e[0],s=e[1],l=e[2],u=e[3],c=t[0],d=t[1],f=n[0],h=n[1],p=(h-d)/(f-c);let m,g;o&yFe.ABOVE&&!(i&yFe.ABOVE)&&(m=f-(h-u)/p,r=m>=a&&m<=l),r||!(o&yFe.RIGHT)||i&yFe.RIGHT||(g=h-(f-l)*p,r=g>=s&&g<=u),r||!(o&yFe.BELOW)||i&yFe.BELOW||(m=f-(h-s)/p,r=m>=a&&m<=l),r||!(o&yFe.LEFT)||i&yFe.LEFT||(g=h-(f-a)*p,r=g>=s&&g<=u)}return r}(i,e,t)})))}function IXe(e,t,n,r,i){return!!(MXe(e,t,n,r,i)||jXe(e,t,n,r,i[0],i[1])||jXe(e,t,n,r,i[0],i[3])||jXe(e,t,n,r,i[2],i[1])||jXe(e,t,n,r,i[2],i[3]))}function zXe(e,t,n,r,i){if(!IXe(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(let t=1,o=n.length;tv&&(u=(c+d)/2,DXe(e,t,n,r,u,p)&&(g=u,v=i)),c=d}return isNaN(g)&&(g=i[o]),a?(a.push(g,p,v),a):[g,p,v]}function JXe(e,t,n,r){for(;t0}function tqe(e,t,n,r,i){i=void 0!==i&&i;for(let o=0,a=n.length;o=t[0]||e[1]<=t[1]&&e[3]>=t[1]||MFe(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(let n=1;n0}}else if(e.type==vqe.POINTERDOWN){const n=this.handleDownEvent(e);this.handlingDownUpSequence=n,t=this.stopDown(n)}else e.type==vqe.POINTERMOVE&&this.handleMoveEvent(e);return!t}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}},Pqe="opacity",Eqe="visible",Cqe="extent",Tqe="zIndex",$qe="maxResolution",Qqe="minResolution",Rqe="maxZoom",Aqe="minZoom",jqe="source",Dqe=class extends JLe{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const t=Object.assign({},e);"object"==typeof e.properties&&(delete t.properties,Object.assign(t,e.properties)),t[Pqe]=void 0!==e.opacity?e.opacity:1,rFe("number"==typeof t[Pqe],64),t[Eqe]=void 0===e.visible||e.visible,t[Tqe]=e.zIndex,t[$qe]=void 0!==e.maxResolution?e.maxResolution:1/0,t[Qqe]=void 0!==e.minResolution?e.minResolution:0,t[Aqe]=void 0!==e.minZoom?e.minZoom:-1/0,t[Rqe]=void 0!==e.maxZoom?e.maxZoom:1/0,this.className_=void 0!==t.className?t.className:"ol-layer",delete t.className,this.setProperties(t),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=yUe(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t}getLayersArray(e){return ZLe()}getLayerStatesArray(e){return ZLe()}getExtent(){return this.get(Cqe)}getMaxResolution(){return this.get($qe)}getMinResolution(){return this.get(Qqe)}getMinZoom(){return this.get(Aqe)}getMaxZoom(){return this.get(Rqe)}getOpacity(){return this.get(Pqe)}getSourceState(){return ZLe()}getVisible(){return this.get(Eqe)}getZIndex(){return this.get(Tqe)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(Cqe,e)}setMaxResolution(e){this.set($qe,e)}setMinResolution(e){this.set(Qqe,e)}setMaxZoom(e){this.set(Rqe,e)}setMinZoom(e){this.set(Aqe,e)}setOpacity(e){rFe("number"==typeof e,64),this.set(Pqe,e)}setVisible(e){this.set(Eqe,e)}setZIndex(e){this.set(Tqe,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}},Mqe="precompose",Iqe="rendercomplete",zqe={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},Wqe=42,Nqe=256;function Lqe(e,t,n){return function(r,i,o,a,s){if(!r)return;if(!i&&!t)return r;const l=t?0:o[0]*i,u=t?0:o[1]*i,c=s?s[0]:0,d=s?s[1]:0;let f=e[0]+l/2+c,h=e[2]-l/2+c,p=e[1]+u/2+d,m=e[3]-u/2+d;f>h&&(f=(h+f)/2,h=f),p>m&&(p=(m+p)/2,m=p);let g=yUe(r[0],f,h),v=yUe(r[1],p,m);if(a&&n&&i){const e=30*i;g+=-e*Math.log(1+Math.max(0,f-r[0])/e)+e*Math.log(1+Math.max(0,r[0]-h)/e),v+=-e*Math.log(1+Math.max(0,p-r[1])/e)+e*Math.log(1+Math.max(0,r[1]-m)/e)}return[g,v]}}function Fqe(e){return e}function Uqe(e,t,n,r){const i=YFe(t)/n[0],o=XFe(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function Xqe(e,t,n){let r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),yUe(r,n/2,2*t)}function qqe(e,t,n,r,i){return n=void 0===n||n,function(o,a,s,l){if(void 0!==o){const a=r?Uqe(e,r,s,i):e;return n&&l?Xqe(o,a,t):yUe(o,t,a)}}}function Bqe(e){if(void 0!==e)return 0}function Vqe(e){if(void 0!==e)return e}function Yqe(e,t){setTimeout((function(){e(t)}),0)}function Zqe(e){return!(e.sourceCenter&&e.targetCenter&&!pUe(e.sourceCenter,e.targetCenter))&&e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation}function Gqe(e,t,n,r,i){const o=Math.cos(-i);let a=Math.sin(-i),s=e[0]*o-e[1]*a,l=e[1]*o+e[0]*a;return s+=(t[0]/2-n[0])*r,l+=(n[1]-t[1]/2)*r,a=-a,[s*o-l*a,l*o+s*a]}const Hqe=class extends JLe{constructor(e){super(),this.on,this.once,this.un,e=Object.assign({},e),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=NUe(e.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,e.projection&&function(e){AUe=!(void 0===e||e)}(),e.center&&(e.center=YUe(e.center,this.projection_)),e.extent&&(e.extent=GUe(e.extent,this.projection_)),this.applyOptions_(e)}applyOptions_(e){const t=Object.assign({},e);for(const e in zqe)delete t[e];this.setProperties(t,!0);const n=function(e){let t,n,r;let i=void 0!==e.minZoom?e.minZoom:0,o=void 0!==e.maxZoom?e.maxZoom:28;const a=void 0!==e.zoomFactor?e.zoomFactor:2,s=void 0!==e.multiWorld&&e.multiWorld,l=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,u=void 0!==e.showFullExtent&&e.showFullExtent,c=NUe(e.projection,"EPSG:3857"),d=c.getExtent();let f=e.constrainOnlyCenter,h=e.extent;if(s||h||!c.isGlobal()||(f=!1,h=d),void 0!==e.resolutions){const a=e.resolutions;n=a[i],r=void 0!==a[o]?a[o]:a[a.length-1],t=e.constrainResolution?function(e,t,n,r){return t=void 0===t||t,function(i,o,a,s){if(void 0!==i){const l=e[0],u=e[e.length-1],c=n?Uqe(l,n,a,r):l;if(s)return t?Xqe(i,c,u):yUe(i,u,c);const d=Math.min(c,i),f=Math.floor(ALe(e,d,o));return e[f]>c&&f1&&"function"==typeof arguments[n-1]&&(t=arguments[n-1],--n);let r=0;for(;r0}getInteracting(){return this.hints_[1]>0}cancelAnimations(){let e;this.setHint(0,-this.hints_[0]);for(let t=0,n=this.animations_.length;t=0;--n){const r=this.animations_[n];let i=!0;for(let n=0,o=r.length;n0?a/o.duration:1;s>=1?(o.complete=!0,s=1):i=!1;const l=o.easing(s);if(o.sourceCenter){const e=o.sourceCenter[0],t=o.sourceCenter[1],n=o.targetCenter[0],r=o.targetCenter[1];this.nextCenter_=o.targetCenter;const i=e+l*(n-e),a=t+l*(r-t);this.targetCenter_=[i,a]}if(o.sourceResolution&&o.targetResolution){const e=1===l?o.targetResolution:o.sourceResolution+l*(o.targetResolution-o.sourceResolution);if(o.anchor){const t=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(e,0,t,!0);this.targetCenter_=this.calculateCenterZoom(n,o.anchor)}this.nextResolution_=o.targetResolution,this.targetResolution_=e,this.applyTargetState_(!0)}if(void 0!==o.sourceRotation&&void 0!==o.targetRotation){const e=1===l?xUe(o.targetRotation+Math.PI,2*Math.PI)-Math.PI:o.sourceRotation+l*(o.targetRotation-o.sourceRotation);if(o.anchor){const t=this.constraints_.rotation(e,!0);this.targetCenter_=this.calculateCenterRotate(t,o.anchor)}this.nextRotation_=o.targetRotation,this.targetRotation_=e}if(this.applyTargetState_(!0),t=!0,!o.complete)break}if(i){this.animations_[n]=null,this.setHint(0,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const e=r[0].callback;e&&Yqe(e,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,t){let n;const r=this.getCenterInternal();var i,o;return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],mUe(n,e-this.getRotation()),o=t,(i=n)[0]+=+o[0],i[1]+=+o[1]),n}calculateCenterZoom(e,t){let n;const r=this.getCenterInternal(),i=this.getResolution();return void 0!==r&&void 0!==i&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]),n}getViewportSize_(e){const t=this.viewportSize_;if(e){const n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e?VUe(e,this.getProjection()):e}getCenterInternal(){return this.get(zqe.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){return ZUe(this.calculateExtentInternal(e),this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const t=this.getCenterInternal();rFe(t,1);const n=this.getResolution();rFe(void 0!==n,2);const r=this.getRotation();return rFe(void 0!==r,3),FFe(t,n,r,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(zqe.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,t){return this.getResolutionForExtentInternal(GUe(e,this.getProjection()),t)}getResolutionForExtentInternal(e,t){t=t||this.getViewportSizeMinusPadding_();const n=YFe(e)/t[0],r=XFe(e)/t[1];return Math.max(n,r)}getResolutionForValueFunction(e){e=e||2;const t=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(t/n)/Math.log(e);return function(n){return t/Math.pow(e,n*r)}}getRotation(){return this.get(zqe.ROTATION)}getValueForResolutionFunction(e){const t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){return Math.log(n/e)/t/i}}getViewportSizeMinusPadding_(e){let t=this.getViewportSize_(e);const n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t}getState(){const e=this.getProjection(),t=this.getResolution(),n=this.getRotation();let r=this.getCenterInternal();const i=this.padding_;if(i){const e=this.getViewportSizeMinusPadding_();r=Gqe(r,this.getViewportSize_(),[e[0]/2+i[3],e[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e}getZoomForResolution(e){let t,n,r=this.minZoom_||0;if(this.resolutions_){const i=ALe(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)}getResolutionForZoom(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const t=yUe(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,yUe(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,t){let n;if(rFe(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e))rFe(!GFe(e),25),n=aqe(GUe(e,this.getProjection()));else if("Circle"===e.getType()){const t=GUe(e.getExtent(),this.getProjection());n=aqe(t),n.rotate(this.getRotation(),NFe(t))}else{const t=BUe();n=t?e.clone().transform(t,this.getProjection()):e}this.fitInternal(n,t)}rotatedExtentForGeometry(e){const t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride();let a=1/0,s=1/0,l=-1/0,u=-1/0;for(let e=0,t=i.length;e=e.maxResolution)return!1;const r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}const Jqe=class extends Dqe{constructor(e){const t=Object.assign({},e);delete t.source,super(t),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,e.render&&(this.render=e.render),e.map&&this.setMap(e.map),this.addChangeListener(jqe,this.handleSourcePropertyChange_);const n=e.source?e.source:null;this.setSource(n)}getLayersArray(e){return(e=e||[]).push(this),e}getLayerStatesArray(e){return(e=e||[]).push(this.getLayerState()),e}getSource(){return this.get(jqe)||null}getRenderSource(){return this.getSource()}getSourceState(){const e=this.getSource();return e?e.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&(BLe(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const e=this.getSource();e&&(this.sourceChangeKey_=XLe(e,ULe.CHANGE,this.handleSourceChange_,this),"ready"===e.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null}isVisible(e){let t;t=e instanceof Hqe?{viewState:e.getState(),extent:e.calculateExtent()}:e;const n=this.getExtent();return this.getVisible()&&Kqe(this.getLayerState(),t.viewState)&&(!n||ZFe(n,t.extent))}getAttributions(e){if(!this.isVisible(e))return[];let t;const n=this.getSource();if(n&&(t=n.getAttributions()),!t)return[];let r=t(e instanceof Hqe?e.getViewStateAndExtent():e);return Array.isArray(r)||(r=[r]),r}render(e,t){const n=this.getRenderer();if(n.prepareFrame(e))return this.rendered=!0,n.renderFrame(e,t)}unrender(){this.rendered=!1}setMapInternal(e){e||this.unrender(),this.set("map",e)}getMapInternal(){return this.get("map")}setMap(e){this.mapPrecomposeKey_&&(BLe(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(BLe(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=XLe(e,Mqe,(function(e){const t=e.frameState.layerStatesArray,n=this.getLayerState(!1);rFe(!t.some((function(e){return e.layer===n.layer})),67),t.push(n)}),this),this.mapRenderKey_=XLe(this,ULe.CHANGE,e.render,e),this.changed())}setSource(e){this.set(jqe,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}};var eBe=__webpack_require__(52280);const tBe=0,nBe=1,rBe=2,iBe=3;function oBe(e){return e[0]>0&&e[1]>0}function aBe(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}class sBe{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=aBe(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new sBe({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return ZLe()}getImage(e){return ZLe()}getHitDetectionImage(){return ZLe()}getPixelRatio(e){return 1}getImageState(){return ZLe()}getImageSize(){return ZLe()}getOrigin(){return ZLe()}getSize(){return ZLe()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=aBe(e)}listenImageChange(e){ZLe()}load(){ZLe()}unlistenImageChange(e){ZLe()}}const lBe=sBe,uBe=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,cBe=/^([a-z]*)$|^hsla?\(.*\)$/i;function dBe(e){return"string"==typeof e?e:mBe(e)}const fBe=function(){const e={};let t=0;return function(n){let r;if(e.hasOwnProperty(n))r=e[n];else{if(t>=1024){let n=0;for(const r in e)0==(3&n++)&&(delete e[r],--t)}r=function(e){let t,n,r,i,o;if(cBe.exec(e)&&(e=function(e){const t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);const e=getComputedStyle(t).color;return document.body.removeChild(t),e}return""}(e)),uBe.exec(e)){const a=e.length-1;let s;s=a<=4?1:2;const l=4===a||8===a;t=parseInt(e.substr(1+0*s,s),16),n=parseInt(e.substr(1+1*s,s),16),r=parseInt(e.substr(1+2*s,s),16),i=l?parseInt(e.substr(1+3*s,s),16):255,1==s&&(t=(t<<4)+t,n=(n<<4)+n,r=(r<<4)+r,l&&(i=(i<<4)+i)),o=[t,n,r,i/255]}else e.startsWith("rgba(")?(o=e.slice(5,-1).split(",").map(Number),pBe(o)):e.startsWith("rgb(")?(o=e.slice(4,-1).split(",").map(Number),o.push(1),pBe(o)):rFe(!1,14);return o}(n),e[n]=r,++t}return r}}();function hBe(e){return Array.isArray(e)?e:fBe(e)}function pBe(e){return e[0]=yUe(e[0]+.5|0,0,255),e[1]=yUe(e[1]+.5|0,0,255),e[2]=yUe(e[2]+.5|0,0,255),e[3]=yUe(e[3],0,1),e}function mBe(e){let t=e[0];t!=(0|t)&&(t=t+.5|0);let n=e[1];n!=(0|n)&&(n=n+.5|0);let r=e[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:Math.round(100*e[3])/100)+")"}function gBe(e){return Array.isArray(e)?mBe(e):e}function vBe(e,t,n,r){let i;return i=n&&n.length?n.shift():dFe?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(i.width=e),t&&(i.height=t),i.getContext("2d",r)}function OBe(e){const t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function yBe(e,t){const n=t.parentNode;n&&n.replaceChild(e,t)}function bBe(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}const wBe="ol-hidden",kBe="ol-unselectable",xBe="ol-control",_Be="ol-collapsed",SBe=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),PBe=["style","variant","weight","size","lineHeight","family"],EBe=function(e){const t=e.match(SBe);if(!t)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let e=0,r=PBe.length;eMath.max(t,XBe(e,n))),0);return n[t]=r,r}class BBe extends lBe{constructor(e){super({opacity:1,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius_=void 0!==e.radius?e.radius:e.radius1,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const e=this.getScale(),t=new BBe({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_;if(!e)return null;const t=this.getDisplacement(),n=this.getScaleArray();return[e[0]/2-t[0]/n[0],e[1]/2+t[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(e){let t=this.canvas_[e];if(!t){const n=this.renderOptions_,r=vBe(n.size*e,n.size*e);this.draw_(n,r,e),t=r.canvas,this.canvas_[e]=t}return t}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return rBe}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,n){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;let r=this.radius_,i=void 0===this.radius2_?r:this.radius2_;if(rthis.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const t in this.cache_){const n=this.cache_[t];0!=(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}}get(e,t,n){const r=oVe(e,t,n);return r in this.cache_?this.cache_[r]:null}set(e,t,n,r){const i=oVe(e,t,n);this.cache_[i]=r,++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}};function sVe(e,t,n){const r=e;let i=!0,o=!1,a=!1;const s=[qLe(r,ULe.LOAD,(function(){a=!0,o||t()}))];return r.src&&fFe?(o=!0,r.decode().then((function(){i&&t()})).catch((function(e){i&&(a?t():n())}))):s.push(qLe(r,ULe.ERROR,n)),function(){i=!1,s.forEach(BLe)}}let lVe=null;class uVe extends FLe{constructor(e,t,n,r,i,o){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=r,this.canvas_={},this.color_=o,this.unlisten_=null,this.imageState_=i,this.size_=n,this.src_=t,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===rBe){lVe||(lVe=vBe(1,1,void 0,{willReadFrequently:!0})),lVe.drawImage(this.image_,0,0);try{lVe.getImageData(0,0,1,1),this.tainted_=!1}catch(e){lVe=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(ULe.CHANGE)}handleImageError_(){this.imageState_=iBe,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=rBe,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],t=this.size_[1],n=vBe(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===tBe){this.image_||this.initializeImage_(),this.imageState_=nBe;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=sVe(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==rBe)return;const t=this.image_,n=document.createElement("canvas");n.width=Math.ceil(t.width*e),n.height=Math.ceil(t.height*e);const r=n.getContext("2d");r.scale(e,e),r.drawImage(t,0,0),r.globalCompositeOperation="multiply",r.fillStyle=dBe(this.color_),r.fillRect(0,0,n.width/e,n.height/e),r.globalCompositeOperation="destination-in",r.drawImage(t,0,0),this.canvas_[e]=n}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}class cVe extends lBe{constructor(e){const t=void 0!==(e=e||{}).opacity?e.opacity:1,n=void 0!==e.rotation?e.rotation:0,r=void 0!==e.scale?e.scale:1,i=void 0!==e.rotateWithView&&e.rotateWithView;super({opacity:t,rotation:n,scale:r,displacement:void 0!==e.displacement?e.displacement:[0,0],rotateWithView:i,declutterMode:e.declutterMode}),this.anchor_=void 0!==e.anchor?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==e.anchorOrigin?e.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==e.anchorXUnits?e.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==e.anchorYUnits?e.anchorYUnits:"fraction",this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null;const o=void 0!==e.img?e.img:null;this.imgSize_=e.imgSize;let a=e.src;rFe(!(void 0!==a&&o),4),rFe(!o||o&&this.imgSize_,5),void 0!==a&&0!==a.length||!o||(a=o.src||HLe(o)),rFe(void 0!==a&&a.length>0,6),rFe(!((void 0!==e.width||void 0!==e.height)&&void 0!==e.scale),69);const s=void 0!==e.src?tBe:rBe;if(this.color_=void 0!==e.color?hBe(e.color):null,this.iconImage_=function(e,t,n,r,i,o){let a=aVe.get(t,r,o);return a||(a=new uVe(e,t,n,r,i,o),aVe.set(t,r,o,a)),a}(o,a,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,s,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==e.size?e.size:null,this.width_=e.width,this.height_=e.height,void 0!==this.width_||void 0!==this.height_){const e=this.getImage(1),t=()=>{this.updateScaleFromWidthAndHeight(this.width_,this.height_)};e.width>0?this.updateScaleFromWidthAndHeight(this.width_,this.height_):e.addEventListener("load",t)}}clone(){let e=this.getScale();return e=Array.isArray(e)?e.slice():e,void 0===this.width_&&void 0===this.height_||(e=void 0),new cVe({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode(),width:this.width_,height:this.height_})}updateScaleFromWidthAndHeight(e,t){const n=this.getImage(1);void 0!==e&&void 0!==t?super.setScale([e/n.width,t/n.height]):void 0!==e?super.setScale([e/n.width,e/n.width]):void 0!==t?super.setScale([t/n.height,t/n.height]):super.setScale([1,1])}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const t=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!t)return null;e=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(e[0]*=t[0]),"fraction"==this.anchorYUnits_&&(e[1]*=t[1])}if("top-left"!=this.anchorOrigin_){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(e[0]=-e[0]+t[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}const t=this.getDisplacement(),n=this.getScaleArray();return[e[0]-t[0]/n[0],e[1]+t[1]/n[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if("top-left"!=this.offsetOrigin_){const t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[0]=n[0]-t[0]-e[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){return this.width_}getHeight(){return this.height_}setWidth(e){this.width_=e,this.updateScaleFromWidthAndHeight(e,this.height_)}setHeight(e){this.height_=e,this.updateScaleFromWidthAndHeight(this.width_,e)}setScale(e){super.setScale(e);const t=this.getImage(1);if(t){const n=Array.isArray(e)?e[0]:e;void 0!==n&&(this.width_=n*t.width);const r=Array.isArray(e)?e[1]:e;void 0!==r&&(this.height_=r*t.height)}}listenImageChange(e){this.iconImage_.addEventListener(ULe.CHANGE,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(ULe.CHANGE,e)}}const dVe=cVe;class fVe{constructor(e){e=e||{},this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=aBe(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.repeat_=e.repeat,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new HBe({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}clone(){const e=this.getScale();return new fVe({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(e){this.overflow_=e}setFont(e){this.font_=e}setMaxAngle(e){this.maxAngle_=e}setOffsetX(e){this.offsetX_=e}setOffsetY(e){this.offsetY_=e}setPlacement(e){this.placement_=e}setRepeat(e){this.repeat_=e}setRotateWithView(e){this.rotateWithView_=e}setFill(e){this.fill_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=aBe(void 0!==e?e:1)}setStroke(e){this.stroke_=e}setText(e){this.text_=e}setTextAlign(e){this.textAlign_=e}setJustify(e){this.justify_=e}setTextBaseline(e){this.textBaseline_=e}setBackgroundFill(e){this.backgroundFill_=e}setBackgroundStroke(e){this.backgroundStroke_=e}setPadding(e){this.padding_=e}}const hVe=fVe;function pVe(e){return new iVe({fill:mVe(e,""),stroke:gVe(e,""),text:vVe(e),image:OVe(e)})}function mVe(e,t){const n=e[t+"fill-color"];if(n)return new HBe({color:n})}function gVe(e,t){const n=e[t+"stroke-width"],r=e[t+"stroke-color"];if(n||r)return new JBe({width:n,color:r,lineCap:e[t+"stroke-line-cap"],lineJoin:e[t+"stroke-line-join"],lineDash:e[t+"stroke-line-dash"],lineDashOffset:e[t+"stroke-line-dash-offset"],miterLimit:e[t+"stroke-miter-limit"]})}function vVe(e){const t=e["text-value"];if(t)return new hVe({text:t,font:e["text-font"],maxAngle:e["text-max-angle"],offsetX:e["text-offset-x"],offsetY:e["text-offset-y"],overflow:e["text-overflow"],placement:e["text-placement"],repeat:e["text-repeat"],scale:e["text-scale"],rotateWithView:e["text-rotate-with-view"],rotation:e["text-rotation"],textAlign:e["text-align"],justify:e["text-justify"],textBaseline:e["text-baseline"],padding:e["text-padding"],fill:mVe(e,"text-"),backgroundFill:mVe(e,"text-background-"),stroke:gVe(e,"text-"),backgroundStroke:gVe(e,"text-background-")})}function OVe(e){const t=e["icon-src"],n=e["icon-img"];if(t||n)return new dVe({src:t,img:n,imgSize:e["icon-img-size"],anchor:e["icon-anchor"],anchorOrigin:e["icon-anchor-origin"],anchorXUnits:e["icon-anchor-x-units"],anchorYUnits:e["icon-anchor-y-units"],color:e["icon-color"],crossOrigin:e["icon-cross-origin"],offset:e["icon-offset"],displacement:e["icon-displacement"],opacity:e["icon-opacity"],scale:e["icon-scale"],rotation:e["icon-rotation"],rotateWithView:e["icon-rotate-with-view"],size:e["icon-size"],declutterMode:e["icon-declutter-mode"]});const r=e["shape-points"];if(r){const t="shape-";return new VBe({points:r,fill:mVe(e,t),stroke:gVe(e,t),radius:e["shape-radius"],radius1:e["shape-radius1"],radius2:e["shape-radius2"],angle:e["shape-angle"],displacement:e["shape-displacement"],rotation:e["shape-rotation"],rotateWithView:e["shape-rotate-with-view"],scale:e["shape-scale"],declutterMode:e["shape-declutter-mode"]})}const i=e["circle-radius"];if(i){const t="circle-";return new ZBe({radius:i,fill:mVe(e,t),stroke:gVe(e,t),displacement:e["circle-displacement"],scale:e["circle-scale"],rotation:e["circle-rotation"],rotateWithView:e["circle-rotate-with-view"],declutterMode:e["circle-declutter-mode"]})}}const yVe="renderOrder",bVe=class extends Jqe{constructor(e){e=e||{};const t=Object.assign({},e);delete t.style,delete t.renderBuffer,delete t.updateWhileAnimating,delete t.updateWhileInteracting,super(t),this.declutter_=void 0!==e.declutter&&e.declutter,this.renderBuffer_=void 0!==e.renderBuffer?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=void 0!==e.updateWhileAnimating&&e.updateWhileAnimating,this.updateWhileInteracting_=void 0!==e.updateWhileInteracting&&e.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(e){return super.getFeatures(e)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(yVe)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(e){e.declutterTree||(e.declutterTree=new eBe(9)),this.getRenderer().renderDeclutter(e)}setRenderOrder(e){this.set(yVe,e)}setStyle(e){let t;if(void 0===e)t=nVe;else if(null===e)t=null;else if("function"==typeof e)t=e;else if(e instanceof iVe)t=e;else if(Array.isArray(e)){const n=e.length,r=new Array(n);for(let t=0;ta&&(this.instructions.push([PVe.CUSTOM,a,l,e,n,CXe]),this.hitDetectionInstructions.push([PVe.CUSTOM,a,l,e,r||n,CXe]));break;case"Point":s=e.getFlatCoordinates(),this.coordinates.push(s[0],s[1]),l=this.coordinates.length,this.instructions.push([PVe.CUSTOM,a,l,e,n]),this.hitDetectionInstructions.push([PVe.CUSTOM,a,l,e,r||n])}this.endGeometry(t)}beginGeometry(e,t){this.beginGeometryInstruction1_=[PVe.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[PVe.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const e=this.hitDetectionInstructions;let t;e.reverse();const n=e.length;let r,i,o=-1;for(t=0;tthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(e){const t=e.fillStyle,n=[PVe.SET_FILL_STYLE,t];return"string"!=typeof t&&n.push(!0),n}applyStroke(e){this.instructions.push(this.createStroke(e))}createStroke(e){return[PVe.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]}updateFillStyle(e,t){const n=e.fillStyle;"string"==typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)}updateStrokeStyle(e,t){const n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!MLe(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)}endGeometry(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const t=[PVe.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=kFe(this.maxExtent),this.maxLineWidth>0)){const e=this.resolution*(this.maxLineWidth+1)/2;wFe(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},TVe=class extends CVe{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinatess_(e,t,n,r){const i=this.state,o=void 0!==i.fillStyle,a=void 0!==i.strokeStyle,s=n.length;this.instructions.push(_Ve),this.hitDetectionInstructions.push(_Ve);for(let i=0;i=e){const t=(e-s+d)/d,f=_Ue(n,u,t),h=_Ue(r,c,t);l.push(f,h),o.push(l),l=[f,h],s==e&&(a+=i),s=0}else if(s0&&o.push(l),o}function QVe(e,t,n,r,i){let o,a,s,l,u,c,d,f,h,p,m=n,g=n,v=0,O=0,y=n;for(a=n;ae&&(O>v&&(v=O,m=y,g=a),O=0,y=a-i)),s=l,d=h,f=p),u=n,c=r}return O+=l,O>v?[y,a]:[m,g]}const RVe={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},AVe={Circle:TVe,Default:CVe,Image:class extends CVe{constructor(e,t,n,r){super(e,t,n,r),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(e,t){if(!this.image_)return;this.beginGeometry(e,t);const n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([PVe.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([PVe.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}drawMultiPoint(e,t){if(!this.image_)return;this.beginGeometry(e,t);const n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([PVe.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([PVe.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(e,t){const n=e.getAnchor(),r=e.getSize(),i=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}},LineString:class extends CVe{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinates_(e,t,n,r){const i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),a=[PVe.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n}drawLineString(e,t){const n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0===r||void 0===i)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([PVe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,QBe,0],_Ve);const o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(xVe),this.endGeometry(t)}drawMultiLineString(e,t){const n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0===r||void 0===i)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([PVe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],_Ve);const o=e.getEnds(),a=e.getFlatCoordinates(),s=e.getStride();let l=0;for(let e=0,t=o.length;e{const r=o[2*(e+n)]===l[n*u]&&o[2*(e+n)+1]===l[n*u+1];return r||--e,r}))}this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);let c=i.padding;if(c!=MBe&&(i.scale[0]<0||i.scale[1]<0)){let e=i.padding[0],t=i.padding[1],n=i.padding[2],r=i.padding[3];i.scale[0]<0&&(t=-t,r=-r),i.scale[1]<0&&(e=-e,n=-n),c=[e,t,n,r]}const d=this.pixelRatio;this.instructions.push([PVe.DRAW_IMAGE,a,r,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,c==MBe?MBe:c.map((function(e){return e*d})),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const f=1/d;this.hitDetectionInstructions.push([PVe.DRAW_IMAGE,a,r,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[f,f],NaN,void 0,this.declutterImageWithText_,c,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),this.endGeometry(t)}else{if(!ZFe(this.getBufferedMaxExtent(),e.getExtent()))return;let n;if(l=e.getFlatCoordinates(),"LineString"==s)n=[l.length];else if("MultiLineString"==s)n=e.getEnds();else if("Polygon"==s)n=e.getEnds().slice(0,1);else if("MultiPolygon"==s){const t=e.getEndss();n=[];for(let e=0,r=t.length;e{const o=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,i,o)}}forEachFeatureAtCoordinate(e,t,n,r,i){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){e.target.getState()===rBe&&this.renderIfReadyAndVisible()}loadImage(e){let t=e.getState();return t!=rBe&&t!=iBe&&e.addEventListener(ULe.CHANGE,this.boundHandleImageChange_),t==tBe&&(e.load(),t=e.getState()),t==rBe}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},MVe=class extends TLe{constructor(e,t,n,r){super(e),this.inversePixelTransform=t,this.frameState=n,this.context=r}},IVe=[];let zVe=null;const WVe=class extends DVe{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=[1,0,0,1,0,0],this.pixelTransform=[1,0,0,1,0,0],this.inversePixelTransform=[1,0,0,1,0,0],this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(e,t,n){let r;zVe||(zVe=vBe(1,1,void 0,{willReadFrequently:!0})),zVe.clearRect(0,0,1,1);try{zVe.drawImage(e,t,n,1,1,0,0,1,1),r=zVe.getImageData(0,0,1,1).data}catch(e){return zVe=null,null}return r}getBackground(e){let t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0}useContainer(e,t,n){const r=this.getLayer().getClassName();let i,o;if(e&&e.className===r&&(!n||e&&e.style.backgroundColor&&MLe(hBe(e.style.backgroundColor),hBe(n)))){const t=e.firstElementChild;t instanceof HTMLCanvasElement&&(o=t.getContext("2d"))}if(o&&o.canvas.style.transform===t?(this.container=e,this.context=o,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){i=document.createElement("div"),i.className=r;let e=i.style;e.position="absolute",e.width="100%",e.height="100%",o=vBe();const t=o.canvas;i.appendChild(t),e=t.style,e.position="absolute",e.left="0",e.transformOrigin="top left",this.container=i,this.context=o}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)}clipUnrotated(e,t,n){const r=BFe(n),i=VFe(n),o=WFe(n),a=zFe(n);pFe(t.coordinateToPixelTransform,r),pFe(t.coordinateToPixelTransform,i),pFe(t.coordinateToPixelTransform,o),pFe(t.coordinateToPixelTransform,a);const s=this.inversePixelTransform;pFe(s,r),pFe(s,i),pFe(s,o),pFe(s,a),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()}dispatchRenderEvent_(e,t,n){const r=this.getLayer();if(r.hasListener(e)){const i=new MVe(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}}preRender(e,t){this.frameState=t,this.dispatchRenderEvent_("prerender",e,t)}postRender(e,t){this.dispatchRenderEvent_("postrender",e,t)}getRenderTransform(e,t,n,r,i,o,a){const s=i/2,l=o/2,u=r/t,c=-u,d=-e[0]+a,f=-e[1];return mFe(this.tempTransform,s,l,u,c,-n,d,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}};function NVe(e,t,n,r,i,o,a,s,l,u,c,d){let f=e[t],h=e[t+1],p=0,m=0,g=0,v=0;function O(){p=f,m=h,f=e[t+=r],h=e[t+1],v+=g,g=Math.sqrt((f-p)*(f-p)+(h-m)*(h-m))}do{O()}while(te[2]}else E=b>S;const C=Math.PI,T=[],$=k+r===t;let Q;if(g=0,v=x,f=e[t=k],h=e[t+1],$){O(),Q=Math.atan2(h-m,f-p),E&&(Q+=Q>0?-C:C);const e=(S+b)/2,t=(P+w)/2;return T[0]=[e,t,(_-o)/2,Q,i],T}for(let e=0,d=(i=i.replace(/\n/g," ")).length;e0?-C:C),void 0!==Q){let e=b-Q;if(e+=e>C?-2*C:e<-C?2*C:0,Math.abs(e)>a)return null}Q=b;const w=e;let k=0;for(;e0&&e.push("\n",""),e.push(t,""),e}const GVe=class{constructor(e,t,n,r){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}createLabel(e,t,n,r){const i=e+t+n+r;if(this.labels_[i])return this.labels_[i];const o=r?this.strokeStates[r]:null,a=n?this.fillStates[n]:null,s=this.textStates[t],l=this.pixelRatio,u=[s.scale[0]*l,s.scale[1]*l],c=Array.isArray(e),d=s.justify?RVe[s.justify]:YVe(Array.isArray(e)?e[0]:e,s.textAlign||jBe),f=r&&o.lineWidth?o.lineWidth:0,h=c?e:e.split("\n").reduce(ZVe,[]),{width:p,height:m,widths:g,heights:v,lineWidths:O}=function(e,t){const n=[],r=[],i=[];let o=0,a=0,s=0,l=0;for(let u=0,c=t.length;u<=c;u+=2){const d=t[u];if("\n"===d||u===c){o=Math.max(o,a),i.push(a),a=0,s+=l;continue}const f=t[u+1]||e.font,h=XBe(f,d);n.push(h),a+=h;const p=FBe(f);r.push(p),l=Math.max(l,p)}return{width:o,height:s,widths:n,heights:r,lineWidths:i}}(s,h),y=p+f,b=[],w=(y+2)*u[0],k=(m+f)*u[1],x={width:w<0?Math.floor(w):Math.ceil(w),height:k<0?Math.floor(k):Math.ceil(k),contextInstructions:b};1==u[0]&&1==u[1]||b.push("scale",u),r&&(b.push("strokeStyle",o.strokeStyle),b.push("lineWidth",f),b.push("lineCap",o.lineCap),b.push("lineJoin",o.lineJoin),b.push("miterLimit",o.miterLimit),b.push("setLineDash",[o.lineDash]),b.push("lineDashOffset",o.lineDashOffset)),n&&b.push("fillStyle",a.fillStyle),b.push("textBaseline","middle"),b.push("textAlign","center");const _=.5-d;let S=d*y+_*f;const P=[],E=[];let C,T=0,$=0,Q=0,R=0;for(let e=0,t=h.length;ee?e-l:i,y=o+u>t?t-u:o,b=h[3]+O*d[0]+h[1],w=h[0]+y*d[1]+h[2],k=g-h[3],x=v-h[0];let _;return(p||0!==c)&&(FVe[0]=k,qVe[0]=k,FVe[1]=x,UVe[1]=x,UVe[0]=k+b,XVe[0]=UVe[0],XVe[1]=x+w,qVe[1]=XVe[1]),0!==c?(_=mFe([1,0,0,1,0,0],n,r,1,1,c,-n,-r),pFe(_,FVe),pFe(_,UVe),pFe(_,XVe),pFe(_,qVe),CFe(Math.min(FVe[0],UVe[0],XVe[0],qVe[0]),Math.min(FVe[1],UVe[1],XVe[1],qVe[1]),Math.max(FVe[0],UVe[0],XVe[0],qVe[0]),Math.max(FVe[1],UVe[1],XVe[1],qVe[1]),LVe)):CFe(Math.min(k,k+b),Math.min(x,x+w),Math.max(k,k+b),Math.max(x,x+w),LVe),f&&(g=Math.round(g),v=Math.round(v)),{drawImageX:g,drawImageY:v,drawImageW:O,drawImageH:y,originX:l,originY:u,declutterBox:{minX:LVe[0],minY:LVe[1],maxX:LVe[2],maxY:LVe[3],value:m},canvasTransform:_,scale:d}}replayImageOrLabel_(e,t,n,r,i,o,a){const s=!(!o&&!a),l=r.declutterBox,u=e.canvas,c=a?a[2]*r.scale[0]/2:0;return l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0&&(s&&this.replayTextBackground_(e,FVe,UVe,XVe,qVe,o,a),function(e,t,n,r,i,o,a,s,l,u,c){e.save(),1!==n&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(l,u),e.scale(c[0],c[1]),function(e,t){const n=e.contextInstructions;for(let e=0,r=n.length;ej&&(this.fill_(e),P=0),E>j&&(e.stroke(),E=0),P||E||(e.beginPath(),g=NaN,v=NaN),++d;break;case PVe.CIRCLE:S=n[1];const r=l[S],u=l[S+1],c=l[S+2]-r,f=l[S+3]-u,W=Math.sqrt(c*c+f*f);e.moveTo(r+W,u),e.arc(r,u,W,0,2*Math.PI,!0),++d;break;case PVe.CLOSE_PATH:e.closePath(),++d;break;case PVe.CUSTOM:S=n[1],h=n[2];const N=n[3],L=n[4],F=6==n.length?n[5]:void 0;A.geometry=N,A.feature=D,d in $||($[d]=[]);const U=$[d];F?F(l,S,h,2,U):(U[0]=l[S],U[1]=l[S+1],U.length=2),L(U,A),++d;break;case PVe.DRAW_IMAGE:S=n[1],h=n[2],b=n[3],p=n[4],m=n[5];let X=n[6];const q=n[7],B=n[8],V=n[9],Y=n[10];let Z=n[11];const G=n[12];let H=n[13];const K=n[14],J=n[15];if(!b&&n.length>=20){w=n[19],k=n[20],x=n[21],_=n[22];const e=this.drawLabelWithPointPlacement_(w,k,x,_);b=e.label,n[3]=b;const t=n[23];p=(e.anchorX-t)*this.pixelRatio,n[4]=p;const r=n[24];m=(e.anchorY-r)*this.pixelRatio,n[5]=m,X=b.height,n[6]=X,H=b.width,n[13]=H}let ee,te,ne,re;n.length>25&&(ee=n[25]),n.length>17?(te=n[16],ne=n[17],re=n[18]):(te=MBe,ne=!1,re=!1),Y&&R?Z+=Q:Y||R||(Z-=Q);let ie=0;for(;Sn)break;let s=r[a];s||(s=[],r[a]=s),s.push(4*((e+i)*t+(e+o))+3),i>0&&s.push(4*((e-i)*t+(e+o))+3),o>0&&(s.push(4*((e+i)*t+(e-o))+3),i>0&&s.push(4*((e-i)*t+(e-o))+3))}const i=[];for(let e=0,t=r.length;e0){if(!o||"Image"!==f&&"Text"!==f||o.includes(e)){const n=(d[s]-3)/4,o=r-n%a,l=r-(n/a|0),u=i(e,t,o*o+l*l);if(u)return u}u.clearRect(0,0,a,a);break}}const p=Object.keys(this.executorsByZIndex_).map(Number);let m,g,v,O,y;for(p.sort(RLe),m=p.length-1;m>=0;--m){const e=p[m].toString();for(v=this.executorsByZIndex_[e],g=HVe.length-1;g>=0;--g)if(f=HVe[g],O=v[f],void 0!==O&&(y=O.executeHitDetection(u,s,n,h,c),y))return y}}getClipCoords(e){const t=this.maxExtent_;if(!t)return null;const n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return KUe(a,0,8,2,e,a),a}isEmpty(){return LLe(this.executorsByZIndex_)}execute(e,t,n,r,i,o,a){const s=Object.keys(this.executorsByZIndex_).map(Number);let l,u,c,d,f,h;for(s.sort(RLe),this.maxExtent_&&(e.save(),this.clip(e,n)),o=o||HVe,a&&s.reverse(),l=0,u=s.length;le*this.pixelRatio_)),lineDashOffset:(i||0)*this.pixelRatio_,lineJoin:void 0!==o?o:RBe,lineWidth:(void 0!==a?a:1)*this.pixelRatio_,miterLimit:void 0!==s?s:10,strokeStyle:gBe(e||ABe)}}else this.strokeState_=null}setImageStyle(e){let t;if(!e||!(t=e.getSize()))return void(this.image_=null);const n=e.getPixelRatio(this.pixelRatio_),r=e.getAnchor(),i=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*n,this.imageAnchorY_=r[1]*n,this.imageHeight_=t[1]*n,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation();const o=e.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=t[0]*n}setTextStyle(e){if(e){const t=e.getFill();if(t){const e=t.getColor();this.textFillState_={fillStyle:gBe(e||TBe)}}else this.textFillState_=null;const n=e.getStroke();if(n){const e=n.getColor(),t=n.getLineCap(),r=n.getLineDash(),i=n.getLineDashOffset(),o=n.getLineJoin(),a=n.getWidth(),s=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==t?t:$Be,lineDash:r||QBe,lineDashOffset:i||0,lineJoin:void 0!==o?o:RBe,lineWidth:void 0!==a?a:1,miterLimit:void 0!==s?s:10,strokeStyle:gBe(e||ABe)}}else this.textStrokeState_=null;const r=e.getFont(),i=e.getOffsetX(),o=e.getOffsetY(),a=e.getRotateWithView(),s=e.getRotation(),l=e.getScaleArray(),u=e.getText(),c=e.getTextAlign(),d=e.getTextBaseline();this.textState_={font:void 0!==r?r:CBe,textAlign:void 0!==c?c:jBe,textBaseline:void 0!==d?d:DBe},this.text_=void 0!==u?Array.isArray(u)?u.reduce(((e,t,n)=>e+(n%2?" ":t)),""):u:"",this.textOffsetX_=void 0!==i?this.pixelRatio_*i:0,this.textOffsetY_=void 0!==o?this.pixelRatio_*o:0,this.textRotateWithView_=void 0!==a&&a,this.textRotation_=void 0!==s?s:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=""}},tYe=.5,nYe={Point:function(e,t,n,r,i){const o=n.getImage(),a=n.getText();let s;if(o){if(o.getImageState()!=rBe)return;let l=e;if(i){const u=o.getDeclutterMode();if("none"!==u)if(l=i,"obstacle"===u){const i=e.getBuilder(n.getZIndex(),"Image");i.setImageStyle(o,s),i.drawPoint(t,r)}else a&&a.getText()&&(s={})}const u=l.getBuilder(n.getZIndex(),"Image");u.setImageStyle(o,s),u.drawPoint(t,r)}if(a&&a.getText()){let o=e;i&&(o=i);const l=o.getBuilder(n.getZIndex(),"Text");l.setTextStyle(a,s),l.drawText(t,r)}},LineString:function(e,t,n,r,i){const o=n.getStroke();if(o){const i=e.getBuilder(n.getZIndex(),"LineString");i.setFillStrokeStyle(null,o),i.drawLineString(t,r)}const a=n.getText();if(a&&a.getText()){const o=(i||e).getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,r)}},Polygon:function(e,t,n,r,i){const o=n.getFill(),a=n.getStroke();if(o||a){const i=e.getBuilder(n.getZIndex(),"Polygon");i.setFillStrokeStyle(o,a),i.drawPolygon(t,r)}const s=n.getText();if(s&&s.getText()){const o=(i||e).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,r)}},MultiPoint:function(e,t,n,r,i){const o=n.getImage(),a=n.getText();let s;if(o){if(o.getImageState()!=rBe)return;let l=e;if(i){const u=o.getDeclutterMode();if("none"!==u)if(l=i,"obstacle"===u){const i=e.getBuilder(n.getZIndex(),"Image");i.setImageStyle(o,s),i.drawMultiPoint(t,r)}else a&&a.getText()&&(s={})}const u=l.getBuilder(n.getZIndex(),"Image");u.setImageStyle(o,s),u.drawMultiPoint(t,r)}if(a&&a.getText()){let o=e;i&&(o=i);const l=o.getBuilder(n.getZIndex(),"Text");l.setTextStyle(a,s),l.drawText(t,r)}},MultiLineString:function(e,t,n,r,i){const o=n.getStroke();if(o){const i=e.getBuilder(n.getZIndex(),"LineString");i.setFillStrokeStyle(null,o),i.drawMultiLineString(t,r)}const a=n.getText();if(a&&a.getText()){const o=(i||e).getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,r)}},MultiPolygon:function(e,t,n,r,i){const o=n.getFill(),a=n.getStroke();if(a||o){const i=e.getBuilder(n.getZIndex(),"Polygon");i.setFillStrokeStyle(o,a),i.drawMultiPolygon(t,r)}const s=n.getText();if(s&&s.getText()){const o=(i||e).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,r)}},GeometryCollection:function(e,t,n,r,i){const o=t.getGeometriesArray();let a,s;for(a=0,s=o.length;a{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const e=[this.context.canvas.width,this.context.canvas.height];pFe(this.pixelTransform,e);const t=this.renderedCenter_,n=this.renderedResolution_,r=this.renderedRotation_,i=this.renderedProjection_,o=this.wrappedRenderedExtent_,a=this.getLayer(),s=[],l=e[0]*tYe,u=e[1]*tYe;s.push(this.getRenderTransform(t,n,r,tYe,l,u,0).slice());const c=a.getSource(),d=i.getExtent();if(c.getWrapX()&&i.canWrapX()&&!SFe(d,o)){let e=o[0];const i=YFe(d);let a,c=0;for(;ed[2];)++c,a=i*c,s.push(this.getRenderTransform(t,n,r,tYe,l,u,a).slice()),e-=i}this.hitDetectionImageData_=function(e,t,n,r,i,o,a){const s=vBe(e[0]*tYe,e[1]*tYe);s.imageSmoothingEnabled=!1;const l=s.canvas,u=new eYe(s,tYe,i,null,a),c=n.length,d=Math.floor(16777215/c),f={};for(let e=1;e<=c;++e){const t=n[e-1],a=t.getStyleFunction()||r;if(!r)continue;let s=a(t,o);if(!s)continue;Array.isArray(s)||(s=[s]);const l=(e*d).toString(16).padStart(7,"#00000");for(let e=0,n=s.length;ec=r.forEachFeatureAtCoordinate(e,o,a,n,u,r===this.declutterExecutorGroup&&t.declutterTree?t.declutterTree.all().map((e=>e.value)):null))),c}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}prepareFrame(e){const t=this.getLayer(),n=t.getSource();if(!n)return!1;const r=e.viewHints[0],i=e.viewHints[1],o=t.getUpdateWhileAnimating(),a=t.getUpdateWhileInteracting();if(this.ready&&!o&&r||!a&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const s=e.extent,l=e.viewState,u=l.projection,c=l.resolution,d=e.pixelRatio,f=t.getRevision(),h=t.getRenderBuffer();let p=t.getRenderOrder();void 0===p&&(p=rYe);const m=l.center.slice(),g=wFe(s,h*c),v=g.slice(),O=[g.slice()],y=u.getExtent();if(n.getWrapX()&&u.canWrapX()&&!SFe(y,e.extent)){const e=YFe(y),t=Math.max(YFe(g)/2,e);g[0]=y[0]-t,g[2]=y[2]+t,OUe(m,u);const n=HFe(O[0],u);n[0]y[0]&&n[2]>y[2]&&O.push([n[0]-e,n[1],n[2]-e,n[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==f&&this.renderedRenderOrder_==p&&SFe(this.wrappedRenderedExtent_,g))return MLe(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new jVe(iYe(c,d),g,c,d);let w;this.getLayer().getDeclutter()&&(w=new jVe(iYe(c,d),g,c,d));const k=BUe();let x;if(k){for(let e=0,t=O.length;e{let n;const r=e.getStyleFunction()||t.getStyleFunction();if(r&&(n=r(e,c)),n){const t=this.renderFeature(e,_,n,b,x,w);S=S&&!t}},E=ZUe(g),C=n.getFeaturesInExtent(E);p&&C.sort(p);for(let e=0,t=C.length;e0;)this.pop()}extend(e){for(let t=0,n=e.length;tthis.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new fYe(uYe,t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){const t=this.array_;for(let n=0,r=t.length;n=this.getLength())return;const t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new fYe(cYe,t,e)),t}setAt(e,t){if(e>=this.getLength())return void this.insertAt(e,t);if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t,e);const n=this.array_[e];this.array_[e]=t,this.dispatchEvent(new fYe(cYe,n,e)),this.dispatchEvent(new fYe(uYe,t,e))}updateLength_(){this.set(dYe,this.array_.length)}assertUnique_(e,t){for(let n=0,r=this.array_.length;n=200&&s.status<300){const e=t.getType();let r;"json"==e||"text"==e?r=s.responseText:"xml"==e?(r=s.responseXML,r||(r=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==e&&(r=s.response),r?o(t.readFeatures(r,{extent:n,featureProjection:i}),t.readProjection(r)):a()}else a()},s.onerror=a,s.send()}(e,t,n,r,i,(function(e,t){s.addFeatures(e),void 0!==o&&o(e)}),a||WLe)}}class wYe extends TLe{constructor(e,t,n){super(e),this.feature=t,this.features=n}}const kYe=class extends gYe{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===e.wrapX||e.wrapX}),this.on,this.once,this.un,this.loader_=WLe,this.format_=e.format,this.overlaps_=void 0===e.overlaps||e.overlaps,this.url_=e.url,void 0!==e.loader?this.loader_=e.loader:void 0!==this.url_&&(rFe(this.format_,7),this.loader_=bYe(this.url_,this.format_)),this.strategy_=void 0!==e.strategy?e.strategy:yYe;const t=void 0===e.useSpatialIndex||e.useSpatialIndex;let n,r;this.featuresRtree_=t?new pYe:null,this.loadedExtentsRtree_=new pYe,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(e.features)?r=e.features:e.features&&(n=e.features,r=n.getArray()),t||void 0!==n||(n=new hYe(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(e){this.addFeatureInternal(e),this.changed()}addFeatureInternal(e){const t=HLe(e);if(!this.addToIndex_(t,e))return void(this.featuresCollection_&&this.featuresCollection_.remove(e));this.setupChangeEvents_(t,e);const n=e.getGeometry();if(n){const t=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(t,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new wYe(vYe,e))}setupChangeEvents_(e,t){this.featureChangeKeys_[e]=[XLe(t,ULe.CHANGE,this.handleFeatureChange_,this),XLe(t,$Le,this.handleFeatureChange_,this)]}addToIndex_(e,t){let n=!0;const r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&(rFe(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n}addFeatures(e){this.addFeaturesInternal(e),this.changed()}addFeaturesInternal(e){const t=[],n=[],r=[];for(let t=0,r=e.length;t{t||(t=!0,this.addFeature(e.element),t=!1)})),e.addEventListener(cYe,(e=>{t||(t=!0,this.removeFeature(e.element),t=!1)})),this.featuresCollection_=e}clear(e){if(e){for(const e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(BLe);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const e=e=>{this.removeFeatureInternal(e)};this.featuresRtree_.forEach(e);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const t=new wYe("clear");this.dispatchEvent(t),this.changed()}forEachFeature(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureAtCoordinateDirect(e,t){const n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){if(n.getGeometry().intersectsCoordinate(e))return t(n)}))}forEachFeatureInExtent(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureIntersectingExtent(e,t){return this.forEachFeatureInExtent(e,(function(n){if(n.getGeometry().intersectsExtent(e)){const e=t(n);if(e)return e}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),LLe(this.nullGeometryFeatures_)||DLe(e,Object.values(this.nullGeometryFeatures_))),e}getFeaturesAtCoordinate(e){const t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t}getFeaturesInExtent(e,t){if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);const n=function(e,t){if(t.canWrapX()){const n=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[n[0],e[1],n[2],e[3]]];HFe(e,t);const r=YFe(n);if(YFe(e)>r)return[[n[0],e[1],n[2],e[3]]];if(e[0]n[2])return[[e[0],e[1],n[2],e[3]],[n[0],e[1],e[2]-r,e[3]]]}return[e]}(e,t);return[].concat(...n.map((e=>this.featuresRtree_.getInExtent(e))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(e,t){const n=e[0],r=e[1];let i=null;const o=[NaN,NaN];let a=1/0;const s=[-1/0,-1/0,1/0,1/0];return t=t||ILe,this.featuresRtree_.forEachInExtent(s,(function(e){if(t(e)){const t=e.getGeometry(),l=a;if(a=t.closestPointXY(n,r,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new wYe("featuresloadend",void 0,e))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new wYe("featuresloaderror"))})),r.insert(o,{extent:o.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(e){const t=this.loadedExtentsRtree_;let n;t.forEachInExtent(e,(function(t){if(QFe(t.extent,e))return n=t,!0})),n&&t.remove(n)}removeFeature(e){if(!e)return;const t=HLe(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}removeFeatureInternal(e){const t=HLe(e),n=this.featureChangeKeys_[t];if(!n)return;n.forEach(BLe),delete this.featureChangeKeys_[t];const r=e.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[t],this.dispatchEvent(new wYe(OYe,e)),e}removeFromIdIndex_(e){let t=!1;for(const n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t}setLoader(e){this.loader_=e}setUrl(e){rFe(this.format_,7),this.url_=e,this.setLoader(bYe(e,this.format_))}};function xYe(e){const t=arguments;return function(e){let n=!0;for(let r=0,i=t.length;r=n?e[t-n]:e[t]}function zYe(e,t,n){let r,i;ta)return MYe(XYe(e,r),XYe(e,i));let s=0;r=n?r-=n:r<0&&(r+=n);let o=r+1;o>=n&&(o-=n);const a=e[r],s=a[0],l=a[1],u=e[o];return[s+(u[0]-s)*i,l+(u[1]-l)*i]}function qYe(){const e=function(){const e={},t=[255,255,255,1],n=[0,153,255,1];return e.Polygon=[new eVe({fill:new HBe({color:[255,255,255,.5]})})],e.MultiPolygon=e.Polygon,e.LineString=[new eVe({stroke:new JBe({color:t,width:5})}),new eVe({stroke:new JBe({color:n,width:3})})],e.MultiLineString=e.LineString,e.Circle=e.Polygon.concat(e.LineString),e.Point=[new eVe({image:new ZBe({radius:6,fill:new HBe({color:n}),stroke:new JBe({color:t,width:1.5})}),zIndex:1/0})],e.MultiPoint=e.Point,e.GeometryCollection=e.Polygon.concat(e.LineString,e.Point),e}();return function(t,n){return e[t.getGeometry().getType()]}}const BYe=class extends Sqe{constructor(e){const t=e;t.stopDown||(t.stopDown=zLe),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=function(e){switch(e){case"Point":case"MultiPoint":return"Point";case"LineString":case"MultiLineString":return"LineString";case"Polygon":case"MultiPolygon":return"Polygon";case"Circle":return"Circle";default:throw new Error("Invalid type: "+e)}}(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:"Polygon"===this.mode_?3:2,this.maxPoints_="Circle"===this.mode_?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:ILe,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=function(e,t,n){const r=t||new hqe([NaN,NaN]),i=YUe(e[0]),o=gUe(i,YUe(e[e.length-1]));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);const a=BUe();return a&&r.transform(n,a),r};else{let t;"Point"===e?t=qXe:"LineString"===e?t=LXe:"Polygon"===e&&(t=oqe),n=function(n,r,i){return r?"Polygon"===e?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r}}}this.geometryFunction_=n,this.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new lYe({source:new kYe({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:qYe(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:TYe,this.freehandCondition_,e.freehand?this.freehandCondition_=PYe:this.freehandCondition_=e.freehandCondition?e.freehandCondition:$Ye,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(pqe,this.updateState_)}setTrace(e){let t;t=e?!0===e?PYe:e:CYe,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===ULe.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(e);let t=e.type===vqe.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&e.type===vqe.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===vqe.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===vqe.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===vqe.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===vqe.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===vqe.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout((()=>{this.handlePointerMove_(new gqe(vqe.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active)return void this.deactivateTrace_();const t=this.getMap(),n=bFe([t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_])]),r=this.traceSource_.getFeaturesInExtent(n);if(0===r.length)return;const i=function(e,t){const n=[];for(let r=0;re.endIndex||!n&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const r=[];if(t=o;--t)r.push(IYe(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active)return;if(-1===t.targetIndex&&vUe(t.startPx,e.pixel)n.startIndex?un.startIndex&&(u-=r.length)),l=u,s=e)}const u=t.targets[s];let c=u.ring;if(t.targetIndex===s&&c){const e=XYe(u.coordinates,l);vUe(n.getPixelFromCoordinate(e),t.startPx)>r&&(c=!1)}if(c){const e=u.coordinates,t=e.length,n=u.startIndex,r=l;if(nthis.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?(this.updateTrace_(e),this.modifyDrawing_(e.coordinate)):this.createOrUpdateSketchPoint_(e.coordinate.slice())}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_];const o=this.mode_;if("Point"===o)n=!0;else if("Circle"===o)n=2===this.sketchCoords_.length;else if("LineString"===o)r=!t&&this.sketchCoords_.length>this.minPoints_;else if("Polygon"===o){const e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){const t=this.getMap();for(let r=0,o=i.length;r=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):"Polygon"===o&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r&&this.finishDrawing()}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i=2){this.finishCoordinate_=e[e.length-2].slice();const t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if("Polygon"===r){e=this.sketchCoords_[0],e.splice(-2,1);const r=this.sketchLine_.getGeometry();if(e.length>=2){const t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(1===e.length){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return;let t=this.sketchCoords_;const n=e.getGeometry(),r=this.getMap().getView().getProjection();"LineString"===this.mode_?(t.pop(),this.geometryFunction_(t,n,r)):"Polygon"===this.mode_&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new VXe([t])):"MultiLineString"===this.type_?e.setGeometry(new UXe([t])):"MultiPolygon"===this.type_&&e.setGeometry(new lqe([t])),this.dispatchEvent(new DYe("drawend",e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new DYe("drawabort",e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;let r;if(n&&this.startDrawing_(e[0]),"LineString"===t||"Circle"===t)r=this.sketchCoords_;else{if("Polygon"!==t)return;r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&r.shift(),r.pop();for(let t=0;te)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){ZLe()}getAlpha(e,t){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;const r=t-n+1e3/60;return r>=this.transition_?1:Oqe(r/this.transition_)}inTransition(e){return!!this.transition_&&-1!==this.transitionStarts_[e]}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}},HYe=class extends GYe{constructor(e,t,n,r,i,o){super(e,t,o),this.crossOrigin_=r,this.src_=n,this.key=n,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.unlisten_=null,this.tileLoadFunction_=i}getImage(){return this.image_}setImage(e){this.image_=e,this.state=2,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=3,this.unlistenImage_(),this.image_=function(){const e=vBe(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=2:this.state=4,this.unlistenImage_(),this.changed()}load(){3==this.state&&(this.state=0,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),0==this.state&&(this.state=1,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=sVe(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};let KYe;const JYe=[];function eZe(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function tZe(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function nZe(e,t,n,r){const i=XUe(n,t,e);let o=zUe(t,r,n);const a=t.getMetersPerUnit();void 0!==a&&(o*=a);const s=e.getMetersPerUnit();void 0!==s&&(o/=s);const l=e.getExtent();if(!l||_Fe(l,i)){const t=zUe(e,o,i)/o;isFinite(t)&&t>0&&(o/=t)}return o}const rZe=class extends GYe{constructor(e,t,n,r,i,o,a,s,l,u,c,d){super(i,0,{interpolate:!!d}),this.renderEdges_=void 0!==c&&c,this.pixelRatio_=a,this.gutter_=s,this.canvas_=null,this.sourceTileGrid_=t,this.targetTileGrid_=r,this.wrappedTileCoord_=o||i,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const f=r.getTileCoordExtent(this.wrappedTileCoord_),h=this.targetTileGrid_.getExtent();let p=this.sourceTileGrid_.getExtent();const m=h?qFe(f,h):f;if(0===IFe(m))return void(this.state=4);const g=e.getExtent();g&&(p=p?qFe(p,g):g);const v=r.getResolution(this.wrappedTileCoord_[0]),O=function(e,t,n,r){const i=NFe(n);let o=nZe(e,t,i,r);return(!isFinite(o)||o<=0)&&MFe(n,(function(n){return o=nZe(e,t,n,r),isFinite(o)&&o>0})),o}(e,n,m,v);if(!isFinite(O)||O<=0)return void(this.state=4);const y=void 0!==u?u:.5;if(this.triangulation_=new class{constructor(e,t,n,r,i,o){this.sourceProj_=e,this.targetProj_=t;let a={};const s=UUe(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){const t=e[0]+"/"+e[1];return a[t]||(a[t]=s(e)),a[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&YFe(r)==YFe(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?YFe(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?YFe(this.targetProj_.getExtent()):null;const l=BFe(n),u=VFe(n),c=WFe(n),d=zFe(n),f=this.transformInv_(l),h=this.transformInv_(u),p=this.transformInv_(c),m=this.transformInv_(d),g=10+(o?Math.max(0,Math.ceil(Math.log2(IFe(n)/(o*o*256*256)))):0);if(this.addQuad_(l,u,c,d,f,h,p,m,g),this.wrapsXInSource_){let e=1/0;this.triangles_.forEach((function(t,n,r){e=Math.min(e,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach((t=>{if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-e>this.sourceWorldWidth_/2){const n=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];n[0][0]-e>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-e>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-e>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const r=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-r.5&&c<1;let h=!1;if(l>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(h=YFe(bFe([e,t,n,r]))/this.targetWorldWidth_>.25||h),!f&&this.sourceProj_.isGlobal()&&c&&(h=c>.25||h)),!h&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!ZFe(u,this.maxSourceExtent_))return;let p=0;if(!(h||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])))if(l>0)h=!0;else if(p=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1),1!=p&&2!=p&&4!=p&&8!=p)return;if(l>0){if(!h){const t=[(e[0]+n[0])/2,(e[1]+n[1])/2],r=this.transformInv_(t);let o;o=f?(xUe(i[0],d)+xUe(a[0],d))/2-xUe(r[0],d):(i[0]+a[0])/2-r[0];const s=(i[1]+a[1])/2-r[1];h=o*o+s*s>this.errorThresholdSquared_}if(h){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){const u=[(t[0]+n[0])/2,(t[1]+n[1])/2],c=this.transformInv_(u),d=[(r[0]+e[0])/2,(r[1]+e[1])/2],f=this.transformInv_(d);this.addQuad_(e,t,u,d,i,o,c,f,l-1),this.addQuad_(d,u,n,r,f,c,a,s,l-1)}else{const u=[(e[0]+t[0])/2,(e[1]+t[1])/2],c=this.transformInv_(u),d=[(n[0]+r[0])/2,(n[1]+r[1])/2],f=this.transformInv_(d);this.addQuad_(e,u,d,r,i,c,f,s,l-1),this.addQuad_(u,t,n,d,c,o,a,f,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&p)&&this.addTriangle_(e,n,r,i,a,s),0==(14&p)&&this.addTriangle_(e,n,t,i,a,o),p&&(0==(13&p)&&this.addTriangle_(t,r,e,o,s,i),0==(7&p)&&this.addTriangle_(t,r,n,o,s,a))}calculateSourceExtent(){const e=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach((function(t,n,r){const i=t.source;AFe(e,i[0]),AFe(e,i[1]),AFe(e,i[2])})),e}getTriangles(){return this.triangles_}}(e,n,m,p,O*y,v),0===this.triangulation_.getTriangles().length)return void(this.state=4);this.sourceZ_=t.getZForResolution(O);let b=this.triangulation_.calculateSourceExtent();if(p&&(e.canWrapX()?(b[1]=yUe(b[1],p[1],p[3]),b[3]=yUe(b[3],p[1],p[3])):b=qFe(b,p)),IFe(b)){const e=t.getTileRangeForExtentAndZ(b,this.sourceZ_);for(let t=e.minX;t<=e.maxX;t++)for(let n=e.minY;n<=e.maxY;n++){const e=l(this.sourceZ_,t,n,a);e&&this.sourceTiles_.push(e)}0===this.sourceTiles_.length&&(this.state=4)}else this.state=4}getImage(){return this.canvas_}reproject_(){const e=[];if(this.sourceTiles_.forEach((t=>{t&&2==t.getState()&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})})),this.sourceTiles_.length=0,0===e.length)this.state=3;else{const t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),a=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(e,t,n,r,i,o,a,s,l,u,c,d){const f=vBe(Math.round(n*e),Math.round(n*t),JYe);if(d||(f.imageSmoothingEnabled=!1),0===l.length)return f.canvas;function h(e){return Math.round(e*n)/n}f.scale(n,n),f.globalCompositeOperation="lighter";const p=[1/0,1/0,-1/0,-1/0];l.forEach((function(e,t,n){RFe(p,e.extent)}));const m=YFe(p),g=XFe(p),v=vBe(Math.round(n*m/r),Math.round(n*g/r),JYe);d||(v.imageSmoothingEnabled=!1);const O=n/r;l.forEach((function(e,t,n){const r=e.extent[0]-p[0],i=-(e.extent[3]-p[3]),o=YFe(e.extent),a=XFe(e.extent);e.image.width>0&&e.image.height>0&&v.drawImage(e.image,u,u,e.image.width-2*u,e.image.height-2*u,r*O,i*O,o*O,a*O)}));const y=BFe(a);return s.getTriangles().forEach((function(e,t,i){const a=e.source,s=e.target;let l=a[0][0],u=a[0][1],c=a[1][0],m=a[1][1],g=a[2][0],O=a[2][1];const b=h((s[0][0]-y[0])/o),w=h(-(s[0][1]-y[1])/o),k=h((s[1][0]-y[0])/o),x=h(-(s[1][1]-y[1])/o),_=h((s[2][0]-y[0])/o),S=h(-(s[2][1]-y[1])/o),P=l,E=u;l=0,u=0,c-=P,m-=E,g-=P,O-=E;const C=function(e){const t=e.length;for(let n=0;ni&&(i=t,r=o)}if(0===i)return null;const o=e[r];e[r]=e[n],e[n]=o;for(let r=n+1;r=0;r--){n[r]=e[r][t]/e[r][r];for(let i=r-1;i>=0;i--)e[i][t]-=e[i][r]*n[r]}return n}([[c,m,0,0,k-b],[g,O,0,0,_-b],[0,0,c,m,x-w],[0,0,g,O,S-w]]);if(C){if(f.save(),f.beginPath(),function(){if(void 0===KYe){const e=vBe(6,6,JYe);e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",eZe(e,4,5,4,0),eZe(e,4,5,0,5);const t=e.getImageData(0,0,3,3).data;KYe=tZe(t,0)||tZe(t,4)||tZe(t,8),OBe(e),JYe.push(e.canvas)}return KYe}()||!d){f.moveTo(k,x);const e=4,t=b-k,n=w-x;for(let r=0;r{const n=t.getState();if(0==n||1==n){e++;const n=XLe(t,ULe.CHANGE,(function(r){const i=t.getState();2!=i&&3!=i&&4!=i||(BLe(n),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(n)}})),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(e,t,n){0==e.getState()&&e.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(BLe),this.sourcesListenerKeys_=null}release(){this.canvas_&&(OBe(this.canvas_.getContext("2d")),JYe.push(this.canvas_),this.canvas_=null),super.release()}};class iZe{constructor(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function oZe(e,t,n,r,i){return void 0!==i?(i.minX=e,i.maxX=t,i.minY=n,i.maxY=r,i):new iZe(e,t,n,r)}const aZe=iZe,sZe=class extends WVe{constructor(e){super(e),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=[1/0,1/0,-1/0,-1/0],this.tmpTileRange_=new aZe(0,0,0,0)}isDrawableTile(e){const t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return 2==n||4==n||3==n&&!r}getTile(e,t,n,r){const i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer();let s=a.getSource().getTile(e,t,n,i,o);return 3==s.getState()&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(s)||(s=s.getInterimTile()),s}getData(e){const t=this.frameState;if(!t)return null;const n=this.getLayer(),r=pFe(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!_Fe(i,r))return null;const o=t.pixelRatio,a=t.viewState.projection,s=t.viewState,l=n.getRenderSource(),u=l.getTileGridForProjection(s.projection),c=l.getTilePixelRatio(t.pixelRatio);for(let e=u.getZForResolution(s.resolution);e>=u.getMinZoom();--e){const t=u.getTileCoordForCoordAndZ(r,e),n=l.getTile(e,t[1],t[2],o,a);if(!(n instanceof HYe||n instanceof rZe)||n instanceof rZe&&4===n.getState())return null;if(2!==n.getState())continue;const i=u.getOrigin(e),d=aBe(u.getTileSize(e)),f=u.getResolution(e),h=Math.floor(c*((r[0]-i[0])/f-t[1]*d[0])),p=Math.floor(c*((i[1]-r[1])/f-t[2]*d[1])),m=Math.round(c*l.getGutterForProjection(s.projection));return this.getImageData(n.getImage(),h+m,p+m)}return null}loadedTileCallback(e,t,n){return!!this.isDrawableTile(n)&&super.loadedTileCallback(e,t,n)}prepareFrame(e){return!!this.getLayer().getSource()}renderFrame(e,t){const n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,o=r.resolution,a=r.center,s=r.rotation,l=e.pixelRatio,u=this.getLayer(),c=u.getSource(),d=c.getRevision(),f=c.getTileGridForProjection(i),h=f.getZForResolution(o,c.zDirection),p=f.getResolution(h);let m=e.extent;const g=e.viewState.resolution,v=c.getTilePixelRatio(l),O=Math.round(YFe(m)/g*l),y=Math.round(XFe(m)/g*l),b=n.extent&&GUe(n.extent);b&&(m=qFe(m,GUe(n.extent)));const w=p*O/2/v,k=p*y/2/v,x=[a[0]-w,a[1]-k,a[0]+w,a[1]+k],_=f.getTileRangeForExtentAndZ(m,h),S={};S[h]={};const P=this.createLoadedTileFinder(c,i,S),E=this.tmpExtent,C=this.tmpTileRange_;this.newTiles_=!1;const T=s?UFe(r.center,g,s,e.size):void 0;for(let t=_.minX;t<=_.maxX;++t)for(let r=_.minY;r<=_.maxY;++r){if(s&&!f.tileCoordIntersectsViewport([h,t,r],T))continue;const i=this.getTile(h,t,r,e);if(this.isDrawableTile(i)){const t=HLe(this);if(2==i.getState()){S[h][i.tileCoord.toString()]=i;let e=i.inTransition(t);e&&1!==n.opacity&&(i.endTransition(t),e=!1),this.newTiles_||!e&&this.renderedTiles.includes(i)||(this.newTiles_=!0)}if(1===i.getAlpha(t,e.time))continue}const o=f.getTileCoordChildTileRange(i.tileCoord,C,E);let a=!1;o&&(a=P(h+1,o)),a||f.forEachTileCoordParentTileRange(i.tileCoord,P,C,E)}const $=p/o*l/v;mFe(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/l,1/l,s,-O/2,-y/2);const Q=OFe(this.pixelTransform);this.useContainer(t,Q,this.getBackground(e));const R=this.context,A=R.canvas;gFe(this.inversePixelTransform,this.pixelTransform),mFe(this.tempTransform,O/2,y/2,$,$,0,-O/2,-y/2),A.width!=O||A.height!=y?(A.width=O,A.height=y):this.containerReused||R.clearRect(0,0,O,y),b&&this.clipUnrotated(R,e,b),c.getInterpolate()||(R.imageSmoothingEnabled=!1),this.preRender(R,e),this.renderedTiles.length=0;let j,D,M,I=Object.keys(S).map(Number);I.sort(RLe),1!==n.opacity||this.containerReused&&!c.getOpaque(e.viewState.projection)?(j=[],D=[]):I=I.reverse();for(let t=I.length-1;t>=0;--t){const n=I[t],r=c.getTilePixelSize(n,l,i),o=f.getResolution(n)/p,a=r[0]*o*$,s=r[1]*o*$,u=f.getTileCoordForCoordAndZ(BFe(x),n),d=f.getTileCoordExtent(u),m=pFe(this.tempTransform,[v*(d[0]-x[0])/p,v*(x[3]-d[3])/p]),g=v*c.getGutterForProjection(i),O=S[n];for(const t in O){const r=O[t],i=r.tileCoord,o=u[1]-i[1],l=Math.round(m[0]-(o-1)*a),d=u[2]-i[2],f=Math.round(m[1]-(d-1)*s),p=Math.round(m[0]-o*a),v=Math.round(m[1]-d*s),y=l-p,b=f-v,w=h===n,k=w&&1!==r.getAlpha(HLe(this),e.time);let x=!1;if(!k)if(j){M=[p,v,p+y,v,p+y,v+b,p,v+b];for(let e=0,t=j.length;e=0;--i){const o=p[i],d=o.layer;if(d.hasRenderer()&&Kqe(o,u)&&a.call(s,d)){const i=d.getRenderer(),a=d.getSource();if(i&&a){const s=a.getWrapX()?f:e,u=c.bind(null,o.managed);v[0]=s[0]+h[r][0],v[1]=s[1]+h[r][1],l=i.forEachFeatureAtCoordinate(v,t,n,u,g)}if(l)return l}}if(0===g.length)return;const O=1/g.length;return g.forEach(((e,t)=>e.distanceSq+=t*O)),g.sort(((e,t)=>e.distanceSq-t.distanceSq)),g.some((e=>l=e.callback(e.feature,e.layer,e.geometry))),l}hasFeatureAtCoordinate(e,t,n,r,i,o){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,ILe,this,i,o)}getMap(){return this.map_}renderFrame(e){ZLe()}scheduleExpireIconCache(e){aVe.canExpireCache()&&e.postRenderFunctions.push(uZe)}},dZe=class extends cZe{constructor(e){super(e),this.fontChangeListenerKey_=XLe(IBe,$Le,e.redrawText.bind(e)),this.element_=document.createElement("div");const t=this.element_.style;t.position="absolute",t.width="100%",t.height="100%",t.zIndex="0",this.element_.className=kBe+" ol-layers";const n=e.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(e,t){const n=this.getMap();if(n.hasListener(e)){const r=new MVe(e,void 0,t);n.dispatchEvent(r)}}disposeInternal(){BLe(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(e){if(!e)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(e),this.dispatchRenderEvent(Mqe,e);const t=e.layerStatesArray.sort((function(e,t){return e.zIndex-t.zIndex})),n=e.viewState;this.children_.length=0;const r=[];let i=null;for(let o=0,a=t.length;o=0;--t)r[t].renderDeclutter(e);!function(e,t){const n=e.childNodes;for(let r=0;;++r){const i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}(this.element_,this.children_),this.dispatchRenderEvent("postcompose",e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}};class fZe extends TLe{constructor(e,t){super(e),this.layer=t}}const hZe="layers";class pZe extends Dqe{constructor(e){e=e||{};const t=Object.assign({},e);delete t.layers;let n=e.layers;super(t),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(hZe,this.handleLayersChanged_),n?Array.isArray(n)?n=new hYe(n.slice(),{unique:!0}):rFe("function"==typeof n.getArray,43):n=new hYe(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(BLe),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(XLe(e,uYe,this.handleLayersAdd_,this),XLe(e,cYe,this.handleLayersRemove_,this));for(const e in this.listenerKeys_)this.listenerKeys_[e].forEach(BLe);NLe(this.listenerKeys_);const t=e.getArray();for(let e=0,n=t.length;e{this.clickTimeoutId_=void 0;const t=new gqe(vqe.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}),250)}updateActivePointers_(e){const t=e,n=t.pointerId;if(t.type==vqe.POINTERUP||t.type==vqe.POINTERCANCEL){delete this.trackedTouches_[n];for(const e in this.trackedTouches_)if(this.trackedTouches_[e].target!==t.target){delete this.trackedTouches_[e];break}}else t.type!=vqe.POINTERDOWN&&t.type!=vqe.POINTERMOVE||(this.trackedTouches_[n]=t);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const t=new gqe(vqe.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(BLe),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return 0===e.button}handlePointerDown_(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);const t=new gqe(vqe.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(t),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),0===this.dragListenerKeys_.length){const e=this.map_.getOwnerDocument();this.dragListenerKeys_.push(XLe(e,vqe.POINTERMOVE,this.handlePointerMove_,this),XLe(e,vqe.POINTERUP,this.handlePointerUp_,this),XLe(this.element_,vqe.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==e&&this.dragListenerKeys_.push(XLe(this.element_.getRootNode(),vqe.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const t=new gqe(vqe.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new gqe(vqe.POINTERMOVE,this.map_,e,t))}handleTouchMove_(e){const t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(BLe(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ULe.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(BLe(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(BLe),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},OZe="postrender",yZe="loadstart",bZe="loadend",wZe="layergroup",kZe="size",xZe="target",_Ze="view",SZe=1/0,PZe=class{constructor(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,NLe(this.queuedElements_)}dequeue(){const e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));const r=this.keyFunction_(n);return delete this.queuedElements_[r],n}enqueue(e){rFe(!(this.keyFunction_(e)in this.queuedElements_),31);const t=this.priorityFunction_(e);return t!=SZe&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(e){return 2*e+1}getRightChildIndex_(e){return 2*e+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return 0===this.elements_.length}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;for(;e>1;){const i=this.getLeftChildIndex_(e),o=this.getRightChildIndex_(e),a=oe;){const e=this.getParentIndex_(t);if(!(r[e]>o))break;n[t]=n[e],r[t]=r[e],t=e}n[t]=i,r[t]=o}reprioritize(){const e=this.priorityFunction_,t=this.elements_,n=this.priorities_;let r=0;const i=t.length;let o,a,s;for(a=0;a0;)r=this.dequeue()[0],i=r.getKey(),n=r.getState(),0!==n||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,r.load())}},CZe=class extends JLe{constructor(e){super();const t=e.element;!t||e.target||t.style.pointerEvents||(t.style.pointerEvents="auto"),this.element=t||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){bBe(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&bBe(this.element);for(let e=0,t=this.listenerKeys.length;et.getAttributions(e))))),n=!this.getMap().getAllLayers().some((e=>e.getSource()&&!1===e.getSource().getAttributionsCollapsible()));return this.overrideCollapsible_||this.setCollapsible(n),t}updateElement_(e){if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!MLe(t,this.renderedAttributions_)){!function(e){for(;e.lastChild;)e.removeChild(e.lastChild)}(this.ulElement_);for(let e=0,n=t.length;e0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:yqe}):e.setRotation(0))}render(e){const t=e.frameState;if(!t)return;const n=t.viewState.rotation;if(n!=this.rotation_){const e="rotate("+n+"rad)";if(this.autoHide_){const e=this.element.classList.contains(wBe);e||0!==n?e&&0!==n&&this.element.classList.remove(wBe):this.element.classList.add(wBe)}this.label_.style.transform=e}this.rotation_=n}},QZe=class extends CZe{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const t=void 0!==e.className?e.className:"ol-zoom",n=void 0!==e.delta?e.delta:1,r=void 0!==e.zoomInClassName?e.zoomInClassName:t+"-in",i=void 0!==e.zoomOutClassName?e.zoomOutClassName:t+"-out",o=void 0!==e.zoomInLabel?e.zoomInLabel:"+",a=void 0!==e.zoomOutLabel?e.zoomOutLabel:"–",s=void 0!==e.zoomInTipLabel?e.zoomInTipLabel:"Zoom in",l=void 0!==e.zoomOutTipLabel?e.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=s,u.appendChild("string"==typeof o?document.createTextNode(o):o),u.addEventListener(ULe.CLICK,this.handleClick_.bind(this,n),!1);const c=document.createElement("button");c.className=i,c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof a?document.createTextNode(a):a),c.addEventListener(ULe.CLICK,this.handleClick_.bind(this,-n),!1);const d=t+" "+kBe+" "+xBe,f=this.element;f.className=d,f.appendChild(u),f.appendChild(c),this.duration_=void 0!==e.duration?e.duration:250}handleClick_(e,t){t.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const t=this.getMap().getView();if(!t)return;const n=t.getZoom();if(void 0!==n){const r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:yqe})):t.setZoom(r)}}},RZe=class extends xqe{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:250}handleEvent(e){let t=!1;if(e.type==vqe.DBLCLICK){const n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_;kqe(r.getView(),o,i,this.duration_),n.preventDefault(),t=!0}return!t}},AZe=class extends Sqe{constructor(e){super({stopDown:zLe}),e=e||{},this.kinetic_=e.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const t=e.condition?e.condition:xYe(TYe,AYe);this.condition_=e.onFocusOnly?xYe(SYe,t):t,this.noKinetic_=!1}handleDragEvent(e){const t=e.map;this.panning_||(this.panning_=!0,t.getView().beginInteraction());const n=this.targetPointers,r=t.getEventPixel(_qe(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){const t=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],n=e.map.getView();i=t,o=n.getResolution(),i[0]*=o,i[1]*=o,mUe(t,n.getRotation()),n.adjustCenterInternal(t)}}else this.kinetic_&&this.kinetic_.begin();var i,o;this.lastCentroid=r,this.lastPointersCount_=n.length,e.originalEvent.preventDefault()}handleUpEvent(e){const t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const e=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),i=n.getCenterInternal(),o=t.getPixelFromCoordinateInternal(i),a=t.getCoordinateFromPixelInternal([o[0]-e*Math.cos(r),o[1]-e*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(a),duration:500,easing:yqe})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(e){if(this.targetPointers.length>0&&this.condition_(e)){const t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},jZe=class extends Sqe{constructor(e){e=e||{},super({stopDown:zLe}),this.condition_=e.condition?e.condition:_Ye,this.lastAngle_=void 0,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){if(!RYe(e))return;const t=e.map,n=t.getView();if(n.getConstraints().rotation===Bqe)return;const r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){const e=o-this.lastAngle_;n.adjustRotationInternal(-e)}this.lastAngle_=o}handleUpEvent(e){return!RYe(e)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){return!!RYe(e)&&(!(!EYe(e)||!this.condition_(e))&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}},DZe=class extends QLe{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new oqe([n])}getGeometry(){return this.geometry_}};class MZe extends TLe{constructor(e,t,n){super(e),this.coordinate=t,this.mapBrowserEvent=n}}const IZe=class extends Sqe{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.box_=new DZe(e.className||"ol-dragbox"),this.minArea_=void 0!==e.minArea?e.minArea:64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition?e.condition:EYe,this.boxEndCondition_=e.boxEndCondition?e.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(e,t,n){const r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new MZe("boxdrag",e.coordinate,e))}handleUpEvent(e){this.box_.setMap(null);const t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new MZe(t?"boxend":"boxcancel",e.coordinate,e)),!1}handleDownEvent(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new MZe("boxstart",e.coordinate,e)),!0)}onBoxEnd(e){}},zZe=class extends IZe{constructor(e){super({condition:(e=e||{}).condition?e.condition:$Ye,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=void 0!==e.duration?e.duration:200,this.out_=void 0!==e.out&&e.out}onBoxEnd(e){const t=this.getMap().getView();let n=this.getGeometry();if(this.out_){const e=t.rotatedExtentForGeometry(n),r=t.getResolutionForExtentInternal(e),i=t.getResolution()/r;n=n.clone(),n.scale(i*i)}t.fitInternal(n,{duration:this.duration_,easing:yqe})}},WZe=class extends xqe{constructor(e){super(),e=e||{},this.defaultCondition_=function(e){return TYe(e)&&QYe(e)},this.condition_=void 0!==e.condition?e.condition:this.defaultCondition_,this.duration_=void 0!==e.duration?e.duration:100,this.pixelDelta_=void 0!==e.pixelDelta?e.pixelDelta:128}handleEvent(e){let t=!1;if(e.type==ULe.KEYDOWN){const n=e.originalEvent,r=n.keyCode;if(this.condition_(e)&&(40==r||37==r||39==r||38==r)){const i=e.map.getView(),o=i.getResolution()*this.pixelDelta_;let a=0,s=0;40==r?s=-o:37==r?a=-o:39==r?a=o:s=o;const l=[a,s];mUe(l,i.getRotation()),function(e,t,n){const r=e.getCenterInternal();if(r){const i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:wqe,center:e.getConstrainedCenter(i)})}}(i,l,this.duration_),n.preventDefault(),t=!0}}return!t}},NZe=class extends xqe{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:QYe,this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:100}handleEvent(e){let t=!1;if(e.type==ULe.KEYDOWN||e.type==ULe.KEYPRESS){const n=e.originalEvent,r=n.key;if(this.condition_(e)&&("+"===r||"-"===r)){const i=e.map,o="+"===r?this.delta_:-this.delta_;kqe(i.getView(),o,void 0,this.duration_),n.preventDefault(),t=!0}}return!t}},LZe=class extends xqe{constructor(e){super(e=e||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==e.maxDelta?e.maxDelta:1,this.duration_=void 0!==e.duration?e.duration:250,this.timeout_=void 0!==e.timeout?e.timeout:80,this.useAnchor_=void 0===e.useAnchor||e.useAnchor,this.constrainResolution_=void 0!==e.constrainResolution&&e.constrainResolution;const t=e.condition?e.condition:PYe;this.condition_=e.onFocusOnly?xYe(SYe,t):t,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(e){if(!this.condition_(e))return!0;if(e.type!==ULe.WHEEL)return!0;const t=e.map,n=e.originalEvent;let r;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==ULe.WHEEL&&(r=n.deltaY,sFe&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=cFe),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;const i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const o=t.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=r;const a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,t),a),!1}handleWheelZoom_(e){const t=e.getView();t.getAnimating()&&t.cancelAnimations();let n=-yUe(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),kqe(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}},FZe=class extends Sqe{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=zLe),super(t),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==e.threshold?e.threshold:.3,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){let t=0;const n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){const e=i-this.lastAngle_;this.rotationDelta_+=e,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=e}this.lastAngle_=i;const o=e.map,a=o.getView();a.getConstraints().rotation!==Bqe&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(_qe(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(t,this.anchor_)))}handleUpEvent(e){return!(this.targetPointers.length<2)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}},UZe=class extends Sqe{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=zLe),super(t),this.anchor_=null,this.duration_=void 0!==e.duration?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let t=1;const n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;const s=e.map,l=s.getView();1!=t&&(this.lastScaleDelta_=t),this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(_qe(this.targetPointers))),s.render(),l.adjustResolutionInternal(t,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}};function XZe(e){e instanceof Jqe?e.setMapInternal(null):e instanceof mZe&&e.getLayers().forEach(XZe)}function qZe(e,t){if(e instanceof Jqe)e.setMapInternal(t);else if(e instanceof mZe){const n=e.getLayers().getArray();for(let e=0,r=n.length;ethis.updateSize())),this.controls=t.controls||function(e){e=e||{};const t=new hYe;return(void 0===e.zoom||e.zoom)&&t.push(new QZe(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&t.push(new $Ze(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&t.push(new TZe(e.attributionOptions)),t}(),this.interactions=t.interactions||function(e){e=e||{};const t=new hYe,n=new class{constructor(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,t){this.points_.push(e,t,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[n+2]>e;)n-=3;const r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;const i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&t.push(new jZe),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&t.push(new RZe({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&t.push(new AZe({onFocusOnly:e.onFocusOnly,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&t.push(new FZe),(void 0===e.pinchZoom||e.pinchZoom)&&t.push(new UZe({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(t.push(new WZe),t.push(new NZe({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&t.push(new LZe({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&t.push(new zZe({duration:e.zoomDuration})),t}({onFocusOnly:!0}),this.overlays_=t.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new EZe(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(wZe,this.handleLayerGroupChanged_),this.addChangeListener(_Ze,this.handleViewChanged_),this.addChangeListener(kZe,this.handleSizeChanged_),this.addChangeListener(xZe,this.handleTargetChanged_),this.setProperties(t.values);const n=this;!e.view||e.view instanceof Hqe||e.view.then((function(e){n.setView(new Hqe(e))})),this.controls.addEventListener(uYe,(e=>{e.element.setMap(this)})),this.controls.addEventListener(cYe,(e=>{e.element.setMap(null)})),this.interactions.addEventListener(uYe,(e=>{e.element.setMap(this)})),this.interactions.addEventListener(cYe,(e=>{e.element.setMap(null)})),this.overlays_.addEventListener(uYe,(e=>{this.addOverlayInternal_(e.element)})),this.overlays_.addEventListener(cYe,(e=>{const t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)})),this.controls.forEach((e=>{e.setMap(this)})),this.interactions.forEach((e=>{e.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){qZe(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,t,n){if(!this.frameState_||!this.renderer_)return;const r=this.getCoordinateFromPixelInternal(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:ILe,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,a,t,null,o,null)}getFeaturesAtPixel(e,t){const n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n}getAllLayers(){const e=[];return function t(n){n.forEach((function(n){n instanceof mZe?t(n.getLayers()):e.push(n)}))}(this.getLayers()),e}hasFeatureAtPixel(e,t){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:ILe,i=void 0!==t.hitTolerance?t.hitTolerance:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const t=this.viewport_.getBoundingClientRect(),n=this.getSize(),r=t.width/n[0],i=t.height/n[1],o="changedTouches"in e?e.changedTouches[0]:e;return[(o.clientX-t.left)/r,(o.clientY-t.top)/i]}getTarget(){return this.get(xZe)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return VUe(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const t=this.frameState_;return t?pFe(t.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(wZe)}setLayers(e){const t=this.getLayerGroup();if(e instanceof hYe)return void t.setLayers(e);const n=t.getLayers();n.clear(),n.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,n=e.length;t=0;n--){const r=t[n];if(r.getMap()===this&&r.getActive()&&this.getTargetElement()&&(!r.handleEvent(e)||e.propagationStopped))break}}}handlePostRender(){const e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){let n=this.maxTilesLoading_,r=n;if(e){const t=e.viewHints;if(t[0]||t[1]){const t=Date.now()-e.time>8;n=t?0:8,r=t?0:2}}t.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(e){const t=this.getLayerGroup();t&&this.handleLayerRemove_(new fZe("removelayer",t)),this.set(wZe,e)}setSize(e){this.set(kZe,e)}setTarget(e){this.set(xZe,e)}setView(e){if(!e||e instanceof Hqe)return void this.set(_Ze,e);this.set(_Ze,new Hqe);const t=this;e.then((function(e){t.setView(new Hqe(e))}))}updateSize(){const e=this.getTargetElement();let t;if(e){const n=getComputedStyle(e),r=e.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=e.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(t=[r,i],!oBe(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&RUe("No map visible because the map container's width or height are 0."))}const n=this.getSize();!t||n&&MLe(t,n)||(this.setSize(t),this.updateViewportSize_())}updateViewportSize_(){const e=this.getView();if(e){let t;const n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}}},VZe=class{constructor(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let t=this.oldest_;for(;t;)e(t.value_,t.key_,this),t=t.newer}get(e,t){const n=this.entries_[e];return rFe(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(e){const t=this.entries_[e];return rFe(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let t,n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e}getValues(){const e=new Array(this.count_);let t,n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){if(this.containsKey(e))return this.entries_[e].value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,t){this.get(e),this.entries_[e].value_=t}set(e,t){rFe(!(e in this.entries_),16);const n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_}setSize(e){this.highWaterMark=e}};function YZe(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function ZZe(e,t,n){return e+"/"+t+"/"+n}function GZe(e){return ZZe(e[0],e[1],e[2])}const HZe=class extends VZe{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const e=function(e){return e.split("/").map(Number)}(this.peekFirstKey()),t=e[0];this.forEach((e=>{e.tileCoord[0]!==t&&(this.remove(GZe(e.tileCoord)),e.release())}))}},KZe=[0,0,0],JZe=class{constructor(e){let t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,rFe(function(e,t,n){const r=function(e,t){return t-e}||RLe;return e.every((function(t,n){if(0===n)return!0;const i=r(e[n-1],t);return!(i>0||0===i)}))}(this.resolutions_),17),!e.origins)for(let e=0,n=this.resolutions_.length-1;e=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),i=oZe(o,o,a,a,n)):i=this.getTileRangeForExtentAndZ(s,l,n),t(l,i))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,t,n){if(e[0]this.maxZoom||t0?r:Math.max(o/n[0],i/n[1]);const a=t+1,s=new Array(a);for(let e=0;en||n>t.getMaxZoom())return!1;const o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}(e,n)?e:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(e,t){const n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)}useTile(e,t,n,r){}};function oGe(e,t){const n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){if(a)return e.replace(n,a[0].toString()).replace(r,a[1].toString()).replace(i,a[2].toString()).replace(o,(function(){const e=a[0],n=t.getFullTileRange(e);return rFe(n,55),(n.getHeight()-a[2]-1).toString()}))}}class aGe extends iGe{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===aGe.prototype.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(this.tileUrlFunction=e.tileUrlFunction),this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(e){const t=e.target,n=HLe(t),r=t.getState();let i;1==r?(this.tileLoadingKeys_[n]=!0,i="tileloadstart"):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],i=3==r?"tileloaderror":2==r?"tileloadend":void 0),null!=i&&this.dispatchEvent(new rGe(i,t))}setTileLoadFunction(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()}setTileUrlFunction(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()}setUrl(e){const t=function(e){const t=[];let n=/\{([a-z])-([a-z])\}/.exec(e);if(n){const r=n[1].charCodeAt(0),i=n[2].charCodeAt(0);let o;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e),n){const r=parseInt(n[2],10);for(let i=parseInt(n[1],10);i<=r;i++)t.push(e.replace(n[0],i.toString()));return t}return t.push(e),t}(e);this.urls=t,this.setUrls(t)}setUrls(e){this.urls=e;const t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(e,t){const n=e.length,r=new Array(n);for(let i=0;ithis.getTileInternal(e,t,n,r,o)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return p.key=c,l?(p.interimTile=l,p.refreshInterimChain(),a.replace(u,p)):a.set(u,p),p}getTileInternal(e,t,n,r,i){let o=null;const a=ZZe(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=s){const l=o;o=this.createTile_(e,t,n,r,i,s),0==l.getState()?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(e,t,n,r,i,s),this.tileCache.set(a,o);return o}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(e,t){const n=IUe(e);if(n){const e=HLe(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}},cGe=class extends uGe{constructor(e){const t=void 0!==(e=e||{}).projection?e.projection:"EPSG:3857",n=void 0!==e.tileGrid?e.tileGrid:function(e){const t=e||{},n=t.extent||IUe("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:tGe(n,t.maxZoom,t.tileSize,t.maxResolution)};return new JZe(r)}({extent:nGe(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,opaque:e.opaque,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=void 0!==e.gutter?e.gutter:0}getGutter(){return this.gutter_}},dGe=class extends cGe{constructor(e){let t;t=void 0!==(e=e||{}).attributions?e.attributions:['© OpenStreetMap contributors.'];const n=void 0!==e.crossOrigin?e.crossOrigin:"anonymous",r=void 0!==e.url?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:t,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:n,interpolate:e.interpolate,maxZoom:void 0!==e.maxZoom?e.maxZoom:19,opaque:void 0===e.opaque||e.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:r,wrapX:e.wrapX,zDirection:e.zDirection})}},fGe=UD("WidgetMap",["root","error","required","disabled","for-single-list","map"]),hGe={dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"},pGe=({getFormat:e,getMap:t}={})=>{const n=({value:n,field:r,onChange:i,errors:o,hasErrors:a,forSingleList:s,label:l,disabled:u})=>{const{height:d="400px"}=r,f=(0,c.useRef)(null);return(0,c.useLayoutEffect)((()=>{var o,a;const s=e?e(r):new dqe(hGe),l=n?[s.readFeature(n)]:[],c=new kYe({features:l,wrapX:!1}),d=new lYe({source:c}),h=f.current;if(!h)return;const p=t?t(h,d):function(e,t){return new BZe({target:e,layers:[new lZe({source:new dGe}),t],view:new Hqe({center:[0,0],zoom:2})})}(h,d);l.length>0&&p.getView().fit(c.getExtent(),{maxZoom:16,padding:[80,80,80,80]});const m=new BYe({source:c,type:null!==(o=r.type)&&void 0!==o?o:"Point"});p.addInteraction(m);const g={decimals:null!==(a=r.decimals)&&void 0!==a?a:7};m.on("drawend",(({feature:e})=>{if(c.clear(),u)return;const t=e.getGeometry();t&&i(s.writeGeometry(t,g))}))}),[]),c.createElement(Ife,{label:l,errors:o,hint:r.hint,forSingleList:s,noPadding:!0,disabled:u,rootClassName:qD(fGe.root,u&&fGe.disabled,!1!==r.required&&fGe.required,a&&fGe.error,s&&fGe["for-single-list"])},c.createElement("div",{ref:f,className:fGe.map,style:{height:d}}))};return n.displayName="MapControl",n},mGe=pGe(),gGe=()=>({name:"map",controlComponent:mGe,previewComponent:ELe,options:{schema:CLe}}),vGe=UD("TextArea",["root","input"]),OGe=(0,c.forwardRef)((({value:e,disabled:t,placeholder:n,rootClassName:r,inputClassName:i,"data-testid":o,onChange:a},s)=>{const[l,u]=(0,c.useState)(80),d=(0,c.useCallback)((()=>{const e=null==s?void 0:s.current;if(!e)return;const t=(n=e.style.height,Number(n.replace("px","")));var n;e.style.height="5px";let r=e.scrollHeight;r<80&&(r=80),t!==l&&t>=r?e.style.height=`${t}px`:(r>68&&(e.style.paddingBottom="12px",r+=12),e.style.height=`${r}px`,u(r))}),[l,s]);return(0,c.useLayoutEffect)((()=>{d()}),[]),c.createElement(L0,{multiline:!0,minRows:4,onInput:d,onChange:a,value:e,disabled:t,"data-testid":null!=o?o:"textarea-input",slotProps:{root:{className:qD(vGe.root,r)},input:{ref:s,placeholder:n,className:qD(vGe.input,i)}}})}));OGe.displayName="TextArea";const yGe=OGe,bGe=UD("WidgetMarkdown",["root","error","required","disabled","for-single-list","raw-editor","rich-editor","plate-editor-wrapper","plate-editor","controls"]),wGe=Symbol(),kGe=e=>!!e[wGe],xGe=e=>{var t,n;null==(n=(t=e[wGe]).c)||n.call(t)},_Ge=(e,t)=>{const n=e[wGe].o,r=t[wGe].o;return n===r||e===r||kGe(n)&&_Ge(n,t)},SGe=e=>{const t={o:e,c:null},n=new Promise((n=>{t.c=()=>{t.c=null,n()},e.then(t.c,t.c)}));return n[wGe]=t,n};var PGe=Object.defineProperty,EGe=Object.defineProperties,CGe=Object.getOwnPropertyDescriptors,TGe=Object.getOwnPropertySymbols,$Ge=Object.prototype.hasOwnProperty,QGe=Object.prototype.propertyIsEnumerable,RGe=(e,t,n)=>t in e?PGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const AGe=e=>"init"in e,jGe="r",DGe="w",MGe="c",IGe="s",zGe=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let i,o;if(i=new Set,o=new Set,e)for(const[n,r]of e){const e={v:r,r:0,d:new Map};Object.freeze(e),AGe(n)||console.warn("Found initial value for derived atom which can cause unexpected behavior",n),t.set(n,e)}const a=new WeakMap,s=new WeakMap,l=e=>{let t=s.get(e);return t||(t=new Map,s.set(e,t)),t},u=(e,n)=>{if(e){const t=l(e);let r=t.get(n);return r||(r=u(e.p,n),r&&("p"in r&&r.p.then((()=>t.delete(n))),t.set(n,r))),r}return t.get(n)},c=(e,n,i)=>{if(Object.freeze(i),e)l(e).set(n,i);else{const e=t.get(n);t.set(n,i),r.has(n)||r.set(n,e)}},d=(e,t=new Map,n)=>{if(!n)return t;const r=new Map;let i=!1;return n.forEach((n=>{var o;const a=(null==(o=u(e,n))?void 0:o.r)||0;r.set(n,a),t.get(n)!==a&&(i=!0)})),t.size!==r.size||i?r:t},f=(e,t,n,r,i)=>{const o=u(e,t);if(o){if(i&&(!("p"in o)||!_Ge(o.p,i)))return o;"p"in o&&xGe(o.p)}const a={v:n,r:(null==o?void 0:o.r)||0,d:d(e,null==o?void 0:o.d,r)};let s=!1;return o&&"v"in o&&Object.is(o.v,n)?a.d===o.d||a.d.size===o.d.size&&Array.from(a.d.keys()).every((e=>o.d.has(e)))||(s=!0,Promise.resolve().then((()=>{_(e)}))):(s=!0,++a.r,a.d.has(t)&&(a.d=new Map(a.d).set(t,a.r))),o&&!s?o:(c(e,t,a),a)},h=(e,t,n,r,i)=>{const o=u(e,t);if(o){if(i&&(!("p"in o)||!_Ge(o.p,i)))return o;"p"in o&&xGe(o.p)}const a={e:n,r:(null==o?void 0:o.r)||0,d:d(e,null==o?void 0:o.d,r)};return c(e,t,a),a},p=(e,t,n,r)=>{const i=u(e,t);if(i&&"p"in i){if(_Ge(i.p,n))return i;xGe(i.p)}((e,t,n)=>{let r=a.get(t);r||(r=new Map,a.set(t,r)),n.then((()=>{r.get(e)===n&&(r.delete(e),r.size||a.delete(t))})),r.set(e,n)})(e,t,n);const o={p:n,r:(null==i?void 0:i.r)||0,d:d(e,null==i?void 0:i.d,r)};return c(e,t,o),o},m=(e,t,n,r)=>{if(n instanceof Promise){const i=SGe(n.then((n=>{f(e,t,n,r,i)})).catch((n=>{if(n instanceof Promise)return kGe(n)?n.then((()=>{g(e,t,!0)})):n;h(e,t,n,r,i)})));return p(e,t,i,r)}return f(e,t,n,r)},g=(e,t,r)=>{if(!r){const r=u(e,t);if(r){if(r.r!==r.i&&"p"in r&&r.p[wGe].c)return r;if(r.d.forEach(((r,i)=>{if(i!==t)if(n.has(i)){const t=u(e,i);t&&t.r===t.i&&g(e,i)}else g(e,i)})),Array.from(r.d).every((([t,n])=>{const r=u(e,t);return r&&"v"in r&&r.r===n})))return r}}const i=new Set;try{const n=t.read((n=>{i.add(n);const r=n===t?u(e,n):g(e,n);if(r){if("e"in r)throw r.e;if("p"in r)throw r.p;return r.v}if(AGe(n))return n.init;throw new Error("no atom init")}));return m(e,t,n,i)}catch(n){if(n instanceof Promise){const r=SGe(n);return p(e,t,r,i)}return h(e,t,n,i)}},v=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),O=(e,t)=>{const r=n.get(t);null==r||r.t.forEach((n=>{n!==t&&(((e,t)=>{const n=u(e,t);if(n){const r=((e,t)=>EGe(e,CGe(t)))(((e,t)=>{for(var n in t||(t={}))$Ge.call(t,n)&&RGe(e,n,t[n]);if(TGe)for(var n of TGe(t))QGe.call(t,n)&&RGe(e,n,t[n]);return e})({},n),{i:n.r});c(e,t,r)}else console.warn("[Bug] could not invalidate non existing atom",t)})(e,n),O(e,n))}))},y=(e,t,n)=>{let r=!0;const i=(t,n)=>{const r=g(e,t);if("e"in r)throw r.e;if("p"in r){if(null==n?void 0:n.unstable_promise)return r.p.then((()=>i(t,n)));throw console.info("Reading pending atom state in write operation. We throw a promise for now.",t),r.p}if("v"in r)return r.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",t),new Error("no value found")},o=t.write(i,((n,i)=>{let o;if(n===t){if(!AGe(n))throw new Error("atom not writable");const t=(e=>{const t=new Set,n=a.get(e);return n&&(a.delete(e),n.forEach(((e,n)=>{xGe(e),t.add(n)}))),t})(n);t.forEach((t=>{t!==e&&m(t,n,i)})),u(e,n)!==m(e,n,i)&&O(e,n)}else o=y(e,n,i);return r||_(e),o}),n);return r=!1,e=void 0,o},b=(e,t,n)=>{const r=y(n,e,t);return _(n),r},w=(e,t)=>{const r={t:new Set(t&&[t]),l:new Set};if(n.set(e,r),o.add(e),g(void 0,e).d.forEach(((t,r)=>{const i=n.get(r);i?i.t.add(e):r!==e&&w(r,e)})),(e=>!!e.write)(e)&&e.onMount){const t=t=>b(e,t),n=e.onMount(t);n&&(r.u=n)}return r},k=e=>{var t;const r=null==(t=n.get(e))?void 0:t.u;r&&r(),n.delete(e),o.delete(e);const i=u(void 0,e);i?i.d.forEach(((t,r)=>{if(r!==e){const t=n.get(r);t&&(t.t.delete(e),v(r,t)&&k(r))}})):console.warn("[Bug] could not find atom state to unmount",e)},x=(e,t,r)=>{const i=new Set(t.d.keys());null==r||r.forEach(((t,r)=>{if(i.has(r))return void i.delete(r);const o=n.get(r);o&&(o.t.delete(e),v(r,o)&&k(r))})),i.forEach((t=>{const r=n.get(t);r?r.t.add(e):n.has(e)&&w(t,e)}))},_=e=>{if(e)l(e).forEach(((r,i)=>{if(r!==t.get(i)){const t=n.get(i);null==t||t.l.forEach((t=>t(e)))}}));else{for(;r.size;){const e=Array.from(r);r.clear(),e.forEach((([e,t])=>{const r=u(void 0,e);if(r&&r.d!==(null==t?void 0:t.d)&&x(e,r,null==t?void 0:t.d),t&&"i"in t&&r&&!("i"in r))return;const i=n.get(e);null==i||i.l.forEach((e=>e()))}))}i.forEach((e=>e()))}};return{[jGe]:(e,t)=>g(t,e),[DGe]:b,[MGe]:(e,n)=>{n&&(e=>{l(e).forEach(((e,n)=>{const r=t.get(n);(e.r>((null==r?void 0:r.r)||0)||"v"in e&&e.r===(null==r?void 0:r.r)&&e.d!==(null==r?void 0:r.d))&&(t.set(n,e),e.d!==(null==r?void 0:r.d)&&x(n,e,null==r?void 0:r.d))}))})(n),_(void 0)},[IGe]:(e,t)=>{const r=(e=>{let t=n.get(e);return t||(t=w(e)),t})(e).l;return r.add(t),()=>{r.delete(t),(e=>{const t=n.get(e);t&&v(e,t)&&k(e)})(e)}},h:(e,t)=>{for(const[n,r]of e)AGe(n)&&(m(t,n,r),O(t,n));_(t)},n:e=>(i.add(e),()=>{i.delete(e)}),l:()=>o.values(),a:e=>t.get(e),m:e=>n.get(e)}},WGe=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:zGe(e)}),NGe=new Map,LGe=e=>(NGe.has(e)||NGe.set(e,(0,c.createContext)(WGe())),NGe.get(e)),FGe=({children:e,initialValues:t,scope:n,unstable_createStore:r,unstable_enableVersionedWrite:i})=>{const[o,a]=(0,c.useState)({});(0,c.useEffect)((()=>{o&&(s.current.s[MGe](null,o),delete o.p)}),[o]);const s=(0,c.useRef)();s.current||(s.current=WGe(t,r),i&&(s.current.w=e=>{a((t=>{const n=t?{p:t}:{};return e(n),n}))}));const l=LGe(n);return(0,c.createElement)(l.Provider,{value:s.current},e)};let UGe=0;function XGe(e,t){const n="atom"+ ++UGe,r={toString:()=>n};return"function"==typeof e?r.read=e:(r.init=e,r.read=e=>e(r),r.write=(e,t,n)=>t(r,"function"==typeof n?n(e(r)):n)),t&&(r.write=t),r}function qGe(e,t){const n=LGe(t),{s:r}=(0,c.useContext)(n),i=(0,c.useCallback)((t=>{const n=r[jGe](e,t);if("e"in n)throw n.e;if("p"in n)throw n.p;if("v"in n)return n.v;throw new Error("no atom value")}),[r,e]),[[o,a,s],l]=(0,c.useReducer)((0,c.useCallback)(((t,n)=>{const r=i(n);return Object.is(t[1],r)&&t[2]===e?t:[n,r,e]}),[i,e]),void 0,(()=>{const t=void 0;return[t,i(t),e]}));return s!==e&&l(void 0),(0,c.useEffect)((()=>{const t=r[IGe](e,l);return l(void 0),t}),[r,e]),(0,c.useEffect)((()=>{r[MGe](e,o)})),(0,c.useDebugValue)(a),a}function BGe(e,t){const n=LGe(t),{s:r,w:i}=(0,c.useContext)(n),o=(0,c.useCallback)((t=>{if(!("write"in e))throw new Error("not writable atom");const n=n=>r[DGe](e,t,n);return i?i(n):n()}),[r,i,e]);return o}function VGe(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[qGe(e,t),BGe(e,t)]}let YGe=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function ZGe(){return ZGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t'),1):!t||e.some((function(e){return t.includes(e)}))||e.includes("*"))){var e,t,n=function(e,t){var n;void 0===t&&(t=!1),(!oHe(e,["input","textarea","select"])||oHe(e,null==f?void 0:f.enableOnFormTags))&&(null!=f&&null!=f.ignoreEventWhen&&f.ignoreEventWhen(e)||(null===i.current||document.activeElement===i.current||i.current.contains(document.activeElement)?(null==(n=e.target)||!n.isContentEditable||null!=f&&f.enableOnContentEditable)&&JGe(s,null==f?void 0:f.splitKey).forEach((function(n){var r,i=eHe(n,null==f?void 0:f.combinationKey);if(function(e,t,n){void 0===n&&(n=!1);var r=t.alt,i=t.meta,o=t.mod,a=t.shift,s=t.ctrl,l=t.keys,u=e.key,c=e.code,d=e.ctrlKey,f=e.metaKey,h=e.shiftKey,p=e.altKey,m=KGe(c),g=u.toLowerCase();if(!n){if(r===!p&&"alt"!==g)return!1;if(a===!h&&"shift"!==g)return!1;if(o){if(!f&&!d)return!1}else{if(i===!f&&"meta"!==g&&"os"!==g)return!1;if(s===!d&&"ctrl"!==g&&"control"!==g)return!1}}return!(!l||1!==l.length||!l.includes(g)&&!l.includes(m))||(l?function(e,t){return void 0===t&&(t=","),(nHe(e)?e:e.split(t)).every((function(e){return tHe.has(e.trim().toLowerCase())}))}(l):!l)}(e,i,null==f?void 0:f.ignoreModifiers)||null!=(r=i.keys)&&r.includes("*")){if(t&&o.current)return;if(function(e,t,n){("function"==typeof n&&n(e,t)||!0===n)&&e.preventDefault()}(e,i,null==f?void 0:f.preventDefault),!function(e,t,n){return"function"==typeof n?n(e,t):!0===n||void 0===n}(e,i,null==f?void 0:f.enabled))return void uHe(e);d.current(e,i),t||(o.current=!0)}})):uHe(e)))},r=function(e){void 0!==e.key&&(rHe(KGe(e.code)),(void 0===(null==f?void 0:f.keydown)&&!0!==(null==f?void 0:f.keyup)||null!=f&&f.keydown)&&n(e))},l=function(e){void 0!==e.key&&(iHe(KGe(e.code)),o.current=!1,null!=f&&f.keyup&&n(e,!0))},u=i.current||(null==a?void 0:a.document)||document;return u.addEventListener("keyup",l),u.addEventListener("keydown",r),p&&JGe(s,null==f?void 0:f.splitKey).forEach((function(e){return p.addHotkey(eHe(e,null==f?void 0:f.combinationKey,null==f?void 0:f.description))})),function(){u.removeEventListener("keyup",l),u.removeEventListener("keydown",r),p&&JGe(s,null==f?void 0:f.splitKey).forEach((function(e){return p.removeHotkey(eHe(e,null==f?void 0:f.combinationKey,null==f?void 0:f.description))}))}}}),[s,f,h]),i}const fHe=Symbol(),hHe=Symbol(),pHe="a",mHe="w";const gHe=Object.getPrototypeOf,vHe=new WeakMap,OHe=e=>"object"==typeof e&&null!==e,yHe=new WeakMap,bHe=e=>e[hHe]||e,wHe=(e,t,n)=>{if(!(r=e)||!(vHe.has(r)?vHe.get(r):gHe(r)===Object.prototype||gHe(r)===Array.prototype))return e;var r;const i=bHe(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(i);let a=n&&n.get(i);return a&&a[1].f===o||(a=((e,t)=>{const n={f:t};let r=!1;const i=(t,i)=>{if(!r){let r=n[pHe].get(e);if(r||(r={},n[pHe].set(e,r)),t===mHe)r[mHe]=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(i)}}},o={get:(t,r)=>r===hHe?e:(i("k",r),wHe(Reflect.get(t,r),n[pHe],n.c)),has:(t,o)=>o===fHe?(r=!0,n[pHe].delete(e),!0):(i("h",o),Reflect.has(t,o)),getOwnPropertyDescriptor:(e,t)=>(i("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(i(mHe),Reflect.ownKeys(e))};return t&&(o.set=o.deleteProperty=()=>!1),[o,n]})(i,o),a[1].p=((e,t)=>new Proxy(e,t))(o?(e=>{let t=yHe.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(gHe(e),n)}yHe.set(e,t)}return t})(i):i,a[0]),n&&n.set(i,a)),a[1][pHe]=t,a[1].c=n,a[1].p},kHe=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!OHe(e)||!OHe(t))return!0;const i=n.get(bHe(e));if(!i)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let o=null;try{for(const n of i.h||[])if(o=Reflect.has(e,n)!==Reflect.has(t,n),o)return o;if(!0===i[mHe]){if(o=((e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))})(e,t),o)return o}else for(const n of i.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n),o)return o;for(const a of i.k||[])if(o=kHe(e[a],t[a],n,r),o)return o;return null===o&&(o=!0),o}finally{r&&r.set(e,{n:t,g:o})}};__webpack_require__(48494);const xHe="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?c.useEffect:c.useLayoutEffect;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const _He=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};var SHe=Object.defineProperty,PHe=Object.getOwnPropertySymbols,EHe=Object.prototype.hasOwnProperty,CHe=Object.prototype.propertyIsEnumerable,THe=(e,t,n)=>t in e?SHe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$He=(e,t)=>{for(var n in t||(t={}))EHe.call(t,n)&&THe(e,n,t[n]);if(PHe)for(var n of PHe(t))CHe.call(t,n)&&THe(e,n,t[n]);return e};const QHe=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>QHe(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>QHe(t)(e)}}};function RHe(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?((e,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!o(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}const AHe=e=>({...e,extendSelectors:t=>AHe(((e,t)=>{const n={...t.use},r={...t.useTracked},i={...t.get};return Object.keys(e(t.store.getState(),t.get,t)).forEach((o=>{n[o]=(...n)=>t.useStore((r=>(0,e(r,t.get,t)[o])(...n))),r[o]=(...n)=>{const r=t.useTrackedStore();return(0,e(r,t.get,t)[o])(...n)},i[o]=(...n)=>(0,e(t.store.getState(),t.get,t)[o])(...n)})),{...t,get:i,use:n,useTracked:r}})(t,e)),extendActions:t=>AHe(((e,t)=>{const n=e(t.set,t.get,t);return{...t,set:{...t.set,...n}}})(t,e))}),jHe=e=>(t,n,r)=>{const i=(e,n)=>t(DR(e),!0,n);return r.setState=i,e(i,n,r)},DHe=e=>(t,n={})=>{var r;const{middlewares:i=[],devtools:o,persist:a,immer:s}=n;RR(null!==(r=null==s?void 0:s.enabledAutoFreeze)&&void 0!==r&&r),null!=s&&s.enableMapSet&&function(){function e(e,t){function n(){this.constructor=e}i(e,t),e.prototype=(n.prototype=t.prototype,new n)}function t(e){e.o||(e.R=new Map,e.o=new Map(e.t))}function n(e){e.o||(e.o=new Set,e.t.forEach((function(t){if(DQ(t)){var n=cR(e.A.h,t,e);e.p.set(t,n),e.o.add(n)}else e.o.add(t)})))}function r(e){e.g&&AQ(3,JSON.stringify(UQ(e)))}var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},o=function(){function n(e,t){return this[wR]={i:2,l:t,A:t?t.A:GQ(),P:!1,I:!1,o:void 0,R:void 0,t:e,k:this,C:!1,g:!1},this}e(n,Map);var i=n.prototype;return Object.defineProperty(i,"size",{get:function(){return UQ(this[wR]).size}}),i.has=function(e){return UQ(this[wR]).has(e)},i.set=function(e,n){var i=this[wR];return r(i),UQ(i).has(e)&&UQ(i).get(e)===n||(t(i),lR(i),i.R.set(e,!0),i.o.set(e,n),i.R.set(e,!0)),this},i.delete=function(e){if(!this.has(e))return!1;var n=this[wR];return r(n),t(n),lR(n),n.t.has(e)?n.R.set(e,!1):n.R.delete(e),n.o.delete(e),!0},i.clear=function(){var e=this[wR];r(e),UQ(e).size&&(t(e),lR(e),e.R=new Map,MQ(e.t,(function(t){e.R.set(t,!1)})),e.o.clear())},i.forEach=function(e,t){var n=this;UQ(this[wR]).forEach((function(r,i){e.call(t,n.get(i),i,n)}))},i.get=function(e){var n=this[wR];r(n);var i=UQ(n).get(e);if(n.I||!DQ(i))return i;if(i!==n.t.get(e))return i;var o=cR(n.A.h,i,n);return t(n),n.o.set(e,o),o},i.keys=function(){return UQ(this[wR]).keys()},i.values=function(){var e,t=this,n=this.keys();return(e={})[kR]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},i.entries=function(){var e,t=this,n=this.keys();return(e={})[kR]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},i[kR]=function(){return this.entries()},n}(),a=function(){function t(e,t){return this[wR]={i:3,l:t,A:t?t.A:GQ(),P:!1,I:!1,o:void 0,t:e,k:this,p:new Map,g:!1,C:!1},this}e(t,Set);var i=t.prototype;return Object.defineProperty(i,"size",{get:function(){return UQ(this[wR]).size}}),i.has=function(e){var t=this[wR];return r(t),t.o?!!t.o.has(e)||!(!t.p.has(e)||!t.o.has(t.p.get(e))):t.t.has(e)},i.add=function(e){var t=this[wR];return r(t),this.has(e)||(n(t),lR(t),t.o.add(e)),this},i.delete=function(e){if(!this.has(e))return!1;var t=this[wR];return r(t),n(t),lR(t),t.o.delete(e)||!!t.p.has(e)&&t.o.delete(t.p.get(e))},i.clear=function(){var e=this[wR];r(e),UQ(e).size&&(n(e),lR(e),e.o.clear())},i.values=function(){var e=this[wR];return r(e),n(e),e.o.values()},i.entries=function(){var e=this[wR];return r(e),n(e),e.o.entries()},i.keys=function(){return this.values()},i[kR]=function(){return this.values()},i.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},t}();ZQ("MapSet",{F:function(e,t){return new o(e,t)},T:function(e,t){return new a(e,t)}})}();const l=[jHe,...i];if(null!=a&&a.enabled){var u;const t={...a,name:null!==(u=a.name)&&void 0!==u?u:e};l.push((e=>((e,t)=>(n,r,i)=>{let o=$He({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>$He($He({},t),e)},t);(o.blacklist||o.whitelist)&&console.warn(`The ${o.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let u;try{u=o.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,i);u.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${o.name}' does not contain a 'removeItem' method, which will be required in v4.`);const c=QHe(o.serialize),d=()=>{const e=o.partialize($He({},r()));let t;o.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=o.whitelist)?void 0:n.includes(t))&&delete e[t]})),o.blacklist&&o.blacklist.forEach((t=>delete e[t]));const n=c({state:e,version:o.version}).then((e=>u.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=i.setState;i.setState=(e,t)=>{f(e,t),d()};const h=e(((...e)=>{n(...e),d()}),r,i);let p;const m=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return QHe(u.getItem.bind(u))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=o.merge(e,null!=(t=r())?t:h),n(p,!0),d()})).then((()=>{null==t||t(p,void 0),a=!0,l.forEach((e=>e(p)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{o=$He($He({},o),e),e.getStorage&&(u=e.getStorage())},clearStorage:()=>{var e;null==(e=null==u?void 0:u.removeItem)||e.call(u,o.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),p||h})(e,t)))}null!=o&&o.enabled&&l.push((t=>function(e,t){return(n,r,i)=>{var o;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let l;void 0!==(null==(o=null==s?void 0:s.serialize)?void 0:o.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{l=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);let u=Object.create(l.connect(s)),c=!1;Object.defineProperty(i,"devtools",{get:()=>(c||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),c=!0),u),set:e=>{c||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),c=!0),u=e}});let d=!1;Object.defineProperty(u,"prefix",{get:()=>(d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0),""),set:()=>{d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0)}});let f=!0;i.setState=(e,t,i)=>{n(e,t),f&&u.send(void 0===i?{type:s.anonymousActionType||"anonymous"}:"string"==typeof i?{type:i}:i,r())};const h=(...e)=>{const t=f;f=!1,n(...e),f=t},p=e(i.setState,r,i);if(u.init(p),i.dispatchFromDevtools&&"function"==typeof i.dispatch){let e=!1;const t=i.dispatch;i.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):_He(e.payload,(e=>{"__setState"!==e.type?i.dispatchFromDevtools&&"function"==typeof i.dispatch&&i.dispatch(e):h(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(p),u.init(i.getState());case"COMMIT":return u.init(i.getState());case"ROLLBACK":return _He(e.state,(e=>{h(e),u.init(i.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return _He(e.state,(e=>{h(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return h(r),void u.send(null,n)}case"PAUSE_RECORDING":return f=!f}return}})),p}}(t,{...o,name:e}))),l.push(RHe);const d=function(e,...t){return t.reduce(((e,t)=>t(e)),e)}((()=>t),...l),f=function(e){const t="function"==typeof e?function(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?((e,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!o(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,c.useReducer)((e=>e+1),0),i=t.getState(),o=(0,c.useRef)(i),a=(0,c.useRef)(e),s=(0,c.useRef)(n),l=(0,c.useRef)(!1),u=(0,c.useRef)();let d;void 0===u.current&&(u.current=e(i));let f=!1;(o.current!==i||a.current!==e||s.current!==n||l.current)&&(d=e(i),f=!n(u.current,d)),xHe((()=>{f&&(u.current=d),o.current=i,a.current=e,s.current=n,l.current=!1}));const h=(0,c.useRef)(i);xHe((()=>{const e=()=>{try{const e=t.getState(),n=a.current(e);s.current(u.current,n)||(o.current=e,u.current=n,r())}catch(e){l.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const p=f?d:u.current;return(0,c.useDebugValue)(p),p};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}(d),h=((e,t)=>{const n={};return Object.keys(e.getState()).forEach((r=>{n[r]=n=>{if(e.getState()[r]===n)return;const i=r.replace(/^\S/,(e=>e.toUpperCase()));e.setState((e=>{e[r]=n}),`@@${t}/set${i}`)}})),n})(f,e),p=(e=>{const t={};return Object.keys(e.getState()).forEach((n=>{t[n]=t=>e((e=>e[n]),t)})),t})(f),m=(e=>{const t={};return Object.keys(e.getState()).forEach((n=>{t[n]=()=>e.getState()[n]})),t})(f),g=(e=>()=>{const[,t]=(0,c.useReducer)((e=>e+1),0),n=new WeakMap,r=(0,c.useRef)(),i=(0,c.useRef)(),o=(0,c.useRef)();(0,c.useEffect)((()=>{r.current=n,i.current!==o.current&&kHe(i.current,o.current,n,new WeakMap)&&(i.current=o.current,t())}));const a=(0,c.useCallback)((e=>(o.current=e,i.current&&i.current!==e&&r.current&&!kHe(i.current,e,r.current,new WeakMap)?i.current:(i.current=e,e))),[]),s=e(a),l=(0,c.useMemo)((()=>new WeakMap),[]);return wHe(s,n,l)})(f),v=((e,t)=>{const n={};return Object.keys(e.getState()).forEach((e=>{n[e]=()=>t()[e]})),n})(f,g),O={get:{state:d.getState,...m},name:e,set:{state:(t,n)=>{d.setState(t,n||`@@${e}/setState`)},mergeState:(t,n)=>{d.setState((e=>{Object.assign(e,t)}),n||`@@${e}/mergeState`)},...h},store:d,use:p,useTracked:v,useStore:f,useTrackedStore:g,extendSelectors:()=>O,extendActions:()=>O};return AHe(O)};var MHe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function IHe(e,t){return e(t={exports:{}},t.exports),t.exports}var zHe="object"==typeof MHe&&MHe&&MHe.Object===Object&&MHe,WHe="object"==typeof self&&self&&self.Object===Object&&self,NHe=zHe||WHe||Function("return this")(),LHe=NHe.Symbol,FHe=Object.prototype,UHe=FHe.hasOwnProperty,XHe=FHe.toString,qHe=LHe?LHe.toStringTag:void 0,BHe=Object.prototype.toString,VHe=LHe?LHe.toStringTag:void 0,YHe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":VHe&&VHe in Object(e)?function(e){var t=UHe.call(e,qHe),n=e[qHe];try{e[qHe]=void 0;var r=!0}catch(e){}var i=XHe.call(e);return r&&(t?e[qHe]=n:delete e[qHe]),i}(e):function(e){return BHe.call(e)}(e)},ZHe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},GHe=NHe["__core-js_shared__"],HHe=function(){var e=/[^.]+$/.exec(GHe&&GHe.keys&&GHe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),KHe=Function.prototype.toString,JHe=function(e){if(null!=e){try{return KHe.call(e)}catch(e){}try{return e+""}catch(e){}}return""},eKe=/^\[object .+?Constructor\]$/,tKe=Function.prototype,nKe=Object.prototype,rKe=tKe.toString,iKe=nKe.hasOwnProperty,oKe=RegExp("^"+rKe.call(iKe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aKe=function(e){return!(!ZHe(e)||function(e){return!!HHe&&HHe in e}(e))&&(function(e){if(!ZHe(e))return!1;var t=YHe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?oKe:eKe).test(JHe(e))},sKe=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return aKe(n)?n:void 0};!function(){try{var e=sKe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var lKe,uKe=function(e){return null!=e&&"object"==typeof e},cKe=Object.prototype;cKe.hasOwnProperty,cKe.propertyIsEnumerable;lKe=function(){return arguments}(),uKe(lKe)&&YHe(lKe),Array.isArray;var dKe=function(){return!1};IHe((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?NHe.Buffer:void 0,o=(i?i.isBuffer:void 0)||dKe;e.exports=o}));var fKe={};fKe["[object Float32Array]"]=fKe["[object Float64Array]"]=fKe["[object Int8Array]"]=fKe["[object Int16Array]"]=fKe["[object Int32Array]"]=fKe["[object Uint8Array]"]=fKe["[object Uint8ClampedArray]"]=fKe["[object Uint16Array]"]=fKe["[object Uint32Array]"]=!0,fKe["[object Arguments]"]=fKe["[object Array]"]=fKe["[object ArrayBuffer]"]=fKe["[object Boolean]"]=fKe["[object DataView]"]=fKe["[object Date]"]=fKe["[object Error]"]=fKe["[object Function]"]=fKe["[object Map]"]=fKe["[object Number]"]=fKe["[object Object]"]=fKe["[object RegExp]"]=fKe["[object Set]"]=fKe["[object String]"]=fKe["[object WeakMap]"]=!1;var hKe=IHe((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&zHe.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),pKe=hKe&&hKe.isTypedArray;Object.prototype.hasOwnProperty,Object.prototype;Object.keys,Object.prototype.hasOwnProperty;var mKe=function(e,t){return e===t||e!=e&&t!=t},gKe=function(e,t){for(var n=e.length;n--;)if(mKe(e[n][0],t))return n;return-1},vKe=Array.prototype.splice;function OKe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},OKe.prototype.set=function(e,t){var n=this.__data__,r=gKe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var yKe=OKe,bKe=sKe(NHe,"Map"),wKe=sKe(Object,"create"),kKe=Object.prototype.hasOwnProperty,xKe=Object.prototype.hasOwnProperty;function _Ke(e){var t=-1,n=null==e?0:e.length;for(this.clear();++te&&e.nodeName!==t?JKe(e.parentElement,t):e,eJe=/^(?:\w+:)?\/\/(\S+)$/,tJe=/mailto:([^\\?]+)/,nJe=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,rJe=/^[^\s.]+\.\S{2,}$/,iJe=e=>{if("string"!=typeof e)return!1;const t=e.match(eJe),n=e.match(tJe),r=t||n;if(!r)return!1;const i=r[1];if(!i)return!1;try{new URL(e)}catch(e){return!1}return nJe.test(i)||rJe.test(i)},oJe=(e,{allowedSchemes:t,permitInvalid:n=!1})=>{if(!e)return null;let r=null;try{r=new URL(e)}catch(t){return n?e:null}return t&&!t.includes(r.protocol.slice(0,-1))?null:r.href},aJe=e=>{return!((e=>void 0===e)(t=e)||(e=>null===e)(t));var t};function sJe(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array&&(r=e.length)===t.length){for(;r--&&sJe(e[r],t[r]););return-1===r}if(n===Object){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(r in e)if(!(r in t)||!sJe(e[r],t[r]))return!1;return!0}}return e!=e&&t!=t}function lJe(e){const t=c.useRef([]);return sJe(e,t.current)||(t.current=e),t.current}function uJe(e,t){return c.useMemo(e,lJe(t))}function cJe(e){return"[object Object]"===Object.prototype.toString.call(e)}function dJe(e){var t,n;return!1!==cJe(e)&&(void 0===(t=e.constructor)||!1!==cJe(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var fJe={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=kJe.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},hJe={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=YJe.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},pJe={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=AJe.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},mJe=new WeakMap,gJe=new WeakMap,vJe=new WeakMap,OJe=new WeakMap,yJe=new WeakMap,bJe=new WeakMap,wJe=new WeakMap,kJe={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=kJe.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;rt[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return kJe.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return kJe.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return kJe.equals(r,i)&&oe.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===kJe.compare(e,t),isAncestor:(e,t)=>e.length-1===kJe.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===kJe.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===kJe.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===kJe.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===kJe.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&kJe.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!kJe.isAncestor(t,e)&&!kJe.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:o}=t;(kJe.equals(o,r)||kJe.endsBefore(o,r)||kJe.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(kJe.equals(a,r)||kJe.isAncestor(a,r))return null;kJe.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;kJe.equals(s,r)||kJe.endsBefore(s,r)?r[s.length-1]-=1:kJe.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(kJe.equals(u,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else kJe.endsBefore(u,r)?r[u.length-1]+=1:kJe.isAncestor(u,r)&&e[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:d,newPath:f}=t;if(kJe.equals(d,f))return r;if(kJe.isAncestor(d,r)||kJe.equals(d,r)){var h=f.slice();return kJe.endsBefore(d,f)&&d.length{switch(n.type){case"insert_node":var{path:r,node:i}=n,o=WJe.parent(e,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[s,l]of AJe.points(t))t[l]=YJe.transform(s,n);break;case"insert_text":var{path:u,offset:c,text:d}=n;if(0===d.length)break;var f=WJe.leaf(e,u),h=f.text.slice(0,c),p=f.text.slice(c);if(f.text=h+d+p,t)for(var[m,g]of AJe.points(t))t[g]=YJe.transform(m,n);break;case"merge_node":var{path:v}=n,O=WJe.get(e,v),y=kJe.previous(v),b=WJe.get(e,y),w=WJe.parent(e,v),k=v[v.length-1];if(n0e.isText(O)&&n0e.isText(b))b.text+=O.text;else{if(n0e.isText(O)||n0e.isText(b))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(GJe.stringify(O)," ").concat(GJe.stringify(b)));b.children.push(...O.children)}if(w.children.splice(k,1),t)for(var[x,_]of AJe.points(t))t[_]=YJe.transform(x,n);break;case"move_node":var{path:S,newPath:P}=n;if(kJe.isAncestor(S,P))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(P,"] because the destination is inside itself."));var E=WJe.get(e,S),C=WJe.parent(e,S),T=S[S.length-1];C.children.splice(T,1);var $=kJe.transform(S,n),Q=WJe.get(e,kJe.parent($)),R=$[$.length-1];if(Q.children.splice(R,0,E),t)for(var[A,j]of AJe.points(t))t[j]=YJe.transform(A,n);break;case"remove_node":var{path:D}=n,M=D[D.length-1];if(WJe.parent(e,D).children.splice(M,1),t)for(var[I,z]of AJe.points(t)){var W=YJe.transform(I,n);if(null!=t&&null!=W)t[z]=W;else{var N=void 0,L=void 0;for(var[F,U]of WJe.texts(e)){if(-1!==kJe.compare(U,D)){L=[F,U];break}N=[F,U]}var X=!1;N&&L&&(X=kJe.equals(L[1],D)?!kJe.hasPrevious(L[1]):kJe.common(N[1],D).length{for(var n in e){var r=e[n],i=t[n];if(dJe(r)&&dJe(i)){if(!TJe(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var QJe=["anchor","focus"];function RJe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var AJe={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return AJe.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=AJe.edges(e);return t},equals:(e,t)=>YJe.equals(e.anchor,t.anchor)&&YJe.equals(e.focus,t.focus),includes(e,t){if(AJe.isRange(t)){if(AJe.includes(e,t.anchor)||AJe.includes(e,t.focus))return!0;var[n,r]=AJe.edges(e),[i,o]=AJe.edges(t);return YJe.isBefore(n,i)&&YJe.isAfter(r,o)}var[a,s]=AJe.edges(e),l=!1,u=!1;return YJe.isPoint(t)?(l=YJe.compare(t,a)>=0,u=YJe.compare(t,s)<=0):(l=kJe.compare(t,a.path)>=0,u=kJe.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=$Je(e,QJe),[r,i]=AJe.edges(e),[o,a]=AJe.edges(t),s=YJe.isBefore(r,o)?o:r,l=YJe.isBefore(i,a)?i:a;return YJe.isBefore(l,s)?null:function(e){for(var t=1;t!AJe.isCollapsed(e),isForward:e=>!AJe.isBackward(e),isRange:e=>dJe(e)&&YJe.isPoint(e.anchor)&&YJe.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=AJe.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return QR(e,(e=>{if(null===e)return null;var r,i,{affinity:o="inward"}=n;if("inward"===o){var a=AJe.isCollapsed(e);AJe.isForward(e)?(r="forward",i=a?r:"backward"):(r="backward",i=a?r:"forward")}else"outward"===o?AJe.isForward(e)?(r="backward",i="forward"):(r="forward",i="backward"):(r=o,i=o);var s=YJe.transform(e.anchor,t,{affinity:r}),l=YJe.transform(e.focus,t,{affinity:i});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},jJe=e=>dJe(e)&&WJe.isNodeList(e.children)&&!XJe.isEditor(e),DJe={isAncestor:e=>dJe(e)&&WJe.isNodeList(e.children),isElement:jJe,isElementList:e=>Array.isArray(e)&&e.every((e=>DJe.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return jJe(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},MJe=["children"],IJe=["text"],zJe=new WeakMap,WJe={ancestor(e,t){var n=WJe.get(e,t);if(n0e.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(GJe.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of kJe.ancestors(t,n)){var i=[WJe.ancestor(e,r),r];yield i}},child(e,t){if(n0e.isText(e))throw new Error("Cannot get the child of a text node: ".concat(GJe.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(GJe.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,i=WJe.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of WJe.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of WJe.nodes(e,t))DJe.isElement(n)&&(yield[n,r])},extractProps:e=>DJe.isAncestor(e)?$Je(e,MJe):$Je(e,IJe),first(e,t){for(var n=t.slice(),r=WJe.get(e,n);r&&!n0e.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(n0e.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(GJe.stringify(e)));var n=QR({children:e.children},(e=>{var[n,r]=AJe.edges(t),i=WJe.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!AJe.includes(t,n)}});for(var[,o]of i){if(!AJe.includes(t,o)){var a=WJe.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(kJe.equals(o,r.path)){var l=WJe.leaf(e,o);l.text=l.text.slice(0,r.offset)}if(kJe.equals(o,n.path)){var u=WJe.leaf(e,o);u.text=u.text.slice(n.offset)}}XJe.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;rn0e.isText(e)||DJe.isElement(e)||XJe.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=zJe.get(e);if(void 0!==t)return t;var n=e.every((e=>WJe.isNode(e)));return zJe.set(e,n),n},last(e,t){for(var n=t.slice(),r=WJe.get(e,n);r&&!n0e.isText(r)&&0!==r.children.length;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=WJe.get(e,t);if(!n0e.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(GJe.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of kJe.levels(t,n)){var i=WJe.get(e,r);yield[i,r]}},matches:(e,t)=>DJe.isElement(e)&&DJe.isElementProps(t)&&DJe.matches(e,t)||n0e.isText(e)&&n0e.isTextProps(t)&&n0e.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],l=e;!o||!(r?kJe.isBefore(s,o):kJe.isAfter(s,o));)if(a.has(l)||(yield[l,s]),a.has(l)||n0e.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var u=kJe.next(s);if(WJe.has(e,u)){s=u,l=WJe.get(e,s);continue}}r&&0!==s[s.length-1]?(s=kJe.previous(s),l=WJe.get(e,s)):(s=kJe.parent(s),l=WJe.get(e,s),a.add(l))}else{a.add(l);var c=r?l.children.length-1:0;kJe.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),l=WJe.get(e,s)}},parent(e,t){var n=kJe.parent(t),r=WJe.get(e,n);if(n0e.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>n0e.isText(e)?e.text:e.children.map(WJe.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of WJe.nodes(e,t))n0e.isText(n)&&(yield[n,r])}};function NJe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LJe(e){for(var t=1;tFJe.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!dJe(e))return!1;switch(e.type){case"insert_node":case"remove_node":return kJe.isPath(e.path)&&WJe.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&kJe.isPath(e.path);case"merge_node":return"number"==typeof e.position&&kJe.isPath(e.path)&&dJe(e.properties);case"move_node":return kJe.isPath(e.path)&&kJe.isPath(e.newPath);case"set_node":return kJe.isPath(e.path)&&dJe(e.properties)&&dJe(e.newProperties);case"set_selection":return null===e.properties&&AJe.isRange(e.newProperties)||null===e.newProperties&&AJe.isRange(e.properties)||dJe(e.properties)&&dJe(e.newProperties);case"split_node":return kJe.isPath(e.path)&&"number"==typeof e.position&&dJe(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>FJe.isOperation(e))),isSelectionOperation:e=>FJe.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>FJe.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return LJe(LJe({},e),{},{type:"remove_node"});case"insert_text":return LJe(LJe({},e),{},{type:"remove_text"});case"merge_node":return LJe(LJe({},e),{},{type:"split_node",path:kJe.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(kJe.equals(t,n))return e;if(kJe.isSibling(n,t))return LJe(LJe({},e),{},{path:t,newPath:n});var r=kJe.transform(n,e),i=kJe.transform(kJe.next(n),e);return LJe(LJe({},e),{},{path:r,newPath:i});case"remove_node":return LJe(LJe({},e),{},{type:"insert_node"});case"remove_text":return LJe(LJe({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return LJe(LJe({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:l}=e;return LJe(LJe({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return LJe(LJe({},e),{},{type:"merge_node",path:kJe.next(e.path)})}}},UJe=new WeakMap,XJe={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>(e=>{var t=UJe.get(e);if(void 0!==t)return t;if(!dJe(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||dJe(e.marks))&&(null===e.selection||AJe.isRange(e.selection))&&WJe.isNodeList(e.children)&&FJe.isOperationList(e.operations);return UJe.set(e,n),n})(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)}},qJe=e=>Array.isArray(e)&&2===e.length&&e.every(kJe.isPath);function BJe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VJe(e){for(var t=1;tt.offset?1:0:n},isAfter:(e,t)=>1===YJe.compare(e,t),isBefore:(e,t)=>-1===YJe.compare(e,t),equals:(e,t)=>e.offset===t.offset&&kJe.equals(e.path,t.path),isPoint:e=>dJe(e)&&"number"==typeof e.offset&&kJe.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return QR(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=kJe.transform(i,t,n);break;case"insert_text":kJe.equals(t.path,i)&&(t.offsetJSON.stringify(e,ZJe)},HJe=["text"],KJe=["anchor","focus"];function JJe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function e0e(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function i(e){return $Je(e,HJe)}return TJe(r?i(e):e,r?i(t):t)},isText:e=>dJe(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>n0e.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[e0e({},e)];for(var r of t){var i=$Je(r,KJe),[o,a]=AJe.edges(r),s=[],l=0,u=o.offset,c=a.offset;for(var d of n){var{length:f}=d.text,h=l;if(l+=f,u<=h&&l<=c)Object.assign(d,i),s.push(d);else if(u!==c&&(u===l||c===h)||u>l||ch){var O=u-h;m=e0e(e0e({},p),{},{text:p.text.slice(0,O)}),p=e0e(e0e({},p),{},{text:p.text.slice(O)})}Object.assign(p,i),m&&s.push(m),s.push(p),g&&s.push(g)}}n=s}return n}},r0e=e=>e.selection?e.selection:e.children.length>0?XJe.end(e,[]):[0],i0e=(e,t)=>{var[n]=XJe.node(e,t);return e=>e===n},o0e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?d0e(e):e,i=t0e.None,o=t0e.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var c=x0e(l,u);if([i,o]=n?[o,c]:[c,i],_0e(i,t0e.ZWJ)&&_0e(o,t0e.ExtPict)&&!C0e(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(_0e(i,t0e.RI)&&_0e(o,t0e.RI)&&!(s=null!==s?!s:!!n||$0e(e.substring(0,e.length-a))))break;if(i!==t0e.None&&o!==t0e.None&&P0e(i,o))break;a+=l.length}return a||1},a0e=/\s/,s0e=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,l0e=/['\u2018\u2019]/,u0e=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},c0e=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(a0e.test(t))return!1;if(l0e.test(t)){var i=o0e(n,r),[o,a]=u0e(n,i,r);if(e(o,a,r))return!0}return!s0e.test(t)},d0e=function*(e){for(var t=e.length-1,n=0;ne>=55296&&e<=56319,h0e=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(t0e||(t0e={}));var p0e=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,m0e=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,g0e=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,v0e=/^[\u1100-\u115F\uA960-\uA97C]$/,O0e=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,y0e=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,b0e=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,w0e=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,k0e=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,x0e=(e,t)=>{var n=t0e.Any;return-1!==e.search(p0e)&&(n|=t0e.Extend),8205===t&&(n|=t0e.ZWJ),t>=127462&&t<=127487&&(n|=t0e.RI),-1!==e.search(m0e)&&(n|=t0e.Prepend),-1!==e.search(g0e)&&(n|=t0e.SpacingMark),-1!==e.search(v0e)&&(n|=t0e.L),-1!==e.search(O0e)&&(n|=t0e.V),-1!==e.search(y0e)&&(n|=t0e.T),-1!==e.search(b0e)&&(n|=t0e.LV),-1!==e.search(w0e)&&(n|=t0e.LVT),-1!==e.search(k0e)&&(n|=t0e.ExtPict),n};function _0e(e,t){return 0!=(e&t)}var S0e=[[t0e.L,t0e.L|t0e.V|t0e.LV|t0e.LVT],[t0e.LV|t0e.V,t0e.V|t0e.T],[t0e.LVT|t0e.T,t0e.T],[t0e.Any,t0e.Extend|t0e.ZWJ],[t0e.Any,t0e.SpacingMark],[t0e.Prepend,t0e.Any],[t0e.ZWJ,t0e.ExtPict],[t0e.RI,t0e.RI]];function P0e(e,t){return-1===S0e.findIndex((n=>_0e(e,n[0])&&_0e(t,n[1])))}var E0e=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,C0e=e=>-1!==e.search(E0e),T0e=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,$0e=e=>{var t=e.match(T0e);return null!==t&&t[0].length/2%2==1},Q0e={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};XJe.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=r0e(e)}=n;if(kJe.isPath(i)&&(i=XJe.range(e,i)),AJe.isRange(i))if(AJe.isCollapsed(i))i=i.anchor;else{var o=AJe.end(i);if(!r&&XJe.void(e,{at:o}))return;var a=AJe.start(i),s=XJe.pointRef(e,a),l=XJe.pointRef(e,o);j0e.delete(e,{at:i,voids:r});var u=s.unref(),c=l.unref();i=u||c,j0e.setSelection(e,{anchor:i,focus:i})}if(!(!r&&XJe.void(e,{at:i})||XJe.elementReadOnly(e,{at:i}))){var{path:d,offset:f}=i;t.length>0&&e.apply({type:"insert_text",path:d,offset:f,text:t})}}))}};function R0e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A0e(e){for(var t=1;t{if(DJe.isElement(t)){var n=t;return!!XJe.isVoid(e,t)||1===n.children.length&&J0e(e,n.children[0])}return!XJe.isEditor(t)};function e1e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t1e(e){for(var t=1;t{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var t=arguments.length,n=new Array(t),r=0;r{for(var n of XJe.pathRefs(e))fJe.transform(n,t);for(var r of XJe.pointRefs(e))hJe.transform(r,t);for(var i of XJe.rangeRefs(e))pJe.transform(i,t);var o,a,s=mJe.get(e)||[],l=gJe.get(e)||new Set,u=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),o.push(e))}};if(kJe.operationCanTransformPath(t))for(var c of(o=[],a=new Set,s))u(kJe.transform(c,t));else o=s,a=l;var d=e.getDirtyPaths(t);for(var f of d)u(f);mJe.set(e,o),gJe.set(e,a),j0e.transform(e,t),e.operations.push(t),XJe.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),vJe.get(e)||(vJe.set(e,!0),Promise.resolve().then((()=>{vJe.set(e,!1),e.onChange({operation:t}),e.operations=[]})))})(e,...n)},addMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:r}=e;if(r){var i=(t,n)=>{if(!n0e.isText(t))return!1;var[r,i]=XJe.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},o=AJe.isExpanded(r),a=!1;if(!o){var[s,l]=XJe.node(e,r);if(s&&i(s,l)){var[u]=XJe.parent(e,l);a=u&&e.markableVoid(u)}}if(o||a)j0e.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var c=M0e(M0e({},XJe.marks(e)||{}),{},{[t]:n});e.marks=c,vJe.get(e)||e.onChange()}}})(e,...n)},deleteBackward:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:n}=e;n&&AJe.isCollapsed(n)&&j0e.delete(e,{unit:t,reverse:!0})})(e,...n)},deleteForward:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:n}=e;n&&AJe.isCollapsed(n)&&j0e.delete(e,{unit:t})})(e,...n)},deleteFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e;n&&AJe.isExpanded(n)&&j0e.delete(e,{reverse:"backward"===t})}(e,...n)},getFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:t}=e;return t?WJe.fragment(e,t):[]})(e,...n)},insertBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r{j0e.splitNodes(e,{always:!0})})(e,...n)},insertSoftBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r{j0e.splitNodes(e,{always:!0})})(e,...n)},insertFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};XJe.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=r0e(e)}=n;if(t.length){if(AJe.isRange(o))if(r||(o=XJe.unhangRange(e,o,{voids:i})),AJe.isCollapsed(o))o=o.anchor;else{var[,a]=AJe.edges(o);if(!i&&XJe.void(e,{at:a}))return;var s=XJe.pointRef(e,a);j0e.delete(e,{at:o}),o=s.unref()}else kJe.isPath(o)&&(o=XJe.start(e,o));if(i||!XJe.void(e,{at:o})){var l=XJe.above(e,{at:o,match:t=>DJe.isElement(t)&&XJe.isInline(e,t),mode:"highest",voids:i});if(l){var[,u]=l;XJe.isEnd(e,o,u)?o=XJe.after(e,u):XJe.isStart(e,o,u)&&(o=XJe.before(e,u))}var c=XJe.above(e,{match:t=>DJe.isElement(t)&&XJe.isBlock(e,t),at:o,voids:i}),[,d]=c,f=XJe.isStart(e,o,d),h=XJe.isEnd(e,o,d),p=f&&h,m=!f||f&&h,g=!h,[,v]=WJe.first({children:t},[]),[,O]=WJe.last({children:t},[]),y=[],b=t=>{var[n,r]=t;return!(0===r.length||!p&&(m&&kJe.isAncestor(r,v)&&DJe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||g&&kJe.isAncestor(r,O)&&DJe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of WJe.nodes({children:t},{pass:b}))b(w)&&y.push(w);var k=[],x=[],_=[],S=!0,P=!1;for(var[E]of y)DJe.isElement(E)&&!e.isInline(E)?(S=!1,P=!0,x.push(E)):S?k.push(E):_.push(E);var[C]=XJe.nodes(e,{at:o,match:t=>n0e.isText(t)||XJe.isInline(e,t),mode:"highest",voids:i}),[,T]=C,$=XJe.isStart(e,o,T),Q=XJe.isEnd(e,o,T),R=XJe.pathRef(e,h&&!_.length?kJe.next(d):d),A=XJe.pathRef(e,Q?kJe.next(T):T);j0e.splitNodes(e,{at:o,match:t=>P?DJe.isElement(t)&&XJe.isBlock(e,t):n0e.isText(t)||XJe.isInline(e,t),mode:P?"lowest":"highest",always:P&&(!f||k.length>0)&&(!h||_.length>0),voids:i});var j,D=XJe.pathRef(e,!$||$&&Q?kJe.next(T):T);if(j0e.insertNodes(e,k,{at:D.current,match:t=>n0e.isText(t)||XJe.isInline(e,t),mode:"highest",voids:i}),p&&!k.length&&x.length&&!_.length&&j0e.delete(e,{at:d,voids:i}),j0e.insertNodes(e,x,{at:R.current,match:t=>DJe.isElement(t)&&XJe.isBlock(e,t),mode:"lowest",voids:i}),j0e.insertNodes(e,_,{at:A.current,match:t=>n0e.isText(t)||XJe.isInline(e,t),mode:"highest",voids:i}),!n.at&&(_.length>0&&A.current?j=kJe.previous(A.current):x.length>0&&R.current?j=kJe.previous(R.current):D.current&&(j=kJe.previous(D.current)),j)){var M=XJe.end(e,j);j0e.select(e,M)}D.unref(),R.unref(),A.unref()}}}))}(e,...n)},insertNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r{j0e.insertNodes(e,t,n)})(e,...n)},insertText:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{selection:r,marks:i}=e;if(r){if(i){var o=function(e){for(var t=1;t{var[n,r]=t;if(!n0e.isText(n))if(DJe.isElement(n)&&0===n.children.length)j0e.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var i=!XJe.isEditor(n)&&DJe.isElement(n)&&(e.isInline(n)||0===n.children.length||n0e.isText(n.children[0])||e.isInline(n.children[0])),o=0,a=0;a{var{selection:n}=e;if(n){var r=(t,n)=>{if(!n0e.isText(t))return!1;var[r,i]=XJe.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},i=AJe.isExpanded(n),o=!1;if(!i){var[a,s]=XJe.node(e,n);if(a&&r(a,s)){var[l]=XJe.parent(e,s);o=l&&e.markableVoid(l)}}if(i||o)j0e.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var u=function(e){for(var t=1;t{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:n}=t;return kJe.levels(n);case"insert_node":var{node:r,path:i}=t,o=kJe.levels(i),a=n0e.isText(r)?[]:Array.from(WJe.nodes(r),(e=>{var[,t]=e;return i.concat(t)}));return[...o,...a];case"merge_node":var{path:s}=t;return[...kJe.ancestors(s),kJe.previous(s)];case"move_node":var{path:l,newPath:u}=t;if(kJe.equals(l,u))return[];var c=[],d=[];for(var f of kJe.ancestors(l)){var h=kJe.transform(f,t);c.push(h)}for(var p of kJe.ancestors(u)){var m=kJe.transform(p,t);d.push(m)}var g=d[d.length-1],v=u[u.length-1],O=g.concat(v);return[...c,...d,O];case"remove_node":var{path:y}=t;return[...kJe.ancestors(y)];case"split_node":var{path:b}=t;return[...kJe.levels(b),kJe.next(b)];default:return[]}})(e,...n)},shouldNormalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{iteration:n,initialDirtyPathsLength:r}=t,i=42*r;if(n>i)throw new Error("Could not completely normalize the editor after ".concat(i," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0})(e,...n)},above:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(i){var a=XJe.path(e,i),s="lowest"===r;for(var[l,u]of XJe.levels(e,{at:a,voids:n,match:o,reverse:s}))if(!n0e.isText(l))if(AJe.isRange(i)){if(kJe.isAncestor(u,i.anchor.path)&&kJe.isAncestor(u,i.focus.path))return[l,u]}else if(!kJe.equals(a,u))return[l,u]}}(e,...n)},after:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:XJe.point(e,t,{edge:"end"}),focus:XJe.end(e,[])},{distance:o=1}=r,a=0;for(var s of XJe.positions(e,z0e(z0e({},r),{},{at:i}))){if(a>o)break;0!==a&&(n=s),a++}return n}(e,...n)},before:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:XJe.start(e,[]),focus:XJe.point(e,t,{edge:"start"})},{distance:o=1}=r,a=0;for(var s of XJe.positions(e,N0e(N0e({},r),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(n=s),a++}return n}(e,...n)},collapse:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)j0e.select(e,r.anchor);else if("focus"===n)j0e.select(e,r.focus);else if("start"===n){var[i]=AJe.edges(r);j0e.select(e,i)}else if("end"===n){var[,o]=AJe.edges(r);j0e.select(e,o)}}(e,...n)},delete:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};XJe.withoutNormalizing(e,(()=>{var n,r,{reverse:i=!1,unit:o="character",distance:a=1,voids:s=!1}=t,{at:l=e.selection,hanging:u=!1}=t;if(l){var c=!1;if(AJe.isRange(l)&&AJe.isCollapsed(l)&&(c=!0,l=l.anchor),YJe.isPoint(l)){var d=XJe.void(e,{at:l,mode:"highest"});if(!s&&d){var[,f]=d;l=f}else{var h={unit:o,distance:a};l={anchor:l,focus:i?XJe.before(e,l,h)||XJe.start(e,[]):XJe.after(e,l,h)||XJe.end(e,[])},u=!0}}if(kJe.isPath(l))j0e.removeNodes(e,{at:l,voids:s});else if(!AJe.isCollapsed(l)){if(!u){var[,p]=AJe.edges(l),m=XJe.end(e,[]);YJe.equals(p,m)||(l=XJe.unhangRange(e,l,{voids:s}))}var[g,v]=AJe.edges(l),O=XJe.above(e,{match:t=>DJe.isElement(t)&&XJe.isBlock(e,t),at:g,voids:s}),y=XJe.above(e,{match:t=>DJe.isElement(t)&&XJe.isBlock(e,t),at:v,voids:s}),b=O&&y&&!kJe.equals(O[1],y[1]),w=kJe.equals(g.path,v.path),k=s?null:null!==(n=XJe.void(e,{at:g,mode:"highest"}))&&void 0!==n?n:XJe.elementReadOnly(e,{at:g,mode:"highest"}),x=s?null:null!==(r=XJe.void(e,{at:v,mode:"highest"}))&&void 0!==r?r:XJe.elementReadOnly(e,{at:v,mode:"highest"});if(k){var _=XJe.before(e,g);_&&O&&kJe.isAncestor(O[1],_.path)&&(g=_)}if(x){var S=XJe.after(e,v);S&&y&&kJe.isAncestor(y[1],S.path)&&(v=S)}var P,E=[];for(var C of XJe.nodes(e,{at:l,voids:s})){var[T,$]=C;P&&0===kJe.compare($,P)||(!s&&DJe.isElement(T)&&(XJe.isVoid(e,T)||XJe.isElementReadOnly(e,T))||!kJe.isCommon($,g.path)&&!kJe.isCommon($,v.path))&&(E.push(C),P=$)}var Q=Array.from(E,(t=>{var[,n]=t;return XJe.pathRef(e,n)})),R=XJe.pointRef(e,g),A=XJe.pointRef(e,v),j="";if(!w&&!k){var D=R.current,[M]=XJe.leaf(e,D),{path:I}=D,{offset:z}=g,W=M.text.slice(z);W.length>0&&(e.apply({type:"remove_text",path:I,offset:z,text:W}),j=W)}if(Q.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>j0e.removeNodes(e,{at:t,voids:s}))),!x){var N=A.current,[L]=XJe.leaf(e,N),{path:F}=N,U=w?g.offset:0,X=L.text.slice(U,v.offset);X.length>0&&(e.apply({type:"remove_text",path:F,offset:U,text:X}),j=X)}!w&&b&&A.current&&R.current&&j0e.mergeNodes(e,{at:A.current,hanging:!0,voids:s}),c&&i&&"character"===o&&j.length>1&&j.match(/[\u0E00-\u0E7F]+/)&&j0e.insertText(e,j.slice(0,j.length-a));var q=R.unref(),B=A.unref(),V=i?q||B:B||q;null==t.at&&V&&j0e.select(e,V)}}}))}(e,...n)},deselect:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})})(e,...n)},edges:function(){for(var t=arguments.length,n=new Array(t),r=0;r[XJe.start(e,t),XJe.end(e,t)])(e,...n)},elementReadOnly:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return XJe.above(e,F0e(F0e({},t),{},{match:t=>DJe.isElement(t)&&XJe.isElementReadOnly(e,t)}))}(e,...n)},end:function(){for(var t=arguments.length,n=new Array(t),r=0;rXJe.point(e,t,{edge:"end"}))(e,...n)},first:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var n=XJe.path(e,t,{edge:"start"});return XJe.node(e,n)})(e,...n)},fragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var n=XJe.range(e,t);return WJe.fragment(e,n)})(e,...n)},getMarks:function(){for(var t=arguments.length,n=new Array(t),r=0;rDJe.isElement(t)&&XJe.isVoid(e,t)&&e.markableVoid(t)});if(!u){var c=XJe.above(e,{match:t=>DJe.isElement(t)&&XJe.isBlock(e,t)});if(l&&c){var[d,f]=l,[,h]=c;kJe.isAncestor(h,f)&&(s=d)}}}return $Je(s,V0e)}(e,...n)},hasBlocks:function(){for(var t=arguments.length,n=new Array(t),r=0;rt.children.some((t=>DJe.isElement(t)&&XJe.isBlock(e,t))))(e,...n)},hasInlines:function(){for(var t=arguments.length,n=new Array(t),r=0;rt.children.some((t=>n0e.isText(t)||XJe.isInline(e,t))))(e,...n)},hasPath:function(){for(var t=arguments.length,n=new Array(t),r=0;rWJe.has(e,t))(e,...n)},hasTexts:function(){for(var t=arguments.length,n=new Array(t),r=0;rt.children.every((e=>n0e.isText(e))))(e,...n)},insertNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};XJe.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:s,select:l}=n;if(WJe.isNode(t)&&(t=[t]),0!==t.length){var[u]=t;if(a||(a=r0e(e),l=!0),null==l&&(l=!1),AJe.isRange(a))if(r||(a=XJe.unhangRange(e,a,{voids:i})),AJe.isCollapsed(a))a=a.anchor;else{var[,c]=AJe.edges(a),d=XJe.pointRef(e,c);j0e.delete(e,{at:a}),a=d.unref()}if(YJe.isPoint(a)){null==s&&(s=n0e.isText(u)?e=>n0e.isText(e):e.isInline(u)?t=>n0e.isText(t)||XJe.isInline(e,t):t=>DJe.isElement(t)&&XJe.isBlock(e,t));var[f]=XJe.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!f)return;var[,h]=f,p=XJe.pathRef(e,h),m=XJe.isEnd(e,a,h);j0e.splitNodes(e,{at:a,match:s,mode:o,voids:i});var g=p.unref();a=m?kJe.next(g):g}var v=kJe.parent(a),O=a[a.length-1];if(i||!XJe.void(e,{at:v})){for(var y of t){var b=v.concat(O);O++,e.apply({type:"insert_node",path:b,node:y}),a=kJe.next(a)}if(a=kJe.previous(a),l){var w=XJe.end(e,a);w&&j0e.select(e,w)}}}}))}(e,...n)},isBlock:function(){for(var t=arguments.length,n=new Array(t),r=0;r!e.isInline(t))(e,...n)},isEdge:function(){for(var t=arguments.length,n=new Array(t),r=0;rXJe.isStart(e,t,n)||XJe.isEnd(e,t,n))(e,...n)},isEmpty:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&n0e.isText(r)&&""===r.text&&!e.isVoid(t)})(e,...n)},isEnd:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var r=XJe.end(e,n);return YJe.equals(t,r)})(e,...n)},isNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var t=OJe.get(e);return void 0===t||t})(e,...n)},isStart:function(){for(var t=arguments.length,n=new Array(t),r=0;r{if(0!==t.offset)return!1;var r=XJe.start(e,n);return YJe.equals(t,r)})(e,...n)},last:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var n=XJe.path(e,t,{edge:"end"});return XJe.node(e,n)})(e,...n)},leaf:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=XJe.path(e,t,n);return[WJe.leaf(e,r),r]}(e,...n)},levels:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),n){var a=[],s=XJe.path(e,n);for(var[l,u]of WJe.levels(e,s))if(o(l,u)&&(a.push([l,u]),!i&&DJe.isElement(l)&&XJe.isVoid(e,l)))break;r&&a.reverse(),yield*a}}(e,...n)},liftNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};XJe.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=kJe.isPath(n)?i0e(e,n):t=>DJe.isElement(t)&&XJe.isBlock(e,t)),n){var a=XJe.nodes(e,{at:n,match:o,mode:r,voids:i}),s=Array.from(a,(t=>{var[,n]=t;return XJe.pathRef(e,n)}));for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var c=XJe.node(e,kJe.parent(u)),[d,f]=c,h=u[u.length-1],{length:p}=d.children;if(1===p){var m=kJe.next(f);j0e.moveNodes(e,{at:u,to:m,voids:i}),j0e.removeNodes(e,{at:f,voids:i})}else if(0===h)j0e.moveNodes(e,{at:u,to:f,voids:i});else if(h===p-1){var g=kJe.next(f);j0e.moveNodes(e,{at:u,to:g,voids:i})}else{var v=kJe.next(u),O=kJe.next(f);j0e.splitNodes(e,{at:v,voids:i}),j0e.moveNodes(e,{at:u,to:O,voids:i})}}}}))}(e,...n)},mergeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};XJe.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(r){if(null==n)if(kJe.isPath(r)){var[s]=XJe.parent(e,r);n=e=>s.children.includes(e)}else n=t=>DJe.isElement(t)&&XJe.isBlock(e,t);if(!i&&AJe.isRange(r)&&(r=XJe.unhangRange(e,r,{voids:o})),AJe.isRange(r))if(AJe.isCollapsed(r))r=r.anchor;else{var[,l]=AJe.edges(r),u=XJe.pointRef(e,l);j0e.delete(e,{at:r}),r=u.unref(),null==t.at&&j0e.select(e,r)}var[c]=XJe.nodes(e,{at:r,match:n,voids:o,mode:a}),d=XJe.previous(e,{at:r,match:n,voids:o,mode:a});if(c&&d){var[f,h]=c,[p,m]=d;if(0!==h.length&&0!==m.length){var g,v,O=kJe.next(m),y=kJe.common(h,m),b=kJe.isSibling(h,m),w=Array.from(XJe.levels(e,{at:h}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),k=XJe.above(e,{at:h,mode:"highest",match:t=>w.includes(t)&&J0e(e,t)}),x=k&&XJe.pathRef(e,k[1]);if(n0e.isText(f)&&n0e.isText(p)){var _=$Je(f,H0e);v=p.text.length,g=_}else{if(!DJe.isElement(f)||!DJe.isElement(p))throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(GJe.stringify(f)," ").concat(GJe.stringify(p)));_=$Je(f,K0e),v=p.children.length,g=_}b||j0e.moveNodes(e,{at:h,to:O,voids:o}),x&&j0e.removeNodes(e,{at:x.current,voids:o}),DJe.isElement(p)&&XJe.isEmpty(e,p)||n0e.isText(p)&&""===p.text&&0!==m[m.length-1]?j0e.removeNodes(e,{at:m,voids:o}):e.apply({type:"merge_node",path:O,position:v,properties:g}),x&&x.unref()}}}}))}(e,...n)},move:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=AJe.isBackward(n)?"focus":"anchor"),"end"===a&&(a=AJe.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:i,ignoreNonSelectable:!0},c={};if(null==a||"anchor"===a){var d=o?XJe.before(e,s,u):XJe.after(e,s,u);d&&(c.anchor=d)}if(null==a||"focus"===a){var f=o?XJe.before(e,l,u):XJe.after(e,l,u);f&&(c.focus=f)}j0e.setSelection(e,c)}}(e,...n)},moveNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r{XJe.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){null==a&&(a=kJe.isPath(r)?i0e(e,r):t=>DJe.isElement(t)&&XJe.isBlock(e,t));var s=XJe.pathRef(e,n),l=XJe.nodes(e,{at:r,match:a,mode:i,voids:o}),u=Array.from(l,(t=>{var[,n]=t;return XJe.pathRef(e,n)}));for(var c of u){var d=c.unref(),f=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:f}),s.current&&kJe.isSibling(f,d)&&kJe.isAfter(f,d)&&(s.current=kJe.next(s.current))}s.unref()}}))})(e,...n)},next:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=XJe.after(e,o,{voids:r});if(a){var[,s]=XJe.last(e,[]),l=[a.path,s];if(kJe.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(kJe.isPath(o)){var[u]=XJe.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=XJe.nodes(e,{at:l,match:i,mode:n,voids:r});return c}}}(e,...n)},node:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=XJe.path(e,t,n);return[WJe.get(e,r),r]}(e,...n)},nodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1,ignoreNonSelectable:s=!1}=t,{match:l}=t;if(l||(l=()=>!0),n){var u,c;if(qJe(n))u=n[0],c=n[1];else{var d=XJe.path(e,n,{edge:"start"}),f=XJe.path(e,n,{edge:"end"});u=o?f:d,c=o?d:f}var h,p=WJe.nodes(e,{reverse:o,from:u,to:c,pass:t=>{var[n]=t;return!(!DJe.isElement(n)||(a||!XJe.isVoid(e,n)&&!XJe.isElementReadOnly(e,n))&&(!s||XJe.isSelectable(e,n)))}}),m=[];for(var[g,v]of p)if(!s||!DJe.isElement(g)||XJe.isSelectable(e,g)){var O=h&&0===kJe.compare(v,h[1]);if("highest"!==r||!O)if(l(g,v))if("lowest"===r&&O)h=[g,v];else{var y="lowest"===r?h:[g,v];y&&(i?m.push(y):yield y),h=[g,v]}else if(i&&!O&&n0e.isText(g))return}"lowest"===r&&h&&(i?m.push(h):yield h),i&&(yield*m)}}(e,...n)},normalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1,operation:r}=t,i=e=>mJe.get(e)||[],o=e=>{var t=i(e).pop(),n=t.join(",");return(e=>gJe.get(e)||new Set)(e).delete(n),t};if(XJe.isNormalizing(e)){if(n){var a=Array.from(WJe.nodes(e),(e=>{var[,t]=e;return t})),s=new Set(a.map((e=>e.join(","))));mJe.set(e,a),gJe.set(e,s)}0!==i(e).length&&XJe.withoutNormalizing(e,(()=>{for(var t of i(e))if(WJe.has(e,t)){var n=XJe.node(e,t),[a,s]=n;DJe.isElement(a)&&0===a.children.length&&e.normalizeNode(n,{operation:r})}for(var l=i(e),u=l.length,c=0;0!==l.length;){if(!e.shouldNormalize({dirtyPaths:l,iteration:c,initialDirtyPathsLength:u,operation:r}))return;var d=o(e);if(WJe.has(e,d)){var f=XJe.node(e,d);e.normalizeNode(f,{operation:r})}c++,l=i(e)}}))}}(e,...n)},parent:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=XJe.path(e,t,n),i=kJe.parent(r);return XJe.node(e,i)}(e,...n)},path:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:i}=n;if(kJe.isPath(t))if("start"===i){var[,o]=WJe.first(e,t);t=o}else if("end"===i){var[,a]=WJe.last(e,t);t=a}return AJe.isRange(t)&&(t="start"===i?AJe.start(t):"end"===i?AJe.end(t):kJe.common(t.anchor.path,t.focus.path)),YJe.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t}(e,...n)},pathRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return XJe.pathRefs(e).delete(i),i.current=null,t}};return XJe.pathRefs(e).add(i),i}(e,...n)},pathRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var t=yJe.get(e);return t||(t=new Set,yJe.set(e,t)),t})(e,...n)},point:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(kJe.isPath(t)){var i;if("end"===r){var[,o]=WJe.last(e,t);i=o}else{var[,a]=WJe.first(e,t);i=a}var s=WJe.get(e,i);if(!n0e.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:"end"===r?s.text.length:0}}if(AJe.isRange(t)){var[l,u]=AJe.edges(t);return"start"===r?l:u}return t}(e,...n)},pointRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return XJe.pointRefs(e).delete(i),i.current=null,t}};return XJe.pointRefs(e).add(i),i}(e,...n)},pointRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var t=bJe.get(e);return t||(t=new Set,bJe.set(e,t)),t})(e,...n)},positions:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1,ignoreNonSelectable:a=!1}=t;if(n){var s=XJe.range(e,n),[l,u]=AJe.edges(s),c=i?u:l,d=!1,f="",h=0,p=0,m=0;for(var[g,v]of XJe.nodes(e,{at:n,reverse:i,voids:o,ignoreNonSelectable:a})){if(DJe.isElement(g)){if(!o&&(e.isVoid(g)||e.isElementReadOnly(g))){yield XJe.start(e,v);continue}if(e.isInline(g))continue;if(XJe.hasInlines(e,g)){var O=kJe.isAncestor(v,u.path)?u:XJe.end(e,v),y=kJe.isAncestor(v,l.path)?l:XJe.start(e,v);f=XJe.string(e,{anchor:y,focus:O},{voids:o}),d=!0}}if(n0e.isText(g)){var b=kJe.equals(v,c.path);for(b?(p=i?c.offset:g.text.length-c.offset,m=c.offset):(p=g.text.length,m=i?p:0),(b||d||"offset"===r)&&(yield{path:v,offset:m},d=!1);;){if(0===h){if(""===f)break;h=w(f,r,i),f=u0e(f,h,i)[1]}if(m=i?m-h:m+h,(p-=h)<0){h=-p;break}h=0,yield{path:v,offset:m}}}}}function w(e,t,n){return"character"===t?o0e(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var i=o0e(e,t),[o,a]=u0e(e,i,t);if(c0e(o,a,t))r=!0,n+=i;else{if(r)break;n+=i}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}}(e,...n)},previous:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=XJe.before(e,o,{voids:r});if(a){var[,s]=XJe.first(e,[]),l=[a.path,s];if(kJe.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(kJe.isPath(o)){var[u]=XJe.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=XJe.nodes(e,{reverse:!0,at:l,match:i,mode:n,voids:r});return c}}}(e,...n)},range:function(){for(var t=arguments.length,n=new Array(t),r=0;rAJe.isRange(t)&&!n?t:{anchor:XJe.start(e,t),focus:XJe.end(e,n||t)})(e,...n)},rangeRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return XJe.rangeRefs(e).delete(i),i.current=null,t}};return XJe.rangeRefs(e).add(i),i}(e,...n)},rangeRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var t=wJe.get(e);return t||(t=new Set,wJe.set(e,t)),t})(e,...n)},removeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};XJe.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=kJe.isPath(o)?i0e(e,o):t=>DJe.isElement(t)&&XJe.isBlock(e,t)),!n&&AJe.isRange(o)&&(o=XJe.unhangRange(e,o,{voids:r}));var s=XJe.nodes(e,{at:o,match:a,mode:i,voids:r}),l=Array.from(s,(t=>{var[,n]=t;return XJe.pathRef(e,n)}));for(var u of l){var c=u.unref();if(c){var[d]=XJe.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))}(e,...n)},select:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:n}=e;if(t=XJe.range(e,t),n)j0e.setSelection(e,t);else{if(!AJe.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(GJe.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}})(e,...n)},setNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};XJe.withoutNormalizing(e,(()=>{var{match:r,at:i=e.selection,compare:o,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:u=!1,voids:c=!1}=n;if(i){if(null==r&&(r=kJe.isPath(i)?i0e(e,i):t=>DJe.isElement(t)&&XJe.isBlock(e,t)),!s&&AJe.isRange(i)&&(i=XJe.unhangRange(e,i,{voids:c})),u&&AJe.isRange(i)){if(AJe.isCollapsed(i)&&XJe.leaf(e,i.anchor)[0].text.length>0)return;var d=XJe.rangeRef(e,i,{affinity:"inward"}),[f,h]=AJe.edges(i),p="lowest"===l?"lowest":"highest",m=XJe.isEnd(e,h,h.path);j0e.splitNodes(e,{at:h,match:r,mode:p,voids:c,always:!m});var g=XJe.isStart(e,f,f.path);j0e.splitNodes(e,{at:f,match:r,mode:p,voids:c,always:!g}),i=d.unref(),null==n.at&&j0e.select(e,i)}for(var[v,O]of(o||(o=(e,t)=>e!==t),XJe.nodes(e,{at:i,match:r,mode:l,voids:c}))){var y={},b={};if(0!==O.length){var w=!1;for(var k in t)"children"!==k&&"text"!==k&&o(t[k],v[k])&&(w=!0,v.hasOwnProperty(k)&&(y[k]=v[k]),a?null!=t[k]&&(b[k]=a(v[k],t[k])):null!=t[k]&&(b[k]=t[k]));w&&e.apply({type:"set_node",path:O,properties:y,newProperties:b})}}}}))}(e,...n)},setNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r{OJe.set(e,t)})(e,...n)},setPoint:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){"start"===i&&(i=AJe.isBackward(r)?"focus":"anchor"),"end"===i&&(i=AJe.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,s="anchor"===i?o:a;j0e.setSelection(e,{["anchor"===i?"anchor":"focus"]:G0e(G0e({},s),t)})}}(e,...n)},setSelection:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:n}=e,r={},i={};if(n){for(var o in t)("anchor"===o&&null!=t.anchor&&!YJe.equals(t.anchor,n.anchor)||"focus"===o&&null!=t.focus&&!YJe.equals(t.focus,n.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}})(e,...n)},splitNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};XJe.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>DJe.isElement(t)&&XJe.isBlock(e,t)),AJe.isRange(o)&&(o=((e,t)=>{if(AJe.isCollapsed(t))return t.anchor;var[,n]=AJe.edges(t),r=XJe.pointRef(e,n);return j0e.delete(e,{at:t}),r.unref()})(e,o)),kJe.isPath(o)){var l=o,u=XJe.point(e,l),[c]=XJe.parent(e,l);i=e=>e===c,a=u.path.length-l.length+1,o=u,s=!0}if(o){var d,f=XJe.pointRef(e,o,{affinity:"backward"});try{var[h]=XJe.nodes(e,{at:o,match:i,mode:n,voids:r});if(!h)return;var p=XJe.void(e,{at:o,mode:"highest"});if(!r&&p){var[m,g]=p;if(DJe.isElement(m)&&e.isInline(m)){var v=XJe.after(e,g);if(!v){var O=kJe.next(g);j0e.insertNodes(e,{text:""},{at:O,voids:r}),v=XJe.point(e,O)}o=v,s=!0}a=o.path.length-g.length+1,s=!0}d=XJe.pointRef(e,o);var y=o.path.length-a,[,b]=h,w=o.path.slice(0,y),k=0===a?o.offset:o.path[y]+0;for(var[x,_]of XJe.levels(e,{at:w,reverse:!0,voids:r})){var S=!1;if(_.lengthXJe.point(e,t,{edge:"start"}))(e,...n)},string:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,i=XJe.range(e,t),[o,a]=AJe.edges(i),s="";for(var[l,u]of XJe.nodes(e,{at:i,match:n0e.isText,voids:r})){var c=l.text;kJe.equals(u,a.path)&&(c=c.slice(0,a.offset)),kJe.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s}(e,...n)},unhangRange:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[i,o]=AJe.edges(t);if(0!==i.offset||0!==o.offset||AJe.isCollapsed(t)||kJe.hasPrevious(o.path))return t;var a=XJe.above(e,{at:o,match:t=>DJe.isElement(t)&&XJe.isBlock(e,t),voids:r}),s=a?a[1]:[],l={anchor:XJe.start(e,i),focus:o},u=!0;for(var[c,d]of XJe.nodes(e,{at:l,match:n0e.isText,reverse:!0,voids:r}))if(u)u=!1;else if(""!==c.text||kJe.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}}(e,...n)},unsetNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;j0e.setNodes(e,r,n)}(e,...n)},unwrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};XJe.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=kJe.isPath(o)?i0e(e,o):t=>DJe.isElement(t)&&XJe.isBlock(e,t)),kJe.isPath(o)&&(o=XJe.range(e,o));var s=AJe.isRange(o)?XJe.rangeRef(e,o):null,l=XJe.nodes(e,{at:o,match:a,mode:n,voids:i}),u=Array.from(l,(t=>{var[,n]=t;return XJe.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[o]=XJe.node(e,n),a=XJe.range(e,n);r&&s&&(a=AJe.intersection(s.current,a)),j0e.liftNodes(e,{at:a,match:e=>DJe.isAncestor(o)&&o.children.includes(e),voids:i})};for(var d of u)c(d);s&&s.unref()}}))}(e,...n)},void:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return XJe.above(e,X0e(X0e({},t),{},{match:t=>DJe.isElement(t)&&XJe.isVoid(e,t)}))}(e,...n)},withoutNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var n=XJe.isNormalizing(e);XJe.setNormalizing(e,!1);try{t()}finally{XJe.setNormalizing(e,n)}XJe.normalize(e)})(e,...n)},wrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};XJe.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=kJe.isPath(s)?i0e(e,s):e.isInline(t)?t=>DJe.isElement(t)&&XJe.isInline(e,t)||n0e.isText(t):t=>DJe.isElement(t)&&XJe.isBlock(e,t)),i&&AJe.isRange(s)){var[l,u]=AJe.edges(s),c=XJe.rangeRef(e,s,{affinity:"inward"});j0e.splitNodes(e,{at:u,match:a,voids:o}),j0e.splitNodes(e,{at:l,match:a,voids:o}),s=c.unref(),null==n.at&&j0e.select(e,s)}var d=Array.from(XJe.nodes(e,{at:s,match:e.isInline(t)?t=>DJe.isElement(t)&&XJe.isBlock(e,t):e=>XJe.isEditor(e),mode:"lowest",voids:o}));for(var[,f]of d){var h=AJe.isRange(s)?AJe.intersection(s,XJe.range(e,f)):s;if(h){var p=Array.from(XJe.nodes(e,{at:h,match:a,mode:r,voids:o}));if(p.length>0){var m=function(){var[n]=p,r=p[p.length-1],[,i]=n,[,a]=r;if(0===i.length&&0===a.length)return"continue";var s=kJe.equals(i,a)?kJe.parent(i):kJe.common(i,a),l=XJe.range(e,i,a),u=XJe.node(e,s),[c]=u,d=s.length+1,f=kJe.next(a.slice(0,d)),h=t1e(t1e({},t),{},{children:[]});j0e.insertNodes(e,h,{at:f,voids:o}),j0e.moveNodes(e,{at:l,match:e=>DJe.isAncestor(c)&&c.children.includes(e),to:f.concat(0),voids:o})}();if("continue"===m)continue}}}}}))}(e,...n)}};return e},r1e=e=>dJe(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||FJe.isOperationList(e.redos[0].operations))&&(0===e.undos.length||FJe.isOperationList(e.undos[0].operations)),i1e=(new WeakMap,new WeakMap),o1e=new WeakMap,a1e={isHistoryEditor:e=>r1e(e.history)&&XJe.isEditor(e),isMerging:e=>o1e.get(e),isSaving:e=>i1e.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=a1e.isMerging(e);o1e.set(e,!1),t(),o1e.set(e,n)},withoutSaving(e,t){var n=a1e.isSaving(e);i1e.set(e,!1),t(),i1e.set(e,n)}};const s1e=()=>n1e(),l1e=(e,t,n)=>XJe.pathRef(e,t,n),u1e=(e,t,n)=>XJe.pointRef(e,t,n);var c1e=Array.isArray,d1e=function(){if(!arguments.length)return[];var e=arguments[0];return c1e(e)?e:[e]};const f1e=e=>DJe.isElement(e),h1e=(e,t)=>f1e(t)&&XJe.isBlock(e,t),p1e=(e,t,n)=>!n||("object"==typeof n?Object.entries(n).every((([t,n])=>d1e(n).includes(e[t]))):n(e,t)),m1e=(e,t={})=>{const{match:n,block:r}=t;return{...t,match:n||r?(t,i)=>p1e(t,i,n)&&(!r||h1e(e,t)):void 0}},g1e=(e,t)=>XJe.above(e,m1e(e,t)),v1e=(e,t,n={})=>{const{voids:r,unhang:i=!0}=n;return AJe.isRange(t)&&i?XJe.unhangRange(e,t,{voids:r}):t},O1e=(e,t)=>(v1e(e,null==t?void 0:t.at,t),XJe.nodes(e,m1e(e,t))),y1e=(e,t,n)=>{try{return XJe.parent(e,t,n)}catch(e){}},b1e=(e,t)=>XJe.previous(e,t),w1e=(e,t)=>XJe.isEmpty(e,t),k1e=(e,t)=>{let n=!1;return XJe.withoutNormalizing(e,(()=>{n=!!t()})),n},x1e=e=>n0e.isText(e),_1e=e=>!!x1e(e)||1===e.children.length&&_1e(e.children[0]),S1e=(e,t)=>{j0e.delete(e,t)},P1e=(e,t)=>j0e.moveNodes(e,t),E1e=(e,t)=>j0e.removeNodes(e,t),C1e=(e,t)=>{j0e.select(e,t)},T1e=(e,t)=>XJe.end(e,t),$1e=(e,t,n)=>XJe.leaf(e,t,n),Q1e=(e,t,n)=>XJe.after(e,t,n),R1e=(e,t,n)=>XJe.before(e,t,n),A1e=(e,t)=>XJe.start(e,t),j1e=(e,t)=>XJe.void(e,t),D1e=(e,t)=>f1e(t)&&XJe.isVoid(e,t),M1e=(e,t={})=>{k1e(e,(()=>{const{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t;let{at:a=e.selection,hanging:s=!1}=t;if(!a)return;if(AJe.isRange(a)&&AJe.isCollapsed(a)&&(a=a.anchor),YJe.isPoint(a)){const t=j1e(e,{at:a,mode:"highest"});if(!o&&t){const[,e]=t;a=e}else{const t={unit:r,distance:i};a={anchor:a,focus:n?R1e(e,a,t)||A1e(e,[]):Q1e(e,a,t)||T1e(e,[])},s=!0}}if(kJe.isPath(a))return void E1e(e,{at:a,voids:o});if(AJe.isCollapsed(a))return;s||(a=XJe.unhangRange(e,a,{voids:o}));let[l,u]=AJe.edges(a);const c=g1e(e,{match:t=>h1e(e,t),at:l,voids:o}),d=g1e(e,{match:t=>h1e(e,t),at:u,voids:o}),f=c&&d&&!kJe.equals(c[1],d[1]),h=kJe.equals(l.path,u.path),p=o?null:j1e(e,{at:l,mode:"highest"}),m=o?null:j1e(e,{at:u,mode:"highest"});if(p){const t=R1e(e,l);t&&c&&kJe.isAncestor(c[1],t.path)&&(l=t)}if(m){const t=Q1e(e,u);t&&d&&kJe.isAncestor(d[1],t.path)&&(u=t)}const g=[];let v;const O=O1e(e,{at:a,voids:o});for(const t of O){const[n,r]=t;v&&0===kJe.compare(r,v)||(!o&&D1e(e,n)||!kJe.isCommon(r,l.path)&&!kJe.isCommon(r,u.path))&&(g.push(t),v=r)}const y=Array.from(g,(([,t])=>l1e(e,t))),b=u1e(e,l),w=u1e(e,u);if(!h&&!p){const t=b.current,[n]=$1e(e,t),{path:r}=t,{offset:i}=l,o=n.text.slice(i);e.apply({type:"remove_text",path:r,offset:i,text:o})}for(const t of y){const n=t.unref();E1e(e,{at:n,voids:o})}if(!m){const t=w.current,[n]=$1e(e,t),{path:r}=t,i=h?l.offset:0,o=n.text.slice(i,u.offset);e.apply({type:"remove_text",path:r,offset:i,text:o})}!h&&f&&w.current&&b.current&&((e,t={})=>{k1e(e,(()=>{let{match:n,at:r=e.selection}=t;const{mergeNode:i,removeEmptyAncestor:o,hanging:a=!1,voids:s=!1,mode:l="lowest"}=t;if(!r)return;if(null==n)if(kJe.isPath(r)){const[t]=y1e(e,r);n=e=>t.children.includes(e)}else n=t=>h1e(e,t);if(!a&&AJe.isRange(r)&&(r=XJe.unhangRange(e,r)),AJe.isRange(r))if(AJe.isCollapsed(r))r=r.anchor;else{const[,n]=AJe.edges(r),i=u1e(e,n);S1e(e,{at:r}),r=i.unref(),null==t.at&&C1e(e,r)}const u=O1e(e,{at:r,match:n,voids:s,mode:l}),[c]=Array.from(u),d=b1e(e,{at:r,match:n,voids:s,mode:l});if(!c||!d)return;const[f,h]=c,[p,m]=d;if(0===h.length||0===m.length)return;const g=kJe.next(m),v=kJe.common(h,m),O=kJe.isSibling(h,m),y=XJe.levels(e,{at:h}),b=new Set(Array.from(y,(([e])=>e)).slice(v.length).slice(0,-1)),w=g1e(e,{at:h,mode:"highest",match:e=>b.has(e)&&f1e(e)&&_1e(e)}),k=w&&l1e(e,w[1]);let x,_;if(x1e(f)&&x1e(p)){const{text:e,...t}=f;_=p.text.length,x=t}else{if(!f1e(f)||!f1e(p))throw new Error(`Cannot merge the node at path [${h}] with the previous sibling because it is not the same kind: ${JSON.stringify(f)} ${JSON.stringify(p)}`);{const{children:e,...t}=f;_=p.children.length,x=t}}if(O||i||P1e(e,{at:h,to:g,voids:s}),k)if(o){const t=k.current;t&&o(e,{at:t})}else E1e(e,{at:k.current,voids:s});i?i(e,{at:h,to:g}):f1e(p)&&w1e(e,p)||x1e(p)&&""===p.text?E1e(e,{at:m,voids:s}):e.apply({type:"merge_node",path:g,position:_,properties:x}),k&&k.unref()}))})(e,{at:w.current,hanging:!0,voids:o});const k=w.unref()||b.unref();null==t.at&&k&&C1e(e,k)}))},I1e=(e,t)=>XJe.edges(e,t),z1e=(e,t,n)=>{if(!t)return"";try{return XJe.string(e,t,n)}catch(e){return""}},W1e=e=>XJe.marks(e),N1e=(e,t,n)=>{try{return XJe.node(e,t,n)}catch(e){}},L1e=(e,t,n)=>XJe.path(e,t,n),F1e=(e,t,n)=>XJe.point(e,t,n),U1e=(e,t,n)=>XJe.range(e,t,n),X1e=(e,t,n)=>!!t&&XJe.isEnd(e,t,n),q1e=(e,t)=>f1e(t)&&XJe.isInline(e,t),B1e=(e,t,n)=>!!t&&XJe.isStart(e,t,n),V1e=(e,t)=>XJe.normalize(e,t),Y1e=(e,t,n)=>WJe.common(e,t,n),Z1e=(e,t)=>{try{for(let n=0;nWJe.extractProps(e),H1e=e=>WJe.string(e),K1e=(e,t)=>WJe.nodes(e,t),J1e=(e,t)=>WJe.has(e,t),e2e=e=>DJe.isAncestor(e),t2e=e=>!!e&&AJe.isCollapsed(e),n2e=e=>!!e&&AJe.isExpanded(e),r2e=(e,t)=>{j0e.collapse(e,t)},i2e=(e,t,n)=>{if(null!=n&&n.nextBlock){const t=(null==n?void 0:n.at)||e.selection;if(t){const r=T1e(e,t),i=g1e(e,{at:r,block:!0});if(i){const e=kJe.next(i[1]);n.at=e}}}j0e.insertNodes(e,t,n)},o2e=(e,t,n)=>{j0e.insertText(e,t,n)},a2e=(e,t)=>{j0e.move(e,t)},s2e=(e,t,n)=>j0e.setNodes(e,t,n),l2e=(e,t)=>{j0e.setSelection(e,t)},u2e=(e,t)=>j0e.splitNodes(e,t),c2e=(e,t,n)=>j0e.unsetNodes(e,t,n),d2e=(e,t)=>{j0e.unwrapNodes(e,m1e(e,t))},f2e=(e,t,n)=>{v1e(e,null==n?void 0:n.at,n),j0e.wrapNodes(e,t,n)},h2e=(e,{filter:t,allow:n,exclude:r,level:i,maxLevel:o}={})=>{if(!e)return!1;const[a,s]=e;if(i&&!d1e(i).includes(s.length))return!1;if(o&&s.length>o)return!1;if(t&&!t(e))return!1;if(n){const e=d1e(n);if(e.length>0&&!e.includes(a.type))return!1}if(r){const e=d1e(r);if(e.length>0&&e.includes(a.type))return!1}return!0},p2e=(e,t={})=>{try{const n=O1e(e,{at:e.selection||[],...m1e(e,t)});for(const[e,t]of n)return[e,t]}catch(e){return}},m2e=(e,t)=>!!p2e(e,t),g2e=(e,t,n)=>s2e(e,t,n),v2e=(e,t)=>{let[n,r]=AJe.edges(t);if(!kJe.equals(n.path,r.path))if(0===r.offset){const t=Q1e(e,n);t&&(r=t)}else{const t=R1e(e,r);t&&(n=t)}return{anchor:n,focus:r}};var O2e=__webpack_require__(91587),y2e=__webpack_require__.n(O2e),b2e=__webpack_require__(52197),w2e=__webpack_require__.n(b2e);function k2e(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function x2e(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function _2e(e,t){if(e.clientHeightt||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0}var P2e=function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!k2e(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=e;k2e(h)&&l(h);){if((h=null==(c=(u=h).parentElement)?u.getRootNode().host||null:c)===d){f.push(h);break}null!=h&&h===document.body&&_2e(h)&&!_2e(document.documentElement)||null!=h&&_2e(h,s)&&f.push(h)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,O=e.getBoundingClientRect(),y=O.height,b=O.width,w=O.top,k=O.right,x=O.bottom,_=O.left,S="start"===i||"nearest"===i?w:"end"===i?x:w+y/2,P="center"===o?_+b/2:"end"===o?k:_,E=[],C=0;C=0&&_>=0&&x<=m&&k<=p&&w>=A&&x<=D&&_>=M&&k<=j)return E;var I=getComputedStyle(T),z=parseInt(I.borderLeftWidth,10),W=parseInt(I.borderTopWidth,10),N=parseInt(I.borderRightWidth,10),L=parseInt(I.borderBottomWidth,10),F=0,U=0,X="offsetWidth"in T?T.offsetWidth-T.clientWidth-z-N:0,q="offsetHeight"in T?T.offsetHeight-T.clientHeight-W-L:0,B="offsetWidth"in T?0===T.offsetWidth?0:R/T.offsetWidth:0,V="offsetHeight"in T?0===T.offsetHeight?0:Q/T.offsetHeight:0;if(d===T)F="start"===i?S:"end"===i?S-m:"nearest"===i?S2e(v,v+m,m,W,L,v+S,v+S+y,y):S-m/2,U="start"===o?P:"center"===o?P-p/2:"end"===o?P-p:S2e(g,g+p,p,z,N,g+P,g+P+b,b),F=Math.max(0,F+v),U=Math.max(0,U+g);else{F="start"===i?S-A-W:"end"===i?S-D+L+q:"nearest"===i?S2e(A,D,Q,W,L+q,S,S+y,y):S-(A+Q/2)+q/2,U="start"===o?P-M-z:"center"===o?P-(M+R/2)+X/2:"end"===o?P-j+N+X:S2e(M,j,R,z,N+X,P,P+b,b);var Y=T.scrollLeft,Z=T.scrollTop;S+=Z-(F=Math.max(0,Math.min(Z+F/V,T.scrollHeight-Q/V+q))),P+=Y-(U=Math.max(0,Math.min(Y+U/B,T.scrollWidth-R/B+X)))}E.push({el:T,top:F,left:U})}return E};function E2e(e){return e===Object(e)&&0!==Object.keys(e).length}var C2e,T2e=[],$2e="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(C2e||(C2e={}));var Q2e,R2e=function(e){return Object.freeze(e)},A2e=function(e,t){this.inlineSize=e,this.blockSize=t,R2e(this)},j2e=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,R2e(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),D2e=function(e){return e instanceof SVGElement&&"getBBox"in e},M2e=function(e){if(D2e(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},I2e=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},z2e="undefined"!=typeof window?window:{},W2e=new WeakMap,N2e=/auto|scroll/,L2e=/^tb|vertical/,F2e=/msie|trident/i.test(z2e.navigator&&z2e.navigator.userAgent),U2e=function(e){return parseFloat(e||"0")},X2e=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new A2e((n?t:e)||0,(n?e:t)||0)},q2e=R2e({devicePixelContentBoxSize:X2e(),borderBoxSize:X2e(),contentBoxSize:X2e(),contentRect:new j2e(0,0,0,0)}),B2e=function(e,t){if(void 0===t&&(t=!1),W2e.has(e)&&!t)return W2e.get(e);if(M2e(e))return W2e.set(e,q2e),q2e;var n=getComputedStyle(e),r=D2e(e)&&e.ownerSVGElement&&e.getBBox(),i=!F2e&&"border-box"===n.boxSizing,o=L2e.test(n.writingMode||""),a=!r&&N2e.test(n.overflowY||""),s=!r&&N2e.test(n.overflowX||""),l=r?0:U2e(n.paddingTop),u=r?0:U2e(n.paddingRight),c=r?0:U2e(n.paddingBottom),d=r?0:U2e(n.paddingLeft),f=r?0:U2e(n.borderTopWidth),h=r?0:U2e(n.borderRightWidth),p=r?0:U2e(n.borderBottomWidth),m=d+u,g=l+c,v=(r?0:U2e(n.borderLeftWidth))+h,O=f+p,y=s?e.offsetHeight-O-e.clientHeight:0,b=a?e.offsetWidth-v-e.clientWidth:0,w=i?m+v:0,k=i?g+O:0,x=r?r.width:U2e(n.width)-w-b,_=r?r.height:U2e(n.height)-k-y,S=x+m+b+v,P=_+g+y+O,E=R2e({devicePixelContentBoxSize:X2e(Math.round(x*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:X2e(S,P,o),contentBoxSize:X2e(x,_,o),contentRect:new j2e(d,l,x,_)});return W2e.set(e,E),E},V2e=function(e,t,n){var r=B2e(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case C2e.DEVICE_PIXEL_CONTENT_BOX:return a;case C2e.BORDER_BOX:return i;default:return o}},Y2e=function(e){var t=B2e(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=R2e([t.borderBoxSize]),this.contentBoxSize=R2e([t.contentBoxSize]),this.devicePixelContentBoxSize=R2e([t.devicePixelContentBoxSize])},Z2e=function(e){if(M2e(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},G2e=function(){var e=1/0,t=[];T2e.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Y2e(t.target),i=Z2e(t.target);r.push(n),t.lastReportedSize=V2e(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},K2e=[],J2e=0,e3e={attributes:!0,characterData:!0,childList:!0,subtree:!0},t3e=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],n3e=function(e){return void 0===e&&(e=0),Date.now()+e},r3e=!1,i3e=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!r3e){r3e=!0;var n,r=n3e(e);n=function(){var n=!1;try{n=function(){var e,t=0;for(H2e(t);T2e.some((function(e){return e.activeTargets.length>0}));)t=G2e(),H2e(t);return T2e.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:$2e}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=$2e),window.dispatchEvent(e)),t>0}()}finally{if(r3e=!1,e=r-n3e(),!J2e)return;n?t.run(1e3):e>0?t.run(e):t.start()}},function(e){if(!Q2e){var t=0,n=document.createTextNode("");new MutationObserver((function(){return K2e.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Q2e=function(){n.textContent="".concat(t?t--:t++)}}K2e.push(e),Q2e()}((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,e3e)};document.body?t():z2e.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),t3e.forEach((function(t){return z2e.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),t3e.forEach((function(t){return z2e.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}(),o3e=new i3e,a3e=function(e){!J2e&&e>0&&o3e.start(),!(J2e+=e)&&o3e.stop()},s3e=function(){function e(e,t){this.target=e,this.observedBox=t||C2e.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=V2e(this.target,this.observedBox,!0);return e=this.target,D2e(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),l3e=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},u3e=new WeakMap,c3e=function(e,t){for(var n=0;n=0&&(i&&T2e.splice(T2e.indexOf(n),1),n.observationTargets.splice(r,1),a3e(-1))},e.disconnect=function(e){var t=this,n=u3e.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),f3e=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");d3e.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I2e(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");d3e.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I2e(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");d3e.unobserve(this,e)},e.prototype.disconnect=function(){d3e.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),h3e=__webpack_require__(49216);function p3e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m3e(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var g3e=(0,c.createContext)(null),v3e=()=>{var e=(0,c.useContext)(g3e);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the component's context.");return e},O3e=parseInt(c.version.split(".")[0],10),y3e="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,b3e="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),w3e="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),k3e="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),x3e="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),_3e="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),S3e="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),P3e="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),E3e=w3e&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),C3e="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),T3e="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),$3e="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Q3e=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),R3e=(!P3e||!E3e)&&!_3e&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,A3e=new WeakMap,j3e=new WeakMap,D3e=new WeakMap,M3e=new WeakMap,I3e=new WeakMap,z3e=new WeakMap,W3e=new WeakMap,N3e=new WeakMap,L3e=new WeakMap,F3e=new WeakMap,U3e=new WeakMap,X3e=new WeakMap,q3e=new WeakMap,B3e=new WeakMap,V3e=new WeakMap,Y3e=new WeakMap,Z3e=new WeakMap,G3e=new WeakMap,H3e=new WeakMap,K3e=new WeakMap,J3e=new WeakMap,e4e=Symbol("placeholder"),t4e=Symbol("mark-placeholder"),n4e=globalThis.Text,r4e=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,i4e=e=>o4e(e)&&1===e.nodeType,o4e=e=>{var t=r4e(e);return!!t&&e instanceof t.Node},a4e=e=>{var t=e&&e.anchorNode&&r4e(e.anchorNode);return!!t&&e instanceof t.Selection},s4e=e=>o4e(e)&&3===e.nodeType,l4e=(e,t,n)=>{for(var r,{childNodes:i}=e,o=i[t],a=t,s=!1,l=!1;(o4e(r=o)&&8===r.nodeType||i4e(o)&&0===o.childNodes.length||i4e(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!l);)a>=i.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(o=i[a],t=a,a+="forward"===n?1:-1);return[o,t]},u4e=(e,t,n)=>{var[r]=l4e(e,t,n);return r},c4e=e=>{var t="";if(s4e(e)&&e.nodeValue)return e.nodeValue;if(i4e(e)){for(var n of Array.from(e.childNodes))t+=c4e(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},d4e=/data-slate-fragment="(.+?)"/m,f4e=(e,t,n)=>{var{target:r}=t;if(i4e(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:i}=m4e.getWindow(e);if(i.contains(r))return m4e.hasDOMNode(e,r,{editable:!0});var o=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var i of t)if(i===r||i.contains(r))return!0;for(var o of n)if(o===r||o.contains(r))return!0}));return!(!o||o===t)&&f4e(e,o,n)},h4e=0;class p4e{constructor(){this.id="".concat(h4e++)}}var m4e={androidPendingDiffs:e=>G3e.get(e),androidScheduleFlush:e=>{var t;null===(t=V3e.get(e))||void 0===t||t()},blur:e=>{var t=m4e.toDOMNode(e,e),n=m4e.findDocumentOrShadowRoot(e);U3e.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=m4e.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&j0e.deselect(e)},findDocumentOrShadowRoot:e=>{var t=m4e.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:i}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o,a=m4e.toSlateNode(e,t.target),s=m4e.findPath(e,a);if(DJe.isElement(a)&&XJe.isVoid(e,a)){var l=i.getBoundingClientRect(),u=e.isInline(a)?n-l.left{var n=N3e.get(t);return n||(n=new p4e,N3e.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var i=j3e.get(r);if(null==i){if(XJe.isEditor(r))return n;break}var o=A3e.get(r);if(null==o)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: ".concat(GJe.stringify(t)))},focus:e=>{var t=m4e.toDOMNode(e,e),n=m4e.findDocumentOrShadowRoot(e);U3e.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},getWindow:e=>{var t=D3e.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=r,o=m4e.toDOMNode(e,e);try{n=i4e(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==o||i&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==o)&&!n.getAttribute("data-slate-zero-width"))},hasEditableTarget:(e,t)=>o4e(t)&&m4e.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return XJe.hasPath(e,n.path)&&XJe.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>m4e.hasEditableTarget(e,t)||m4e.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>o4e(t)&&m4e.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!X3e.get(e),isFocused:e=>!!U3e.get(e),isReadOnly:e=>!!F3e.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(F3e.get(e))return!1;var n=m4e.hasTarget(e,t)&&m4e.toSlateNode(e,t);return DJe.isElement(n)&&XJe.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=L3e.get(e),r=XJe.isEditor(t)?M3e.get(e):null==n?void 0:n.get(m4e.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(GJe.stringify(t)));return r},toDOMPoint:(e,t)=>{var n,[r]=XJe.node(e,t.path),i=m4e.toDOMNode(e,r);XJe.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s{var{anchor:n,focus:r}=t,i=AJe.isBackward(t),o=m4e.toDOMPoint(e,n),a=AJe.isCollapsed(t)?o:m4e.toDOMPoint(e,r),s=m4e.getWindow(e).document.createRange(),[l,u]=i?a:o,[c,d]=i?o:a,f=!!(i4e(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(i4e(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,f?1:u),s.setEnd(c,h?1:d),s},toSlateNode:(e,t)=>{var n=i4e(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?z3e.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:i}=n,[o,a]=r?t:(e=>{var[t,n]=e;if(i4e(t)&&t.childNodes.length){var r=n===t.childNodes.length,i=r?n-1:n;for([t,i]=l4e(t,i,r?"backward":"forward"),r=i{w3e&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),u=O.textContent.length,g=l}}else if(p){for(var y=p.querySelectorAll("[data-slate-leaf]"),b=0;b{u-=e.textContent.length}))):u=1}g&&u===g.textContent.length&&w3e&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(c=g.textContent)&&void 0!==c&&c.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||k3e&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&u--}if(w3e&&!l&&!r){var k=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(k&&m4e.hasDOMNode(e,k,{editable:!0})){var x=m4e.toSlateNode(e,k),{path:_,offset:S}=XJe.start(e,m4e.findPath(e,x));return k.querySelector("[data-slate-leaf]")||(S=a),{path:_,offset:S}}}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var P=m4e.toSlateNode(e,l);return{path:m4e.findPath(e,P),offset:u}},toSlateRange:(e,t,n)=>{var r,i,o,a,s,l,{exactMatch:u,suppressThrow:c}=n;if(a4e(t)?t.anchorNode:t.startContainer)if(a4e(t)){if(k3e&&t.rangeCount>1){o=t.focusNode;var d=t.getRangeAt(0),f=t.getRangeAt(t.rangeCount-1);if(o instanceof HTMLTableRowElement&&d.startContainer instanceof HTMLTableRowElement&&f.startContainer instanceof HTMLTableRowElement){function b(e){return e.childElementCount>0?b(e.children[0]):e}var h=d.startContainer,p=f.startContainer,m=b(h.children[d.startOffset]),g=b(p.children[f.startOffset]);a=0,r=g.childNodes.length>0?g.childNodes[0]:g,o=m.childNodes.length>0?m.childNodes[0]:m,i=g instanceof HTMLElement?g.innerHTML.length:0}else d.startContainer===o?(r=f.endContainer,i=f.endOffset,a=d.startOffset):(r=d.startContainer,i=d.endOffset,a=f.startOffset)}else r=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset;s=S3e&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(r)||k3e?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed}else r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed;if(null==r||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));"getAttribute"in o&&"false"===o.getAttribute("contenteditable")&&"true"!==o.getAttribute("data-slate-void")&&(o=r,a=(null===(l=r.textContent)||void 0===l?void 0:l.length)||0);var v=m4e.toSlatePoint(e,[r,i],{exactMatch:u,suppressThrow:c});if(!v)return null;var O=s?v:m4e.toSlatePoint(e,[o,a],{exactMatch:u,suppressThrow:c});if(!O)return null;var y={anchor:v,focus:O};return AJe.isExpanded(y)&&AJe.isForward(y)&&i4e(o)&&XJe.void(e,{at:y.focus,mode:"highest"})&&(y=XJe.unhangRange(e,y,{voids:!0})),y}};function g4e(e,t){var{path:n,diff:r}=t;if(!XJe.hasPath(e,n))return!1;var i=WJe.get(e,n);if(!n0e.isText(i))return!1;if(r.start!==i.text.length||0===r.text.length)return i.text.slice(r.start,r.start+r.text.length)===r.text;var o=kJe.next(n);if(!XJe.hasPath(e,o))return!1;var a=WJe.get(e,o);return n0e.isText(a)&&a.text.startsWith(r.text)}function v4e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.slice(0,t.start)+t.text+e.slice(t.end)),e)}function O4e(e,t){var{start:n,end:r,text:i}=t,o=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;rDJe.isElement(t)&&XJe.isBlock(e,t),at:n});if(!o)return null;for(;r>i.text.length;){var a=XJe.next(e,{at:n,match:n0e.isText});if(!a||!kJe.isDescendant(a[1],o[1]))return null;r-=i.text.length,i=a[0],n=a[1]}return{path:n,offset:r}}function w4e(e,t){var n=b4e(e,t.anchor);if(!n)return null;if(AJe.isCollapsed(t))return{anchor:n,focus:n};var r=b4e(e,t.focus);return r?{anchor:n,focus:r}:null}function k4e(e,t,n){var r=G3e.get(e),i=null==r?void 0:r.find((e=>{var{path:n}=e;return kJe.equals(n,t.path)}));if(!i||t.offset<=i.diff.start)return YJe.transform(t,n,{affinity:"backward"});var{diff:o}=i;if(t.offset<=o.start+o.text.length){var a={path:t.path,offset:o.start},s=YJe.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-o.start}:null}var l={path:t.path,offset:t.offset-o.text.length+o.end-o.start},u=YJe.transform(l,n,{affinity:"backward"});return u?"split_node"===n.type&&kJe.equals(n.path,t.path)&&l.offset{var{node:t}=e,n=m3e(e,E4e);if(!w3e)return null;var r,i=v3e(),o=(r=(0,c.useRef)(!1),(0,c.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,c.useState)((()=>function(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,i=!1,o=null,a=null,s=null,l=0,u=!1,c=()=>{var e=K3e.get(t);if(K3e.delete(t),e){var{selection:n}=t,r=w4e(t,e);!r||n&&AJe.equals(r,n)||j0e.select(t,r)}},d=()=>{if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),g()||m()){i||(i=!0,setTimeout((()=>i=!1))),m()&&(i="action");var e=t.selection&&XJe.rangeRef(t,t.selection,{affinity:"forward"});Z3e.set(t,t.marks),H3e.get(t),G3e.get(t);for(var o,l=g();o=null===(d=G3e.get(t))||void 0===d?void 0:d[0];){var d,f,h=Y3e.get(t);void 0!==h&&(Y3e.delete(t),t.marks=h),h&&!1===u&&(u=null);var p=y4e(o);t.selection&&AJe.equals(t.selection,p)||j0e.select(t,p),o.diff.text?XJe.insertText(t,o.diff.text):XJe.deleteFragment(t),G3e.set(t,null===(f=G3e.get(t))||void 0===f?void 0:f.filter((e=>{var{id:t}=e;return t!==o.id}))),g4e(t,o)||(l=!1,H3e.delete(t),Z3e.delete(t),i="action",K3e.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var v=null==e?void 0:e.unref();if(!v||K3e.get(t)||t.selection&&AJe.equals(v,t.selection)||j0e.select(t,v),m())(()=>{var e=H3e.get(t);if(H3e.delete(t),e){if(e.at){var n=YJe.isPoint(e.at)?b4e(t,e.at):w4e(t,e.at);if(!n)return;var r=XJe.range(t,n);t.selection&&AJe.equals(t.selection,r)||j0e.select(t,n)}e.run()}})();else{l&&n(),n.flush(),r.flush(),c();var O=Z3e.get(t);Z3e.delete(t),void 0!==O&&(t.marks=O,t.onChange())}}else c()},f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=I3e.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},h=(e,n)=>{var r,i=null!==(r=G3e.get(t))&&void 0!==r?r:[];G3e.set(t,i);var o=WJe.leaf(t,e),a=i.findIndex((t=>kJe.equals(t.path,e)));if(a<0)return O4e(o.text,n)&&i.push({path:e,diff:n,id:l++}),void f();var s=function(e,t,n){var r=Math.min(t.start,n.start),i=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),o=v4e(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-i),s=o.slice(r,a);return O4e(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}(o.text,i[a].diff,n);if(!s)return i.splice(a,1),void f();i[a]=S4e(S4e({},i[a]),{},{diff:s})},p=function(e){var{at:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u=!1,K3e.delete(t),n.cancel(),r.cancel(),m()&&d(),H3e.set(t,{at:i,run:e}),s=setTimeout(d)},m=()=>!!H3e.get(t),g=()=>{var e;return!(null===(e=G3e.get(t))||void 0===e||!e.length)},v=e=>{K3e.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!kJe.equals(n.anchor.path,e.anchor.path),i=!n||!kJe.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&u||i)&&(u=!1),(r||g())&&(a=setTimeout(d,200))}},O=()=>{m()||(s=setTimeout(d))};return{flush:d,scheduleFlush:O,hasPendingDiffs:g,hasPendingAction:m,hasPendingChanges:()=>m()||g(),isFlushing:()=>i,handleUserSelect:v,handleCompositionEnd:e=>{o&&clearTimeout(o),o=setTimeout((()=>{X3e.set(t,!1),d()}),25)},handleCompositionStart:e=>{X3e.set(t,!0),o&&(clearTimeout(o),o=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:r}=e,i=null,o=e.dataTransfer||e.data||void 0;!1!==u&&"insertText"!==r&&"insertCompositionText"!==r&&(u=!1);var[s]=e.getTargetRanges();s&&(i=m4e.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=m4e.getWindow(t).getSelection();if(!i&&l&&(s=l,i=m4e.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),i=null!==(n=i)&&void 0!==n?n:t.selection){var c,d=!0;if(r.startsWith("delete")){if(AJe.isExpanded(i)){var[f,m]=AJe.edges(i);if(WJe.leaf(t,f.path).text.length===f.offset&&0===m.offset){var g=XJe.next(t,{at:f.path,match:n0e.isText});g&&kJe.equals(g[1],m.path)&&(i={anchor:m,focus:m})}}var y=r.endsWith("Backward")?"backward":"forward",[b,w]=AJe.edges(i),[k,x]=XJe.leaf(t,b.path),_={text:"",start:b.offset,end:w.offset},S=G3e.get(t),P=null==S?void 0:S.find((e=>kJe.equals(e.path,x))),E=P?[P.diff,_]:[_];if(0===v4e(k.text,...E).length&&(d=!1),AJe.isExpanded(i)){if(d&&kJe.equals(i.anchor.path,i.focus.path)){var C={path:i.anchor.path,offset:b.offset},T=XJe.range(t,C,C);return v(T),h(i.anchor.path,{text:"",end:w.offset,start:b.offset})}return p((()=>XJe.deleteFragment(t,{direction:y})),{at:i})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return p((()=>XJe.deleteFragment(t)),{at:i});case"deleteContent":case"deleteContentForward":var{anchor:$}=i;if(d&&AJe.isCollapsed(i)){var Q=WJe.leaf(t,$.path);if($.offsetXJe.deleteForward(t)),{at:i});case"deleteContentBackward":var R,{anchor:A}=i,j=a4e(s)?s.isCollapsed:!(null===(R=s)||void 0===R||!R.collapsed);return d&&j&&AJe.isCollapsed(i)&&A.offset>0?h(A.path,{text:"",start:A.offset-1,end:A.offset}):p((()=>XJe.deleteBackward(t)),{at:i});case"deleteEntireSoftLine":return p((()=>{XJe.deleteBackward(t,{unit:"line"}),XJe.deleteForward(t,{unit:"line"})}),{at:i});case"deleteHardLineBackward":return p((()=>XJe.deleteBackward(t,{unit:"block"})),{at:i});case"deleteSoftLineBackward":return p((()=>XJe.deleteBackward(t,{unit:"line"})),{at:i});case"deleteHardLineForward":return p((()=>XJe.deleteForward(t,{unit:"block"})),{at:i});case"deleteSoftLineForward":return p((()=>XJe.deleteForward(t,{unit:"line"})),{at:i});case"deleteWordBackward":return p((()=>XJe.deleteBackward(t,{unit:"word"})),{at:i});case"deleteWordForward":return p((()=>XJe.deleteForward(t,{unit:"word"})),{at:i});case"insertLineBreak":return p((()=>XJe.insertSoftBreak(t)),{at:i});case"insertParagraph":return p((()=>XJe.insertBreak(t)),{at:i});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==(c=o)?void 0:c.constructor.name))return p((()=>m4e.insertData(t,o)),{at:i});var D=null!=o?o:"";if(Y3e.get(t)&&(D=D.replace("\ufeff","")),"insertText"===r&&/.*\n.*\n$/.test(D)&&(D=D.slice(0,-1)),D.includes("\n"))return p((()=>{var e=D.split("\n");e.forEach(((n,r)=>{n&&XJe.insertText(t,n),r!==e.length-1&&XJe.insertSoftBreak(t)}))}),{at:i});if(kJe.equals(i.anchor.path,i.focus.path)){var[M,I]=AJe.edges(i),z={start:M.offset,end:I.offset,text:D};if(D&&u&&"insertCompositionText"===r){var W=u.start+u.text.search(/\S|$/);z.start+z.text.search(/\S|$/)===W+1&&z.end===u.start+u.text.length?(z.start-=1,u=null,O()):u=!1}else u="insertText"===r&&(null===u?z:!(!u||!AJe.isCollapsed(i)||u.end+u.text.length!==M.offset)&&S4e(S4e({},u),{},{text:u.text+D}));if(d)return void h(M.path,z)}return p((()=>XJe.insertText(t,D)),{at:i})}}},handleKeyDown:e=>{g()||(f(!0),setTimeout(f))},handleDomMutations:e=>{var n;g()||m()||e.some((n=>f4e(t,n,e)))&&(null===(n=J3e.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}(function(e){for(var t=1;tnew MutationObserver(t)));P4e((()=>{r.takeRecords()})),(0,c.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()}),[r,e,n])}(t,a.handleDomMutations,T4e),V3e.set(i,a.scheduleFlush),o&&a.flush(),a}:()=>null,Q4e=["anchor","focus"],R4e=["anchor","focus"],A4e=(e,t)=>{var n,r,i=m3e(e,Q4e),o=m3e(t,R4e);return e[e4e]===t[e4e]&&(n=i,r=o,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((e=>r.hasOwnProperty(e)&&n[e]===r[e])))},j4e=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,o=v3e(),a=m4e.findPath(o,i),s=kJe.parent(a),l=!0===n[t4e];return o.isVoid(r)?c.createElement(I4e,{length:WJe.string(r).length}):""!==n.text||r.children[r.children.length-1]!==i||o.isInline(r)||""!==XJe.string(o,s)?""===n.text?c.createElement(I4e,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c.createElement(D4e,{isTrailing:!0,text:n.text}):c.createElement(D4e,{text:n.text}):c.createElement(I4e,{isLineBreak:!0,isMarkPlaceholder:l})},D4e=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,c.useRef)(null),i=()=>"".concat(null!=t?t:"").concat(n?"\n":""),[o]=(0,c.useState)(i);return P4e((()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),c.createElement(M4e,{ref:r},o)},M4e=(0,c.memo)((0,c.forwardRef)(((e,t)=>c.createElement("span",{"data-slate-string":!0,ref:t},e.children)))),I4e=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,i={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(i["data-slate-mark-placeholder"]=!0),c.createElement("span",Object.assign({},i),w3e&&n?null:"\ufeff",n?c.createElement("br",null):null)};function z4e(e){e.current&&(clearTimeout(e.current),e.current=null)}var W4e=e=>{var{leaf:t,isLast:n,text:r,parent:i,renderPlaceholder:o,renderLeaf:a=(e=>c.createElement(L4e,Object.assign({},e)))}=e,s=v3e(),l=(0,c.useRef)(null),u=(0,c.useRef)(null),[d,f]=(0,c.useState)(!1),h=(0,c.useRef)(null),p=(0,c.useCallback)((e=>{if(function(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}(l,null==e),null==e){var n;I3e.delete(s),null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,null)}else{if(I3e.set(s,e),!l.current){var r=window.ResizeObserver||f3e;l.current=new r((()=>{var n;null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,e)}))}l.current.observe(e),u.current=e}}),[u,t,s]),m=c.createElement(j4e,{isLast:n,leaf:t,parent:i,text:r}),g=t[e4e];if((0,c.useEffect)((()=>(g?h.current||(h.current=setTimeout((()=>{f(!0),h.current=null}),300)):(z4e(h),f(!1)),()=>z4e(h))),[g,f]),g&&d){var v={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:x3e?"inherit":void 0},contentEditable:!1,ref:p}};m=c.createElement(c.Fragment,null,o(v),m)}return a({attributes:{"data-slate-leaf":!0},children:m,leaf:t,text:r})},N4e=c.memo(W4e,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&n0e.equals(t.leaf,e.leaf)&&t.leaf[e4e]===e.leaf[e4e])),L4e=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Object.assign({},t),n)},F4e=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:o,text:a}=e,s=v3e(),l=(0,c.useRef)(null),u=n0e.decorations(a,t),d=m4e.findKey(s,a),f=[],h=0;h{var t=L3e.get(s);e?(null==t||t.set(d,e),W3e.set(a,e),z3e.set(e,a)):(null==t||t.delete(d),W3e.delete(a),l.current&&z3e.delete(l.current)),l.current=e}),[l,s,d,a]);return c.createElement("span",{"data-slate-node":"text",ref:m},f)},U4e=c.memo(F4e,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n{var{decorations:t,element:n,renderElement:r=(e=>c.createElement(B4e,Object.assign({},e))),renderPlaceholder:i,renderLeaf:o,selection:a}=e,s=v3e(),l=H4e(),u=s.isInline(n),d=m4e.findKey(s,n),f=(0,c.useCallback)((e=>{var t=L3e.get(s);e?(null==t||t.set(d,e),W3e.set(n,e),z3e.set(e,n)):(null==t||t.delete(d),W3e.delete(n))}),[s,d,n]),h=Z4e({decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}),p={"data-slate-node":"element",ref:f};if(u&&(p["data-slate-inline"]=!0),!u&&XJe.hasInlines(s,n)){var m=WJe.string(n),g=y2e()(m);"rtl"===g&&(p.dir=g)}if(XJe.isVoid(s,n)){p["data-slate-void"]=!0,!l&&u&&(p.contentEditable=!1);var v=u?"span":"div",[[O]]=WJe.texts(n);h=c.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},c.createElement(U4e,{renderPlaceholder:i,decorations:[],isLast:!1,parent:n,text:O})),A3e.set(O,0),j3e.set(O,n)}return r({attributes:p,children:h,element:n})},q4e=c.memo(X4e,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n{var{attributes:t,children:n,element:r}=e,i=v3e().isInline(r)?"span":"div";return c.createElement(i,Object.assign({},t,{style:{position:"relative"}}),n)},V4e=(0,c.createContext)((()=>[])),Y4e=(0,c.createContext)(!1),Z4e=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}=e,s=(0,c.useContext)(V4e),l=v3e(),u=m4e.findPath(l,n),d=[],f=DJe.isElement(n)&&!l.isInline(n)&&XJe.hasInlines(l,n),h=0;h(0,c.useContext)(G4e),K4e=(0,c.createContext)(null),J4e=()=>{var e=(0,c.useContext)(K4e);if(!e)throw new Error("The `useSlate` hook must be used inside the component's context.");var{editor:t}=e;return t},e5e={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},t5e={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},n5e={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},r5e=e=>{var t=e5e[e],n=t5e[e],r=n5e[e],i=t&&(0,h3e.P6)(t),o=n&&(0,h3e.P6)(n),a=r&&(0,h3e.P6)(r);return e=>!(!i||!i(e))||!!(b3e&&o&&o(e))||!(b3e||!a||!a(e))},i5e={isBold:r5e("bold"),isCompose:r5e("compose"),isMoveBackward:r5e("moveBackward"),isMoveForward:r5e("moveForward"),isDeleteBackward:r5e("deleteBackward"),isDeleteForward:r5e("deleteForward"),isDeleteLineBackward:r5e("deleteLineBackward"),isDeleteLineForward:r5e("deleteLineForward"),isDeleteWordBackward:r5e("deleteWordBackward"),isDeleteWordForward:r5e("deleteWordForward"),isExtendBackward:r5e("extendBackward"),isExtendForward:r5e("extendForward"),isExtendLineBackward:r5e("extendLineBackward"),isExtendLineForward:r5e("extendLineForward"),isItalic:r5e("italic"),isMoveLineBackward:r5e("moveLineBackward"),isMoveLineForward:r5e("moveLineForward"),isMoveWordBackward:r5e("moveWordBackward"),isMoveWordForward:r5e("moveWordForward"),isRedo:r5e("redo"),isSoftBreak:r5e("insertSoftBreak"),isSplitBlock:r5e("splitBlock"),isTransposeCharacter:r5e("transposeCharacter"),isUndo:r5e("undo")},o5e={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class a5e extends c.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,o5e)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var i=r.filter((t=>f4e(e,t,r)));n.push(...i)}},restoreDOM:function(){n.length>0&&(n.reverse().forEach((e=>{"characterData"!==e.type&&(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)})))})),r())},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,i=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();return null!=i&&i.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(i)),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}a5e.contextType=g3e;var s5e=w3e?a5e:e=>{var{children:t}=e;return c.createElement(c.Fragment,null,t)},l5e=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],u5e=["text"];function c5e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d5e(e){for(var t=1;tc.createElement(c.Fragment,null,Z4e(e)),h5e=e=>{var t=(0,c.useCallback)((e=>c.createElement(p5e,Object.assign({},e))),[]),{autoFocus:n,decorate:r=m5e,onDOMBeforeInput:i,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:l,renderPlaceholder:u=t,scrollSelectionIntoView:d=g5e,style:f={},as:h="div",disableDefaultStyles:p=!1}=e,m=m3e(e,l5e),g=J4e(),[v,O]=(0,c.useState)(!1),y=(0,c.useRef)(null),b=(0,c.useRef)([]),[w,k]=(0,c.useState)(),{onUserInput:x,receivedUserInput:_}=function(){var e=v3e(),t=(0,c.useRef)(!1),n=(0,c.useRef)(0),r=(0,c.useCallback)((()=>{if(!t.current){t.current=!0;var r=m4e.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((()=>{t.current=!1}))}}),[e]);return(0,c.useEffect)((()=>()=>cancelAnimationFrame(n.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,S]=(0,c.useReducer)((e=>e+1),0);J3e.set(g,S),F3e.set(g,a);var P=(0,c.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,c.useEffect)((()=>{y.current&&n&&y.current.focus()}),[n]);var E=(0,c.useRef)(),C=(0,c.useMemo)((()=>w2e()((()=>{var e=E.current;if((w3e||!m4e.isComposing(g))&&(!P.isUpdatingSelection||null!=e&&e.isFlushing())&&!P.isDraggingInternally){var t=m4e.findDocumentOrShadowRoot(g),{activeElement:n}=t,r=m4e.toDOMNode(g,g),i=t.getSelection();if(n===r?(P.latestElement=n,U3e.set(g,!0)):U3e.delete(g),!i)return j0e.deselect(g);var{anchorNode:o,focusNode:s}=i,l=m4e.hasEditableTarget(g,o)||m4e.isTargetInsideNonReadonlyVoid(g,o),u=m4e.hasEditableTarget(g,s)||m4e.isTargetInsideNonReadonlyVoid(g,s);if(l&&u){var c=m4e.toSlateRange(g,i,{exactMatch:!1,suppressThrow:!0});c&&(m4e.isComposing(g)||null!=e&&e.hasPendingChanges()||null!=e&&e.isFlushing()?null==e||e.handleUserSelect(c):j0e.select(g,c))}!a||l&&u||j0e.deselect(g)}}),100)),[g,a,P]),T=(0,c.useMemo)((()=>O0()(C,0)),[C]);E.current=$4e({node:y,onDOMSelectionChange:C,scheduleOnDOMSelectionChange:T}),P4e((()=>{var e,t,n;y.current&&(n=r4e(y.current))?(D3e.set(g,n),M3e.set(g,y.current),W3e.set(g,y.current),z3e.set(y.current,g)):W3e.delete(g);var{selection:r}=g,i=m4e.findDocumentOrShadowRoot(g).getSelection();if(i&&m4e.isFocused(g)&&(null===(e=E.current)||void 0===e||!e.hasPendingAction())){var o=e=>{var t="None"!==i.type;if(r||t){var n,o=i.focusNode;if(k3e&&i.rangeCount>1){var a=i.getRangeAt(0),s=i.getRangeAt(i.rangeCount-1);n=a.startContainer===o?s.endContainer:a.startContainer}else n=i.anchorNode;var l=M3e.get(g),u=!1;if(l.contains(n)&&l.contains(o)&&(u=!0),t&&u&&r&&!e){var c=m4e.toSlateRange(g,i,{exactMatch:!0,suppressThrow:!0});if(c&&AJe.equals(c,r)){var f,h;if(!P.hasMarkPlaceholder)return;if(null!==(f=n)&&void 0!==f&&null!==(h=f.parentElement)&&void 0!==h&&h.hasAttribute("data-slate-mark-placeholder"))return}}if(!r||m4e.hasRange(g,r)){P.isUpdatingSelection=!0;var p=r&&m4e.toDOMRange(g,r);return p?(m4e.isComposing(g)&&!w3e?i.collapseToEnd():AJe.isBackward(r)?i.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):i.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset),d(g,p)):i.removeAllRanges(),p}g.selection=m4e.toSlateRange(g,i,{exactMatch:!1,suppressThrow:!0})}};i.rangeCount<=1&&o();var a="action"===(null===(t=E.current)||void 0===t?void 0:t.isFlushing());if(w3e&&a){var s=null,l=requestAnimationFrame((()=>{if(a){var e=e=>{try{m4e.toDOMNode(g,g).focus(),o(e)}catch(e){}};e(),s=setTimeout((()=>{e(!0),P.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(l),s&&clearTimeout(s)}}setTimeout((()=>{P.isUpdatingSelection=!1}))}}));var $=(0,c.useCallback)((e=>{if(x(),!a&&m4e.hasEditableTarget(g,e.target)&&!y5e(e,i)){var t;if(E.current)return E.current.handleDOMBeforeInput(e);T.flush(),C.flush();var{selection:n}=g,{inputType:r}=e,o=e.dataTransfer||e.data||void 0,s="insertCompositionText"===r||"deleteCompositionText"===r;if(s&&m4e.isComposing(g))return;var l=!1;if("insertText"===r&&n&&AJe.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var u,c;l=!0,g.marks&&(l=!1);var{anchor:d}=n,[f,h]=m4e.toDOMPoint(g,d),p=null===(u=f.parentElement)||void 0===u?void 0:u.closest("a"),m=m4e.getWindow(g);if(l&&p&&m4e.hasDOMNode(g,p)){var v,y=null==m?void 0:m.document.createTreeWalker(p,NodeFilter.SHOW_TEXT).lastChild();y===f&&(null===(v=y.textContent)||void 0===v?void 0:v.length)===h&&(l=!1)}if(l&&f.parentElement&&"pre"===(null==m||null===(c=m.getComputedStyle(f.parentElement))||void 0===c?void 0:c.whiteSpace)){var w=XJe.above(g,{at:d.path,match:e=>DJe.isElement(e)&&XJe.isBlock(g,e)});w&&WJe.string(w[0]).includes("\t")&&(l=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var[k]=e.getTargetRanges();if(k){var _=m4e.toSlateRange(g,k,{exactMatch:!1,suppressThrow:!1});if(!n||!AJe.equals(n,_)){l=!1;var S=!s&&g.selection&&XJe.rangeRef(g,g.selection);j0e.select(g,_),S&&q3e.set(g,S)}}}if(s)return;if(l||e.preventDefault(),n&&AJe.isExpanded(n)&&r.startsWith("delete")){var P=r.endsWith("Backward")?"backward":"forward";return void XJe.deleteFragment(g,{direction:P})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":XJe.deleteFragment(g);break;case"deleteContent":case"deleteContentForward":XJe.deleteForward(g);break;case"deleteContentBackward":XJe.deleteBackward(g);break;case"deleteEntireSoftLine":XJe.deleteBackward(g,{unit:"line"}),XJe.deleteForward(g,{unit:"line"});break;case"deleteHardLineBackward":XJe.deleteBackward(g,{unit:"block"});break;case"deleteSoftLineBackward":XJe.deleteBackward(g,{unit:"line"});break;case"deleteHardLineForward":XJe.deleteForward(g,{unit:"block"});break;case"deleteSoftLineForward":XJe.deleteForward(g,{unit:"line"});break;case"deleteWordBackward":XJe.deleteBackward(g,{unit:"word"});break;case"deleteWordForward":XJe.deleteForward(g,{unit:"word"});break;case"insertLineBreak":XJe.insertSoftBreak(g);break;case"insertParagraph":XJe.insertBreak(g);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&m4e.isComposing(g)&&(O(!1),X3e.set(g,!1)),"DataTransfer"===(null==o?void 0:o.constructor.name)?m4e.insertData(g,o):"string"==typeof o&&(l?b.current.push((()=>XJe.insertText(g,o))):XJe.insertText(g,o))}var $=null===(t=q3e.get(g))||void 0===t?void 0:t.unref();q3e.delete(g),!$||g.selection&&AJe.equals(g.selection,$)||j0e.select(g,$)}}),[g,C,x,i,a,T]),Q=(0,c.useCallback)((e=>{null==e?(C.cancel(),T.cancel(),M3e.delete(g),W3e.delete(g),y.current&&R3e&&y.current.removeEventListener("beforeinput",$)):R3e&&e.addEventListener("beforeinput",$),y.current=e}),[C,T,g,$]);P4e((()=>{var e=m4e.getWindow(g);return e.document.addEventListener("selectionchange",T),()=>{e.document.removeEventListener("selectionchange",T)}}),[T]);var R=r([g,[]]),A=o&&1===g.children.length&&1===Array.from(WJe.texts(g)).length&&""===WJe.string(g)&&!v,j=(0,c.useCallback)((e=>{var t;k(e&&A?null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height:void 0)}),[A]);if(A){var D=XJe.start(g,[]);R.push({[e4e]:!0,placeholder:o,onPlaceholderResize:j,anchor:D,focus:D})}var{marks:M}=g;if(P.hasMarkPlaceholder=!1,g.selection&&AJe.isCollapsed(g.selection)&&M){var{anchor:I}=g.selection,z=WJe.leaf(g,I.path),W=m3e(z,u5e);if(!n0e.equals(z,M,{loose:!0})){P.hasMarkPlaceholder=!0;var N=Object.fromEntries(Object.keys(W).map((e=>[e,null])));R.push(d5e(d5e(d5e({[t4e]:!0},N),M),{},{anchor:I,focus:I}))}}return(0,c.useEffect)((()=>{setTimeout((()=>{var{selection:e}=g;if(e){var{anchor:t}=e,n=WJe.leaf(g,t.path);if(M&&!n0e.equals(n,M,{loose:!0}))return void Y3e.set(g,M)}Y3e.delete(g)}))})),c.createElement(G4e.Provider,{value:a},c.createElement(V4e.Provider,{value:r},c.createElement(s5e,{node:y,receivedUserInput:_},c.createElement(h,Object.assign({role:a?void 0:"textbox","aria-multiline":!a||void 0},m,{spellCheck:!(!R3e&&Q3e)&&m.spellCheck,autoCorrect:R3e||!Q3e?m.autoCorrect:"false",autoCapitalize:R3e||!Q3e?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:Q,style:d5e(d5e({},p?{}:d5e({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},w?{minHeight:w}:{})),f),onBeforeInput:(0,c.useCallback)((e=>{if(!R3e&&!a&&!v5e(e,m.onBeforeInput)&&m4e.hasSelectableTarget(g,e.target)&&(e.preventDefault(),!m4e.isComposing(g))){var t=e.data;XJe.insertText(g,t)}}),[m.onBeforeInput,g,a]),onInput:(0,c.useCallback)((e=>{if(!v5e(e,m.onInput))if(E.current)E.current.handleInput();else{for(var t of b.current)t();b.current=[]}}),[m.onInput]),onBlur:(0,c.useCallback)((e=>{if(!a&&!P.isUpdatingSelection&&m4e.hasSelectableTarget(g,e.target)&&!v5e(e,m.onBlur)){var t=m4e.findDocumentOrShadowRoot(g);if(P.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===m4e.toDOMNode(g,g)||i4e(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&o4e(n)&&m4e.hasDOMNode(g,n)){var r=m4e.toSlateNode(g,n);if(DJe.isElement(r)&&!g.isVoid(r))return}if(x3e){var i=t.getSelection();null==i||i.removeAllRanges()}U3e.delete(g)}}}}),[a,P.isUpdatingSelection,P.latestElement,g,m.onBlur]),onClick:(0,c.useCallback)((e=>{if(m4e.hasTarget(g,e.target)&&!v5e(e,m.onClick)&&o4e(e.target)){var t=m4e.toSlateNode(g,e.target),n=m4e.findPath(g,t);if(!XJe.hasPath(g,n)||WJe.get(g,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!DJe.isElement(t)||!XJe.isBlock(g,t)){var i,o=XJe.above(g,{match:e=>DJe.isElement(e)&&XJe.isBlock(g,e),at:n});r=null!==(i=null==o?void 0:o[1])&&void 0!==i?i:n.slice(0,1)}var s=XJe.range(g,r);return void j0e.select(g,s)}if(a)return;var l=XJe.start(g,n),u=XJe.end(g,n),c=XJe.void(g,{at:l}),d=XJe.void(g,{at:u});if(c&&d&&kJe.equals(c[1],d[1])){var f=XJe.range(g,l);j0e.select(g,f)}}}),[g,m.onClick,a]),onCompositionEnd:(0,c.useCallback)((e=>{if(m4e.hasSelectableTarget(g,e.target)){var t;if(m4e.isComposing(g)&&(O(!1),X3e.set(g,!1)),null===(t=E.current)||void 0===t||t.handleCompositionEnd(e),v5e(e,m.onCompositionEnd)||w3e)return;if(!x3e&&!C3e&&!y3e&&!$3e&&!T3e&&e.data){var n=Y3e.get(g);Y3e.delete(g),void 0!==n&&(Z3e.set(g,g.marks),g.marks=n),XJe.insertText(g,e.data);var r=Z3e.get(g);Z3e.delete(g),void 0!==r&&(g.marks=r)}}}),[m.onCompositionEnd,g]),onCompositionUpdate:(0,c.useCallback)((e=>{m4e.hasSelectableTarget(g,e.target)&&!v5e(e,m.onCompositionUpdate)&&(m4e.isComposing(g)||(O(!0),X3e.set(g,!0)))}),[m.onCompositionUpdate,g]),onCompositionStart:(0,c.useCallback)((e=>{if(m4e.hasSelectableTarget(g,e.target)){var t;if(null===(t=E.current)||void 0===t||t.handleCompositionStart(e),v5e(e,m.onCompositionStart)||w3e)return;O(!0);var{selection:n}=g;if(n){if(AJe.isExpanded(n))return void XJe.deleteFragment(g);var r=XJe.above(g,{match:e=>DJe.isElement(e)&&XJe.isInline(g,e),mode:"highest"});if(r){var[,i]=r;if(XJe.isEnd(g,n.anchor,i)){var o=XJe.after(g,i);j0e.setSelection(g,{anchor:o,focus:o})}}}}}),[m.onCompositionStart,g]),onCopy:(0,c.useCallback)((e=>{!m4e.hasSelectableTarget(g,e.target)||v5e(e,m.onCopy)||O5e(e)||(e.preventDefault(),m4e.setFragmentData(g,e.clipboardData,"copy"))}),[m.onCopy,g]),onCut:(0,c.useCallback)((e=>{if(!a&&m4e.hasSelectableTarget(g,e.target)&&!v5e(e,m.onCut)&&!O5e(e)){e.preventDefault(),m4e.setFragmentData(g,e.clipboardData,"cut");var{selection:t}=g;if(t)if(AJe.isExpanded(t))XJe.deleteFragment(g);else{var n=WJe.parent(g,t.anchor.path);XJe.isVoid(g,n)&&j0e.delete(g)}}}),[a,g,m.onCut]),onDragOver:(0,c.useCallback)((e=>{if(m4e.hasTarget(g,e.target)&&!v5e(e,m.onDragOver)){var t=m4e.toSlateNode(g,e.target);DJe.isElement(t)&&XJe.isVoid(g,t)&&e.preventDefault()}}),[m.onDragOver,g]),onDragStart:(0,c.useCallback)((e=>{if(!a&&m4e.hasTarget(g,e.target)&&!v5e(e,m.onDragStart)){var t=m4e.toSlateNode(g,e.target),n=m4e.findPath(g,t);if(DJe.isElement(t)&&XJe.isVoid(g,t)||XJe.void(g,{at:n,voids:!0})){var r=XJe.range(g,n);j0e.select(g,r)}P.isDraggingInternally=!0,m4e.setFragmentData(g,e.dataTransfer,"drag")}}),[a,g,m.onDragStart,P]),onDrop:(0,c.useCallback)((e=>{if(!a&&m4e.hasTarget(g,e.target)&&!v5e(e,m.onDrop)){e.preventDefault();var t=g.selection,n=m4e.findEventRange(g,e),r=e.dataTransfer;j0e.select(g,n),P.isDraggingInternally&&(!t||AJe.equals(t,n)||XJe.void(g,{at:n,voids:!0})||j0e.delete(g,{at:t})),m4e.insertData(g,r),m4e.isFocused(g)||m4e.focus(g)}P.isDraggingInternally=!1}),[a,g,m.onDrop,P]),onDragEnd:(0,c.useCallback)((e=>{!a&&P.isDraggingInternally&&m.onDragEnd&&m4e.hasTarget(g,e.target)&&m.onDragEnd(e),P.isDraggingInternally=!1}),[a,P,m,g]),onFocus:(0,c.useCallback)((e=>{if(!a&&!P.isUpdatingSelection&&m4e.hasEditableTarget(g,e.target)&&!v5e(e,m.onFocus)){var t=m4e.toDOMNode(g,g),n=m4e.findDocumentOrShadowRoot(g);if(P.latestElement=n.activeElement,k3e&&e.target!==t)return void t.focus();U3e.set(g,!0)}}),[a,P,g,m.onFocus]),onKeyDown:(0,c.useCallback)((e=>{if(!a&&m4e.hasEditableTarget(g,e.target)){var t;null===(t=E.current)||void 0===t||t.handleKeyDown(e);var{nativeEvent:n}=e;if(m4e.isComposing(g)&&!1===n.isComposing&&(X3e.set(g,!1),O(!1)),v5e(e,m.onKeyDown)||m4e.isComposing(g))return;var{selection:r}=g,i=g.children[null!==r?r.focus.path[0]:0],o="rtl"===y2e()(WJe.string(i));if(i5e.isRedo(n)){e.preventDefault();var s=g;return void("function"==typeof s.redo&&s.redo())}if(i5e.isUndo(n)){e.preventDefault();var l=g;return void("function"==typeof l.undo&&l.undo())}if(i5e.isMoveLineBackward(n))return e.preventDefault(),void j0e.move(g,{unit:"line",reverse:!0});if(i5e.isMoveLineForward(n))return e.preventDefault(),void j0e.move(g,{unit:"line"});if(i5e.isExtendLineBackward(n))return e.preventDefault(),void j0e.move(g,{unit:"line",edge:"focus",reverse:!0});if(i5e.isExtendLineForward(n))return e.preventDefault(),void j0e.move(g,{unit:"line",edge:"focus"});if(i5e.isMoveBackward(n))return e.preventDefault(),void(r&&AJe.isCollapsed(r)?j0e.move(g,{reverse:!o}):j0e.collapse(g,{edge:"start"}));if(i5e.isMoveForward(n))return e.preventDefault(),void(r&&AJe.isCollapsed(r)?j0e.move(g,{reverse:o}):j0e.collapse(g,{edge:"end"}));if(i5e.isMoveWordBackward(n))return e.preventDefault(),r&&AJe.isExpanded(r)&&j0e.collapse(g,{edge:"focus"}),void j0e.move(g,{unit:"word",reverse:!o});if(i5e.isMoveWordForward(n))return e.preventDefault(),r&&AJe.isExpanded(r)&&j0e.collapse(g,{edge:"focus"}),void j0e.move(g,{unit:"word",reverse:o});if(R3e){if((S3e||x3e)&&r&&(i5e.isDeleteBackward(n)||i5e.isDeleteForward(n))&&AJe.isCollapsed(r)){var u=WJe.parent(g,r.anchor.path);if(DJe.isElement(u)&&XJe.isVoid(g,u)&&(XJe.isInline(g,u)||XJe.isBlock(g,u)))return e.preventDefault(),void XJe.deleteBackward(g,{unit:"block"})}}else{if(i5e.isBold(n)||i5e.isItalic(n)||i5e.isTransposeCharacter(n))return void e.preventDefault();if(i5e.isSoftBreak(n))return e.preventDefault(),void XJe.insertSoftBreak(g);if(i5e.isSplitBlock(n))return e.preventDefault(),void XJe.insertBreak(g);if(i5e.isDeleteBackward(n))return e.preventDefault(),void(r&&AJe.isExpanded(r)?XJe.deleteFragment(g,{direction:"backward"}):XJe.deleteBackward(g));if(i5e.isDeleteForward(n))return e.preventDefault(),void(r&&AJe.isExpanded(r)?XJe.deleteFragment(g,{direction:"forward"}):XJe.deleteForward(g));if(i5e.isDeleteLineBackward(n))return e.preventDefault(),void(r&&AJe.isExpanded(r)?XJe.deleteFragment(g,{direction:"backward"}):XJe.deleteBackward(g,{unit:"line"}));if(i5e.isDeleteLineForward(n))return e.preventDefault(),void(r&&AJe.isExpanded(r)?XJe.deleteFragment(g,{direction:"forward"}):XJe.deleteForward(g,{unit:"line"}));if(i5e.isDeleteWordBackward(n))return e.preventDefault(),void(r&&AJe.isExpanded(r)?XJe.deleteFragment(g,{direction:"backward"}):XJe.deleteBackward(g,{unit:"word"}));if(i5e.isDeleteWordForward(n))return e.preventDefault(),void(r&&AJe.isExpanded(r)?XJe.deleteFragment(g,{direction:"forward"}):XJe.deleteForward(g,{unit:"word"}))}}}),[a,g,m.onKeyDown]),onPaste:(0,c.useCallback)((e=>{a||!m4e.hasEditableTarget(g,e.target)||v5e(e,m.onPaste)||(!R3e||(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||x3e)&&(e.preventDefault(),m4e.insertData(g,e.clipboardData))}),[a,g,m.onPaste])}),c.createElement(f5e,{decorations:R,node:g,renderElement:s,renderPlaceholder:u,renderLeaf:l,selection:g.selection})))))},p5e=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Object.assign({},t),n,w3e&&c.createElement("br",null))},m5e=()=>[],g5e=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&AJe.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(E2e(t)&&"function"==typeof t.behavior)return t.behavior(n?P2e(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:E2e(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,o=e.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:t}):(r.scrollTop=i,r.scrollLeft=o)}))})(P2e(e,r),r.behavior)}}(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},v5e=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},O5e=e=>o4e(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),y5e=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},b5e=(0,c.createContext)(!1),w5e=()=>(0,c.useContext)(b5e),k5e=(0,c.createContext)({}),x5e=["editor","children","onChange","initialValue"],_5e=e=>{var{editor:t,children:n,onChange:r,initialValue:i}=e,o=m3e(e,x5e),a=(0,c.useRef)(!1),[s,l]=c.useState((()=>{if(!WJe.isNodeList(i))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(GJe.stringify(i)));if(!XJe.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(GJe.stringify(t)));return t.children=i,Object.assign(t,o),{v:0,editor:t}})),{selectorContext:u,onChange:d}=function(e){var t=(0,c.useRef)([]).current,n=(0,c.useRef)({editor:e}).current,r=(0,c.useCallback)((e=>{n.editor=e,t.forEach((t=>t(e)))}),[t,n]);return{selectorContext:(0,c.useMemo)((()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,n]),onChange:r}}(t),f=(0,c.useCallback)((()=>{r&&r(t.children),l((e=>({v:e.v+1,editor:t}))),d(t)}),[t,d,r]);(0,c.useEffect)((()=>(B3e.set(t,f),()=>{B3e.set(t,(()=>{})),a.current=!0})),[t,f]);var[h,p]=(0,c.useState)(m4e.isFocused(t));return(0,c.useEffect)((()=>{p(m4e.isFocused(t))}),[t]),P4e((()=>{var e=()=>p(m4e.isFocused(t));return O3e>=17?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),c.createElement(k5e.Provider,{value:u},c.createElement(K4e.Provider,{value:s},c.createElement(g3e.Provider,{value:s.editor},c.createElement(b5e.Provider,{value:h},n))))},S5e=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},P5e=(e,t,n)=>{var r=m4e.toDOMRange(e,t).getBoundingClientRect(),i=m4e.toDOMRange(e,n).getBoundingClientRect();return S5e(r,i)&&S5e(i,r)};function E5e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C5e(e){for(var t=1;t{var n=[];for(var[r,i]of XJe.levels(e,{at:t})){var o=m4e.findKey(e,r);n.push([i,o])}return n};function $5e(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{try{return m4e.findPath(e,t)}catch(e){}},j5e=(e,t)=>{t&&k1e(e,(()=>{(e=>{j0e.deselect(e)})(e),C1e(e,t)})),m4e.focus(e)},D5e=(e,t)=>{try{return m4e.toDOMNode(e,t)}catch(e){}},M5e=(e="")=>e.length>0?`${e}Store`:"store",I5e=(e="")=>`use${((e="")=>e.length>0?e[0].toUpperCase()+e.slice(1):"")(e)}Store`,z5e=(e,{scope:t,initialStore:n,name:r=""}={})=>{const i=I5e(null==n?void 0:n.name),o=M5e(null==n?void 0:n.name),a=I5e(r),s=M5e(r),l=n?n[i]().get:{},u=n?n[i]().set:{},c=n?n[i]().use:{},d=n?n[o].atom:{};Object.keys(e).forEach((n=>{const r=XGe(e[n]);d[n]=r,l[n]=e=>qGe(r,null!=e?e:t),u[n]=e=>BGe(r,null!=e?e:t),c[n]=e=>VGe(r,null!=e?e:t)}));const f={[a]:e=>{if(e){const n={...l},r={...u},i={...c};return Object.keys(n).forEach((r=>{const i=n[r];n[r]=n=>{var r;return i(null!==(r=null!=n?n:e)&&void 0!==r?r:t)}})),Object.keys(r).forEach((n=>{const i=r[n];r[n]=n=>{var r;return i(null!==(r=null!=n?n:e)&&void 0!==r?r:t)}})),Object.keys(i).forEach((n=>{const r=i[n];i[n]=n=>{var i;return r(null!==(i=null!=n?n:e)&&void 0!==i?i:t)}})),{get:n,set:r,use:i}}return{get:l,set:u,use:c}},[s]:{atom:d},name:r};return{...f,[s]:{...f[s],scope:t,extend:(e,n)=>z5e(e,{scope:t,initialStore:f,...n})}}};function W5e(){return W5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=F5e().set.element(t),i=F5e().set.element(N5e);return(0,c.useEffect)((()=>{r(e),i(e)}),[e,r,i]),n};function X5e({element:e,scope:t,children:n,...r}){return c.createElement(FGe,W5e({initialValues:[[L5e.atom.element,e]],scope:N5e},r),c.createElement(FGe,W5e({initialValues:[[L5e.atom.element,e]],scope:t},r),c.createElement(U5e,{element:e,scope:t},n)))}const q5e=(e=N5e)=>F5e().get.element(e)||(console.warn("The `useElement(pluginKey)` hook must be used inside the node component's context"),{});function B5e({attributes:e,children:t,text:n,leaf:r,editor:i,nodeProps:o,...a}){return c.createElement("span",W5e({},e,a),t)}var V5e=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n-1},H5e.prototype.set=function(e,t){var n=this.__data__,r=Z5e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var K5e=H5e,J5e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function e6e(e,t){return e(t={exports:{}},t.exports),t.exports}var t6e="object"==typeof J5e&&J5e&&J5e.Object===Object&&J5e,n6e="object"==typeof self&&self&&self.Object===Object&&self,r6e=t6e||n6e||Function("return this")(),i6e=r6e.Symbol,o6e=Object.prototype,a6e=o6e.hasOwnProperty,s6e=o6e.toString,l6e=i6e?i6e.toStringTag:void 0,u6e=Object.prototype.toString,c6e=i6e?i6e.toStringTag:void 0,d6e=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c6e&&c6e in Object(e)?function(e){var t=a6e.call(e,l6e),n=e[l6e];try{e[l6e]=void 0;var r=!0}catch(e){}var i=s6e.call(e);return r&&(t?e[l6e]=n:delete e[l6e]),i}(e):function(e){return u6e.call(e)}(e)},f6e=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},h6e=function(e){if(!f6e(e))return!1;var t=d6e(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},p6e=r6e["__core-js_shared__"],m6e=function(){var e=/[^.]+$/.exec(p6e&&p6e.keys&&p6e.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),g6e=Function.prototype.toString,v6e=function(e){if(null!=e){try{return g6e.call(e)}catch(e){}try{return e+""}catch(e){}}return""},O6e=/^\[object .+?Constructor\]$/,y6e=Function.prototype,b6e=Object.prototype,w6e=y6e.toString,k6e=b6e.hasOwnProperty,x6e=RegExp("^"+w6e.call(k6e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_6e=function(e){return!(!f6e(e)||function(e){return!!m6e&&m6e in e}(e))&&(h6e(e)?x6e:O6e).test(v6e(e))},S6e=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return _6e(n)?n:void 0},P6e=S6e(r6e,"Map"),E6e=S6e(Object,"create"),C6e=Object.prototype.hasOwnProperty,T6e=Object.prototype.hasOwnProperty;function $6e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},t9e={};t9e["[object Float32Array]"]=t9e["[object Float64Array]"]=t9e["[object Int8Array]"]=t9e["[object Int16Array]"]=t9e["[object Int32Array]"]=t9e["[object Uint8Array]"]=t9e["[object Uint8ClampedArray]"]=t9e["[object Uint16Array]"]=t9e["[object Uint32Array]"]=!0,t9e["[object Arguments]"]=t9e["[object Array]"]=t9e["[object ArrayBuffer]"]=t9e["[object Boolean]"]=t9e["[object DataView]"]=t9e["[object Date]"]=t9e["[object Error]"]=t9e["[object Function]"]=t9e["[object Map]"]=t9e["[object Number]"]=t9e["[object Object]"]=t9e["[object RegExp]"]=t9e["[object Set]"]=t9e["[object String]"]=t9e["[object WeakMap]"]=!1;var n9e=function(e){return function(t){return e(t)}},r9e=e6e((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&t6e.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),i9e=r9e&&r9e.isTypedArray,o9e=i9e?n9e(i9e):function(e){return U6e(e)&&e9e(e.length)&&!!t9e[d6e(e)]},a9e=Object.prototype.hasOwnProperty,s9e=function(e,t){var n=Z6e(e),r=!n&&Y6e(e),i=!n&&!r&&H6e(e),o=!n&&!r&&!i&&o9e(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++ni?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r0&&r(l)?n>1?e(l,n-1,r,i,o):S9e(o,l):i||(o[o.length]=l)}return o},X8e=function(e){return null!=e&&e.length?U8e(e,1):[]},q8e=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},B8e=Math.max,V8e=function(e,t,n){return t=B8e(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=B8e(r.length-t,0),a=Array(o);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(H8e),e7e=function(e){return J8e(V8e(e,void 0,X8e),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=V5e(t,(function(t){return t=T8e(t,e),r||(r=t.length>1),t})),F6e(e,Q9e(e),n),r&&(n=p8e(n,7,N8e));for(var i=t.length;i--;)A8e(n,t[i]);return n})),t7e=e7e;const n7e=DHe("event-editor")({blur:null,focus:null,last:null}),r7e=n7e.set,i7e=n7e.get,o7e=(n7e.use,"plate"),a7e=Symbol("global-plate"),s7e=XGe(o7e),{plateStore:l7e,usePlateStore:u7e}=(({decorate:e=null,editor:t=null,id:n,isRendered:r=!1,keyDecorate:i="1",keyEditor:o="1",keySelection:a="1",onChange:s=null,editorRef:l=null,plugins:u=[],rawPlugins:c=[],readOnly:d=!1,renderElement:f=null,renderLeaf:h=null,value:p=null,...m}={})=>{const g=z5e({decorate:e,editor:t,id:n,isRendered:r,keyDecorate:i,keyEditor:o,keySelection:a,onChange:s,editorRef:l,plugins:u,rawPlugins:c,readOnly:d,renderElement:f,renderLeaf:h,value:p,...m},{scope:o7e,name:"plate"});return{plateStore:g.plateStore,usePlateStore:e=>{const t=VGe(s7e,a7e)[0];return aJe(e)||g.usePlateStore(e).get.id(e)?g.usePlateStore(e):g.usePlateStore(t)}}})(),c7e=e=>u7e(e).get,d7e=e=>u7e(e).set,f7e=e=>u7e(e).use,h7e=(e,t)=>{const n=d7e(t)[e]();return(0,c.useCallback)((()=>{n(YGe())}),[n])},p7e=({node:e,path:t=[],source:n,apply:r,query:i})=>{h2e([e,t],i)&&r(e,n instanceof Function?n():n),e2e(e)&&e.children.forEach(((e,o)=>{p7e({node:e,path:t.concat([o]),source:n,apply:r,query:i})}))};var m7e=function(e,t){return J8e(V8e(e,t,Z8e),e+"")},g7e=function(e,t,n){(void 0!==n&&!Y5e(e[t],n)||void 0===n&&!(t in e))&&W6e(e,t,n)},v7e=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}(),O7e=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},y7e=function(e,t,n,r,i,o,a){var s=O7e(e,n),l=O7e(t,n),u=a.get(l);if(u)g7e(e,n,u);else{var c=o?o(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var f=Z6e(l),h=!f&&H6e(l),p=!f&&!h&&o9e(l);c=l,f||h||p?Z6e(s)?c=s:function(e){return U6e(e)&&h9e(e)}(s)?c=y9e(s):h?(d=!1,c=O9e(l,!0)):p?(d=!1,c=e8e(l,!0)):c=[]:W8e(l)||Y6e(l)?(c=s,Y6e(s)?c=function(e){return F6e(e,v9e(e))}(s):f6e(s)&&!h6e(s)||(c=o8e(l))):d=!1}d&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),g7e(e,n,c)}},b7e=function e(t,n,r,i,o){t!==n&&v7e(n,(function(a,s){if(o||(o=new M6e),f6e(a))y7e(t,n,s,r,e,i,o);else{var l=i?i(O7e(t,s),a,s+"",t,n,o):void 0;void 0===l&&(l=a),g7e(t,s,l)}}),v9e)},w7e=function e(t,n,r,i,o,a){return f6e(t)&&f6e(n)&&(a.set(n,t),b7e(t,n,void 0,e,a),a.delete(n)),t},k7e=function(e){return m7e((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!f6e(n))return!1;var r=typeof t;return!!("number"==r?h9e(n)&&J6e(t,n.length):"string"==r&&t in n)&&Y5e(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r{var r;if(t[e.key]){const{plugins:r,then:i,...o}=t[e.key];e=S7e(o,e),n||null==r||r.forEach((t=>{e.plugins||(e.plugins=[]);const n=e.plugins.find((e=>e.key===t.key));n||e.plugins.push(t)}))}e.plugins&&(e.plugins=e.plugins.map((e=>P7e(e,t,!0))));const{then:i}=e;return i?(void 0===e._thenReplaced&&(e._thenReplaced=0),e._thenReplaced<3&&(e.then=(n,r)=>{const o={key:e.key,...i(n,r)};return S7e(P7e(o,t),o)},e._thenReplaced++)):null!==(r=t[e.key])&&void 0!==r&&r.then&&(e.then=t[e.key].then),e},E7e=e=>(t,n={})=>(n[e.key]=t,P7e({...e},n)),C7e="deserializeAst",T7e=E7e({key:C7e,editor:{insertData:{format:"application/x-slate-fragment",getFragment:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch(e){}return n}}}}),$7e="editorProtocol",Q7e=E7e({key:$7e,withOverrides:e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,i=()=>{((e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const i=null===(n=((e,t={})=>g1e(e,{...t,block:!0}))(e,t))||void 0===n?void 0:n[1];return!!i&&(B1e(e,r.focus,i)||n2e(e.selection)&&B1e(e,r.anchor,i))})(e)&&(e=>{const t=W1e(e);t&&Object.keys(t).forEach((t=>{((e,t)=>{XJe.removeMark(e,t)})(e,t)}))})(e)};return e.deleteBackward=e=>{t(e),i()},e.deleteForward=e=>{n(e),i()},e.deleteFragment=e=>{r(e),i()},e}}),R7e="event-editor",A7e=E7e({key:R7e,handlers:{onFocus:e=>()=>{r7e.focus(e.id)},onBlur:e=>()=>{i7e.focus()===e.id&&r7e.focus(null),r7e.blur(e.id)}}}),j7e=E7e({key:"history",withOverrides:e=>(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&j0e.setSelection(t,r.selectionBefore),a1e.withoutSaving(t,(()=>{XJe.withoutNormalizing(t,(()=>{for(var e of r.operations)t.apply(e)}))})),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];a1e.withoutSaving(t,(()=>{XJe.withoutNormalizing(t,(()=>{var e=r.operations.map(FJe.inverse).reverse();for(var n of e)t.apply(n);r.selectionBefore&&j0e.setSelection(t,r.selectionBefore)}))})),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a.operations[a.operations.length-1],l=a1e.isSaving(t),u=a1e.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type)(e)),l){if(null==u&&(u=null!=a&&(0!==r.length||((e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!kJe.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!kJe.equals(e.path,t.path)))(e,s))),a&&u)a.operations.push(e);else{var c={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",c)}for(;o.length>100;)o.shift();i.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t})(e)}),D7e="inline-void",M7e=E7e({key:D7e,withOverrides:e=>{const{isInline:t,isVoid:n,markableVoid:r}=e,i=[],o=[],a=[];return e.plugins.forEach((e=>{e.isInline&&o.push(e.type),e.isVoid&&i.push(e.type),e.isMarkableVoid&&a.push(e.type)})),e.isInline=e=>!!o.includes(e.type)||t(e),e.isVoid=e=>!!i.includes(e.type)||n(e),e.markableVoid=e=>!!a.includes(e.type)||r(e),e}}),I7e=(e,t)=>{const n=[];return[...e.plugins].reverse().forEach((e=>{var r;const i=null===(r=e.inject.pluginsByKey)||void 0===r?void 0:r[t.key];i&&n.push(i)})),[t,...n]},z7e=(e,{data:t,dataTransfer:n})=>e.every((e=>{var r,i;const o=null===(r=e.editor)||void 0===r||null===(i=r.insertData)||void 0===i?void 0:i.query;return!o||o({data:t,dataTransfer:n})})),W7e="insertData",N7e=E7e({key:W7e,withOverrides:e=>{const{insertData:t}=e;return e.insertData=n=>{const r=[...e.plugins].reverse().some((t=>{var r;const i=t.editor.insertData;if(!i)return!1;const o=I7e(e,t),{format:a,getFragment:s}=i;if(!a)return!1;let l=n.getData(a);if(!l)return;if(!z7e(o,{data:l,dataTransfer:n}))return!1;l=((e,{data:t,dataTransfer:n})=>(e.forEach((e=>{var r,i;const o=null===(r=e.editor)||void 0===r||null===(i=r.insertData)||void 0===i?void 0:i.transformData;o&&(t=o(t,{dataTransfer:n}))})),t))(o,{data:l,dataTransfer:n});let u=null==s?void 0:s({data:l,dataTransfer:n});return!(null===(r=u)||void 0===r||!r.length||(u=((e,{fragment:t,...n})=>(e.forEach((e=>{var r,i;const o=null===(r=e.editor)||void 0===r||null===(i=r.insertData)||void 0===i?void 0:i.transformFragment;o&&(t=o(t,n))})),t))(o,{fragment:u,data:l,dataTransfer:n}),0===u.length||(((e,t,{fragment:n,...r})=>{k1e(e,(()=>{t.some((e=>{var t,i,o;return!0===(null===(t=e.editor)||void 0===t||null===(i=t.insertData)||void 0===i||null===(o=i.preInsert)||void 0===o?void 0:o.call(i,n,r))})),e.insertFragment(n)}))})(e,o,{fragment:u,data:l,dataTransfer:n}),0)))}));r||t(n)},e}}),L7e="p",F7e="nodeFactory",U7e=E7e({key:F7e,withOverrides:e=>(e.blockFactory=t=>({type:H7e(e,L7e),children:[{text:""}],...t}),e.childrenFactory=()=>[e.blockFactory()],e)}),X7e="prevSelection",q7e=E7e({key:X7e,handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},withOverrides:e=>{const{apply:t}=e;return e.apply=n=>{if("set_selection"===n.type){const{properties:r}=n;return e.prevSelection=r,t(n),void(e.currentKeyboardEvent=null)}t(n)},e}}),B7e=E7e({key:"react",withOverrides:e=>function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{apply:r,onChange:i,deleteBackward:o,addMark:a,removeMark:s}=n;return L3e.set(n,new WeakMap),n.addMark=(e,t)=>{var r,i;null===(r=V3e.get(n))||void 0===r||r(),!Y3e.get(n)&&null!==(i=G3e.get(n))&&void 0!==i&&i.length&&Y3e.set(n,null),Z3e.delete(n),a(e,t)},n.removeMark=e=>{var t;!Y3e.get(n)&&null!==(t=G3e.get(n))&&void 0!==t&&t.length&&Y3e.set(n,null),Z3e.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return o(e);if(n.selection&&AJe.isCollapsed(n.selection)){var t=XJe.above(n,{match:e=>DJe.isElement(e)&&XJe.isBlock(n,e),at:n.selection});if(t){var[,r]=t,i=XJe.range(n,r,n.selection.anchor),a=((e,t)=>{var n=XJe.range(e,AJe.end(t)),r=Array.from(XJe.positions(e,{at:t})),i=0,o=r.length,a=Math.floor(o/2);if(P5e(e,XJe.range(e,r[i]),n))return XJe.range(e,r[i],n);if(r.length<2)return XJe.range(e,r[r.length-1],n);for(;a!==r.length&&a!==i;)P5e(e,XJe.range(e,r[a]),n)?o=a:i=a,a=Math.floor((i+o)/2);return XJe.range(e,r[o],n)})(n,i);AJe.isCollapsed(a)||j0e.delete(n,{at:a})}}},n.apply=e=>{var t=[],i=G3e.get(n);if(null!=i&&i.length){var o=i.map((t=>function(e,t){var{path:n,diff:r,id:i}=e;switch(t.type){case"insert_text":return!kJe.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:i,path:n};case"remove_text":return!kJe.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:i,path:n};case"split_node":return!kJe.equals(t.path,n)||t.position>=r.end?{diff:r,id:i,path:kJe.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:i,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:i,path:kJe.transform(n,t,{affinity:"forward"})};case"merge_node":return kJe.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:i,path:kJe.transform(n,t)}:{diff:r,id:i,path:kJe.transform(n,t)}}var o=kJe.transform(n,t);return o?{diff:r,path:o,id:i}:null}(t,e))).filter(Boolean);G3e.set(n,o)}var a=K3e.get(n);a&&K3e.set(n,x4e(n,a,e));var s=H3e.get(n);if(null!=s&&s.at){var l=YJe.isPoint(null==s?void 0:s.at)?k4e(n,s.at,e):x4e(n,s.at,e);H3e.set(n,l?C5e(C5e({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":t.push(...T5e(n,e.path));break;case"set_selection":var u;null===(u=q3e.get(n))||void 0===u||u.unref(),q3e.delete(n);break;case"insert_node":case"remove_node":t.push(...T5e(n,kJe.parent(e.path)));break;case"merge_node":var c=kJe.previous(e.path);t.push(...T5e(n,c));break;case"move_node":var d=kJe.common(kJe.parent(e.path),kJe.parent(e.newPath));t.push(...T5e(n,d))}for(var[f,h]of(r(e),t)){var[p]=XJe.node(n,f);N3e.set(p,h)}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[i,o]=AJe.edges(r),a=XJe.void(n,{at:i.path}),s=XJe.void(n,{at:o.path});if(!AJe.isCollapsed(r)||a){var l=m4e.toDOMRange(n,r),u=l.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),s){var[d]=s,f=l.cloneRange(),h=m4e.toDOMNode(n,d);f.setEndAfter(h),u=f.cloneContents()}if(a&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),s4e(c)){var p=c.ownerDocument.createElement("span");p.style.whiteSpace="pre",p.appendChild(c),u.appendChild(p),c=p}var m=n.getFragment(),g=JSON.stringify(m),v=window.btoa(encodeURIComponent(g));c.setAttribute("data-slate-fragment",v),e.setData("application/".concat(t),v);var O=u.ownerDocument.createElement("div");return O.appendChild(u),O.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(O),e.setData("text/html",O.innerHTML),e.setData("text/plain",c4e(O)),u.ownerDocument.body.removeChild(O),e}}},n.insertData=e=>{n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=e=>{var r=e.getData("application/".concat(t))||(e=>{var t=e.getData("text/html"),[,n]=t.match(d4e)||[];return n})(e);if(r){var i=decodeURIComponent(window.atob(r)),o=JSON.parse(i);return n.insertFragment(o),!0}return!1},n.insertTextData=e=>{var t=e.getData("text/plain");if(t){var r=t.split(/\r\n|\r|\n/),i=!1;for(var o of r)i&&j0e.splitNodes(n,{always:!0}),n.insertText(o),i=!0;return!0}return!1},n.onChange=e=>{(O3e<18?NC.unstable_batchedUpdates:e=>e())((()=>{var t=B3e.get(n);t&&t(),i(e)}))},n}(e)}),V7e="\r",Y7e="\n",Z7e=" ",G7e=(e,t)=>{var n;return null!==(n=(e=>{var t;return null!==(t=null==e?void 0:e.pluginsByKey)&&void 0!==t?t:{}})(e)[t])&&void 0!==n?n:{key:t}},H7e=(e,t)=>{var n,r;return null!==(n=null!==(r=G7e(e,t).type)&&void 0!==r?r:t)&&void 0!==n?n:""},K7e=(e,t,n)=>(e=((e,t,n)=>{const r=((e,t)=>e.some(((e,n,r)=>{const i=r[n-1];return 0!==n&&t(e)!==t(i)})))(e,t),{fragment:i}=e.reduce(((e,i)=>{if(r&&t(i)){let t=e.precedingBlock;t||(t=n(),e.precedingBlock=t,e.fragment.push(t)),t.children.push(i)}else e.fragment.push(i),e.precedingBlock=null;return e}),{fragment:[],precedingBlock:null});return i})(e=(e=>0===e.length?[{text:""}]:e)(e),t,n),e=e.map((e=>f1e(e)?{...e,children:K7e(e.children,t,n)}:e)),e);function J7e(e){return"[object Object]"===Object.prototype.toString.call(e)}function eet(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tet=new WeakMap,net=new WeakMap;class ret{}class iet extends ret{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}class oet extends ret{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}var aet=e=>net.get(e);function set(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uet(e){for(var t=1;t{var t=[],n=e=>{if(null!=e){var r=t[t.length-1];if("string"==typeof e){var i={text:e};cet.add(i),e=i}if(n0e.isText(e)){var o=e;n0e.isText(r)&&cet.has(r)&&cet.has(o)&&n0e.equals(r,o,{loose:!0})?r.text+=o.text:t.push(o)}else if(DJe.isElement(e))t.push(e);else{if(!(e instanceof ret))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];n0e.isText(a)||(n(""),a=t[t.length-1]),e instanceof iet?((e,t)=>{var n=e.text.length;tet.set(e,[n,t])})(a,e):e instanceof oet&&((e,t)=>{var n=e.text.length;net.set(e,[n,t])})(a,e)}}};for(var r of e.flat(1/0))n(r);return t};function fet(e,t,n){return uet(uet({},t),{},{children:det(n)})}function het(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pet(e){for(var t=1;t{var r,i=[];for(var o of n)AJe.isRange(o)?r=o:i.push(o);var a,s=det(i),l={},u=met();for(var[c,d]of(Object.assign(u,t),u.children=s,WJe.texts(u))){var f=(a=c,tet.get(a)),h=aet(c);if(null!=f){var[p]=f;l.anchor={path:d,offset:p}}if(null!=h){var[m]=h;l.focus={path:d,offset:m}}}if(l.anchor&&!l.focus)throw new Error("Slate hyperscript ranges must have both `` and `` defined if one is defined, but you only defined ``. For collapsed selections, use `` instead.");if(!l.anchor&&l.focus)throw new Error("Slate hyperscript ranges must have both `` and `` defined if one is defined, but you only defined ``. For collapsed selections, use `` instead.");return null!=r?u.selection=r:AJe.isRange(l)&&(u.selection=l),u}),element:fet,focus:function(e,t,n){return new oet(t)},fragment:function(e,t,n){return det(n)},selection:function(e,t,n){var r=n.find((e=>e instanceof iet)),i=n.find((e=>e instanceof oet));if(!r||null==r.offset||null==r.path)throw new Error("The hyperscript tag must have an tag as a child with `path` and `offset` attributes defined.");if(!i||null==i.offset||null==i.path)throw new Error("The hyperscript tag must have a tag as a child with `path` and `offset` attributes defined.");return uet({anchor:{offset:r.offset,path:r.path},focus:{offset:i.offset,path:i.path}},t)},text:function(e,t,n){var r=det(n);if(r.length>1)throw new Error("The hyperscript tag must only contain a single node's worth of children.");var[i]=r;if(null==i&&(i={text:""}),!n0e.isText(i))throw new Error("\n The hyperscript tag can only contain text content as children.");return cet.delete(i),Object.assign(i,t),i}},vet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=(e=>{var t={},n=function(n){var r=e[n];if("object"!=typeof r)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(n,"> tag you passed: ").concat(r));t[n]=(e,t,n)=>fet(0,pet(pet({},r),t),n)};for(var r in e)n(r);return t})(t);return(e=>function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o"));return null==n&&(n={}),function(e){var t,n;return!1!==J7e(e)&&(void 0===(t=e.constructor)||!1!==J7e(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}(n)||(i=[n].concat(i),n={}),a(t,n,i=i.filter((e=>Boolean(e))).flat())})(pet(pet(pet({},get),n),e.creators))}();const Oet=(e,t)=>Array.from(t.childNodes).flatMap(xet(e));var yet=function(){if(!arguments.length)return[];var e=arguments[0];return Z6e(e)?e:[e]};const bet=(e,t,{element:n,deserializeLeaf:r})=>{var i;const{deserializeHtml:o,isElement:a,isLeaf:s,type:l}=t;if(!o)return;const{attributeNames:u,query:c,isLeaf:d,isElement:f,rules:h}=o;let{getNode:p}=o;const m=f||a,g=d||s;if(!r&&!m)return;if(r&&!g)return;if(h){const e=h.some((({validNodeName:e="*",validStyle:r,validClassName:i,validAttribute:o})=>{if(e){const t=yet(e);if(t.length>0&&!t.includes(n.nodeName)&&"*"!==e)return!1}if(i&&!n.classList.contains(i))return!1;if(r)for(const[e,i]of Object.entries(r)){var a;if(!yet(i).includes(n.style[e])&&"*"!==i)return;if("*"===i&&!n.style[e])return;const r=null===(a=t.inject.props)||void 0===a?void 0:a.defaultNodeValue;if(r&&r===n.style[e])return!1}if(o)if("string"==typeof o){if(!n.getAttributeNames().includes(o))return!1}else for(const[e,t]of Object.entries(o)){const r=yet(t),i=n.getAttribute(e);if(!aJe(i)||!r.includes(i))return!1}return!0}));if(!e)return}if(c&&!c(n))return;if(!p)if(m)p=()=>({type:l});else{if(!g)return;p=()=>({[l]:!0})}let v=null!==(i=p(n,{}))&&void 0!==i?i:{};if(0!==Object.keys(v).length){if(I7e(e,t).forEach((e=>{var t,r;const i=null===(t=e.deserializeHtml)||void 0===t||null===(r=t.getNode)||void 0===r?void 0:r.call(t,n,v);i&&(v={...v,...i})})),u){const e={},t=n.getAttributeNames();for(const r of t)u.includes(r)&&(e[r]=n.getAttribute(r));Object.keys(e).length>0&&(v.attributes=e)}return{...o,node:v}}},wet=e=>e.nodeType===Node.TEXT_NODE,ket=e=>e.nodeType===Node.ELEMENT_NODE,xet=e=>t=>{const n=(e=>{if(wet(e)){var t,n;const r=null!==(t=null===(n=e.textContent)||void 0===n?void 0:n.replace(/^\n+|\n+$/g,""))&&void 0!==t?t:"";return r.length>0?r:null}})(t);if(n)return n;if(!ket(t))return null;const r=(e=>{if("BR"===e.nodeName)return"\n"})(t);if(r)return r;const i=((e,t)=>{if("BODY"===t.nodeName)return vet("fragment",{},Oet(e,t))})(e,t);if(i)return i;const o=((e,t)=>{const n=((e,t)=>{let n;return[...e.plugins].reverse().some((r=>(n=bet(e,r,{element:t}),!!n))),n})(e,t);if(n){var r;const{node:i,withoutChildren:o}=n;let a=null!==(r=i.children)&&void 0!==r?r:Oet(e,t);return(0===a.length||o)&&(a=[{text:""}]),vet("element",i,a)}})(e,t);return o||((e,t)=>{const n=((e,t)=>{let n={};return[...e.plugins].reverse().forEach((r=>{const i=bet(e,r,{element:t,deserializeLeaf:!0});i&&(n={...n,...i.node})})),n})(e,t);return Oet(e,t).reduce(((e,t)=>{if(!t)return e;if(f1e(t))Object.keys(n).length>0&&Utt({node:t,source:n,query:{filter:([e])=>x1e(e)}}),e.push(t);else{const r={...n};x1e(t)&&t.text&&Object.keys(r).forEach((e=>{r[e]&&t[e]&&(r[e]=t[e])})),e.push(vet("text",r,t))}return e}),[])})(e,t)},_et=(e,{element:t,stripWhitespace:n=!0})=>{"string"==typeof t&&(t=((e,t=!0)=>{const n=document.createElement("body");return n.innerHTML=e,t&&(n.innerHTML=n.innerHTML.replaceAll(/(\r\n|[\t\n\r])/g,"")),n})(t,n));const r=((e,t)=>xet(e)(t))(e,t);return((e,{descendants:t})=>{const n=(e=>t=>x1e(t)||f1e(t)&&e.isInline(t))(e),r=H7e(e,L7e),i=(o=r,()=>({type:o,children:[]}));var o;return K7e(t,n,i)})(e,{descendants:r})},Pet="deserializeHtml",Eet=E7e({key:Pet,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=(r=t,(new DOMParser).parseFromString(r,"text/html"));var r;return _et(e,{element:n.body})}}}})}),Cet=(e,t)=>{if(!t(e))return;let n=e.firstChild;for(;n;){const r=n,i=n.previousSibling;n=n.nextSibling,Cet(r,t),r.previousSibling||r.nextSibling||r.parentNode||!n||i===n.previousSibling||!n.parentNode?r.previousSibling||r.nextSibling||r.parentNode||!n||n.previousSibling||n.nextSibling||n.parentNode||(i?n=i.nextSibling?i.nextSibling.nextSibling:null:e.firstChild&&(n=e.firstChild.nextSibling)):n=i?i.nextSibling:e.firstChild}},Tet=(e,t)=>{Cet(e,(e=>!ket(e)||t(e)))},$et=e=>{Tet(e,(e=>{if("BR"!==e.tagName)return!0;const t=document.createTextNode(Y7e);return e.parentElement&&e.parentElement.replaceChild(t,e),!1}))},Qet=new Set(["BR","IMG","TH","TD"]),Ret=e=>{if((e=>!Qet.has(e.nodeName)&&!e.innerHTML.trim())(e)){const{parentElement:t}=e;e.remove(),t&&Ret(t)}},Aet=(e,t)=>{const n=document.createElement(t);n.innerHTML=e.innerHTML;for(const{name:t}of e.attributes){const r=e.getAttribute(t);r&&n.setAttribute(t,r)}return e.parentNode&&e.parentNode.replaceChild(n,e),n},jet=e=>{e.outerHTML=e.innerHTML},Det=e=>{((e,t)=>{Cet(e,(e=>!wet(e)||(e=>{if(/^\n\s*$/.test(e.data)&&(e.previousElementSibling||e.nextElementSibling))return e.remove(),!0;if(e.data=e.data.replaceAll(/\n\s*/g,"\n"),e.data.includes(V7e)||e.data.includes(Y7e)||e.data.includes(" ")){const t=e.data.includes(Z7e),n=/\S/.test(e.data),r=e.data.includes(Y7e);if(!t&&!n&&!r)return" "===e.data?(e.data=Z7e,!0):(e.remove(),!0);if(e.previousSibling&&"BR"===e.previousSibling.nodeName&&e.parentElement){e.previousSibling.remove();const t=e.data.match(/^[\n\r]+/),n=t?t[0].length:0;e.data=e.data.slice(Math.max(0,n)).replaceAll(new RegExp(Y7e,"g"),Z7e).replaceAll(new RegExp(V7e,"g"),Z7e),e.data=`\n${e.data}`}else e.data=e.data.replaceAll(new RegExp(Y7e,"g"),Z7e).replaceAll(new RegExp(V7e,"g"),Z7e)}return!0})(e)))})(e)},Met=e=>/^(?:address|blockquote|body|center|dir|div|dl|fieldset|form|h[1-6]|hr|isindex|menu|noframes|noscript|ol|p|pre|table|ul|dd|dt|frameset|li|tbody|td|tfoot|th|thead|tr|html)$/i.test(e.nodeName),Iet=e=>{Tet(e,(e=>{const t=e;if(!e.getAttribute("style"))return!0;if(Met(t)&&!(e=>"TABLE"===e.nodeName)(t)){const{style:{backgroundColor:n,color:r,fontFamily:i,fontSize:o,fontStyle:a,fontWeight:s,textDecoration:l}}=t;if(n||r||i||o||a||s||l){const n=document.createElement("span");["initial","inherit"].includes(r)||(n.style.color=r),n.style.fontFamily=i,n.style.fontSize=o,["normal","initial","inherit"].includes(r)||(n.style.fontStyle=a),["normal",400].includes(s)||(n.style.fontWeight=s),n.style.textDecoration=l,n.innerHTML=t.innerHTML,e.innerHTML=n.outerHTML}}return!0}))},zet=(e,t)=>!!((e,t)=>{let n=null;return Tet(e,(e=>!t(e)||(n=e,!1))),n})(e,t),Wet=()=>NodeFilter.FILTER_ACCEPT,Net=e=>{const t=[],n=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode:Wet});let r=n.nextNode();for(;r;)r.nodeValue&&t.push(r.nodeValue),r=n.nextNode();return t},Let=e=>e.nodeType===Node.COMMENT_NODE,Fet=e=>`${e.trim().replaceAll(new RegExp("​","g"),"")}`,Uet=[e=>(e=>{const t=e.indexOf("{const t=e.lastIndexOf("");return-1===t?e:e.slice(0,Math.max(0,t+7))})(e)),e=>e.replaceAll(/(\r\n|\r)/g,"\n")],Xet=(e,t,n)=>{const r=e=>Let(e)&&e.data===n;((e,n)=>{Cet(e,(e=>!Let(e)||(e=>{if(e.data===t){let t=e.nextSibling;for(e.remove();t&&!r(t);){const{nextSibling:e}=t;t.remove(),t=e}t&&r(t)&&t.remove()}return!0})(e)))})(e)};var qet=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++is))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=2&n?new Het:void 0;for(o.set(e,t),o.set(t,e);++d{const n={...t},{then:r}=n;if(r){delete n.then;const{plugins:t}=n,i=_tt(e,S7e(r(e,n),n));if(t&&i.plugins){const e=ktt(btt(t,"key"),btt(i.plugins,"key"));i.plugins=xtt(e)}return i}return n},Stt=(e,t)=>{t&&t.forEach((t=>{let n=(e=>(void 0===e.type&&(e.type=e.key),e.options||(e.options={}),e.inject||(e.inject={}),e.editor||(e.editor={}),e))(t);if(n=_tt(e,n),!1!==n.enabled){if(e.pluginsByKey[n.key]){const t=e.plugins.indexOf(e.pluginsByKey[n.key]),r=S7e(n,e.pluginsByKey[n.key]);t>=0&&(e.plugins[t]=r),e.pluginsByKey[n.key]=r}else e.plugins.push(n),e.pluginsByKey[n.key]=n;Stt(e,n.plugins)}}))},Ptt=(e,{disableCorePlugins:t,plugins:n=[]})=>{let r=[];if(!0!==t){const n=t;var i,o,a,s,l,u,c,d,f,h,p,m,g,v,O,y,b,w,k,x;"object"==typeof n&&null!=n&&n.react||r.push(null!==(i=null==e||null===(o=e.pluginsByKey)||void 0===o?void 0:o.react)&&void 0!==i?i:B7e()),"object"==typeof n&&null!=n&&n.history||r.push(null!==(a=null==e||null===(s=e.pluginsByKey)||void 0===s?void 0:s.history)&&void 0!==a?a:j7e()),"object"==typeof n&&null!=n&&n.nodeFactory||r.push(null!==(l=null==e||null===(u=e.pluginsByKey)||void 0===u?void 0:u[F7e])&&void 0!==l?l:U7e()),"object"==typeof n&&null!=n&&n.eventEditor||r.push(null!==(c=null==e||null===(d=e.pluginsByKey)||void 0===d?void 0:d[R7e])&&void 0!==c?c:A7e()),"object"==typeof n&&null!=n&&n.inlineVoid||r.push(null!==(f=null==e||null===(h=e.pluginsByKey)||void 0===h?void 0:h[D7e])&&void 0!==f?f:M7e()),"object"==typeof n&&null!=n&&n.insertData||r.push(null!==(p=null==e||null===(m=e.pluginsByKey)||void 0===m?void 0:m[W7e])&&void 0!==p?p:N7e()),"object"==typeof n&&null!=n&&n.selection||r.push(null!==(g=null==e||null===(v=e.pluginsByKey)||void 0===v?void 0:v[X7e])&&void 0!==g?g:q7e()),"object"==typeof n&&null!=n&&n.deserializeHtml||r.push(null!==(O=null==e||null===(y=e.pluginsByKey)||void 0===y?void 0:y[Pet])&&void 0!==O?O:Eet()),"object"==typeof n&&null!=n&&n.deserializeAst||r.push(null!==(b=null==e||null===(w=e.pluginsByKey)||void 0===w?void 0:w[C7e])&&void 0!==b?b:T7e()),"object"==typeof n&&null!=n&&n.editorProtocol||r.push(null!==(k=null==e||null===(x=e.pluginsByKey)||void 0===x?void 0:x[$7e])&&void 0!==k?k:Q7e())}r=[...r,...n],e.plugins=[],e.pluginsByKey={},Stt(e,r),e.plugins.forEach((t=>{if(t.overrideByKey){const n=e.plugins.map((e=>P7e(e,t.overrideByKey)));e.plugins=[],e.pluginsByKey={},Stt(e,n)}}))},Ett=e=>()=>{console.warn(`editor.${e} should have been overriden but was not. Please report this issue here: https://github.com/udecode/plate/issues`)};var Ctt=function(e){return p8e(e,5)};const Ttt=(e,{components:t,overrideByKey:n}={})=>{let r={};return n&&(r=Ctt(n)),t&&Object.keys(t).forEach((e=>{r[e]||(r[e]={}),r[e].component=t[e]})),Object.keys(r).length>0?e.map((e=>P7e(e,r))):e},$tt=({editor:e=s1e(),plugins:t=[],components:n,overrideByKey:r,normalizeInitialValue:i,...o}={})=>{const a=((e,{id:t,plugins:n=[],disableCorePlugins:r}={})=>{let i=e;return i.id=null!=t?t:i.id,i.prevSelection=null,i.currentKeyboardEvent=null,i.reset=()=>Ett("reset"),i.redecorate=()=>Ett("redecorate"),i.plate={get set(){return null}},i.key||(i.key=Math.random()),Ptt(i,{plugins:n,disableCorePlugins:r}),i.plugins.forEach((e=>{e.withOverrides&&(i=e.withOverrides(i,e))})),i})(e,{plugins:t=Ttt(t,{components:n,overrideByKey:r}),...o});return i&&V1e(a,{force:!0}),a},Qtt=(e,t)=>{var n;return null!==(n=G7e(e,t).options)&&void 0!==n?n:{}},Rtt=e=>`slate-${e}`,Att=({attributes:e,nodeProps:t,props:n,type:r})=>{let i={};var o;n&&(i=null!==(o="function"==typeof n?n(t):n)&&void 0!==o?o:{}),!i.nodeProps&&e&&(i.nodeProps=e),(t={...t,...i}).nodeProps&&Object.keys(t.nodeProps).forEach((e=>{var n,r;void 0===(null===(n=t.nodeProps)||void 0===n?void 0:n[e])&&(null===(r=t.nodeProps)||void 0===r||delete r[e])}));const{className:a}=t;return{...t,className:Q5e(Rtt(r),a)}};var jtt=e6e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}));!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(jtt),jtt.isHotkey,jtt.isCodeHotkey;var Dtt=jtt.isKeyHotkey;jtt.parseHotkey,jtt.compareHotkey,jtt.toKeyCode,jtt.toKeyName;const Mtt={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",splitBlock:"enter",tab:"tab",untab:"shift+tab",undo:"mod+z"},Itt={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},ztt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Wtt=e=>{const t=Mtt[e],n=Itt[e],r=ztt[e],i=t&&Dtt(t),o=n&&Dtt(n),a=r&&Dtt(r);return e=>!(!i||!i(e))||!!(KKe&&o&&o(e))||!(KKe||!a||!a(e))},Ntt=e=>(t,n,{composing:r}={})=>!!Wtt(e)(n)&&!!r===(e=>m4e.isComposing(e))(t),Ltt={isBold:Wtt("bold"),isCompose:Wtt("compose"),isMoveBackward:Wtt("moveBackward"),isMoveForward:Wtt("moveForward"),isDeleteBackward:Wtt("deleteBackward"),isDeleteForward:Wtt("deleteForward"),isDeleteLineBackward:Wtt("deleteLineBackward"),isDeleteLineForward:Wtt("deleteLineForward"),isDeleteWordBackward:Wtt("deleteWordBackward"),isDeleteWordForward:Wtt("deleteWordForward"),isExtendBackward:Wtt("extendBackward"),isExtendForward:Wtt("extendForward"),isExtendLineBackward:Wtt("extendLineBackward"),isExtendLineForward:Wtt("extendLineForward"),isItalic:Wtt("italic"),isMoveLineBackward:Wtt("moveLineBackward"),isMoveLineForward:Wtt("moveLineForward"),isMoveWordBackward:Wtt("moveWordBackward"),isMoveWordForward:Wtt("moveWordForward"),isRedo:Wtt("redo"),isSoftBreak:Wtt("insertSoftBreak"),isSplitBlock:Wtt("splitBlock"),isTab:Ntt("tab"),isTransposeCharacter:Wtt("transposeCharacter"),isUndo:Wtt("undo"),isUntab:Ntt("untab")},Ftt=(e,t,n)=>{var r;const i=null===(r=t.inject.props)||void 0===r?void 0:r.validTypes;if(!i)return;const o=((e,t)=>{const n=yet(t);return Object.values(e.pluginsByKey).filter((e=>n.includes(e.type))).map((e=>e.key))})(e,i),a={};return o.forEach((e=>{a[e]=n})),{inject:{pluginsByKey:a}}},Utt=e=>{p7e({...e,apply:ktt})},Xtt=e=>({key:"",type:"",editor:{},inject:{},options:{},...e});const qtt=(e,t)=>{let n=Ctt(t);if(e.plugins.forEach((e=>{var t;const r=null===(t=e.normalizeInitialValue)||void 0===t?void 0:t.call(e,n);r&&(n=r)})),!function(e,t){return dtt(e,t)}(t,n))return n},Btt=(e,t)=>{if(!t)return!1;const n=t(e);return null!=n?n:e.isPropagationStopped()},Vtt=(e,t)=>(e.plugins.forEach((e=>{if(e.inject.props){const n=((e,{key:t,inject:{props:n}},r)=>{var i;const{element:o,text:a,className:s,style:l}=r,u=null!=o?o:a;if(!u)return;if(!n)return;const{nodeKey:c=t,styleKey:d=c,validTypes:f,classNames:h,transformClassName:p,transformNodeValue:m,transformProps:g,transformStyle:v,validNodeValues:O,defaultNodeValue:y,query:b}=n,w=null==b?void 0:b(n,r);if(!w&&f&&f1e(u)&&u.type&&!f.includes(u.type))return;const k=u[c];if(!w&&(!aJe(k)||O&&!O.includes(k)||k===y))return;const x={...r,nodeValue:k},_=null!==(i=null==m?void 0:m(x))&&void 0!==i?i:k;x.value=_;let S={};var P,E,C;return o&&(S.className=Q5e(s,`slate-${c}-${k}`)),(null!=h&&h[k]||p)&&(S.className=null!==(P=null==p?void 0:p(x))&&void 0!==P?P:Q5e(s,null==h?void 0:h[_])),d&&(S.style=null!==(E=null==v?void 0:v(x))&&void 0!==E?E:{...l,[d]:_}),g&&(S=null!==(C=g(x,S))&&void 0!==C?C:S),S})(0,e,t);n&&(t={...t,...n})}})),{...t,editor:e}),Ytt=e=>c7e(e).editor(),Ztt=e=>(c7e(e).keySelection(),Ytt(e).selection),Gtt=["onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onDOMBeforeInput","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Htt=({id:e,...t}={})=>{var n,r,i;const o=Ytt(e),a=c7e(e),s=a.keyDecorate(),l=a.readOnly(),u=null===(n=a.decorate())||void 0===n?void 0:n.fn,d=null===(r=a.renderLeaf())||void 0===r?void 0:r.fn,f=null===(i=a.renderElement())||void 0===i?void 0:i.fn,h=(0,c.useMemo)((()=>((e,t)=>{const n=e.plugins.flatMap((t=>{var n,r;return null!==(n=null===(r=t.decorate)||void 0===r?void 0:r.call(t,e,t))&&void 0!==n?n:[]}));if(t&&n.push(t),0!==n.length)return e=>{let t=[];return n.forEach((n=>{var r;null!=(r=n(e))&&r.length&&(t=[...t,...r])})),t}})(o,null!=u?u:null==t?void 0:t.decorate)),[null==t?void 0:t.decorate,o,u]),p=(0,c.useMemo)((()=>{if(s&&h)return e=>h(e)}),[h,s]),m=(0,c.useMemo)((()=>((e,t)=>{const n=[];return e.plugins.forEach((t=>{t.isElement&&n.push(((e,{key:t,type:n,component:r,props:i})=>function(o){const{element:a,children:s}=o;if(a.type===n){const l=null!=r?r:B4e,u=e.plugins.flatMap((e=>{var t,n;return null!==(t=null===(n=e.inject)||void 0===n?void 0:n.aboveComponent)&&void 0!==t?t:[]})),d=e.plugins.flatMap((e=>{var t,n;return null!==(t=null===(n=e.inject)||void 0===n?void 0:n.belowComponent)&&void 0!==t?t:[]}));o=Att({attributes:a.attributes,nodeProps:o,props:i,type:n});let f=s;d.forEach((e=>{const n=e({...o,key:t});n&&(f=n({...o,children:f}))}));let h=c.createElement(l,o,f);return u.forEach((e=>{const n=e({...o,key:t});n&&(h=n({...o,children:h}))})),c.createElement(X5e,{element:a,scope:t},h)}})(e,t))})),function(r){const i=Vtt(e,r);let o;return n.some((e=>(o=e(i),!!o))),o||(t?t(i):c.createElement(B4e,i))}})(o,null!=f?f:null==t?void 0:t.renderElement)),[null==t?void 0:t.renderElement,o,f]),g=(0,c.useMemo)((()=>((e,t)=>{const n=[];return e.plugins.forEach((e=>{e.isLeaf&&e.key&&n.push(((e,{key:t,type:n=t,component:r,props:i})=>function(e){const{leaf:t,children:o}=e;if(t[n]){const a=null!=r?r:B5e;return e=Att({attributes:t.attributes,props:i,nodeProps:e,type:n}),c.createElement(a,e,o)}return o})(0,e))})),function(r){const i=Vtt(e,r);return n.forEach((e=>{const t=e(i);void 0!==t&&(i.children=t)})),t?t(i):c.createElement(B5e,i)}})(o,null!=d?d:null==t?void 0:t.renderLeaf)),[null==t?void 0:t.renderLeaf,o,d]),v=uJe((()=>{const e={decorate:p,renderElement:m,renderLeaf:g};return aJe(l)&&(e.readOnly=l),Gtt.forEach((n=>{const r=((e,{editableProps:t,handlerKey:n})=>{let r=[];r=e.plugins.flatMap((t=>{var r,i,o;return null!==(r=null===(i=t.handlers)||void 0===i||null===(o=i[n])||void 0===o?void 0:o.call(i,e,t))&&void 0!==r?r:[]}));const i=null==t?void 0:t[n];if(0!==r.length||i)return e=>!!r.some((t=>Btt(e,t)))||Btt(e,i)})(o,{editableProps:t,handlerKey:n});r&&(e[n]=r)})),e}),[p,t,m,g,l]);return uJe((()=>({...t7e(t,[...Gtt,"renderElement","renderLeaf"]),...v})),[t,v])},Ktt=()=>v3e(),Jtt=()=>J4e();const ent=({setState:e,state:t,nextState:n,nextStateValue:r=n})=>{(0,c.useEffect)((()=>{n===t||function(e){return void 0===e}(n)||e(r)}),[e,t,n,r])},tnt=({id:e,disableCorePlugins:t,value:n,onChange:r,plugins:i,editorRef:o,decorate:a,renderElement:s,renderLeaf:l,readOnly:u})=>{const d=Ytt(e),f=f7e(e),[h,p]=f.value(),[m,g]=f.editorRef(),[v,O]=f.decorate(),[y,b]=f.renderElement(),[w,k]=f.renderLeaf(),[x,_]=f.rawPlugins(),[,S]=f.plugins(),[P,E]=f.onChange(),[C,T]=f.readOnly();ent({state:h,setState:p,nextState:n}),ent({state:C,setState:T,nextState:u}),ent({state:x,setState:S,nextState:i,nextStateValue:null!=i?i:[]}),ent({state:null==P?void 0:P.fn,setState:E,nextState:r,nextStateValue:r?{fn:r}:null}),ent({state:null==m?void 0:m.ref,setState:g,nextState:o,nextStateValue:o?{ref:o}:null}),ent({state:null==v?void 0:v.fn,setState:O,nextState:a,nextStateValue:a?{fn:a}:null}),ent({state:null==y?void 0:y.fn,setState:b,nextState:s,nextStateValue:s?{fn:s}:null}),ent({state:null==w?void 0:w.fn,setState:k,nextState:l,nextStateValue:l?{fn:l}:null}),(0,c.useEffect)((()=>{i!==x&&(_(x),Ptt(d,{plugins:i,disableCorePlugins:t}),S(d.plugins))}),[t,d,x,i,S,_])},nnt=({id:e})=>{var t;const n=Ytt(e),r=c7e(e).value(),i=d7e(e).value(),o=null===(t=c7e(e).onChange())||void 0===t?void 0:t.fn,a=(0,c.useCallback)((e=>{const t=(e=>{const t=e.plugins.flatMap((t=>{var n,r,i;return null!==(n=null===(r=t.handlers)||void 0===r||null===(i=r.onChange)||void 0===i?void 0:i.call(r,e,t))&&void 0!==n?n:[]}));return e=>t.some((t=>{if(!t)return!1;const n=t(e);return null!=n&&n}))})(n)(e);t||null==o||o(e),i(e)}),[n,i,o]);return(0,c.useMemo)((()=>({key:n.key,editor:n,onChange:a,value:r,initialValue:r})),[n,a,r])},rnt=["readOnly","plugins","onChange","decorate","renderElement","renderLeaf"],int=({id:e})=>{const t=Ktt(),n=(e=>{const t=c7e(e).editor(),n=d7e(e).editor();return(0,c.useCallback)((()=>{const e=$tt({id:t.id,plugins:t.plugins,disableCorePlugins:!0});n(e)}),[t,n])})(e),r=(e=>{const t=h7e("keyDecorate",e);return(0,c.useCallback)((()=>{t()}),[t])})(e),i=u7e(e),o=Object.fromEntries(rnt.map((e=>[e,i.set[e]()]))),a=(0,c.useMemo)((()=>o),[]);return(0,c.useEffect)((()=>{t.reset=n,t.redecorate=r,t.plate={set:a}}),[t,n,r,a]),null};function ont({plugin:e}){var t;const n=Ktt();return null===(t=e.useHooks)||void 0===t||t.call(e,n,e),null}function ant({id:e}){var t;const n=d7e(e).isRendered(),r=c7e(e).plugins(),i=Ktt(),o=null===(t=c7e(e).editorRef())||void 0===t?void 0:t.ref;return(0,c.useEffect)((()=>(n(!0),()=>{n(!1)})),[n]),(0,c.useEffect)((()=>"function"==typeof o?(o(i),()=>o(null)):o?(o.current=i,()=>{o.current=null}):void 0),[o,i]),c.createElement(c.Fragment,null,r.map((e=>c.createElement(ont,{key:e.key,plugin:e}))))}const snt=(0,c.memo)((({id:e})=>{const t=Jtt(),n=h7e("keyEditor",e),r=h7e("keySelection",e);return(0,c.useEffect)((()=>{n()})),(0,c.useEffect)((()=>{r()}),[t.selection,r]),null}));function lnt({children:e,renderEditable:t,editableRef:n,firstChildren:r,...i}){const{id:o}=i,a=Ktt(),{plugins:s}=a,l=Htt(i),u=c.createElement(h5e,W5e({ref:n},l));let d=null,f=null;s.forEach((e=>{const{renderBeforeEditable:t,renderAfterEditable:n}=e;n&&(d=c.createElement(c.Fragment,null,d,n(l))),t&&(f=c.createElement(c.Fragment,null,f,t(l)))}));let h=c.createElement(c.Fragment,null,r,f,t?t(u):u,c.createElement(int,{id:o}),c.createElement(snt,{id:o}),c.createElement(ant,{id:o}),d,e);return s.forEach((e=>{const{renderAboveEditable:t}=e;t&&(h=t({children:h}))})),h}function unt({children:e,...t}){return tnt(t),c.createElement(c.Fragment,null,e)}function cnt({normalizeInitialValue:e,...t}){const{id:n=o7e,editor:r,initialValue:i,value:o,children:a,plugins:s,disableCorePlugins:l,onChange:u,editorRef:d,decorate:f,renderElement:h,renderLeaf:p,readOnly:m}=t,g=(0,c.useMemo)((()=>null!=r?r:$tt({id:n,plugins:s,disableCorePlugins:l})),[]),v=(0,c.useMemo)((()=>{let t=null!=i?i:o;t||(t=g.children.length>0?g.children:g.childrenFactory());const n=qtt(g,t);return n&&(t=n),g.children=t,e&&V1e(g,{force:!0}),g.children}),[]);return c.createElement(FGe,{initialValues:[[l7e.atom.id,n],[l7e.atom.editor,g],[l7e.atom.plugins,g.plugins],[l7e.atom.rawPlugins,s],[l7e.atom.readOnly,m],[l7e.atom.value,v],[l7e.atom.decorate,{fn:f}],[l7e.atom.onChange,{fn:u}],[l7e.atom.editorRef,{ref:d}],[l7e.atom.renderElement,{fn:h}],[l7e.atom.renderLeaf,{fn:p}]],scope:n},c.createElement(FGe,{initialValues:[[s7e,n]],scope:a7e},c.createElement(unt,t,a)))}function dnt(e){const{id:t}=e;return c.createElement(cnt,W5e({key:null==t?void 0:t.toString()},e))}function fnt({id:e,children:t}){const n=nnt({id:e}),{plugins:r}=c7e(e).editor();let i=c.createElement(_5e,n,t);return null==r||r.forEach((e=>{const{renderAboveSlate:t}=e;t&&(i=t({children:i}))})),i}function hnt({children:e,editableRef:t,firstChildren:n,renderEditable:r,editableProps:i,...o}){const{id:a=o7e}=o,s=c7e(a).id(),l=c.createElement(fnt,{id:a},c.createElement(lnt,W5e({id:a,editableRef:t,firstChildren:n,renderEditable:r},i),e));return s?l:c.createElement(dnt,o,l)}const pnt=(e,t,n)=>{const{activeType:r,inactiveType:i=H7e(e,L7e)}=t;if(!r||!e.selection)return;const o=m2e(e,{...n,match:{type:r}});o&&r===i||g2e(e,{type:o?i:r})};function mnt(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}const gnt=(0,c.forwardRef)(((e,t)=>{const{children:n,...r}=e,i=c.Children.toArray(n),o=i.find(ynt);if(o){const e=o.props.children,n=i.map((t=>t===o?c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null:t));return(0,c.createElement)(vnt,tT({},r,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(vnt,tT({},r,{ref:t}),n)}));gnt.displayName="Slot";const vnt=(0,c.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...bnt(r,n.props),ref:t?mnt(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null}));vnt.displayName="SlotClone";const Ont=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function ynt(e){return(0,c.isValidElement)(e)&&e.type===Ont}function bnt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const wnt=(e,t)=>{try{const{match:n,at:r=e.selection,reverse:i=!1,voids:o=!1}=t;if(!r)return;let a,s;if(qJe(r))[a,s]=r;else if(AJe.isRange(r)){const t=L1e(e,r,{edge:"start"}),n=L1e(e,r,{edge:"end"});a=i?n:t,s=i?t:n}let l=[e,[]];kJe.isPath(r)&&(l=N1e(e,r));const u=((e,t)=>WJe.descendants(e,t))(l[0],{reverse:i,from:a,to:s,pass:([t])=>!o&&D1e(e,t)});for(const[e,t]of u)if(p1e(e,t,n))return[e,r.concat(t)]}catch(e){return}},knt=(e,t={})=>g1e(e,{...t,block:!0}),xnt=e=>{const[t,n]=e;if(e2e(t)){const{children:e}=t;return e.map(((e,t)=>[e,n.concat([t])]))}return[]},_nt=e=>{const t=(e=>{const[t,n]=e;if(x1e(t))return null;if(0===t.children.length)return null;const r=t.children;return[r.at(-1),n.concat([r.length-1])]})(e);return t?t[1]:e[1].concat([-1])},Snt=(e,t)=>{const n=_nt(e);return kJe.equals(n,t)},Pnt=(e,t)=>{if(!(t+1&&e2e(e)))return e;const{children:n}=e,r=n.at(-1);return Pnt(r,t-1)},Ent=(e,t)=>{const n=((e,t)=>XJe.next(e,t))(e,{at:t});if(n)return A1e(e,n[1])};var Cnt=Array.isArray,Tnt=function(){if(!arguments.length)return[];var e=arguments[0];return Cnt(e)?e:[e]},$nt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n-1},jnt.prototype.set=function(e,t){var n=this.__data__,r=Rnt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Dnt=jnt,Mnt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Int(e,t){return e(t={exports:{}},t.exports),t.exports}var znt="object"==typeof Mnt&&Mnt&&Mnt.Object===Object&&Mnt,Wnt="object"==typeof self&&self&&self.Object===Object&&self,Nnt=znt||Wnt||Function("return this")(),Lnt=Nnt.Symbol,Fnt=Object.prototype,Unt=Fnt.hasOwnProperty,Xnt=Fnt.toString,qnt=Lnt?Lnt.toStringTag:void 0,Bnt=Object.prototype.toString,Vnt=Lnt?Lnt.toStringTag:void 0,Ynt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Vnt&&Vnt in Object(e)?function(e){var t=Unt.call(e,qnt),n=e[qnt];try{e[qnt]=void 0;var r=!0}catch(e){}var i=Xnt.call(e);return r&&(t?e[qnt]=n:delete e[qnt]),i}(e):function(e){return Bnt.call(e)}(e)},Znt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Gnt=function(e){if(!Znt(e))return!1;var t=Ynt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Hnt=Nnt["__core-js_shared__"],Knt=function(){var e=/[^.]+$/.exec(Hnt&&Hnt.keys&&Hnt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Jnt=Function.prototype.toString,ert=function(e){if(null!=e){try{return Jnt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},trt=/^\[object .+?Constructor\]$/,nrt=Function.prototype,rrt=Object.prototype,irt=nrt.toString,ort=rrt.hasOwnProperty,art=RegExp("^"+irt.call(ort).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),srt=function(e){return!(!Znt(e)||function(e){return!!Knt&&Knt in e}(e))&&(Gnt(e)?art:trt).test(ert(e))},lrt=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return srt(n)?n:void 0},urt=lrt(Nnt,"Map"),crt=lrt(Object,"create"),drt=Object.prototype.hasOwnProperty,frt=Object.prototype.hasOwnProperty;function hrt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=2&n?new wrt:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},qrt={};qrt["[object Float32Array]"]=qrt["[object Float64Array]"]=qrt["[object Int8Array]"]=qrt["[object Int16Array]"]=qrt["[object Int32Array]"]=qrt["[object Uint8Array]"]=qrt["[object Uint8ClampedArray]"]=qrt["[object Uint16Array]"]=qrt["[object Uint32Array]"]=!0,qrt["[object Arguments]"]=qrt["[object Array]"]=qrt["[object ArrayBuffer]"]=qrt["[object Boolean]"]=qrt["[object DataView]"]=qrt["[object Date]"]=qrt["[object Error]"]=qrt["[object Function]"]=qrt["[object Map]"]=qrt["[object Number]"]=qrt["[object Object]"]=qrt["[object RegExp]"]=qrt["[object Set]"]=qrt["[object String]"]=qrt["[object WeakMap]"]=!1;var Brt=Int((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&znt.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),Vrt=Brt&&Brt.isTypedArray,Yrt=Vrt?function(e){return function(t){return e(t)}}(Vrt):function(e){return jrt(e)&&Xrt(e.length)&&!!qrt[Ynt(e)]},Zrt=Object.prototype.hasOwnProperty,Grt=function(e,t){var n=Cnt(e),r=!n&&Wrt(e),i=!n&&!r&&Lrt(e),o=!n&&!r&&!i&&Yrt(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n{if(t||(t=e.selection),!t)return;const[r,i]=AJe.edges(t),o=knt(e,{at:r,...n}),a=knt(e,{at:i,...n});return o||a?!o||!a||!kJe.equals(o[1],a[1]):void 0},rot=(e,t,n)=>{if(!n||!n.match&&!n.matchString)return R1e(e,t,n);const r=!n.unit||"offset"===n.unit;let i;return(n.matchString?Tnt(n.matchString):[""]).some((o=>{let a=t,s=F1e(e,t,{edge:"end"});const l=o.length+1,u=Array.from({length:l});let c=0;for(;;){var d;const h=R1e(e,a,n);if(!h)return;if(not(e,{at:{anchor:h,focus:s}}))return;const p=z1e(e,{anchor:h,focus:s});let m=p;var f;if(r&&l&&(u.unshift({point:h,text:p}),u.pop(),m=tot(u.slice(0,-1),"text").join("")),o===m||null!==(d=n.match)&&void 0!==d&&d.call(n,{beforeString:m,beforePoint:h,at:t}))return n.afterMatch?l&&r?(i=null===(f=u.at(-1))||void 0===f?void 0:f.point,!!i):(i=s,!0):(i=h,!0);if(s=h,a=h,c+=1,!n.skipInvalid&&(!o||c>=o.length))return}})),i},iot=e=>{if(0===e.length)return;const t=e.at(-1);return t<=0?void 0:e.slice(0,-1).concat(t-1)},oot=(e,t,n)=>{const r=rot(e,t,n);if(r)return{anchor:r,focus:F1e(e,t,{edge:"end"})}},aot=(e,t={})=>{var n;const r=null===(n=knt(e,t))||void 0===n?void 0:n[1];if(!r)return;const i=A1e(e,r),o=((e,{at:t=e.selection,focus:n}={})=>{let r;return AJe.isRange(t)&&(r=n?t.focus:t.anchor),YJe.isPoint(t)&&(r=t),kJe.isPath(t)&&(r={path:t,offset:0}),r})(e,t);return o?{anchor:i,focus:o}:void 0},sot=e=>z1e(e,e.selection),lot=e=>{var t;const n=null===(t=knt(e))||void 0===t?void 0:t[0];return!!n&&((e,t)=>!H1e(t)&&!t.children.some((t=>q1e(e,t))))(e,n)},uot=e=>{if(!e.selection)return!1;const t=knt(e);if(!t)return!1;const n=e.selection.focus,r=y1e(e,e.selection);if(!r)return!1;const[,i]=r;if(!X1e(e,n,i))return!1;const o=((e,t)=>{const[n,r]=e,i=t[r.length],o=[],a=n.children;if(i+10))return X1e(e,n,t[1]);for(const e of o)if(x1e(e)&&e.text)return!1;return!0},cot=(e,t)=>aJe(((e,t)=>{if(!e)return;const n=W1e(e);return null==n?void 0:n[t]})(e,t)),dot=(e,{at:t,...n}={})=>{if(t||(t=e.selection),!t)return;const[r,i]=AJe.edges(t),o=knt(e,{at:r,...n}),a=knt(e,{at:i,...n});return o&&a?kJe.equals(o[1],a[1]):void 0},fot=(e,t)=>{var n,r;const i=null===(n=knt(e,t))||void 0===n?void 0:n[1];return!!i&&X1e(e,null===(r=e.selection)||void 0===r?void 0:r.focus,i)},hot=(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const i=null===(n=knt(e,t))||void 0===n?void 0:n[1];return!!i&&(B1e(e,r.focus,i)||n2e(e.selection)&&B1e(e,r.anchor,i))},pot=e=>n2e(e.selection),mot=(e,t,n)=>{i2e(e,t,n)},got=(e,{at:t,to:n,match:r,fromStartIndex:i=0})=>{let o=0;const a=kJe.isPath(t)?t:t[1],s=kJe.isPath(t)?Z1e(e,a):t[0];if(!s)return o;if(!h1e(e,s))return o;for(let t=s.children.length-1;t>=i;t--){const i=[...a,t],s=Z1e(e,i);(!r||s&&r([s,i]))&&(P1e(e,{at:i,to:n}),o++)}return o},vot=(e,{key:t,at:n,shouldChange:r=!0,...i})=>{const o=null!=n?n:e.selection;if(t=Tnt(t),o)if(AJe.isRange(o)&&AJe.isExpanded(o))c2e(e,t,{at:o,match:x1e,split:!0,...i});else if(e.selection){var a;const n=null!==(a=W1e(e))&&void 0!==a?a:{};t.forEach((e=>{delete n[e]})),e.marks=n,r&&e.onChange()}},Oot=(e,{at:t,nodes:n,insertOptions:r,removeOptions:i})=>{k1e(e,(()=>{((e,t,n)=>{k1e(e,(()=>{for(const[,r]of((e,t,n)=>WJe.children(e,t,{reverse:!0}))(e,t))E1e(e,{...n,at:r})}))})(e,t,i),i2e(e,n,{...r,at:t.concat([0])})}))},yot=(e,{key:t,clear:n})=>{e.selection&&k1e(e,(()=>{if(cot(e,t))vot(e,{key:t});else{if(n){const t=Tnt(n);vot(e,{key:t})}e.addMark(t,!0)}}))};function bot(){return bot=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.forwardRef((({as:t,asChild:n=!1,...r},i)=>{const o=n?gnt:t||e;return c.createElement(o,bot({ref:i},r))})),kot=wot("div");function xot(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{const{ref:n,props:r}=(e=>{const{editor:t,attributes:n,nodeProps:r,element:i,elementToAttributes:o,...a}=e;return{ref:Ost(e.ref,n.ref),props:{...n,...a,...r,...null==o?void 0:o(i),className:_ot(e.className,null==r?void 0:r.className)}}})({...e,ref:t});return c.createElement(kot,bot({},r,{ref:n}))}));Sot.displayName="PlateElement";const Pot=c.forwardRef(((e,t)=>{const{ref:n,props:r}=(e=>{const{editor:t,attributes:n,nodeProps:r,text:i,leaf:o,leafToAttributes:a,...s}=e;return{ref:Ost(e.ref,n.ref),props:{...n,...s,...r,...null==a?void 0:a(o),className:_ot(e.className,null==r?void 0:r.className)}}})({...e,ref:t});return c.createElement(Sst,bot({},r,{ref:n}))}));Pot.displayName="PlateLeaf";var Eot=Array.isArray,Cot=function(){if(!arguments.length)return[];var e=arguments[0];return Eot(e)?e:[e]},Tot=function(e,t){return e===t||e!=e&&t!=t},$ot=function(e,t){for(var n=e.length;n--;)if(Tot(e[n][0],t))return n;return-1},Qot=Array.prototype.splice;function Rot(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Rot.prototype.set=function(e,t){var n=this.__data__,r=$ot(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Aot=Rot,jot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Dot(e,t){return e(t={exports:{}},t.exports),t.exports}var Mot="object"==typeof jot&&jot&&jot.Object===Object&&jot,Iot="object"==typeof self&&self&&self.Object===Object&&self,zot=Mot||Iot||Function("return this")(),Wot=zot.Symbol,Not=Object.prototype,Lot=Not.hasOwnProperty,Fot=Not.toString,Uot=Wot?Wot.toStringTag:void 0,Xot=Object.prototype.toString,qot=Wot?Wot.toStringTag:void 0,Bot=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":qot&&qot in Object(e)?function(e){var t=Lot.call(e,Uot),n=e[Uot];try{e[Uot]=void 0;var r=!0}catch(e){}var i=Fot.call(e);return r&&(t?e[Uot]=n:delete e[Uot]),i}(e):function(e){return Xot.call(e)}(e)},Vot=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Yot=function(e){if(!Vot(e))return!1;var t=Bot(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Zot=zot["__core-js_shared__"],Got=function(){var e=/[^.]+$/.exec(Zot&&Zot.keys&&Zot.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Hot=Function.prototype.toString,Kot=/^\[object .+?Constructor\]$/,Jot=Function.prototype,eat=Object.prototype,tat=Jot.toString,nat=eat.hasOwnProperty,rat=RegExp("^"+tat.call(nat).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iat=function(e){return!(!Vot(e)||function(e){return!!Got&&Got in e}(e))&&(Yot(e)?rat:Kot).test(function(e){if(null!=e){try{return Hot.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))},oat=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return iat(n)?n:void 0},aat=oat(zot,"Map"),sat=oat(Object,"create"),lat=Object.prototype.hasOwnProperty,uat=Object.prototype.hasOwnProperty;function cat(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991},zat=function(e){return null!=e&&Iat(e.length)&&!Yot(e)},Wat=function(){return!1},Nat=Dot((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?zot.Buffer:void 0,o=(i?i.isBuffer:void 0)||Wat;e.exports=o})),Lat=Function.prototype,Fat=Object.prototype,Uat=Lat.toString,Xat=Fat.hasOwnProperty,qat=Uat.call(Object),Bat={};Bat["[object Float32Array]"]=Bat["[object Float64Array]"]=Bat["[object Int8Array]"]=Bat["[object Int16Array]"]=Bat["[object Int32Array]"]=Bat["[object Uint8Array]"]=Bat["[object Uint8ClampedArray]"]=Bat["[object Uint16Array]"]=Bat["[object Uint32Array]"]=!0,Bat["[object Arguments]"]=Bat["[object Array]"]=Bat["[object ArrayBuffer]"]=Bat["[object Boolean]"]=Bat["[object DataView]"]=Bat["[object Date]"]=Bat["[object Error]"]=Bat["[object Function]"]=Bat["[object Map]"]=Bat["[object Number]"]=Bat["[object Object]"]=Bat["[object RegExp]"]=Bat["[object Set]"]=Bat["[object String]"]=Bat["[object WeakMap]"]=!1;var Vat=Dot((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&Mot.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),Yat=Vat&&Vat.isTypedArray,Zat=Yat?function(e){return function(t){return e(t)}}(Yat):function(e){return Qat(e)&&Iat(e.length)&&!!Bat[Bot(e)]},Gat=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Hat=Object.prototype.hasOwnProperty,Kat=function(e,t,n){var r=e[t];Hat.call(e,t)&&Tot(r,n)&&(void 0!==n||t in e)||yat(e,t,n)},Jat=/^(?:0|[1-9]\d*)$/,est=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Jat.test(e))&&e>-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(hst),gst=function(e,t){return mst(function(e,t,n){return t=cst(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=cst(r.length-t,0),a=Array(o);++i1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&vst(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r(0,c.useCallback)(((...e)=>t=>e.forEach((e=>((e,t)=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})(e,t))))(...e),e),yst=e=>{const t=wot(e);return({propsHook:e,stateHook:n}={})=>c.forwardRef((({asChild:r,options:i,state:o,className:a,getClassName:s,...l},u)=>{var d,f;const h=aJe(o)?o:n?n(i):void 0,{ref:p,props:m,hidden:g}=e?e(h):{props:{},hidden:!1,ref:null},v=Ost(u,p),O=aJe(null==m?void 0:m.className)||aJe(a)?_ot(null==m?void 0:m.className,a):void 0,y=null!=m&&m.style||l.style?{...null==m?void 0:m.style,...l.style}:void 0;return!r&&g?null:c.createElement(t,bot({ref:v,asChild:r},m,{className:O,style:y},l,null!==(d=null===(f=l.setProps)||void 0===f?void 0:f.call(l,null!=m?m:{}))&&void 0!==d?d:{}))}))};var bst=Object.prototype,wst=bst.hasOwnProperty,kst=gst((function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&vst(t[0],t[1],i)&&(r=1);++nfunction(n){return c.createElement(e,bot({},n,t))},Sst=wot("span");var Pst=Dot((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c})),Est=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Pst);Pst.isHotkey,Pst.isCodeHotkey,Pst.isKeyHotkey,Pst.parseHotkey,Pst.compareHotkey,Pst.toKeyCode,Pst.toKeyName;const Cst=(e,{type:t,options:{hotkey:n}})=>r=>{if(r.defaultPrevented)return;const i=H7e(e,L7e);if(!n)return;const o=Cot(n);for(const n of o)if(Est(n,r))return r.preventDefault(),void pnt(e,{activeType:t,inactiveType:i})},Tst=(e,{type:t,options:{hotkey:n,clear:r}})=>i=>{i.defaultPrevented||n&&Est(n,i)&&(i.preventDefault(),yot(e,{key:t,clear:r}))},$st=(e,t,n)=>{const r=Cot(n),i=[];return r.forEach((t=>i.push(H7e(e,t)))),i.includes(null==t?void 0:t.type)},Qst="align",Rst=E7e({key:Qst,then:e=>({inject:{props:{nodeKey:Qst,defaultNodeValue:"left",styleKey:"textAlign",validNodeValues:["left","center","right","justify"],validTypes:[H7e(e,L7e)]}},then:(t,n)=>Ftt(e,n,{deserializeHtml:{getNode:(e,t)=>{e.style.textAlign&&(t[n.key]=e.style.textAlign)}}})})});var Ast=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),jst=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ast);Ast.isHotkey,Ast.isCodeHotkey,Ast.isKeyHotkey,Ast.parseHotkey,Ast.compareHotkey,Ast.toKeyCode,Ast.toKeyName;var Dst=Array.isArray,Mst=function(){if(!arguments.length)return[];var e=arguments[0];return Dst(e)?e:[e]};const Ist=({match:e,trigger:t})=>{let n,r;"object"==typeof e?(n=e.start,r=e.end):(n=e,r=n.split("").reverse().join(""));const i=t?Mst(t):[r.slice(-1)];return r=t?r:r.slice(0,-1),{start:n,end:r,triggers:i}},zst=(e,{text:t,trigger:n,match:r,type:i=L7e,allowSameTypeAbove:o=!1,preFormat:a,format:s,triggerAtBlockStart:l=!0})=>{const u=Mst(r);for(const r of u){const{end:u,triggers:c}=Ist({match:{start:"",end:r},trigger:n});if(!c.includes(t))continue;let d;if(l){d=aot(e);const t=m2e(e,{at:d,match:t=>D1e(e,t)});if(t)continue;if(u!==z1e(e,d))continue}else if(d=oot(e,e.selection,{matchString:u}),!d)continue;if(o||!m2e(e,{match:{type:i}}))return r.length>1&&S1e(e,{at:d}),a&&a(e),s?s(e):g2e(e,{type:i},{match:t=>h1e(e,t)}),!0}return!1},Wst=(e,{start:t,end:n})=>{const r=e.selection;let i,o,a=r.anchor;if(!n||(a=rot(e,r,{matchString:n}),a)){if(t){if(i=rot(e,a,{matchString:t,skipInvalid:!0,afterMatch:!0}),!i)return;if(o=rot(e,a,{matchString:t,skipInvalid:!0}),!((e,t)=>{const n=oot(e,t);if(n){const t=z1e(e,n);if(t){const e=new RegExp("\\S+");return!t.match(e)}}return!0})(e,o))return}return{afterStartMatchPoint:i,beforeStartMatchPoint:o,beforeEndMatchPoint:a}}},Nst=(e,{type:t,text:n,trigger:r,match:i,ignoreTrim:o})=>{if(!t)return!1;const a=e.selection,s=Mst(i);for(const i of s){const{start:s,end:l,triggers:u}=Ist({match:i,trigger:r});if(!u.includes(n))continue;const c=Wst(e,{start:s,end:l});if(!c)continue;const{afterStartMatchPoint:d,beforeEndMatchPoint:f,beforeStartMatchPoint:h}=c,p={anchor:d,focus:f};if(!o){const t=z1e(e,p);if(t.trim()!==t)continue}l&&S1e(e,{at:{anchor:f,focus:a.anchor}});const m=Mst(t);return C1e(e,p),m.forEach((t=>{e.addMark(t,!0)})),r2e(e,{edge:"end"}),vot(e,{key:m,shouldChange:!1}),S1e(e,{at:{anchor:h,focus:d}}),!0}return!1},Lst=(e,{text:t,match:n,trigger:r,format:i})=>{const o=e.selection,a=Mst(n);for(const n of a){const{start:a,end:s,triggers:l}=Ist({match:Array.isArray(i)?n:{start:"",end:n},trigger:r});if(!l.includes(t))continue;const u=Wst(e,{start:a,end:s});if(!u)continue;const{afterStartMatchPoint:c,beforeEndMatchPoint:d,beforeStartMatchPoint:f}=u;if(s&&S1e(e,{at:{anchor:d,focus:o.anchor}}),"function"==typeof i)i(e,u);else{const t=Array.isArray(i)?i[1]:i;if(e.insertText(t),f){const t=Array.isArray(i)?i[0]:i;S1e(e,{at:{anchor:f,focus:c}}),o2e(e,t,{at:f})}}return!0}return!1},Fst=E7e({key:"autoformat",withOverrides:(e,{options:{rules:t}})=>{const{insertText:n}=e;return e.insertText=r=>{if(!t2e(e.selection))return n(r);for(const o of t){var i;const{mode:t="text",insertTrigger:a,query:s}=o;if(s&&!s(e,{...o,text:r}))continue;const l={block:zst,mark:Nst,text:Lst};if(null!==(i=l[t])&&void 0!==i&&i.call(l,e,{...o,text:r}))return a&&n(r)}n(r)},e},handlers:{onKeyDown:(e,{options:{rules:t,enableUndoOnDelete:n}})=>r=>{if(r.defaultPrevented)return!1;if(!jst("backspace",{byKey:!0},r))return!1;if(!t)return!1;if(!n)return!1;const{selection:i}=e;if(!i||!AJe.isCollapsed(i))return;const[o,a]=AJe.edges(i),s=R1e(e,a,{unit:"character",distance:1});if(!o)return!1;if(!s)return!1;const l={anchor:s,focus:o};if(!l)return!1;const u=z1e(e,l);if(!u)return!1;const c=[...t].filter((e=>{const t=e;return!!t&&"text"===t.mode&&t.format===u}));if(!c||0===c.length)return!1;r.preventDefault(),((e,t)=>{XJe.deleteBackward(e,{unit:"character"})})(e);const d=c[0];if(d&&"string"==typeof d.match)o2e(e,d.match);else{const t=d.match;t&&t.length>0&&o2e(e,t[0])}return!0}},options:{rules:[]}}),Ust=[{mode:"text",match:"!>",format:"≯"},{mode:"text",match:"!<",format:"≮"},{mode:"text",match:">=",format:"≥"},{mode:"text",match:"<=",format:"≤"},{mode:"text",match:"!>=",format:"≱"},{mode:"text",match:"!<=",format:"≰"},{mode:"text",match:"!=",format:"≠"},{mode:"text",match:"==",format:"≡"},{mode:"text",match:["!==","≠="],format:"≢"},{mode:"text",match:"~=",format:"≈"},{mode:"text",match:"!~=",format:"≉"},{mode:"text",match:"+-",format:"±"},{mode:"text",match:"%%",format:"‰"},{mode:"text",match:["%%%","‰%"],format:"‱"},{mode:"text",match:"//",format:"÷"},{mode:"text",match:"1/2",format:"½"},{mode:"text",match:"1/3",format:"⅓"},{mode:"text",match:"1/4",format:"¼"},{mode:"text",match:"1/5",format:"⅕"},{mode:"text",match:"1/6",format:"⅙"},{mode:"text",match:"1/7",format:"⅐"},{mode:"text",match:"1/8",format:"⅛"},{mode:"text",match:"1/9",format:"⅑"},{mode:"text",match:"1/10",format:"⅒"},{mode:"text",match:"2/3",format:"⅔"},{mode:"text",match:"2/5",format:"⅖"},{mode:"text",match:"3/4",format:"¾"},{mode:"text",match:"3/5",format:"⅗"},{mode:"text",match:"3/8",format:"⅜"},{mode:"text",match:"4/5",format:"⅘"},{mode:"text",match:"5/6",format:"⅚"},{mode:"text",match:"5/8",format:"⅝"},{mode:"text",match:"7/8",format:"⅞"},{mode:"text",match:"^o",format:"°"},{mode:"text",match:"^+",format:"⁺"},{mode:"text",match:"^-",format:"⁻"},{mode:"text",match:"~+",format:"₊"},{mode:"text",match:"~-",format:"₋"},{mode:"text",match:"^0",format:"⁰"},{mode:"text",match:"^1",format:"¹"},{mode:"text",match:"^2",format:"²"},{mode:"text",match:"^3",format:"³"},{mode:"text",match:"^4",format:"⁴"},{mode:"text",match:"^5",format:"⁵"},{mode:"text",match:"^6",format:"⁶"},{mode:"text",match:"^7",format:"⁷"},{mode:"text",match:"^8",format:"⁸"},{mode:"text",match:"^9",format:"⁹"},{mode:"text",match:"~0",format:"₀"},{mode:"text",match:"~1",format:"₁"},{mode:"text",match:"~2",format:"₂"},{mode:"text",match:"~3",format:"₃"},{mode:"text",match:"~4",format:"₄"},{mode:"text",match:"~5",format:"₅"},{mode:"text",match:"~6",format:"₆"},{mode:"text",match:"~7",format:"₇"},{mode:"text",match:"~8",format:"₈"},{mode:"text",match:"~9",format:"₉"}],Xst="blockquote",qst=E7e({key:Xst,isElement:!0,deserializeHtml:{rules:[{validNodeName:"BLOCKQUOTE"}]},handlers:{onKeyDown:Cst},options:{hotkey:"mod+shift+."}});var Bst=__webpack_require__(74114);const Vst="code_block",Yst="code_line",Zst="code_syntax";Prism.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},Prism.languages.g4=Prism.languages.antlr4,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,Prism.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/},function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=l(o),c=RegExp(l(i+" "+o+" "+a+" "+s)),d=l(o+" "+a+" "+s),f=l(i+" "+o+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=r(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),v=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),O=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,O]),b=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,O]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),k=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,v,O]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,P=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,k]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,g]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,f,m]),inside:x}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,v]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,g,m,k,c.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(k),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var E=S+"|"+_,C=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[E]),T=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[C]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Q=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,T]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,Q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[T]),inside:e.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,A=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[C]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[A,R]),D=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[E]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,R]);function I(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:I(j,A)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:I(M,D)}],char:{pattern:RegExp(_),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,(function(){return t})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),o={pattern:RegExp(r),greedy:!0},a={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return e=e.replace(//g,(function(){return i})).replace(//g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},e.languages.dockerfile=e.languages.docker}(Prism),Prism.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/},Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var s=f(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l=0&&h(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(e,t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(i);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=a(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(Prism),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Prism),function(e){var t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:t,alias:"regex"}};e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}(Prism),Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,function(e){var t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(Prism),function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(Prism),Prism.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/},function(e){var t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),Prism.languages.scala=Prism.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Prism.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Prism.languages.scala}}},string:/[\s\S]+/}}}),delete Prism.languages.scala["class-name"],delete Prism.languages.scala.function,delete Prism.languages.scala.constant,function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,(function(t){return"(?:"+e[t].trim()+")"}));return e[t]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(Prism),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+i+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(o),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism);const Gst={rules:[{validNodeName:"PRE"},{validNodeName:"P",validStyle:{fontFamily:"Consolas"}}],getNode:e=>{var t,n,r;const i=(null===(t=[...e.childNodes].find((e=>"SELECT"===e.nodeName)))||void 0===t?void 0:t.textContent)||"",o=(null===(n=e.textContent)||void 0===n?void 0:n.replace(i,""))||"";let a=o.split("\n");null!==(r=a)&&void 0!==r&&r.length||(a=[o]);const s=a.map((e=>({type:Yst,children:[{text:e}]})));return{type:Vst,children:s}}};var Hst=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Kst=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Hst);Hst.isHotkey,Hst.isCodeHotkey,Hst.isKeyHotkey,Hst.parseHotkey,Hst.compareHotkey,Hst.toKeyCode,Hst.toKeyName;const Jst=e=>H7e(e,Yst),elt=(e,{at:t=e.selection}={})=>{if(t&&m2e(e,{at:t,match:{type:Jst(e)}})){const n=y1e(e,t);if(!n)return;const[,r]=n,i=g1e(e,{at:t,match:{type:Jst(e)}})||y1e(e,r);if(!i)return;const[o,a]=i;if(f1e(o)&&o.type!==Jst(e))return;const s=y1e(e,a);if(!s)return;return{codeBlock:s,codeLine:i}}},tlt=(e,{codeLine:t,indentDepth:n=2})=>{const[,r]=t,i=A1e(e,r),o=" ".repeat(n);if(!n2e(e.selection)){var a;const t=null===(a=e.selection)||void 0===a?void 0:a.anchor,n=U1e(e,i,t),r=z1e(e,n);if(/\S/.test(r))return void o2e(e,o,{at:e.selection})}o2e(e,o,{at:i})},nlt=(e,{codeLine:t})=>{const[,n]=t,r=A1e(e,n),i=r&&Q1e(e,r),o=i&&U1e(e,r,i),a=z1e(e,o);return!!/\s/.test(a)&&(S1e(e,{at:o}),!0)},rlt=(e,{codeBlock:t,codeLine:n})=>{nlt(e,{codeBlock:t,codeLine:n})&&nlt(e,{codeBlock:t,codeLine:n})},ilt=(e,{defaultType:t=H7e(e,L7e),insertNodesOptions:n}={})=>{e.selection&&(!n2e(e.selection)&&lot(e)||mot(e,{type:t,children:[{text:""}]},{select:!0,nextBlock:!0,...n}),((e,t={})=>{e.selection&&!n2e(e.selection)&&(m2e(e,{match:t=>t.type===H7e(e,Vst)||t.type===Jst(e)})||(hot(e)||e.insertBreak(),g2e(e,{type:Jst(e),children:[{text:""}]},t),f2e(e,{type:H7e(e,Vst),children:[]},t)))})(e,n))},olt=E7e({key:Vst,isElement:!0,deserializeHtml:Gst,handlers:{onKeyDown:e=>t=>{if(t.defaultPrevented)return;const n=Ltt.isTab(e,t),r=Ltt.isUntab(e,t);if(n||r){const i=O1e(e,{match:{type:Jst(e)}}),o=Array.from(i);if(o.length>0){t.preventDefault();const[,i]=o[0],a=y1e(e,i);if(!a)return;k1e(e,(()=>{for(const t of o)r&&rlt(e,{codeBlock:a,codeLine:t}),n&&tlt(e,{codeBlock:a,codeLine:t})}))}}if(Kst("mod+a",t)){const n=elt(e,{});if(!n)return;const{codeBlock:r}=n,[,i]=r;C1e(e,i),t.preventDefault(),t.stopPropagation()}}},withOverrides:e=>{const{insertBreak:t}=e;return e.insertBreak=()=>{(()=>{if(!e.selection)return;const n=elt(e,{});if(!n)return;const{codeBlock:r,codeLine:i}=n,o=((e,{codeLine:t})=>{const[,n]=t;return z1e(e,n).search(/\S|$/)})(e,{codeBlock:r,codeLine:i});return t(),tlt(e,{codeBlock:r,codeLine:i,indentDepth:o}),!0})()||t()},e.insertFragment=(e=>{const{insertFragment:t}=e,n=H7e(e,Vst),r=H7e(e,Yst);return i=>{const o=p2e(e,{match:{type:r}});return t(o?i.flatMap((e=>{const t=e;return t.type===n?function(e){return e.children}(t):function(e){return{type:r,children:[{text:H1e(e)}]}}(t)})):i)}})(e),e.normalizeNode=(e=>{const t=H7e(e,Vst),n=Jst(e),{normalizeNode:r}=e;return([i,o])=>{if(r([i,o]),f1e(i)&&i.type===t){const t=xnt([i,o]).find((([e])=>e.type!==n));t&&s2e(e,{type:n},{at:t[1]})}}})(e),e},options:{hotkey:["mod+opt+8","mod+shift+8"],syntax:!0,syntaxPopularFirst:!1},then:e=>({inject:{pluginsByKey:{[Pet]:{editor:{insertData:{query:()=>{const t=G7e(e,Yst);return!m2e(e,{match:{type:t.type}})}}}}}}}),plugins:[{key:Yst,isElement:!0},{key:Zst,isLeaf:!0,decorate:e=>{const t=G7e(e,Vst),n=G7e(e,Yst);return([r,i])=>{var o;const a=[];if(!t.options.syntax||r.type!==n.type)return a;const s=y1e(e,i);if(!s)return a;let l=null!==(o=s[0].lang)&&void 0!==o?o:"";"plain"===l&&(l="");const u=Bst.languages[l];if(!u)return a;const c=H1e(r),d=(0,Bst.tokenize)(c,u);let f=0;for(const e of d)e instanceof Bst.Token&&a.push({anchor:{path:i,offset:f},focus:{path:i,offset:f+e.length},tokenType:e.type,[Zst]:!0}),f+=e.length;return a}}}]}),alt="h1",slt="h2",llt="h3",ult="h4",clt="h5",dlt="h6",flt=[alt,slt,llt,ult,clt,dlt],hlt=E7e({key:"heading",options:{levels:6},then:(e,{options:{levels:t}={}})=>{const n=[];for(let e=1;e<=t;e++){const t={key:flt[e-1],isElement:!0,deserializeHtml:{rules:[{validNodeName:`H${e}`}]},handlers:{onKeyDown:Cst},options:{}};e<4&&(t.options.hotkey=[`mod+opt+${e}`,`mod+shift+${e}`]),n.push(t)}return{plugins:n}}}),plt="p",mlt=E7e({key:plt,isElement:!0,handlers:{onKeyDown:Cst},options:{hotkey:["mod+opt+0","mod+shift+0"]},deserializeHtml:{rules:[{validNodeName:"P"}],query:e=>"Consolas"!==e.style.fontFamily}}),glt=(E7e({key:"basicElements",plugins:[qst(),olt(),hlt(),mlt()]}),"bold"),vlt=E7e({key:glt,isLeaf:!0,deserializeHtml:{rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}],query:e=>!zet(e,(e=>"normal"===e.style.fontWeight))},handlers:{onKeyDown:Tst},options:{hotkey:"mod+b"}}),Olt="code",ylt=E7e({key:Olt,isLeaf:!0,deserializeHtml:{rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}],query(e){const t=JKe(e,"P");return"Consolas"!==(null==t?void 0:t.style.fontFamily)&&!JKe(e,"PRE")}},handlers:{onKeyDown:Tst},options:{hotkey:"mod+e"}}),blt="italic",wlt=E7e({key:blt,isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+i"},deserializeHtml:{rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}],query:e=>!zet(e,(e=>"normal"===e.style.fontStyle))}}),klt="strikethrough",xlt=E7e({key:klt,isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+shift+x"},deserializeHtml:{rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}],query:e=>!zet(e,(e=>"none"===e.style.textDecoration))}}),_lt="subscript",Slt=E7e({key:_lt,isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+,",clear:"superscript"},deserializeHtml:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]}}),Plt="superscript",Elt=E7e({key:Plt,isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+.",clear:"subscript"},deserializeHtml:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]}}),Clt="underline",Tlt=E7e({key:Clt,isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+u"},deserializeHtml:{rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}],query:e=>!zet(e,(e=>"none"===e.style.textDecoration))}});E7e({key:"basicMarks",plugins:[vlt(),ylt(),wlt(),xlt(),Slt(),Elt(),Tlt()]});var $lt=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Qlt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}($lt);$lt.isHotkey,$lt.isCodeHotkey,$lt.isKeyHotkey,$lt.parseHotkey,$lt.compareHotkey,$lt.toKeyCode,$lt.toKeyName;const Rlt=E7e({key:"exitBreak",handlers:{onKeyDown:(e,{options:{rules:t=[]}})=>n=>{if(n.defaultPrevented)return;const r=knt(e);r&&t.forEach((({hotkey:t,...i})=>{Qlt(t,n)&&h2e(r,i.query)&&((e,{level:t=0,relative:n=!1,defaultType:r=H7e(e,L7e),query:i={},before:o})=>{if(!e.selection)return;const{queryEdge:a,isEdge:s,isStart:l}=((e,{start:t,end:n})=>{let r=!1,i=!1,o=!1;return(t||n)&&(r=!0,t&&hot(e)&&(i=!0,o=!0),n&&fot(e)&&(i=!0),i&&n2e(e.selection)&&e.deleteFragment()),{queryEdge:r,isEdge:i,isStart:o}})(e,i);if(l&&(o=!0),a&&!s)return;const u=L1e(e,e.selection),c=n?u.slice(0,-t):u.slice(0,t+1),d=o?c:kJe.next(c);return mot(e,{type:r,children:[{text:""}]},{at:d,select:!l}),!0})(e,i)&&(n.preventDefault(),n.stopPropagation())}))}},options:{rules:[{hotkey:"mod+enter"},{hotkey:"mod+shift+enter",before:!0}]}}),Alt=(E7e({key:"singleLine",handlers:{onKeyDown:()=>e=>{e.defaultPrevented||Ltt.isSplitBlock(e)&&e.preventDefault()}},withOverrides:e=>{const{normalizeNode:t}=e;return e.insertBreak=()=>null,e.normalizeNode=n=>{0===n[1].length&&e.children.length>1&&E1e(e,{at:[],mode:"highest",match:(e,t)=>1===t.length&&t[0]>0}),t(n)},e}}),E7e({key:"softBreak",handlers:{onKeyDown:(e,{options:{rules:t=[]}})=>n=>{if(n.defaultPrevented)return;const r=knt(e);r&&t.forEach((({hotkey:t,query:i})=>{Qlt(t,n)&&h2e(r,i)&&(n.preventDefault(),n.stopPropagation(),e.insertText("\n"))}))}},options:{rules:[{hotkey:"shift+enter"}]}})),jlt=DHe("combobox")({activeId:null,byId:{},highlightedIndex:0,items:[],filteredItems:[],targetRange:null,text:null}).extendActions(((e,t)=>({setComboboxById:n=>{t.byId()[n.id]||e.state((e=>{e.byId[n.id]=(e=>DHe(`combobox-${e.id}`)(e))(n)}))},open:t=>{e.mergeState(t)},reset:()=>{e.state((e=>{e.activeId=null,e.highlightedIndex=0,e.filteredItems=[],e.items=[],e.text=null,e.targetRange=null}))}}))).extendSelectors((e=>({isOpen:()=>!!e.activeId}))),Dlt=(jlt.use,jlt.get),Mlt=jlt.set,Ilt=(e,{at:t,trigger:n,searchPattern:r="\\S+"})=>{const i=(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"))(n),o=new RegExp(`(?:^|\\s)${i}`);let a,s=t;for(;a=s,s;){s=R1e(e,s);const t=s&&U1e(e,s,a);if(!z1e(e,t).match(r)){s=a;break}}const l=s&&U1e(e,s,t),u=z1e(e,l);if(l&&u.match(o))return{range:l,textAfterTrigger:u.slice(n.length)}};var zlt=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Wlt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(zlt);zlt.isHotkey,zlt.isCodeHotkey,zlt.isKeyHotkey,zlt.parseHotkey,zlt.compareHotkey,zlt.toKeyCode,zlt.toKeyName;const Nlt=(e,t,n,r,i)=>{const o=r(t);if(!o||!o.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e=0;e--)if(!r(e).hasAttribute("disabled"))return e;return i?e>0?Nlt(1,0,n,r,!1):Nlt(-1,n-1,n,r,!1):-1},Llt=(e,t,n,r,i=!0)=>{if(0===n)return-1;const o=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);let a=t+e;a<0?a=i?o:0:a>o&&(a=i?0:o);const s=Nlt(e,a,n,r,i);return-1===s?t>=n?-1:t:s},Flt=(E7e({key:"combobox",handlers:{onChange:e=>()=>{const t=Dlt.byId(),n=Dlt.activeId();let r=!0;for(const l of Object.values(t)){var i,o,a,s;const t=l.get.id();if(null===(i=(o=l.get).controlled)||void 0===i?void 0:i.call(o)){if(n===t){r=!1;break}continue}const{selection:u}=e;if(!u||!t2e(u))continue;const c=l.get.trigger(),d=null===(a=(s=l.get).searchPattern)||void 0===a?void 0:a.call(s),f=Ilt(e,{at:AJe.start(u),trigger:c,searchPattern:d});if(!f)continue;const{range:h,textAfterTrigger:p}=f;Mlt.open({activeId:t,text:p,targetRange:h}),r=!1;break}r&&Dlt.isOpen()&&Mlt.reset()},onKeyDown:e=>t=>{const{highlightedIndex:n,filteredItems:r,activeId:i}=Dlt.state();if(!Dlt.isOpen())return;const o=(e=>e?Dlt.byId()[e]:null)(i);if(!o)return;const a=o.get.onSelectItem();if(Wlt("down",t)){t.preventDefault();const e=Llt(1,n,r.length,(()=>{}),!0);Mlt.highlightedIndex(e)}else if(Wlt("up",t)){t.preventDefault();const e=Llt(-1,n,r.length,(()=>{}),!0);Mlt.highlightedIndex(e)}else{if(Wlt("escape",t))return t.preventDefault(),void Mlt.reset();(Ltt.isTab(e,t)||Wlt("enter",t))&&(t.preventDefault(),t.stopPropagation(),r[n]&&(null==a||a(e,r[n])))}}}}),"comment"),Ult=Symbol("comments"),{commentsStore:Xlt,useCommentsStore:qlt}=z5e({myUserId:null,users:{},comments:{},activeCommentId:null,addingCommentId:null,newValue:[{type:"p",children:[{text:""}]}],focusTextarea:!1,onCommentAdd:null,onCommentUpdate:null,onCommentDelete:null},{name:"comments",scope:Ult}),Blt=()=>qlt().use,Vlt=()=>qlt().get,Ylt=()=>qlt().set,Zlt=e=>{const t=Vlt().comments();return e?t[e]:null},Glt=()=>{const e=Vlt().newValue();return H1e(null==e?void 0:e[0])},Hlt=e=>{const t=Zlt(e),[n,r]=Blt().comments();return i=>{e&&r({...n,[e]:{...t,...i}})}},Klt=Symbol("comment"),Jlt=Symbol("activeComment"),{commentStore:eut,useCommentStore:tut}=z5e({id:"",isMenuOpen:!1,editingValue:null},{name:"comment",scope:Klt}),nut=()=>tut().get,rut=()=>tut().set,iut=e=>{const t=nut().id(e);return Zlt(t)},out=e=>{var t;const n=iut(e);return n?H1e(null===(t=n.value)||void 0===t?void 0:t[0]):null},aut=e=>`${Flt}_${e}`,sut=e=>e.startsWith(`${Flt}_`),lut=(e,{id:t})=>{c2e(e,aut(t),{at:[],match:e=>((e,t)=>!!e[aut(t)])(e,t)})};var uut=/\s/,cut=/^\s+/,dut=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&uut.test(e.charAt(t)););return t}(e)+1).replace(cut,""):e},fut=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},hut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},put="object"==typeof hut&&hut&&hut.Object===Object&&hut,mut="object"==typeof self&&self&&self.Object===Object&&self,gut=(put||mut||Function("return this")()).Symbol,vut=Object.prototype,Out=vut.hasOwnProperty,yut=vut.toString,but=gut?gut.toStringTag:void 0,wut=Object.prototype.toString,kut=gut?gut.toStringTag:void 0,xut=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":kut&&kut in Object(e)?function(e){var t=Out.call(e,but),n=e[but];try{e[but]=void 0;var r=!0}catch(e){}var i=yut.call(e);return r&&(t?e[but]=n:delete e[but]),i}(e):function(e){return wut.call(e)}(e)},_ut=/^[-+]0x[0-9a-f]+$/i,Sut=/^0b[01]+$/i,Put=/^0o[0-7]+$/i,Eut=parseInt,Cut=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==xut(e)}(e))return NaN;if(fut(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fut(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=dut(e);var n=Sut.test(e);return n||Put.test(e)?Eut(e.slice(2),n?2:8):_ut.test(e)?NaN:+e},Tut=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=Cut(n))==n?n:0),void 0!==t&&(t=(t=Cut(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(Cut(e),t,n)};const $ut=(E7e({key:Flt,isLeaf:!0,withOverrides:(e,t)=>{const{normalizeNode:n,insertBreak:r}=e;return e.insertBreak=()=>{(e=>{const t=((e,t)=>p2e(e,{match:e=>e[Flt]}))(e);if(!t)return;const n=(e=>{const t=[];return Object.keys(e).forEach((e=>{sut(e)&&t.push(e)})),t})(t[0]);k1e(e,(()=>{n.forEach((t=>{e.removeMark(t)})),e.removeMark(Flt)}))})(e),r()},e.normalizeNode=t=>{const[r,i]=t;r[Flt]&&(e=>{let t=0;return Object.keys(e).forEach((e=>{sut(e)&&t++})),t})(r)<1?c2e(e,Flt,{at:i}):n(t)},e},useHooks:(e,{options:t})=>{const{hotkey:n}=t,r=(()=>{const e=Ytt(),t=Ylt().activeCommentId();return()=>{const{selection:n}=e;if(!n2e(n))return;const r=YGe();s2e(e,{[Flt]:!0,[aut(r)]:!0},{match:x1e,split:!0});try{(e=>{m4e.deselect(e)})(e)}catch{}setTimeout((()=>{t(r)}),0)}})(),i=Ylt().focusTextarea();dHe(n,(t=>{e.selection&&(t.preventDefault(),n2e(e.selection)&&(r(),i(!0)))}),{enableOnContentEditable:!0})},options:{hotkey:["meta+shift+m","ctrl+shift+m"]}}),yst("button")({stateHook:()=>{const e=Vlt().activeCommentId(),t=Vlt().onCommentDelete(),n=nut().id(),r=Ylt().activeCommentId(),i=(()=>{const[e,t]=Blt().comments();return n=>{n&&(delete e[n],t({...e}))}})();return{activeCommentId:e,onCommentDelete:t,id:n,setActiveCommentId:r,removeComment:i,editor:Ytt()}},propsHook:({activeCommentId:e,editor:t,id:n,onCommentDelete:r,removeComment:i,setActiveCommentId:o})=>({props:{onClick:()=>{e===n?(lut(t,{id:n}),o(null)):i(n),null==r||r(n)}}})}),yst("button")({propsHook:()=>{const e=rut().editingValue();return{props:{onClick:()=>{e(null)}}}}}),yst("button")({stateHook:()=>{const e=Vlt().onCommentUpdate(),t=nut().editingValue(),n=rut().editingValue(),r=nut().id(),i=Hlt(r);return{value:out(),editingValue:t,setEditingValue:n,id:r,onCommentUpdate:e,updateComment:i}},propsHook:({editingValue:e,setEditingValue:t,id:n,onCommentUpdate:r,updateComment:i,value:o})=>({props:{onClick:(0,c.useCallback)((()=>{e&&(i({value:e}),t(null),null==r||r({id:n,value:e}))}),[e,n,r,t,i]),disabled:0===(null==o?void 0:o.trim().length)}})}),yst("button")({stateHook:()=>({setIsMenuOpen:rut().isMenuOpen(),comment:iut(),editingValue:rut().editingValue()}),propsHook:({setIsMenuOpen:e,comment:t,editingValue:n})=>({props:{onClick:()=>{e(!1),n(t.value)}}})}),yst("textarea")({stateHook:()=>{const e=rut().editingValue(),t=(()=>{const e=nut().editingValue();return e?H1e(null==e?void 0:e[0]):null})(),n=(0,c.useRef)(null);return(0,c.useEffect)((()=>{setTimeout((()=>{const e=n.current;e&&e.focus()}),0)}),[n]),{textareaRef:n,setEditingValue:e,value:t}},propsHook:({setEditingValue:e,textareaRef:t,value:n})=>({props:{placeholder:"Add a comment...",rows:1,ref:t,value:null!=n?n:void 0,onChange:t=>{e([{type:"p",children:[{text:t.target.value}]}])}}})}),yst("button")({stateHook:()=>{const e=Vlt().onCommentAdd(),t=Vlt().activeCommentId(),n=iut(Jlt),r=Vlt().newValue(),i=Glt(),o=(()=>{const e=Ylt().newValue();return()=>{e([{type:"p",children:[{text:""}]}])}})(),a=(()=>{const[e,t]=Blt().comments(),n=Vlt().myUserId();return r=>{var i;const o=null!==(i=r.id)&&void 0!==i?i:YGe(),a={id:o,userId:null!=n?n:void 0,createdAt:Date.now(),...r};return a.userId&&t({...e,[o]:a}),a}})(),s=!!n;return{editingCommentText:i,resetNewCommentValue:o,addComment:a,isReplyComment:s,submitButtonText:s?"Reply":"Comment",onCommentAdd:e,activeCommentId:t,comment:n,newValue:r}},propsHook:({editingCommentText:e,resetNewCommentValue:t,addComment:n,isReplyComment:r,submitButtonText:i,onCommentAdd:o,activeCommentId:a,comment:s,newValue:l})=>({props:{type:"submit",disabled:!(null!=e&&e.trim().length),children:i,onClick:()=>{const e=n(r?{id:YGe(),parentId:s.id,value:l}:{id:a,value:l});null==o||o(e),t()}}})}),yst("textarea")({stateHook:()=>{const e=Ylt().newValue(),t=Zlt(Vlt().activeCommentId()),n=Glt(),r=Vlt().focusTextarea(),i=Ylt().focusTextarea(),o=(0,c.useRef)(null);return(0,c.useEffect)((()=>{var e;r&&(null===(e=o.current)||void 0===e||e.focus(),i(!1))}),[r,i,o]),{textareaRef:o,placeholder:t?"Reply...":"Add a comment...",value:n,setNewValue:e}},propsHook:({textareaRef:e,placeholder:t,value:n,setNewValue:r})=>({props:{placeholder:t,rows:1,ref:e,value:null!=n?n:void 0,onChange:e=>{r([{type:"p",children:[{text:e.target.value}]}])}}})}),yst("button")({propsHook:()=>{const e=Vlt().onCommentUpdate(),t=Vlt().activeCommentId(),n=Ylt().activeCommentId(),r=Hlt(t),i=iut();return{props:{onClick:()=>{const o=!i.isResolved,a={isResolved:o};r(a),null==e||e({id:t,...a}),o&&n(null)}}}}}),yst("div")({propsHook:()=>{var e;const t=(e=>{const t=nut().id(e),n=Vlt().users(),r=Zlt(t);return r?n[r.userId]:null})();return{props:{children:null!==(e=null==t?void 0:t.name)&&void 0!==e?e:"Anonymous"}}}}),yst("div")({stateHook:()=>{var e;const t=Ytt();let n=Vlt().activeCommentId();const[r,i]=(0,c.useState)({left:0,top:0});0===r.left&&0===r.top&&(n=null);const[o]=null!==(e=(()=>{const e=Ytt(),t=Vlt().activeCommentId();return t?((e,t)=>p2e(e,{at:[],match:e=>e[aut(t)]}))(e,t):null})())&&void 0!==e?e:[];return(0,c.useEffect)((()=>{if(!o)return;if(!D5e(t,o))return;const e=((e,t)=>{const n=D5e(e,t);if(!n)return;const r=(e=>{let t=0,n=0,r=e;do{t+=(r.offsetLeft||0)-r.scrollLeft,n+=(r.offsetTop||0)-r.scrollTop,r=r.offsetParent}while(r);return{left:t,top:n}})(n),i=D5e(e,e);if(!i)return;const{x:o,width:a}=i.getBoundingClientRect();return{left:Tut(o+a+16,window.innerWidth-434),top:r.top}})(t,o);e&&i(e)}),[t,o]),{activeCommentId:n,position:r}},propsHook:({activeCommentId:e,position:t})=>({hidden:!e,props:{style:{...t}}})}),E7e({key:"search_highlight",isLeaf:!0,decorate:(e,{key:t,type:n})=>([r,i])=>{const o=[],{search:a}=e.pluginsByKey[t].options;if(!a||!x1e(r))return o;const{text:s}=r,l=s.toLowerCase().split(a.toLowerCase());let u=0;return l.forEach(((e,t)=>{0!==t&&o.push({anchor:{path:i,offset:u-a.length},focus:{path:i,offset:u},search:a,[n]:!0}),u=u+e.length+a.length})),o}}),()=>{const e=window.getSelection();return!e||e.rangeCount<1?{width:0,height:0,x:0,y:0,top:-9999,left:-9999,right:9999,bottom:9999}:e.getRangeAt(0).getBoundingClientRect()}),Qut="backgroundColor",Rut=E7e({key:Qut,inject:{props:{nodeKey:Qut}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode:e=>({[t]:e.style.backgroundColor}),rules:[{validStyle:{backgroundColor:"*"}}]}})}),Aut="color",jut=E7e({key:Aut,inject:{props:{nodeKey:Aut,defaultNodeValue:"black"}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode(e){if(e.style.color)return{[t]:e.style.color}},rules:[{validStyle:{color:"*"}}]}})}),Dut="fontFamily",Mut=(E7e({key:Dut,inject:{props:{nodeKey:Dut}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode:e=>({[t]:e.style.fontFamily}),rules:[{validStyle:{fontFamily:"*"}}]}})}),"fontSize"),Iut=(E7e({key:Mut,inject:{props:{nodeKey:Mut}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode:e=>({[t]:e.style.fontSize}),rules:[{validStyle:{fontSize:"*"}}]}})}),"fontWeight");E7e({key:Iut,inject:{props:{nodeKey:Iut}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode:e=>({[t]:e.style.fontWeight}),rules:[{validStyle:{fontWeight:"*"}}]}})});var zut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},Wut="object"==typeof zut&&zut&&zut.Object===Object&&zut,Nut="object"==typeof self&&self&&self.Object===Object&&self,Lut=(Wut||Nut||Function("return this")()).Symbol,Fut=Object.prototype;Fut.hasOwnProperty,Fut.toString,Lut&&Lut.toStringTag,Object.prototype.toString,Lut&&Lut.toStringTag,Math.max,Math.min;const Uut="highlight",Xut=(E7e({key:Uut,isLeaf:!0,handlers:{onKeyDown:Tst},deserializeHtml:{rules:[{validNodeName:["MARK"]}]},options:{hotkey:"mod+shift+h"}}),"hr"),qut=(E7e({key:Xut,isElement:!0,isVoid:!0,deserializeHtml:{rules:[{validNodeName:"HR"}]}}),(e,{offset:t=1,getNodesOptions:n,setNodesProps:r,unsetNodesProps:i=[]})=>{const{nodeKey:o}=((e,t)=>{var n,r;return null!==(n=null===(r=G7e(e,t).inject)||void 0===r?void 0:r.props)&&void 0!==n?n:{}})(e,Yut),a=O1e(e,{block:!0,mode:"lowest",...n}),s=Array.from(a);k1e(e,(()=>{s.forEach((([n,a])=>{var s,l;const u=(null!==(s=n[o])&&void 0!==s?s:0)+t,c=null!==(l=null==r?void 0:r({indent:u}))&&void 0!==l?l:{};u<=0?c2e(e,[o,...i],{at:a}):g2e(e,{[o]:u,...c},{at:a})}))}))}),But=(e,t)=>{qut(e,{offset:1,...t})},Vut=(e,t)=>{qut(e,{offset:-1,...t})},Yut="indent",Zut=(E7e({key:Yut,withOverrides:(e,{inject:{props:{validTypes:t}={}},options:{indentMax:n}})=>{const{normalizeNode:r}=e;return e.normalizeNode=([i,o])=>{const a=i,{type:s}=a;if(s)if(t.includes(s)){if(n&&a.indent&&a.indent>n)return void g2e(e,{indent:n},{at:o})}else if(a.indent)return void c2e(e,"indent",{at:o});return r([i,o])},e},handlers:{onKeyDown:e=>t=>{t.defaultPrevented||(Ltt.isTab(e,t)&&(t.preventDefault(),But(e)),Ltt.isUntab(e,t)&&(t.preventDefault(),Vut(e)))}},options:{offset:24,unit:"px"},then:(e,{options:{offset:t,unit:n}={}})=>({inject:{props:{nodeKey:Yut,styleKey:"marginLeft",validTypes:[H7e(e,L7e)],transformNodeValue:({nodeValue:e})=>e*t+n}}})}),"textIndent");function Gut(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t({inject:{props:{nodeKey:Zut,styleKey:"textIndent",validTypes:[H7e(e,L7e)],transformNodeValue:({nodeValue:e})=>e*t+n}}})});let Kut=function(e){return e.Armenian="armenian",e.Circle="circle",e.CjkIdeographic="cjk-ideographic",e.Decimal="decimal",e.DecimalLeadingZero="decimal-leading-zero",e.Disc="disc",e.Georgian="georgian",e.Hebrew="hebrew",e.Hiragana="hiragana",e.HiraganaIroha="hiragana-iroha",e.Katakana="katakana",e.KatakanaIroha="katakana-iroha",e.LowerAlpha="lower-alpha",e.LowerGreek="lower-greek",e.LowerLatin="lower-latin",e.LowerRoman="lower-roman",e.None="none",e.Square="square",e.UpperAlpha="upper-alpha",e.UpperLatin="upper-latin",e.UpperRoman="upper-roman",e.Initial="initial",e.Inherit="inherit",e}({});var Jut=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),ect=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Jut);Jut.isHotkey,Jut.isCodeHotkey,Jut.isKeyHotkey,Jut.parseHotkey,Jut.compareHotkey,Jut.toKeyCode,Jut.toKeyName;const tct=(e,[t,n],{getPreviousEntry:r,getNextEntry:i,query:o,eqIndent:a=!0,breakQuery:s,breakOnLowerIndent:l=!0,breakOnEqIndentNeqListStyleType:u=!0})=>{if(!r&&!i)return;const c=null!=i?i:r;let d=c([t,n]);for(;;){if(!d)return;const[e,n]=d,r=t[Yut],i=e[Yut];if(!aJe(i))return;if(s&&s(e))return;if(l&&itct(0,t,{getNextEntry:([,t])=>{const n=kJe.next(t),r=Z1e(e,n);if(r)return[r,n]},...n,getPreviousEntry:void 0}),rct=(e,t,n)=>tct(0,t,{getPreviousEntry:([,t])=>{const n=iot(t);if(!n)return;const r=Z1e(e,n);return r?[r,n]:void 0},...n,getNextEntry:void 0}),ict=(e,t,n)=>{var r,i;const[o,a]=t,[s]=null!=n?n:[null],l=null!==(r=null==s?void 0:s[sct])&&void 0!==r?r:1,u=null!==(i=o[sct])&&void 0!==i?i:1,c=o[lct],d=null==c?l+1:c;return u!==d&&(g2e(e,{[sct]:d},{at:a}),!0)},oct=(e,t,n)=>k1e(e,(()=>{const[r]=t;if(!r[act])return;let i=!1,o=rct(e,t,n);if(!o&&(i=((e,[t,n])=>{if(aJe(t[sct]))return c2e(e,sct,{at:n}),!0})(e,t),!i))return;let a=!0,s=t;for(;a&&(a=ict(e,s,o)||i,a&&(i=!0),o=[Z1e(e,s[1]),s[1]],s=nct(e,s,n),s););return i})),act="listStyleType",sct="listStart",lct="listRestart",uct=(E7e({key:act,inject:{belowComponent:e=>{const{element:t}=e,n=t[act],r=t[sct];if(n){let e=Hut(`slate-${act}-${n}`);const t={padding:0,margin:0,listStyleType:n};return[Kut.Disc,Kut.Circle,Kut.Square].includes(n)?(e=Hut(e,"slate-list-bullet"),function({children:n}){return c.createElement("ul",{style:t,className:e},c.createElement("li",null,n))}):(e=Hut(e,"slate-list-number"),function({children:n}){return c.createElement("ol",{style:t,className:e,start:r},c.createElement("li",null,n))})}}},withOverrides:(e,{options:t})=>{const{apply:n}=e,{getSiblingIndentListOptions:r}=t;return e.normalizeNode=((e,{getSiblingIndentListOptions:t}={})=>{const{normalizeNode:n}=e;return([r,i])=>{if(!k1e(e,(()=>!!((e,[t,n])=>{if(!aJe(t[Yut])&&(t[act]||t[sct]))return c2e(e,[act,sct],{at:n}),!0})(e,[r,i])||!!oct(e,[r,i],t)||void 0)))return n([r,i])}})(e,t),e.apply=t=>{const{path:i}=t;let o=null;if("set_node"===t.type&&(o=Z1e(e,i)),"insert_node"===t.type){const n=t.node[act];if(n&&["lower-roman","upper-roman"].includes(n)){const o=rct(e,[t.node,i],{eqIndent:!1,breakOnEqIndentNeqListStyleType:!1,...r});if(o){const e=o[0][act];e===Kut.LowerAlpha&&n===Kut.LowerRoman?t.node[act]=Kut.LowerAlpha:e===Kut.UpperAlpha&&n===Kut.UpperRoman&&(t.node[act]=Kut.UpperAlpha)}}}let a=null;if("merge_node"===t.type&&t.properties[act]){const t=Z1e(e,i);if(t){const n=nct(e,[t,i],r);n&&(a=l1e(e,n[1]))}}if(n(t),"merge_node"===t.type){const{properties:n}=t;if(n[act]){const t=Z1e(e,i);if(!t)return;if(oct(e,[t,i],r),a){const t=a.unref();if(t){const n=Z1e(e,t);n&&oct(e,[n,t],r)}}}}if(o&&"set_node"===t.type){const n=t.properties[act],a=t.newProperties[act];if(n&&!a){if(!Z1e(e,i))return;const t=nct(e,[o,i],r);if(!t)return;oct(e,t,r)}if((n||a)&&n!==a){const t=Z1e(e,i);if(!t)return;let n=nct(e,[o,i],r);n&&oct(e,n,r),n=nct(e,[t,i],r),n&&oct(e,n,r)}if(t.properties[Yut]!==t.newProperties[Yut]){const t=Z1e(e,i);if(!t)return;let n=rct(e,[o,i],{eqIndent:!1,breakOnLowerIndent:!1,breakOnEqIndentNeqListStyleType:!1,...r});n&&oct(e,n,r),n=rct(e,[t,i],{eqIndent:!1,breakOnLowerIndent:!1,breakOnEqIndentNeqListStyleType:!1,...r}),n&&oct(e,n,r);let a=nct(e,[o,i],{eqIndent:!1,breakOnLowerIndent:!1,breakOnEqIndentNeqListStyleType:!1});a&&oct(e,a,r),a=nct(e,[t,i],{eqIndent:!1,breakOnLowerIndent:!1,breakOnEqIndentNeqListStyleType:!1}),a&&oct(e,a,r)}}},e},handlers:{onKeyDown:(e,t)=>t=>{if(t.defaultPrevented)return;if(!e.selection)return;const n=knt(e);if(!n)return;const r=n[0];r[act]&&ect("Enter",t)&&lot(e)&&r.indent&&(((e,t={})=>{qut(e,{offset:-1,unsetNodesProps:[act],...t})})(e),t.stopPropagation(),t.preventDefault())}},options:{getListStyleType:e=>e.style.listStyleType},then:(e,{options:t})=>({inject:{pluginsByKey:{[Pet]:{editor:{insertData:{transformData:e=>{const t=(new DOMParser).parseFromString(e,"text/html"),{body:n}=t;return Tet(n,(e=>{if("LI"===e.tagName){const{childNodes:t}=e,n=[];return t.forEach((e=>{Met(e)?n.push(...e.childNodes):n.push(e)})),e.replaceChildren(...n),!1}return!0})),Fet(n.innerHTML)}}}}}},deserializeHtml:{isElement:!0,getNode:n=>{var r;return{type:H7e(e,L7e),listStyleType:null===(r=t.getListStyleType)||void 0===r?void 0:r.call(t,n),indent:Number(n.getAttribute("aria-level"))}},rules:[{validNodeName:"LI"}]}})}),E7e({key:"kbd",isLeaf:!0,handlers:{onKeyDown:Tst},deserializeHtml:{rules:[{validNodeName:["KBD"]}]}}),"lineHeight");E7e({key:uct,inject:{props:{nodeKey:uct,defaultNodeValue:1.5}},then:e=>({inject:{props:{validTypes:[H7e(e,L7e)]}},then:(t,n)=>Ftt(e,n,{deserializeHtml:{getNode:(e,t)=>{e.style.lineHeight&&(t[n.key]=e.style.lineHeight)}}})})}),E7e({key:"normalizeTypes",withOverrides:(e,{options:{rules:t,onError:n}})=>{const{normalizeNode:r}=e;return e.normalizeNode=([i,o])=>{if(0===o.length){const r=t.some((({strictType:t,type:r,path:i})=>{const o=Z1e(e,i);if(o){if(t&&f1e(o)&&o.type!==t)return g2e(e,{type:t},{at:i}),!0}else try{return mot(e,{type:null!=t?t:r,children:[{text:""}]},{at:i}),!0}catch(e){null==n||n(e)}return!1}));if(r)return}return r([i,o])},e},options:{rules:[]}});var cct=Array.isArray;const dct=(e,{options:{types:t}})=>{const n=function(){if(!arguments.length)return[];var e=arguments[0];return cct(e)?e:[e]}(t),{normalizeNode:r}=e;return e.normalizeNode=([t,i])=>{f1e(t)&&t.type&&n.includes(t.type)&&""===H1e(t)?E1e(e,{at:i}):r([t,i])},e},fct=(E7e({key:"removeEmptyNodes",withOverrides:dct}),(e,{url:t,text:n="",target:r,children:i})=>({type:H7e(e,xct),url:t,target:r,children:null!=i?i:[{text:n}]})),hct=(e,t)=>{const{allowedSchemes:n,defaultLinkAttributes:r,dangerouslySkipSanitization:i}=Qtt(e,xct),o={...r},a=i?t.url:oJe(t.url,{allowedSchemes:n})||void 0;return void 0!==a&&(o.href=a),"target"in t&&(o.target=t.target),o},pct=DHe("floatingLink")({openEditorId:null,mouseDown:!1,updated:!1,url:"",text:"",newTab:!1,mode:"",isEditing:!1}).extendActions((e=>({reset:()=>{e.url(""),e.text(""),e.newTab(!1),e.mode(""),e.isEditing(!1)}}))).extendActions((e=>({show:(t,n)=>{e.mode(t),e.isEditing(!1),e.openEditorId(n)},hide:()=>{e.openEditorId(null),e.reset()}}))).extendSelectors((e=>({isOpen:t=>e.openEditorId===t}))),mct=pct.set,gct=pct.get,vct=()=>pct.use,Oct=(yst("input")({propsHook:({checked:e,ref:t,setChecked:n})=>({ref:t,props:{onChange:(0,c.useCallback)((e=>{n(e.target.checked),mct.newTab(e.target.checked)}),[n]),checked:e,type:"checkbox"}}),stateHook:()=>{const e=vct().updated(),t=(0,c.useRef)(null),[n,r]=(0,c.useState)(gct.newTab());return(0,c.useEffect)((()=>{t.current&&e&&setTimeout((()=>{var e;null===(e=t.current)||void 0===e||e.focus()}),0)}),[e]),{ref:t,checked:n,setChecked:r}}}),yst("input")({propsHook:e=>{const t=(0,c.useCallback)((e=>{mct.url(e.target.value)}),[]);return{ref:e.ref,props:{onChange:t,defaultValue:gct.url()}}},stateHook:()=>{const e=vct().updated(),t=(0,c.useRef)(null);return(0,c.useEffect)((()=>{t.current&&e&&setTimeout((()=>{var e;null===(e=t.current)||void 0===e||e.focus()}),0)}),[e]),{ref:t}}}),yst("a")({stateHook:()=>{const e=Ytt(),t=Ztt(),n=(0,c.useMemo)((()=>p2e(e,{match:{type:H7e(e,xct)}})),[e,t]);if(!n)return{};const[r]=n;return{element:r}},propsHook:({element:e})=>{const t=Ytt();return e?{props:{...hct(t,e),target:"_blank","aria-label":"Open link in a new tab",onMouseOver:e=>{e.stopPropagation()}}}:{props:{}}}}),(e,t,n)=>{i2e(e,[fct(e,t)],n)}),yct=(e,t)=>k1e(e,(()=>{if(null!=t&&t.split){var n,r,i,o,a,s;if(g1e(e,{at:null===(n=e.selection)||void 0===n?void 0:n.anchor,match:{type:H7e(e,xct)}}))return u2e(e,{at:null===(i=e.selection)||void 0===i?void 0:i.anchor,match:t=>f1e(t)&&t.type===H7e(e,xct)}),yct(e,{at:null===(o=e.selection)||void 0===o?void 0:o.anchor}),!0;if(g1e(e,{at:null===(r=e.selection)||void 0===r?void 0:r.focus,match:{type:H7e(e,xct)}}))return u2e(e,{at:null===(a=e.selection)||void 0===a?void 0:a.focus,match:t=>f1e(t)&&t.type===H7e(e,xct)}),yct(e,{at:null===(s=e.selection)||void 0===s?void 0:s.focus}),!0}d2e(e,{match:{type:H7e(e,xct)},...t})})),bct=(e,{text:t})=>{const n=g1e(e,{match:{type:H7e(e,xct)}});if(n){const[r,i]=n;if(null!=t&&t.length&&t!==z1e(e,i)){const n=r.children[0];Oot(e,{at:i,nodes:{...n,text:t},insertOptions:{select:!0}})}}},wct=(e,{url:t,text:n,target:r,insertTextInLink:i,insertNodesOptions:o,skipValidation:a=!1})=>{var s,l,u;const c=e.selection;if(!c)return;const d=g1e(e,{at:c,match:{type:H7e(e,xct)}});if(i&&d)return e.insertText(t),!0;if(!a&&!kct(e,t))return;var f,h;if(aJe(n)&&0===n.length&&(n=t),d)return t===(null===(f=d[0])||void 0===f?void 0:f.url)&&r===(null===(h=d[0])||void 0===h?void 0:h.target)||s2e(e,{url:t,target:r},{at:d[1]}),bct(e,{url:t,text:n,target:r}),!0;const p=p2e(e,{at:c,match:{type:H7e(e,xct)}}),[m,g]=null!=p?p:[];let v=!1;if(g&&null!==(s=n)&&void 0!==s&&s.length&&n!==z1e(e,g)&&(v=!0),n2e(c))return yct(e,d?{at:d[1]}:{split:!0}),((e,{url:t,target:n,...r})=>{f2e(e,{type:H7e(e,xct),url:t,target:n,children:[]},{split:!0,...r})})(e,{url:t,target:r}),bct(e,{url:t,target:r,text:n}),!0;v&&E1e(e,{at:g});const O=G1e(null!=m?m:{}),y=null===(l=e.selection)||void 0===l?void 0:l.focus.path;if(!y)return;const b=((e,t)=>WJe.leaf(e,t))(e,y);return null!==(u=n)&&void 0!==u&&u.length||(n=t),Oct(e,{...O,url:t,target:r,children:[{...b,text:n}]},o),!0},kct=(e,t)=>{const{allowedSchemes:n,isUrl:r,dangerouslySkipSanitization:i}=Qtt(e,xct);return!(r&&!r(t)||!i&&!oJe(t,{allowedSchemes:n,permitInvalid:!0}))},xct="a",_ct=E7e({key:xct,isElement:!0,isInline:!0,withOverrides:(e,{type:t,options:{isUrl:n,getUrlHref:r,rangeBeforeOptions:i,keepSelectedTextOnPaste:o}})=>{const{insertData:a,insertText:s,apply:l,normalizeNode:u,insertBreak:c}=e,d=()=>{k1e(e,(()=>{var t;const o=e.selection;let a=oot(e,o,i);if(a||(a=aot(e)),!a)return;if(m2e(e,{at:a,match:{type:H7e(e,xct)}}))return;let s=z1e(e,a);s=null!==(t=null==r?void 0:r(s))&&void 0!==t?t:s,n(s)&&(C1e(e,a),wct(e,{url:s}),r2e(e,{edge:"end"}))}))};return e.insertBreak=()=>{if(!t2e(e.selection))return c();d(),c()},e.insertText=t=>{" "===t&&t2e(e.selection)&&d(),s(t)},e.insertData=t=>{const n=t.getData("text/plain"),i=null==r?void 0:r(n);if(n){const t=i||n;if(wct(e,{text:o?void 0:t,url:t,insertTextInLink:!0}))return}a(t)},e.apply=t=>{if("set_selection"===t.type){const n=t.newProperties;if(n&&n.focus&&n.anchor&&t2e(n)){const r=g1e(e,{at:n,match:{type:H7e(e,xct)}});if(r){const[,i]=r;let o;B1e(e,n.focus,i)&&(o=((e,t)=>{const n=b1e(e,{at:t});if(n)return T1e(e,n[1])})(e,i)),X1e(e,n.focus,i)&&(o=Ent(e,i)),o&&(t.newProperties={anchor:o,focus:o})}}}l(t)},e.normalizeNode=([t,n])=>{if(t.type===H7e(e,xct)){const t=e.selection;if(t&&t2e(t)&&X1e(e,t.focus,n)){const t=Ent(e,n);if(t)C1e(e,t);else{const t=kJe.next(n);i2e(e,{text:""},{at:t}),C1e(e,t)}}}u([t,n])},e=dct(e,Xtt({options:{types:t}}))},options:{allowedSchemes:["http","https","mailto","tel"],dangerouslySkipSanitization:!1,defaultLinkAttributes:{},isUrl:iJe,rangeBeforeOptions:{matchString:" ",skipInvalid:!0,afterMatch:!0},triggerFloatingLinkHotkeys:"meta+k, ctrl+k",keepSelectedTextOnPaste:!0},then:(e,{type:t})=>({props:({element:t})=>({nodeProps:hct(e,t)}),deserializeHtml:{rules:[{validNodeName:"A"}],getNode:n=>{const r=n.getAttribute("href");if(r&&kct(e,r))return{type:t,url:r,target:n.getAttribute("target")||"_blank"}}}})});var Sct=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Pct=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Sct);Sct.isHotkey,Sct.isCodeHotkey,Sct.isKeyHotkey,Sct.parseHotkey,Sct.compareHotkey,Sct.toKeyCode,Sct.toKeyName;const Ect={key:"",which:8},Cct=(e,{options:{rules:t}})=>n=>{if(n.defaultPrevented)return;let r;return e.selection?(t2e(e.selection)&&t.forEach((({types:t,defaultType:i,hotkey:o,predicate:a,onReset:s})=>{var l;o&&Pct(o,n)&&a(e)&&m2e(e,{match:{type:t}})&&(null===(l=n.preventDefault)||void 0===l||l.call(n),g2e(e,{type:i}),s&&s(e),r=!0)})),r):void 0},Tct=E7e({key:"resetNode",handlers:{onKeyDown:Cct},withOverrides:(e,{options:t})=>{const{deleteFragment:n,deleteBackward:r}=e;if(!t.disableEditorReset){const t=()=>{const{selection:t}=e;if(!t)return;const n=A1e(e,[]),r=T1e(e,[]);return YJe.equals(t.anchor,n)&&YJe.equals(t.focus,r)||YJe.equals(t.focus,n)&&YJe.equals(t.anchor,r)?(((e,t)=>{Oot(e,{at:[],nodes:e.childrenFactory(),insertOptions:{select:!0}})})(e),!0):void 0};e.deleteFragment=e=>{t()||n(e)}}return t.disableFirstBlockReset||(e.deleteBackward=t=>{const{selection:n}=e;if(n&&t2e(n)){const t=A1e(e,[]);if(YJe.equals(n.anchor,t)){const t=Z1e(e,[0]),{children:n,...r}=e.blockFactory({},[0]);return void k1e(e,(()=>{c2e(e,Object.keys(G1e(t)),{at:[0]}),s2e(e,r,{at:[0]})}))}}r(t)}),e},options:{rules:[]}});var $ct=Array.isArray,Qct=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Rct=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Qct);Qct.isHotkey,Qct.isCodeHotkey,Qct.isKeyHotkey,Qct.parseHotkey,Qct.compareHotkey,Qct.toKeyCode,Qct.toKeyName;const Act=(e,t)=>{var n;const r=null===(n=y1e(e,t))||void 0===n?void 0:n[0];return(null==r?void 0:r.type)===H7e(e,udt)},jct=e=>H7e(e,sdt),Dct=e=>H7e(e,ldt),Mct=e=>[Dct(e),jct(e)],Ict=(e,{diffListPath:t,liPath:n})=>{const r=g1e(e,{at:n,match:{type:Mct(e)}});if(!r)return;const[i,o]=r;if(!t||!kJe.equals(o,t)){if(i.children.length<2){const n=g1e(e,{at:o,match:{type:H7e(e,udt)}});if(n)return Ict(e,{liPath:n[1],diffListPath:t})||o}return n}},zct=(e,{at:t=e.selection}={})=>{const n=H7e(e,udt);let r;if(r=AJe.isRange(t)&&!t2e(t)?t.focus.path:AJe.isRange(t)?t.anchor.path:t,r&&Z1e(e,r)){const t=g1e(e,{at:r,match:{type:n}});if(t)return{list:y1e(e,t[1]),listItem:t}}},Wct=(e,t=e.selection)=>{if(!t)return;const n=g1e(e,{at:t,match:{type:[H7e(e,sdt),H7e(e,ldt)]}});if(n){var r;const[,t]=n;return null!==(r=Wct(e,t))&&void 0!==r?r:n}},Nct="action_item",Lct=E7e({key:Nct,isElement:!0,withOverrides:(e,{options:t})=>{const{insertBreak:n}=e;return e.insertBreak=()=>{((e,t)=>{if(e.selection&&Fct(e)){const n=((e,{inheritCheckStateOnLineStartBreak:t=!1,inheritCheckStateOnLineEndBreak:n=!1})=>{const r=H7e(e,Nct);if(!e.selection)return!1;const i=g1e(e,{match:{type:r}});if(!i)return!1;const[o,a]=i;let s=!1;return k1e(e,(()=>{AJe.isCollapsed(e.selection)||S1e(e);const i=B1e(e,e.selection.focus,a),l=uot(e),u=kJe.next(a);if(i)return mot(e,{type:r,checked:!!t&&o.checked,children:[{text:""}]},{at:a}),void(s=!0);if(l){const t=W1e(e)||{};mot(e,{type:r,checked:!!n&&o.checked,children:[{text:"",...t}]},{at:u}),C1e(e,u)}else k1e(e,(()=>{u2e(e)}));s=!0})),s})(e,t);if(n)return!0}})(e,t)||n()},e},handlers:{onKeyDown:Cst},options:{hotkey:["mod+opt+4","mod+shift+4"]}}),Fct=(e,{at:t=e.selection}={})=>{const n=H7e(e,Nct);let r;if(r=AJe.isRange(t)&&!t2e(t)?t.focus.path:AJe.isRange(t)?t.anchor.path:t,r&&Z1e(e,r)){const t=g1e(e,{at:r,match:{type:n}});if(t)return{list:y1e(e,t[1]),listItem:t}}},Uct=(e,t)=>t.children.some((t=>p1e(t,[],{type:Mct(e)}))),Xct=e=>{const{selection:t}=e;return!(!t||t2e(t))&&(!!not(e)&&m2e(e,{match:{type:H7e(e,udt)}}))},qct=(e,t)=>f1e(t)&&Mct(e).includes(t.type),Bct=(e,{fromList:t,fromListItem:n,fromStartIndex:r,to:i,toList:o,toListIndex:a=null,deleteFromList:s=!0})=>{let l,u;return k1e(e,(()=>{if(n){const t=wnt(e,{at:n[1],match:{type:Mct(e)}});if(!t)return;l=null==t?void 0:t[1]}else{if(!t)return;l=t[1]}let c=null;if(i&&(c=i),o)if(null===a){const e=_nt(o);c=kJe.next(e)}else c=o[1].concat([a]);c&&(u=got(e,{at:l,to:c,fromStartIndex:r}),s&&S1e(e,{at:l}))})),u},Vct=(e,{at:t}={})=>{const n=()=>{if(g1e(e,{match:{type:Mct(e),at:t}}))return!0;if(!t&&e.selection){const t=Y1e(e,e.selection.anchor.path,e.selection.focus.path);if(f1e(t[0])&&Mct(e).includes(t[0].type))return!0}return!1};k1e(e,(()=>{do{knt(e,{at:t,match:{type:H7e(e,cdt)}})&&g2e(e,{at:t,type:H7e(e,L7e)}),d2e(e,{at:t,match:{type:H7e(e,udt)},split:!0}),d2e(e,{at:t,match:{type:[H7e(e,sdt),H7e(e,ldt)]},split:!0})}while(n())}))},Yct=(e,{list:t,listItem:n})=>{let r=!1;return k1e(e,(()=>{r=(()=>{const[r,i]=t,[o,a]=n,s=g1e(e,{at:i,match:{type:H7e(e,udt)}});if(!s){let s;try{s=kJe.next(i)}catch(e){return}const l=Uct(e,o),u=!Snt(t,a);if((l||u)&&mot(e,{type:r.type,children:[]},{at:s}),l){const t=Z1e(e,s);if(!t)return;Bct(e,{fromListItem:n,toList:[t,s]})}if(u){const n=Z1e(e,s);if(!n)return;Bct(e,{fromList:t,fromStartIndex:a.at(-1)+1,toList:[n,s],deleteFromList:!1})}return Vct(e,{at:a.concat(0)}),!0}const[,l]=s,u=a.concat([1]);if(!Snt(t,a)){Uct(e,o)||mot(e,{type:r.type,children:[]},{at:u});const t=Z1e(e,u);if(!t)return;Bct(e,{fromListItem:s,toList:[t,u],fromStartIndex:a.at(-1)+1,deleteFromList:!1})}const c=kJe.next(l);return P1e(e,{at:a,to:c}),!0})()})),r},Zct=(e,{list:t,listItem:n})=>{const[,r]=t;return!Act(e,r)&&(Yct(e,{list:t,listItem:n}),!0)},Gct=(e,{fromListItem:t,toListItem:n,start:r})=>{const[,i]=t,[,o]=n;let a=0;return k1e(e,(()=>{const t=wnt(e,{at:i,match:{type:Mct(e)}});if(!t)return;const[,n]=t,s=wnt(e,{at:o,match:{type:Mct(e)}});let l;if(s)if(r){const[,e]=s;l=e.concat([0])}else l=kJe.next(_nt(s));else{const t=y1e(e,i);if(!t)return;const[n]=t,r=n.type,a=o.concat([1]);mot(e,{type:r,children:[]},{at:a}),l=a.concat([0])}a=got(e,{at:n,to:l}),S1e(e,{at:n})})),a},Hct=(e,{list:t,listItem:n,reverse:r=!0})=>{const[i,o]=n;if(n2e(e.selection)||!Uct(e,i))return!1;const a=iot(o);let s=!1;return k1e(e,(()=>{if(a){const t=N1e(e,a);if(!t)return;let i=kJe.next(o);mot(e,{type:H7e(e,udt),children:[{type:H7e(e,cdt),children:[{text:""}]}]},{at:i});const l=N1e(e,i);if(!l)return;const u=l1e(e,l[1]);return Gct(e,{fromListItem:n,toListItem:l}),M1e(e,{reverse:r}),i=u.unref(),Gct(e,{fromListItem:[l[0],i],toListItem:t}),E1e(e,{at:i}),void(s=!0)}Bct(e,{fromListItem:n,toList:t,toListIndex:1})})),s},Kct=(e,{type:t,pluginKey:n=t})=>k1e(e,(()=>{if(!e.selection)return;const{validLiChildrenTypes:r}=Qtt(e,n);if(t2e(e.selection)||!not(e)){const n=zct(e);if(n){const{list:r}=n;r[0].type===t?Vct(e):g2e(e,{type:t},{at:e.selection,match:t=>f1e(t)&&Mct(e).includes(t.type),mode:"lowest"})}else{f2e(e,{type:t,children:[]});const n=O1e(e,{match:{type:H7e(e,L7e)}}),i=Array.from(n);knt(e,{match:{type:r}})||g2e(e,{type:H7e(e,cdt)});const o={type:H7e(e,udt),children:[]};for(const[,t]of i)f2e(e,o,{at:t})}}else{const[n,i]=AJe.edges(e.selection),o=Y1e(e,n.path,i.path);if(Mct(e).includes(o[0].type)||o[0].type===H7e(e,udt))if(o[0].type===t)Vct(e);else{const n=p2e(e,{at:AJe.start(e.selection),match:{type:Mct(e)},mode:"lowest"}),r=p2e(e,{at:AJe.end(e.selection),match:{type:Mct(e)},mode:"lowest"}),i=Math.min(n[1].length,r[1].length);g2e(e,{type:t},{at:e.selection,match:(t,n)=>f1e(t)&&Mct(e).includes(t.type)&&n.length>=i,mode:"all"})}else{const n=o[1].length,i=O1e(e,{mode:"all"});Array.from(i).filter((([,e])=>e.length===n+1)).forEach((n=>{if(Mct(e).includes(n[0].type))g2e(e,{type:t},{at:n[1],match:t=>f1e(t)&&Mct(e).includes(t.type),mode:"all"});else{null!=r&&r.includes(n[0].type)||g2e(e,{type:H7e(e,cdt)},{at:n[1]});const i={type:H7e(e,udt),children:[]};f2e(e,i,{at:n[1]}),f2e(e,{type:t,children:[]},{at:n[1]})}}))}}})),Jct=(e,{type:t,options:{hotkey:n,enableResetOnShiftTab:r}})=>i=>{if(i.defaultPrevented)return;const o=Ltt.isTab(e,i),a=Ltt.isUntab(e,i);let s=e.selection;if(e.selection&&(o||a)){const{selection:t}=e;if(!t2e(e.selection)){const{anchor:n,focus:r}=AJe.isBackward(t)?{anchor:{...t.focus},focus:{...t.anchor}}:{anchor:{...t.anchor},focus:{...t.focus}},i=v1e(e,{anchor:n,focus:r});i&&(s=i,C1e(e,i))}const n=m2e(e,{match:{type:H7e(e,udt)}});if(s&&n)return i.preventDefault(),((e,{increase:t=!0,at:n=(t=>null!==(t=e.selection)&&void 0!==t?t:void 0)(),enableResetOnShiftTab:r}={})=>{const i=O1e(e,{at:n,match:{type:H7e(e,cdt)}}),o=Array.from(i);if(0===o.length)return;const a=[],s=[];o.forEach((t=>{const n=t[1],r=kJe.parent(n);a.some((e=>{const t=kJe.parent(e);return kJe.isAncestor(t,r)}))||(a.push(n),s.push(l1e(e,n)))}));const l=t?s:s.reverse();k1e(e,(()=>{let n=!1;return l.forEach((i=>{const o=i.unref();if(!o)return;const a=y1e(e,o);if(!a)return;const s=y1e(e,a[1]);if(!s)return;let l;t?l=((e,{list:t,listItem:n})=>{let r=!1;const[i]=t,[,o]=n;let a;try{a=kJe.previous(o)}catch(e){return}const s=N1e(e,a);if(s){const[t,n]=s,a=t.children.find((t=>p1e(t,[],{type:Mct(e)}))),l=n.concat(a?[1,a.children.length]:[1]);k1e(e,(()=>{a||f2e(e,{type:i.type,children:[]},{at:o}),P1e(e,{at:o,to:l}),r=!0}))}return r})(e,{list:s,listItem:a}):Act(e,s[1])?l=Yct(e,{list:s,listItem:a}):r&&(l=Zct(e,{list:s,listItem:a})),n=l||n})),n}))})(e,{at:s,increase:o,enableResetOnShiftTab:r}),!0}if(!n)return;const l=function(){if(!arguments.length)return[];var e=arguments[0];return $ct(e)?e:[e]}(n);for(const n of l)Rct(n)(i)&&Kct(e,{type:t})},edt=(e,t)=>{const n=zct(e,{});let r=!1;if(n){const{list:i,listItem:o}=n;hot(e,{match:t=>t.type===H7e(e,udt)})&&k1e(e,(()=>{if(r=Zct(e,{list:i,listItem:o}),r)return!0;if(r=Hct(e,{list:i,listItem:o}),r)return!0;if(0===o[1].at(-1)&&!Act(e,i[1]))return Cct(e,Xtt({options:{rules:[{types:[H7e(e,udt)],defaultType:H7e(e,L7e),hotkey:"backspace",predicate:()=>hot(e),onReset:e=>Vct(e)}]}}))(Ect),void(r=!0);const n=R1e(e,e.selection.focus);let a,s=!1;if(n&&Xct({...e,selection:{anchor:e.selection.anchor,focus:n}})){const t=H7e(e,cdt),n=O1e(e,{at:o[1],mode:"lowest",match:e=>e.type===t});a=[...n][0],s=a[0].children.length>1}if(M1e(e,{unit:t,reverse:!0}),r=!0,!a||!s)return;const l=N1e(e,kJe.parent(a[1]));l&&0===l[0].children.length&&E1e(e,{at:l[1]})}))}return r},tdt=(e,t,n)=>{let r=!1;return null!=e&&e.selection&&fot(e)?(k1e(e,(()=>{const i=zct(e,{});r=i?((e,t,n,r)=>{const{listItem:i}=t;if(!Uct(e,i[0])){const t=H7e(e,udt),o=O1e(e,{at:i[1],mode:"lowest",match:(n,r)=>{var i;if(0===r.length)return!1;const o=n.type===t,a=(null===(i=Z1e(e,kJe.next(r)))||void 0===i?void 0:i.type)===t;return o&&a}}),a=Array.from(o,(e=>e[1]))[0];if(!a){const t=Q1e(e,i[1]);if(t){const n=zct(e,{at:t});if(n){const t=Wct(e,i[1]);return Bct(e,{fromList:n.list,toList:t,deleteFromList:!0}),!0}}return!1}const s=N1e(e,kJe.next(a));if(!s)return!1;const l=y1e(e,s[1]);if(l&&Hct(e,{list:l,listItem:s,reverse:!1}))return!0;const u=Q1e(e,e.selection.focus);if(!u||!Xct({...e,selection:{anchor:e.selection.anchor,focus:u}}))return!1;const c=H7e(e,cdt),d=O1e(e,{at:u.path,mode:"lowest",match:e=>e.type===c}),f=[...d][0];if(f[0].children.length<2)return!1;n(r);const h=N1e(e,kJe.parent(f[1]));return h&&0===h[0].children.length&&E1e(e,{at:h[1]}),!0}const o=N1e(e,kJe.next([...i[1],0]));if(!o)return!1;const a=xnt(o)[0];return!!Zct(e,{list:o,listItem:a})||!!Hct(e,{list:o,listItem:a})})(e,i,t,n):(e=>{const t=Q1e(e,e.selection.focus.path);if(t){const n=zct(e,{at:t});if(n){const{listItem:t}=n,r=knt(e,{at:e.selection.anchor});if(!z1e(e,r[1]))return E1e(e),!0;if(Uct(e,t[0])){const n=zct(e,{at:[...t[1],1,0,0]});Yct(e,n)}}}return!1})(e)})),r):r},ndt=e=>{const t=A1e(e,e.selection);return g1e(e,{at:t,match:{type:H7e(e,udt)}})},rdt=e=>{let t=!1;return k1e(e,(()=>{if(!Xct(e))return;const n=T1e(e,e.selection),r=g1e(e,{at:n,match:{type:H7e(e,udt)}}),i=r&&!Uct(e,r[0])?l1e(e,r[1]):void 0;if(!ndt(e)||!r)return void(t=!1);M1e(e);const o=ndt(e);if(i){const n=i.unref(),r=o&&y1e(e,o[1]),a=Ict(e,{liPath:n,diffListPath:null==r?void 0:r[1]});a&&E1e(e,{at:a}),t=!0}})),t},idt=e=>{const{insertFragment:t}=e,n=G7e(e,udt),r=(e=>H7e(e,udt))(e),i=(e=>H7e(e,cdt))(e),o=t=>{let n=null,o=t;for(;qct(e,o)||o.type===r&&o.children[0].type!==i;)n=o,[o]=o.children;return n?n.children:[o]},a=t=>{if(!qct(e,t))return[t];const r=(u=t,WJe.texts(u,void 0)),i=Array.from(r),a=i.reduce(((e,n)=>kJe.isAncestor(e[1],n[1])?e:Y1e(t,n[1],e[1])),((e,t,{type:n})=>{let r=kJe.parent(t[1]);for(;Z1e(e,r).type!==n;)r=kJe.parent(r);return[Z1e(e,r),r]})(t,i[0],n)),[s,...l]=qct(e,a[0])?a[0].children:[a[0]];var u;return[...o(s),...l]},s=e=>e.type===r?e:{type:r,children:[e]};return n=>{let o=p2e(e,{match:{type:r},mode:"lowest"});if(!o)return t(qct(e,n[0])?[{text:""},...n]:n);t([{text:""}]),o=p2e(e,{match:{type:r},mode:"lowest"});const l=p2e(e,{match:{type:i},mode:"lowest"});if(!l)return t(qct(e,n[0])?[{text:""},...n]:n);const{textNode:u,listItemNodes:c}=((t,n,r)=>{const[,o]=n,[l,u]=r,c=!H1e(l),[d,...f]=t.flatMap(a).map(s);let h,p;if(qct(e,t[0]))if((t=>1===t.length&&qct(e,t[0])&&1===[...K1e({children:t})].filter((e=>f1e(e[0]))).filter((([e])=>e.type===i)).length)(t))h=d,p=f;else if(c){const t=Z1e(e,o),[,...n]=t.children,[r,...i]=d.children;if(mot(e,r,{at:kJe.next(u),select:!0}),E1e(e,{at:u}),null!=i&&i.length)if(null!=n&&n.length){const t=[...o,1,0];mot(e,i[0].children,{at:t,select:!0})}else mot(e,i,{at:kJe.next(u),select:!0});h={text:""},p=f}else h={text:""},p=[d,...f];else h=d,p=f;return{textNode:h,listItemNodes:p}})(n,o,l);t([u]);const[,d]=o;return mot(e,c,{at:kJe.next(d),select:!0})}},odt=(e,{children:t})=>{const n=[];for(const r of t)h1e(e,r[0])?n.push(...odt(e,{children:xnt(r)})):n.push(r);return n},adt=(e,{validLiChildrenTypes:t})=>{const{normalizeNode:n}=e,r=H7e(e,udt),i=H7e(e,cdt),o=H7e(e,L7e);return([a,s])=>{var l;if(!f1e(a))return n([a,s]);if(qct(e,a)){const t=xnt([a,s]).find((([e])=>e.type!==r));if(t)return f2e(e,{type:r,children:[]},{at:t[1]})}if(p1e(a,[],{type:Mct(e)})){if(0===a.children.length||!a.children.some((e=>e.type===r)))return E1e(e,{at:s});const t=kJe.next(s),n=Z1e(e,t);(null==n?void 0:n.type)===a.type&&Bct(e,{fromList:[n,t],toList:[a,s],deleteFromList:!0});const i=iot(s),o=Z1e(e,i);if((null==o?void 0:o.type)===a.type)return void e.normalizeNode([o,i]);if(((e,{nestedListItem:t})=>{const[,n]=t,r=y1e(e,n);if(!r||!p1e(r[0],[],{type:Mct(e)}))return!1;let i;try{i=kJe.previous(n)}catch(e){return!1}const o=N1e(e,i);if(o){const[,t]=o,r=t.concat([1]);return P1e(e,{at:n,to:r}),!0}})(e,{nestedListItem:[a,s]}))return}a.type===H7e(e,udt)&&((e,{listItem:t,validLiChildrenTypes:n=[]})=>{let r=!1;const i=new Set([H7e(e,sdt),H7e(e,ldt),H7e(e,cdt),...n]),[,o]=t,a=xnt(t),s=a.filter((([e])=>!i.has(e.type))).map((([,t])=>l1e(e,t))),l=a[0],[u,c]=null!=l?l:[];if(!l||!h1e(e,u))return((e,t,n)=>{mot(e,{type:t,children:[{text:""}]},m1e(e,n))})(e,H7e(e,cdt),{at:o.concat([0])}),!0;if(h1e(e,u)&&!p1e(u,[],{type:H7e(e,cdt)})){if(p1e(u,[],{type:Mct(e)})){const n=y1e(e,t[1]),r=l;return xnt(l).reverse().forEach((t=>{Yct(e,{list:r,listItem:t})})),E1e(e,{at:[...n[1],0]}),!0}if(n.includes(u.type))return!0;g2e(e,{type:H7e(e,cdt)},{at:c}),r=!0}const d=xnt(l);if(d.length>0){const t=[],n=[];for(const r of d){if(!h1e(e,r[0]))break;t.push(l1e(e,r[1])),n.push(...odt(e,{children:xnt(r)}))}const i=kJe.next(d.at(-1)[1]);n.reverse().forEach((([,t])=>{P1e(e,{at:t,to:i})})),t.forEach((t=>{const n=t.unref();n&&E1e(e,{at:n})})),t.length>0&&(r=!0)}return!!r||(s.reverse().forEach((t=>{const n=t.unref();n&&P1e(e,{at:n,to:c.concat([0])})})),s.length>0)})(e,{listItem:[a,s],validLiChildrenTypes:t})||(a.type!==i||i===o||(null===(l=y1e(e,s))||void 0===l?void 0:l[0].type)===r?n([a,s]):g2e(e,{type:o},{at:s}))}},sdt="ul",ldt="ol",udt="li",cdt="lic";E7e({key:"list",plugins:[{key:sdt,isElement:!0,handlers:{onKeyDown:Jct},withOverrides:(e,{options:{validLiChildrenTypes:t}})=>{const{insertBreak:n,deleteBackward:r,deleteForward:i,deleteFragment:o}=e;return e.insertBreak=()=>{(e=>{if(!e.selection)return;const t=zct(e,{});let n;if(t){const{list:r,listItem:i}=t;if(lot(e)&&(n=Yct(e,{list:r,listItem:i}),n))return!0}if(Cct(e,Xtt({options:{rules:[{types:[H7e(e,udt)],defaultType:H7e(e,L7e),predicate:()=>!n&&lot(e),onReset:e=>Vct(e)}]}}))(Ect))return!0;if(!n){const t=(e=>{const t=H7e(e,udt),n=H7e(e,cdt);if(!e.selection)return!1;const r=g1e(e,{match:{type:n}});if(!r)return!1;const[,i]=r,o=y1e(e,i);if(!o)return!1;const[a,s]=o;if(a.type!==t)return!1;let l=!1;return k1e(e,(()=>{AJe.isCollapsed(e.selection)||S1e(e);const r=B1e(e,e.selection.focus,i),o=uot(e),u=kJe.next(i),c=kJe.next(s);if(r)return mot(e,{type:t,children:[{type:n,children:[{text:""}]}]},{at:s}),void(l=!0);if(o){const r=W1e(e)||{};mot(e,{type:t,children:[{type:n,children:[{text:"",...r}]}]},{at:c}),C1e(e,c)}else k1e(e,(()=>{u2e(e),f2e(e,{type:t,children:[]},{at:u}),P1e(e,{at:u,to:c}),C1e(e,c),r2e(e,{edge:"start"})}));a.children.length>1&&P1e(e,{at:u,to:c.concat(1)}),l=!0})),l})(e);if(t)return!0}})(e)||n()},e.deleteBackward=t=>{edt(e,t)||r(t)},e.deleteForward=t=>{tdt(e,i,t)||i(t)},e.deleteFragment=t=>{rdt(e)||o(t)},e.insertFragment=idt(e),e.normalizeNode=adt(e,{validLiChildrenTypes:t}),e},deserializeHtml:{rules:[{validNodeName:"UL"}]}},{key:ldt,isElement:!0,handlers:{onKeyDown:Jct},deserializeHtml:{rules:[{validNodeName:"OL"}]}},{key:udt,isElement:!0,deserializeHtml:{rules:[{validNodeName:"LI"}]},then:(e,{type:t})=>({inject:{pluginsByKey:{[Pet]:{editor:{insertData:{preInsert:()=>m2e(e,{match:{type:t}})}}}}}})},{key:cdt,isElement:!0}]}),__webpack_require__(32090);const ddt=(e,t,n={})=>{const r={type:H7e(e,hdt),url:t,children:[{text:""}]};i2e(e,r,{nextBlock:!0,...n})},fdt=new Set(["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga"]),hdt="img",pdt=E7e({key:hdt,isElement:!0,isVoid:!0,withOverrides:(e,t)=>{const{options:{disableUploadInsert:n,disableEmbedInsert:r}}=t;return n||(e=((e,t)=>{const{options:{uploadImage:n}}=t,{insertData:r}=e;return e.insertData=i=>{const o=i.getData("text/plain"),{files:a}=i;if(!o&&a&&a.length>0){const s=I7e(e,t);if(!z7e(s,{data:o,dataTransfer:i}))return r(i);for(const t of a){const r=new FileReader,[i]=t.type.split("/");"image"===i&&(r.addEventListener("load",(async()=>{if(!r.result)return;const t=n?await n(r.result):r.result;ddt(e,t)})),r.readAsDataURL(t))}}else r(i)},e})(e,t)),r||(e=((e,t)=>{const{insertData:n}=e;return e.insertData=t=>{const r=t.getData("text/plain");(e=>{if(!iJe(e))return!1;const t=new URL(e).pathname.split(".").pop();return fdt.has(t)})(r)?ddt(e,r):n(t)},e})(e)),e},then:(e,{type:t})=>({deserializeHtml:{rules:[{validNodeName:"IMG"}],getNode:e=>({type:t,url:e.getAttribute("src")})}})}),mdt=(yst("img")({propsHook:()=>{const{url:e}=q5e();return{props:{src:e,draggable:!0}}}}),"media_embed"),gdt=(E7e({key:mdt,isElement:!0,isVoid:!0,options:{transformUrl:e=>{if("http"!==e.slice(0,4)){var t,n;const r=/src=".*?"/,i=/"([^"]*)"/,o=null===(t=e.match(r))||void 0===t?void 0:t[0],a=null==o||null===(n=o.match(i))||void 0===n?void 0:n[1];a&&(e=a)}return e}},then:(e,{type:t})=>({deserializeHtml:{rules:[{validNodeName:"IFRAME"}],getNode:e=>{const n=e.getAttribute("src");if(n)return{type:t,url:n}}}})}),DHe("floatingMedia")({url:"",isEditing:!1}).extendActions((e=>({reset:()=>{e.url(""),e.isEditing(!1)}})))),vdt=gdt.set,Odt=gdt.get;yst("button")({propsHook:()=>{const e=q5e();return{props:{onClick:(0,c.useCallback)((()=>{vdt.url(e.url),vdt.isEditing(!0)}),[e.url])}}}}),yst("input")({stateHook:({pluginKey:e}={})=>{const t=Ytt(),n=q5e();return dHe("enter",(r=>{((e,{element:t,pluginKey:n="media"})=>{let r=Odt.url();if(r===t.url)return vdt.reset(),!0;const{isUrl:i=iJe,transformUrl:o}=Qtt(e,n);return i(r)?(o&&(r=o(r)),s2e(e,{url:r}),vdt.reset(),j5e(e,e.selection),!0):void 0})(t,{element:n,pluginKey:e})&&r.preventDefault()}),{enableOnFormTags:["INPUT"]},[]),dHe("escape",(()=>{Odt.isEditing()&&(vdt.reset(),j5e(t,t.selection))}),{enableOnFormTags:["INPUT"],enableOnContentEditable:!0},[]),{defaultValue:Odt.url()}},propsHook:({defaultValue:e})=>({props:{onChange:(0,c.useCallback)((e=>{vdt.url(e.target.value)}),[]),autoFocus:!0,defaultValue:e}})});var ydt=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),bdt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ydt);ydt.isHotkey,ydt.isCodeHotkey,ydt.isKeyHotkey,ydt.parseHotkey,ydt.compareHotkey,ydt.toKeyCode,ydt.toKeyName;const wdt=(e,t)=>p2e(e,{...t,match:{type:H7e(e,Sdt)}}),kdt=(e,t)=>t.type===H7e(e,Sdt),xdt=e=>void 0!==wdt(e),_dt=(e,t)=>k1e(e,(()=>{const n=Z1e(e,t);if(!n)return;const{trigger:r}=n;o2e(e,r,{at:{path:[...t,0],offset:0}}),d2e(e,{at:t})})),Sdt="mention_input";var Pdt;E7e({key:"mention",isElement:!0,isInline:!0,isVoid:!0,isMarkableVoid:!0,handlers:{onKeyDown:(Pdt={query:xdt},e=>t=>{if(bdt("escape",t)){const n=wdt(e);return!!n&&(t.preventDefault(),_dt(e,n[1]),!0)}return((e,{query:t=(()=>!0)}={})=>n=>{const{selection:r}=e;return!(!r||AJe.isExpanded(r)||!t(e))&&(bdt("left",n)?(n.preventDefault(),a2e(e,{unit:"offset",reverse:!0}),!0):bdt("right",n)?(n.preventDefault(),a2e(e,{unit:"offset"}),!0):void 0)})(e,Pdt)(t)}),onBlur:e=>()=>{E1e(e,{match:e=>e.type===Sdt,at:[]})}},withOverrides:(e,{options:{id:t,trigger:n,triggerPreviousCharPattern:r,query:i,inputCreation:o}})=>{const{type:a}=G7e(e,Sdt),{apply:s,insertBreak:l,insertText:u,deleteBackward:c,insertFragment:d,insertTextData:f,insertNode:h}=e,p=e=>e.split(/\r\n|\r|\n/).map((e=>e.trim())).join("");return e.insertFragment=t=>void 0!==wdt(e)?u(t.map((e=>p(H1e(e)))).join("")):d(t),e.insertTextData=t=>{if(void 0===wdt(e))return f(t);const n=t.getData("text/plain");return!!n&&(e.insertText(p(n)),!0)},e.deleteBackward=t=>{const n=wdt(e);if(n&&""===H1e(n[0]))return _dt(e,n[1]);c(t)},e.insertBreak=()=>{xdt(e)||l()},e.insertText=t=>{if(!e.selection||t!==n||i&&!i(e)||xdt(e))return u(t);const s=z1e(e,U1e(e,e.selection,R1e(e,e.selection)));if((null==r?void 0:r.test(s))&&t===n){const e={type:a,children:[{text:""}],trigger:n};return o&&(e[o.key]=o.value),h(e)}return u(t)},e.apply=r=>{if(s(r),"insert_text"===r.type||"remove_text"===r.type){const t=wdt(e);t&&Mlt.text(H1e(t[0]))}else if("set_selection"===r.type){var i,a;const t=AJe.isRange(r.properties)?null===(i=wdt(e,{at:r.properties}))||void 0===i?void 0:i[1]:void 0,n=AJe.isRange(r.newProperties)?null===(a=wdt(e,{at:r.newProperties}))||void 0===a?void 0:a[1]:void 0;t&&!n&&_dt(e,t),n&&Mlt.targetRange(e.selection)}else if("insert_node"===r.type&&kdt(e,r.node)){var l,u;if(r.node.trigger!==n)return;const i=null!==(l=null===(u=r.node.children[0])||void 0===u?void 0:u.text)&&void 0!==l?l:"";void 0!==o&&r.node[o.key]!==o.value||(l2e(e,{anchor:{path:r.path.concat([0]),offset:i.length},focus:{path:r.path.concat([0]),offset:i.length}}),Mlt.open({activeId:t,text:i,targetRange:e.selection}))}else if("remove_node"===r.type&&kdt(e,r.node)){if(r.node.trigger!==n)return;Mlt.reset()}},e},options:{trigger:"@",triggerPreviousCharPattern:/^\s?$/,createMentionNode:e=>({value:e.text})},plugins:[{key:Sdt,isElement:!0,isInline:!0}],then:(e,{key:t})=>({options:{id:t}})});var Edt=Array.isArray,Cdt=function(e,t){return e===t||e!=e&&t!=t},Tdt=function(e,t){for(var n=e.length;n--;)if(Cdt(e[n][0],t))return n;return-1},$dt=Array.prototype.splice;function Qdt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Qdt.prototype.set=function(e,t){var n=this.__data__,r=Tdt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Rdt=Qdt,Adt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function jdt(e,t){return e(t={exports:{}},t.exports),t.exports}var Ddt="object"==typeof Adt&&Adt&&Adt.Object===Object&&Adt,Mdt="object"==typeof self&&self&&self.Object===Object&&self,Idt=Ddt||Mdt||Function("return this")(),zdt=Idt.Symbol,Wdt=Object.prototype,Ndt=Wdt.hasOwnProperty,Ldt=Wdt.toString,Fdt=zdt?zdt.toStringTag:void 0,Udt=Object.prototype.toString,Xdt=zdt?zdt.toStringTag:void 0,qdt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xdt&&Xdt in Object(e)?function(e){var t=Ndt.call(e,Fdt),n=e[Fdt];try{e[Fdt]=void 0;var r=!0}catch(e){}var i=Ldt.call(e);return r&&(t?e[Fdt]=n:delete e[Fdt]),i}(e):function(e){return Udt.call(e)}(e)},Bdt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Vdt=function(e){if(!Bdt(e))return!1;var t=qdt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ydt=Idt["__core-js_shared__"],Zdt=function(){var e=/[^.]+$/.exec(Ydt&&Ydt.keys&&Ydt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Gdt=Function.prototype.toString,Hdt=function(e){if(null!=e){try{return Gdt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Kdt=/^\[object .+?Constructor\]$/,Jdt=Function.prototype,eft=Object.prototype,tft=Jdt.toString,nft=eft.hasOwnProperty,rft=RegExp("^"+tft.call(nft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ift=function(e){return!(!Bdt(e)||function(e){return!!Zdt&&Zdt in e}(e))&&(Vdt(e)?rft:Kdt).test(Hdt(e))},oft=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ift(n)?n:void 0},aft=oft(Idt,"Map"),sft=oft(Object,"create"),lft=Object.prototype.hasOwnProperty,uft=Object.prototype.hasOwnProperty;function cft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},jft={};jft["[object Float32Array]"]=jft["[object Float64Array]"]=jft["[object Int8Array]"]=jft["[object Int16Array]"]=jft["[object Int32Array]"]=jft["[object Uint8Array]"]=jft["[object Uint8ClampedArray]"]=jft["[object Uint16Array]"]=jft["[object Uint32Array]"]=!0,jft["[object Arguments]"]=jft["[object Array]"]=jft["[object ArrayBuffer]"]=jft["[object Boolean]"]=jft["[object DataView]"]=jft["[object Date]"]=jft["[object Error]"]=jft["[object Function]"]=jft["[object Map]"]=jft["[object Number]"]=jft["[object Object]"]=jft["[object RegExp]"]=jft["[object Set]"]=jft["[object String]"]=jft["[object WeakMap]"]=!1;var Dft=function(e){return function(t){return e(t)}},Mft=jdt((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&Ddt.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),Ift=Mft&&Mft.isTypedArray,zft=Ift?Dft(Ift):function(e){return xft(e)&&Aft(e.length)&&!!jft[qdt(e)]},Wft=Object.prototype.hasOwnProperty,Nft=function(e,t){var n=Edt(e),r=!n&&Cft(e),i=!n&&!r&&$ft(e),o=!n&&!r&&!i&&zft(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n{const{apply:u,insertNode:c,insertNodes:d}=e,f=()=>({[t]:n()}),h=n=>{o&&!m2e(e,{match:{[t]:n[t]},at:[]})||delete n[t]},p=n=>{if(aJe(n._id)){const r=n._id;delete n._id,m2e(e,{match:{[t]:r},at:[]})||(n[t]=r)}},m={filter:e=>{var t;return i(e)&&(!r||void 0!==(null===(t=e[0])||void 0===t?void 0:t.type))},allow:a,exclude:s};return e.insertNodes=(e,n)=>{const r=function(){if(!arguments.length)return[];var e=arguments[0];return Edt(e)?e:[e]}(e);d(r.map((e=>(!l&&e[t]&&(e._id=e[t]),e))),n)},e.insertNode=e=>{!l&&e[t]&&(e._id=e[t]),c(e)},e.apply=r=>{if("insert_node"===r.type){const e=function(e){return Xht(e,5)}(r.node);return p7e({node:e,query:m,source:{},apply:h}),(e=>{p7e({...e,apply:xst})})({node:e,path:r.path,source:f,query:m}),l||p7e({node:e,query:m,source:{},apply:p}),u({...r,node:e})}if("split_node"===r.type){const i=r.properties;let a=r.properties[t];if(h2e([i,r.path],m))return o&&void 0!==a&&!m2e(e,{match:{[t]:a},at:[]})||(a=n()),u({...r,properties:{...r.properties,[t]:a}});a&&delete r.properties[t]}return u(r)},e},options:{idKey:"id",idCreator:()=>Math.random().toString(36).slice(2,7),filterText:!0,filter:()=>!0}}),E7e({key:"selectOnBackspace",withOverrides:(e,{options:{query:t,removeNodeIfEmpty:n}})=>{const{deleteBackward:r}=e;return e.deleteBackward=i=>{const{selection:o}=e;if("character"===i&&t2e(o)){const a=R1e(e,o,{unit:i});if(a){const[s]=O1e(e,{match:e=>h2e([e,a.path],t),at:a});if(s&&a){const t=F1e(e,o),r=Z1e(e,t.path);n&&r&&!H1e(r)&&E1e(e),C1e(e,a)}else r(i)}else r(i)}else r(i)},e},options:{removeNodeIfEmpty:!1}});const Bht=(e,t)=>"string"==typeof e?t*Number.parseFloat(e)/100:e,Vht={onResize:XGe(null)},Yht=({onResize:e})=>{const[,t]=VGe(Vht.onResize);return(0,c.useEffect)((()=>{t({fn:e})}),[e,t]),null},Zht=({children:e,onResize:t})=>c.createElement(FGe,{initialValues:[[Vht.onResize,{fn:t}]]},c.createElement(Yht,{onResize:t}),e),{resizableStore:Ght,useResizableStore:Hht}=(yst("div")({propsHook:({setInitialPosition:e,setInitialSize:t,setIsResizing:n,onMouseDown:r,onTouchStart:i,isHorizontal:o,isResizing:a,onHover:s,onHoverEnd:l})=>{const u=()=>{null==s||s()},c=()=>{a||null==l||l()};return{props:{onMouseDown:i=>{const{clientX:a,clientY:s}=i;e(o?a:s);const l=i.target.parentElement;t(o?l.offsetWidth:l.offsetHeight),n(!0),null==r||r(i)},onTouchStart:r=>{const{touches:a}=r,s=a[0],{clientX:l,clientY:u}=s;e(o?l:u);const c=r.target.parentElement;t(o?c.offsetWidth:c.offsetHeight),n(!0),null==i||i(r)},onMouseOver:u,onMouseOut:c,onTouchMove:u,onTouchEnd:c}}},stateHook:({direction:e="left",onResize:t,onMouseDown:n,onTouchStart:r,onHover:i,onHoverEnd:o})=>{const[a]=VGe(Vht.onResize);t||(t=null==a?void 0:a.fn);const[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)(0),[f,h]=(0,c.useState)(0),p="left"===e||"right"===e;return(0,c.useEffect)((()=>{if(!s)return;const n=(n,r)=>{var i;const{clientX:o,clientY:a}=(e=>"touches"in e)(n)?n.touches[0]||n.changedTouches[0]:n;null===(i=t)||void 0===i||i({initialSize:f,delta:(p?o:a)-u,finished:r,direction:e})},r=e=>n(e,!1),i=e=>{l(!1),null==o||o(),n(e,!0)};return window.addEventListener("mousemove",r),window.addEventListener("mouseup",i),window.addEventListener("touchmove",r),window.addEventListener("touchend",i),()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",i),window.removeEventListener("touchmove",r),window.removeEventListener("touchend",i)}}),[s,u,f,t,p,o,e]),{isResizing:s,setIsResizing:l,initialPosition:u,setInitialPosition:d,initialSize:f,setInitialSize:h,isHorizontal:p,direction:e,onResize:t,onMouseDown:n,onTouchStart:r,onHover:i,onHoverEnd:o}}}),z5e({width:0},{name:"resizable",scope:N5e})),Kht=c.forwardRef((({children:e,options:t,...n},r)=>{const i=(({align:e="center",minWidth:t=92,maxWidth:n="100%"}={})=>{var r;const i=q5e(),o=Ytt(),a=null!==(r=null==i?void 0:i.width)&&void 0!==r?r:"100%",[s,l]=Hht().use.width(),u=(0,c.useCallback)((e=>{const t=A5e(o,i);t&&(e===a?C1e(o,t):s2e(o,{width:e},{at:t}))}),[o,i,a]);return(0,c.useEffect)((()=>{l(a)}),[a,l]),{align:e,minWidth:t,maxWidth:n,setNodeWidth:u,setWidth:l,width:s}})(t),{wrapperRef:o,wrapperProps:a,props:s,context:l}=(({align:e,minWidth:t,maxWidth:n,setNodeWidth:r,setWidth:i,width:o})=>{const a=(0,c.useRef)(null);return{wrapperRef:a,wrapperProps:{style:{position:"relative"}},props:{style:{width:o,minWidth:t,maxWidth:n,position:"relative"}},context:{onResize:(0,c.useCallback)((({initialSize:o,delta:s,finished:l,direction:u})=>{const c=a.current.offsetWidth,d=((e,t,{min:n,max:r})=>{const i=((e,{min:t,max:n})=>(void 0!==t&&(e=Math.max(e,t)),void 0!==n&&(e=Math.min(e,n)),e))(Bht(e,t),{min:void 0===n?void 0:Bht(n,t),max:void 0===r?void 0:Bht(r,t)});switch(typeof e){case"string":return((e,t)=>"number"==typeof e?e/t*100+"%":e)(i,t);case"number":return i;default:throw new Error("Invalid length type")}})(o+s*(("center"===e?2:1)*("left"===u?-1:1)),c,{min:t,max:n});l?r(d):i(d)}),[e,n,t,r,i])}}})(i);return c.createElement("div",qht({ref:o},a),c.createElement("div",qht({ref:r},s,n),c.createElement(Zht,{onResize:l.onResize},e)))}));Kht.displayName="Resizable";const Jht={"shift+up":"top","shift+right":"right","shift+down":"bottom","shift+left":"left"};var ept="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function tpt(e,t){return e(t={exports:{}},t.exports),t.exports}var npt=tpt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c})),rpt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(npt);npt.isHotkey,npt.isCodeHotkey,npt.isKeyHotkey,npt.parseHotkey,npt.compareHotkey,npt.toKeyCode,npt.toKeyName;const ipt=e=>((e,t)=>t.map((t=>H7e(e,t))))(e,[Wgt,Igt]),opt=(e,{header:t,newCellChildren:n=[e.blockFactory()]})=>({type:H7e(e,t?Igt:Wgt),children:n}),apt=(e,{header:t,rowCount:n=0,colCount:r,newCellChildren:i}={})=>{const o=Array.from({length:n}).fill(n).map((()=>((e,{colCount:t=1,...n}={})=>({type:H7e(e,zgt),children:Array.from({length:t}).fill(t).map((()=>opt(e,n)))}))(e,{header:t,colCount:r,newCellChildren:i})));return{type:H7e(e,Mgt),children:o}},spt=(e,t)=>knt(e,{match:{type:H7e(e,Mgt)},...t}),lpt=(e,{format:t="table",...n}={})=>{const r=((e,{at:t,...n}={})=>{const r=null!=t?t:e.selection;if(!r)return null;const[i,o]=I1e(e,null!=r?r:e.selection),a=knt(e,{at:i,...n});if(!a)return null;const s=knt(e,{at:o,...n});return s?[a,s]:null})(e,{match:{type:ipt(e)},...n});if(r){const[n,i]=r;if(!kJe.equals(n[1],i[1]))return((e,{at:t,format:n="table"})=>{const r=t.anchor.path,i=t.focus.path,o=r.at(-2),a=i.at(-2),s=r.at(-1),l=i.at(-1),u=Math.min(o,a),c=Math.max(o,a),d=Math.min(s,l),f=Math.max(s,l),h=r.slice(0,-2),p=apt(e,{rowCount:c-u+1,colCount:f-d+1,newCellChildren:[]});let m=u,g=d;const v=[];for(;;){const t=h.concat([m,g]),n=Z1e(e,t);if(!n)break;if(p.children[m-u].children[g-d]=n,v.push([n,t]),g+1<=f)g+=1;else{if(!(m+1<=c))break;g=d,m+=1}}return"cell"===n?v:[[p,h]]})(e,{at:{anchor:{path:n[1],offset:0},focus:{path:i[1],offset:0}},format:t});if("table"===t){const t=apt(e,{rowCount:1});return t.children[0].children=[n[0]],[[t,n[1].slice(0,-2)]]}return[n]}return[]},upt=(e,{disableSelect:t,fromCell:n,at:r,header:i}={})=>{const o=n?p2e(e,{at:n,match:{type:ipt(e)}}):knt(e,{match:{type:ipt(e)}});if(!o)return;const[,a]=o,s=knt(e,{match:{type:H7e(e,Mgt)},at:a});if(!s)return;const[l,u]=s;let c,d;kJe.isPath(r)?(c=r,d=r.at(-1)):(c=kJe.next(a),d=a.at(-1)+1);const f=a.at(-2),{newCellChildren:h,initialTableWidth:p,minColumnWidth:m}=Qtt(e,Mgt);k1e(e,(()=>{l.children.forEach(((n,o)=>{const s=[...c];kJe.isPath(r)?s[r.length-2]=o:s[a.length-2]=o;const l=void 0===i?n.children.every((t=>t.type===H7e(e,Igt))):i;mot(e,opt(e,{header:l,newCellChildren:h}),{at:s,select:!t&&o===f})}));const{colSizes:n}=l;if(n){let t=[...n.slice(0,d),0,...n.slice(d)];if(p){var o,s;t[d]=null!==(o=null!==(s=n[d])&&void 0!==s?s:n[d-1])&&void 0!==o?o:p/n.length;const e=n.reduce(((e,t)=>e+t),0),r=t.reduce(((e,t)=>e+t),0),i=Math.max(e,p);if(r>i){const e=i/r;t=t.map((t=>Math.max(null!=m?m:0,Math.floor(t*e))))}}s2e(e,{colSizes:t},{at:u})}}))},cpt=(e,{header:t,fromRow:n,at:r,disableSelect:i}={})=>{const o=n?p2e(e,{at:n,match:{type:H7e(e,zgt)}}):knt(e,{match:{type:H7e(e,zgt)}});if(!o)return;const[a,s]=o,l=knt(e,{match:{type:H7e(e,Mgt)},at:s});if(!l)return;const{newCellChildren:u}=Qtt(e,Mgt);if(k1e(e,(()=>{mot(e,{type:H7e(e,zgt),children:a.children.map(((n,r)=>opt(e,{header:null!=t?t:l[0].children.every((e=>e.children[r].type===Igt)),...u})))},{at:kJe.isPath(r)?r:kJe.next(s)})})),!i){const t=knt(e,{match:{type:ipt(e)}});if(!t)return;const[,n]=t;kJe.isPath(r)?n[n.length-2]=r.at(-2):n[n.length-2]+=1,C1e(e,n)}},dpt=(e,{at:t,reverse:n,edge:r,fromOneCell:i}={})=>{if(r){const n=lpt(e,{at:t,format:"cell"}),o=i?0:1;if(n.length>o){const[,t]=n[0],[,i]=n.at(-1),o=[...t],a=[...i];switch(r){case"bottom":a[a.length-2]+=1;break;case"top":o[o.length-2]-=1;break;case"right":a[a.length-1]+=1;break;case"left":o[o.length-1]-=1}return J1e(e,o)&&J1e(e,a)&&C1e(e,{anchor:A1e(e,o),focus:A1e(e,a)}),!0}return}const o=knt(e,{at:t,match:{type:ipt(e)}});if(o){const[,t]=o,r=[...t],i=n?-1:1;if(r[r.length-2]+=i,J1e(e,r))C1e(e,A1e(e,r));else{const r=t.slice(0,-2);k1e(e,n?()=>{C1e(e,A1e(e,r)),a2e(e,{reverse:!0})}:()=>{C1e(e,T1e(e,r)),a2e(e)})}return!0}},fpt=(e,{type:t})=>n=>{if(n.defaultPrevented)return;const r={"shift+up":rpt("shift+up",n),"shift+down":rpt("shift+down",n),"shift+left":rpt("shift+left",n),"shift+right":rpt("shift+right",n)};Object.keys(r).forEach((t=>{r[t]&&dpt(e,{reverse:"shift+up"===t,edge:Jht[t]})&&(n.preventDefault(),n.stopPropagation())}));const i=Ltt.isTab(e,n),o=Ltt.isUntab(e,n);if(i||o){const t=((e,{at:t=e.selection}={})=>{if(!t)return;const n=p2e(e,{at:t,match:{type:ipt(e)}});if(!n)return;const[,r]=n,i=g1e(e,{at:r,match:{type:H7e(e,zgt)}});if(!i)return;const[,o]=i,a=g1e(e,{at:o,match:{type:H7e(e,Mgt)}});return a?{table:a,row:i,cell:n}:void 0})(e);if(!t)return;const{row:r,cell:a}=t,[,s]=a;if(o){const t=((e,t,n,r)=>{const i=iot(n);if(!i){const[,t]=r;return((e,t)=>{var n;const r=iot(t);if(!r)return;const i=N1e(e,r);if(!i)return;const[o,a]=i,s=null==o||null===(n=o.children)||void 0===n?void 0:n[o.children.length-1],l=a.concat(o.children.length-1);return s&&l?N1e(e,l):void 0})(e,t)}const o=N1e(e,i);if(o)return o})(e,0,s,r);if(t){const[,n]=t;C1e(e,n)}}else if(i){const t=((e,t,n,r)=>{const i=N1e(e,kJe.next(n));if(i)return i;const[,o]=r;return((e,t)=>{var n;const r=N1e(e,kJe.next(t));if(!r)return;const[i,o]=r,a=null==i||null===(n=i.children)||void 0===n?void 0:n[0],s=o.concat(0);return a&&s?N1e(e,s):void 0})(e,o)})(e,0,s,r);if(t){const[,n]=t;C1e(e,n)}}n.preventDefault(),n.stopPropagation()}if(rpt("mod+a",n)){const r=g1e(e,{match:{type:t}});if(!r)return;const[,i]=r;C1e(e,i),n.preventDefault(),n.stopPropagation()}},hpt=(e,{unit:t,reverse:n})=>{const{selection:r}=e,i=n?T1e:A1e,o=n?Q1e:R1e;if(t2e(r)){const a=knt(e,{match:{type:ipt(e)}});if(a){const[,t]=a,n=i(e,t);if(r&&YJe.equals(r.anchor,n))return!0}else{const i=o(e,r,{unit:t});if(knt(e,{match:{type:ipt(e)},at:i}))return a2e(e,{reverse:!n}),!0}}},ppt=e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e;return e.deleteBackward=n=>{if(!hpt(e,{unit:n}))return t(n)},e.deleteForward=t=>{if(!hpt(e,{unit:t,reverse:!0}))return n(t)},e.deleteFragment=t=>{if(dot(e,{match:t=>t.type===H7e(e,Mgt)}),dot(e,{match:t=>t.type===H7e(e,Mgt)})){const t=lpt(e,{format:"cell"});if(t.length>1)return void k1e(e,(()=>{t.forEach((([,t])=>{Oot(e,{at:t,nodes:e.blockFactory()})})),C1e(e,{anchor:A1e(e,t[0][1]),focus:T1e(e,t.at(-1)[1])})}))}r(t)},e},mpt=e=>{const{getFragment:t}=e;return e.getFragment=()=>{const n=t(),r=[];return n.forEach((t=>{if(t.type===H7e(e,Mgt)){const n=t.children,i=n.length;if(!i)return;const o=n[0].children.length;if(i<=1&&o<=1)return void r.push(...n[0].children[0].children);{const t=lpt(e);if(t.length>0)return void r.push(t[0][0])}}r.push(t)})),r},e};var gpt=function(e,t){return e===t||e!=e&&t!=t},vpt=function(e,t){for(var n=e.length;n--;)if(gpt(e[n][0],t))return n;return-1},Opt=Array.prototype.splice;function ypt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},ypt.prototype.set=function(e,t){var n=this.__data__,r=vpt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var bpt=ypt,wpt="object"==typeof ept&&ept&&ept.Object===Object&&ept,kpt="object"==typeof self&&self&&self.Object===Object&&self,xpt=wpt||kpt||Function("return this")(),_pt=xpt.Symbol,Spt=Object.prototype,Ppt=Spt.hasOwnProperty,Ept=Spt.toString,Cpt=_pt?_pt.toStringTag:void 0,Tpt=Object.prototype.toString,$pt=_pt?_pt.toStringTag:void 0,Qpt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$pt&&$pt in Object(e)?function(e){var t=Ppt.call(e,Cpt),n=e[Cpt];try{e[Cpt]=void 0;var r=!0}catch(e){}var i=Ept.call(e);return r&&(t?e[Cpt]=n:delete e[Cpt]),i}(e):function(e){return Tpt.call(e)}(e)},Rpt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Apt=function(e){if(!Rpt(e))return!1;var t=Qpt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},jpt=xpt["__core-js_shared__"],Dpt=function(){var e=/[^.]+$/.exec(jpt&&jpt.keys&&jpt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Mpt=Function.prototype.toString,Ipt=function(e){if(null!=e){try{return Mpt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},zpt=/^\[object .+?Constructor\]$/,Wpt=Function.prototype,Npt=Object.prototype,Lpt=Wpt.toString,Fpt=Npt.hasOwnProperty,Upt=RegExp("^"+Lpt.call(Fpt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xpt=function(e){return!(!Rpt(e)||function(e){return!!Dpt&&Dpt in e}(e))&&(Apt(e)?Upt:zpt).test(Ipt(e))},qpt=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Xpt(n)?n:void 0},Bpt=qpt(xpt,"Map"),Vpt=qpt(Object,"create"),Ypt=Object.prototype.hasOwnProperty,Zpt=Object.prototype.hasOwnProperty;function Gpt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},wmt={};wmt["[object Float32Array]"]=wmt["[object Float64Array]"]=wmt["[object Int8Array]"]=wmt["[object Int16Array]"]=wmt["[object Int32Array]"]=wmt["[object Uint8Array]"]=wmt["[object Uint8ClampedArray]"]=wmt["[object Uint16Array]"]=wmt["[object Uint32Array]"]=!0,wmt["[object Arguments]"]=wmt["[object Array]"]=wmt["[object ArrayBuffer]"]=wmt["[object Boolean]"]=wmt["[object DataView]"]=wmt["[object Date]"]=wmt["[object Error]"]=wmt["[object Function]"]=wmt["[object Map]"]=wmt["[object Number]"]=wmt["[object Object]"]=wmt["[object RegExp]"]=wmt["[object Set]"]=wmt["[object String]"]=wmt["[object WeakMap]"]=!1;var kmt=function(e){return function(t){return e(t)}},xmt=tpt((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&wpt.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),_mt=xmt&&xmt.isTypedArray,Smt=_mt?kmt(_mt):function(e){return umt(e)&&bmt(e.length)&&!!wmt[Qpt(e)]},Pmt=Object.prototype.hasOwnProperty,Emt=function(e,t){var n=mmt(e),r=!n&&pmt(e),i=!n&&!r&&vmt(e),o=!n&&!r&&!i&&Smt(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n{const{insertFragment:n}=e,{disableExpandOnInsert:r,insertColumn:i,insertRow:o}=t;return e.insertFragment=t=>{const a=t.find((t=>t.type===H7e(e,Mgt)));var s,l;if(!a&&spt(e,{at:null===(s=e.selection)||void 0===s?void 0:s.anchor})){const n=lpt(e,{format:"cell"});if(n.length>1)return n.forEach((n=>{if(n){const[,r]=n;Oot(e,{at:r,nodes:Rgt(t)})}})),void C1e(e,{anchor:A1e(e,n[0][1]),focus:T1e(e,n.at(-1)[1])})}if(a&&spt(e,{at:null===(l=e.selection)||void 0===l?void 0:l.anchor})){var u;const[t]=lpt(e,{at:null===(u=e.selection)||void 0===u?void 0:u.anchor,format:"cell"});if(t)return void k1e(e,(()=>{const[,n]=t,s=[...n],l=s.at(-1);let u=null,c=!0;a.children.forEach((t=>{if(s[s.length-1]=l,!c){const t=s.slice(0,-1);if(s[s.length-2]+=1,!J1e(e,s)){if(r)return;null==o||o(e,{fromRow:t})}}c=!1;const n=t.children;let a=!0;n.forEach((t=>{if(!a){const t=[...s];if(s[s.length-1]+=1,!J1e(e,s)){if(r)return;null==i||i(e,{fromCell:t})}}a=!1,Oot(e,{at:s,nodes:Rgt(t.children)}),u=[...s]}))})),u&&C1e(e,{anchor:A1e(e,n),focus:T1e(e,u)})}))}n(t)},e},jgt=(e,t)=>{const{insertText:n}=e;return e.insertText=t=>{var r;n2e(e.selection)&&(spt(e,{at:null===(r=e.selection)||void 0===r?void 0:r.anchor})&&lpt(e,{format:"cell"}).length>1&&r2e(e,{edge:"focus"}));n(t)},e},Dgt=e=>{const{apply:t}=e;return e.apply=n=>{if("set_selection"===n.type&&n.newProperties){const t={...e.selection,...n.newProperties};if(AJe.isRange(t)&¬(e,{at:t,match:t=>t.type===H7e(e,Mgt)})){const r=knt(e,{at:t.anchor,match:t=>t.type===H7e(e,Mgt)});if(r){const[,i]=r;AJe.isBackward(t)?n.newProperties.focus=A1e(e,i):R1e(e,i)&&(n.newProperties.focus=T1e(e,i))}else{const r=knt(e,{at:t.focus,match:t=>t.type===H7e(e,Mgt)});if(r){const[,i]=r;if(AJe.isBackward(t)){const t=A1e(e,i),r=R1e(e,t);n.newProperties.focus=null!=r?r:t}else n.newProperties.focus=T1e(e,i)}}}((e,t)=>{var n;let r;if(!(e.currentKeyboardEvent&&["up","down","shift+up","shift+right","shift+down","shift+left"].some((t=>{const n=rpt(t,e.currentKeyboardEvent);return n&&(r=t),n}))&&null!==(n=e.selection)&&void 0!==n&&n.focus&&null!=t&&t.focus&¬(e,{at:{anchor:e.selection.focus,focus:t.focus},match:{type:ipt(e)}})))return;if(!r)return;const i=Jht[r];if(i&&!dot(e,{at:e.selection,match:{type:ipt(e)}}))return;const o=e.selection,a=["up","shift+up"].includes(r);setTimeout((()=>{dpt(e,{at:o,reverse:a,edge:i,fromOneCell:!0})}),0)})(e,t)}t(n)},e},Mgt="table",Igt="th",zgt="tr",Wgt="td",{tableStore:Ngt,useTableStore:Lgt}=(E7e({key:Mgt,isElement:!0,handlers:{onKeyDown:fpt},deserializeHtml:{rules:[{validNodeName:"TABLE"}]},options:{insertColumn:(e,{fromCell:t})=>{upt(e,{fromCell:t,disableSelect:!0})},insertRow:(e,{fromRow:t})=>{cpt(e,{fromRow:t,disableSelect:!0})},minColumnWidth:48},withOverrides:(e,t)=>(e=(e=>{const{normalizeNode:t}=e,n=e,{initialTableWidth:r}=Qtt(e,Mgt);return n.normalizeNode=([n,i])=>{if(f1e(n)){if(n.type===H7e(e,Mgt)){if(knt(e,{at:i,match:{type:H7e(e,Mgt)}}))return void d2e(e,{at:i});if(r){var o,a;const t=n,s=null===(o=t.children[0])||void 0===o||null===(a=o.children)||void 0===a?void 0:a.length;if(s){const n=[];if(t.colSizes)t.colSizes.some((e=>!e))&&t.colSizes.forEach((e=>{n.push(e||r/s)}));else for(let e=0;e0)return void s2e(e,{colSizes:n},{at:i})}}}if(n.type===H7e(e,zgt)){const t=y1e(e,i);if((null==t?void 0:t[0].type)!==H7e(e,Mgt))return void d2e(e,{at:i})}if(ipt(e).includes(n.type)){const{children:t}=n,r=y1e(e,i);if((null==r?void 0:r[0].type)!==H7e(e,zgt))return void d2e(e,{at:i});if(x1e(t[0]))return void((e,t,n)=>{const r=null==n?void 0:n.at,i=Z1e(e,r);null!=i&&i.children&&k1e(e,(()=>{const o=r.concat([0]);f2e(e,t,{...n,at:o}),i.children.length<2||got(e,{at:r,to:o.concat([1]),fromStartIndex:1})}))})(e,e.blockFactory({},i),{at:i})}}return t([n,i])},e})(e),e=ppt(e),e=mpt(e),e=Agt(e,t),e=jgt(e),e=(e=>{const{setFragmentData:t}=e;return e.setFragmentData=(n,r)=>{var i;const o=null===(i=lpt(e,{format:"table"}))||void 0===i?void 0:i[0],a=lpt(e,{format:"cell"}),s=e.selection;if(!o||!s)return void t(n,r);const l=kJe.compare(s.anchor.path,s.focus.path)<1?s.anchor:s.focus,[u,c]=o,d=u.children,f=l.path.slice(c.length,c.length+2),[h,p]=f;let m="",g="";const v=document.createElement("div"),O=document.createElement("table");if(o&&s&&1===a.length&&("copy"===r||"cut"===r))return void t(n);k1e(e,(()=>{d.forEach(((r,i)=>{const o=r.children,a=c.concat(h+i),s=[],l=r.type===H7e(e,Igt)?document.createElement("th"):document.createElement("tr");o.forEach(((r,i)=>{const o=a.concat(p+i);C1e(e,{anchor:A1e(e,o),focus:T1e(e,o)}),t(n),s.push(n.getData("text/plain"));const u=document.createElement("td");u.innerHTML=n.getData("text/html"),l.append(u)})),O.append(l),m+=`${s.join(",")}\n`,g+=`${s.join("\t")}\n`})),C1e(e,s),v.append(O)})),n.setData("text/csv",m),n.setData("text/tsv",g),n.setData("text/plain",g),n.setData("text/html",v.innerHTML);const y=JSON.stringify(u),b=window.btoa(encodeURIComponent(y));n.setData("application/x-slate-fragment",b)},e})(e=Dgt(e)),e),plugins:[{key:zgt,isElement:!0,deserializeHtml:{rules:[{validNodeName:"TR"}]}},{key:Wgt,isElement:!0,deserializeHtml:{attributeNames:["rowspan","colspan"],rules:[{validNodeName:"TD"}],getNode:e=>{const t=e.style.background||e.style.backgroundColor;return t?{type:"td",background:t}:{type:"td"}}},props:({element:e})=>{var t,n;return{nodeProps:{colSpan:null==e||null===(t=e.attributes)||void 0===t?void 0:t.colspan,rowSpan:null==e||null===(n=e.attributes)||void 0===n?void 0:n.rowspan}}}},{key:Igt,isElement:!0,deserializeHtml:{attributeNames:["rowspan","colspan"],rules:[{validNodeName:"TH"}],getNode:e=>{const t=e.style.background||e.style.backgroundColor;return t?{type:"th",background:t}:{type:"th"}}},props:({element:e})=>{var t,n;return{nodeProps:{colSpan:null==e||null===(t=e.attributes)||void 0===t?void 0:t.colspan,rowSpan:null==e||null===(n=e.attributes)||void 0===n?void 0:n.rowspan}}}}]}),z5e({colSizeOverrides:new Map,rowSizeOverrides:new Map,marginLeftOverride:null,hoveredColIndex:null,selectedCells:null},{name:"table",scope:Mgt}));var Fgt=__webpack_require__(81358);const Ugt="deserializeCsv",Xgt=(E7e({key:Ugt,options:{errorTolerance:.25,parseOptions:{header:!0}},then:e=>({editor:{insertData:{format:"text/plain",getFragment:({data:t})=>((e,{data:t,...n})=>{const{options:{errorTolerance:r,parseOptions:i}}=G7e(e,Ugt);if(0===(0,Fgt.parse)(t,{preview:2}).errors.length){const o=(0,Fgt.parse)(t,{...i,...n});if(!((e,t,n)=>(n<0&&(n=0),!(!e||e.length<2||e[0].length<2||e[1].length<2||t.length>0&&t.length>n*e.length)))(o.data,o.errors,r))return;const a=H7e(e,L7e),s=H7e(e,Mgt),l=H7e(e,Igt),u=H7e(e,zgt),c=H7e(e,Wgt),d={type:s,children:[]};if(o.meta.fields){d.children.push({type:u,children:o.meta.fields.map((e=>({type:l,children:[{type:a,children:[{text:e}]}]})))});for(const e of o.data)d.children.push({type:u,children:o.meta.fields.map((t=>({type:c,children:[{type:a,children:[{text:e[t]||""}]}]})))})}else for(const e of o.data){d.children.push({type:u,children:[]});for(const t of e)d.children.at(-1).children.push({type:c,children:[{type:a,children:[{text:t}]}]})}return[{type:a,children:[{text:""}]},d,{type:a,children:[{text:""}]}]}})(e,{data:t})}}})}),e=>1===e.children.length&&null!==e.firstElementChild&&((e=>"O:P"===e.nodeName&&" "===e.textContent)(e.firstElementChild)||Xgt(e.firstElementChild))),qgt=e=>{Tet(e,(e=>{if((e=>"SPAN"===e.tagName&&e.classList.contains("MsoFootnoteReference"))(e)){const t=document.createElement("sup");return t.textContent=(e.textContent||"").trim().replaceAll(/[[\]]/g,""),e.parentElement&&e.parentElement.replaceChild(t,e),!0}return!0}))};function Bgt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vgt(e,t){return e(t={exports:{}},t.exports),t.exports}var Ygt=Vgt((function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default}));Bgt(Ygt);var Zgt=Vgt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default}));Bgt(Zgt);var Ggt=Vgt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,r.default)(t,o)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),a=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/\s/.test(a))return!1}return!(!t.allow_numeric_tld&&/^\d+$/.test(a))&&i.every((function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))}))};var n=i(Ygt),r=i(Zgt);function i(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}));Bgt(Ggt);var Hgt=Vgt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.default)(t),(n=String(n))?"4"===n?a.test(t):"6"===n&&l.test(t):e(t,4)||e(t,6)};var n,r=(n=Ygt)&&n.__esModule?n:{default:n},i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(i,"[.]){3}").concat(i),a=new RegExp("^".concat(o,"$")),s="(?:[0-9a-fA-F]{1,4})",l=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(o,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(o,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(o,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(o,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(o,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(o,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(o,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}));Bgt(Hgt);var Kgt=Vgt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,o.default)(t,l)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var a,d,f,h,p,m,g,v,O;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(a=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(a))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((d=g.shift()).indexOf(":")>=0&&d.split(":").length>2)return!1;var y=function(e){if(Array.isArray(e))return e}(O=d.split(":"))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),2!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(O)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,2):void 0}}(O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=y[0],w=y[1];if(""===b&&""===w)return!1}m=null,v=null;var k=(h=g.join("@")).match(u);if(k?(f="",v=k[1],m=k[2]||null):(f=(g=h.split(":")).shift(),g.length&&(m=g.join(":"))),null!==m&&m.length>0){if(p=parseInt(m,10),!/^[0-9]+$/.test(m)||p<=0||p>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?c(f,t.host_whitelist):""===f&&!t.require_host||!!((0,i.default)(f)||(0,r.default)(f,t)||v&&(0,i.default)(v,6))&&(f=f||v,!t.host_blacklist||!c(f,t.host_blacklist))};var n=a(Ygt),r=a(Ggt),i=a(Hgt),o=a(Zgt);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const[,...r]=e.split(n);return r.reduce(((e,n)=>{const[,r=""]=n.split("shplid"),i=((e,t)=>{const n=evt.map((t=>e.indexOf(t))),r=n.filter((e=>-1!==e)),i=Math.min(e.length,...r),o=e.slice(0,Math.max(0,i));return o?`${t}${o}`:null})(r,t),o=(e=>{const[t]=e.split("bliptag");return t.includes("pngblip")?"image/png":t.includes("jpegblip")?"image/jpeg":null})(r),a=(e=>{const[,t=""]=e.split("bliptag"),n=t.split("}");if(n.length<2)return null;const[r,i]=n;if(n.length>2&&r.includes("blipuid"))return i.split(Z7e).join("");const o=r.split(Z7e);return o.length<2?null:o.slice(1).join("")})(r);return i&&o&&a&&e.push({hex:a,mimeType:o,spid:i}),e}),[])},nvt=e=>e.split("_")[2],rvt=(e,t,n)=>{t&&Tet(n,(n=>{if(!["IMG","V:IMAGEDATA"].includes(n.tagName))return!0;if("IMG"===n.tagName){const e=n.getAttribute("src");if(!e||!e.startsWith("file://"))return!0;const t=n.getAttribute("alt");if("string"==typeof t&&Jgt(t,{require_protocol:!0}))return n.setAttribute("src",t),!0}const r=((e,t)=>{if("IMG"===t.tagName){const n=t.getAttribute("v:shapes"),r=(e=>Net(e).reduce(((e,t)=>{try{const n=(new DOMParser).parseFromString(t,"text/html");Array.from(n.querySelectorAll("V:SHAPE")).forEach((t=>{const{id:n}=t,r=t.getAttribute("o:spid");"string"==typeof n&&"string"==typeof r&&(e[n]=r)}))}catch(e){}return e}),{}))(e);if(!n)return null;const i=r[n];return i?nvt(i):t.parentElement&&t.parentElement.parentElement&&t.parentElement.parentElement.innerHTML.includes("msEquation")?null:nvt(n)}if(!t.parentElement)return null;const n=t.parentElement.getAttribute("o:spid");return n?nvt(n):n})(e,n);if(!r)return!0;const i=(e=>{const t={},n=tvt(e,"i","\\shppict");for(const e of n)t[e.spid]=e;const r=tvt(e,"s","\\shp");for(const e of r)t[e.spid]=e;return t})(t),o=i[r];if(!o)return n.remove(),!0;const a=`data:${o.mimeType};base64,${(e=>{const t=(e.match(/\w{2}/g)||[]).map((e=>String.fromCharCode(parseInt(e,16))));return btoa(t.join(""))})(o.hex)}`;if("IMG"===n.tagName)n.setAttribute("src",a);else if(n.parentNode&&n.parentNode.parentNode){const t=e.createElement("img");t.setAttribute("src",a),n.parentNode.parentNode.replaceChild(t,n.parentNode)}return!0}))},ivt=e=>{const t=e.getAttribute("style");if(!t||!["mso-spacerun:yes","mso-spacerun: yes"].includes(t))return;const n=(e.textContent||"").length,r=document.createTextNode((i=n,Array.from({length:i},(()=>Z7e)).join("")));var i;e.parentNode&&e.parentNode.replaceChild(r,e)},ovt=e=>{const t=e.getAttribute("style")||"";if(!t.startsWith("mso-tab-count:"))return;const[,n]=t.split(":"),r=Number.parseInt(n,10),i=document.createTextNode((e=>Array.from({length:e},(()=>"\t")).join(""))(r));e.parentNode&&e.parentNode.replaceChild(i,e)},avt=(e,t)=>{const n=e.style[t];return n&&((e,t=36)=>{const n=(e=>{if("-"===e[0])return 0;let t=e.replace(/[^\d,.]+/,"");return"."===t[0]&&(t=`0${t}`),Number.parseFloat(t)})(e);return n?e.includes("in")?Math.round(72*n/t):Math.round(n/t):0})(n)||0},svt=e=>{let t=!1;return Tet(e,(e=>{const n=e.getAttribute("style")||"",r=Array.from(e.classList),i=n.includes("mso-")||r.some((e=>e.startsWith("Mso")));return t=t||i,!t})),t},lvt=e=>t=>{const n={type:e};if((e=>{const t=e.getAttribute("style");return!!t&&!!/mso-list:\s*l/i.test(t)&&(!!Boolean(e.querySelector('[style="mso-list:Ignore"]'))||e.outerHTML.includes("\x3c!--[if !supportLists]--\x3e"))})(t)){var r,i;n[Yut]=(e=>{const t=(e.getAttribute("style")||"").match(/level(\d+)/i);if(t&&t.length>0){const[,e]=t;return Number.parseInt(e,10)}return 1})(t);const e=null!==(r=t.textContent)&&void 0!==r?r:"";n[act]=null!==(i=(e=>{var t,n,r,i,o;return null!==(t=(e=e.trimStart()).match(/^\d+[.\\]/))&&void 0!==t&&t[0]?"0"===e[0]?Kut.DecimalLeadingZero:Kut.Decimal:null!==(n=e.match(/^[cdilmvx]+\./))&&void 0!==n&&n[0]?Kut.LowerRoman:null!==(r=e.match(/^[a-z]+\./))&&void 0!==r&&r[0]?Kut.LowerAlpha:null!==(i=e.match(/^[CDILMVX]+\./))&&void 0!==i&&i[0]?Kut.UpperRoman:null!==(o=e.match(/^[A-Z]+\./))&&void 0!==o&&o[0]?Kut.UpperAlpha:void 0})(e))&&void 0!==i?i:Kut.Disc,t.innerHTML=(e=>{const t=e.cloneNode(!0);return Xet(t,"[if !supportLists]","[endif]"),Tet(t,(e=>("mso-list:Ignore"===e.getAttribute("style")&&e.remove(),!0))),t.innerHTML})(t)}else{const e=(e=>avt(e,"marginLeft"))(t);e&&(n[Yut]=e);const r=(e=>avt(e,"textIndent"))(t);r&&(n[Zut]=r)}return n},uvt={};[plt,alt,slt,llt,ult,clt,dlt].forEach((e=>{uvt[e]={then:(e,{type:t})=>({deserializeHtml:{getNode:lvt(t)}})}})),E7e({key:"deserializeDocx",inject:{pluginsByKey:{[Pet]:{editor:{insertData:{transformData:(e,{dataTransfer:t})=>((e,t)=>{const n=(new DOMParser).parseFromString((e=>Uet.reduce(((e,t)=>t(e)),e))(e),"text/html"),{body:r}=n;return t||svt(r)?(qgt(r),rvt(n,t,r),Tet(r,(e=>(Ret(e),!0))),Tet(r,(e=>("P"===e.tagName&&Xgt(e)&&(e.innerHTML=""),!0))),i=r,Tet(i,(e=>(e.parentNode&&"P"===e.tagName&&e.classList.contains("MsoQuote")&&Aet(e,"blockquote"),!0))),(e=>{Tet(e,(e=>("SPAN"!==e.nodeName||(ivt(e),ovt(e)),!0)))})(r),Det(r),(e=>{Tet(e,(e=>"BR"!==e.tagName||(e.nextSibling&&Let(e.nextSibling)&&"[if !supportLineBreakNewLine]"===e.nextSibling.data&&Xet(e.nextSibling,"[if !supportLineBreakNewLine]","[endif]"),!1)))})(r),$et(r),(e=>{Tet(e,(e=>{if("A"!==e.tagName)return!0;const t=e.getAttribute("href");if(t&&!(e=>e.startsWith("#"))(t)||jet(e),t&&e.querySelector("img"))for(const t of e.querySelectorAll("span"))t.textContent||jet(t);return!0}))})(r),(e=>{Tet(e,(e=>("FONT"===e.tagName&&(e.textContent?Aet(e,"span"):e.remove()),!0)))})(r),(e=>{Tet(e,(e=>{const t=e.getAttribute("style");return t&&e.setAttribute("style",t.replaceAll(/mso-list:\s*ignore/gi,"mso-list:Ignore")),!0}))})(r),Iet(r),Fet(r.innerHTML)):e;var i})(e,t.getData("text/rtf"))}}}}},overrideByKey:{...uvt,[hdt]:{editor:{insertData:{query:({dataTransfer:e})=>{const t=e.getData("text/html"),{body:n}=(new DOMParser).parseFromString(t,"text/html");return!svt(n)}}}}}}),__webpack_require__(9721);var cvt=__webpack_require__(39748),dvt=__webpack_require__.n(cvt),fvt=__webpack_require__(92698),hvt=__webpack_require__.n(fvt);E7e({key:"hr",isElement:!0,isVoid:!0,deserializeHtml:{rules:[{validNodeName:"HR"}]}}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self&&self,function(e,t){e.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=function(t,n){if("object"!==e(t))return"";var r="",i=0,o=Object.keys(t);if(0===o.length)return"";for(o.sort(),n||(r+="?"+o[0]+"="+t[o[0]],i+=1);i{const r={type:H7e(e,gvt),url:t,children:[{text:""}]};i2e(e,r,{nextBlock:!0,...n})},mvt=new Set(["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga"]),gvt="img";E7e({key:gvt,isElement:!0,isVoid:!0,withOverrides:(e,t)=>{const{options:{disableUploadInsert:n,disableEmbedInsert:r}}=t;return n||(e=((e,t)=>{const{options:{uploadImage:n}}=t,{insertData:r}=e;return e.insertData=i=>{const o=i.getData("text/plain"),{files:a}=i;if(!o&&a&&a.length>0){const s=I7e(e,t);if(!z7e(s,{data:o,dataTransfer:i}))return r(i);for(const t of a){const r=new FileReader,[i]=t.type.split("/");"image"===i&&(r.addEventListener("load",(async()=>{if(!r.result)return;const t=n?await n(r.result):r.result;pvt(e,t)})),r.readAsDataURL(t))}}else r(i)},e})(e,t)),r||(e=((e,t)=>{const{insertData:n}=e;return e.insertData=t=>{const r=t.getData("text/plain");(e=>{if(!iJe(e))return!1;const t=new URL(e).pathname.split(".").pop();return mvt.has(t)})(r)?pvt(e,r):n(t)},e})(e)),e},then:(e,{type:t})=>({deserializeHtml:{rules:[{validNodeName:"IMG"}],getNode:e=>({type:t,url:e.getAttribute("src")})}})}),yst("img")({propsHook:()=>{const{url:e}=q5e();return{props:{src:e,draggable:!0}}}}),E7e({key:"media_embed",isElement:!0,isVoid:!0,options:{transformUrl:e=>{if("http"!==e.slice(0,4)){var t,n;const r=/src=".*?"/,i=/"([^"]*)"/,o=null===(t=e.match(r))||void 0===t?void 0:t[0],a=null==o||null===(n=o.match(i))||void 0===n?void 0:n[1];a&&(e=a)}return e}},then:(e,{type:t})=>({deserializeHtml:{rules:[{validNodeName:"IFRAME"}],getNode:e=>{const n=e.getAttribute("src");if(n)return{type:t,url:n}}}})});const vvt=DHe("floatingMedia")({url:"",isEditing:!1}).extendActions((e=>({reset:()=>{e.url(""),e.isEditing(!1)}}))),Ovt=vvt.set,yvt=vvt.get;yst("button")({propsHook:()=>{const e=q5e();return{props:{onClick:(0,c.useCallback)((()=>{Ovt.url(e.url),Ovt.isEditing(!0)}),[e.url])}}}}),yst("input")({stateHook:({pluginKey:e}={})=>{const t=Ytt(),n=q5e();return dHe("enter",(r=>{((e,{element:t,pluginKey:n="media"})=>{let r=yvt.url();if(r===t.url)return Ovt.reset(),!0;const{isUrl:i=iJe,transformUrl:o}=Qtt(e,n);return i(r)?(o&&(r=o(r)),s2e(e,{url:r}),Ovt.reset(),j5e(e,e.selection),!0):void 0})(t,{element:n,pluginKey:e})&&r.preventDefault()}),{enableOnFormTags:["INPUT"]},[]),dHe("escape",(()=>{yvt.isEditing()&&(Ovt.reset(),j5e(t,t.selection))}),{enableOnFormTags:["INPUT"],enableOnContentEditable:!0},[]),{defaultValue:yvt.url()}},propsHook:({defaultValue:e})=>({props:{onChange:(0,c.useCallback)((e=>{Ovt.url(e.target.value)}),[]),autoFocus:!0,defaultValue:e}})});const bvt=["emphasis","strong","delete","inlineCode","html","text"],wvt="bold",kvt=E7e({key:wvt,isLeaf:!0,deserializeHtml:{rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}],query:e=>!zet(e,(e=>"normal"===e.style.fontWeight))},handlers:{onKeyDown:Tst},options:{hotkey:"mod+b"}}),xvt="code",_vt=E7e({key:xvt,isLeaf:!0,deserializeHtml:{rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}],query(e){const t=JKe(e,"P");return"Consolas"!==(null==t?void 0:t.style.fontFamily)&&!JKe(e,"PRE")}},handlers:{onKeyDown:Tst},options:{hotkey:"mod+e"}}),Svt="italic",Pvt=E7e({key:Svt,isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+i"},deserializeHtml:{rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}],query:e=>!zet(e,(e=>"normal"===e.style.fontStyle))}}),Evt=E7e({key:"strikethrough",isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+shift+x"},deserializeHtml:{rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}],query:e=>!zet(e,(e=>"none"===e.style.textDecoration))}}),Cvt=E7e({key:"subscript",isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+,",clear:"superscript"},deserializeHtml:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]}}),Tvt=E7e({key:"superscript",isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+.",clear:"subscript"},deserializeHtml:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]}}),$vt=E7e({key:"underline",isLeaf:!0,handlers:{onKeyDown:Tst},options:{hotkey:"mod+u"},deserializeHtml:{rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}],query:e=>!zet(e,(e=>"none"===e.style.textDecoration))}});E7e({key:"basicMarks",plugins:[kvt(),_vt(),Pvt(),Evt(),Cvt(),Tvt(),$vt()]});const Qvt={text:{},emphasis:{mark:({editor:e})=>H7e(e,Svt)},strong:{mark:({editor:e})=>H7e(e,wvt)},inlineCode:{mark:({editor:e})=>H7e(e,xvt)},html:{transform:e=>e.replaceAll("
","\n")}},Rvt=(e,t,n={})=>{const{editor:r,textRules:i}=t,{type:o,value:a,children:s}=e,l=i[o]||Qvt.text,{mark:u,transform:c=(e=>e)}=l,d=u?{...n,[u({editor:r})]:!0}:n,f=(null==s?void 0:s.flatMap((e=>Rvt(e,t,d))))||[];return[...a||0===f.length?[{text:c(a||""),...d}]:[],...f]},Avt=(e,t)=>{const{type:n}=e;return bvt.includes(n)?Rvt(e,t):((e,t)=>{const{elementRules:n}=t,{type:r}=e,i=n[r];return i?i.transform(e,t):[]})(e,t)},jvt=(e,t)=>{const{children:n}=e;return n?n.flatMap((e=>Avt(e,t))):[]},Dvt={heading:{transform:(e,t)=>{var n;const r={1:alt,2:slt,3:llt,4:ult,5:clt,6:dlt}[null!==(n=e.depth)&&void 0!==n?n:1];return{type:H7e(t.editor,r),children:jvt(e,t)}}},list:{transform:(e,t)=>({type:H7e(t.editor,e.ordered?ldt:sdt),children:jvt(e,t)})},listItem:{transform:(e,t)=>({type:H7e(t.editor,udt),children:jvt(e,t).map((e=>({...e,type:e.type===H7e(t.editor,plt)?H7e(t.editor,cdt):e.type})))})},paragraph:{transform:(e,t)=>{const n=jvt(e,t),r=H7e(t.editor,plt),i=new Set([H7e(t.editor,gvt)]),o=[];let a=[];const s=()=>{a.length>0&&(o.push({type:r,children:a}),a=[])};return n.forEach((e=>{const{type:t}=e;t&&i.has(t)?(s(),o.push(e)):a.push(e)})),s(),o}},link:{transform:(e,t)=>({type:H7e(t.editor,xct),url:e.url,children:jvt(e,t)})},image:{transform:(e,t)=>({type:H7e(t.editor,gvt),children:[{text:""}],url:e.url,caption:[{text:e.alt}]})},blockquote:{transform:(e,t)=>({type:H7e(t.editor,Xst),children:e.children.flatMap((e=>jvt(e,t)))})},code:{transform:(e,t)=>{var n;return{type:H7e(t.editor,Vst),lang:null!==(n=e.lang)&&void 0!==n?n:void 0,children:(e.value||"").split("\n").map((e=>({type:H7e(t.editor,Yst),children:[{text:e}]})))}}},thematicBreak:{transform:(e,t)=>({type:H7e(t.editor,"hr"),children:[{text:""}]})}};function Mvt(e){this.Compiler=t=>t.children.flatMap((t=>Avt(t,e)))}const Ivt="deserializeMd",zvt=(E7e({key:Ivt,then:e=>({editor:{insertData:{format:"text/plain",query:({data:e,dataTransfer:t})=>{if(t.getData("text/html"))return!1;const{files:n}=t;return!((null==n||!n.length)&&iJe(e))},getFragment:({data:t})=>((e,t)=>{const{elementRules:n,textRules:r}=Qtt(e,Ivt);return hvt()().use(dvt()).use(Mvt,{editor:e,elementRules:n,textRules:r}).processSync(t).result})(e,t)}}}),options:{elementRules:Dvt,textRules:Qvt}}),"suggestion"),Wvt="suggestionId",Nvt=(e,{match:t,...n}={})=>p2e(e,{match:(e,n)=>e[zvt]&&(!t||t(e,n)),...n}),Lvt=(e,t)=>{let n=Nvt(e,{at:t});if(!n){let r,i;try{[r,i]=I1e(e,t)}catch{return}const o=Q1e(e,i);if(o&&(n=Nvt(e,{at:o}),!n)){const t=R1e(e,r);t&&(n=Nvt(e,{at:t}))}}if(n)return n[0][Wvt]},Fvt=Symbol("suggestion"),{suggestionStore:Uvt,useSuggestionStore:Xvt}=z5e({currentUserId:null,users:{},suggestions:{},isSuggesting:!1,activeSuggestionId:null,onSuggestionAdd:null,onSuggestionUpdate:null,onSuggestionDelete:null},{name:"suggestion",scope:Fvt}),qvt=e=>e[Wvt],Bvt=e=>{const t=[];return Object.keys(e).forEach((e=>{(e=>e.startsWith(`${zvt}_`))(e)&&t.push(e)})),t},Vvt=e=>{const{currentUserId:t}=Qtt(e,zvt);return((e="0")=>`${zvt}_${e}`)(t)},Yvt=(e,t,{suggestionDeletion:n}={})=>{const r={[zvt]:!0,[Wvt]:t,[Vvt(e)]:!0};return n&&(r.suggestionDeletion=!0),r},Zvt=(e,t)=>{const{at:n=e.selection,suggestionId:r=YGe()}=null!=t?t:{},i=O1e(e,{match:t=>q1e(e,t),...t}),o=[...i];k1e(e,(()=>{const i=Yvt(e,r,t);((e,t,{at:n=e.selection}={})=>{if(n){kJe.isPath(n)&&(n=U1e(e,n));const r=(t,n)=>{if(!n0e.isText(t))return!1;const r=XJe.parent(e,n);if(!r)return!1;const[i]=r;return!e.isVoid(i)||e.markableVoid(i)},i=AJe.isExpanded(n);let o=!1;if(!i){const t=XJe.node(e,n);if(!t)return;const[i,a]=t;if(i&&r(i,a)){const t=XJe.parent(e,a);if(!t)return;const[n]=t;o=n&&e.markableVoid(n)}}(i||o)&&j0e.setNodes(e,t,{match:r,split:!0,voids:!0,at:n})}})(e,i,{at:n}),o.forEach((([,n])=>{s2e(e,i,{at:n,match:t=>!!q1e(e,t),...t})}))}))},Gvt=(e,t,{reverse:n}={})=>{k1e(e,(()=>{var r;const{anchor:i,focus:o}=t,a=null!==(r=Lvt(e,i))&&void 0!==r?r:YGe(),s=u1e(e,o);let l;for(;;){var u;if(l=null===(u=e.selection)||void 0===u?void 0:u.anchor,!l)break;const t=s.current;if(!t)break;if(!not(e,{at:{anchor:l,focus:t}})&&0===z1e(e,n?{anchor:t,focus:l}:{anchor:l,focus:t}).length)break;const r=(n?R1e:Q1e)(e,l,{unit:"character"});if(!r)break;let i=n?{anchor:r,focus:l}:{anchor:l,focus:r};i=v2e(e,i);const o=p2e(e,{at:l,match:t=>h1e(e,t)&&t[zvt]&&!t.suggestionDeletion&&t[Vvt(e)]});if(o&&B1e(e,l,o[1])&&w1e(e,o[0])){E1e(e,{at:o[1]});continue}if(YJe.equals(l,e.selection.anchor)&&a2e(e,{reverse:n,unit:"character"}),not(e,{at:i}))continue;const c=Nvt(e,{at:i,match:t=>!t.suggestionDeletion&&t[Vvt(e)]});c?S1e(e,{at:i,unit:"character"}):Zvt(e,{at:i,suggestionDeletion:!0,suggestionId:a})}}))},Hvt=(e,{reverse:t}={})=>{k1e(e,(()=>{const n=e.selection,[r,i]=I1e(e,n);t?(r2e(e,{edge:"end"}),Gvt(e,{anchor:i,focus:r},{reverse:!0})):(r2e(e,{edge:"start"}),Gvt(e,{anchor:r,focus:i}))}))},Kvt=(e,t)=>{k1e(e,(()=>{var n;const r=null!==(n=Lvt(e,e.selection))&&void 0!==n?n:YGe();pot(e)&&Hvt(e),i2e(e,{text:t,...Yvt(e,r)},{at:e.selection,select:!0})}))};E7e({key:zvt,isLeaf:!0,useHooks:(e,t)=>{const n=c7e().keyEditor(),r=(()=>{const e=Ytt(),t=Xvt().set.activeSuggestionId();return n=>{t(n),e.activeSuggestionId=n}})();(0,c.useEffect)((()=>{if(!e.selection)return;const t=()=>{r(null)},n=Nvt(e);if(!n)return t();const[i]=n,o=qvt(i);if(!o)return t();r(o)}),[e,n,r])},withOverrides:(e,t)=>{const n=e,{normalizeNode:r,insertText:i,insertFragment:o,insertBreak:a,deleteBackward:s,deleteForward:l,deleteFragment:u}=n;return n.isSuggesting=!1,n.insertBreak=()=>{n.isSuggesting?Kvt(n,"\n"):a()},n.insertText=e=>{n.isSuggesting?Kvt(n,e):i(e)},n.insertFragment=e=>{n.isSuggesting?((e,t,{insertFragment:n=e.insertFragment}={})=>{k1e(e,(()=>{var r;Hvt(e);const i=null!==(r=Lvt(e,e.selection))&&void 0!==r?r:YGe();t.forEach((t=>{p7e({node:t,source:{},apply:t=>{t[zvt]||(t[zvt]=!0),t.suggestionDeletion&&delete t.suggestionDeletion,t[Wvt]=i,Bvt(t).forEach((e=>{delete t[e]})),t[Vvt(e)]=!0}})})),n(t)}))})(n,e,{insertFragment:o}):o(e)},n.deleteFragment=e=>{n.isSuggesting?Hvt(n,{reverse:!0}):u(e)},n.deleteBackward=e=>{if(n.isSuggesting){const t=n.selection,r=R1e(n,t,{unit:e});if(!r)return;Gvt(n,{anchor:t.anchor,focus:r},{reverse:!0})}else s(e)},n.deleteForward=e=>{if(n.isSuggesting){const t=n.selection,r=Q1e(n,t,{unit:e});if(!r)return;Gvt(n,{anchor:t.anchor,focus:r})}else l(e)},n.normalizeNode=e=>{const[t,i]=e;if(t[zvt]){const e=R1e(n,i);if(e){const r=Z1e(n,e.path);if(null!=r&&r[zvt]&&r[Wvt]!==t[Wvt])return void s2e(n,{[Wvt]:r[Wvt]},{at:i})}if(!qvt(t)){const e=Bvt(t);return void c2e(n,[zvt,"suggestionDeletion",...e],{at:i})}if(0===Bvt(t).length)return void(t.suggestionDeletion?c2e(n,[zvt,Wvt],{at:i}):E1e(n,{at:i}))}r(e)},n}});var Jvt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),eOt="undefined"==typeof Element,tOt=eOt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nOt=!eOt&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},rOt=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},iOt=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!rOt(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:a,candidates:l})}else{tOt.call(a,Jvt)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),c=!rOt(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return i},oOt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},aOt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!oOt(e)?0:e.tabIndex},sOt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},lOt=function(e){return"INPUT"===e.tagName},uOt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},cOt=function(e,t){return!(t.disabled||rOt(t)||function(e){return lOt(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=tOt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(tOt.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return uOt(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,s=nOt(e);if(a&&!a.shadowRoot&&!0===r(a))return uOt(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=o}if(function(e){var t,n,r,i,o=e&&nOt(e),a=null===(t=o)||void 0===t?void 0:t.host,s=!1;if(o&&o!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!s&&a;){var l,u,c;s=!(null===(u=a=null===(l=o=nOt(a))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},hOt=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=aOt(e);return n<0&&t&&!oOt(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(sOt).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)};const pOt="tabbable";E7e({key:pOt,renderAfterEditable:function(){const e=Jtt(),{query:t,globalEventListener:n,insertTabbableEntries:r,isTabbable:i}=Qtt(e,pOt);return(0,c.useEffect)((()=>{const o=D5e(e,e);if(!o)return;const a=a=>{var s;if("Tab"!==a.key||a.defaultPrevented||null==t||!t(e,a))return;const l=null==r?void 0:r(e,a);if(n&&a.target&&![o,...l.map((({domNode:e})=>e))].some((e=>e.contains(a.target))))return;const u=function(e,t){var n;return n=(t=t||{}).getShadowRoot?iOt([e],t.includeContainer,{filter:dOt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:fOt}):function(e,t,n){if(rOt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Jvt));return t&&tOt.call(e,Jvt)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,dOt.bind(null,t)),hOt(n)}(o),c=u.map((t=>{const n=((e,t)=>{try{return m4e.toSlateNode(e,t)}catch(e){}})(e,t);if(n)return{domNode:t,slateNode:n,path:A5e(e,n)}})).filter((t=>t&&(null==i?void 0:i(e,t)))),d=[...l,...c].sort(((e,t)=>kJe.compare(e.path,t.path))),{activeElement:f}=document,h=null!==(s=f&&d.find((e=>e.domNode===f)))&&void 0!==s?s:null,p=((e,{tabbableEntries:t,activeTabbableEntry:n,direction:r})=>{var i,o;if(n){const i=t.indexOf(n),o=t[i+("forward"===r?1:-1)];if(o&&kJe.equals(n.path,o.path))return{type:"dom-node",domNode:o.domNode};if("forward"===r){const t=Q1e(e,n.path);return t?{type:"path",path:t.path}:null}return{type:"path",path:F1e(e,n.path).path}}const a=(null===(i=e.selection)||void 0===i||null===(o=i.anchor)||void 0===o?void 0:o.path)||[],s="forward"===r?t.find((e=>!kJe.isBefore(e.path,a))):[...t].reverse().find((e=>kJe.isBefore(e.path,a)));return s?{type:"dom-node",domNode:s.domNode}:null})(e,{tabbableEntries:d,activeTabbableEntry:h,direction:a.shiftKey?"backward":"forward"});if(p)switch(a.preventDefault(),p.type){case"path":j5e(e,{anchor:{path:p.path,offset:0},focus:{path:p.path,offset:0}});break;case"dom-node":p.domNode.focus()}else u.forEach((e=>{const t=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),setTimeout((()=>{t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}),0)}))},s=n?document.body:o;return s.addEventListener("keydown",a,!0),()=>s.removeEventListener("keydown",a,!0)}),[e,n,i,r,t]),null},options:{query:()=>!0,globalEventListener:!1,insertTabbableEntries:()=>[],isTabbable:(e,t)=>D1e(e,t.slateNode)}});const mOt=E7e({key:"trailingBlock",withOverrides:(e,{options:{type:t=H7e(e,L7e),level:n,...r}})=>{const{normalizeNode:i}=e;return e.normalizeNode=([o,a])=>{if(0===a.length){const i=((e,t)=>{const{children:n}=e,r=n.at(-1);if(!r)return;const[,i]=((e,t)=>XJe.last(e,[]))(e);return[Pnt(r,t-1),i.slice(0,t+1)]})(e,n),o=null==i?void 0:i[0];if(!o||o.type!==t&&h2e(i,r)){const t=i?kJe.next(i[1]):[0];return void mot(e,e.blockFactory({},t),{at:t})}}return i([o,a])},e},options:{level:0},then:e=>({type:H7e(e,L7e)})});var gOt={categories:[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","robot_face","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","kiss","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","brown_heart","black_heart","white_heart","100","anger","boom","dizzy","sweat_drops","dash","hole","bomb","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","mushroom","peanuts","beans","chestnut","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","8ball","crystal_ball","magic_wand","nazar_amulet","hamsa","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","gun","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],emojis:{100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous","oops","huh"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},kiss:{id:"kiss",name:"Kiss Mark",keywords:["face","lips","love","like","affection","valentines"],skins:[{unified:"1f48b",native:"💋"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["{this.grid.addSection(e,new SOt(e,this.settings.perLine.value),this.elements)})),this.grid}}class EOt{constructor(e=gOt){wOt(this,"_hash",{}),wOt(this,"_keys",[]),wOt(this,"_emojis",void 0),this._emojis=e.emojis,this.init()}init(){Object.values(this._emojis).forEach((e=>{const t=this.createSearchableString(e);this._keys.push(t),this._hash[t]=e.id}))}createSearchableString(e){const{id:t,name:n,keywords:r}=e;return`${t},${this.getName(n)},${r.join(",")}`}getName(e){return e.toLowerCase().split(" ").join(",")}get keys(){return this._keys}getEmoji(e){return this._emojis[e]}getEmojiId(e){return this._hash[e]}}class COt extends EOt{constructor(e,t,n=gOt){var r;super(n),this.settings=e,this.localStorage=t,this.library=n,wOt(this,"categories",bOt),wOt(this,"emojis",{}),wOt(this,"grid",void 0),this.categories=null!==(r=e.categories.value)&&void 0!==r?r:this.categories,this.initEmojis(n.categories),this.grid=new POt(this.localStorage,this.categories,this.emojis,e).build()}static getInstance(e,t,n=gOt){return COt.instance||(COt.instance=new COt(e,t,n)),COt.instance}initEmojis(e){for(const t of e)this.emojis[t.id]=t.emojis}updateFrequentCategory(e){this.localStorage.update(e),this.grid.updateSection(vOt.Frequent,this.localStorage.getList())}getGrid(){return this.grid}indexOf(e){const t=this.grid.indexOf(e);return t<1?0:t}}wOt(COt,"instance",void 0),new Map;class TOt{constructor(e){this.library=e,wOt(this,"result",[]),wOt(this,"scores",{}),wOt(this,"maxResult",60),wOt(this,"input",void 0)}search(e){this.input=e.toLowerCase();const t=this.input;return t?(this.createSearchResult(t),this.sortResultByScores(this.result,this.scores)):(this.scores={},this.result=[]),this}createSearchResult(e){this.scores={},this.result=[];for(const t of this.library.keys){const n=t.indexOf(`${e}`);if(-1===n)continue;const r=this.library.getEmojiId(t);this.result.push(r),this.scores[r]||(this.scores[r]=0),this.scores[r]+=r===e?0:n+1}}sortResultByScores(e,t){e.sort(((e,n)=>{const r=t[e],i=t[n];return r===i?e.localeCompare(n):r-i}))}hasFound(e=!1){return e&&this.input?this.result.includes(this.input):this.result.length>0}get(){const e=[];for(const n of this.result){var t;const r=null===(t=this.library)||void 0===t?void 0:t.getEmoji(n);if(e.push(this.transform(r)),e.length>=this.maxResult)break}return e}getEmoji(){return this.get()[0]}}class $Ot extends TOt{constructor(e){super(e),this.library=e}static getInstance(e){return $Ot.instance||($Ot.instance=new $Ot(e)),$Ot.instance}transform(e){return e}}wOt($Ot,"instance",void 0);class QOt extends TOt{constructor(e){super(e),this.library=e}static getInstance(){return QOt.instance||(QOt.instance=new QOt(new EOt)),QOt.instance}transform(e){const{id:t,name:n,skins:r}=e;return{key:t,text:n,data:{id:t,emoji:r[0].native,name:n,text:n}}}}wOt(QOt,"instance",void 0);const ROt=e=>!!e&&/\s/.test(e),AOt=(e,t)=>t?z1e(e,U1e(e,t,R1e(e,t))):void 0,jOt=(e,t)=>t?R1e(e,t):void 0,DOt=(e,t)=>{const n=jOt(e,t);return(null==t?void 0:t.path[0])!==(null==n?void 0:n.path[0])};E7e({key:OOt,withOverrides:(e,{options:{id:t,emojiTriggeringController:n}})=>{const r=QOt.getInstance(),i=((e,t)=>({char:n="",action:r="insert"}={})=>{const{selection:i}=e;if(!i||!t2e(i)||ROt(n))return void t.setIsTriggering(!1);let o,a,s=i.anchor,l=n;do{if(a=AOt(e,s),l=a+l,o=jOt(e,s),DOt(e,s))break;s=o}while(!ROt(a));l=l.trim(),"delete"===r&&(l=l.slice(0,-1)),t.setText(l)})(e,n),{apply:o,insertText:a,deleteBackward:s,deleteForward:l}=e;return e.insertText=t=>{const{selection:n}=e;return t2e(n)?(i({char:t}),a(t)):a(t)},e.deleteBackward=e=>(i({action:"delete"}),s(e)),e.deleteForward=e=>(i(),l(e)),e.apply=i=>{if(o(i),null==n||!n.hasTriggeringMark)return;const a=n.getText();switch(i.type){case"set_selection":n.reset(),Mlt.reset();break;case"insert_text":if(n.hasEnclosingTriggeringMark()&&r.search(a).hasFound(!0)){const t=r.getEmoji();t&&(({key:e=OOt}={})=>(t,n)=>{const{options:{createEmoji:r,emojiTriggeringController:i}}=G7e(t,e);return k1e(t,(()=>{((e,t)=>{a1e.withoutMerging(e,t)})(t,(()=>S1e(t,{distance:i.setIsTriggering(!1).getTextSize(),reverse:!0})));const e=r(n);o2e(t,e)})),Mlt.reset()})()(e,t);break}if(!n.hasEnclosingTriggeringMark()&&n.isTriggering&&r.search(a).hasFound()){Mlt.items(r.search(a).get()),Mlt.open({activeId:t,text:"",targetRange:e.selection});break}n.reset(),Mlt.reset();break;case"remove_text":if(n.isTriggering&&r.search(a).hasFound()){Mlt.items(r.search(a).get()),Mlt.open({activeId:t,text:"",targetRange:e.selection});break}n.reset(),Mlt.reset()}},e},options:{trigger:":",createEmoji:e=>e.data.emoji,emojiTriggeringController:new class{constructor(e=yOt){this.options=e,wOt(this,"_isTriggering",!1),wOt(this,"_hasTriggeringMark",!1),wOt(this,"text",""),wOt(this,"pos",void 0)}get isTriggering(){return this._isTriggering}setIsTriggering(e){return this._isTriggering=e,this}get hasTriggeringMark(){return this._hasTriggeringMark}hasEnclosingTriggeringMark(){return this.endsWithEnclosingMark(this.text)}setText(e){return this._hasTriggeringMark=this.startsWithTriggeringMark(e),this.setIsTriggering(this._hasTriggeringMark&&e.length>this.options.limitTriggeringChars),this.text=this.isTriggering?e:"",this}startsWithTriggeringMark(e){return new RegExp(`^${this.options.trigger}`).test(e)}endsWithEnclosingMark(e){return new RegExp(`${this.options.trigger}$`).test(e)}getText(){return this.text.replaceAll(/(^:)|(:$)/g,"")}getTextSize(){return this.text.length}reset(){return this.text="",this.setIsTriggering(!1),this._hasTriggeringMark=!1,this}}},then:(e,{key:t,options:{trigger:n,createEmoji:r,emojiTriggeringController:i}})=>({options:{id:t,trigger:n,createEmoji:r,emojiTriggeringController:i}})});var MOt=__webpack_require__(48494);function IOt(e,t,...n){if(void 0!==MOt&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function zOt(e,t,n){return t.split(".").reduce(((e,t)=>e&&e[t]?e[t]:n||null),e)}function WOt(e){return"object"==typeof e}const NOt="dnd-core/INIT_COORDS",LOt="dnd-core/BEGIN_DRAG",FOt="dnd-core/PUBLISH_DRAG_SOURCE",UOt="dnd-core/HOVER",XOt="dnd-core/DROP",qOt="dnd-core/END_DRAG";function BOt(e,t){return{type:NOt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const VOt={type:NOt,payload:{clientOffset:null,sourceClientOffset:null}};function YOt(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:i,getSourceClientOffset:o}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(BOt(i)),function(e,t,n){IOt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){IOt(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(VOt);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){IOt("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(l)}e.dispatch(BOt(i,u));const c=s.getSource(l).beginDrag(a,l);if(null==c)return;!function(e){IOt(WOt(e),"Item must be an object.")}(c),s.pinSource(l);const d=s.getSourceType(l);return{type:LOt,payload:{itemType:d,item:c,sourceId:l,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function ZOt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GOt(e){for(var t=1;t{const a=function(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return function(e){IOt(void 0===e||WOt(e),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===t?{}:r.getDropResult()),o}(i,o,r,n),s={type:XOt,payload:{dropResult:GOt({},t,a)}};e.dispatch(s)}))}}function KOt(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){IOt(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:qOt}}}function JOt(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function eyt(e){return function(t,{clientOffset:n}={}){!function(e){IOt(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r];JOt(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){IOt(t.isDragging(),"Cannot call hover while not dragging."),IOt(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t{const o=n[i];var a;return r[i]=(a=o,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function ryt(e,t){return{x:e.x-t.x,y:e.y-t.y}}const iyt=[],oyt=[];iyt.__IS_NONE__=!0,oyt.__IS_ALL__=!0;class ayt{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;IOt("function"==typeof e,"listener must be a function."),IOt(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===r||i===r+1&&!function(e,t){if(e===iyt)return!1;if(e===oyt||void 0===t)return!0;const n=(r=e,t.filter((e=>r.indexOf(e)>-1)));var r;return n.length>0}(t.dirtyHandlerIds,n);o||e()}finally{r=i}}))}subscribeToOffsetChange(e){IOt("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return IOt(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return IOt(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(JOt(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return IOt(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!JOt(r,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const a=o.indexOf(e);return n?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?ryt(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?ryt(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const syt="undefined"!=typeof global?global:self,lyt=syt.MutationObserver||syt.WebKitMutationObserver;function uyt(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const cyt="function"==typeof lyt?function(e){let t=1;const n=new lyt(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:uyt;class dyt{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const fyt=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let t=0,n=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=cyt(this.flush),this.requestErrorThrow=uyt((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},hyt=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new dyt(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(fyt.registerPendingError),pyt="dnd-core/ADD_SOURCE",myt="dnd-core/ADD_TARGET",gyt="dnd-core/REMOVE_SOURCE",vyt="dnd-core/REMOVE_TARGET";function Oyt(e,t){t&&Array.isArray(e)?e.forEach((e=>Oyt(e,!1))):IOt("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var yyt;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(yyt||(yyt={}));let byt=0;function wyt(e){switch(e[0]){case"S":return yyt.SOURCE;case"T":return yyt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function kyt(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}class xyt{addSource(e,t){Oyt(e),function(e){IOt("function"==typeof e.canDrag,"Expected canDrag to be a function."),IOt("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),IOt("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(yyt.SOURCE,e,t);return this.store.dispatch(function(e){return{type:pyt,payload:{sourceId:e}}}(n)),n}addTarget(e,t){Oyt(e,!0),function(e){IOt("function"==typeof e.canDrop,"Expected canDrop to be a function."),IOt("function"==typeof e.hover,"Expected hover to be a function."),IOt("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(yyt.TARGET,e,t);return this.store.dispatch(function(e){return{type:myt,payload:{targetId:e}}}(n)),n}containsHandler(e){return kyt(this.dragSources,e)||kyt(this.dropTargets,e)}getSource(e,t=!1){return IOt(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return IOt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return IOt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return IOt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return wyt(e)===yyt.SOURCE}isTargetId(e){return wyt(e)===yyt.TARGET}removeSource(e){var t;IOt(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:gyt,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},fyt.enqueueTask(hyt.create(t))}removeTarget(e){IOt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:vyt,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);IOt(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){IOt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(byt++).toString();switch(e){case yyt.SOURCE:return`S${t}`;case yyt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===yyt.SOURCE?this.dragSources.set(r,n):e===yyt.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const _yt=(e,t)=>e===t;function Syt(e=iyt,t){switch(t.type){case UOt:break;case pyt:case myt:case vyt:case gyt:return iyt;default:return oyt}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach(((e,t)=>{1===e&&i.push(t)})),i}(n,r),o=i.length>0||!function(e,t,n=_yt){if(e.length!==t.length)return!1;for(let r=0;re!==i)))});case XOt:return $yt({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case qOt:return $yt({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function Ayt(e=0,t){switch(t.type){case pyt:case myt:return e+1;case gyt:case vyt:return e-1;default:return e}}function jyt(e=0){return e+1}function Dyt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Myt(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]);const[r,i]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=function(e,t=Uyt(),n,r){const i=t;return i[Lyt]||(i[Lyt]={dragDropManager:zyt(e,t,n,r)}),i[Lyt]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(n);return(0,c.useEffect)((()=>{if(i){const e=Uyt();return++Nyt,()=>{0==--Nyt&&(e[Lyt]=null)}}}),[]),(0,lM.jsx)(Wyt.Provider,{value:r,children:t})}));function Uyt(){return"undefined"!=typeof global?global:window}function Xyt(e){let t=null;return()=>(null==t&&(t=e()),t)}class qyt{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const i=[];return n.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Byt{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Vyt="__NATIVE_FILE__",Yyt="__NATIVE_URL__",Zyt="__NATIVE_TEXT__",Gyt="__NATIVE_HTML__";function Hyt(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const Kyt={[Vyt]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Gyt]:{exposeProperties:{html:(e,t)=>Hyt(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Yyt]:{exposeProperties:{urls:(e,t)=>Hyt(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Zyt]:{exposeProperties:{text:(e,t)=>Hyt(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Jyt(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Kyt).filter((e=>{const n=Kyt[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const ebt=Xyt((()=>/firefox/i.test(navigator.userAgent))),tbt=Xyt((()=>Boolean(window.safari)));class nbt{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:i,c3s:o}=this;let a=t.length-1;if(e===t[a])return n[a];let s,l=0,u=o.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const r=t[s];if(re))return n[s];u=s-1}}a=Math.max(0,u);const c=e-t[a],d=c*c;return n[a]+r[a]*c+i[a]*d+o[a]*c*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;ee[t]{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return lbt({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return lbt({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(s).some((t=>s[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Kyt[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new Byt(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&ibt(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=obt(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,i=Jyt(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,i){const o=function(e){var t;return"IMG"===e.nodeName&&(ebt()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=ibt(o?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:l,offsetHeight:u}=e,{anchorX:c,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return tbt()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,l,u),{offsetX:p,offsetY:m}=i,g=0===m||m;return{x:0===p||p?p:new nbt([0,.5,1],[s.x,s.x/l*f,s.x+f-l]).interpolate(c),y:g?m:(()=>{let e=new nbt([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return tbt()&&o&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,i,n,{anchorX:e,anchorY:o},{offsetX:a,offsetY:s});r.setDragImage(i,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Jyt(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:obt(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=obt(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Jyt(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:obt(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new abt(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new qyt(this.isNodeInDocument)}}const cbt=function(e,t,n){return new ubt(e,t,n)},dbt="font",fbt="shortcode",hbt="blockquote",pbt="bold",mbt="code-block",gbt="code",vbt="decrease-indent",Obt="delete-column",ybt="delete-row",bbt="delete-table",wbt="increase-indent",kbt="insert-column",xbt="image",_bt="file-link",Sbt="insert-row",Pbt="insert-table",Ebt="italic",Cbt="ordered-list",Tbt="strikethrough",$bt="unordered-list",Qbt="shortcode",Rbt=e=>e,Abt=()=>Ktt(),jbt=()=>Jtt(),Dbt=e=>Ytt(e),Mbt=e=>(e=>(c7e(e).keyEditor(),Ytt(e)))(e),Ibt=e=>c7e(e),zbt=e=>d7e(e),Wbt=e=>f7e(e),Nbt=()=>s1e(),Lbt=(e={})=>$tt(e),Fbt=e=>E7e(e),Ubt=(e,t)=>Ttt(e,t);var Xbt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"}))}));Xbt.displayName="FormatQuote";const qbt=UD("WidgetMarkdown_ToolbarButton",["root","active","custom-active-color","icon"]),Bbt=({id:e,icon:t,tooltip:n,label:r,active:i=!1,activeColor:o,disableFocusAfterClick:a=!1,disabled:s,variant:l,onClick:u})=>{const d=Mbt(),f=(0,c.useCallback)((e=>{e.preventDefault(),d&&(u(e),a||setTimeout((()=>{j5e(d)})))}),[a,d,u]),h={};return i&&o&&(h.color=o),"menu"===l?c.createElement(OG,{key:"menu-item",onClick:f,startIcon:t},null!=r?r:n):c.createElement(GD,{key:"button","aria-label":null!=r?r:n,color:"secondary",title:null!=r?r:n,variant:"text","data-testid":`toolbar-button-${e}`,onClick:f,className:qD(qbt.root,i&&qbt.active,o&&qbt["custom-active-color"]),style:h,disabled:s},c.createElement(t,{className:qbt.icon}))},Vbt=["type","inactiveType","icon"];function Ybt(){return Ybt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{type:t,inactiveType:n,icon:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{pnt(o,{activeType:t,inactiveType:n})}),[o,n,t]);return c.createElement(Bbt,Ybt({key:t,active:!(null==o||!o.selection)&&m2e(o,{match:{type:t}}),onClick:a,icon:r},i))},Gbt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Zbt,{id:"blockquote",label:n("editor.editorWidgets.markdown.quote"),tooltip:n("editor.editorWidgets.markdown.insertQuote"),icon:Xbt,type:Xst,disabled:e,variant:t})};var Hbt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"}))}));Hbt.displayName="FormatBold";const Kbt=["type","clear","icon"];function Jbt(){return Jbt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{type:t,clear:n,icon:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{yot(o,{key:t,clear:n})}),[n,o,t]);return c.createElement(Bbt,Jbt({active:!(null==o||!o.selection)&&cot(o,t),onClick:a,icon:r},i))},twt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(ewt,{id:"bold",tooltip:n("editor.editorWidgets.markdown.bold"),type:glt,variant:t,icon:Hbt,disabled:e})};var nwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))}));nwt.displayName="Code";const rwt=({disabled:e,variant:t})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{ilt(r,{insertNodesOptions:{select:!0}})}),[r]);return c.createElement(Bbt,{id:"code-block",label:n("editor.editorWidgets.markdown.codeBlock"),tooltip:n("editor.editorWidgets.markdown.insertCodeBlock"),icon:nwt,onClick:i,disabled:e,variant:t})},iwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(ewt,{id:"code",tooltip:n("editor.editorWidgets.markdown.code"),type:Olt,icon:nwt,disabled:e,variant:t})};var owt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M11 17h10v-2H11v2zm-8-5 4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"}))}));owt.displayName="FormatIndentDecrease";const awt=({disabled:e,variant:t})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{Vut(r)}),[r]);return c.createElement(Bbt,{id:"decrease-ident",tooltip:n("editor.editorWidgets.markdown.decreaseIndent"),onClick:i,icon:owt,disabled:e,variant:t})};var swt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M13.25 25.25v-7.73l.08-.07.67-.67.67.67.08.07v7.73a.75.75 0 0 1-1.5 0Zm.08-14.45a1.83 1.83 0 0 0-.08-.07V2.75a.75.75 0 0 1 1.5 0v7.98l-.08.07-.67.67-.67-.67Zm-1.86 4.67a.75.75 0 1 0 1.06 1.06L14 15.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L15.06 14l1.47-1.47a.75.75 0 1 0-1.06-1.06L14 12.94l-1.47-1.47a.75.75 0 1 0-1.06 1.06L12.94 14l-1.47 1.47ZM3.75 3a.75.75 0 0 0 0 1.5h1.5c1.24 0 2.25 1 2.25 2.25V9.5H3.75a.75.75 0 0 0 0 1.5H7.5v6H3.75a.75.75 0 0 0 0 1.5H7.5v2.75c0 1.24-1 2.25-2.25 2.25h-1.5a.75.75 0 0 0 0 1.5h1.5A3.75 3.75 0 0 0 9 21.25V6.75A3.75 3.75 0 0 0 5.25 3h-1.5Zm19 0A3.75 3.75 0 0 0 19 6.75v14.5A3.75 3.75 0 0 0 22.75 25h2.5a.75.75 0 0 0 0-1.5h-2.5c-1.24 0-2.25-1-2.25-2.25V18.5h4.75a.75.75 0 0 0 0-1.5H20.5v-6h4.75a.75.75 0 0 0 0-1.5H20.5V6.75c0-1.24 1-2.25 2.25-2.25h2.5a.75.75 0 0 0 0-1.5h-2.5Z"}))}));swt.displayName="TableDeleteColumn";const lwt=({disabled:e,variant:t})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{(e=>{if(m2e(e,{match:{type:H7e(e,Mgt)}})){const t=g1e(e,{match:{type:[H7e(e,Wgt),H7e(e,Igt)]}}),n=g1e(e,{match:{type:H7e(e,zgt)}}),r=g1e(e,{match:{type:H7e(e,Mgt)}});if(t&&n&&r&&n[0].children.length>1){const[n,i]=r,o=t[1],a=o.at(-1),s=o.slice(),l=s.length-2;k1e(e,(()=>{n.children.forEach(((t,n)=>{s[l]=n,1===t.children.length||a>t.children.length-1||E1e(e,{at:s})}));const{colSizes:t}=n;if(t){const n=[...t];n.splice(a,1),s2e(e,{colSizes:n},{at:i})}}))}}})(r)}),[r]);return c.createElement(Bbt,{id:"delete-column",tooltip:n("editor.editorWidgets.markdown.table.deleteColumn"),icon:swt,onClick:i,disabled:e,variant:t})};var uwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M2.75 13.25h7.73l.07.08.67.67-.67.67-.07.08H2.75a.75.75 0 0 1 0-1.5Zm14.45.08.07-.08h7.98a.75.75 0 0 1 0 1.5h-7.98a1.83 1.83 0 0 0-.07-.08l-.67-.67.67-.67Zm-4.67-1.86a.75.75 0 1 0-1.06 1.06L12.94 14l-1.47 1.47a.75.75 0 1 0 1.06 1.06L14 15.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L15.06 14l1.47-1.47a.75.75 0 1 0-1.06-1.06L14 12.94l-1.47-1.47ZM25 3.75a.75.75 0 0 0-1.5 0v1.5c0 1.24-1 2.25-2.25 2.25H18.5V3.75a.75.75 0 0 0-1.5 0V7.5h-6V3.75a.75.75 0 0 0-1.5 0V7.5H6.75c-1.24 0-2.25-1-2.25-2.25v-1.5a.75.75 0 0 0-1.5 0v1.5A3.75 3.75 0 0 0 6.75 9h14.5A3.75 3.75 0 0 0 25 5.25v-1.5Zm0 19A3.75 3.75 0 0 0 21.25 19H6.75A3.75 3.75 0 0 0 3 22.75v2.5a.75.75 0 0 0 1.5 0v-2.5c0-1.24 1-2.25 2.25-2.25H9.5v4.75a.75.75 0 0 0 1.5 0V20.5h6v4.75a.75.75 0 0 0 1.5 0V20.5h2.75c1.24 0 2.25 1 2.25 2.25v2.5a.75.75 0 0 0 1.5 0v-2.5Z"}))}));uwt.displayName="TableDeleteRow";const cwt=({disabled:e,variant:t})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{(e=>{if(m2e(e,{match:{type:H7e(e,Mgt)}})){const t=g1e(e,{match:{type:H7e(e,Mgt)}}),n=g1e(e,{match:{type:H7e(e,zgt)}});n&&t&&t[0].children.length>1&&E1e(e,{at:n[1]})}})(r)}),[r]);return c.createElement(Bbt,{id:"delete-row",tooltip:n("editor.editorWidgets.markdown.table.deleteRow"),icon:uwt,onClick:i,disabled:e,variant:t})};var dwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M3 6.75A3.75 3.75 0 0 1 6.75 3h14.5A3.75 3.75 0 0 1 25 6.75v7.75a7.49 7.49 0 0 0-1.5-.88V11h-5v2.27c-.53.14-1.03.35-1.5.6V11h-6v6h2.87c-.25.47-.46.97-.6 1.5H11v5h2.62c.24.54.53 1.04.88 1.5H6.75A3.75 3.75 0 0 1 3 21.25V6.75ZM4.5 18.5v2.75c0 1.24 1 2.25 2.25 2.25H9.5v-5h-5Zm5-1.5v-6h-5v6h5Zm14-10.25c0-1.24-1-2.25-2.25-2.25H18.5v5h5V6.75ZM17 4.5h-6v5h6v-5Zm-7.5 0H6.75c-1.24 0-2.25 1-2.25 2.25V9.5h5v-5Zm17.5 16a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Zm-9.15-3.35a.5.5 0 0 0-.7.7l2.64 2.65-2.64 2.65a.5.5 0 0 0 .7.7l2.65-2.64 2.65 2.64a.5.5 0 0 0 .7-.7l-2.64-2.65 2.64-2.65a.5.5 0 0 0-.7-.7l-2.65 2.64-2.65-2.64Z"}))}));dwt.displayName="TableDismiss";const fwt=({disabled:e,variant:t})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{(e=>{if(m2e(e,{match:{type:H7e(e,Mgt)}})){const t=g1e(e,{match:{type:H7e(e,Mgt)}});t&&E1e(e,{at:t[1]})}})(r)}),[r]);return c.createElement(Bbt,{id:"delete-table",tooltip:n("editor.editorWidgets.markdown.table.deleteTable"),icon:dwt,onClick:i,disabled:e,variant:t})};var hwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"}))}));hwt.displayName="UnfoldMore";const pwt=["ownerState","children"];function mwt(){return mwt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t;const n=LD(),r=Mbt(),[i,o]=(0,c.useState)(0),a=kz(null==r?void 0:r.selection,100),s=(0,c.useMemo)((()=>a&&vwt.find((e=>m2e(r,{match:{type:e.value},at:null==a?void 0:a.anchor})))),[r,a,i]),l=(0,c.useCallback)(((e,t)=>{t&&(null==s?void 0:s.value)!==t&&(pnt(r,{activeType:t}),o((e=>e+1)))}),[r,null==s?void 0:s.value]);return c.createElement("div",{className:qD(gwt.root,e&&gwt.disabled)},c.createElement(sye,{value:null!==(t=null==s?void 0:s.value)&&void 0!==t?t:plt,onChange:l,disabled:e,slots:{root:Owt},slotProps:{popper:{disablePortal:!1,className:qD(gwt.popper,"CMS_Scrollbar_root","CMS_Scrollbar_secondary")}},"data-testid":"font-type-select"},vwt.map((e=>{var t;const r=(null!==(t=null==s?void 0:s.value)&&void 0!==t?t:plt)===e.value;return c.createElement(dye,{key:e.value,value:e.value,slotProps:{root:{className:qD(gwt.option,r&&gwt["option-selected"])}}},c.createElement("span",{className:gwt["option-label"]},n(e.label)))}))))};var bwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"}))}));bwt.displayName="FormatIndentIncrease";const wwt=({disabled:e,variant:t})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{But(r)}),[r]);return c.createElement(Bbt,{id:"increase-ident",tooltip:n("editor.editorWidgets.markdown.increaseIndent"),onClick:i,icon:bwt,disabled:e,variant:t})};var kwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M4.5 3.75a.75.75 0 0 0-1.5 0v20.5a.75.75 0 0 0 1.5 0V3.75Zm20.5 0a.75.75 0 0 0-1.5 0v20.5a.75.75 0 0 0 1.5 0V3.75ZM11.75 3A2.75 2.75 0 0 0 9 5.75v16.5A2.75 2.75 0 0 0 11.75 25h4.5A2.75 2.75 0 0 0 19 22.25V5.75A2.75 2.75 0 0 0 16.25 3h-4.5ZM10.5 5.75c0-.69.56-1.25 1.25-1.25h4.5c.69 0 1.25.56 1.25 1.25V10h-7V5.75Zm0 5.75h7v5h-7v-5Zm0 6.5h7v4.25c0 .69-.56 1.25-1.25 1.25h-4.5c-.69 0-1.25-.56-1.25-1.25V18Z"}))}));kwt.displayName="TableInsertColumn";const xwt=({disabled:e,variant:t})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{upt(r)}),[r]);return c.createElement(Bbt,{id:"insert-column",tooltip:n("editor.editorWidgets.markdown.table.insertColumn"),icon:kwt,onClick:i,disabled:e,variant:t})};var _wt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}))}));_wt.displayName="Image";const Swt=({variant:e,field:t,collection:n,currentValue:r,disabled:i})=>{var o;const a=LD(),[s,l]=(0,c.useState)(),u=Mbt(),d=(0,c.useCallback)((e=>{if(Ne(e.path)){const r={type:hdt,url:e.path,children:[{text:""}]},i=g1e(u,{at:null==s?void 0:s.focus,match:{type:hdt}});var t,n;if(i)return void(e.path===(null===(t=i[0])||void 0===t?void 0:t.url)&&e.alt===(null===(n=i[0])||void 0===n?void 0:n.alt)||s2e(u,{url:e.path,alt:e.alt},{at:i[1]}));s2e(u,r,{at:null==s?void 0:s.focus})}}),[u,s]),f=(0,c.useMemo)((()=>{var e;return null===(e=t.choose_url)||void 0===e||e}),[t.choose_url]),h=$z({path:null!==(o=null==r?void 0:r.url)&&void 0!==o?o:"",alt:null==r?void 0:r.alt},{collection:n,field:t,forImage:!0,insertOptions:{chooseUrl:f,showAlt:!0}},d),p=(0,c.useCallback)((()=>{l(u.selection),h()}),[u.selection,h]);return c.createElement(Bbt,{id:"image",label:a("editor.editorWidgets.markdown.image"),tooltip:a("editor.editorWidgets.markdown.insertImage"),icon:_wt,onClick:p,disabled:i,variant:e})};var Pwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}))}));Pwt.displayName="Link";const Ewt=({variant:e,field:t,collection:n,currentValue:r,disabled:i})=>{var o,a;const s=LD(),l=Mbt(),u=(0,c.useCallback)((({path:e,alt:t})=>{var n;const r=null===(n=l.selection)||void 0===n?void 0:n.focus.path;if(Ne(e)&&r){const n=Ne(t)?t:e,i=Z1e(l,r);if(i&&i.type===xct)return void(e===i.url&&n===i.children[0].text||(s2e(l,{url:e,children:[{text:t}]},{at:r}),n!==z1e(l,r)&&Oot(l,{at:r,nodes:{text:n},insertOptions:{select:!0}})));S1e(l,{at:l.selection}),Oct(l,{url:e,text:n},{at:l.selection})}}),[l]),d=(0,c.useMemo)((()=>{var e;return null===(e=t.choose_url)||void 0===e||e}),[t.choose_url]),f=!(null==l||!l.selection)&&m2e(l,{match:{type:xct}}),h=l.selection?sot(l):"",p=Wz(),m=$z({path:null!==(o=null==r?void 0:r.url)&&void 0!==o?o:"",alt:null!==(a=null==r?void 0:r.alt)&&void 0!==a?a:h},{collection:n,field:t,controlID:p,forImage:!1,insertOptions:{chooseUrl:d,showAlt:!0}},u),g=(0,c.useCallback)((()=>{m()}),[m]);return f?null:c.createElement(Bbt,{id:"link",label:s("editor.editorWidgets.markdown.link"),tooltip:s("editor.editorWidgets.markdown.insertLink"),icon:Pwt,onClick:g,disabled:i,variant:e})};var Cwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M3.75 23.5a.75.75 0 0 0 0 1.5h20.5a.75.75 0 0 0 0-1.5H3.75Zm0-20.5a.75.75 0 0 0 0 1.5h20.5a.75.75 0 0 0 0-1.5H3.75ZM3 16.25A2.75 2.75 0 0 0 5.75 19h16.5A2.75 2.75 0 0 0 25 16.25v-4.5A2.75 2.75 0 0 0 22.25 9H5.75A2.75 2.75 0 0 0 3 11.75v4.5Zm2.75 1.25c-.69 0-1.25-.56-1.25-1.25v-4.5c0-.69.56-1.25 1.25-1.25H10v7H5.75Zm5.75 0v-7h5v7h-5Zm6.5 0v-7h4.25c.69 0 1.25.56 1.25 1.25v4.5c0 .69-.56 1.25-1.25 1.25H18Z"}))}));Cwt.displayName="TableInsertRow";const Twt=({disabled:e,variant:t})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{cpt(r)}),[r]);return c.createElement(Bbt,{id:"insert-row",tooltip:n("editor.editorWidgets.markdown.table.insertRow"),icon:Cwt,onClick:i,disabled:e,variant:t})};var $wt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M3 6.75A3.75 3.75 0 0 1 6.75 3h14.5A3.75 3.75 0 0 1 25 6.75v7.75a7.49 7.49 0 0 0-1.5-.88V11h-5v2.27c-.53.14-1.03.35-1.5.6V11h-6v6h2.87c-.25.47-.46.97-.6 1.5H11v5h2.62c.24.54.53 1.04.88 1.5H6.75A3.75 3.75 0 0 1 3 21.25V6.75ZM4.5 18.5v2.75c0 1.24 1 2.25 2.25 2.25H9.5v-5h-5Zm5-1.5v-6h-5v6h5Zm14-10.25c0-1.24-1-2.25-2.25-2.25H18.5v5h5V6.75ZM17 4.5h-6v5h6v-5Zm-7.5 0H6.75c-1.24 0-2.25 1-2.25 2.25V9.5h5v-5Zm17.5 16a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Zm-6-4a.5.5 0 0 0-1 0V20h-3.5a.5.5 0 0 0 0 1H20v3.5a.5.5 0 0 0 1 0V21h3.5a.5.5 0 0 0 0-1H21v-3.5Z"}))}));$wt.displayName="TableAdd";const Qwt=({disabled:e,variant:t="button"})=>{const n=LD(),r=Mbt(),i=(0,c.useCallback)((()=>{((e,{rowCount:t=2,colCount:n=2,header:r}={},i={})=>{k1e(e,(()=>{if(!m2e(e,{match:{type:H7e(e,Mgt)}})&&(i2e(e,apt(e,{header:r,rowCount:t,colCount:n}),{nextBlock:!0,...i}),e.selection)){const t=knt(e,{match:{type:H7e(e,Mgt)}});if(!t)return;((e,{at:t,edge:n,focus:r})=>{r&&j5e(e);let i=t;"start"===n&&(i=A1e(e,[])),"end"===n&&(i=T1e(e,[])),i&&C1e(e,i)})(e,{at:A1e(e,t[1])})}}))})(r,{rowCount:2,colCount:2})}),[r]);return c.createElement(Bbt,{id:"insert-table",label:n("editor.editorWidgets.markdown.table.table"),tooltip:n("editor.editorWidgets.markdown.table.insertTable"),icon:$wt,onClick:i,disabled:e,variant:t})};var Rwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}))}));Rwt.displayName="FormatItalic";const Awt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(ewt,{id:"italic",tooltip:n("editor.editorWidgets.markdown.italic"),type:blt,variant:t,icon:Rwt,disabled:e})};var jwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"}))}));jwt.displayName="FormatListNumbered";const Dwt=["type","icon"];function Mwt(){return Mwt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{type:t,icon:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{Kct(i,{type:t})}),[i,t]),a=!(null==i||!i.selection)&&zct(i);return c.createElement(Bbt,Mwt({active:!!a&&a.list[0].type===t,onClick:o,icon:n},r))},zwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Iwt,{id:"numbered-list",tooltip:n("editor.editorWidgets.markdown.numberedList"),type:ldt,icon:jwt,disabled:e,variant:t})};var Wwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}))}));Wwt.displayName="DataArray";const Nwt=UD("WidgetMarkdown_ShortcodeToolbarButton",["root","label-icon","button"]),Lwt=({disabled:e})=>{const t=Mbt(),n=(0,c.useMemo)((()=>WE()),[]),r=(0,c.useCallback)((e=>()=>{i2e(t,{type:Qbt,shortcode:e,args:[],children:[{text:""}]}),j5e(t)}),[t]);return c.createElement(NZ,{label:c.createElement(Wwt,{className:Nwt["label-icon"],"aria-hidden":"true"}),"data-testid":"toolbar-button-shortcode",keepMounted:!0,hideDropdownIcon:!0,color:"secondary",variant:"text",rootClassName:Nwt.root,buttonClassName:Nwt.button,disabled:e,"aria-label":"add shortcode"},c.createElement(FZ,null,Object.keys(n).map((e=>{var t;const i=n[e];return c.createElement(OG,{key:`shortcode-${e}`,onClick:r(e)},null!==(t=i.label)&&void 0!==t?t:Le(e))}))))};var Fwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"}))}));Fwt.displayName="FormatStrikethrough";const Uwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(ewt,{id:"strikethrough",tooltip:n("editor.editorWidgets.markdown.strikethrough"),type:klt,variant:t,icon:Fwt,disabled:e})};var Xwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}))}));Xwt.displayName="FormatListBulleted";const qwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Iwt,{id:"bulleted-list",tooltip:n("editor.editorWidgets.markdown.bulletedList"),type:sdt,icon:Xwt,disabled:e,variant:t})},Bwt=UD("WidgetMarkdown_MenuToolbar",["root","button","label-icon"]);function Vwt(e,t,n,r){return e.map((e=>"string"==typeof e?Ywt(e,t,n,r,"button"):c.createElement(NZ,{key:`menu-${e.label}`,label:c.createElement(DN,{className:Bwt["label-icon"],"aria-hidden":"true"}),"data-testid":`toolbar-menu-${e.label.toLowerCase().replace(" ","-")}`,keepMounted:!0,hideDropdownIcon:!0,color:"secondary",variant:"text",rootClassName:Bwt.root,buttonClassName:Bwt.button,disabled:r,"aria-label":"additional toolbar options dropdown"},e.groups.map(((e,i)=>0===e.items.length?null:c.createElement(FZ,{key:`group-${i}`},e.items.map((e=>Ywt(e,t,n,r,"menu")))))))))}function Ywt(e,t,n,r,i){switch(e){case"blockquote":return c.createElement(Gbt,{key:"bold",disabled:r,variant:i});case"bold":return c.createElement(twt,{key:"bold",disabled:r,variant:i});case"code":return c.createElement(iwt,{key:"code",disabled:r,variant:i});case"code-block":return c.createElement(rwt,{key:"code",disabled:r,variant:i});case"decrease-indent":return c.createElement(wwt,{key:"decrease-indent",disabled:r,variant:i});case"delete-column":return c.createElement(lwt,{key:"delete-column",disabled:r,variant:i});case"delete-row":return c.createElement(cwt,{key:"delete-row",disabled:r,variant:i});case"delete-table":return c.createElement(fwt,{key:"delete-table",disabled:r,variant:i});case"font":return"menu"===i?null:c.createElement(ywt,{key:"font",disabled:r});case"increase-indent":return c.createElement(awt,{key:"increase-indent",disabled:r,variant:i});case"insert-column":return c.createElement(xwt,{key:"insert-column",disabled:r,variant:i});case"image":return c.createElement(Swt,{key:"image",disabled:r,variant:i,collection:t,field:n});case"file-link":return c.createElement(Ewt,{key:"file-link",disabled:r,variant:i,collection:t,field:n});case"insert-row":return c.createElement(Twt,{key:"insert-row",disabled:r,variant:i});case"insert-table":return c.createElement(Qwt,{key:"insert-table",disabled:r,variant:i});case"italic":return c.createElement(Awt,{key:"italic",disabled:r,variant:i});case"ordered-list":return c.createElement(zwt,{key:"ordered-list",disabled:r,variant:i});case"shortcode":return"menu"===i?null:c.createElement(Lwt,{key:"shortcode",disabled:r});case"strikethrough":return c.createElement(Uwt,{key:"strikethrough",disabled:r,variant:i});case"unordered-list":return c.createElement(qwt,{key:"unordered-list",disabled:r,variant:i});default:return null}}const Zwt=UD("WidgetMarkdown_BalloonToolbar",["root","popper","content"]),Gwt=[],Hwt=[pbt,Ebt,Tbt,gbt,dbt,_bt],Kwt=[pbt,Ebt,Tbt,gbt,Sbt,ybt,kbt,Obt,bbt,_bt,xbt,fbt],Jwt=[pbt,Ebt,Tbt,gbt,Sbt,ybt,kbt,Obt,bbt,_bt],ekt=({useMdx:e,containerRef:t,collection:n,field:r,disabled:i})=>{var o,a,s,l,u;const d=w5e(),f=Mbt(),h=Ztt(),[p,m]=(0,c.useState)(!1),g=pz(dI),v=(0,c.useCallback)((()=>{m(!0)}),[]),O=(0,c.useCallback)((()=>{m(!1)}),[]),y=(0,c.useRef)(null),[b,w]=(0,c.useState)(null),k=$ut();(0,c.useEffect)((()=>{0===k.x&&0===k.y||w(k)}),[k.x,k.y]);const[x,_]=(0,c.useMemo)((()=>f?[pot(f),sot(f)]:[void 0,void 0,void 0]),[f,h]),S=Z1e(f,null!==(o=null===(a=f.selection)||void 0===a?void 0:a.anchor.path)&&void 0!==o?o:[]),P=(0,c.useMemo)((()=>Boolean(h&&m2e(f,{match:{type:Wgt},at:null==h?void 0:h.anchor}))),[f,h]),[E,C]=(0,c.useState)([]);(0,c.useEffect)((()=>{var e,t,o,a,s,l,u,c;g||(d||p?h&&m2e(f,{match:{type:xct},at:null==h?void 0:h.anchor})?C([]):_&&x?C(Vwt(P?null!==(e=null===(t=r.toolbar_buttons)||void 0===t?void 0:t.table_selection)&&void 0!==e?e:Jwt:null!==(o=null===(a=r.toolbar_buttons)||void 0===a?void 0:a.selection)&&void 0!==o?o:Hwt,n,r,i)):S&&(f1e(S)&&w1e(f,S)||x1e(S)&&We(S.text))?C(Vwt(P?null!==(s=null===(l=r.toolbar_buttons)||void 0===l?void 0:l.table_empty)&&void 0!==s?s:Kwt:null!==(u=null===(c=r.toolbar_buttons)||void 0===c?void 0:c.empty)&&void 0!==u?u:Gwt,n,r,i)):C([]):C([]))}),[p,d,h,f,_,x,S,e,P,t,n,r,g]);const T=(0,c.useMemo)((()=>Boolean(b&&(E.length>0||g))),[E.length,g,b]);return c.createElement(c.Fragment,null,c.createElement("div",{ref:y,className:Zwt.root,style:{top:`${null!==(s=null==b?void 0:b.y)&&void 0!==s?s:0}px`,left:`${null!==(l=null==b?void 0:b.x)&&void 0!==l?l:0}px`,width:1,height:1}}),b&&T&&y.current&&E.length>0?c.createElement(xY,{open:!0,placement:"top",anchorEl:null!==(u=y.current)&&void 0!==u?u:null,onFocus:v,onBlur:O,tabIndex:0,slots:{root:"div"},className:Zwt.popper,keepMounted:!0},c.createElement("div",{"data-testid":"balloon-toolbar",className:Zwt.content},E)):null)},tkt=B$e((0,lM.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function nkt(e){return cB("MuiAvatar",e)}dB("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const rkt=Pq("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Cq((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]})))),ikt=Pq("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),okt=Pq(tkt,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),akt=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:o,component:a="div",slots:s={},slotProps:l={},imgProps:u,sizes:d,src:f,srcSet:h,variant:p="circular",...m}=n;let g=null;const v={...n,component:a,variant:p},O=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=c.useState(!1);return c.useEffect((()=>{if(!n&&!r)return;o(!1);let i=!0;const a=new Image;return a.onload=()=>{i&&o("loaded")},a.onerror=()=>{i&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{i=!1}}),[e,t,n,r]),i}({...u,..."function"==typeof l.img?l.img(v):l.img,src:f,srcSet:h}),y=f||h,b=y&&"error"!==O;v.colorDefault=!b,delete v.ownerState;const w=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return qN({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},nkt,t)})(v),[k,x]=zq("img",{className:w.img,elementType:ikt,externalForwardedProps:{slots:s,slotProps:{img:{...u,...l.img}}},additionalProps:{alt:r,src:f,srcSet:h,sizes:d},ownerState:v});return g=b?(0,lM.jsx)(k,{...x}):i||0===i?i:y&&r?r[0]:(0,lM.jsx)(okt,{ownerState:v,className:w.fallback}),(0,lM.jsx)(rkt,{as:a,className:XN(w.root,o),ref:t,...m,ownerState:v,children:g})})),skt=akt,lkt=UD("WidgetMarkdown_ColorButton",["root","avatar","is-bright-color","check-icon"]),ukt=({name:e,value:t,isBrightColor:n,isSelected:r,updateColor:i})=>{const o=(0,c.useCallback)((()=>{i(t)}),[i,t]);return c.createElement(B3,{title:e,disableInteractive:!0},c.createElement(zTe,{onClick:o,sx:{p:0},className:qD(lkt.root,n&&lkt["is-bright-color"]),"aria-label":t},c.createElement(skt,{alt:e,className:lkt.avatar,sx:{background:t}},r?c.createElement(TH,{className:lkt["check-icon"]}):c.createElement(c.Fragment,null," "))))},ckt=({value:e="#000000",onChange:t})=>{const n=(0,c.useRef)(null);return c.createElement("div",null,c.createElement(O$e,{onClick:function(){var e;null===(e=n.current)||void 0===e||e.click()},fullWidth:!0},"CUSTOM"),c.createElement("input",{ref:n,type:"color",onChange:function(e){null==t||t(e)},value:e}))},dkt=({color:e,colors:t,updateColor:n})=>c.createElement("div",null,t.map((({name:t,value:r,isBrightColor:i})=>c.createElement(ukt,{key:null!=t?t:r,name:t,value:r,isBrightColor:i,isSelected:e===r,updateColor:n})))),fkt=({color:e,colors:t,customColors:n,updateColor:r,updateCustomColor:i})=>{const[o,a]=(0,c.useState)(),s=(0,c.useCallback)(O0()(i,100),[i]),[l,u]=(0,c.useState)(e||"#000000");(0,c.useEffect)((()=>{!e||n.some((t=>t.value===e))||t.some((t=>t.value===e))||a(e)}),[e,t,n]);const d=(0,c.useMemo)((()=>o?[...n,{name:"",value:o,isBrightColor:!1}]:n),[o,n]),f=(0,c.useCallback)((e=>{u(e.target.value),s(e.target.value)}),[s]);return c.createElement("div",null,c.createElement(ckt,{value:l,onChange:f}),c.createElement(dkt,{color:e,colors:d,updateColor:r}))},hkt=({color:e,colors:t,customColors:n,updateColor:r,updateCustomColor:i,clearColor:o})=>c.createElement("div",null,c.createElement(fkt,{color:e,colors:t,customColors:n,updateColor:r,updateCustomColor:i}),c.createElement("div",null),c.createElement(dkt,{color:e,colors:t,updateColor:r}),c.createElement(O$e,{onClick:o,disabled:!e},"Clear")),pkt=(0,c.memo)(hkt,((e,t)=>e.color===t.color&&e.colors===t.colors&&e.customColors===t.customColors&&e.open===t.open)),mkt=pkt;var gkt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}))}));gkt.displayName="DeleteForever";const vkt=UD("WidgetMarkdown_MediaPopover",["root","content","icon","divider"]),Okt=({anchorEl:e,url:t,text:n,forImage:r=!1,collection:i,field:o,onMediaToggle:a,onMediaChange:s,onRemove:l,onFocus:u,onBlur:d})=>{XD("mediaLibraryClose",(()=>{null==a||a(!1)}));const f=(0,c.useMemo)((()=>{var e;return null===(e=o.choose_url)||void 0===e||e}),[o.choose_url]),h=(0,c.useCallback)((()=>{null==u||u()}),[u]),p=(0,c.useCallback)((()=>{null==d||d()}),[d]),m=(0,c.useCallback)((e=>{s(e),null==a||a(!1)}),[s,a]),g=$z({path:t,alt:n},{collection:i,field:o,forImage:r,insertOptions:{chooseUrl:f,showAlt:!0}},m),v=(0,c.useCallback)((e=>{e.stopPropagation()}),[]),O=Boolean(e),y=O?"edit-popover":void 0;return c.createElement(xY,{id:y,open:O,placement:"top",anchorEl:e,onFocus:h,onBlur:p,disablePortal:!0,tabIndex:0,slots:{root:"div"},className:vkt.root},c.createElement("div",{key:"edit-content",contentEditable:!1,className:vkt.content},c.createElement(GD,{onClick:g,color:"secondary",variant:"text",size:"small"},r?"Edit Image":"Edit Link"),c.createElement("div",{className:vkt.divider}),r?null:c.createElement(GD,{href:t,color:"secondary",variant:"text",size:"small",onClick:v},c.createElement(IN,{className:vkt.icon,title:"Open In New Tab"})),c.createElement(GD,{onClick:l,color:"secondary",variant:"text",size:"small"},c.createElement(gkt,{className:vkt.icon,title:"Delete"}))))},ykt=UD("WidgetMarkdown_Blockquote",["root"]),bkt=({children:e})=>c.createElement("blockquote",{className:ykt.root},e),wkt=(()=>[(0,xme.Eu)(),(0,xme.HQ)(),(0,xme.AE)(),zme(),(0,Hfe.mi)(),(0,xme.Uw)(),(0,xme.qr)(),kme.yy.allowMultipleSelections.of(!0),(0,Hfe.nY)(),(0,Hfe.nF)(Hfe.R_,{fallback:!0}),(0,Hfe.n$)(),(0,sOe.vQ)(),(0,sOe.ys)(),(0,xme.Zs)(),(0,xme.S2)(),(0,xme.ZO)(),yve(),xme.$f.of([...sOe.GA,...eve,...Jve,...tge,...Hfe.e7,...sOe.B1,...yOe])])(),kkt=({id:e,lang:t,code:n})=>{const{window:r}=(0,K3.xQ)(),i=f4(),o=(0,c.useMemo)((()=>{var e;if(!t)return null;const n=null===(e=bye.find((e=>e.identifiers.includes(t))))||void 0===e?void 0:e.codemirror_mode;return n?bme(n):null}),[t]),a=(0,c.useMemo)((()=>{const e=[wkt,xme.$f.of([tve])];return o?[...e,o]:e}),[o]),s=(0,c.useCallback)((t=>{null==r||r.parent.postMessage({message:`code_block_${e}_onChange`,value:t})}),[e,r]),l=(0,c.useCallback)((()=>{null==r||r.parent.postMessage({message:`code_block_${e}_onFocus`})}),[e,null==r?void 0:r.parent]),u=(0,c.useCallback)((()=>{null==r||r.parent.postMessage({message:`code_block_${e}_onBlur`})}),[e,null==r?void 0:r.parent]),d=(0,c.useCallback)((t=>{"Backspace"===t.key&&We(n)&&(null==r||r.parent.postMessage({message:`code_block_${e}_delete`}))}),[n,e,null==r?void 0:r.parent]);return c.createElement(BOe,{value:n,height:"auto",onFocus:l,onBlur:u,onChange:s,onKeyDown:d,extensions:a,theme:i.codemirror.theme})};function xkt(){return xkt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t;const{attributes:n,nodeProps:r,element:i,editor:o,children:a}=e,s=Wz(),l="lang"in i?i.lang:"",u="code"in i&&null!==(t=i.code)&&void 0!==t?t:"",d=(0,c.useCallback)((e=>{const t=A5e(o,i);t&&s2e(o,{code:e},{at:t})}),[o,i]),f=(0,c.useCallback)((()=>{const e=A5e(o,i);e&&E1e(o,{at:e}),j5e(o)}),[o,i]);XD("message",(0,c.useCallback)((e=>{switch(e.data.message){case`code_block_${s}_onChange`:d(e.data.value);break;case`code_block_${s}_delete`:f()}}),[d,f,s]));const h=(0,c.useMemo)((()=>'\n \n \n \n \n \n \n
\n \n '),[]),[p,m]=(0,c.useState)(24),g=(0,c.useRef)(),v=(0,c.useCallback)((e=>{var t,n,r,i;const o=null!==(t=null===(n=e.current)||void 0===n||null===(r=n.contentDocument)||void 0===r||null===(i=r.body)||void 0===i?void 0:i.scrollHeight)&&void 0!==t?t:0;0!==o&&m(o)}),[]);(0,c.useEffect)((()=>v(g)),[v,g,u]),(0,c.useEffect)((()=>{setTimeout((()=>v(g)),500)}),[]);const O=pz(wG);return c.createElement(c.Fragment,null,c.createElement("div",xkt({key:O},n,r,{contentEditable:!1,className:_kt.root}),c.createElement("input",{id:s,value:null!=l?l:"",onChange:e=>{const t=e.target.value,n=A5e(o,i);n&&s2e(o,{lang:t},{at:n})},className:_kt["language-input"]}),c.createElement("div",null,c.createElement(K3.ZP,{key:`code-frame-${s}`,id:s,ref:g,style:{border:"none",width:"100%",height:p,overflow:"hidden"},initialContent:h},c.createElement(kkt,{id:s,code:u,lang:l}))),c.createElement("div",null,a)))};function Pkt(){return Pkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h1",Pkt({},e,n,{className:Ekt.root}),t);function Tkt(){return Tkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h2",Tkt({},e,n,{className:$kt.root}),t);function Rkt(){return Rkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h3",Rkt({},e,n,{className:Akt.root}),t);function Dkt(){return Dkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h4",Dkt({},e,n,{className:Mkt.root}),t);function zkt(){return zkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h5",zkt({},e,n,{className:Wkt.root}),t);function Lkt(){return Lkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h6",Lkt({},e,n,{className:Fkt.root}),t);function Xkt(){return Xkt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{attributes:t,children:n,nodeProps:r}=e;return c.createElement("div",Xkt({},t,r),c.createElement("hr",Xkt({contentEditable:!1},r)),n)},Bkt=({collection:e,entry:t,field:n})=>({element:r,editor:i,children:o})=>{const{url:a,alt:s}=(0,c.useMemo)((()=>r),[r]),[l,u]=(0,c.useState)(!1),d=kz(l,100),[f,h]=(0,c.useState)(!1),p=(0,c.useRef)(null),[m,g]=(0,c.useState)(null),v=w5e(),O=kz(v,100),y=(0,c.useCallback)((()=>{l||f||g(null)}),[f,l]),b=(0,c.useCallback)((()=>{u(!0)}),[]),w=(0,c.useCallback)((()=>{u(!1)}),[]),k=(0,c.useCallback)((()=>{h((e=>!e))}),[]),x=(0,c.useCallback)(((e,t)=>{const n=A5e(i,r);n&&s2e(i,{[t]:e},{at:n})}),[i,r]),_=(0,c.useCallback)((()=>{const e=A5e(i,r);let t=i.prevSelection;if(e){const n=[...e,0];t={anchor:{path:n,offset:0},focus:{path:n,offset:0}}}l2e(i,t),g(p.current)}),[i,r]),S=(0,c.useCallback)((()=>{g(null)}),[]),P=Sz(a,e,n,t),E=(0,c.useCallback)((e=>{var t;x(e.path,"url"),x(null!==(t=e.alt)&&void 0!==t?t:"","alt")}),[x]),C=(0,c.useCallback)((()=>{const e=A5e(i,r);E1e(i,{at:e})}),[i,r]),T=Ztt();return(0,c.useEffect)((()=>{v||O||f||l||d||S()}),[O,d,S,v,f,l]),(0,c.useEffect)((()=>{if(!v||!T||f||l)return;const e=Z1e(i,T.anchor.path),t="children"in r&&r.children.length>0?r.children[0]:void 0;e&&(e===r||e===t?_():m&&S())}),[S,v,r,T,i,_,f,l,m]),c.createElement("span",{onBlur:y},c.createElement("img",{ref:p,src:P,alt:We(s)?void 0:s,draggable:!1,onClick:_}),c.createElement(Okt,{anchorEl:m,collection:e,field:n,url:a,text:s,onMediaChange:E,onRemove:C,forImage:!0,onFocus:b,onBlur:w,onMediaToggle:k}),o)},Vkt=["ref"];function Ykt(){return Ykt=Object.assign?Object.assign.bind():function(e){for(var t=1;tn=>{let{attributes:{ref:r},children:i,nodeProps:o,element:a,editor:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;ra),[a]),h=(0,c.useMemo)((()=>z1e(s,d)),[s,d]),[p,m]=(0,c.useState)(!1),g=kz(p,100),[v,O]=(0,c.useState)(!1),[y,b]=(0,c.useState)(null),w=w5e(),k=kz(w,100),x=(0,c.useCallback)((()=>{b(u.current)}),[]),_=(0,c.useCallback)((()=>{p||v||b(null)}),[v,p]),S=(0,c.useCallback)((()=>{m(!0)}),[]),P=(0,c.useCallback)((()=>{m(!1)}),[]),E=(0,c.useCallback)((()=>{O((e=>!e))}),[]),C=(0,c.useCallback)((e=>{b(e.currentTarget)}),[]),T=(0,c.useCallback)((()=>{s.selection&&(yct(s),j5e(s,s.selection))}),[s]),$=Ztt(),Q=(0,c.useCallback)(((e,t)=>{const n=A5e(s,a);n&&(s2e(s,Gkt(Gkt({},a),{},{url:e,children:[{text:t}]}),{at:n}),null!=t&&t.length&&t!==z1e(s,n)&&Oot(s,{at:n,nodes:{text:t},insertOptions:{select:!0}}))}),[s,a]),R=(0,c.useCallback)((e=>{var t;Q(e.path,null!==(t=e.alt)&&void 0!==t?t:"")}),[Q]),A=(0,c.useCallback)((()=>{b(null)}),[]);return(0,c.useEffect)((()=>{w||k||v||p||g||A()}),[k,g,A,w,v,p]),(0,c.useEffect)((()=>{w||k||v||p||g||A()}),[k,g,A,w,v,p]),(0,c.useEffect)((()=>{if(!w||!$||v||p)return;const e=Z1e(s,$.anchor.path),t="children"in a&&a.children.length>0?a.children[0]:void 0;e&&(e===a||e===t?x():y&&A())}),[A,w,a,$,s,x,v,p,y]),c.createElement("span",{onBlur:_},c.createElement("a",Ykt({ref:u},l,{href:f},o,{onClick:C,className:Kkt.root}),i),c.createElement(Okt,{anchorEl:y,collection:e,field:t,url:f,text:h,onMediaChange:R,onRemove:T,onFocus:S,onBlur:P,onMediaToggle:E}))},ext=({children:e})=>c.createElement("span",null,e),txt=UD("WidgetMarkdown_ListItem",["root","checked","checkbox"]),nxt=({children:e,editor:t,element:n})=>{const r=n.checked,i=(0,c.useCallback)((e=>{const r=e.target.checked,i=A5e(t,n);i&&s2e(t,{checked:r},{at:i})}),[t,n]);return c.createElement("li",{className:qD(txt.root,r&&txt.checked)},Ie(r)?c.createElement("input",{key:`checkbox-${r}`,type:"checkbox",checked:null!=r&&r,onChange:i,className:txt.checkbox}):null,e)},rxt=UD("WidgetMarkdown_OrderedList",["root"]),ixt=({children:e})=>c.createElement("ol",{className:rxt.root},e),oxt=UD("WidgetMarkdown_UnorderedList",["root"]),axt=({children:e})=>c.createElement("ul",{className:oxt.root},e),sxt=UD("WidgetMarkdown_Paragraph",["root"]),lxt=({children:e,element:{align:t}})=>c.createElement("p",{style:{textAlign:t},className:sxt.root},e);function uxt(){return uxt=Object.assign?Object.assign.bind():function(e){for(var t=1;t({element:t,editor:n,children:r})=>{const i=(0,c.useMemo)((()=>zE(t.shortcode)),[t.shortcode]),[o,a]=(0,c.useMemo)((()=>{if(!i)return[null,{}];const e=i.toProps?i.toProps(t.args):{};return[i.control,e]}),[i,t.args]),s=(0,c.useCallback)((e=>{if(!i||!i.toArgs)return;const r=A5e(n,t);r&&s2e(n,{args:i.toArgs(e)},{at:r})}),[i,n,t]);return c.createElement("span",{contentEditable:!1},o?c.createElement(o,uxt({controlProps:e,onChange:s},a)):null,r)},dxt=UD("WidgetMarkdown_Table",["root","header","body","row","header-cell","body-cell"]);function fxt(){return fxt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("td",fxt({},e,n,{className:dxt["body-cell"]}),c.createElement("div",null,t));function pxt(){return pxt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("th",pxt({},e,n,{className:dxt["header-cell"]}),c.createElement("div",null,t));function gxt(){return gxt=Object.assign?Object.assign.bind():function(e){for(var t=1;t((()=>{const e=H4e(),t=(0,c.useContext)(Y4e),n=Ytt(),[r,i]=Lgt().use.selectedCells();(0,c.useEffect)((()=>{t&&!e||i(null)}),[t,n,i,e]),(0,c.useEffect)((()=>{if(e)return;const t=lpt(n,{format:"cell"});if(t.length>1){const e=t.map((e=>e[0]));JSON.stringify(e)!==JSON.stringify(r)&&i(e)}else r&&i(null)}),[n,null==n?void 0:n.selection,e,r,i])})(),c.createElement("table",gxt({},e,n,{className:dxt.root}),t?c.createElement(c.Fragment,null,c.createElement("thead",{key:"thead",className:dxt.header},t[0]),c.createElement("tbody",{key:"tbody",className:dxt.body},t.slice(1))):null));function Oxt(){return Oxt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("tr",Oxt({},e,n,{className:dxt.row}),t),bxt=UD("WidgetMarkdown_Toolbar",["root"]),wxt=[pbt,Ebt,Tbt,gbt,dbt,$bt,Cbt,vbt,wbt,fbt,{label:"Insert",groups:[{items:[hbt,mbt]},{items:[Pbt]},{items:[xbt,_bt]}]}],kxt=({collection:e,field:t,disabled:n})=>{var r,i;const o=function(e,t,n,r){return(0,c.useMemo)((()=>Vwt(e,t,n,r)),[t,r,n,e])}(null!==(r=null===(i=t.toolbar_buttons)||void 0===i?void 0:i.main)&&void 0!==r?r:wxt,e,t,n);return c.createElement("div",{className:bxt.root},o)};function xxt(){return xxt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("code",xxt({},e,n,{className:_xt.root}),t),Pxt={spellCheck:!1,autoFocus:!1,readOnly:!1},Ext={inject:{props:{validTypes:[plt,alt,slt,llt,ult,clt,dlt]}}},Cxt=e=>Vct(e),Txt=(e,t)=>{if(e.selection){const n=y1e(e,e.selection);if(!n)return;const[r]=n;!f1e(r)||$st(e,r,Vst)||$st(e,r,Yst)||t()}},$xt=(e,t)=>{Txt(e,(()=>Kct(e,{type:t})))},Qxt=(e,t)=>{Txt(e,(()=>e.insertText(t)))},Rxt=[{mode:"block",type:alt,match:"# ",preFormat:Cxt},{mode:"block",type:slt,match:"## ",preFormat:Cxt},{mode:"block",type:llt,match:"### ",preFormat:Cxt},{mode:"block",type:ult,match:"#### ",preFormat:Cxt},{mode:"block",type:clt,match:"##### ",preFormat:Cxt},{mode:"block",type:dlt,match:"###### ",preFormat:Cxt},{mode:"block",type:Xst,match:"> ",preFormat:Cxt},{mode:"block",type:Vst,match:"```",triggerAtBlockStart:!1,preFormat:Cxt,format:e=>{ilt(e,{defaultType:H7e(e,L7e),insertNodesOptions:{select:!0}})}},{mode:"block",type:Xut,match:["---","—-","___ "],format:e=>{s2e(e,{type:Xut}),i2e(e,{type:L7e,children:[{text:""}]})}}],Axt=[{mode:"block",type:udt,match:["* ","- "],preFormat:Cxt,format:e=>$xt(e,sdt)},{mode:"block",type:udt,match:["1. ","1) "],preFormat:Cxt,format:e=>$xt(e,ldt)},{mode:"block",match:["[ ] "],format:e=>{var t,n;const r=[...null!==(t=null===(n=e.selection)||void 0===n?void 0:n.anchor.path)&&void 0!==t?t:[]].slice(0,-2);s2e(e,{type:udt,checked:!1},{at:r})},query:e=>{var t,n,r,i;const o=Z1e(e,null!==(t=null===(n=e.selection)||void 0===n?void 0:n.anchor.path)&&void 0!==t?t:[]);if(!o||!("text"in o)||!o.text.startsWith("[ ]"))return!1;const a=[...null!==(r=null===(i=e.selection)||void 0===i?void 0:i.anchor.path)&&void 0!==r?r:[]].slice(0,-2),s=Z1e(e,a);return Boolean(s&&"type"in s&&s.type===udt)}},{mode:"block",match:["[x] "],format:e=>{var t,n;const r=[...null!==(t=null===(n=e.selection)||void 0===n?void 0:n.anchor.path)&&void 0!==t?t:[]].slice(0,-2);s2e(e,{type:udt,checked:!0},{at:r})},query:e=>{var t,n,r,i;const o=Z1e(e,null!==(t=null===(n=e.selection)||void 0===n?void 0:n.anchor.path)&&void 0!==t?t:[]);if(!o||!("text"in o)||!o.text.startsWith("[x]"))return!1;const a=[...null!==(r=null===(i=e.selection)||void 0===i?void 0:i.anchor.path)&&void 0!==r?r:[]].slice(0,-2),s=Z1e(e,a);return Boolean(s&&"type"in s&&s.type===udt)}}],jxt=Axt,Dxt=[{mode:"mark",type:[glt,blt],match:"***"},{mode:"mark",type:[Clt,blt],match:"__*"},{mode:"mark",type:[Clt,glt],match:"__**"},{mode:"mark",type:[Clt,glt,blt],match:"___***"},{mode:"mark",type:glt,match:"**"},{mode:"mark",type:Clt,match:"__"},{mode:"mark",type:blt,match:"*"},{mode:"mark",type:blt,match:"_"},{mode:"mark",type:klt,match:"~~"},{mode:"mark",type:Plt,match:"^"},{mode:"mark",type:_lt,match:"~"},{mode:"mark",type:Uut,match:"=="},{mode:"mark",type:Uut,match:"≡"},{mode:"mark",type:Olt,match:"`"}],Mxt=[...Rxt,...jxt,...Dxt,{mode:"text",match:'"',format:["“","”"]},{mode:"text",match:"'",format:["‘","’"]},{mode:"text",match:"--",format:"—"},{mode:"text",match:"...",format:"…"},{mode:"text",match:">>",format:"»"},{mode:"text",match:"<<",format:"«"},{mode:"text",match:["(tm)","(TM)"],format:"™"},{mode:"text",match:["(r)","(R)"],format:"®"},{mode:"text",match:["(c)","(C)"],format:"©"},{mode:"text",match:"™",format:"™"},{mode:"text",match:"®",format:"®"},{mode:"text",match:"©",format:"©"},{mode:"text",match:"§",format:"§"},{mode:"text",match:"->",format:"→"},{mode:"text",match:"<-",format:"←"},{mode:"text",match:"=>",format:"⇒"},{mode:"text",match:["<=","≤="],format:"⇐"},...Ust],Ixt={options:{rules:Mxt,enableUndoOnDelete:!0}},zxt={rules:[{validNodeName:"PRE"},{validNodeName:"P",validStyle:{fontFamily:"Consolas"}}],getNode:e=>{var t;const n=null!==(t=e.textContent)&&void 0!==t?t:"";return{type:Vst,code:n,children:[{text:""}]}}},Wxt=zxt,Nxt=E7e({key:Vst,isElement:!0,deserializeHtml:Wxt,options:{hotkey:["mod+opt+8","mod+shift+8"]}});function Lxt(){return Lxt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=Ytt(),i=(0,c.useRef)(new WeakMap),[o,a]=(0,c.useState)({}),s=(0,c.useCallback)((()=>{if(null==e||!e.current)return;if(!t)return;let n=0,s=0;if(e){const t=e.current.getBoundingClientRect();n=t.x,s=t.y}let l=Object.keys(o).length!==Object.keys(t).length;const u=({cursor:e})=>{const t=e.selection;if(!t)return Fxt;const o=i.current.get(t);if(o)return o;const a=((e,{range:t,xOffset:n,yOffset:r})=>{const[i,o]=AJe.edges(t),a=((e,t)=>{try{return m4e.toDOMRange(e,t)}catch(e){}})(e,t);if(!a)return[];const s=[],l=O1e(e,{at:t,match:x1e});for(const[t,u]of l){const l=D5e(e,t);if(!l||!l.parentElement)return[];const c=kJe.equals(u,i.path),d=kJe.equals(u,o.path);let f=null;if(c||d){const e=document.createRange();e.selectNode(l),c&&e.setStart(a.startContainer,a.startOffset),d&&e.setEnd(a.endContainer,a.endOffset),f=e.getClientRects()}else f=l.getClientRects();for(let e=0;e[e,u({cursor:t})])));l&&a(c)}),[e,t,r,o]);R5e((()=>{s()}));const l=(0,c.useMemo)((()=>(({cursors:e,selectionRects:t})=>e?Object.entries(e).map((([e,n])=>{var r,i;const o=null!==(r=null==n?void 0:n.selection)&&void 0!==r?r:null,a=null!==(i=t[e])&&void 0!==i?i:Fxt,s=o?((e,t)=>{const n=t&&AJe.isCollapsed(t),r=t&&AJe.isBackward(t),i=e[r?0:e.length-1];return i?{height:i.height,top:i.top,left:i.left+(r||n?0:i.width)}:null})(a,o):null;return{...n,selection:o,caretPosition:s,selectionRects:a}})):[])({selectionRects:o,cursors:t})),[t,o]),{refresh:u}=(({containerRef:e,refreshOnResize:t,selectionRectCache:n})=>{const r=(()=>{const[,e]=(0,c.useState)(0),t=(0,c.useRef)(null),n=(0,c.useCallback)(((n=!1)=>{t.current&&!n||(n?(t.current&&(cancelAnimationFrame(t.current),t.current=null),e((e=>e+1))):t.current=requestAnimationFrame((()=>{e((e=>e+1)),t.current=null})))}),[]);return(0,c.useEffect)((()=>{t.current&&(cancelAnimationFrame(t.current),t.current=null)})),(0,c.useEffect)((()=>()=>{t.current&&cancelAnimationFrame(t.current)}),[]),n})(),i=(0,c.useCallback)(((e=!1)=>{n.current=new WeakMap,r(e)}),[r,n]);return(0,c.useEffect)((()=>{if(!t||null==e||!e.current)return;const n=new ResizeObserver((()=>i()));return n.observe(e.current),()=>n.disconnect()}),[e,i,t]),{refresh:i}})({containerRef:e,selectionRectCache:i,refreshOnResize:n});return{refresh:u,cursors:l}};function Xxt({classNames:e,onRenderCursor:t,onRenderSelectionRect:n,onRenderCaret:r,...i}){const{disableCaret:o,disableSelection:a}=i,{cursors:s}=Uxt(i),l={classNames:e,onRenderSelectionRect:n,onRenderCaret:r,disableCaret:o,disableSelection:a};return t?c.createElement(c.Fragment,null,s.map((e=>c.createElement(t,Lxt({key:e.key},l,e))))):null}function qxt(e){return c7e().isRendered()?c.createElement(Xxt,e):null}const Bxt=DHe("cursor")({cursors:{}}),Vxt=["cursors"];function Yxt(){return Yxt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{cursors:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rt=>{if(e.isDragging)return;const n=((e,t)=>{try{return m4e.findEventRange(e,t)}catch(e){}})(e,t);n&&Bxt.set.cursors({drag:{key:"drag",data:{style:{backgroundColor:"#fc00ff",backgroundImage:"linear-gradient(0deg, #fc00ff, #00dbde)",width:3}},selection:n}})},onDragLeave:()=>()=>{Bxt.set.cursors({})},onDragEnd:()=>()=>{Bxt.set.cursors({})},onDrop:()=>()=>{Bxt.set.cursors({})}}},e_t={one:{key:"one",data:{style:{backgroundColor:"red"}},selection:{anchor:{path:[0,0],offset:5},focus:{path:[0,0],offset:12}}},two:{key:"two",data:{style:{backgroundColor:"red"}},selection:{anchor:{path:[0,0],offset:18},focus:{path:[0,0],offset:18}}}},t_t={options:{rules:[{hotkey:"mod+enter"},{hotkey:"mod+shift+enter",before:!0},{hotkey:"enter",query:{start:!0,end:!0,allow:flt}}]}};function n_t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r_t(e){for(var t=1;t{const t=H7e(e,c_t),n=H7e(e,d_t);if(!e.selection)return!1;const r=g1e(e,{match:{type:n}});if(!r)return!1;const[,i]=r,o=y1e(e,i);if(!o)return!1;const[a,s]=o;if(a.type!==t)return!1;let l=!1;return k1e(e,(()=>{AJe.isCollapsed(e.selection)||S1e(e);const r=B1e(e,e.selection.focus,i),o=uot(e),u=kJe.next(i),c=kJe.next(s);if(r)return mot(e,{type:t,checked:a.checked,children:[{type:n,children:[{text:""}]}]},{at:s}),void(l=!0);if(o){const r=W1e(e)||{};mot(e,{type:t,checked:a.checked,children:[{type:n,children:[r_t({text:""},r)]}]},{at:c}),C1e(e,c)}else k1e(e,(()=>{u2e(e),f2e(e,{type:t,checked:a.checked,children:[]},{at:u}),P1e(e,{at:u,to:c}),C1e(e,c),r2e(e,{edge:"start"})}));a.children.length>1&&P1e(e,{at:u,to:c.concat(1)}),l=!0})),l},a_t=e=>{if(!e.selection)return;const t=zct(e,{});let n;if(t){const{list:r,listItem:i}=t;if(lot(e)&&(n=Yct(e,{list:r,listItem:i}),n))return!0}return!!Cct(e,Xtt({options:{rules:[{types:[H7e(e,udt)],defaultType:H7e(e,L7e),predicate:()=>!n&&lot(e),onReset:e=>Vct(e)}]}}))(Ect)||(!(n||!o_t(e))||void 0)},s_t=(e,{options:{validLiChildrenTypes:t}})=>{const{insertBreak:n,deleteBackward:r,deleteForward:i,deleteFragment:o}=e;return e.insertBreak=()=>{a_t(e)||n()},e.deleteBackward=t=>{edt(e,t)||r(t)},e.deleteForward=t=>{tdt(e,i,t)||i(t)},e.deleteFragment=()=>{rdt(e)||o()},e.insertFragment=idt(e),e.normalizeNode=adt(e,{validLiChildrenTypes:t}),e},l_t="ul",u_t="ol",c_t="li",d_t="lic",f_t=E7e({key:"list",plugins:[{key:l_t,isElement:!0,handlers:{onKeyDown:Jct},withOverrides:s_t,deserializeHtml:{rules:[{validNodeName:"UL"}]}},{key:u_t,isElement:!0,handlers:{onKeyDown:Jct},deserializeHtml:{rules:[{validNodeName:"OL"}]}},{key:c_t,isElement:!0,deserializeHtml:{rules:[{validNodeName:"LI"}]},then:(e,{type:t})=>({inject:{pluginsByKey:{[Pet]:{editor:{insertData:{preInsert:()=>m2e(e,{match:{type:t}})}}}}}})},{key:d_t,isElement:!0}]});function h_t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p_t(e){for(var t=1;t(e=ppt(e),e=mpt(e),e=Agt(e,t),e=jgt(e),Dgt(e)),w_t=E7e({key:Mgt,isElement:!0,handlers:{onKeyDown:fpt},deserializeHtml:{rules:[{validNodeName:"TABLE"}]},options:{insertColumn:(e,{fromCell:t})=>{upt(e,{fromCell:t,disableSelect:!0})},insertRow:(e,{fromRow:t})=>{cpt(e,{fromRow:t,disableSelect:!0})}},withOverrides:b_t,plugins:[{key:zgt,isElement:!0,deserializeHtml:{rules:[{validNodeName:"TR"}]}},{key:Wgt,isElement:!0,deserializeHtml:{attributeNames:["rowspan","colspan"],rules:[{validNodeName:"TD"}]},props:({element:e})=>{var t,n;return{nodeProps:{colSpan:null==e||null===(t=e.attributes)||void 0===t?void 0:t.colspan,rowSpan:null==e||null===(n=e.attributes)||void 0===n?void 0:n.rowspan}}}},{key:Igt,isElement:!0,deserializeHtml:{attributeNames:["rowspan","colspan"],rules:[{validNodeName:"TH"}]},props:({element:e})=>{var t,n;return{nodeProps:{colSpan:null==e||null===(t=e.attributes)||void 0===t?void 0:t.colspan,rowSpan:null==e||null===(n=e.attributes)||void 0===n?void 0:n.rowspan}}}}]}),k_t={options:{type:plt}};function x_t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function __t(e){for(var t=1;t{const u=LD(),d=(0,c.useRef)(null),f=(0,c.useRef)(null),{disabled:h}=o,p=(0,c.useMemo)((()=>__t(__t({},{[alt]:Ckt,[slt]:Qkt,[llt]:jkt,[ult]:Ikt,[clt]:Nkt,[dlt]:Ukt,[plt]:lxt,[Mgt]:vxt,[zgt]:yxt,[Igt]:mxt,[Wgt]:hxt,[Xst]:bkt,[Vst]:Skt,[xct]:Jkt({collection:t,field:r}),[hdt]:Bkt({collection:t,entry:n,field:r}),[ldt]:ixt,[sdt]:axt,[udt]:nxt,[cdt]:ext,[Qbt]:cxt({controlProps:o}),[glt]:_st(Pot,{as:"strong"}),[blt]:_st(Pot,{as:"em"}),[klt]:_st(Pot,{as:"s"}),[Olt]:Sxt}),{},i?{[_lt]:_st(Pot,{as:"sub"}),[Plt]:_st(Pot,{as:"sup"}),[Clt]:_st(Pot,{as:"u"})}:{[Qbt]:cxt({controlProps:o})})),[t,o,n,r,i]),m=(0,c.useMemo)((()=>{const e=[mlt(),qst(),Lct(),hlt(),pdt(),_ct(),f_t(),w_t(),Nxt(),vlt(),ylt(),wlt(),xlt(),Fst(Ixt),Tct(v_t),Alt(y_t),Rlt(t_t),mOt(k_t)];return Ubt(i?[...e,jut(),Rut(),Slt(),Elt(),Tlt(),Rst(Ext)]:[...e,O_t()],{components:p})}),[p,i]),g=Wz();return(0,c.useMemo)((()=>c.createElement("div",{className:bGe["rich-editor"]},c.createElement(Fyt,{backend:cbt},c.createElement(dnt,{id:g,key:"plate-provider",initialValue:e,plugins:m,onChange:a,readOnly:h},c.createElement("div",{key:"editor-outer_wrapper"},c.createElement(kxt,{key:"toolbar",useMdx:i,collection:t,field:r,disabled:h}),c.createElement("div",{key:"editor-wrapper",ref:d,className:bGe["plate-editor-wrapper"]},c.createElement(hnt,{key:"editor",id:g,editableProps:__t(__t({},Pxt),{},{placeholder:u("editor.editorWidgets.markdown.type"),onFocus:s,onBlur:l,className:bGe["plate-editor"]})},c.createElement("div",{key:"editor-inner-wrapper",ref:f},c.createElement(ekt,{key:"balloon-toolbar",useMdx:i,containerRef:f.current,collection:t,field:r,disabled:h}),c.createElement(Kxt,{containerRef:d}))))))))),[t,r,l,s,e,a,m])};function E_t(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function C_t(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function T_t(e){const t=this.resume(),n=e.estree,r=this.stack[this.stack.length-1];"mdxFlowExpression"===r.type||r.type,this.exit(e),r.value=t,n&&(r.data={estree:n})}function $_t(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Q_t(e){return"{"+(e.value||"")+"}"}const R_t=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],A_t={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function j_t(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function D_t(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function M_t(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||j_t(e)}const I_t=String.fromCharCode,z_t=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function W_t(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function N_t(e){return"&#x"+e.toString(16).toUpperCase()+";"}function L_t(e,t){return function(e,t){return e=e.replace(t.subset?function(e){const t=[];let n=-1;for(;++n`]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:N_t},t))}function F_t(e){return e&&"object"==typeof e?"position"in e||"type"in e?X_t(e.position):"start"in e||"end"in e?X_t(e):"line"in e||"column"in e?U_t(e):"":""}function U_t(e){return q_t(e&&e.line)+":"+q_t(e&&e.column)}function X_t(e){return U_t(e&&e.start)+"-"+U_t(e&&e.end)}function q_t(e){return e&&"number"==typeof e?e:1}const B_t=" ";function V_t(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:n,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:c,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:n,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:c,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:a,mdxJsxFlowTagNamePrimary:s,mdxJsxFlowTagNameMember:l,mdxJsxFlowTagNameLocal:u,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagExpressionAttributeValue:t,mdxJsxFlowTagAttributeNamePrimary:h,mdxJsxFlowTagAttributeNameLocal:p,mdxJsxFlowTagAttributeValueLiteral:m,mdxJsxFlowTagAttributeValueLiteralValue:t,mdxJsxFlowTagAttributeValueExpression:g,mdxJsxFlowTagAttributeValueExpressionValue:t,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:O,mdxJsxTextTagClosingMarker:a,mdxJsxTextTagNamePrimary:s,mdxJsxTextTagNameMember:l,mdxJsxTextTagNameLocal:u,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagExpressionAttributeValue:t,mdxJsxTextTagAttributeNamePrimary:h,mdxJsxTextTagAttributeNameLocal:p,mdxJsxTextTagAttributeValueLiteral:m,mdxJsxTextTagAttributeValueLiteralValue:t,mdxJsxTextTagAttributeValueExpression:g,mdxJsxTextTagAttributeValueExpressionValue:t,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:O}};function e(){this.buffer()}function t(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function n(e){const t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function r(e){if(0===this.data.mdxJsxTagStack.length)throw new gae("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function i(e){if(this.data.mdxJsxTag.close)throw new gae("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(e){if(this.data.mdxJsxTag.close)throw new gae("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function a(){this.data.mdxJsxTag.close=!0}function s(e){this.data.mdxJsxTag.name=this.sliceSerialize(e)}function l(e){this.data.mdxJsxTag.name+="."+this.sliceSerialize(e)}function u(e){this.data.mdxJsxTag.name+=":"+this.sliceSerialize(e)}function c(e){const t=this.data.mdxJsxTag;i.call(this,e),t.attributes.push({type:"mdxJsxAttribute",name:"",value:null})}function d(e){const t=this.data.mdxJsxTag;i.call(this,e),t.attributes.push({type:"mdxJsxExpressionAttribute",value:""}),this.buffer()}function f(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type;const r=e.estree;n.value=this.resume(),r&&(n.data={estree:r})}function h(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type,n.name=this.sliceSerialize(e)}function p(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type,n.name+=":"+this.sliceSerialize(e)}function m(){const e=this.data.mdxJsxTag;e.attributes[e.attributes.length-1].value=function(e,t={}){const n="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,r=[];let i,o,a=0,s=-1,l="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let u,c=(i?i.line:0)||1,d=(i?i.column:0)||1,f=p();for(a--;++a<=e.length;)if(10===u&&(d=(o?o[s]:0)||1),u=e.charCodeAt(a),38===u){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||n&&i===n){l+=I_t(u),d++;continue}const o=a+1;let s,c=o,v=o;if(35===i){v=++c;const t=e.charCodeAt(v);88===t||120===t?(s="hexadecimal",v=++c):s="decimal"}else s="named";let O="",y="",b="";const w="named"===s?M_t:"decimal"===s?j_t:D_t;for(v--;++v<=e.length;){const t=e.charCodeAt(v);if(!w(t))break;b+=I_t(t),"named"===s&&R_t.includes(b)&&(O=b,y=qse(b))}let k=59===e.charCodeAt(v);if(k){v++;const e="named"===s&&qse(b);e&&(O=b,y=e)}let x=1+v-o,_="";if(k||!1!==t.nonTerminated)if(b)if("named"===s){if(k&&!y)m(5,1);else if(O!==b&&(v=c+O.length,x=1+v-c,k=!1),!k){const n=O?1:3;if(t.attribute){const t=e.charCodeAt(v);61===t?(m(n,x),y=""):M_t(t)?y="":m(n,x)}else m(n,x)}_=y}else{k||m(2,x);let e=Number.parseInt(b,"hexadecimal"===s?16:10);if((h=e)>=55296&&h<=57343||h>1114111)m(7,x),_=I_t(65533);else if(e in A_t)m(6,x),_=A_t[e];else{let t="";W_t(e)&&m(6,x),e>65535&&(e-=65536,t+=I_t(e>>>10|55296),e=56320|1023&e),_=t+I_t(e)}}else"named"!==s&&m(4,x);if(_){g(),f=p(),a=v-1,d+=v-o+1,r.push(_);const n=p();n.offset++,t.reference&&t.reference.call(t.referenceContext,_,{start:f,end:n},e.slice(o-1,v)),f=n}else b=e.slice(o-1,v),l+=b,d+=b.length,a=v-1}else 10===u&&(c++,s++,d=0),Number.isNaN(u)?g():(l+=I_t(u),d++);var h;return r.join("");function p(){return{line:c,column:d,offset:a+((i?i.offset:0)||0)}}function m(e,n){let r;t.warning&&(r=p(),r.column+=n,r.offset+=n,t.warning.call(t.warningContext,z_t[e],r,e))}function g(){l&&(r.push(l),t.text&&t.text.call(t.textContext,l,{start:f,end:p()}),l="")}}(this.resume(),{nonTerminated:!1})}function g(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type;const r={type:"mdxJsxAttributeValueExpression",value:this.resume()},i=e.estree;i&&(r.data={estree:i}),n.value=r}function v(){this.data.mdxJsxTag.selfClosing=!0}function O(e){const t=this.data.mdxJsxTag,n=this.data.mdxJsxTagStack,r=n[n.length-1];if(t.close&&r.name!==t.name)throw new gae("Unexpected closing tag `"+w(t)+"`, expected corresponding closing tag for `"+w(r)+"` ("+F_t(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,y),t.selfClosing||t.close?this.exit(e,b):n.push(t)}function y(e,t){const n=this.data.mdxJsxTag,r=e?" before the end of `"+e.type+"`":"",i=e?{start:e.start,end:e.end}:void 0;throw new gae("Expected a closing tag for `"+w(n)+"` ("+F_t({start:t.start,end:t.end})+")"+r,i,"mdast-util-mdx-jsx:end-tag-mismatch")}function b(e,t){const n=this.data.mdxJsxTag;throw new gae("Expected the closing tag `"+w(n)+"` either after the end of `"+t.type+"` ("+F_t(t.end)+") or another opening tag after the start of `"+t.type+"` ("+F_t(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function w(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}function Y_t(e){const t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,o=t.printWidth||Number.POSITIVE_INFINITY,a='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return s.peek=H_t,{handlers:{mdxJsxFlowElement:s,mdxJsxTextElement:s},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function s(e,t,s,l){const u="mdxJsxFlowElement"===e.type,c=!(!e.name||e.children&&0!==e.children.length),d=G_t(Z_t(s)),f=s.createTracker(l),h=s.createTracker(l),p=[],m=(u?d:"")+"<"+(e.name||""),g=s.enter(e.type);if(f.move(m),h.move(m),e.attributes&&e.attributes.length>0){if(!e.name)throw new Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++tUue(e,a)?a:n;s=t+L_t(e,{subset:[t]})+t}o=t+(s?"=":"")+s}p.push(o)}}let v=!1;const O=p.join(" ");u&&(/\r?\n|\r/.test(O)||f.current().now.column+O.length+(c?i?2:3:1)>o)&&(v=!0);let y=f,b=m;if(v){y=h;let e=-1;for(;++e"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?b+=y.move(s.containerPhrasing(e,{...y.current(),before:">",after:"<"})):(y.shift(2),b+=y.move("\n"),b+=y.move(function(e,t,n){const r=t.indexStack,i=e.children,o=t.createTracker(n),a=G_t(Z_t(t)),s=[];let l=-1;for(r.push(-1);++l")),g(),b}}function Z_t(e){let t=0;for(const n of e.stack)"mdxJsxFlowElement"===n&&t++;return t}function G_t(e){return B_t.repeat(e)}function H_t(){return"<"}function K_t(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function J_t(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const r=e.estree;n.value=t,r&&(n.data={estree:r})}function eSt(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function tSt(e){return e.value||""}var nSt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],rSt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],iSt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",oSt={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},aSt="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",sSt={5:aSt,"5module":aSt+" export import",6:aSt+" const class extends export import super"},lSt=/^in(stanceof)?$/,uSt=new RegExp("["+iSt+"]"),cSt=new RegExp("["+iSt+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function dSt(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function fSt(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&uSt.test(String.fromCharCode(e)):!1!==t&&dSt(e,rSt)))}function hSt(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&cSt.test(String.fromCharCode(e)):!1!==t&&(dSt(e,rSt)||dSt(e,nSt)))))}var pSt=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function mSt(e,t){return new pSt(e,{beforeExpr:!0,binop:t})}var gSt={beforeExpr:!0},vSt={startsExpr:!0},OSt={};function ySt(e,t){return void 0===t&&(t={}),t.keyword=e,OSt[e]=new pSt(e,t)}var bSt={num:new pSt("num",vSt),regexp:new pSt("regexp",vSt),string:new pSt("string",vSt),name:new pSt("name",vSt),privateId:new pSt("privateId",vSt),eof:new pSt("eof"),bracketL:new pSt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new pSt("]"),braceL:new pSt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new pSt("}"),parenL:new pSt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new pSt(")"),comma:new pSt(",",gSt),semi:new pSt(";",gSt),colon:new pSt(":",gSt),dot:new pSt("."),question:new pSt("?",gSt),questionDot:new pSt("?."),arrow:new pSt("=>",gSt),template:new pSt("template"),invalidTemplate:new pSt("invalidTemplate"),ellipsis:new pSt("...",gSt),backQuote:new pSt("`",vSt),dollarBraceL:new pSt("${",{beforeExpr:!0,startsExpr:!0}),eq:new pSt("=",{beforeExpr:!0,isAssign:!0}),assign:new pSt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new pSt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new pSt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:mSt("||",1),logicalAND:mSt("&&",2),bitwiseOR:mSt("|",3),bitwiseXOR:mSt("^",4),bitwiseAND:mSt("&",5),equality:mSt("==/!=/===/!==",6),relational:mSt("/<=/>=",7),bitShift:mSt("<>/>>>",8),plusMin:new pSt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:mSt("%",10),star:mSt("*",10),slash:mSt("/",10),starstar:new pSt("**",{beforeExpr:!0}),coalesce:mSt("??",1),_break:ySt("break"),_case:ySt("case",gSt),_catch:ySt("catch"),_continue:ySt("continue"),_debugger:ySt("debugger"),_default:ySt("default",gSt),_do:ySt("do",{isLoop:!0,beforeExpr:!0}),_else:ySt("else",gSt),_finally:ySt("finally"),_for:ySt("for",{isLoop:!0}),_function:ySt("function",vSt),_if:ySt("if"),_return:ySt("return",gSt),_switch:ySt("switch"),_throw:ySt("throw",gSt),_try:ySt("try"),_var:ySt("var"),_const:ySt("const"),_while:ySt("while",{isLoop:!0}),_with:ySt("with"),_new:ySt("new",{beforeExpr:!0,startsExpr:!0}),_this:ySt("this",vSt),_super:ySt("super",vSt),_class:ySt("class",vSt),_extends:ySt("extends",gSt),_export:ySt("export"),_import:ySt("import",vSt),_null:ySt("null",vSt),_true:ySt("true",vSt),_false:ySt("false",vSt),_in:ySt("in",{beforeExpr:!0,binop:7}),_instanceof:ySt("instanceof",{beforeExpr:!0,binop:7}),_typeof:ySt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ySt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ySt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},wSt=/\r\n?|\n|\u2028|\u2029/,kSt=new RegExp(wSt.source,"g");function xSt(e){return 10===e||13===e||8232===e||8233===e}function _St(e,t,n){void 0===n&&(n=e.length);for(var r=t;r>10),56320+(1023&e)))}var jSt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,DSt=function(e,t){this.line=e,this.column=t};DSt.prototype.offset=function(e){return new DSt(this.line,this.column+e)};var MSt=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function ISt(e,t){for(var n=1,r=0;;){var i=_St(e,r,t);if(i<0)return new DSt(n,t-r);++n,r=i}}var zSt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},WSt=!1;var NSt=2,LSt=256,FSt=1|NSt|LSt;function USt(e,t){return NSt|(e?4:0)|(t?8:0)}var XSt=function(e,t,n){this.options=e=function(e){var t={};for(var n in zSt)t[n]=e&&$St(e,n)?e[n]:zSt[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!WSt&&"object"==typeof console&&console.warn&&(WSt=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),QSt(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return QSt(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,o,a,s){var l={type:n?"Block":"Line",value:r,start:i,end:o};e.locations&&(l.loc=new MSt(this,a,s)),e.ranges&&(l.range=[i,o]),t.push(l)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=RSt(sSt[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=oSt[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=RSt(r);var i=(r?r+" ":"")+oSt.strict;this.reservedWordsStrict=RSt(i),this.reservedWordsStrictBind=RSt(i+" "+oSt.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(wSt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=bSt.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},qSt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};XSt.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},qSt.inFunction.get=function(){return(this.currentVarScope().flags&NSt)>0},qSt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},qSt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},qSt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&LSt)return!1;if(t.flags&NSt)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},qSt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},qSt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},qSt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},qSt.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(NSt|LSt))>0||n},qSt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&LSt)>0},XSt.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,PSt.lastIndex=e,e+=PSt.exec(this.input)[0].length,";"===this.input[e]&&e++}},BSt.eat=function(e){return this.type===e&&(this.next(),!0)},BSt.isContextual=function(e){return this.type===bSt.name&&this.value===e&&!this.containsEsc},BSt.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},BSt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},BSt.canInsertSemicolon=function(){return this.type===bSt.eof||this.type===bSt.braceR||wSt.test(this.input.slice(this.lastTokEnd,this.start))},BSt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},BSt.semicolon=function(){this.eat(bSt.semi)||this.insertSemicolon()||this.unexpected()},BSt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},BSt.expect=function(e){this.eat(e)||this.unexpected()},BSt.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var YSt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};BSt.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},BSt.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},BSt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&r<56320)return!0;if(fSt(r,!0)){for(var i=n+1;hSt(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var o=this.input.slice(n,i);if(!lSt.test(o))return!0}return!1},ZSt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;PSt.lastIndex=this.pos;var e,t=PSt.exec(this.input),n=this.pos+t[0].length;return!(wSt.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(hSt(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},ZSt.parseStatement=function(e,t,n){var r,i=this.type,o=this.startNode();switch(this.isLet(e)&&(i=bSt._var,r="let"),i){case bSt._break:case bSt._continue:return this.parseBreakContinueStatement(o,i.keyword);case bSt._debugger:return this.parseDebuggerStatement(o);case bSt._do:return this.parseDoStatement(o);case bSt._for:return this.parseForStatement(o);case bSt._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case bSt._class:return e&&this.unexpected(),this.parseClass(o,!0);case bSt._if:return this.parseIfStatement(o);case bSt._return:return this.parseReturnStatement(o);case bSt._switch:return this.parseSwitchStatement(o);case bSt._throw:return this.parseThrowStatement(o);case bSt._try:return this.parseTryStatement(o);case bSt._const:case bSt._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(o,r);case bSt._while:return this.parseWhileStatement(o);case bSt._with:return this.parseWithStatement(o);case bSt.braceL:return this.parseBlock(!0,o);case bSt.semi:return this.parseEmptyStatement(o);case bSt._export:case bSt._import:if(this.options.ecmaVersion>10&&i===bSt._import){PSt.lastIndex=this.pos;var a=PSt.exec(this.input),s=this.pos+a[0].length,l=this.input.charCodeAt(s);if(40===l||46===l)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===bSt._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var u=this.value,c=this.parseExpression();return i===bSt.name&&"Identifier"===c.type&&this.eat(bSt.colon)?this.parseLabeledStatement(o,u,c,e):this.parseExpressionStatement(o,c)}},ZSt.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(bSt.semi)||this.insertSemicolon()?e.label=null:this.type!==bSt.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(bSt.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},ZSt.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(GSt),this.enterScope(0),this.expect(bSt.parenL),this.type===bSt.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===bSt._var||this.type===bSt._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===bSt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===bSt._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var o=this.isContextual("let"),a=!1,s=new YSt,l=this.parseExpression(!(t>-1)||"await",s);return this.type===bSt._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===bSt._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&a&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,s),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},ZSt.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,JSt|(n?0:ePt),!1,t)},ZSt.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(bSt._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},ZSt.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(bSt.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},ZSt.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(bSt.braceL),this.labels.push(HSt),this.enterScope(0);for(var n=!1;this.type!==bSt.braceR;)if(this.type===bSt._case||this.type===bSt._default){var r=this.type===bSt._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(bSt.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},ZSt.parseThrowStatement=function(e){return this.next(),wSt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var KSt=[];ZSt.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===bSt._catch){var t=this.startNode();if(this.next(),this.eat(bSt.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLValPattern(t.param,n?4:2),this.expect(bSt.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(bSt._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},ZSt.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},ZSt.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(GSt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},ZSt.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},ZSt.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},ZSt.parseLabeledStatement=function(e,t,n,r){for(var i=0,o=this.labels;i=0;s--){var l=this.labels[s];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},ZSt.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},ZSt.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(bSt.braceL),e&&this.enterScope(0);this.type!==bSt.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},ZSt.parseFor=function(e,t){return e.init=t,this.expect(bSt.semi),e.test=this.type===bSt.semi?null:this.parseExpression(),this.expect(bSt.semi),e.update=this.type===bSt.parenR?null:this.parseExpression(),this.expect(bSt.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},ZSt.parseForIn=function(e,t){var n=this.type===bSt._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(bSt.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},ZSt.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(bSt.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===bSt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===bSt._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(bSt.comma))break}return e},ZSt.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var JSt=1,ePt=2;function tPt(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function nPt(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}ZSt.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===bSt.star&&t&ePt&&this.unexpected(),e.generator=this.eat(bSt.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&JSt&&(e.id=4&t&&this.type!==bSt.name?null:this.parseIdent(),!e.id||t&ePt||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(USt(e.async,e.generator)),t&JSt||(e.id=this.type===bSt.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=o,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,t&JSt?"FunctionDeclaration":"FunctionExpression")},ZSt.parseFunctionParams=function(e){this.expect(bSt.parenL),e.params=this.parseBindingList(bSt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ZSt.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(bSt.braceL);this.type!==bSt.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(o&&this.raise(a.start,"Duplicate constructor in the same class"),o=!0):a.key&&"PrivateIdentifier"===a.key.type&&tPt(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},ZSt.parseClassElement=function(e){if(this.eat(bSt.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,o=!1,a="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(bSt.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===bSt.star?s=!0:r="static"}if(n.static=s,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==bSt.star||this.canInsertSemicolon()?r="async":o=!0),!r&&(t>=9||!o)&&this.eat(bSt.star)&&(i=!0),!r&&!o&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:r=l)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===bSt.parenL||"method"!==a||i||o){var u=!n.static&&nPt(n,"constructor"),c=u&&e;u&&"method"!==a&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=u?"constructor":a,this.parseClassMethod(n,i,o,c)}else this.parseClassField(n);return n},ZSt.isClassElementNameStart=function(){return this.type===bSt.name||this.type===bSt.privateId||this.type===bSt.num||this.type===bSt.string||this.type===bSt.bracketL||this.type.keyword},ZSt.parseClassElementName=function(e){this.type===bSt.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},ZSt.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&nPt(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},ZSt.parseClassField=function(e){if(nPt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&nPt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(bSt.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},ZSt.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==bSt.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},ZSt.parseClassId=function(e,t){this.type===bSt.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},ZSt.parseClassSuper=function(e){e.superClass=this.eat(bSt._extends)?this.parseExprSubscripts(null,!1):null},ZSt.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},ZSt.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],o=0;o=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==bSt.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(bSt._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===bSt._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|JSt,!1,n)}else if(this.type===bSt._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==bSt.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,a=e.specifiers;o=13&&this.type===bSt.string){var e=this.parseLiteral(this.value);return jSt.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},ZSt.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var rPt=XSt.prototype;rPt.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=8&&!a&&"async"===s.name&&!this.canInsertSemicolon()&&this.eat(bSt._function))return this.overrideContext(oPt.f_expr),this.parseFunction(this.startNodeAt(i,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(bSt.arrow))return this.parseArrowExpression(this.startNodeAt(i,o),[s],!1,t);if(this.options.ecmaVersion>=8&&"async"===s.name&&this.type===bSt.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return s=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(bSt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,o),[s],!0,t)}return s;case bSt.regexp:var l=this.value;return(n=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},n;case bSt.num:case bSt.string:return this.parseLiteral(this.value);case bSt._null:case bSt._true:case bSt._false:return(n=this.startNode()).value=this.type===bSt._null?null:this.type===bSt._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case bSt.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case bSt.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(bSt.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case bSt.braceL:return this.overrideContext(oPt.b_expr),this.parseObj(!1,e);case bSt._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case bSt._class:return this.parseClass(this.startNode(),!1);case bSt._new:return this.parseNew();case bSt.backQuote:return this.parseTemplate();case bSt._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},sPt.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case bSt.parenL:return this.parseDynamicImport(e);case bSt.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},sPt.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(bSt.parenR)){var t=this.start;this.eat(bSt.comma)&&this.eat(bSt.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},sPt.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},sPt.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},sPt.parseParenExpression=function(){this.expect(bSt.parenL);var e=this.parseExpression();return this.expect(bSt.parenR),e},sPt.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,s=this.start,l=this.startLoc,u=[],c=!0,d=!1,f=new YSt,h=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==bSt.parenR;){if(c?c=!1:this.expect(bSt.comma),o&&this.afterTrailingComma(bSt.parenR,!0)){d=!0;break}if(this.type===bSt.ellipsis){a=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===bSt.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(bSt.parenR),e&&!this.canInsertSemicolon()&&this.eat(bSt.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(r,i,u,t);u.length&&!d||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(f,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,u.length>1?((n=this.startNodeAt(s,l)).expressions=u,this.finishNodeAt(n,"SequenceExpression",m,g)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,i);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},sPt.parseParenItem=function(e){return e},sPt.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var uPt=[];sPt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(bSt.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,o=this.type===bSt._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),o&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(bSt.parenL)?e.arguments=this.parseExprList(bSt.parenR,this.options.ecmaVersion>=8,!1):e.arguments=uPt,this.finishNode(e,"NewExpression")},sPt.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===bSt.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===bSt.backQuote,this.finishNode(n,"TemplateElement")},sPt.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===bSt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(bSt.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(bSt.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},sPt.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===bSt.name||this.type===bSt.num||this.type===bSt.string||this.type===bSt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===bSt.star)&&!wSt.test(this.input.slice(this.lastTokEnd,this.start))},sPt.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(bSt.braceR);){if(r)r=!1;else if(this.expect(bSt.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(bSt.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),n.properties.push(o)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},sPt.parseProperty=function(e,t){var n,r,i,o,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(bSt.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===bSt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===bSt.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(n=this.eat(bSt.star)));var s=this.containsEsc;return this.parsePropertyName(a),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(bSt.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,n,r,i,o,t,s),this.finishNode(a,"Property")},sPt.parsePropertyValue=function(e,t,n,r,i,o,a,s){if((n||r)&&this.type===bSt.colon&&this.unexpected(),this.eat(bSt.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===bSt.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===bSt.comma||this.type===bSt.braceR||this.type===bSt.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===bSt.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},sPt.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(bSt.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(bSt.bracketR),e.key;e.computed=!1}return e.key=this.type===bSt.num||this.type===bSt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},sPt.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},sPt.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|USt(t,r.generator)|(n?128:0)),this.expect(bSt.parenL),r.params=this.parseBindingList(bSt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},sPt.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|USt(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},sPt.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==bSt.braceL,o=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!s||(a=this.strictDirective(this.end))&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!o&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},sPt.isSimpleParamList=function(e){for(var t=0,n=e;t-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var o=this.currentScope();r=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var s=this.scopeStack[a];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],s.flags&FSt)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},dPt.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},dPt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},dPt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&FSt)return t}},dPt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&FSt&&!(16&t.flags))return t}};var hPt=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new MSt(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},pPt=XSt.prototype;function mPt(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}pPt.startNode=function(){return new hPt(this,this.start,this.startLoc)},pPt.startNodeAt=function(e,t){return new hPt(this,e,t)},pPt.finishNode=function(e,t){return mPt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},pPt.finishNodeAt=function(e,t,n,r){return mPt.call(this,e,t,n,r)},pPt.copyNode=function(e){var t=new hPt(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var gPt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",vPt=gPt+" Extended_Pictographic",OPt=vPt+" EBase EComp EMod EPres ExtPict",yPt={9:gPt,10:vPt,11:vPt,12:OPt,13:OPt,14:OPt},bPt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wPt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",kPt=wPt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",xPt=kPt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",_Pt=xPt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",SPt=_Pt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",PPt={9:wPt,10:kPt,11:xPt,12:_Pt,13:SPt,14:SPt+" Kawi Nag_Mundari Nagm"},EPt={};function CPt(e){var t=EPt[e]={binary:RSt(yPt[e]+" "+bPt),nonBinary:{General_Category:RSt(bPt),Script:RSt(PPt[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var TPt=0,$Pt=[9,10,11,12,13,14];TPt<$Pt.length;TPt+=1)CPt($Pt[TPt]);var QPt=XSt.prototype,RPt=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=EPt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function APt(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function jPt(e){return e>=65&&e<=90||e>=97&&e<=122}function DPt(e){return jPt(e)||95===e}function MPt(e){return DPt(e)||IPt(e)}function IPt(e){return e>=48&&e<=57}function zPt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function WPt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function NPt(e){return e>=48&&e<=55}RPt.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},RPt.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},RPt.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var o=n.charCodeAt(e+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i},RPt.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,o=n.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},RPt.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},RPt.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},RPt.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},RPt.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},QPt.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r-1&&this.raise(e.start,"Duplicate regular expression flag")}},QPt.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},QPt.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},QPt.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},QPt.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},QPt.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},QPt.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},QPt.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},QPt.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!APt(t)&&(e.lastIntValue=t,e.advance(),!0)},QPt.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!APt(n);)e.advance();return e.pos!==t},QPt.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},QPt.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},QPt.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},QPt.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ASt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ASt(e.lastIntValue);return!0}return!1},QPt.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return fSt(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},QPt.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return hSt(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},QPt.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},QPt.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},QPt.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},QPt.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},QPt.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},QPt.regexp_eatZero=function(e){return 48===e.current()&&!IPt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},QPt.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},QPt.regexp_eatControlLetter=function(e){var t=e.current();return!!jPt(t)&&(e.lastIntValue=t%32,e.advance(),!0)},QPt.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(i&&o>=55296&&o<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(o-55296)+(s-56320)+65536,!0}e.pos=a,e.lastIntValue=o}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},QPt.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},QPt.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},QPt.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},QPt.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},QPt.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){$St(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},QPt.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},QPt.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";DPt(t=e.current());)e.lastStringValue+=ASt(t),e.advance();return""!==e.lastStringValue},QPt.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";MPt(t=e.current());)e.lastStringValue+=ASt(t),e.advance();return""!==e.lastStringValue},QPt.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},QPt.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},QPt.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},QPt.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||NPt(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},QPt.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},QPt.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!IPt(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},QPt.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},QPt.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;IPt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},QPt.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;zPt(n=e.current());)e.lastIntValue=16*e.lastIntValue+WPt(n),e.advance();return e.pos!==t},QPt.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},QPt.regexp_eatOctalDigit=function(e){var t=e.current();return NPt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},QPt.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r=this.input.length?this.finishToken(bSt.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},FPt.readToken=function(e){return fSt(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},FPt.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},FPt.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=_St(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},FPt.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&SSt.test(String.fromCharCode(e))))break e;++this.pos}}},FPt.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},FPt.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(bSt.ellipsis)):(++this.pos,this.finishToken(bSt.dot))},FPt.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(bSt.assign,2):this.finishOp(bSt.slash,1)},FPt.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?bSt.star:bSt.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=bSt.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(bSt.assign,n+1):this.finishOp(r,n)},FPt.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(bSt.assign,3):this.finishOp(124===e?bSt.logicalOR:bSt.logicalAND,2):61===t?this.finishOp(bSt.assign,2):this.finishOp(124===e?bSt.bitwiseOR:bSt.bitwiseAND,1)},FPt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(bSt.assign,2):this.finishOp(bSt.bitwiseXOR,1)},FPt.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!wSt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(bSt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(bSt.assign,2):this.finishOp(bSt.plusMin,1)},FPt.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(bSt.assign,n+1):this.finishOp(bSt.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(bSt.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},FPt.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(bSt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(bSt.arrow)):this.finishOp(61===e?bSt.eq:bSt.prefix,1)},FPt.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(bSt.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(bSt.assign,3):this.finishOp(bSt.coalesce,2)}return this.finishOp(bSt.question,1)},FPt.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,fSt(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(bSt.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ASt(e)+"'")},FPt.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(bSt.parenL);case 41:return++this.pos,this.finishToken(bSt.parenR);case 59:return++this.pos,this.finishToken(bSt.semi);case 44:return++this.pos,this.finishToken(bSt.comma);case 91:return++this.pos,this.finishToken(bSt.bracketL);case 93:return++this.pos,this.finishToken(bSt.bracketR);case 123:return++this.pos,this.finishToken(bSt.braceL);case 125:return++this.pos,this.finishToken(bSt.braceR);case 58:return++this.pos,this.finishToken(bSt.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(bSt.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(bSt.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ASt(e)+"'")},FPt.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},FPt.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(wSt.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var o=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(o);var s=this.regexpState||(this.regexpState=new RPt(this));s.reset(n,i,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(bSt.regexp,{pattern:i,flags:a,value:l})},FPt.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),o=this.pos,a=0,s=0,l=0,u=null==t?1/0:t;l=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;s=c,a=a*e+d}}return r&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:a},FPt.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=UPt(this.input.slice(t,this.pos)),++this.pos):fSt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(bSt.num,n)},FPt.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=UPt(this.input.slice(t,this.pos));return++this.pos,fSt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(bSt.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),fSt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,a=(o=this.input.slice(t,this.pos),n?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(bSt.num,a)},FPt.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},FPt.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(xSt(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(bSt.string,t)};var XPt={};FPt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==XPt)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},FPt.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw XPt;this.raise(e,t)},FPt.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==bSt.template&&this.type!==bSt.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(bSt.template,e)):36===n?(this.pos+=2,this.finishToken(bSt.dollarBraceL)):(++this.pos,this.finishToken(bSt.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(xSt(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},FPt.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return xSt(t)?"":String.fromCharCode(t)}},FPt.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},FPt.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos-1&&e.test(String.fromCharCode(t))}}YPt(/\p{P}/u),YPt(/[A-Za-z]/),YPt(/[\dA-Za-z]/),YPt(/[#-'*+\--9=?A-Z^-~]/),YPt(/\d/),YPt(/[\dA-Fa-f]/),YPt(/[!-/:-@[-`{-~]/),YPt(/\s/);const ZPt={}.hasOwnProperty,GPt=Symbol("continue"),HPt=Symbol("exit"),KPt=Symbol("skip");function JPt(e){return Array.isArray(e)?e:"number"==typeof e?[GPt,e]:[e]}function eEt(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function tEt(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function nEt(e){let t=-1;const n=[];let r;for(;++t-1?e:void 0}const aEt="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",sEt="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",lEt="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",uEt="#unexpected-type-in-code-expected-an-object-spread-spread",cEt="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",dEt="#could-not-parse-expression-with-acorn";function fEt(e,t,n,r,i,o,a,s,l,u,c){const d=this,f=this.events.length+3;let h,p,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),h=d.now(),g};function g(c){if(null===c){if(p)throw p;const e=new gae("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=aEt+sEt,e}if(BPt(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),O;if(125===c&&0===m){const m=o?hEt.call(d,o,a,i,f,h,u||!1,l||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(c),e.exit(r);const i=e.exit(n);return s&&m.estree&&Object.assign(i,{estree:m.estree}),t}return p=m.message,e.enter(i),e.consume(c),v}return e.enter(i),v(c)}function v(t){return 125===t&&0===m||null===t||BPt(t)?(e.exit(i),g(t)):(123!==t||o?125===t&&(m-=1):m+=1,e.consume(t),v)}function O(e){const t=d.now();if(t.line!==h.line&&!c&&d.parser.lazy[t.line]){const e=new gae("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=aEt+lEt,e}return g(e)}}function hEt(e,t,n,r,i,o,a){const s=function(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),o=[],a=[],s=i.onComment,l=i.onToken;let u,c,d=!1;const f=Object.assign({},i,{onComment:o,preserveParens:!0});l&&(f.onToken=a);const h=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r0&&-1===e[0];)e.shift();const t=nEt(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),p=h.value,m=n+p+r,g=t.expression&&tEt(p);if(g&&!t.allowEmpty)throw new gae("Unexpected empty expression",{place:O(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{u=t.expression&&!g?t.acorn.parseExpressionAt(m,0,f):t.acorn.parse(m,f)}catch(e){const t=e,r=O(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},c=t,d=t.raisedAt>=n.length+p.length||"Unterminated comment"===t.message}if(u&&t.expression&&!g)if(tEt(m.slice(u.end,m.length-r.length)))u={type:"Program",start:0,end:n.length+p.length,body:[{type:"ExpressionStatement",expression:u,start:0,end:n.length+p.length}],sourceType:"module",comments:[]};else{const e=O(u.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},c=t,u=void 0}if(u){if(u.comments=o,function(e,t){let n,r;n=t,function e(t,i,o,a){return eEt(t)&&(s.displayName="node ("+t.type+")"),s;function s(){const s=n?JPt(n(t,i,o,a)):[];if(s[0]===HPt)return s;if(s[0]!==KPt){let n;for(n in t)if(ZPt.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let o=0;for(;o>-1&&o=p.length||(v(e),Array.isArray(l)?l.push(e):l(e))}return{estree:u,error:c,swallow:d};function v(e){const t=O(e.start),n=O(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function O(e){let r=e-n.length;r<0?r=0:r>p.length&&(r=p.length);let i=function(e,t){let n=0;for(;n-1&&e.test(String.fromCharCode(t))}}const bEt={}.hasOwnProperty,wEt=Symbol("continue"),kEt=Symbol("exit"),xEt=Symbol("skip");function _Et(e){return Array.isArray(e)?e:"number"==typeof e?[wEt,e]:[e]}function SEt(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function PEt(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function EEt(e){let t=-1;const n=[];let r;for(;++t-1?e:void 0}const QEt="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",REt="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",AEt="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",jEt="#unexpected-type-in-code-expected-an-object-spread-spread",DEt="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",MEt="#could-not-parse-expression-with-acorn";function IEt(e,t,n,r,i,o,a,s,l,u,c){const d=this,f=this.events.length+3;let h,p,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),h=d.now(),g};function g(c){if(null===c){if(p)throw p;const e=new gae("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=QEt+REt,e}if(mEt(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),O;if(125===c&&0===m){const m=o?zEt.call(d,o,a,i,f,h,u||!1,l||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(c),e.exit(r);const i=e.exit(n);return s&&m.estree&&Object.assign(i,{estree:m.estree}),t}return p=m.message,e.enter(i),e.consume(c),v}return e.enter(i),v(c)}function v(t){return 125===t&&0===m||null===t||mEt(t)?(e.exit(i),g(t)):(123!==t||o?125===t&&(m-=1):m+=1,e.consume(t),v)}function O(e){const t=d.now();if(t.line!==h.line&&!c&&d.parser.lazy[t.line]){const e=new gae("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=QEt+AEt,e}return g(e)}}function zEt(e,t,n,r,i,o,a){const s=function(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),o=[],a=[],s=i.onComment,l=i.onToken;let u,c,d=!1;const f=Object.assign({},i,{onComment:o,preserveParens:!0});l&&(f.onToken=a);const h=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r0&&-1===e[0];)e.shift();const t=EEt(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),p=h.value,m=n+p+r,g=t.expression&&PEt(p);if(g&&!t.allowEmpty)throw new gae("Unexpected empty expression",{place:O(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{u=t.expression&&!g?t.acorn.parseExpressionAt(m,0,f):t.acorn.parse(m,f)}catch(e){const t=e,r=O(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},c=t,d=t.raisedAt>=n.length+p.length||"Unterminated comment"===t.message}if(u&&t.expression&&!g)if(PEt(m.slice(u.end,m.length-r.length)))u={type:"Program",start:0,end:n.length+p.length,body:[{type:"ExpressionStatement",expression:u,start:0,end:n.length+p.length}],sourceType:"module",comments:[]};else{const e=O(u.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},c=t,u=void 0}if(u){if(u.comments=o,function(e,t){let n,r;n=t,function e(t,i,o,a){return SEt(t)&&(s.displayName="node ("+t.type+")"),s;function s(){const s=n?_Et(n(t,i,o,a)):[];if(s[0]===kEt)return s;if(s[0]!==xEt){let n;for(n in t)if(bEt.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let o=0;for(;o>-1&&o=p.length||(v(e),Array.isArray(l)?l.push(e):l(e))}return{estree:u,error:c,swallow:d};function v(e){const t=O(e.start),n=O(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function O(e){let r=e-n.length;r<0?r=0:r>p.length&&(r=p.length);let i=function(e,t){let n=0;for(;n=0&&yoe(t)?(e.enter(d),e.enter(f),e.consume(t),z):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function I(t){return 62===t?ie(t):null!==t&&t>=0&&yoe(t)?(e.enter(d),e.enter(f),e.consume(t),z):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function z(t){return null!==t&&t>=0&&boe(t,{jsx:!0})?(e.consume(t),z):46===t||47===t||58===t||62===t||123===t||gEt(t)||OEt(t)?(e.exit(f),A=W,oe(t)):void le(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function W(t){return 46===t?(e.enter(h),e.consume(t),e.exit(h),A=N,oe):58===t?(e.enter(m),e.consume(t),e.exit(m),A=U,oe):47===t||62===t||123===t||null!==t&&t>=0&&yoe(t)?(e.exit(d),B(t)):void le(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function N(t){if(null!==t&&t>=0&&yoe(t))return e.enter(p),e.consume(t),L;le(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function L(t){return null!==t&&t>=0&&boe(t,{jsx:!0})?(e.consume(t),L):46===t||47===t||62===t||123===t||gEt(t)||OEt(t)?(e.exit(p),A=F,oe(t)):void le(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function F(t){return 46===t?(e.enter(h),e.consume(t),e.exit(h),A=N,oe):47===t||62===t||123===t||null!==t&&t>=0&&yoe(t)?(e.exit(d),B(t)):void le(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){if(null!==t&&t>=0&&yoe(t))return e.enter(g),e.consume(t),X;le(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function X(t){return null!==t&&t>=0&&boe(t,{jsx:!0})?(e.consume(t),X):47===t||62===t||123===t||gEt(t)||OEt(t)?(e.exit(g),A=q,oe(t)):void le(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function q(t){if(47===t||62===t||123===t||null!==t&&t>=0&&yoe(t))return e.exit(d),B(t);le(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function B(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),A=re,oe):62===t?ie(t):123===t?IEt.call(R,e,V,v,O,y,r,i,o,!0,!1,a)(t):null!==t&&t>=0&&yoe(t)?(e.enter(b),e.enter(w),e.enter(k),e.consume(t),Y):void le(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function V(e){return A=B,oe(e)}function Y(t){return null!==t&&t>=0&&boe(t,{jsx:!0})?(e.consume(t),Y):47===t||58===t||61===t||62===t||123===t||gEt(t)||OEt(t)?(e.exit(k),A=Z,oe(t)):void le(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Z(t){return 58===t?(e.enter(x),e.consume(t),e.exit(x),A=G,oe):61===t?(e.exit(w),e.enter(S),e.consume(t),e.exit(S),A=J,oe):47===t||62===t||123===t||gEt(t)||OEt(t)||null!==t&&t>=0&&yoe(t)?(e.exit(w),e.exit(b),A=B,oe(t)):void le(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function G(t){if(null!==t&&t>=0&&yoe(t))return e.enter(_),e.consume(t),H;le(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function H(t){return null!==t&&t>=0&&boe(t,{jsx:!0})?(e.consume(t),H):47===t||61===t||62===t||123===t||gEt(t)||OEt(t)?(e.exit(_),e.exit(w),A=K,oe(t)):void le(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function K(t){return 61===t?(e.enter(S),e.consume(t),e.exit(S),A=J,oe):47===t||62===t||123===t||null!==t&&t>=0&&yoe(t)?(e.exit(b),B(t)):void le(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function J(t){return 34===t||39===t?(e.enter(P),e.enter(E),e.consume(t),e.exit(E),j=t,te):123===t?IEt.call(R,e,ee,T,$,Q,r,i,o,!1,!1,a)(t):void le(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{}`)":""))}function ee(t){return e.exit(b),A=B,oe(t)}function te(t){return null===t&&le(t,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(j)+"`"),t===j?(e.enter(E),e.consume(t),e.exit(E),e.exit(P),e.exit(b),j=void 0,A=B,oe):mEt(t)?(A=te,oe(t)):(e.enter(C),ne(t))}function ne(t){return null===t||t===j||mEt(t)?(e.exit(C),te(t)):(e.consume(t),ne)}function re(e){if(62===e)return ie(e);le(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function ie(n){return e.enter(l),e.consume(n),e.exit(l),e.exit(s),t}function oe(t){return mEt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),se):vEt(t)||OEt(t)?(e.enter("esWhitespace"),ae(t)):A(t)}function ae(t){return mEt(t)?(e.exit("esWhitespace"),oe(t)):vEt(t)||OEt(t)?(e.consume(t),ae):(e.exit("esWhitespace"),A(t))}function se(e){if(!a&&R.parser.lazy[R.now().line]){const e=new gae("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",R.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=WEt+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return oe(e)}function le(e,t,n){const r=new gae("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` ("+function(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}(e)+")")+" "+t+", expected "+n,R.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw r.url=WEt+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),r}}function LEt(e,t){return{name:"mdxJsxTextTag",tokenize:function(n,r,i){return NEt.call(this,n,r,i,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}}function FEt(e,t){return{name:"mdxJsxFlowTag",tokenize:function(n,r,i){const o=this;return a;function a(r){return function(r){return NEt.call(o,n,s,i,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(r)}(r)}function s(e){return vEt(e)?function(e,t,n,r){const i=Number.POSITIVE_INFINITY;let o=0;return function(r){return vEt(r)?(e.enter(n),a(r)):t(r)};function a(r){return vEt(r)&&o++"mdxFlowExpression"===e.name));return 60===e?a(e):123===e&&s?n.attempt(s,l,i)(e):null===e||mEt(e)?r(e):i(e)}},concrete:!0}}function UEt(e){const t=e||{},n=t.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:FEt(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:LEt(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}VEt(/\p{P}/u);const XEt=VEt(/[A-Za-z]/);function qEt(e){return null!==e&&e<-2}function BEt(e){return-2===e||-1===e||32===e}function VEt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}VEt(/[\dA-Za-z]/),VEt(/[#-'*+\--9=?A-Z^-~]/),VEt(/\d/),VEt(/[\dA-Fa-f]/),VEt(/[!-/:-@[-`{-~]/),VEt(/\s/);const YEt={tokenize:function(e,t,n){return function(t){return BEt(t)?function(e,t,n,r){const i=Number.POSITIVE_INFINITY;let o=0;return function(r){return BEt(r)?(e.enter(n),a(r)):t(r)};function a(r){return BEt(r)&&o++0)}function tCt(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function nCt(e){let t=-1;const n=[];let r;for(;++t-1?e:void 0}const aCt={tokenize:function(e,t,n){return function(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(YEt,t,n)}},partial:!0},sCt="https://github.com/micromark/micromark-extension-mdxjs-esm",lCt=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function uCt(e){const t={tokenize:function(t,i,o){const a=this,s=a.parser.definedModuleSpecifiers||(a.parser.definedModuleSpecifiers=[]),l=this.events.length+1;let u="";return a.interrupt?o:function(e){return a.now().column>1?o(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),u+=String.fromCharCode(e),c)};function c(e){return XEt(e)?(t.consume(e),u+=String.fromCharCode(e),c):"import"!==u&&"export"!==u||32!==e?o(e):(t.consume(e),d)}function d(e){return null===e||qEt(e)?(t.exit("mdxjsEsmData"),f(e)):(t.consume(e),d)}function f(e){return null===e?p(e):qEt(e)?t.check(aCt,p,h)(e):(t.enter("mdxjsEsmData"),d(e))}function h(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),f}function p(o){const u=function(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),o=[],a=[],s=i.onComment,l=i.onToken;let u,c,d=!1;const f=Object.assign({},i,{onComment:o,preserveParens:!0});l&&(f.onToken=a);const h=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r0&&-1===e[0];)e.shift();const t=nCt(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),p=h.value,m=n+p+r,g=t.expression&&tCt(p);if(g&&!t.allowEmpty)throw new gae("Unexpected empty expression",{place:O(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{u=t.expression&&!g?t.acorn.parseExpressionAt(m,0,f):t.acorn.parse(m,f)}catch(e){const t=e,r=O(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},c=t,d=t.raisedAt>=n.length+p.length||"Unterminated comment"===t.message}if(u&&t.expression&&!g)if(tCt(m.slice(u.end,m.length-r.length)))u={type:"Program",start:0,end:n.length+p.length,body:[{type:"ExpressionStatement",expression:u,start:0,end:n.length+p.length}],sourceType:"module",comments:[]};else{const e=O(u.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},c=t,u=void 0}if(u){if(u.comments=o,function(e,t){let n,r;n=t,function e(t,i,o,a){return eCt(t)&&(s.displayName="node ("+t.type+")"),s;function s(){const s=n?JEt(n(t,i,o,a)):[];if(s[0]===HEt)return s;if(s[0]!==KEt){let n;for(n in t)if(ZEt.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let o=0;for(;o>-1&&o=p.length||(v(e),Array.isArray(l)?l.push(e):l(e))}return{estree:u,error:c,swallow:d};function v(e){const t=O(e.start),n=O(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function O(e){let r=e-n.length;r<0?r=0:r>p.length&&(r=p.length);let i=function(e,t){let n=0;for(;n0?"var "+s.join(",")+"\n":""});if(u.error){if(null!==o&&u.swallow)return h(o);const e=new gae("Could not parse import/exports with acorn",{cause:u.error,place:{line:u.error.loc.line,column:u.error.loc.column+1,offset:u.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw e.url=sCt+"#could-not-parse-importexports-with-acorn",e}s.length>0&&u.estree.body.shift();let c=-1;for(;++c({text:e.map((e=>null==e?void 0:e.text)).join("")});function PCt(e){return e.reduce(((e,t)=>(Object.keys(t).forEach((function(n){"children"!==n&&"type"!==n&&"text"!==n&&(e[n]=t[n])})),e)),{})}function ECt(e,t){return xCt(xCt({[gCt[e]]:!0},SCt(t)),PCt(t))}function CCt(e,t){var n;const r=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"style"===e.name)),i={};if(r){let e={};try{var o;e=null!==(o=JSON.parse(r.value.value.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/:[ ]*[']([^']+)[']/g,': "$1"')))&&void 0!==o?o:{}}catch(e){console.error(`Error parsing font styles (${r.value.value})`,e)}Object.keys(e).map((n=>{n in t&&(i[t[n]]=e[n])}))}return i}function TCt(e,t){var n,r,i,o,a,s,l;let u=[{text:""}];const{isInTable:c=!1,isInLink:d=!1,isInTableHeaderRow:f=!1,isInBlockquote:h=!1,isInList:p=!1,tableAlign:m,useMdx:g,shortcodeConfigs:v,index:O}=null!=t?t:{},y="table"===e.type,b="link"===e.type,w="tableRow"===e.type&&0===O,k="blockquote"===e.type,x="list"===e.type,_=e.children;switch(_&&Array.isArray(_)&&_.length>0&&(u=_.flatMap(((t,n)=>TCt(xCt(xCt({},t),{},{ordered:e.ordered||t.ordered||!1}),{isInTable:y||c,isInLink:b||d,isInTableHeaderRow:w||f,isInBlockquote:k||h,isInList:x||p,useMdx:g,shortcodeConfigs:v,index:n,tableAlign:m||(y?e.align:void 0)})))),e.type){case"heading":return{type:vCt.heading[e.depth||1],children:u};case"list":return{type:e.ordered?vCt.ol_list:vCt.ul_list,children:u};case"listItem":const[t,c]=u.reduce((([e,t],n)=>"type"in n&&OCt.includes(n.type)?[e,n]:(e.push(n),[e,t])),[[],null]),m=[{type:vCt.listItemContent,children:t}];return c&&m.push(c),{type:vCt.listItem,checked:e.checked,children:m};case"paragraph":if(h||p){if(h&&O>0){if(u.length>0){let e=u[0];if("text"in e&&(e={text:`\n\n${e.text}`}),u.length>1){const[t,...n]=u;return[e,...n]}return[e]}return u}return u}return Array.isArray(u)&&1===u.length&&"type"in u[0]&&u[0].type===plt?u[0]:{type:vCt.paragraph,children:u};case"link":return{type:vCt.link,url:e.url,children:u};case"image":return{type:vCt.image,children:[{text:""}],url:e.url,alt:e.alt};case"blockquote":const y=u.reduce(((e,t)=>{const n=e.length>0?e[e.length-1]:null;return n&&"text"in n&&n.text&&"text"in t&&t.text?e[e.length-1]={text:`${n.text}${t.text}`}:e.push(t),e}),[]);return{type:vCt.block_quote,children:y};case"code":return{type:vCt.code_block,lang:e.lang,code:e.value,children:[{text:""}]};case"html":var S;return null!==(n=e.value)&&void 0!==n&&n.includes("
")?{break:!0,type:vCt.paragraph,children:[{text:(null===(S=e.value)||void 0===S?void 0:S.replace(/
/g,""))||""}]}:{type:"p",children:[{text:null!==(r=e.value)&&void 0!==r?r:""}]};case"emphasis":return xCt(xCt({[vCt.emphasis_mark]:!0},SCt(u)),PCt(u));case"strong":return xCt(xCt({[vCt.strong_mark]:!0},SCt(u)),PCt(u));case"delete":return xCt(xCt({[vCt.delete_mark]:!0},SCt(u)),PCt(u));case"inlineCode":return xCt({[vCt.inline_code_mark]:!0,text:e.value},PCt(u));case"thematicBreak":return{type:vCt.thematic_break,children:[{text:""}]};case"table":return{type:vCt.table,children:u};case"tableRow":return{type:vCt.tableRow,children:u};case"tableCell":return{type:f?vCt.tableHeaderCell:vCt.tableCell,children:[{type:vCt.paragraph,children:u}]};case"mdxJsxFlowElement":if("name"in e){if("br"===e.name)return{type:vCt.paragraph,children:[{text:""}]};console.warn("[StaticCMS] Unrecognized mdx flow element",e)}return{text:null!==(i=e.value)&&void 0!==i?i:""};case"mdxJsxTextElement":if("name"in e&&"mdxJsxTextElement"===e.type)switch(e.name){case"br":return[{text:"\n"}];case"sub":return ECt("subscript_mark",u);case"sup":return ECt("superscript_mark",u);case"u":return ECt("underline_mark",u);case"p":const t=CCt(e,{textAlign:"align"}),n=null===(o=e.attributes)||void 0===o?void 0:o.find((e=>"align"===e.name)),r={};return n&&(r.align=n.value),xCt(xCt(xCt({type:vCt.paragraph},t),r),{},{children:[xCt(xCt({},SCt(u)),PCt(u))]});case"font":const i=CCt(e,{color:"color",backgroundColor:"backgroundColor"}),s=null===(a=e.attributes)||void 0===a?void 0:a.find((e=>"color"===e.name));return s&&(i.color=s.value),xCt(xCt(xCt({},i),SCt(u)),PCt(u));default:console.warn("[StaticCMS] Unrecognized mdx text element",e)}return{text:null!==(s=e.value)&&void 0!==s?s:""};case"break":return{text:"\n"};case"text":var P;if(g)return{text:(null!==(P=e.value)&&void 0!==P?P:"").replace(/(?{var t;return"text"!==e.type?e:{text:(null!==(t=e.value)&&void 0!==t?t:"").replace(/(?n=>{var r,i;return null!==(r=null===(i=n.children)||void 0===i?void 0:i.map(((n,r)=>TCt(n,{shortcodeConfigs:e,useMdx:t,index:r}))))&&void 0!==r?r:[]},QCt=e=>function(){this.compiler=$Ct(e)},RCt=async(e,{useMdx:t,shortcodeConfigs:n})=>new Promise((r=>{$ue().use(Tle).use(fCt).use(t?dCt:()=>{}).use(QCt({shortcodeConfigs:null!=n?n:WE(),useMdx:t})).process(e,((e,t)=>{e?console.error(e):r(null==t?void 0:t.result)}))})),ACt=(e,t)=>{const[n,r]=(0,c.useState)(!1),[i,o]=(0,c.useState)([]);return(0,c.useEffect)((()=>{n&&"rich"===t.mode||RCt(e,t).then((e=>{o(e),r(!0)}))}),[e,t.mode]),[i.length>0?i:[{type:plt,children:[{text:""}]}],n]};function jCt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DCt(e){for(var t=1;t"string"==typeof e.text,zCt=["thematic_break","image","code_block","shortcode","tableCell","tableHeaderCell"],WCt="
",NCt=[vCt.code_block];function LCt(e,t){var n,r;const{ignoreParagraphNewline:i=!1,listDepth:o=0,isInTable:a=!1,isInCode:s=!1,blockquoteDepth:l=0,useMdx:u,shortcodeConfigs:c}=t,d=e.text||"";let f=e.type||"";const h="type"in e&&"blockquote"===e.type;let p=d;if(!ICt(e)){let t="";f===vCt.tableRow&&(t="|"),p=e.children.map(((t,n)=>{const r=f===vCt.table,d=!ICt(t)&&OCt.includes(t.type||""),p=OCt.includes(e.type||""),m=NCt.includes(e.type||"");let g=!1;return!ICt(e)&&Array.isArray(e.children)&&(g=e.children.some((e=>!ICt(e)&&e.type===vCt.link))),{type:"type"in t?t.type:void 0,response:LCt(DCt(DCt({},t),{},{parentType:f}),{ignoreParagraphNewline:(i||d||p||g||a)&&!t.break,listDepth:p?o+1:o,isInTable:r||a,isInCode:m||s,blockquoteDepth:h?l+1:l,useMdx:u,index:n,shortcodeConfigs:c})}})).map((({response:e,type:t})=>{if(h){let n=e;return 0===o&&(n=n.replace(/(?h&&r===vCt.block_quote?0===i?n:`${e}${t}\n${n}`:0===i?n:`${e}${t}${n}`),"")}if(i||""!==d&&"\n"!==d||e.parentType!==vCt.paragraph||f===vCt.image||f===vCt.shortcode||f===vCt.tableCell||f===vCt.tableHeaderCell||(f=vCt.paragraph,p="\n"),""===p&&!zCt.find((e=>vCt[e]===f)))return"\n";if("\n"!==p&&ICt(e))if(e.strikethrough&&e.bold&&e.italic)p=UCt(p,"~~***");else if(e.bold&&e.italic)p=UCt(p,"***");else if(e.bold&&(p=UCt(p,"**")),e.italic&&(p=UCt(p,"_")),e.strikethrough&&(p=UCt(p,"~~")),e.code&&(p=UCt(p,"`")),e.subscript&&(p=UCt(p,"","")),e.superscript&&(p=UCt(p,"","")),e.underline&&(p=UCt(p,"","")),e.color||e.backgroundColor){const t={};e.color&&(t.color=e.color),e.backgroundColor&&(t.backgroundColor=e.backgroundColor);const n=Object.keys(t).map((e=>`${e}: '${t[e]}'`)).join(", ");p=UCt(p,``,"")}if(!f)return p;switch(f){case vCt.heading[1]:return`# ${XCt(p)}\n`;case vCt.heading[2]:return`## ${XCt(p)}\n`;case vCt.heading[3]:return`### ${XCt(p)}\n`;case vCt.heading[4]:return`#### ${XCt(p)}\n`;case vCt.heading[5]:return`##### ${XCt(p)}\n`;case vCt.heading[6]:return`###### ${XCt(p)}\n`;case vCt.block_quote:return`> ${p.replace(/[\n]+$/g,"").split("\n").join("\n> ").replace(/\n>[ \t]*\n/g,"\n>\n")}${h&&0===l?"\n":""}`;case vCt.code_block:const t=e;return`\`\`\`${null!==(n=t.lang)&&void 0!==n?n:""}\n${t.code}\n\`\`\`\n`;case vCt.link:return`[${p}](${e.url||""})`;case vCt.image:const i=e;return`![${null!==(r=i.alt)&&void 0!==r?r:""}](${i.url||""})`;case vCt.ul_list:case vCt.ol_list:return`${o>0?"\n":""}${p}`;case vCt.listItemContent:return p;case vCt.listItem:const s=e,d=e&&e.parentType===vCt.ol_list,m=e.children.length>=1&&(e.children.reduce(((e,t)=>e&&ICt(t)),!0)||1===e.children.length&&"lic"===e.children[0].type);let g="";for(let e=1;o>e;e++)g+=d?" ":" ";let v="";return"boolean"==typeof s.checked&&(v=` [${s.checked?"x":" "}]`),`${g}${d?"1.":"-"}${v} ${p}${m?"\n":""}`;case vCt.paragraph:const O=e;return u&&O.align?UCt(p,`

`,"

\n"):`${p}${a?"":"\n"}`;case vCt.thematic_break:return"---\n";case vCt.table:const y=function(e){const t=e.children;return 0===t.length?0:t[0].children.length}(e),b=p.split("\n"),w=b.length>0?b[0]:`|${Array(y).fill(" ").join("|")}|`,k=b.slice(1);return`${w}\n|${Array(y).fill("---").join("|")}|\n${k.join("\n")}`;case vCt.tableRow:return`|${p}|\n`;case vCt.tableHeaderCell:case vCt.tableCell:return We(p,!0)?" ":p.replace(/\|/g,"\\|").replace(/\n/g,WCt);case vCt.shortcode:const x=e,_=c[x.shortcode];return _?`${_.openTag}${[x.shortcode,...x.args].join(_.separator)}${_.closeTag}`:p;default:return console.warn("[StaticCMS] Unrecognized slate node, proceeding as text",`"${f}"`,e),p}}const FCt=e=>e.split("").reverse().join("");function UCt(e,t,n){const r=e.trim(),i=r,o=`${t}${i}${n||FCt(t)}`;if(i.length===e.length)return o;const a=`${t}${i}${n||FCt(t)}`;return e.replace(r,a)}function XCt(e){return e.replace(/\n/g,"\\\n")}function qCt(e,{useMdx:t,shortcodeConfigs:n}){return e.map(((e,r)=>LCt(e,{useMdx:t,index:r,shortcodeConfigs:null!=n?n:WE()}))).join("\n")}const BCt={},VCt=c.createContext(BCt);function YCt(e){const t=c.useContext(VCt);return c.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function ZCt(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(BCt):e.components||BCt:YCt(e.components),c.createElement(VCt.Provider,{value:t},e.children)}function GCt(){return GCt=Object.assign?Object.assign.bind():function(e){for(var t=1;t({shortcode:t,args:n})=>{const r=(0,c.useMemo)((()=>zE(t)),[t]),[i,o]=(0,c.useMemo)((()=>{if(!r)return[null,{}];const e=r.toProps?r.toProps(n):{};return[r.preview,e]}),[r,n]);return i?c.createElement(i,GCt({previewProps:e},o)):null},KCt=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"].map((function(e){return"."+e}));class JCt{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(null!=n?e[t][n]=r:e[t]=r)}remove(e,t,n){e&&t&&(null!=n?e[t].splice(n,1):delete e[t])}}class eTt extends JCt{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){const i=this.should_skip,o=this.should_remove,a=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);const s=this.should_skip,l=this.should_remove;if(this.should_skip=i,this.should_remove=o,this.replacement=a,s)return e;if(l)return null}let i;for(i in e){const t=e[i];if(t&&"object"==typeof t)if(Array.isArray(t)){const n=t;for(let t=0;t{o.declarations.set(e.local.name,e)}));break;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":"FunctionDeclaration"===e.type?(e.id&&o.declarations.set(e.id.name,e),t.set(e,o=new aTt(o,!1))):(t.set(e,o=new aTt(o,!1)),"FunctionExpression"===e.type&&e.id&&o.declarations.set(e.id.name,e)),e.params.forEach((t=>{sTt(t).forEach((t=>{o.declarations.set(t,e)}))}));break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"BlockStatement":t.set(e,o=new aTt(o,!0));break;case"ClassDeclaration":case"VariableDeclaration":o.add_declaration(e);break;case"CatchClause":t.set(e,o=new aTt(o,!0)),e.param&&sTt(e.param).forEach((t=>{e.param&&o.declarations.set(t,e.param)}))}},leave(e){t.has(e)&&null!==o&&o.parent&&(o=o.parent)}});for(let e=i.length-1;e>=0;--e){const[t,r]=i[e];t.references.has(r.name)||oTt(t,r.name),t.find_owner(r.name)||n.set(r.name,r)}return{map:t,scope:r,globals:n}}function oTt(e,t){e.references.add(t),e.parent&&oTt(e.parent,t)}class aTt{constructor(e,t){this.parent=e,this.block=t,this.declarations=new Map,this.initialised_declarations=new Set,this.references=new Set}add_declaration(e){if("VariableDeclaration"===e.type)if("var"===e.kind&&this.block&&this.parent)this.parent.add_declaration(e);else{const t=t=>{sTt(t.id).forEach((n=>{this.declarations.set(n,e),t.init&&this.initialised_declarations.add(n)}))};e.declarations.forEach(t)}else e.id&&this.declarations.set(e.id.name,e)}find_owner(e){return this.declarations.has(e)?this:this.parent&&this.parent.find_owner(e)}has(e){return this.declarations.has(e)||!!this.parent&&this.parent.has(e)}}function sTt(e){return lTt(e).map((e=>e.name))}function lTt(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":const r=e=>{"RestElement"===e.type?lTt(e.argument,t):lTt(e.value,t)};e.properties.forEach(r);break;case"ArrayPattern":const i=e=>{e&&lTt(e,t)};e.elements.forEach((e=>{e&&i(e)}));break;case"RestElement":lTt(e.argument,t);break;case"AssignmentPattern":lTt(e.left,t)}return t}function uTt(e){const t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=cTt(n.start,r[0]||t.start),o=cTt(n.end,r[1]||t.end);if(i&&o)return{start:i,end:o}}function cTt(e,t){if(e&&"object"==typeof e){const n="line"in e?dTt(e.line):void 0,r="column"in e?dTt(e.column):void 0;if(n&&void 0!==r)return{line:n,column:r+1,offset:dTt(t)}}}function dTt(e){return"number"==typeof e&&e>-1?e:void 0}function fTt(e){return e&&"object"==typeof e?"position"in e||"type"in e?pTt(e.position):"start"in e||"end"in e?pTt(e):"line"in e||"column"in e?hTt(e):"":""}function hTt(e){return mTt(e&&e.line)+":"+mTt(e&&e.column)}function pTt(e){return hTt(e&&e.start)+"-"+hTt(e&&e.end)}function mTt(e){return e&&"number"==typeof e?e:1}function gTt(e,t){const n=["start","end","loc","range","comments"];let r=-1;for(;++r0&&e.comments.unshift({type:"Block",value:f.join(" "),data:{_mdxIsPragmaComment:!0}}),"classic"===l&&a){if(!i)throw new Error("Missing `pragma` in classic runtime with `pragmaImportSource`");w({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:i.split(".")[0]}}],source:{type:"Literal",value:a}})}for(m of e.body)if("ExportDefaultDeclaration"===m.type)h&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+fTt(uTt(h))+")",{ancestors:[e,m],place:uTt(m),ruleId:"duplicate-layout",source:"recma-document"}),h=m,d.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:OTt(m.declaration)?vTt(m.declaration):m.declaration}]});else if("ExportNamedDeclaration"===m.type&&m.source){const n=m.source;m.specifiers=m.specifiers.filter((function(r){if("default"===r.exported.name){h&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+fTt(uTt(h))+")",{ancestors:[e,m,r],place:uTt(m),ruleId:"duplicate-layout",source:"recma-document"}),h=r;const i=[];if("default"===r.local.name)i.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else{const e={type:"ImportSpecifier",imported:r.local,local:{type:"Identifier",name:"MDXLayout"}};gTt(r.local,e),i.push(e)}const o={type:"Literal",value:n.value};gTt(n,o);const a={type:"ImportDeclaration",specifiers:i,source:o};return gTt(r,a),w(a),!1}return!0})),m.specifiers.length>0&&b(m)}else"ExportNamedDeclaration"===m.type||"ExportAllDeclaration"===m.type?b(m):"ImportDeclaration"===m.type?w(m):"ExpressionStatement"!==m.type||"JSXElement"!==m.expression.type&&"JSXFragment"!==m.expression.type?d.push(m):(p=!0,d.push(...u(m.expression,r,Boolean(h))));p||d.push(...u(void 0,r,Boolean(h))),c.push(["MDXContent","default"]),"function-body"===r&&d.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:g}).map((function(e,t){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}})),...c.map((function(e){return{type:"Property",kind:"init",method:!1,computed:!1,shorthand:"string"==typeof e,key:{type:"Identifier",name:"string"==typeof e?e:e[1]},value:{type:"Identifier",name:"string"==typeof e?e:e[0]}}}))]}}),e.body=d;let v=!1,O=!1;var y;function b(e){if("ExportNamedDeclaration"===e.type)for(m of(e.declaration&&c.push(...iTt(e.declaration).scope.declarations.keys()),e.specifiers))c.push(m.exported.name);w(e)}function w(e){let t,n;if("function-body"===r)if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){e.source;const r={type:"ImportExpression",source:e.source};gTt(e,r),n={type:"AwaitExpression",argument:r},t="ImportDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type||0!==e.specifiers.length?{type:"VariableDeclaration",kind:"const",declarations:"ExportAllDeclaration"===e.type?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++g},init:n}]:yTt(e.specifiers,n)}:{type:"ExpressionStatement",expression:n}}else if(e.declaration)t=e.declaration;else{const n=e.specifiers.filter((function(e){return e.local.name!==e.exported.name})).map((function(e){return{type:"VariableDeclarator",id:e.exported,init:e.local}}));n.length>0&&(t={type:"VariableDeclaration",kind:"const",declarations:n})}else t=e;t&&d.push(t)}(n||"function-body"===r)&&nTt(e,{enter(e){if(("ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ImportDeclaration"===e.type)&&e.source){let t=e.source.value;try{new URL(t)}catch{(t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))&&(t=new URL(t,n).href)}const r={type:"Literal",value:t};return gTt(e.source,r),void(e.source=r)}if("ImportExpression"!==e.type){if("MemberExpression"===e.type&&"object"in e&&"MetaProperty"===e.object.type&&"Identifier"===e.property.type&&"import"===e.object.meta.name&&"meta"===e.object.property.name&&"url"===e.property.name){v=!0;const t={type:"Identifier",name:"_importMetaUrl"};gTt(e,t),this.replace(t)}}else{O=!0;const t={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[e.source],optional:!1};e.source=t}}}),O&&(n||(v=!0),e.body.push((y=n?{type:"Literal",value:n}:{type:"Identifier",name:"_importMetaUrl"},{type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:bTt(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:bTt(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:bTt(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},y]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}))),v&&e.body.unshift({type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:bTt(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export … from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null})};function u(e,t,n){let r={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};n||(r={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:r,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let i=e||{type:"Identifier",name:"undefined"};"JSXFragment"===i.type&&1===i.children.length&&"JSXElement"===i.children[0].type&&(i=i.children[0]);let o=!1;nTt(i,{enter(e){if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return this.skip();("AwaitExpression"===e.type||"ForOfStatement"===e.type&&e.await)&&(o=!0)}});const a={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:r}]}};return[{type:"FunctionDeclaration",async:o,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:i}]}},"program"===t?{type:"ExportDefaultDeclaration",declaration:a}:a]}}const xTt=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function _Tt(e){let t;if(e.value)if("JSXExpressionContainer"===e.value.type){const n=e.value.expression;n.type,t=n}else{const n=e.value;"JSXElement"!==n.type&&n.type,t=n,delete t.raw}else t={type:"Literal",value:!0};const n={type:"Property",key:STt(e.name),value:t,kind:"init",method:!1,shorthand:!1,computed:!1};return ETt(e,n),n}function STt(e){let t;if("JSXMemberExpression"===e.type){const n=STt(e.property);t={type:"MemberExpression",object:STt(e.object),property:n,computed:"Literal"===n.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:woe(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return ETt(e,t),t}function PTt(e){const t=e.split(".");let n,r=-1;for(;++r0){let r=0;for(;r0&&l.push({type:"Property",key:{type:"Identifier",name:"children"},value:t.length>1?{type:"ArrayExpression",elements:t}:t[0],kind:"init",method:!1,shorthand:!1,computed:!1}):d=t,r){d.push({type:"ObjectExpression",properties:l}),u?d.push(u):n.development&&d.push({type:"Identifier",name:"undefined"});const r=t.length>1;if(n.development){o.jsxDEV=!0,c={type:"Identifier",name:"_jsxDEV"},d.push({type:"Literal",value:r});const t={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:n.filePath||""}}]};e.loc&&t.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),d.push(t,{type:"ThisExpression"})}else r?(o.jsxs=!0,c={type:"Identifier",name:"_jsxs"}):(o.jsx=!0,c={type:"Identifier",name:"_jsx"})}else l.length>0?d.unshift({type:"ObjectExpression",properties:l}):d.length>0&&d.unshift({type:"Literal",value:null}),c=PTt(i.jsx||n.pragma||"React.createElement");d.unshift(a);const f={type:"CallExpression",callee:c,arguments:d,optional:!1};ETt(e,f),this.replace(f)}})}(e,{development:t,filePath:r.history[0]}),e.comments&&"Block"===e.comments[0].type&&e.comments[0].data&&e.comments[0].data._mdxIsPragmaComment&&e.comments.shift(),"function-body"===n){let t=0;for(;t0||i.length>0||d.idToInvalidComponentName.size>0){if(r&&(l=!0,o.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(QTt(d.node,"MDXContent")||QTt(d.node,"_createMdxContent"))&&o.push(bTt(["props","components"])),n.length>0||o.length>1)for(const e of o)n.push({type:"SpreadElement",argument:e});let e,t=n.length>0?{type:"ObjectExpression",properties:n}:{type:"LogicalExpression",operator:"||",left:o[0],right:{type:"ObjectExpression",properties:[]}};if(i.length>0&&(e={type:"ObjectPattern",properties:i.map((function(e){return{type:"Property",kind:"init",key:{type:"Identifier",name:"MDXLayout"===e?"wrapper":e},value:{type:"Identifier",name:e},method:!1,shorthand:"MDXLayout"!==e,computed:!1}}))}),d.tags.length>0&&(c.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),QTt(d.node,"_createMdxContent"))for(const[e,t]of[...d.idToInvalidComponentName].sort((function([e],[t]){return e.localeCompare(t)})))c.push({type:"VariableDeclarator",id:{type:"Identifier",name:t},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:e},computed:!0,optional:!1}});e&&c.push({type:"VariableDeclarator",id:e,init:t}),c.length>0&&h.push({type:"VariableDeclaration",kind:"const",declarations:c})}let p;for(p in d.references)if(Object.hasOwn(d.references,p)){const e=p.split(".");let t=0;for(;++t0&&("BlockStatement"!==s.body.type&&(s.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:s.body}]}),s.body.body.unshift(...h)),a.pop()}}}),l&&r&&e.body.unshift(function(e,t){const n=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return"function-body"===t?{type:"VariableDeclaration",kind:"const",declarations:yTt(n,bTt(["arguments",0]))}:{type:"ImportDeclaration",specifiers:n,source:{type:"Literal",value:e}}}(r,n)),u){const n=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],r=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(n.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:TTt([{type:"Literal",value:"\nIt’s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(i.path?"` in `"+i.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),r.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:r,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[TTt(n)]}}]}})}"function-body"===n&&e.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function QTt(e,t){return Boolean(e&&"id"in e&&e.id&&e.id.name===t)}function RTt(e,t){let n=e;for(;n;){if(n.declarations.has(t))return!0;n=n.parent||void 0}return!1}const{stringify:ATt}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const jTt={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},DTt=17,MTt={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:DTt,ClassExpression:DTt,FunctionExpression:DTt,ObjectExpression:DTt,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function ITt(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:r}=t;for(let i=1;i0){e.write(r);for(let t=1;t0){n.VariableDeclarator(r[0],e);for(let t=1;t0){t.write(r),i&&null!=e.comments&<t(t,e.comments,o,r);const{length:s}=a;for(let e=0;e0){for(;i0&&t.write(", ");const e=n[i],r=e.type[6];if("D"===r)t.write(e.local.name,e),i++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),i++}}if(i0)for(let e=0;;){const i=n[e],{name:o}=i.local;if(t.write(o,i),o!==i.exported.name&&t.write(" as "+i.exported.name),!(++e "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:qTt=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:qTt,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),WTt(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:r}=e;t.write("`");const{length:i}=r;for(let e=0;e0){const{elements:n}=e,{length:r}=n;for(let e=0;;){const i=n[e];if(null!=i&&this[i.type](i,t),!(++e0){t.write(r),i&&null!=e.comments&<t(t,e.comments,o,r);const a=","+r,{properties:s}=e,{length:l}=s;for(let e=0;;){const n=s[e];if(i&&null!=n.comments&<t(t,n.comments,o,r),t.write(o),this[n.type](n,t),!(++e0){const{properties:n}=e,{length:r}=n;for(let e=0;this[n[e].type](n[e],t),++e1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),o?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:BTt=function(e,t){const n="in"===e.operator;n&&t.write("("),WTt(t,e.left,e,!1),t.write(" "+e.operator+" "),WTt(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:BTt,ConditionalExpression(e,t){const{test:n}=e,r=t.expressionsPrecedence[n.type];r===DTt||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];n===DTt||n0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}const KTt={};const JTt={JSXAttribute:function(e,t){this[e.name.type](e.name,t),null!==e.value&&void 0!==e.value&&(t.write("="),"Literal"===e.value.type?t.write('"'+e$t(String(e.value.value)).replace(/"/g,""")+'"',e):this[e.value.type](e.value,t))},JSXClosingElement:function(e,t){t.write("")},JSXClosingFragment:function(e,t){t.write("",e)},JSXElement:function(e,t){let n=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++n":">")},JSXOpeningFragment:function(e,t){t.write("<>",e)},JSXSpreadAttribute:function(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")},JSXText:function(e,t){t.write(e$t(e.value).replace(/[<>{}]/g,t$t),e)}};function e$t(e){return e.replace(/&(?=[#a-z])/gi,"&")}function t$t(e){return"<"===e?"<":">"===e?">":"{"===e?"{":"}"}function n$t(e){const{SourceMapGenerator:t}=e;this.compiler=function(e,n){const r=function(e,t){const{SourceMapGenerator:n,filePath:r,handlers:i}=t||KTt,o=n?new n({file:r||".js"}):void 0,a=function(e,t){const n=new HTt(t);return n.generator[e.type](e,n),n.output}(e,{comments:!0,generator:{...ZTt,...i},sourceMap:o||void 0});return{value:a,map:o?o.toJSON():void 0}}(e,t?{SourceMapGenerator:t,filePath:n.path||"unknown.mdx",handlers:JTt}:{handlers:JTt});return n.map=r.map,r.value}}const r$t={}.hasOwnProperty,i$t=__webpack_require__(43057),o$t={}.hasOwnProperty,a$t=/[A-Z]/g,s$t=/-([a-z])/g,l$t=new Set(["td","th"]);function u$t(e,t){const n={};try{i$t(e,(function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(s$t,f$t)),n[r]=t}))}catch(e){throw new Error("Could not parse `style` attribute on `"+t+"`",{cause:e})}return n}function c$t(e){const t={};let n;for(n in e)o$t.call(e,n)&&(t[d$t(n)]=e[n]);return t}function d$t(e){let t=e.replace(a$t,h$t);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function f$t(e,t){return t.toUpperCase()}function h$t(e){return"-"+e.toLowerCase()}const p$t={}.hasOwnProperty,m$t=[];function g$t(e,t){const n=t?[...t].sort(y$t):m$t;n.length>0&&v$t(e,{comments:n,index:0})}function v$t(e,t){if(t.index===t.comments.length)return;const n=[],r=[];let i;for(i in e)if(p$t.call(e,i)){const t=e[i];if(t&&"object"==typeof t&&"comments"!==i)if(Array.isArray(t)){let e=-1;for(;++e0})),r.length>0&&(e.comments=r)}function O$t(e,t,n,r){const i=[];for(;e.comments[e.index]&&y$t(e.comments[e.index],t,n)<1;)i.push(Object.assign({},e.comments[e.index++],r));return i}function y$t(e,t,n){const r=n?"end":"start";return e.range&&t.range?e.range[0]-t.range[n?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[r]?e.loc.start.line-t.loc[r].line||e.loc.start.column-t.loc[r].column:"start"in e&&r in t?e.start-t[r]:Number.NaN}function b$t(e,t){const n=e.data&&e.data.estree,r=n&&n.comments||[];let i;n&&(t.comments.push(...r),g$t(n,n.comments),i=n.body[0]&&"ExpressionStatement"===n.body[0].type&&n.body[0].expression||void 0),i||(i={type:"JSXEmptyExpression"},t.patch(e,i));const o={type:"JSXExpressionContainer",expression:i};return t.inherit(e,o),o}function w$t(e,t){const n=t.schema;let r=n;const i=e.attributes||[];let o=-1;e.name&&"html"===n.space&&"svg"===e.name.toLowerCase()&&(r=Koe,t.schema=r);const a=t.all(e),s=[];for(;++o0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:a}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:a};return t.inherit(e,l),l}const k$t={comment:function(e,t){const n={type:"Block",value:e.value};t.inherit(e,n),t.comments.push(n);const r={type:"JSXEmptyExpression",comments:[Object.assign({},n,{leading:!1,trailing:!0})]};t.patch(e,r);const i={type:"JSXExpressionContainer",expression:r};return t.patch(e,i),i},doctype:function(){},element:function(e,t){const n=t.schema;let r=n;const i=e.properties||{};"html"===n.space&&"svg"===e.tagName.toLowerCase()&&(r=Koe,t.schema=r);const o=t.all(e),a=[];let s,l,u;for(s in i)if(o$t.call(i,s)){let n=i[s];const o=nae(r,s);let c;if(null==n||!1===n||"number"==typeof n&&Number.isNaN(n)||!n&&o.boolean)continue;if(s="react"===t.elementAttributeNameCase&&o.space?oae[o.property]||o.property:o.attribute,Array.isArray(n)&&(n=o.commaSeparated?foe(n):aae(n)),"style"===s){let r="object"==typeof n?n:u$t(String(n),e.tagName);"css"===t.stylePropertyNameCase&&(r=c$t(r));const i=[];let o;for(o in r)o$t.call(r,o)&&i.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:woe(o)?{type:"Identifier",name:o}:{type:"Literal",value:o},value:{type:"Literal",value:String(r[o])},kind:"init"});u=i,c={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:i}}}else if(!0===n)c=null;else{if(t.tableCellAlignToStyle&&l$t.has(e.tagName)&&"align"===s){l=String(n);continue}c={type:"Literal",value:String(n)}}woe(s,{jsx:!0})?a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:s},value:c}):a.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(s)},value:c||{type:"Literal",value:!0},kind:"init"}]}})}if(void 0!==l){u||(u=[],a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:u}}}));const e="css"===t.stylePropertyNameCase?d$t("textAlign"):"textAlign";u.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:woe(e)?{type:"Identifier",name:e}:{type:"Literal",value:e},value:{type:"Literal",value:l},kind:"init"})}t.schema=n;const c={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:a,name:t.createJsxElementName(e.tagName),selfClosing:0===o.length},closingElement:o.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:o};return t.inherit(e,c),c},mdxFlowExpression:b$t,mdxJsxFlowElement:w$t,mdxJsxTextElement:w$t,mdxTextExpression:b$t,mdxjsEsm:function(e,t){const n=e.data&&e.data.estree,r=n&&n.comments||[];n&&(t.comments.push(...r),g$t(n,r),t.esm.push(...n.body))},root:function(e,t){const n=t.all(e),r=[];let i,o=-1;for(;++o on how to migrate"));const r=$ue().use(Tle);"md"!==t.format&&r.use(dCt);const i=t.remarkRehypeOptions||{};return r.use(N$t).use(t.remarkPlugins||[]).use(pue,{...i,allowDangerousHtml:!0,passThrough:[...i.passThrough||[],...L$t]}).use(t.rehypePlugins||[]),"md"===t.format&&r.use(j$t),r.use(A$t,t).use(kTt,t).use($Tt,t),t.jsx||r.use(CTt,t),r.use(n$t,t).use(t.recmaPlugins||[]),r}(r).process(n)}const q$t=Object.getPrototypeOf(B$t).constructor;async function B$t(e,t){return new q$t(String(e))(t)}const V$t=function(){return e=>(Hle(e,"listItem",(e=>("children"in e&&e.children.length>0&&(e.children=e.children.flatMap((e=>"paragraph"===e.type?e.children:e))),e))),e)};function Y$t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z$t(e){for(var t=1;t{const n=new xue({basename:e,value:t}),i=Z$t(Z$t(Z$t({},l),uM),{},{useDynamicImport:!0,remarkPlugins:[fCt,V$t]});try{n.result=(await async function(e,t){const{compiletime:n,runtime:r}=function(e){const{Fragment:t,baseUrl:n,development:r,jsx:i,jsxDEV:o,jsxs:a,useMDXComponents:s,...l}=e||{};if(!t)throw new Error("Expected `Fragment` given to `evaluate`");if(r){if(!o)throw new Error("Expected `jsxDEV` given to `evaluate`")}else{if(!i)throw new Error("Expected `jsx` given to `evaluate`");if(!a)throw new Error("Expected `jsxs` given to `evaluate`")}return{compiletime:{...l,development:r,outputFormat:"function-body",providerImportSource:s?"#":void 0},runtime:{Fragment:t,baseUrl:n,jsx:i,jsxDEV:o,jsxs:a,useMDXComponents:s}}}(t);return B$t(await X$t(e,n),r)}(n,i)).default}catch(e){const t=e instanceof gae?e:new gae(String(e));n.messages.includes(t)||n.messages.push(t),t.fatal=!0}r({file:n})}),[e]),o=y0(i,100),a=kz(n,150);return(0,c.useEffect)((()=>{o(t)}),[t,o]),[a,o]}const K$t=UD("WidgetUUIDPreview",["root"]),J$t=({state:e})=>{const t=(0,c.useMemo)((()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.result}),[e]);if(!t)return null;try{return c.createElement(t,{key:"result"})}catch(e){const t=new gae(String(e));return t.fatal=!0,c.createElement("pre",{key:"error"},c.createElement("code",null,String(t)))}},eQt=e=>{const{value:t,collection:n,field:r}=e,i=Wz(),o=(0,c.useMemo)((()=>({Shortcode:HCt({previewProps:e}),img:zK({collection:n,field:r})})),[n,r,e]),[a,s]=H$t(`editor-${i}.mdx`,null!=t?t:""),[l,u]=(0,c.useState)(null);return(0,c.useEffect)((()=>{if(l!==t){const e=function(e,t){if(We(t))return"";let n=t;for(const i in e){const o=e[i],a=new RegExp(bCt(i,o),"g");let s;for(;null!==(s=a.exec(t))&&3===s.length;){var r;const e=We(s[2])?[]:null===(r=s[2])||void 0===r?void 0:r.split(o.separator),t=(null==e?void 0:e.length)>0?`'${e.join("', '")}'`:"";n=n.replace(s[0],``)}}return n}(WE(),null!=t?t:"");u(e),s(e)}}),[t]),c.createElement("div",{key:"markdown-preview",className:K$t.root},c.createElement(ZCt,{components:o},c.createElement(J$t,{state:a})," "))},tQt={type:"array",items:{anyOf:[{type:"string",enum:[dbt,fbt,hbt,pbt,mbt,gbt,vbt,Obt,ybt,bbt,wbt,kbt,xbt,_bt,Sbt,Pbt,Ebt,Cbt,Tbt,$bt]},{type:"object",properties:{label:{type:"string"},icon:{type:"string"},groups:{type:"array",items:{type:"object",properties:{items:{type:"array",items:{type:"string",enum:[hbt,pbt,mbt,gbt,vbt,Obt,ybt,bbt,wbt,kbt,xbt,_bt,Sbt,Pbt,Ebt,Cbt,Tbt,$bt]}}},required:["items"]}}},required:["label","groups"]}]}},nQt={properties:{default:{type:"string"},media_folder:{type:"string"},public_folder:{type:"string"},choose_url:{type:"boolean"},multiple:{type:"boolean"},show_raw:{type:"boolean"},toolbar_buttons:{type:"object",properties:{main:tQt,empty:tQt,selection:tQt,table_empty:tQt,table_select:tQt}},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}}}},rQt={inject:{props:{validTypes:[plt,alt,slt,llt,ult,clt,dlt,Xst,Vst]}}},iQt={options:{query:{allow:[hdt,Xut]}}},oQt=(({useMdx:e})=>t=>{const{label:n,value:r,duplicate:i,onChange:o,hasErrors:a,collection:s,entry:l,field:u,errors:d,forSingleList:f,disabled:h,t:p}=t,[m,g]=(0,c.useState)(null!=r?r:""),v=(0,c.useMemo)((()=>i?null!=r?r:"":m),[m,i,r]),[O,y]=(0,c.useState)(!1),b=kz(O,150),[w,k]=(0,c.useState)(!1),x=(0,c.useCallback)((()=>{y(!0)}),[]),_=(0,c.useCallback)((()=>{y(!1)}),[]),S=(0,c.useCallback)((t=>{const n=qCt(t,{useMdx:e});n!==v&&(g(n),o(n))}),[v,o]),P=(0,c.useCallback)((e=>{const t=e.target.value;t!==v&&(g(t),o(t))}),[v,o]),E=(0,c.useCallback)((()=>{}),[]),C=(0,c.useCallback)((()=>{u.show_raw&&k(!0)}),[u.show_raw]),T=(0,c.useCallback)((()=>{k(!1)}),[]),[$,Q]=ACt(v,{useMdx:e,mode:w?"raw":"rich"}),R=(0,c.useMemo)((()=>Q?c.createElement(P_t,{key:"plate-editor",initialValue:$,collection:s,entry:l,field:u,useMdx:e,controlProps:t,onChange:S,onFocus:x,onBlur:_}):null),[s,t,b,u,E,_,S,x,a,O,Q,$,v,w]),A=(0,c.useRef)(null);return c.createElement(Ife,{label:n,errors:d,forSingleList:f,hint:u.hint,noHightlight:!0,disabled:h,rootClassName:qD(bGe.root,h&&bGe.disabled,!1!==u.required&&bGe.required,a&&bGe.error,f&&bGe["for-single-list"])},w?c.createElement(yGe,{key:"raw-editor",ref:A,value:v,disabled:h,onChange:P,placeholder:p("editor.editorWidgets.markdown.type"),rootClassName:bGe["raw-editor"]}):R,u.show_raw?c.createElement("div",{className:bGe.controls},c.createElement(GD,{"data-testid":"rich-editor",size:"small",color:w?"secondary":"primary",variant:w?"outlined":"contained",onClick:T,disabled:h,"aria-label":"toggle to rich text mode"},p("editor.editorWidgets.markdown.richText")),c.createElement(GD,{"data-testid":"rich-editor",size:"small",color:w?"primary":"secondary",variant:w?"contained":"outlined",onClick:C,disabled:h,"aria-label":"toggle to markdown mode"},p("editor.editorWidgets.markdown.markdown"))):null)})({useMdx:!1}),aQt=()=>({name:"markdown",controlComponent:oQt,previewComponent:eQt,options:{schema:nQt}}),sQt=UD("WidgetNumber",["root","error","required","disabled","for-single-list","input","with-prefix","with-suffix","prefix","suffix"]),lQt=({field:e,value:t,label:n,errors:r,hasErrors:i,disabled:o,forSingleList:a,duplicate:s,onChange:l})=>{const[u,d]=(0,c.useState)(null!=t?t:""),f=(0,c.useMemo)((()=>s?null!=t?t:"":u),[u,s,t]),h=(0,c.useRef)(null),p=(0,c.useCallback)((t=>{const n=e.value_type;let r=t.target.value;"float"===n?r=parseFloat(t.target.value):"int"===n&&(r=parseInt(t.target.value,10)),"string"!=typeof r&&isNaN(r)&&(r=""),l(r),d(r)}),[e,l]),m=(0,c.useMemo)((()=>{var t;return null!==(t=e.min)&&void 0!==t?t:""}),[e.min]),g=(0,c.useMemo)((()=>{var t;return null!==(t=e.max)&&void 0!==t?t:""}),[e.max]),v=(0,c.useMemo)((()=>e.step?"int"===e.value_type?Math.round(e.step):e.step:1),[e.step,e.value_type]),O=(0,c.useMemo)((()=>{var t;return null!==(t=e.prefix)&&void 0!==t?t:""}),[e.prefix]),y=(0,c.useMemo)((()=>{var t;return null!==(t=e.suffix)&&void 0!==t?t:""}),[e.suffix]);return c.createElement(Ife,{inputRef:h,label:n,errors:r,hint:e.hint,forSingleList:a,cursor:"text",disabled:o,rootClassName:qD(sQt.root,o&&sQt.disabled,!1!==e.required&&sQt.required,i&&sQt.error,a&&sQt["for-single-list"])},c.createElement(Y0,{type:"number",inputRef:h,value:f,min:m,max:g,step:v,disabled:o,onChange:p,inputClassName:qD(sQt.input,Ne(O)&&sQt["with-prefix"],Ne(y)&&sQt["with-suffix"]),startAdornment:Ne(O)?c.createElement("div",{className:sQt.prefix},O):null,endAdornment:Ne(y)?c.createElement("div",{className:sQt.suffix},y):null}))},uQt=UD("WidgetNumberPreview",["root"]),cQt=({value:e})=>c.createElement("div",{className:uQt.root},e),dQt={properties:{step:{type:"number"},value_type:{type:"string"},min:{type:"number"},max:{type:"number"},default:{type:"number"},prefix:{type:"string"},suffix:{type:"string"}}},fQt=({field:e,value:t,t:n})=>{var r,i,o;return!(null!==(r=!!e.pattern)&&void 0!==r&&r||!t)&&function(e,t,n,r,i){var o,a,s;let l;const u="string"==typeof e?parseFloat(e):e;switch(!0){case!isNaN(u)&&!1!==t&&!1!==n&&(un):l={type:FE.RANGE,message:i("editor.editorControlPane.widget.range",{fieldLabel:null!==(o=r.label)&&void 0!==o?o:r.name,minValue:t,maxValue:n})};break;case!isNaN(u)&&!1!==t&&un:l={type:FE.RANGE,message:i("editor.editorControlPane.widget.max",{fieldLabel:null!==(s=r.label)&&void 0!==s?s:r.name,maxValue:n})};break;default:l=!1}return l}(t,null!==(i=e.min)&&void 0!==i&&i,null!==(o=e.max)&&void 0!==o&&o,e,n)},hQt=()=>({name:"number",controlComponent:lQt,previewComponent:cQt,options:{validator:fQt,schema:dQt}}),pQt=UD("WidgetObject",["root","list-root","error","disabled","required","for-single-list","open","expand","expand-icon","summary","fields","error-message"]),mQt=({field:e,openLabel:t,closedLabel:n,children:r,errors:i,hasChildErrors:o,hint:a,disabled:s,forSingleList:l})=>{var u;const d=(0,c.useMemo)((()=>i.length>0),[i.length]),[f,h]=(0,c.useState)(null===(u=!e.collapsed)||void 0===u||u),p=(0,c.useCallback)((()=>{h((e=>!e))}),[]);return c.createElement("div",{"data-testid":`object-field-${null==t?void 0:t.trim()}`,className:qD(pQt.root,s&&pQt.disabled,(d||o)&&pQt.error,f&&pQt.open,!1!==e.required&&pQt.required,l&&pQt["for-single-list"])},c.createElement("button",{"data-testid":"expand-button",className:pQt.expand,onClick:p,"aria-label":f?"collapse":"expand"},c.createElement(EY,{className:pQt["expand-icon"]}),c.createElement(Dfe,{key:"label",hasErrors:d||o,className:pQt.summary,cursor:"pointer",variant:"inline",disabled:s},f?t.trim():n.trim())),c.createElement(Gfe,{in:f,appear:!1},c.createElement("div",{"data-testid":"object-fields",className:pQt.fields},r)),a?c.createElement(Afe,{key:"hint",hasErrors:d,cursor:"pointer",disabled:s},a):null,c.createElement(doe,{errors:i,className:pQt["error-message"]}))},gQt=({label:e,field:t,fieldsErrors:n,submitted:r,forList:i,forSingleList:o,duplicate:a,locale:s,path:l,i18n:u,errors:d,disabled:f,value:h={},listItemPath:p})=>{const m=(0,c.useMemo)((()=>t.fields),[t.fields]),g=(0,c.useMemo)((()=>{const n=t.summary;return n?`${e} - ${jx(n,null,"",h,m)}`:e}),[t.summary,m,e,h]),v=wz(l,n,u,!1),O=(0,c.useMemo)((()=>{var e;return null!==(e=null==m?void 0:m.map(((e,t)=>{let d=e.name,g=l;const v=h&&h[d];if(i&&1===m.length){var O;const t=l.split(".");d=null!==(O=t.pop())&&void 0!==O?O:e.name,g=t.join(".")}return c.createElement(l3,{key:t,field:e,fieldName:d,value:v,fieldsErrors:n,submitted:r,parentPath:g,disabled:f||a,parentDuplicate:a,locale:s,i18n:u,forSingleList:o,listItemPath:p})})))&&void 0!==e?e:null}),[m,l,h,i,n,r,f,a,s,u,o,p]);return m.length?i?c.createElement("div",{className:pQt["list-root"]},O):c.createElement(mQt,{key:"object-control-wrapper",field:t,openLabel:e,closedLabel:g,errors:d,hasChildErrors:v,hint:t.hint,disabled:f,forSingleList:o},O):c.createElement("div",{key:"no-fields-found"},"No field(s) defined for this widget")},vQt=UD("WidgetObjectPreview",["root"]),OQt=({field:e})=>{var t;return c.createElement("div",{className:vQt.root},null!==(t=e.renderedFields)&&void 0!==t?t:null)},yQt={properties:{default:{type:"object"},collapsed:{type:"boolean"},summary:{type:"string"},i18n:{type:"boolean"},fields:{type:"array",items:{type:"object"}}}},bQt=()=>({name:"object",controlComponent:gQt,previewComponent:OQt,options:{schema:yQt}});var wQt=__webpack_require__(61132),kQt=__webpack_require__.n(wQt);function xQt({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=c.useRef(void 0!==e),[o,a]=c.useState(t);return[i?e:o,c.useCallback((e=>{i||a(e)}),[])]}function _Qt(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function SQt(e,t){for(let n=0;n{let u=a?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=_Qt(u));const c=u?e.filter((e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=_Qt(r)),"start"===i?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"==typeof r?c.slice(0,r):c}}(),EQt=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function CQt(e){const{unstable_isActiveElementInListbox:t=EQt,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:p,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=PQt,filterSelectedOptions:O=!1,freeSolo:y=!1,getOptionDisabled:b,getOptionKey:w,getOptionLabel:k=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:x,handleHomeEndKeys:_=!e.freeSolo,id:S,includeInputInList:P=!1,inputValue:E,isOptionEqualToValue:C=((e,t)=>e===t),multiple:T=!1,onChange:$,onClose:Q,onHighlightChange:R,onInputChange:A,onOpen:j,open:D,openOnFocus:M=!1,options:I,readOnly:z=!1,selectOnFocus:W=!e.freeSolo,value:N}=e,L=nZ(S);let F=k;F=e=>{const t=k(e);return"string"!=typeof t?String(t):t};const U=c.useRef(!1),X=c.useRef(!0),q=c.useRef(null),B=c.useRef(null),[V,Y]=c.useState(null),[Z,G]=c.useState(-1),H=i?0:-1,K=c.useRef(H),[J,ee]=xQt({controlled:N,default:d,name:u}),[te,ne]=xQt({controlled:E,default:"",name:u,state:"inputValue"}),[re,ie]=c.useState(!1),oe=c.useCallback(((e,t)=>{if(!(T?J.length!O||!(T?J:[J]).some((t=>null!==t&&C(e,t))))),{inputValue:ce&&le?"":te,getOptionLabel:F}):[],he=(e=>{const t=c.useRef({});return c.useEffect((()=>{t.current=e})),t.current})({filteredOptions:fe,value:J,inputValue:te});c.useEffect((()=>{const e=J!==he.value;re&&!e||y&&!e||oe(null,J)}),[J,oe,re,he.value,y]);const pe=ae&&fe.length>0&&!z,me=vM((e=>{-1===e?q.current.focus():V.querySelector(`[data-tag-index="${e}"]`).focus()}));c.useEffect((()=>{T&&Z>J.length-1&&(G(-1),me(-1))}),[J,T,Z,me]);const ge=vM((({event:e,index:t,reason:r="auto"})=>{if(K.current=t,-1===t?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${L}-option-${t}`),R&&R(e,-1===t?null:fe[t],r),!B.current)return;const i=B.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let o=B.current;if("listbox"!==B.current.getAttribute("role")&&(o=B.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===t)return void(o.scrollTop=0);const a=B.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(x?1.3:0){if(!de)return;const o=function(e,t){if(!B.current||e<0||e>=fe.length)return-1;let n=e;for(;;){const r=B.current.querySelector(`[data-option-index="${n}"]`),i=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if(n="next"===t?(n+1)%fe.length:(n-1+fe.length)%fe.length,n===e)return-1}}((()=>{const e=fe.length-1;if("reset"===t)return H;if("start"===t)return 0;if("end"===t)return e;const n=K.current+t;return n<0?-1===n&&P?-1:g&&-1!==K.current||Math.abs(t)>1?0:e:n>e?n===e+1&&P?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ge({index:o,reason:i,event:e}),r&&"reset"!==t)if(-1===o)q.current.value=te;else{const e=F(fe[o]);q.current.value=e,0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&q.current.setSelectionRange(te.length,e.length)}})),Oe=c.useCallback((()=>{if(!de)return;if((()=>{if(-1!==K.current&&he.filteredOptions&&he.filteredOptions.length!==fe.length&&he.inputValue===te&&(T?J.length===he.value.length&&he.value.every(((e,t)=>F(J[t])===F(e))):(e=he.value,t=J,(e?F(e):"")===(t?F(t):"")))){const e=he.filteredOptions[K.current];if(e&&fe.some((t=>F(t)===F(e))))return!0}var e,t;return!1})())return;const e=T?J[0]:J;if(0!==fe.length&&null!=e){if(B.current)if(null==e)K.current>=fe.length-1?ge({index:fe.length-1}):ge({index:K.current});else{const t=fe[K.current];if(T&&t&&-1!==SQt(J,(e=>C(t,e))))return;const n=SQt(fe,(t=>C(t,e)));-1===n?ve({diff:"reset"}):ge({index:n})}}else ve({diff:"reset"})}),[fe.length,!T&&J,O,ve,ge,de,te,T]),ye=vM((e=>{JD(B,e),e&&Oe()}));c.useEffect((()=>{Oe()}),[Oe]);const be=e=>{ae||(se(!0),ue(!0),j&&j(e))},we=(e,t)=>{ae&&(se(!1),Q&&Q(e,t))},ke=(e,t,n,r)=>{if(T){if(J.length===t.length&&J.every(((e,n)=>e===t[n])))return}else if(J===t)return;$&&$(e,t,n,r),ee(t)},xe=c.useRef(!1),_e=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(T){o=Array.isArray(J)?J.slice():[];const e=SQt(o,(e=>C(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}oe(e,o),ke(e,o,i,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||we(e,i),(!0===a||"touch"===a&&xe.current||"mouse"===a&&!xe.current)&&q.current.blur()},Se=(e,t)=>{if(!T)return;""===te&&we(e,"toggleInput");let n=Z;-1===Z?""===te&&"previous"===t&&(n=J.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===J.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===J.length||"previous"===t&&-1===n)return-1;const e=V.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),G(n),me(n)},Pe=e=>{U.current=!0,ne(""),A&&A(e,"","clear"),ke(e,T?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Z&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(G(-1),me(-1)),229!==t.which))switch(t.key){case"Home":de&&_&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&_&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"ArrowLeft":Se(t,"previous");break;case"ArrowRight":Se(t,"next");break;case"Enter":if(-1!==K.current&&de){const e=fe[K.current],n=!!b&&b(e);if(t.preventDefault(),n)return;_e(t,e,"selectOption"),r&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else y&&""!==te&&!1===ce&&(T&&t.preventDefault(),_e(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):l&&(""!==te||T&&J.length>0)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(T&&!z&&""===te&&J.length>0){const e=-1===Z?J.length-1:Z,n=J.slice();n.splice(e,1),ke(t,n,"removeOption",{option:J[e]})}break;case"Delete":if(T&&!z&&""===te&&J.length>0&&-1!==Z){const e=Z,n=J.slice();n.splice(e,1),ke(t,n,"removeOption",{option:J[e]})}}},Ce=e=>{ie(!0),M&&!U.current&&be(e)},Te=e=>{t(B)?q.current.focus():(ie(!1),X.current=!0,U.current=!1,o&&-1!==K.current&&de?_e(e,fe[K.current],"blur"):o&&y&&""!==te?_e(e,te,"blur","freeSolo"):s&&oe(e,J),we(e,"blur"))},$e=e=>{const t=e.target.value;te!==t&&(ne(t),ue(!1),A&&A(e,t,"input")),""===t?f||T||ke(e,null,"clear"):be(e)},Qe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));K.current!==t&&ge({event:e,index:t,reason:"mouse"})},Re=e=>{ge({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),xe.current=!0},Ae=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));_e(e,fe[t],"selectOption"),xe.current=!1},je=e=>t=>{const n=J.slice();n.splice(e,1),ke(t,n,"removeOption",{option:J[e]})},De=e=>{ae?we(e,"toggleInput"):be(e)},Me=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==L&&e.preventDefault()},Ie=e=>{e.currentTarget.contains(e.target)&&(q.current.focus(),W&&X.current&&q.current.selectionEnd-q.current.selectionStart==0&&q.current.select(),X.current=!1)},ze=e=>{p||""!==te&&ae||De(e)};let We=y&&te.length>0;We=We||(T?J.length>0:null!==J);let Ne=fe;return x&&(new Map,Ne=fe.reduce(((e,t,n)=>{const r=x(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),p&&re&&Te(),{getRootProps:(e={})=>HD({"aria-owns":pe?`${L}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:Me,onClick:Ie}),getInputLabelProps:()=>({id:`${L}-label`,htmlFor:L}),getInputProps:()=>({id:L,value:te,onBlur:Te,onFocus:Ce,onChange:$e,onMouseDown:ze,"aria-activedescendant":de?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pe?`${L}-listbox`:void 0,"aria-expanded":pe,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:De}),getTagProps:({index:e})=>HD({key:e,"data-tag-index":e,tabIndex:-1},!z&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${L}-listbox`,"aria-labelledby":`${L}-label`,ref:ye,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(T?J:[J]).some((e=>null!=e&&C(t,e))),i=!!b&&b(t);return{key:null!=(n=null==w?void 0:w(t))?n:F(t),tabIndex:-1,role:"option",id:`${L}-option-${e}`,onMouseMove:Qe,onClick:Ae,onTouchStart:Re,"data-option-index":e,"aria-disabled":i,"aria-selected":r}},id:L,inputValue:te,value:J,dirty:We,expanded:de&&V,popupOpen:de,focused:re||-1!==Z,anchorEl:V,setAnchorEl:Y,focusedTag:Z,groupedOptions:Ne}}function TQt(){return TQt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[u,d]=(0,c.useState)(""),f=y0(l,200),h=(0,c.useCallback)((e=>{d(e),f(e)}),[f]),p=(0,c.useCallback)((e=>{if(null===e)return Array.isArray(t)?void s([]):void s(void 0);s("value"in e?e.value:e.map((e=>e.value)))}),[s,t]),m=(0,c.useCallback)((e=>{e.stopPropagation(),s(Array.isArray(t)?[]:void 0),d(""),f("")}),[f,s,t]),g=(0,c.useMemo)((()=>n.map(QQt)),[n]),v=(0,c.useMemo)((()=>g.reduce(((e,t)=>(e[t.value]=t,e)),{})),[g]),O=(0,c.useMemo)((()=>ze(t)?t:"string"==typeof t?v[t]:t.map((e=>v[e])).filter((e=>Boolean(e)))),[v,t]),{getRootProps:y,getInputProps:b,getListboxProps:w,getOptionProps:k,groupedOptions:x,focused:_,popupOpen:S,anchorEl:P,setAnchorEl:E}=CQt({options:g,value:O,inputValue:u,multiple:Array.isArray(t),disabled:r,openOnFocus:!0,onChange:(e,t)=>p(t),onInputChange:(e,t)=>h(t),filterOptions:e=>e,clearOnBlur:!1,clearOnEscape:!1}),C=GN((0,c.useRef)(),E),T=b().ref,$=GN(T,o),Q=(0,c.useCallback)((()=>{var e,t;null===(e=T.current)||void 0===e||e.blur(),null===(t=T.current)||void 0===t||t.click()}),[T]),R=null==P?void 0:P.clientWidth;return c.createElement(c.Fragment,null,c.createElement("div",TQt({},y(),{ref:C,className:qD($Qt.root,_&&$Qt.focused,r&&$Qt.disabled),"data-testid":"autocomplete"}),c.createElement("div",{className:$Qt["input-wrapper"]},e,c.createElement("input",TQt({},b(),{ref:$,className:$Qt.input,"data-testid":"autocomplete-input"}))),c.createElement("div",{className:$Qt["button-wrapper"]},a,c.createElement(FN,{icon:zZ,variant:"text",size:"small",disabled:r,onClick:Q,rootClassName:$Qt.button,iconClassName:$Qt["button-icon"],"aria-label":"open options"}),i?null:c.createElement(FN,{icon:yG,variant:"text",size:"small",disabled:r,onClick:m,rootClassName:$Qt.button,iconClassName:$Qt["button-icon"],"aria-label":"clear"}))),P&&c.createElement(xY,{open:S,anchorEl:P,style:{width:R},className:$Qt.popper},c.createElement("ul",TQt({},w(),{className:qD($Qt.options,"CMS_Scrollbar_root","CMS_Scrollbar_secondary")}),x.length>0?x.map(((e,n)=>{const{label:r,value:i}=QQt(e),o=Array.isArray(t)?t.includes(i):t===i;return c.createElement("li",TQt({},k({option:e,index:n}),{key:n,className:qD($Qt.option,o&&$Qt["option-selected"]),"data-testid":`autocomplete-option-${i}`}),c.createElement("span",{className:$Qt["option-label"]},r),o?c.createElement("span",{className:$Qt.checkmark},c.createElement(TH,{className:$Qt["checkmark-icon"],"aria-hidden":"true"})):null)})):c.createElement("div",{className:$Qt.nothing},"Nothing found."))))},AQt=UD("WidgetRelation",["root","error","required","disabled","for-single-list","values","loading"]),jQt=({value:e,field:t,duplicate:n,config:r,locale:i,label:o,errors:a,hasErrors:s,disabled:l,forSingleList:u,onChange:d,entry:f})=>{const[h,p]=(0,c.useState)(e),m=(0,c.useMemo)((()=>n?e:h),[h,n,e]),[g,v]=(0,c.useState)([]),O=pz((e=>tI(e,t.collection))),y=(0,c.useMemo)((()=>IP(O,f.slug)),[f.slug,O]),b=(0,c.useMemo)((()=>{var e;return null!==(e=t.multiple)&&void 0!==e&&e}),[t.multiple]),[w,k]=(0,c.useState)([]),[x,_]=(0,c.useState)(null),S=(0,c.useMemo)((()=>!x),[x]),P=(0,c.useCallback)((e=>{if(!x)return;const n=t.search_fields,r=t.file,o=t.options_length||20;let a;if(r)a=iC(x.find((e=>e.slug===r)),n,e);else{const t=$C(x,n);a=QC(be.filter(e,t,{extract:e=>CC(e.field,e)}).sort(oC).map((e=>e.original)))}let s=kQt()(zJ(a,t,i,y),(e=>e.value));void 0!==o&&o>0&&(s=s.slice(0,o)),k(s)}),[x,t,i,y]);(0,c.useEffect)((()=>{if(!S||!O)return;let n=!0;return(async()=>{const o=DC(r),a=await o.listAllEntries(O,r);if(n){_(a);const n=zJ(a,t,i,y);if(e){const t=n.reduce(((e,t)=>(e[t.value]=t,e)),{}),r="string"==typeof e?e in t?[e]:[]:e.filter((e=>e&&e in t)),i=r.map((e=>t[e]));v(i)}k(n)}})(),()=>{n=!1}}),[O,r,S,t,i,y]);const E=(0,c.useMemo)((()=>{let e=function(e,t){return kQt()(e.concat(t),(e=>e.value))}(g,w);const n=t.options_length||20;return void 0!==n&&n>0&&(e=e.slice(0,n)),e}),[t.options_length,g,w]),C=(0,c.useMemo)((()=>E.reduce(((e,t)=>(e[t.value]=t,e)),{})),[E]),T=(0,c.useMemo)((()=>{let e=WJ(m,E,b);return b&&!e&&(e=[]),e}),[m,b,E]),$=(0,c.useRef)(null),Q=(0,c.useCallback)((e=>{if(!e)return p(e),void d(e);if(Array.isArray(e)){const t=e.filter((e=>e&&e in C)),n=t.map((e=>C[e]));v(n),p(t),d(t)}else{if(!(e in C))return p(null),void d(null);v([C[e]]),p(e),d(e)}}),[d,C]),R=(0,c.useMemo)((()=>{var e;return null===(e=t.required)||void 0===e||e}),[t.required]);return c.createElement(Ife,{inputRef:$,label:o,errors:a,noPadding:!s,hint:t.hint,forSingleList:u,cursor:"text",disabled:l,rootClassName:qD(AQt.root,l&&AQt.disabled,!1!==t.required&&AQt.required,s&&AQt.error,u&&AQt["for-single-list"])},c.createElement(RQt,{label:Array.isArray(T)&&T.length>0?c.createElement("div",{className:AQt.values},T.map((e=>{var t;const n=C[e];return c.createElement(uJ,{key:e,noWrap:!0,disabled:l},null!==(t=null==n?void 0:n.label)&&void 0!==t?t:e)}))):null,inputRef:$,value:T,options:E,disabled:l,required:R,displayValue:e=>{if(!e||Array.isArray(e))return"";const t=C[e];return t?t.label:""},endAdornment:S?c.createElement(eK,{key:"loading-indicator",className:AQt.loading,"data-testid":"relation-loading-indicator",size:"small"}):null,onQuery:P,onChange:Q}))},DQt=UD("WidgetRelationPreview",["root"]),MQt=({value:e})=>c.createElement("div",{className:DQt.root},e),IQt={properties:{default:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},collection:{type:"string"},value_field:{type:"string"},search_fields:{type:"array",minItems:1,items:{type:"string"}},file:{type:"string"},display_fields:{type:"array",minItems:1,items:{type:"string"}},multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},options_length:{type:"integer"}},oneOf:[{required:["collection","value_field","search_fields"]},{required:["collection","valueField","searchFields"]}]},zQt=({field:e,value:t,t:n})=>{var r;const i=e.min,o=e.max;if(!e.multiple||"string"==typeof t)return!1;return UE(n,null!==(r=e.label)&&void 0!==r?r:e.name,t,i,o)||!1},WQt=function(){return{name:"relation",controlComponent:jQt,previewComponent:MQt,options:{validator:zQt,schema:IQt}}},NQt={properties:{default:{oneOf:[{type:"string"},{type:"number"},{type:"array",items:{oneOf:[{type:"string"},{type:"number"}]}}]},options:{type:"array",items:{oneOf:[{type:"string"},{type:"number"},{type:"object",properties:{label:{type:"string"},value:{oneOf:[{type:"string"},{type:"number"}]}},required:["label","value"]}]}},multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"}},required:["options"]},LQt=UD("WidgetSelect",["root","error","required","disabled","for-single-list","input","values"]);function FQt(e){return"string"==typeof e||"number"==typeof e?{label:`${e}`,value:e}:e}const UQt=({label:e,field:t,value:n,errors:r,hasErrors:i,disabled:o,forSingleList:a,duplicate:s,onChange:l})=>{var u,d;const[f,h]=(0,c.useState)(n),p=(0,c.useMemo)((()=>s?n:f),[f,s,n]),m=(0,c.useRef)(null),g=(0,c.useMemo)((()=>t.options),[t.options]),v=(0,c.useMemo)((()=>{var e;return null!==(e=t.multiple)&&void 0!==e&&e}),[t.multiple]),O=(0,c.useMemo)((()=>g.map(FQt).filter(Boolean)),[g]),y=(0,c.useMemo)((()=>O.reduce(((e,t)=>(e[`${t.value}`]=t,e)),{})),[O]),b=(0,c.useMemo)((()=>O.map((e=>({label:e.label,value:`${e.value}`})))),[O]),w=(0,c.useCallback)((e=>{var n,r;const i=null!==(n=t.multiple)&&void 0!==n&&n,o=i&&Array.isArray(e)?!(null!=e&&e.length):ze(e);if((null===(r=t.required)||void 0===r||r)&&o&&i)h([]),l([]);else if(o)h(""),l("");else if("string"==typeof e||"number"==typeof e){var a;const t=y[e],n=null!==(a=null==t?void 0:t.value)&&void 0!==a?a:"";h(n),l(n)}else if(i){const t=e.map((e=>{var t;const n=y[e];return null!==(t=null==n?void 0:n.value)&&void 0!==t?t:""}));h(t),l(t)}}),[t.multiple,t.required,l,y]),k=(0,c.useMemo)((()=>p?Array.isArray(p)?p.map((e=>`${e}`)):`${p}`:v?[]:""),[v,p]),[x,_]=(0,c.useState)(!1),S=(0,c.useCallback)((e=>{_(e)}),[]);return c.createElement(Ife,{inputRef:m,label:e,errors:r,noPadding:!i,hint:t.hint,forSingleList:a,cursor:"pointer",disabled:o,disableClick:x,rootClassName:qD(LQt.root,o&&LQt.disabled,!1!==t.required&&LQt.required,i&&LQt.error,a&&LQt["for-single-list"])},c.createElement(gye,{label:Array.isArray(k)?c.createElement("div",{className:LQt.values},k.map((e=>{var t,n;const r=null!==(t=null===(n=y[e])||void 0===n?void 0:n.label)&&void 0!==t?t:e;return c.createElement(uJ,{key:e,disabled:o},r)}))):null!==(u=null===(d=y[k])||void 0===d?void 0:d.label)&&void 0!==u?u:k,ref:m,value:k,options:b,required:t.required,disabled:o,onChange:w,onOpenChange:S,rootClassName:LQt.input}))},XQt=UD("WidgetSelectPreview",["root"]),qQt=({values:e})=>c.createElement("ul",null,e.map(((e,t)=>c.createElement("li",{key:t},e)))),BQt=({value:e})=>e?c.createElement("div",{className:XQt.root},"string"==typeof e||"number"==typeof e?e:c.createElement(qQt,{values:e})):c.createElement("div",null),VQt=({field:e,value:t,t:n})=>{var r;const i=e.min,o=e.max;if(!e.multiple||"string"==typeof t)return!1;return UE(n,null!==(r=e.label)&&void 0!==r?r:e.name,t,i,o)||!1},YQt=()=>({name:"select",controlComponent:UQt,previewComponent:BQt,options:{validator:VQt,schema:NQt}}),ZQt={properties:{default:{type:"string"},prefix:{type:"string"},suffix:{type:"string"}}},GQt=UD("WidgetString",["root","error","required","disabled","for-single-list","input","with-prefix","with-suffix","prefix","suffix"]),HQt=({value:e,label:t,errors:n,hasErrors:r,disabled:i,field:o,forSingleList:a,duplicate:s,controlled:l,onChange:u})=>{const d=(0,c.useMemo)((()=>null!=e?e:""),[e]),[f,h]=(0,c.useState)(d),p=(0,c.useMemo)((()=>l||s?d:f),[l,s,d,f]),m=(0,c.useRef)(null),g=(0,c.useCallback)((e=>{u(e.target.value),h(e.target.value)}),[u]),v=(0,c.useMemo)((()=>{var e;return null!==(e=o.prefix)&&void 0!==e?e:""}),[o.prefix]),O=(0,c.useMemo)((()=>{var e;return null!==(e=o.suffix)&&void 0!==e?e:""}),[o.suffix]);return c.createElement(Ife,{inputRef:m,label:t,errors:n,hint:o.hint,forSingleList:a,cursor:"text",disabled:i,rootClassName:qD(GQt.root,i&&GQt.disabled,!1!==o.required&&GQt.required,r&&GQt.error,a&&GQt["for-single-list"])},c.createElement(Y0,{type:"text",inputRef:m,value:p,disabled:i,onChange:g,inputClassName:qD(GQt.input,Ne(v)&&GQt["with-prefix"],Ne(O)&&GQt["with-suffix"]),startAdornment:Ne(v)?c.createElement("div",{className:GQt.prefix},v):null,endAdornment:Ne(O)?c.createElement("div",{className:GQt.suffix},O):null}))},KQt=UD("WidgetStringPreview",["root"]),JQt=({value:e=""})=>c.createElement("div",{className:KQt.root},e),eRt=()=>({name:"string",controlComponent:HQt,previewComponent:JQt,options:{schema:ZQt}}),tRt={properties:{default:{type:"string"}}},nRt=UD("WidgetText",["root","error","required","disabled","for-single-list","input"]),rRt=({label:e,value:t,errors:n,duplicate:r,hasErrors:i,disabled:o,field:a,forSingleList:s,controlled:l,onChange:u})=>{const d=(0,c.useMemo)((()=>null!=t?t:""),[t]),[f,h]=(0,c.useState)(d),p=(0,c.useMemo)((()=>l||r?d:f),[l,r,d,f]),m=(0,c.useRef)(null),g=(0,c.useCallback)((e=>{u(e.target.value),h(e.target.value)}),[u]);return c.createElement(Ife,{inputRef:m,label:e,errors:n,noPadding:!i,hint:a.hint,forSingleList:s,cursor:"text",disabled:o,rootClassName:qD(nRt.root,o&&nRt.disabled,!1!==a.required&&nRt.required,i&&nRt.error,s&&nRt["for-single-list"])},c.createElement(yGe,{ref:m,value:p,disabled:o,inputClassName:nRt.input,onChange:g}))},iRt=UD("WidgetTextPreview",["root"]),oRt=({value:e})=>c.createElement("div",{className:iRt.root},e),aRt=()=>({name:"text",controlComponent:rRt,previewComponent:oRt,options:{schema:tRt}}),sRt={properties:{allow_regenerate:{type:"boolean"},prefix:{type:"string"}}};var lRt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}))}));lRt.displayName="Refresh";const uRt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,cRt=UD("WidgetUUID",["root","error","required","disabled","for-single-list","refresh-button","input"]),dRt=({value:e,label:t,errors:n,hasErrors:r,disabled:i,field:o,forSingleList:a,duplicate:s,controlled:l,onChange:u})=>{const[d,f]=(0,c.useState)(null!=e?e:""),h=(0,c.useMemo)((()=>l||s?null!=e?e:"":d),[l,s,e,d]),p=(0,c.useRef)(null),m=(0,c.useMemo)((()=>{var e;return null!==(e=o.prefix)&&void 0!==e?e:""}),[o.prefix]),g=Ne(m)&&h.startsWith(m)?h.replace(m,""):h,v=(0,c.useCallback)((e=>{f(e),u(e)}),[u]),O=(0,c.useCallback)((()=>{v(`${m}${PA()}`)}),[v,m]);(0,c.useEffect)((()=>{let e=!0;return!We(g)&&function(e){return"string"==typeof e&&uRt.test(e)}(g)||setTimeout((()=>{e&&O()}),100),()=>{e=!1}}),[O,g]);const y=(0,c.useMemo)((()=>{var e;return null===(e=o.allow_regenerate)||void 0===e||e}),[o.allow_regenerate]);return c.createElement(Ife,{inputRef:p,label:t,errors:n,hint:o.hint,forSingleList:a,cursor:"text",disabled:i,endAdornment:y?c.createElement(FN,{icon:lRt,"data-testid":"generate-new-uuid",title:"Generate new UUID",onClick:O,variant:"text",rootClassName:cRt["refresh-button"],"aria-label":"generate new uuid"}):null,rootClassName:qD(cRt.root,i&&cRt.disabled,!1!==o.required&&cRt.required,r&&cRt.error,a&&cRt["for-single-list"])},c.createElement(Y0,{type:"text",inputRef:p,value:h,disabled:i,readonly:!0,inputClassName:cRt.input}))},fRt=UD("WidgetUUIDPreview",["root"]),hRt=({value:e=""})=>c.createElement("div",{className:fRt.root},e),pRt=()=>({name:"uuid",controlComponent:dRt,previewComponent:hRt,options:{schema:sRt}});function mRt(e){return wD()({},DE("en"),DE(e))}const gRt=Cj(((e,t)=>{switch(t.type){case ZT:e.isFetching=!0;break;case GT:e.user=t.payload;break;case HT:e.error=t.payload&&t.payload.toString();break;case KT:e.isFetching=!1;break;case JT:e.user=void 0,e.isFetching=!1}}),{isFetching:!1,user:void 0,error:void 0}),vRt={};function ORt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yRt(e){for(var t=1;t{const e=localStorage.getItem(jRt);if(e)try{const t=JSON.parse(e),n={};return Object.entries(t).forEach((([e,t])=>{const r={};wS()(Object.values(t),["index"]).forEach((e=>{const{key:t,direction:n}=e;r[t]={key:t,direction:n}})),n[e]=r})),n}catch(e){return{}}return{}}));function IRt(e){if(e){const t={};Object.keys(e).forEach((n=>{const r=n,i=(e[r]?Object.values(e[r]):[]).map(((e,t)=>RRt(RRt({},e),{},{index:t})));i.forEach((e=>{Lk(t,`${r}.${e.key}`,e)}))})),localStorage.setItem(jRt,JSON.stringify(t))}else localStorage.removeItem(jRt)}const zRt=$Rt()((()=>{const e=localStorage.getItem(DRt);return e&&SH.includes(e)?e:(localStorage.setItem(DRt,xH),xH)}));function WRt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NRt(e){for(var t=1;t{switch(t.type){case iQ:e.isScrolling=!e.isScrolling,localStorage.setItem(YT,`${e.isScrolling}`);break;case oQ:e.isScrolling=t.payload,localStorage.setItem(YT,`${e.isScrolling}`)}}),{isScrolling:!0});function nAt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rAt(e){for(var t=1;t(e[t.name]=t,e)),{}):e},config:(e=wRt,t)=>{switch(t.type){case e$:return yRt(yRt({},e),{},{isFetching:!0});case t$:return{config:t.payload.config,originalConfig:t.payload.originalConfig,isFetching:!1,error:void 0};case n$:return yRt(yRt({},e),{},{isFetching:!1,error:t.payload.toString()});default:return e}},cursors:function(e={cursorsByType:{collectionEntries:{}}},t){switch(t.type){case s$:return{cursorsByType:{collectionEntries:xRt(xRt({},e.cursorsByType.collectionEntries),{},{[t.payload.collection]:j_.create(t.payload.cursor).store})}};case h$:case g$:case c$:{const n=xRt({},e.cursorsByType.collectionEntries);return delete n[t.payload.collection],{cursorsByType:{collectionEntries:n}}}default:return e}},editorialWorkflow:function(e=CRt,t){switch(t.type){case OQ:return PRt(PRt({},e),{},{entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:PRt(PRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isFetching:!0})})});case $Q:case RQ:case bQ:const n=PRt({},e.entries);delete n[`${t.payload.collection}.${t.payload.slug}`];const r=[...e.ids],i=r.indexOf(`${t.payload.collection}.${t.payload.slug}`);return i>=0&&r.splice(i,1),PRt(PRt({},e),{},{ids:r,entries:n});case yQ:return PRt(PRt({},e),{},{entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.entry.slug}`]:t.payload.entry})});case wQ:return PRt(PRt({},e),{},{isFetching:!0});case kQ:{const n=PRt({},e.entries);return t.payload.entries.forEach((e=>{n[`${e.collection}.${e.slug}`]=PRt(PRt({},e),{},{isFetching:!1})})),PRt(PRt({},e),{},{entries:n,ids:t.payload.entries.map((e=>e.slug))})}case xQ:return We(t.payload.slug)?e:PRt(PRt({},e),{},{entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:PRt(PRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isPersisting:!0})})});case _Q:{if(We(t.payload.slug))return e;const n=[...e.ids];return n.includes(t.payload.entry.slug)||n.push(t.payload.entry.slug),PRt(PRt({},e),{},{ids:n,entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.entry.slug}`]:PRt(PRt({},t.payload.entry),{},{isPersisting:!1})})})}case SQ:return We(t.payload.slug)?e:PRt(PRt({},e),{},{entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:PRt(PRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isPersisting:!1})})});case PQ:return PRt(PRt({},e),{},{entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:PRt(PRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isUpdatingStatus:!0})})});case EQ:return PRt(PRt({},e),{},{entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:PRt(PRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{status:t.payload.newStatus,isUpdatingStatus:!1})})});case CQ:return PRt(PRt({},e),{},{entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:PRt(PRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isUpdatingStatus:!1})})});case TQ:return PRt(PRt({},e),{},{entries:PRt(PRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:PRt(PRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isPublishing:!0})})});default:return e}},entries:function(e={entries:{},pages:{},sort:MRt(),viewStyle:zRt()},t){switch(t.type){case t$:{const r=t.payload.config,i={},o={},a={};for(const e of r.collections){if(e.sortable_fields&&e.sortable_fields.default){var n;const t=e.sortable_fields.default.field;i[e.name]={[t]:{key:t,direction:null!==(n=e.sortable_fields.default.direction)&&void 0!==n?n:qT}}}if(e.view_filters&&e.view_filters.default){const t=e.view_filters.default,n=e.view_filters.filters.find((e=>e.name===t)),r={};n&&(r[n.id]=RRt(RRt({},n),{},{active:!0})),a[e.name]=r}if(e.view_groups&&e.view_groups.default){const t=e.view_groups.default,n=e.view_groups.groups.find((e=>e.name===t)),r={};n&&(r[n.id]=RRt(RRt({},n),{},{active:!0})),o[e.name]=r}}return RRt(RRt({},e),{},{sort:i,group:o,filter:a})}case r$:{var r;const n=t.payload,i=`${n.collection}.${n.slug}`,o=RRt({},null!==(r=e.entries[i])&&void 0!==r?r:{});return o.isFetching=!0,RRt(RRt({},e),{},{entries:RRt(RRt({},e.entries),{},{[i]:o})})}case i$:{const n=t.payload;return RRt(RRt({},e),{},{entries:RRt(RRt({},e.entries),{},{[`${n.collection}.${n.entry.slug}`]:n.entry})})}case a$:{const n=t.payload,r=RRt({},e.pages);if(n.collection in r){var i;const e=RRt({},null!==(i=r[n.collection])&&void 0!==i?i:{});e.isFetching=!0,r[n.collection]=e}return RRt(RRt({},e),{},{pages:r})}case s$:{var o,a;const n=t.payload,r=n.entries,i=n.page,s=n.append,l=RRt({},e.entries);r.forEach((e=>{l[`${n.collection}.${e.slug}`]=RRt(RRt({},e),{},{isFetching:!1})}));const u=RRt({},e.pages);return u[n.collection]={page:null!=i?i:void 0,ids:s?[...null!==(o=null===(a=u[n.collection])||void 0===a?void 0:a.ids)&&void 0!==o?o:[],...r.map((e=>e.slug))]:[...r.map((e=>e.slug))],isFetching:!1},RRt(RRt({},e),{},{entries:l,pages:u})}case l$:{const n=RRt({},e.pages);if(t.meta.collection in n){var s;const e=RRt({},null!==(s=n[t.meta.collection])&&void 0!==s?s:{});e.isFetching=!1,n[t.meta.collection]=e}return RRt(RRt({},e),{},{pages:n})}case o$:{var l;const n=t.payload,r=`${n.collection}.${n.slug}`;return RRt(RRt({},e),{},{entries:RRt(RRt({},e.entries),{},{[r]:RRt(RRt({},null!==(l=e.entries[r])&&void 0!==l?l:{}),{},{isFetching:!1,error:n.error.message})})})}case sQ:{const n=t.payload.entries,r=RRt({},e.entries);return n.forEach((e=>{r[`${e.collection}.${e.slug}`]=RRt(RRt({},e),{},{isFetching:!1})})),RRt(RRt({},e),{},{entries:r})}case R$:{var u;const n=t.payload,r=n.collectionName,i=n.entrySlug,o=RRt({},e.entries);delete o[`${r}.${i}`];const a=RRt({},e.pages),s=RRt({},null!==(u=a[r])&&void 0!==u?u:{});return s.ids||(s.ids=[]),s.ids=s.ids.filter((e=>e!==n.entrySlug)),a[r]=s,RRt(RRt({},e),{},{entries:o,pages:a})}case u$:{var c;const n=t.payload,{collection:r,key:i,direction:o}=n,a=RRt({},e.sort);a[r]={[i]:{key:i,direction:o}};const s=RRt({},e.pages),l=RRt({},null!==(c=s[r])&&void 0!==c?c:{});return l.isFetching=!0,delete l.page,s[r]=l,IRt(a),RRt(RRt({},e),{},{sort:a,pages:s})}case g$:case h$:case c$:{const n=t.payload,{collection:r}=n,i=RRt({},e.entries);n.entries.forEach((e=>{i[`${e.collection}.${e.slug}`]=RRt(RRt({},e),{},{isFetching:!1})}));const o=RRt({},e.pages),a=n.entries.map((e=>e.slug));return o[r]={page:1,ids:a,isFetching:!1},RRt(RRt({},e),{},{entries:i,pages:o})}case d$:{var d,f;const n=t.payload,{collection:r,key:i}=n,o=RRt({},e.sort),a=RRt({},null!==(d=o[r])&&void 0!==d?d:{});delete a[i],o[r]=a;const s=RRt({},e.pages),l=RRt({},null!==(f=s[r])&&void 0!==f?f:{});return l.isFetching=!1,delete l.page,s[r]=l,IRt(o),RRt(RRt({},e),{},{sort:o,pages:s})}case f$:{var h;const n=t.payload,{collection:r,filter:i}=n;if(!i.id)return e;const o=RRt({},e.filter),a=RRt({},null!==(h=o[r])&&void 0!==h?h:{});let s;return s=i.id in a?RRt({},a[i.id]):RRt({},i),s.active=!s.active,a[i.id]=s,o[r]=a,RRt(RRt({},e),{},{filter:o})}case p$:{var p,m;const n=t.payload,{collection:r,filter:i}=n;if(!i.id)return e;const o=RRt({},e.filter),a=RRt({},null!==(p=o[r])&&void 0!==p?p:{});delete a[i.id],o[r]=a;const s=RRt({},e.pages),l=RRt({},null!==(m=s[r])&&void 0!==m?m:{});return l.isFetching=!1,s[r]=l,RRt(RRt({},e),{},{filter:o,pages:s})}case m$:{const n=t.payload,{collection:r,group:i}=n;if(!i.id)return e;const o=RRt({},e.group);let a;return a=o[r]&&i.id in o[r]?RRt({},o[r][i.id]):RRt({},i),a.active=!a.active,o[r]={[i.id]:a},RRt(RRt({},e),{},{group:o})}case v$:{var g,v;const n=t.payload,{collection:r,group:i}=n;if(!i.id)return e;const o=RRt({},e.group),a=RRt({},null!==(g=o[r])&&void 0!==g?g:{});delete a[i.id],o[r]=a;const s=RRt({},e.pages),l=RRt({},null!==(v=s[r])&&void 0!==v?v:{});return l.isFetching=!1,s[r]=l,RRt(RRt({},e),{},{group:o,pages:s})}case D$:{const n=t.payload,{style:r}=n;return(O=r)?localStorage.setItem(DRt,O):localStorage.removeItem(DRt),RRt(RRt({},e),{},{viewStyle:r})}case $$:{const n=t.payload,{collectionName:r}=n,i=RRt({},e.pages);return delete i[r],RRt(RRt({},e),{},{pages:i})}default:return e}var O},entryDraft:function(e=FRt,t){switch(t.type){case O$:{const n=NRt({},e),r=NRt(NRt({},t.payload.entry),{},{newRecord:!1}),i=t.payload.collection,o=yP(i,r.slug),a=o?o.fields:"fields"in i?i.fields:[];return NRt(NRt({},n),{},{entry:NRt(NRt({},r),{},{data:nP(a,void 0,r.data)}),original:fE()(r),fieldsErrors:{},hasChanged:!1,key:PA()})}case y$:{const n=NRt({},e);delete n.localBackup;const r=NRt(NRt({},t.payload),{},{newRecord:!0});return NRt(NRt({},n),{},{entry:r,original:fE()(r),fieldsErrors:{},hasChanged:!1,key:PA()})}case E$:{const t=e.localBackup;if(!t)return e;const n=null==t?void 0:t.entry;delete NRt({},e).localBackup;const r=NRt(NRt({},n),{},{newRecord:!(null!=n&&n.path)});return NRt(NRt({},e),{},{entry:r,original:fE()(r),fieldsErrors:{},hasChanged:!0,key:PA()})}case C$:{const n=NRt({},e);delete n.localBackup;const r=NRt(NRt({},t.payload),{},{newRecord:!0});return NRt(NRt({},n),{},{entry:r,original:fE()(r),fieldsErrors:{},hasChanged:!0,key:PA()})}case b$:return FRt;case S$:{const{entry:n}=t.payload,r={entry:n};return NRt(NRt({},e),{},{localBackup:r})}case P$:{const t=NRt({},e);return delete t.localBackup,t}case w$:{var n,r,i,o,a,s;if(!e.entry)return e;const{data:p}=t.payload,m=Lk(e,"entry.data",p);let g=!tP()(null===(n=m.entry)||void 0===n?void 0:n.meta,null===(r=m.original)||void 0===r?void 0:r.meta)||!tP()(null===(i=m.entry)||void 0===i?void 0:i.data,null===(o=m.original)||void 0===o?void 0:o.data);const v=null!==(a=null===(s=m.entry)||void 0===s?void 0:s.i18n)&&void 0!==a?a:{};for(const e in v){var l,u,c,d,f,h;g=g||!tP()(null===(l=m.entry)||void 0===l||null===(u=l.i18n)||void 0===u||null===(c=u[e])||void 0===c?void 0:c.data,null===(d=m.original)||void 0===d||null===(f=d.i18n)||void 0===f||null===(h=f[e])||void 0===h?void 0:h.data)}return NRt(NRt({},m),{},{hasChanged:!m.original||g})}case k$:{var p,m,g,v,O,y;if(!e.entry)return e;const{path:n,field:r,value:i,i18n:o,isMeta:a}=t.payload;let s=Lk(e,`entry.${(a?["meta"]:o&&tx(o.currentLocale,o.defaultLocale)||["data"]).join(".")}.${n}`,i);o&&(s=ux(s,r,o.locales,o.defaultLocale,n));let l=!tP()(null===(p=s.entry)||void 0===p?void 0:p.meta,null===(m=s.original)||void 0===m?void 0:m.meta)||!tP()(null===(g=s.entry)||void 0===g?void 0:g.data,null===(v=s.original)||void 0===v?void 0:v.data);const u=null!==(O=null===(y=s.entry)||void 0===y?void 0:y.i18n)&&void 0!==O?O:{};for(const e in u){var b,w,k,x,_,S;l=l||!tP()(null===(b=s.entry)||void 0===b||null===(w=b.i18n)||void 0===w||null===(k=w[e])||void 0===k?void 0:k.data,null===(x=s.original)||void 0===x||null===(_=x.i18n)||void 0===_||null===(S=_[e])||void 0===S?void 0:S.data)}return NRt(NRt({},s),{},{hasChanged:!s.original||l})}case x$:{const{path:n,i18n:r,isMeta:i}=t.payload,o=NRt({},e.fieldsErrors),a=`${(i?["meta"]:r&&tx(r.currentLocale,r.defaultLocale)||["data"]).join(".")}.${n}`,s=[];return Object.keys(o).forEach((e=>{(e===a||e.startsWith(a))&&s.push(e)})),s.forEach((e=>{delete o[e]})),NRt(NRt({},e),{},{fieldsErrors:o})}case _$:{const{path:n,errors:r,i18n:i,isMeta:o}=t.payload,a=NRt({},e.fieldsErrors),s=`${(o?["meta"]:i&&tx(i.currentLocale,i.defaultLocale)||["data"]).join(".")}.${n}`;return 0===r.length?delete a[s]:a[s]=t.payload.errors,NRt(NRt({},e),{},{fieldsErrors:a})}case T$:case xQ:return e.entry?NRt(NRt({},e),{},{entry:NRt(NRt({},e.entry),{},{isPersisting:!0})}):e;case Q$:case SQ:return e.entry?NRt(NRt({},e),{},{entry:NRt(NRt({},e.entry),{},{isPersisting:!1})}):e;case PQ:return e.entry?NRt(NRt({},e),{},{entry:NRt(NRt({},e.entry),{},{isUpdatingStatus:!0})}):e;case CQ:case EQ:return e.entry?NRt(NRt({},e),{},{entry:NRt(NRt({},e.entry),{},{isUpdatingStatus:!1})}):e;case TQ:return e.entry?NRt(NRt({},e),{},{entry:NRt(NRt({},e.entry),{},{isPublishing:!0})}):e;case $Q:case QQ:return e.entry?NRt(NRt({},e),{},{entry:NRt(NRt({},e.entry),{},{isPublishing:!1})}):e;case $$:case _Q:{if(!e.entry)return e;const n=NRt({},e);delete n.localBackup;const r=NRt(NRt({},e.entry),{},{slug:t.payload.slug,isPersisting:!1});return NRt(NRt({},n),{},{hasChanged:!1,entry:r,original:fE()(r)})}case R$:{if(!e.entry)return e;const t=NRt({},e);delete t.localBackup;const n=NRt(NRt({},e.entry),{},{isPersisting:!1});return NRt(NRt({},t),{},{hasChanged:!1,entry:n,original:fE()(n)})}case A$:{if(!e.entry)return e;const n=e.entry.mediaFiles.filter((e=>e.id!==t.payload.id));return n.unshift(t.payload),NRt(NRt({},e),{},{hasChanged:!0,entry:NRt(NRt({},e.entry),{},{mediaFiles:n})})}case j$:{if(!e.entry)return e;const n=e.entry.mediaFiles.filter((e=>e.id!==t.payload.id));return NRt(NRt({},e),{},{hasChanged:!0,entry:NRt(NRt({},e.entry),{},{mediaFiles:n})})}default:return e}},globalUI:(e=BRt,t)=>{if(t.type.includes("REQUEST"))return XRt(XRt({},e),{},{isFetching:!0});if(t.type.includes("SUCCESS")||t.type.includes("FAILURE"))return XRt(XRt({},e),{},{isFetching:!1});switch(t.type){case vQ:return XRt(XRt({},e),{},{useOpenAuthoring:!0});case gQ:return localStorage.setItem("color-theme",t.payload.toLowerCase()),XRt(XRt({},e),{},{theme:t.payload.toLowerCase()});default:return e}},mediaLibrary:function(e=GRt,t){switch(t.type){case F$:{const{controlID:n,forImage:r,forFolder:i,config:o,collection:a,collectionFile:s,field:l,value:u,alt:c,replaceIndex:d,insertOptions:f}=t.payload,h=o||{};return YRt(YRt({},e),{},{isVisible:!0,forImage:Boolean(r),forFolder:Boolean(i),controlID:n,config:h,collection:a,collectionFile:s,field:l,value:u,alt:c,replaceIndex:d,insertOptions:f})}case U$:return YRt(YRt({},e),{},{isVisible:!1,forImage:!1,forFolder:!1,controlID:void 0,config:void 0,collection:void 0,collectionFile:void 0,field:void 0,value:void 0,alt:void 0,replaceIndex:void 0,insertOptions:void 0});case X$:{const{mediaPath:n,alt:r}=t.payload,i=e.controlID;if(!i)return e;const o=e.value;if(!Array.isArray(o))return YRt(YRt({},e),{},{controlMedia:YRt(YRt({},e.controlMedia),{},{[i]:{path:n,alt:r}})});const a=e.replaceIndex,s=Array.isArray(n)?n:[n],l=o;return"number"==typeof a?l[a]=s[0]:l.push(...s),YRt(YRt({},e),{},{controlMedia:YRt(YRt({},e.controlMedia),{},{[i]:{path:l}})})}case q$:{const n=t.payload.controlID,r=YRt({},e.controlMedia);return delete r[n],YRt(YRt({},e),{},{controlMedia:r})}case B$:return YRt(YRt({},e),{},{isLoading:!0,isPaginating:t.payload.page>1});case V$:{var n;const{files:r=[],page:i,canPaginate:o,dynamicSearch:a,dynamicSearchQuery:s}=t.payload,l=r.map((e=>YRt(YRt({},e),{},{key:PA()})));return YRt(YRt({},e),{},{isLoading:!1,isPaginating:!1,page:null!=i?i:1,hasNextPage:Boolean(o&&r.length>0),dynamicSearch:Boolean(a),dynamicSearchQuery:null!=s?s:"",dynamicSearchActive:!!s,files:i&&i>1?(null!==(n=e.files)&&void 0!==n?n:[]).concat(l):l})}case Y$:return YRt(YRt({},e),{},{isLoading:!1});case Z$:return YRt(YRt({},e),{},{isPersisting:!0});case G$:{const{file:n,currentFolder:r}=t.payload,i=YRt(YRt({},n),{},{key:PA()}),o=e.files,a=(0,Re.dirname)(n.path);if(!r||a===r){const t=[i,...o];return YRt(YRt({},e),{},{files:t,isPersisting:!1})}if(!o.find((e=>e.isDirectory&&e.path===a))){const t=[{name:(0,Re.basename)(a),id:a,path:a,isDirectory:!0},...o];return YRt(YRt({},e),{},{files:t,isPersisting:!1})}return YRt(YRt({},e),{},{isPersisting:!1})}case H$:return YRt(YRt({},e),{},{isPersisting:!1});case K$:return YRt(YRt({},e),{},{isDeleting:!0});case J$:{const{file:n}=t.payload,{key:r,id:i}=n,o=e.files.filter((e=>r?e.key!==r:e.id!==i)),a=YRt({},e.displayURLs);return delete a[i],YRt(YRt({},e),{},{files:o,displayURLs:a,isDeleting:!1})}case eQ:return YRt(YRt({},e),{},{isDeleting:!1});case tQ:return YRt(YRt({},e),{},{displayURLs:YRt(YRt({},e.displayURLs),{},{[t.payload.key]:YRt(YRt({},e.displayURLs[t.payload.key]),{},{isFetching:!0})})});case nQ:return YRt(YRt({},e),{},{displayURLs:YRt(YRt({},e.displayURLs),{},{[t.payload.key]:{url:t.payload.url,isFetching:!1}})});case rQ:{var r;const n=YRt({},e.displayURLs[t.payload.key]);return delete n.url,n.isFetching=!1,n.err=null===(r=t.payload.err)||void 0===r||r,YRt(YRt({},e),{},{displayURLs:YRt(YRt({},e.displayURLs),{},{[t.payload.key]:n})})}default:return e}},medias:(e=eAt,t)=>{switch(t.type){case M$:{const n=t.payload,r=KRt({},e);return n.forEach((e=>{r[e.path]={asset:e,isLoading:!1,error:null}})),r}case I$:{const n=t.payload;return KRt(KRt({},e),{},{[n.path]:{asset:n,isLoading:!1,error:null}})}case z$:{const n=t.payload,r=KRt({},e);return delete r[n],r}case W$:{const{path:n}=t.payload;return KRt(KRt({},e),{},{[n]:KRt(KRt({},e[n]),{},{isLoading:!0})})}case N$:{const{path:n}=t.payload;return KRt(KRt({},e),{},{[n]:KRt(KRt({},e[n]),{},{isLoading:!1,error:null})})}case L$:{const{path:n,error:r}=t.payload;return KRt(KRt({},e),{},{[n]:KRt(KRt({},e[n]),{},{isLoading:!1,error:r})})}default:return e}},scroll:tAt,search:(e=oAt,t)=>{switch(t.type){case fQ:return oAt;case aQ:{const{page:n,searchTerm:r,searchCollections:i}=t.payload;return rAt(rAt({},e),{},{isFetching:!0,term:r,collections:i,page:n})}case sQ:{const{entries:n,page:r}=t.payload,i=n.map((e=>({collection:e.collection,slug:e.slug})));return rAt(rAt({},e),{},{isFetching:!1,page:r,entryIds:!r||isNaN(r)||0===r?i:e.entryIds.concat(i)})}case dQ:case lQ:{const{error:n}=t.payload;return rAt(rAt({},e),{},{isFetching:!1,error:n})}case uQ:{const{searchTerm:n,request:r}=t.payload,i=[...e.requests];return r&&i.push(r),rAt(rAt({},e),{},{isFetching:!0,term:n,requests:i})}case"CLEAR_REQUESTS":e.requests=e.requests.filter((e=>e.expires>=new Date));break;case cQ:return rAt(rAt({},e),{},{isFetching:!1})}return e},status:Cj(((e,t)=>{switch(t.type){case hQ:e.isFetching=!0;break;case pQ:e.isFetching=!1,e.status=t.payload.status;break;case mQ:e.isFetching=!1,e.error=t.payload.error}}),{isFetching:!1,status:{auth:{status:!0},api:{status:!0,statusPage:""}},error:void 0})};function sAt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lAt(e){for(var t=1;t{let n=[];return r=>i=>{if(!i)return null;if("WAIT_UNTIL_ACTION"===(null==i?void 0:i.type))return n.push(i),null;const o=r(i);return function(r){const i=[],o=[];for(const e of n)e.predicate(r)?i.push(e):o.push(e);n=o;for(const n of i)n.run(e,t,r)}(i),o}},dAt=function(e){var t,n=function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new dA);return n&&(function(e){return"boolean"==typeof e}(n)?r.push(GR):r.push(GR.withExtraArgument(n.extraArgument))),r}(e)},r=e||{},i=r.reducer,o=void 0===i?void 0:i,a=r.middleware,s=void 0===a?n():a,l=r.devTools,u=void 0===l||l,c=r.preloadedState,d=void 0===c?void 0:c,f=r.enhancers,h=void 0===f?void 0:f;if("function"==typeof o)t=o;else{if(!function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=qR(o)}var p=s;"function"==typeof p&&(p=p(n));var m=VR.apply(void 0,p),g=BR;u&&(g=uA(sA({trace:!1},"object"==typeof u&&u)));var v=new fA(m),O=v;return Array.isArray(h)?O=JR([m],h):"function"==typeof h&&(O=h(v)),XR(t,d,g.apply(void 0,O))}({reducer:qR(lAt(lAt({},aAt),{},{snackbar:AA})),middleware:e=>e({immutableCheck:!1,serializableCheck:!1}).concat(cAt)}),fAt="nc-root";NC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0;const hAt=xT((function(e){return{locale:(t=e.config.config,null!==(n=null==t?void 0:t.locale)&&void 0!==n?n:"en"),config:e.config.config};var t,n}))((({locale:e,config:t})=>{const n=LD();return function({name:e,content:t}){(0,c.useEffect)((()=>{const n=document.querySelector("head");if(!n)return;const r=document.createElement("meta");return r.setAttribute("name",e),r.setAttribute("content",t),n.appendChild(r),()=>{n.removeChild(r)}}),[t,e])}({name:"viewport",content:"width=device-width, initial-scale=1.0"}),t?c.createElement(IC.oc,{locale:e,messages:mRt(e)},c.createElement(l4,{showBackup:!0,config:t,t:n},c.createElement(IT,null,c.createElement(K9,null)))):null}));function pAt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class mAt{constructor(e,t){pAt(this,"unpublishedEntries",void 0),pAt(this,"unpublishedEntry",void 0),pAt(this,"unpublishedEntryDataFile",void 0),pAt(this,"unpublishedEntryMediaFile",void 0),pAt(this,"updateUnpublishedEntryStatus",void 0),pAt(this,"publishUnpublishedEntry",void 0),pAt(this,"deleteUnpublishedEntry",void 0),pAt(this,"getDeployPreview",void 0)}}function gAt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vAt(e){for(var t=1;t{jE(e,uoe[e])}))),dAt.dispatch(gD(t,(function(e){"git-gateway"!==e.backend.name&&dAt.dispatch(((e,t)=>{const n=t();if(!n.config.config)return;const r=DC(n.config.config);return e(MA()),Promise.resolve(r.currentUser()).then((t=>{t?(t.useOpenAuthoring&&e(jA()),e(IA(t))):e({type:KT})})).catch((t=>{console.error(t),t instanceof Error&&e(zA(t)),e(WA())}))}))}))),(0,MC.s)(function(){const e=document.getElementById(fAt);if(e)return e;const t=document.createElement("div");return t.id=fAt,document.body.appendChild(t),t}()).render(c.createElement(r,null))},currentBackend:DC});"undefined"!=typeof window&&(window.CMS=yAt,window.useState=window.useState||c.useState,window.useMemo=window.useMemo||c.useMemo,window.useEffect=window.useEffect||c.useEffect,window.useCallback=window.useCallback||c.useCallback,window.h=window.h||c.createElement,window.useEntries=window.useEntries||yz,window.useFolderSupport=window.useFolderSupport||bz,window.useHasChildErrors=window.useHasChildErrors||wz,window.useIsMediaAsset=window.useIsMediaAsset||xz,window.useMediaAsset=window.useMediaAsset||Sz,window.useMediaFiles=window.useMediaFiles||Tz,window.useMediaInsert=window.useMediaInsert||$z,window.useUUID=window.useUUID||Wz,window.useData=window.useData||cz,window.useNavigate=window.useNavigate||ne,window.useTheme=window.useTheme||f4);const bAt=yAt})(),__webpack_exports__})())); \ No newline at end of file +`,STe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o,...a}=n,[s,l]=c.useState([]),u=c.useRef(0),d=c.useRef(null);c.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const f=c.useRef(!1),h=h3(),p=c.useRef(null),m=c.useRef(null),g=c.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,(0,lM.jsx)(_Te,{classes:{ripple:XN(i.ripple,yTe.ripple),rippleVisible:XN(i.rippleVisible,yTe.rippleVisible),ripplePulsate:XN(i.ripplePulsate,yTe.ripplePulsate),child:XN(i.child,yTe.child),childLeaving:XN(i.childLeaving,yTe.childLeaving),childPulsate:XN(i.childPulsate,yTe.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,d.current=a}),[i]),v=c.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})},h.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[r,g,h]),O=c.useCallback((()=>{v({},{pulsate:!0})}),[v]),y=c.useCallback(((e,t)=>{if(h.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void h.start(0,(()=>{y(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),d.current=t}),[h]);return c.useImperativeHandle(t,(()=>({pulsate:O,start:v,stop:y})),[O,v,y]),(0,lM.jsx)(xTe,{className:XN(yTe.root,i.root,o),ref:m,...a,children:(0,lM.jsx)(OTe,{component:null,exit:!0,children:s})})})),PTe=STe;function ETe(e){return cB("MuiButtonBase",e)}const CTe=dB("MuiButtonBase",["root","disabled","focusVisible"]),TTe=Pq("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${CTe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$Te=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:m,onClick:g,onContextMenu:v,onDragLeave:O,onFocus:y,onFocusVisible:b,onKeyDown:w,onKeyUp:k,onMouseDown:x,onMouseLeave:_,onMouseUp:S,onTouchEnd:P,onTouchMove:E,onTouchStart:C,tabIndex:T=0,TouchRippleProps:$,touchRippleRef:Q,type:R,...A}=n,j=c.useRef(null),D=fTe.use(),M=rB(D.ref,Q),[I,z]=c.useState(!1);l&&I&&z(!1),c.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),j.current.focus()}})),[]);const W=D.shouldMount&&!u&&!l;c.useEffect((()=>{I&&f&&!u&&D.pulsate()}),[u,f,I,D]);const N=QTe(D,"start",x,d),L=QTe(D,"stop",v,d),F=QTe(D,"stop",O,d),U=QTe(D,"stop",S,d),X=QTe(D,"stop",(e=>{I&&e.preventDefault(),_&&_(e)}),d),q=QTe(D,"start",C,d),B=QTe(D,"stop",P,d),V=QTe(D,"stop",E,d),Y=QTe(D,"stop",(e=>{p3(e.target)||z(!1),m&&m(e)}),!1),Z=T3((e=>{j.current||(j.current=e.currentTarget),p3(e.target)&&(z(!0),b&&b(e)),y&&y(e)})),G=()=>{const e=j.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},H=T3((e=>{f&&!e.repeat&&I&&" "===e.key&&D.stop(e,(()=>{D.start(e)})),e.target===e.currentTarget&&G()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&G()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))})),K=T3((e=>{f&&" "===e.key&&I&&!e.defaultPrevented&&D.stop(e,(()=>{D.pulsate(e)})),k&&k(e),g&&e.target===e.currentTarget&&G()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let J=s;"button"===J&&(A.href||A.to)&&(J=p);const ee={};"button"===J?(ee.type=void 0===R?"button":R,ee.disabled=l):(A.href||A.to||(ee.role="button"),l&&(ee["aria-disabled"]=l));const te=rB(t,j),ne={...n,centerRipple:i,component:s,disabled:l,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:T,focusVisible:I},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=qN({root:["root",t&&"disabled",n&&"focusVisible"]},ETe,i);return n&&r&&(o.root+=` ${r}`),o})(ne);return(0,lM.jsxs)(TTe,{as:J,className:XN(re.root,a),ownerState:ne,onBlur:Y,onClick:g,onContextMenu:L,onFocus:Z,onKeyDown:H,onKeyUp:K,onMouseDown:N,onMouseLeave:X,onMouseUp:U,onDragLeave:F,onTouchEnd:B,onTouchMove:V,onTouchStart:q,ref:te,tabIndex:l?-1:T,type:R,...ee,...A,children:[o,W?(0,lM.jsx)(PTe,{ref:M,center:i,...$}):null]})}));function QTe(e,t,n,r=!1){return T3((i=>(n&&n(i),r||e[t](i),!0)))}const RTe=$Te;function ATe(e){return cB("MuiIconButton",e)}const jTe=dB("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),DTe=Pq(RTe,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${LB(n.color)}`],n.edge&&t[`edge${LB(n.edge)}`],t[`size${LB(n.size)}`]]}})(Cq((({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}))),Cq((({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}}))),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${jTe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})))),MTe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium",...c}=n,d={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,size:u},f=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e;return qN({root:["root",n&&"disabled","default"!==r&&`color${LB(r)}`,i&&`edge${LB(i)}`,`size${LB(o)}`]},ATe,t)})(d);return(0,lM.jsx)(DTe,{className:XN(f.root,o),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,...c,ownerState:d,children:i})})),ITe=MTe;function zTe(e){return cB("MuiPickersPopper",e)}function WTe(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}dB("MuiPickersPopper",["root","paper"]);const NTe=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?NTe(t.shadowRoot):t:null},LTe=e=>Array.from(e.children).indexOf(NTe(document)),FTe="@media (pointer: fine)",UTe="undefined"!=typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),XTe=UTe&&UTe[1]?parseInt(UTe[1],10):null,qTe=UTe&&UTe[2]?parseInt(UTe[2],10):null,BTe=XTe&&XTe<10||qTe&&qTe<13||!1,VTe=()=>z2("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||BTe,YTe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ZTe=Pq(C3,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({zIndex:e.zIndex.modal}))),GTe=Pq(NB,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]}),HTe=c.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=PEe(e,YTe),d=wEe({},i,{placement:r}),f=b3({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return(0,lM.jsx)(n,wEe({},c,f,{onClick:e=>{l(e),f.onClick?.(e)},onTouchStart:e=>{u(e),f.onTouchStart?.(e)},ownerState:d,children:o}))}));function KTe(e){const t=EEe({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:i=null,shouldRestoreFocus:o,onBlur:a,onDismiss:s,open:l,role:u,placement:d,slots:f,slotProps:h,reduceAnimations:p}=t;c.useEffect((()=>{function e(e){l&&"Escape"===e.key&&s()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[s,l]);const m=c.useRef(null);c.useEffect((()=>{"tooltip"===u||o&&!o()||(l?m.current=NTe(document):m.current&&m.current instanceof HTMLElement&&setTimeout((()=>{m.current instanceof HTMLElement&&m.current.focus()})))}),[l,u,o]);const[g,v,O]=function(e,t){const n=c.useRef(!1),r=c.useRef(!1),i=c.useRef(null),o=c.useRef(!1);c.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),o.current=!1};function t(){o.current=!0}}),[e]);const a=gB((e=>{if(!o.current)return;const a=r.current;r.current=!1;const s=KN(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||a||t(e)})),s=()=>{r.current=!0};return c.useEffect((()=>{if(e){const e=KN(i.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",a),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",t)}}}),[e,a]),c.useEffect((()=>{if(e){const e=KN(i.current);return e.addEventListener("click",a),()=>{e.removeEventListener("click",a),r.current=!1}}}),[e,a]),[i,s,s]}(l,a??s),y=GN(c.useRef(null),i),b=GN(y,g),w=t,k=(e=>{const{classes:t}=e;return qN({root:["root"],paper:["paper"]},zTe,t)})(w),x=VTe(),_=p??x,S=f?.desktopTransition??_?aB:y3,P=f?.desktopTrapFocus??nL,E=f?.desktopPaper??GTe,C=f?.popper??ZTe,T=b3({elementType:C,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:u,open:l,anchorEl:n,placement:d,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),s())}},className:k.root,ownerState:t});return(0,lM.jsx)(C,wEe({},T,{children:({TransitionProps:e,placement:t})=>(0,lM.jsx)(P,wEe({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===u,isEnabled:()=>!0},h?.desktopTrapFocus,{children:(0,lM.jsx)(S,wEe({},e,h?.desktopTransition,{children:(0,lM.jsx)(HTe,{PaperComponent:E,ownerState:w,popperPlacement:t,ref:b,onPaperClick:v,onPaperTouchStart:O,paperClasses:k.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}function JTe(e){const{props:t,validator:n,value:r,timezone:i,onError:o}=e,a=SCe(),s=c.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:i,props:t}),u=n.valueManager.hasError(l);c.useEffect((()=>{o&&!n.valueManager.isSameError(l,s.current)&&o(l,r),s.current=l}),[n,o,l,r]);const d=gB((e=>n({adapter:a,value:e,timezone:i,props:t})));return{validationError:l,hasValidationError:u,getValidationErrorForNewValue:d}}const e$e=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:i,valueManager:o})=>{const a=PCe(),s=c.useRef(n),l=t??s.current??o.emptyValue,u=c.useMemo((()=>o.getTimezone(a,l)),[a,o,l]),d=gB((e=>null==u?e:o.setTimezone(a,u,e)));let f;return f=e||u||(r?a.getTimezone(r):"default"),{value:c.useMemo((()=>o.setTimezone(a,f,l)),[o,a,f,l]),handleValueChange:gB(((e,...t)=>{const n=d(e);i?.(n,...t)})),timezone:f}},t$e=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:i,onChange:o,valueManager:a})=>{const[s,l]=j3({name:e,state:"value",controlled:n,default:r??a.emptyValue}),u=gB(((e,...t)=>{l(e),o?.(e,...t)}));return e$e({timezone:t,value:s,defaultValue:void 0,referenceDate:i,onChange:u,valueManager:a})};function n$e({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){const l=c.useRef(n),u=c.useRef(i),d=c.useRef(i.includes(n)?n:i[0]),[f,h]=j3({name:"useViews",state:"view",controlled:r,default:d.current}),p=c.useRef(o?f:null),[m,g]=j3({name:"useViews",state:"focusedView",controlled:a,default:p.current});c.useEffect((()=>{(l.current&&l.current!==n||u.current&&u.current.some((e=>!i.includes(e))))&&(h(i.includes(n)?n:i[0]),u.current=i,l.current=n)}),[n,h,f,i]);const v=i.indexOf(f),O=i[v-1]??null,y=i[v+1]??null,b=gB(((e,t)=>{g(t?e:t=>e===t?null:t),s?.(e,t)})),w=gB((e=>{b(e,!0),e!==f&&(h(e),t&&t(e))})),k=gB((()=>{y&&w(y)})),x=gB(((t,n,r)=>{const o="finish"===n,a=r?i.indexOf(r){const u=(({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:u="desktop"===r,timezone:d,referenceDate:f}=e,{current:h}=c.useRef(l),{current:p}=c.useRef(void 0!==s),[m,g]=c.useState(d),v=PCe(),O=SCe(),{isOpen:y,setIsOpen:b}=(({open:e,onOpen:t,onClose:n})=>{const r=c.useRef("boolean"==typeof e).current,[i,o]=c.useState(!1);return c.useEffect((()=>{if(r){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}}),[r,e]),{isOpen:i,setIsOpen:c.useCallback((e=>{r||o(e),e&&t&&t(),!e&&n&&n()}),[r,t,n])}})(e),{timezone:w,value:k,handleValueChange:x}=e$e({timezone:d,value:s,defaultValue:h,referenceDate:f,onChange:a,valueManager:t}),[_,S]=c.useState((()=>{let e;return e=void 0!==k?k:void 0!==h?h:t.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:s,hasBeenModifiedSinceMount:!1}})),P=t.getTimezone(v,_.draft);m!==d&&(g(d),d&&P&&d!==P&&S((e=>wEe({},e,{draft:t.setTimezone(v,d,e.draft)}))));const{getValidationErrorForNewValue:E}=JTe({props:e,validator:i,timezone:w,value:_.draft,onError:e.onError}),C=gB((e=>{const n={action:e,dateState:_,hasChanged:n=>!t.areValuesEqual(v,e.value,n),isControlled:p,closeOnSelect:u},r=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!o||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!o||n(r.lastPublishedValue)))})(n),i=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&o?!!a||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(n),a=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(n);S((t=>wEe({},t,{draft:e.value,lastPublishedValue:r?e.value:t.lastPublishedValue,lastCommittedValue:i?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0})));let s=null;const l=()=>{if(!s){const t="setValueFromField"===e.name?e.context.validationError:E(e.value);s={validationError:t},"setValueFromShortcut"===e.name&&(s.shortcut=e.shortcut)}return s};r&&x(e.value,l()),i&&o&&o(e.value,l()),a&&b(!1)}));if(_.lastControlledValue!==s){const e=t.areValuesEqual(v,_.draft,k);S((t=>wEe({},t,{lastControlledValue:s},e?{}:{lastCommittedValue:k,lastPublishedValue:k,draft:k,hasBeenModifiedSinceMount:!0})))}const T=gB((()=>{C({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),$=gB((()=>{C({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),Q=gB((()=>{C({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),R=gB((()=>{C({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),A=gB((()=>{C({value:t.getTodayValue(v,w,n),name:"setValueFromAction",pickerAction:"today"})})),j=gB((e=>{e.preventDefault(),b(!0)})),D=gB((e=>{e?.preventDefault(),b(!1)})),M=gB(((e,t="partial")=>C({name:"setValueFromView",value:e,selectionState:t}))),I=gB(((e,t,n)=>C({name:"setValueFromShortcut",value:e,changeImportance:t,shortcut:n}))),z=gB(((e,t)=>C({name:"setValueFromField",value:e,context:t}))),W={onClear:T,onAccept:$,onDismiss:Q,onCancel:R,onSetToday:A,onOpen:j,onClose:D},N={value:_.draft,onChange:z},L=c.useMemo((()=>t.cleanValue(v,_.draft)),[v,t,_.draft]),F={value:L,onChange:M,onClose:D,open:y},U=wEe({},W,{value:L,onChange:M,onSelectShortcut:I,isValid:n=>{const r=i({adapter:O,value:n,timezone:w,props:e});return!t.hasError(r)}}),X=c.useMemo((()=>({onOpen:j,onClose:D,open:y})),[y,D,j]);return{open:y,fieldProps:N,viewProps:F,layoutProps:U,actions:W,contextValue:X}})({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o}),d=(({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:i,fieldRef:o})=>{const{onChange:a,open:s,onClose:l}=t,{view:u,views:d,openTo:f,onViewChange:h,viewRenderers:p,timezone:m}=e,g=PEe(e,r$e),{view:v,setView:O,defaultView:y,focusedView:b,setFocusedView:w,setValueAndGoToNextView:k}=n$e({view:u,views:d,openTo:f,onChange:a,onViewChange:h,autoFocus:r}),{hasUIView:x,viewModeLookup:_}=c.useMemo((()=>d.reduce(((e,t)=>{let n;return n=null!=p[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[p,d]),S=c.useMemo((()=>d.reduce(((e,t)=>null!=p[t]&&FEe(t)?e+1:e),0)),[p,d]),P=_[v],E=gB((()=>"UI"===P)),[C,T]=c.useState("UI"===P?v:null);return C!==v&&"UI"===_[v]&&T(v),rL((()=>{"field"===P&&s&&(l(),setTimeout((()=>{o?.current?.setSelectedSections(v),o?.current?.focusField(v)})))}),[v]),rL((()=>{if(!s)return;let e=v;"field"===P&&null!=C&&(e=C),e!==y&&"UI"===_[e]&&"UI"===_[y]&&(e=y),e!==v&&O(e),w(e,!0)}),[s]),{hasUIView:x,shouldRestoreFocus:E,layoutProps:{views:d,view:C,onViewChange:O},renderCurrentView:()=>{if(null==C)return null;const e=p[C];if(null==e)return null;const r=wEe({},g,n,t,{views:d,timezone:m,onChange:k,view:C,onViewChange:O,focusedView:b,onFocusedViewChange:w,showViewSwitcher:S>1,timeViewsCount:S});return i?i(p,C,r):e(r)}}})({props:e,additionalViewProps:i,autoFocusView:a,fieldRef:l,propsFromPickerValue:u.viewProps,rendererInterceptor:s}),f=(({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=((e,t)=>{const[n,r]=c.useState(i$e);return rL((()=>{const e=()=>{r(i$e())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!WTe(e,["hours","minutes","seconds"])&&"landscape"===(t||n)})(n.views,i);return{layoutProps:wEe({},n,t,{isLandscape:o,isRtl:VN(),wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}})({props:e,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps}),h=function(e){const{props:t,pickerValueResponse:n}=e;return c.useMemo((()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1})),[n.viewProps.value,n.open,t.disabled,t.readOnly])}({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:f.layoutProps,contextValue:u.contextValue,ownerState:h}};function a$e(e){return cB("MuiPickersLayout",e)}const s$e=dB("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function l$e(e){return cB("MuiButton",e)}const u$e=dB("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),c$e=c.createContext({}),d$e=c.createContext(void 0),f$e=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],h$e=Pq(RTe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${LB(n.color)}`],t[`size${LB(n.size)}`],t[`${n.variant}Size${LB(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Cq((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${u$e.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${u$e.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${u$e.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${u$e.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:xX(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette[t].main,e.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${u$e.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${u$e.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}}))),p$e=Pq("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${LB(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...f$e]}),m$e=Pq("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${LB(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...f$e]}),g$e=c.forwardRef((function(e,t){const n=c.useContext(c$e),r=c.useContext(d$e),i=Rq({props:Tq(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:p,fullWidth:m=!1,size:g="medium",startIcon:v,type:O,variant:y="text",...b}=i,w={...i,color:a,component:s,disabled:u,disableElevation:d,disableFocusRipple:f,fullWidth:m,size:g,type:O,variant:y},k=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s=qN({root:["root",o,`${o}${LB(t)}`,`size${LB(i)}`,`${o}Size${LB(i)}`,`color${LB(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${LB(i)}`],endIcon:["icon","endIcon",`iconSize${LB(i)}`]},l$e,a);return{...a,...s}})(w),x=v&&(0,lM.jsx)(p$e,{className:k.startIcon,ownerState:w,children:v}),_=h&&(0,lM.jsx)(m$e,{className:k.endIcon,ownerState:w,children:h}),S=r||"";return(0,lM.jsxs)(h$e,{ownerState:w,className:XN(n.className,k.root,l,S),component:s,disabled:u,focusRipple:!f,focusVisibleClassName:XN(k.focusVisible,p),ref:t,type:O,...b,classes:k,children:[x,o,_]})})),v$e=g$e;function O$e(e){return cB("MuiDialogActions",e)}dB("MuiDialogActions",["root","spacing"]);const y$e=Pq("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),b$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...o}=n,a={...n,disableSpacing:i},s=(e=>{const{classes:t,disableSpacing:n}=e;return qN({root:["root",!n&&"spacing"]},O$e,t)})(a);return(0,lM.jsx)(y$e,{className:XN(s.root,r),ownerState:a,ref:t,...o})})),w$e=b$e,k$e=["onAccept","onClear","onCancel","onSetToday","actions"];function x$e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=PEe(e,k$e),s=qCe();if(null==o||0===o.length)return null;const l=o?.map((e=>{switch(e){case"clear":return(0,lM.jsx)(v$e,{onClick:n,children:s.clearButtonLabel},e);case"cancel":return(0,lM.jsx)(v$e,{onClick:r,children:s.cancelButtonLabel},e);case"accept":return(0,lM.jsx)(v$e,{onClick:t,children:s.okButtonLabel},e);case"today":return(0,lM.jsx)(v$e,{onClick:i,children:s.todayButtonLabel},e);default:return null}}));return(0,lM.jsx)(w$e,wEe({},a,{children:l}))}const _$e=c.createContext({});function S$e(e){return cB("MuiList",e)}dB("MuiList",["root","padding","dense","subheader"]);const P$e=Pq("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),E$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiList"}),{children:r,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:l,...u}=n,d=c.useMemo((()=>({dense:a})),[a]),f={...n,component:o,dense:a,disablePadding:s},h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return qN({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},S$e,t)})(f);return(0,lM.jsx)(_$e.Provider,{value:d,children:(0,lM.jsxs)(P$e,{as:o,className:XN(h.root,i),ref:t,ownerState:f,...u,children:[l,r]})})})),C$e=E$e,T$e=function(e){return"string"==typeof e},$$e=function(e,t){return c.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)};function Q$e(e){return cB("MuiListItem",e)}dB("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const R$e=dB("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function A$e(e){return cB("MuiListItemSecondaryAction",e)}dB("MuiListItemSecondaryAction",["root","disableGutters"]);const j$e=Pq("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),D$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...i}=n,o=c.useContext(_$e),a={...n,disableGutters:o.disableGutters},s=(e=>{const{disableGutters:t,classes:n}=e;return qN({root:["root",t&&"disableGutters"]},A$e,n)})(a);return(0,lM.jsx)(j$e,{className:XN(s.root,r),ownerState:a,ref:t,...i})}));D$e.muiName="ListItemSecondaryAction";const M$e=D$e,I$e=Pq("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(Cq((({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${R$e.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]})))),z$e=Pq("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),W$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiListItem"}),{alignItems:r="center",children:i,className:o,component:a,components:s={},componentsProps:l={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:h=!1,disableGutters:p=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:v,slotProps:O={},slots:y={},...b}=n,w=c.useContext(_$e),k=c.useMemo((()=>({dense:h||w.dense||!1,alignItems:r,disableGutters:p})),[r,w.dense,h,p]),x=c.useRef(null),_=c.Children.toArray(i),S=_.length&&$$e(_[_.length-1],["ListItemSecondaryAction"]),P={...n,alignItems:r,dense:k.dense,disableGutters:p,disablePadding:m,divider:g,hasSecondaryAction:S},E=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:a,hasSecondaryAction:s}=e;return qN({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},Q$e,n)})(P),C=rB(x,t),T=y.root||s.Root||I$e,$=O.root||l.root||{},Q={className:XN(E.root,$.className,o),...b};let R=a||"li";return S?(R=Q.component||a?R:"div","li"===u&&("li"===R?R="div":"li"===Q.component&&(Q.component="div")),(0,lM.jsx)(_$e.Provider,{value:k,children:(0,lM.jsxs)(z$e,{as:u,className:XN(E.container,d),ref:C,ownerState:P,...f,children:[(0,lM.jsx)(T,{...$,...!T$e(T)&&{as:R,ownerState:{...P,...$.ownerState}},...Q,children:_}),_.pop()]})})):(0,lM.jsx)(_$e.Provider,{value:k,children:(0,lM.jsxs)(T,{...$,as:R,ref:C,...!T$e(T)&&{ownerState:{...P,...$.ownerState}},...Q,children:[_,v&&(0,lM.jsx)(M$e,{children:v})]})})})),N$e=W$e;function L$e(e){return cB("MuiSvgIcon",e)}dB("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const F$e=Pq("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${LB(n.color)}`],t[`fontSize${LB(n.fontSize)}`]]}})(Cq((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),U$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...h}=n,p=c.isValidElement(r)&&"svg"===r.type,m={...n,color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:p},g={};u||(g.viewBox=f);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return qN({root:["root","inherit"!==t&&`color${LB(t)}`,`fontSize${LB(n)}`]},L$e,r)})(m);return(0,lM.jsxs)(F$e,{as:a,className:XN(v.root,i),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...h,...p&&r.props,ownerState:m,children:[p?r.props.children:r,d?(0,lM.jsx)("title",{children:d}):null]})}));U$e.muiName="SvgIcon";const X$e=U$e;function q$e(e,t){function n(n,r){return(0,lM.jsx)(X$e,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return n.muiName=X$e.muiName,c.memo(c.forwardRef(n))}const B$e=q$e((0,lM.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function V$e(e){return cB("MuiChip",e)}const Y$e=dB("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Z$e=Pq("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${Y$e.avatar}`]:t.avatar},{[`& .${Y$e.avatar}`]:t[`avatar${LB(s)}`]},{[`& .${Y$e.avatar}`]:t[`avatarColor${LB(r)}`]},{[`& .${Y$e.icon}`]:t.icon},{[`& .${Y$e.icon}`]:t[`icon${LB(s)}`]},{[`& .${Y$e.icon}`]:t[`iconColor${LB(i)}`]},{[`& .${Y$e.deleteIcon}`]:t.deleteIcon},{[`& .${Y$e.deleteIcon}`]:t[`deleteIcon${LB(s)}`]},{[`& .${Y$e.deleteIcon}`]:t[`deleteIconColor${LB(r)}`]},{[`& .${Y$e.deleteIcon}`]:t[`deleteIcon${LB(l)}Color${LB(r)}`]},t.root,t[`size${LB(s)}`],t[`color${LB(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${LB(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${LB(r)}`],t[l],t[`${l}${LB(r)}`]]}})(Cq((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Y$e.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Y$e.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Y$e.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Y$e.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Y$e.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Y$e.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Y$e.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:xX(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:xX(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Y$e.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Y$e.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(QCe(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Y$e.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:xX(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${Y$e.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${Y$e.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Y$e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xX(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(QCe(["dark"])).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${Y$e.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xX(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Y$e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xX(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(QCe(["dark"])).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${Y$e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Y$e.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Y$e.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Y$e.avatar}`]:{marginLeft:4},[`& .${Y$e.avatarSmall}`]:{marginLeft:2},[`& .${Y$e.icon}`]:{marginLeft:4},[`& .${Y$e.iconSmall}`]:{marginLeft:2},[`& .${Y$e.deleteIcon}`]:{marginRight:5},[`& .${Y$e.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:xX(e.palette[t].main,.7)}`,[`&.${Y$e.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${Y$e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${Y$e.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:xX(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),G$e=Pq("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${LB(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function H$e(e){return"Backspace"===e.key||"Delete"===e.key}const K$e=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiChip"}),{avatar:r,className:i,clickable:o,color:a="default",component:s,deleteIcon:l,disabled:u=!1,icon:d,label:f,onClick:h,onDelete:p,onKeyDown:m,onKeyUp:g,size:v="medium",variant:O="filled",tabIndex:y,skipFocusWhenDisabled:b=!1,...w}=n,k=c.useRef(null),x=rB(k,t),_=e=>{e.stopPropagation(),p&&p(e)},S=!(!1===o||!h)||o,P=S||p?RTe:s||"div",E={...n,component:P,disabled:u,size:v,color:a,iconColor:c.isValidElement(d)&&d.props.color||a,onDelete:!!p,clickable:S,variant:O},C=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e;return qN({root:["root",l,n&&"disabled",`size${LB(r)}`,`color${LB(i)}`,s&&"clickable",s&&`clickableColor${LB(i)}`,a&&"deletable",a&&`deletableColor${LB(i)}`,`${l}${LB(i)}`],label:["label",`label${LB(r)}`],avatar:["avatar",`avatar${LB(r)}`,`avatarColor${LB(i)}`],icon:["icon",`icon${LB(r)}`,`iconColor${LB(o)}`],deleteIcon:["deleteIcon",`deleteIcon${LB(r)}`,`deleteIconColor${LB(i)}`,`deleteIcon${LB(l)}Color${LB(i)}`]},V$e,t)})(E),T=P===RTe?{component:s||"div",focusVisibleClassName:C.focusVisible,...p&&{disableRipple:!0}}:{};let $=null;p&&($=l&&c.isValidElement(l)?c.cloneElement(l,{className:XN(l.props.className,C.deleteIcon),onClick:_}):(0,lM.jsx)(B$e,{className:XN(C.deleteIcon),onClick:_}));let Q=null;r&&c.isValidElement(r)&&(Q=c.cloneElement(r,{className:XN(C.avatar,r.props.className)}));let R=null;return d&&c.isValidElement(d)&&(R=c.cloneElement(d,{className:XN(C.icon,d.props.className)})),(0,lM.jsxs)(Z$e,{as:P,className:XN(C.root,i),disabled:!(!S||!u)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&H$e(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&p&&H$e(e)&&p(e),g&&g(e)},ref:x,tabIndex:b&&u?-1:y,ownerState:E,...T,...w,children:[Q||R,(0,lM.jsx)(G$e,{className:XN(C.label),ownerState:E,children:f}),$]})})),J$e=K$e,eQe=320,tQe=336,nQe=48,rQe=["items","changeImportance","isLandscape","onChange","isValid"],iQe=["getValue"];function oQe(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:i}=e,o=PEe(e,rQe);if(null==t||0===t.length)return null;const a=t.map((e=>{let{getValue:t}=e,o=PEe(e,iQe);const a=t({isValid:i});return wEe({},o,{label:o.label,onClick:()=>{r(a,n,o)},disabled:!i(a)})}));return(0,lM.jsx)(C$e,wEe({dense:!0,sx:[{maxHeight:tQe,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map((e=>(0,lM.jsx)(N$e,{children:(0,lM.jsx)(J$e,wEe({},e))},e.id??e.label)))}))}const aQe=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:i,onSetToday:o,view:a,views:s,onViewChange:l,value:u,onChange:c,onSelectShortcut:d,isValid:f,isLandscape:h,disabled:p,readOnly:m,children:g,slots:v,slotProps:O}=e,y=(e=>{const{classes:t,isLandscape:n}=e;return qN({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},a$e,t)})(e),b=v?.actionBar??x$e,w=b3({elementType:b,externalSlotProps:O?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:i,onSetToday:o,actions:"desktop"===t?[]:["cancel","accept"]},className:y.actionBar,ownerState:wEe({},e,{wrapperVariant:t})}),k=(0,lM.jsx)(b,wEe({},w)),x=v?.toolbar,_=b3({elementType:x,externalSlotProps:O?.toolbar,additionalProps:{isLandscape:h,onChange:c,value:u,view:a,onViewChange:l,views:s,disabled:p,readOnly:m},className:y.toolbar,ownerState:wEe({},e,{wrapperVariant:t})}),S=function(e){return null!==e.view}(_)&&x?(0,lM.jsx)(x,wEe({},_)):null,P=g,E=v?.tabs,C=a&&E?(0,lM.jsx)(E,wEe({view:a,onViewChange:l,className:y.tabs},O?.tabs)):null,T=v?.shortcuts??oQe,$=b3({elementType:T,externalSlotProps:O?.shortcuts,additionalProps:{isValid:f,isLandscape:h,onChange:d},className:y.shortcuts,ownerState:{isValid:f,isLandscape:h,onChange:d,wrapperVariant:t}});return{toolbar:S,content:P,tabs:C,actionBar:k,shortcuts:a&&T?(0,lM.jsx)(T,wEe({},$)):null}},sQe=Pq("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${s$e.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${s$e.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${s$e.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${s$e.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${s$e.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${s$e.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${s$e.shortcuts}`]:{gridColumn:3}}}]}),lQe=Pq("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),uQe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=aQe(n),{sx:l,className:u,isLandscape:d,wrapperVariant:f}=n,h=(e=>{const{isLandscape:t,classes:n}=e;return qN({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},a$e,n)})(n);return(0,lM.jsxs)(sQe,{ref:t,sx:l,className:XN(h.root,u),ownerState:n,children:[d?s:r,d?r:s,(0,lM.jsx)(lQe,{className:h.contentWrapper,children:"desktop"===f?(0,lM.jsxs)(c.Fragment,{children:[i,o]}):(0,lM.jsxs)(c.Fragment,{children:[o,i]})}),a]})})),cQe=c.createContext(null);function dQe(e){const{contextValue:t,localeText:n,children:r}=e;return(0,lM.jsx)(cQe.Provider,{value:t,children:(0,lM.jsx)(wCe,{localeText:n,children:r})})}const fQe=["props","getOpenDialogAriaText"],hQe=["ownerState"],pQe=["ownerState"],mQe=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=PEe(e,fQe);const{slots:i,slotProps:o,className:a,sx:s,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:p,name:m,label:g,inputRef:v,readOnly:O,disabled:y,autoFocus:b,localeText:w,reduceAnimations:k}=t,x=c.useRef(null),_=c.useRef(null),S=R3(),P=o?.toolbar?.hidden??!1,{open:E,actions:C,hasUIView:T,layoutProps:$,renderCurrentView:Q,shouldRestoreFocus:R,fieldProps:A,contextValue:j,ownerState:D}=o$e(wEe({},r,{props:t,fieldRef:_,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=i.inputAdornment??dTe,I=PEe(b3({elementType:M,externalSlotProps:o?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),hQe),z=i.openPickerButton??ITe,W=PEe(b3({elementType:z,externalSlotProps:o?.openPickerButton,additionalProps:{disabled:y||O,onClick:E?C.onClose:C.onOpen,"aria-label":n(A.value),edge:I.position},ownerState:t}),pQe),N=i.openPickerIcon,L=b3({elementType:N,externalSlotProps:o?.openPickerIcon,ownerState:D}),F=i.field,U=b3({elementType:F,externalSlotProps:o?.field,additionalProps:wEe({},A,P&&{id:S},{readOnly:O,disabled:y,className:a,sx:s,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:p,label:g,name:m,autoFocus:b&&!t.open,focused:!!E||void 0},v?{inputRef:v}:{}),ownerState:t});T&&(U.InputProps=wEe({},U.InputProps,{ref:x},!t.disableOpenPicker&&{[`${I.position}Adornment`]:(0,lM.jsx)(M,wEe({},I,{children:(0,lM.jsx)(z,wEe({},W,{children:(0,lM.jsx)(N,wEe({},L))}))}))}));const X=wEe({textField:i.textField,clearIcon:i.clearIcon,clearButton:i.clearButton},U.slots),q=i.layout??uQe;let B=S;P&&(B=g?`${S}-label`:void 0);const V=wEe({},o,{toolbar:wEe({},o?.toolbar,{titleId:S}),popper:wEe({"aria-labelledby":B},o?.popper)}),Y=GN(_,U.unstableFieldRef);return{renderPicker:()=>(0,lM.jsxs)(dQe,{contextValue:j,localeText:w,children:[(0,lM.jsx)(F,wEe({},U,{slots:X,slotProps:V,unstableFieldRef:Y})),(0,lM.jsx)(KTe,wEe({role:"dialog",placement:"bottom-start",anchorEl:x.current},C,{open:E,slots:i,slotProps:V,shouldRestoreFocus:R,reduceAnimations:k,children:(0,lM.jsx)(q,wEe({},$,V?.layout,{slots:i,slotProps:V,children:Q()}))}))]})}},gQe=q$e((0,lM.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vQe=q$e((0,lM.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),OQe=q$e((0,lM.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),yQe=q$e((0,lM.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),bQe=q$e((0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,lM.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),wQe=q$e((0,lM.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),kQe=q$e((0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,lM.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),xQe=q$e((0,lM.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function _Qe(e){return parseInt(e,10)||0}const SQe={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},PQe=c.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:i=1,style:o,value:a,...s}=e,{current:l}=c.useRef(null!=a),u=c.useRef(null),d=GN(t,u),f=c.useRef(null),h=c.useRef(null),p=c.useCallback((()=>{const t=u.current,n=OB(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const o=h.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const a=n.boxSizing,s=_Qe(n.paddingBottom)+_Qe(n.paddingTop),l=_Qe(n.borderBottomWidth)+_Qe(n.borderTopWidth),c=o.scrollHeight;o.value="x";const d=o.scrollHeight;let f=c;return i&&(f=Math.max(Number(i)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d),{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[r,i,e.placeholder]),m=c.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=u.current;f.current!==n&&(f.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[p]);return rL((()=>{const e=()=>{m()};const t=QB(e),n=u.current,r=OB(n);let i;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),i&&i.disconnect()}}),[p,m]),rL((()=>{m()})),(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)("textarea",{value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:i,style:o,...s}),(0,lM.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...SQe,...o,paddingTop:0,paddingBottom:0}})]})})),EQe=PQe;function CQe({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const TQe=rL;function $Qe(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function QQe(e,t=!1){return e&&($Qe(e.value)&&""!==e.value||t&&$Qe(e.defaultValue)&&""!==e.defaultValue)}function RQe(e){return cB("MuiInputBase",e)}const AQe=dB("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var jQe;const DQe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${LB(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},MQe=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},IQe=Pq("div",{name:"MuiInputBase",slot:"Root",overridesResolver:DQe})(Cq((({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${AQe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]})))),zQe=Pq("input",{name:"MuiInputBase",slot:"Input",overridesResolver:MQe})(Cq((({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${AQe.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${AQe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}}))),WQe=function(e){return function(t){return(0,lM.jsx)($Ce,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),NQe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:o,className:a,color:s,components:l={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:p,error:m,fullWidth:g=!1,id:v,inputComponent:O="input",inputProps:y={},inputRef:b,margin:w,maxRows:k,minRows:x,multiline:_=!1,name:S,onBlur:P,onChange:E,onClick:C,onFocus:T,onKeyDown:$,onKeyUp:Q,placeholder:R,readOnly:A,renderSuffix:j,rows:D,size:M,slotProps:I={},slots:z={},startAdornment:W,type:N="text",value:L,...F}=n,U=null!=y.value?y.value:L,{current:X}=c.useRef(null!=U),q=c.useRef(),B=c.useCallback((e=>{}),[]),V=rB(q,b,y.ref,B),[Y,Z]=c.useState(!1),G=oTe(),H=CQe({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=G?G.focused:Y,c.useEffect((()=>{!G&&f&&Y&&(Z(!1),P&&P())}),[G,f,Y,P]);const K=G&&G.onFilled,J=G&&G.onEmpty,ee=c.useCallback((e=>{QQe(e)?K&&K():J&&J()}),[K,J]);TQe((()=>{X&&ee({value:U})}),[U,ee,X]),c.useEffect((()=>{ee(q.current)}),[]);let te=O,ne=y;_&&"input"===te&&(ne=D?{type:void 0,minRows:D,maxRows:D,...ne}:{type:void 0,maxRows:k,minRows:x,...ne},te=EQe),c.useEffect((()=>{G&&G.setAdornedStart(Boolean(W))}),[G,W]);const re={...n,color:H.color||"primary",disabled:H.disabled,endAdornment:p,error:H.error,focused:H.focused,formControl:G,fullWidth:g,hiddenLabel:H.hiddenLabel,multiline:_,size:H.size,startAdornment:W,type:N},ie=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:h,type:p}=e;return qN({root:["root",`color${LB(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${LB(f)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===p&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},RQe,t)})(re),oe=z.root||l.Root||IQe,ae=I.root||u.root||{},se=z.input||l.Input||zQe;return ne={...ne,...I.input??u.input},(0,lM.jsxs)(c.Fragment,{children:[!h&&"function"==typeof WQe&&(jQe||(jQe=(0,lM.jsx)(WQe,{}))),(0,lM.jsxs)(oe,{...ae,ref:t,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),C&&C(e)},...F,...!T$e(oe)&&{ownerState:{...re,...ae.ownerState}},className:XN(ie.root,ae.className,a,A&&"MuiInputBase-readOnly"),children:[W,(0,lM.jsx)(iTe.Provider,{value:null,children:(0,lM.jsx)(se,{"aria-invalid":H.error,"aria-describedby":r,autoComplete:i,autoFocus:o,defaultValue:d,disabled:H.disabled,id:v,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:S,placeholder:R,readOnly:A,required:H.required,rows:D,value:U,onKeyDown:$,onKeyUp:Q,type:N,...ne,...!T$e(se)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:V,className:XN(ie.input,ne.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{P&&P(e),y.onBlur&&y.onBlur(e),G&&G.onBlur?G.onBlur(e):Z(!1)},onChange:(e,...t)=>{if(!X){const t=e.target||q.current;if(null==t)throw new Error(cU(1));ee({value:t.value})}y.onChange&&y.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{T&&T(e),y.onFocus&&y.onFocus(e),G&&G.onFocus?G.onFocus(e):Z(!0)}})}),p,j?j({...H,startAdornment:W}):null]})]})})),LQe=NQe;function FQe(e){return cB("MuiInput",e)}const UQe={...AQe,...dB("MuiInput",["root","underline","input"])},XQe=Pq(IQe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DQe(e,t),!n.disableUnderline&&t.underline]}})(Cq((({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${UQe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${UQe.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${UQe.disabled}, .${UQe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${UQe.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})))]}}))),qQe=Pq(zQe,{name:"MuiInput",slot:"Input",overridesResolver:MQe})({}),BQe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:o,fullWidth:a=!1,inputComponent:s="input",multiline:l=!1,slotProps:u,slots:c={},type:d="text",...f}=n,h=(e=>{const{classes:t,disableUnderline:n}=e,r=qN({root:["root",!n&&"underline"],input:["input"]},FQe,t);return{...t,...r}})(n),p={root:{ownerState:{disableUnderline:r}}},m=u??o?iU(u??o,p):p,g=c.root??i.Root??XQe,v=c.input??i.Input??qQe;return(0,lM.jsx)(LQe,{slots:{root:g,input:v},slotProps:m,fullWidth:a,inputComponent:s,multiline:l,ref:t,type:d,...f,classes:h})}));BQe.muiName="Input";const VQe=BQe;function YQe(e){return cB("MuiFilledInput",e)}const ZQe={...AQe,...dB("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},GQe=Pq(IQe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DQe(e,t),!n.disableUnderline&&t.underline]}})(Cq((({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ZQe.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ZQe.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ZQe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ZQe.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ZQe.disabled}, .${ZQe.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ZQe.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}}))),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}}))),HQe=Pq(zQe,{name:"MuiFilledInput",slot:"Input",overridesResolver:MQe})(Cq((({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]})))),KQe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:o,fullWidth:a=!1,hiddenLabel:s,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:f="text",...h}=n,p={...n,disableUnderline:r,fullWidth:a,inputComponent:l,multiline:u,type:f},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l=qN({root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd","small"===o&&`size${LB(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},YQe,t);return{...t,...l}})(n),g={root:{ownerState:p},input:{ownerState:p}},v=c??o?iU(g,c??o):g,O=d.root??i.Root??GQe,y=d.input??i.Input??HQe;return(0,lM.jsx)(LQe,{slots:{root:O,input:y},slotProps:v,fullWidth:a,inputComponent:l,multiline:u,ref:t,type:f,...h,classes:m})}));KQe.muiName="Input";const JQe=KQe;var eRe;const tRe=Pq("fieldset",{shouldForwardProp:_q})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),nRe=Pq("legend",{shouldForwardProp:_q})(Cq((({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))));function rRe(e){return cB("MuiOutlinedInput",e)}const iRe={...AQe,...dB("MuiOutlinedInput",["root","notchedOutline","input"])},oRe=Pq(IQe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:DQe})(Cq((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${iRe.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${iRe.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${iRe.focused} .${iRe.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{color:t},style:{[`&.${iRe.focused} .${iRe.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${iRe.error} .${iRe.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${iRe.disabled} .${iRe.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}}))),aRe=Pq((function(e){const{children:t,classes:n,className:r,label:i,notched:o,...a}=e,s=null!=i&&""!==i,l={...e,notched:o,withLabel:s};return(0,lM.jsx)(tRe,{"aria-hidden":!0,className:r,ownerState:l,...a,children:(0,lM.jsx)(nRe,{ownerState:l,children:s?(0,lM.jsx)("span",{children:i}):eRe||(eRe=(0,lM.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Cq((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}))),sRe=Pq(zQe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:MQe})(Cq((({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]})))),lRe=c.forwardRef((function(e,t){var n;const r=Rq({props:e,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:u,slots:d={},type:f="text",...h}=r,p=(e=>{const{classes:t}=e,n=qN({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rRe,t);return{...t,...n}})(r),m=oTe(),g=CQe({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:f},O=d.root??i.Root??oRe,y=d.input??i.Input??sRe;return(0,lM.jsx)(LQe,{slots:{root:O,input:y},renderSuffix:e=>(0,lM.jsx)(aRe,{ownerState:v,className:p.notchedOutline,label:null!=s&&""!==s&&g.required?n||(n=(0,lM.jsxs)(c.Fragment,{children:[s," ","*"]})):s,notched:void 0!==u?u:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:f,...h,classes:{...p,notchedOutline:null}})}));lRe.muiName="Input";const uRe=lRe;function cRe(e){return cB("MuiFormLabel",e)}const dRe=dB("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),fRe=Pq("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(Cq((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(QCe()).map((([t])=>({props:{color:t},style:{[`&.${dRe.focused}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${dRe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${dRe.error}`]:{color:(e.vars||e).palette.error.main}}}]})))),hRe=Pq("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Cq((({theme:e})=>({[`&.${dRe.error}`]:{color:(e.vars||e).palette.error.main}})))),pRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiFormLabel"}),{children:r,className:i,color:o,component:a="label",disabled:s,error:l,filled:u,focused:c,required:d,...f}=n,h=CQe({props:n,muiFormControl:oTe(),states:["color","required","focused","disabled","error","filled"]}),p={...n,color:h.color||"primary",component:a,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},m=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e;return qN({root:["root",`color${LB(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]},cRe,t)})(p);return(0,lM.jsxs)(fRe,{as:a,ownerState:p,className:XN(m.root,i),ref:t,...f,children:[r,h.required&&(0,lM.jsxs)(hRe,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})})),mRe=pRe;function gRe(e){return cB("MuiInputLabel",e)}dB("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const vRe=Pq(mRe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dRe.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Cq((({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]})))),ORe=c.forwardRef((function(e,t){const n=Rq({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:i,shrink:o,variant:a,className:s,...l}=n,u=oTe();let c=o;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);const d=CQe({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f={...n,disableAnimation:r,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused},h=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l=qN({root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&"normal"!==r&&`size${LB(r)}`,a],asterisk:[s&&"asterisk"]},gRe,t);return{...t,...l}})(f);return(0,lM.jsx)(vRe,{"data-shrink":c,ref:t,className:XN(h.root,s),...l,ownerState:f,classes:h})})),yRe=ORe;function bRe(e){return cB("MuiFormControl",e)}dB("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const wRe=Pq("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${LB(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),kRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiFormControl"}),{children:r,className:i,color:o="primary",component:a="div",disabled:s=!1,error:l=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:p=!1,size:m="medium",variant:g="outlined",...v}=n,O={...n,color:o,component:a,disabled:s,error:l,fullWidth:d,hiddenLabel:f,margin:h,required:p,size:m,variant:g},y=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return qN({root:["root","none"!==n&&`margin${LB(n)}`,r&&"fullWidth"]},bRe,t)})(O),[b,w]=c.useState((()=>{let e=!1;return r&&c.Children.forEach(r,(t=>{if(!$$e(t,["Input","Select"]))return;const n=$$e(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[k,x]=c.useState((()=>{let e=!1;return r&&c.Children.forEach(r,(t=>{$$e(t,["Input","Select"])&&(QQe(t.props,!0)||QQe(t.props.inputProps,!0))&&(e=!0)})),e})),[_,S]=c.useState(!1);s&&_&&S(!1);const P=void 0===u||s?_:u;let E;c.useRef(!1);const C=c.useMemo((()=>({adornedStart:b,setAdornedStart:w,color:o,disabled:s,error:l,filled:k,focused:P,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{S(!1)},onEmpty:()=>{x(!1)},onFilled:()=>{x(!0)},onFocus:()=>{S(!0)},registerEffect:E,required:p,variant:g})),[b,o,s,l,k,P,d,f,E,p,m,g]);return(0,lM.jsx)(iTe.Provider,{value:C,children:(0,lM.jsx)(wRe,{as:a,ownerState:O,className:XN(y.root,i),ref:t,...v,children:r})})})),xRe=kRe;function _Re(e){return cB("MuiFormHelperText",e)}const SRe=dB("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var PRe;const ERe=Pq("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${LB(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Cq((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${SRe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${SRe.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]})))),CRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:o="p",disabled:a,error:s,filled:l,focused:u,margin:c,required:d,variant:f,...h}=n,p=CQe({props:n,muiFormControl:oTe(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:o,contained:"filled"===p.variant||"outlined"===p.variant,variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete m.ownerState;const g=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e;return qN({root:["root",i&&"disabled",o&&"error",r&&`size${LB(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]},_Re,t)})(m);return(0,lM.jsx)(ERe,{as:o,className:XN(g.root,i),ref:t,...h,ownerState:m,children:" "===r?PRe||(PRe=(0,lM.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})})),TRe=CRe,$Re=KN,QRe=yB;function RRe(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ARe(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jRe(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function DRe(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&jRe(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const MRe=c.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:o,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:d="selectedMenu",...f}=e,h=c.useRef(null),p=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});TQe((()=>{r&&h.current.focus()}),[r]),c.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!h.current.style.width;if(e.clientHeight{c.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=o.length&&(g=-1))):g===t&&(g+=1,g>=o.length&&(g=-1))}));const v=c.Children.map(o,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),c.cloneElement(e,t)}return e}));return(0,lM.jsx)(C$e,{role:"menu",ref:m,className:a,onKeyDown:e=>{const t=h.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=$Re(t).activeElement;if("ArrowDown"===n)e.preventDefault(),DRe(t,r,l,s,RRe);else if("ArrowUp"===n)e.preventDefault(),DRe(t,r,l,s,ARe);else if("Home"===n)e.preventDefault(),DRe(t,null,l,s,RRe);else if("End"===n)e.preventDefault(),DRe(t,null,l,s,ARe);else if(1===n.length){const i=p.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const l=r&&!i.repeating&&jRe(r,i);i.previousKeyMatched&&(l||DRe(t,r,!1,s,RRe,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...f,children:v})})),IRe=MRe;function zRe(e){return cB("MuiPopover",e)}function WRe(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function NRe(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function LRe(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function FRe(e){return"function"==typeof e?e():e}dB("MuiPopover",["root","paper"]);const URe=Pq($B,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),XRe=Pq(NB,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),qRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:u,container:d,elevation:f=8,marginThreshold:h=16,open:p,PaperProps:m={},slots:g={},slotProps:v={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:y=y3,transitionDuration:b="auto",TransitionProps:{onEntering:w,...k}={},disableScrollLock:x=!1,..._}=n,S=v?.paper??m,P=c.useRef(),E={...n,anchorOrigin:o,anchorReference:s,elevation:f,marginThreshold:h,externalPaperSlotProps:S,transformOrigin:O,TransitionComponent:y,transitionDuration:b,TransitionProps:k},C=(e=>{const{classes:t}=e;return qN({root:["root"],paper:["paper"]},zRe,t)})(E),T=c.useCallback((()=>{if("anchorPosition"===s)return a;const e=FRe(i),t=(e&&1===e.nodeType?e:$Re(P.current).body).getBoundingClientRect();return{top:t.top+WRe(t,o.vertical),left:t.left+NRe(t,o.horizontal)}}),[i,o.horizontal,o.vertical,a,s]),$=c.useCallback((e=>({vertical:WRe(e,O.vertical),horizontal:NRe(e,O.horizontal)})),[O.horizontal,O.vertical]),Q=c.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=$(t);if("none"===s)return{top:null,left:null,transformOrigin:LRe(n)};const r=T();let o=r.top-n.vertical,a=r.left-n.horizontal;const l=o+t.height,u=a+t.width,c=AB(FRe(i)),d=c.innerHeight-h,f=c.innerWidth-h;if(null!==h&&od){const e=l-d;o-=e,n.vertical+=e}if(null!==h&&af){const e=u-f;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:LRe(n)}}),[i,s,T,$,h]),[R,A]=c.useState(p),j=c.useCallback((()=>{const e=P.current;if(!e)return;const t=Q(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[Q]);c.useEffect((()=>(x&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[i,x,j]),c.useEffect((()=>{p&&j()})),c.useImperativeHandle(r,(()=>p?{updatePosition:()=>{j()}}:null),[p,j]),c.useEffect((()=>{if(!p)return;const e=RB((()=>{j()})),t=AB(i);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[i,p,j]);let D=b;"auto"!==b||y.muiSupportAuto||(D=void 0);const M=d||(i?$Re(FRe(i)).body:void 0),I={slots:g,slotProps:{...v,paper:S}},[z,W]=zq("paper",{elementType:XRe,externalForwardedProps:I,additionalProps:{elevation:f,className:XN(C.paper,S?.className),style:R?S.style:{...S.style,opacity:0}},ownerState:E}),[N,{slotProps:L,...F}]=zq("root",{elementType:URe,externalForwardedProps:I,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:M,open:p},ownerState:E,className:XN(C.root,u)}),U=rB(P,W.ref);return(0,lM.jsx)(N,{...F,...!T$e(N)&&{slotProps:L,disableScrollLock:x},..._,ref:t,children:(0,lM.jsx)(y,{appear:!0,in:p,onEntering:(e,t)=>{w&&w(e,t),j()},onExited:()=>{A(!1)},timeout:D,...k,children:(0,lM.jsx)(z,{...W,ref:U,children:l})})})})),BRe=qRe;function VRe(e){return cB("MuiMenu",e)}dB("MuiMenu",["root","paper","list"]);const YRe={vertical:"top",horizontal:"right"},ZRe={vertical:"top",horizontal:"left"},GRe=Pq(BRe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HRe=Pq(XRe,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),KRe=Pq(IRe,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),JRe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:o,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:p,...m}={},variant:g="selectedMenu",slots:v={},slotProps:O={},...y}=n,b=VN(),w={...n,autoFocus:r,disableAutoFocusItem:a,MenuListProps:s,onEntering:p,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:g},k=(e=>{const{classes:t}=e;return qN({root:["root"],paper:["paper"],list:["list"]},VRe,t)})(w),x=r&&!a&&u,_=c.useRef(null);let S=-1;c.Children.map(i,((e,t)=>{c.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===S)&&(S=t))}));const P=v.paper??HRe,E=O.paper??d,C=b3({elementType:v.root,externalSlotProps:O.root,ownerState:w,className:[k.root,o]}),T=b3({elementType:P,externalSlotProps:E,ownerState:w,className:k.paper});return(0,lM.jsx)(GRe,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?YRe:ZRe,slots:{paper:P,root:v.root},slotProps:{root:C,paper:T},open:u,ref:t,transitionDuration:h,TransitionProps:{onEntering:(e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:b?"rtl":"ltr"}),p&&p(e,t)},...m},ownerState:w,...y,classes:f,children:(0,lM.jsx)(KRe,{onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:_,autoFocus:r&&(-1===S||a),autoFocusItem:x,variant:g,...s,className:XN(k.list,s.className),children:i})})})),eAe=JRe;function tAe(e){return cB("MuiNativeSelect",e)}const nAe=dB("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rAe=Pq("select")((({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${nAe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]}))),iAe=Pq(rAe,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_q,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${nAe.multiple}`]:t.multiple}]}})({}),oAe=Pq("svg")((({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${nAe.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]}))),aAe=Pq(oAe,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${LB(n.variant)}`],n.open&&t.iconOpen]}})({}),sAe=c.forwardRef((function(e,t){const{className:n,disabled:r,error:i,IconComponent:o,inputRef:a,variant:s="standard",...l}=e,u={...e,disabled:r,variant:s,error:i},d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return qN({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${LB(n)}`,o&&"iconOpen",r&&"disabled"]},tAe,t)})(u);return(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(iAe,{ownerState:u,className:XN(d.select,n),disabled:r,ref:a||t,...l}),e.multiple?null:(0,lM.jsx)(aAe,{as:o,ownerState:u,className:d.icon})]})})),lAe=sAe;function uAe(e){return cB("MuiSelect",e)}const cAe=dB("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dAe;const fAe=Pq(rAe,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${cAe.select}`]:t.select},{[`&.${cAe.select}`]:t[n.variant]},{[`&.${cAe.error}`]:t.error},{[`&.${cAe.multiple}`]:t.multiple}]}})({[`&.${cAe.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hAe=Pq(oAe,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${LB(n.variant)}`],n.open&&t.iconOpen]}})({}),pAe=Pq("input",{shouldForwardProp:e=>xq(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function mAe(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function gAe(e){return null==e||"string"==typeof e&&!e.trim()}const vAe=c.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:o,children:a,className:s,defaultOpen:l,defaultValue:u,disabled:d,displayEmpty:f,error:h=!1,IconComponent:p,inputRef:m,labelId:g,MenuProps:v={},multiple:O,name:y,onBlur:b,onChange:w,onClose:k,onFocus:x,onOpen:_,open:S,readOnly:P,renderValue:E,required:C,SelectDisplayProps:T={},tabIndex:$,type:Q,value:R,variant:A="standard",...j}=e,[D,M]=D3({controlled:R,default:u,name:"Select"}),[I,z]=D3({controlled:S,default:l,name:"Select"}),W=c.useRef(null),N=c.useRef(null),[L,F]=c.useState(null),{current:U}=c.useRef(null!=S),[X,q]=c.useState(),B=rB(t,m),V=c.useCallback((e=>{N.current=e,e&&F(e)}),[]),Y=L?.parentNode;c.useImperativeHandle(B,(()=>({focus:()=>{N.current.focus()},node:W.current,value:D})),[D]),c.useEffect((()=>{l&&I&&L&&!U&&(q(o?null:Y.clientWidth),N.current.focus())}),[L,o]),c.useEffect((()=>{i&&N.current.focus()}),[i]),c.useEffect((()=>{if(!g)return;const e=$Re(N.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&N.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Z=(e,t)=>{e?_&&_(t):k&&k(t),U||(q(o?null:Y.clientWidth),z(e))},G=c.Children.toArray(a),H=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(O){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(M(n),w)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:y}}),w(i,e)}O||Z(!1,t)}},K=null!==L&&I;let J,ee;delete j["aria-invalid"];const te=[];let ne=!1,re=!1;(QQe({value:D})||f)&&(E?J=E(D):ne=!0);const ie=G.map((e=>{if(!c.isValidElement(e))return null;let t;if(O){if(!Array.isArray(D))throw new Error(cU(2));t=D.some((t=>mAe(t,e.props.value))),t&&ne&&te.push(e.props.children)}else t=mAe(D,e.props.value),t&&ne&&(ee=e.props.children);return t&&(re=!0),c.cloneElement(e,{"aria-selected":t?"true":"false",onClick:H(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(J=O?0===te.length?null:te.reduce(((e,t,n)=>(e.push(t),n{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return qN({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${LB(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},uAe,t)})(le),ce={...v.PaperProps,...v.slotProps?.paper},de=R3();return(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(fAe,{as:"div",ref:V,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":d?"true":void 0,"aria-expanded":K?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,se].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":C?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:e=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Z(!0,e))},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),N.current.focus(),Z(!0,e))},onBlur:e=>{!K&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),b(e))},onFocus:x,...T,ownerState:le,className:XN(T.className,ue.select,s),id:se,children:gAe(J)?dAe||(dAe=(0,lM.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):J}),(0,lM.jsx)(pAe,{"aria-invalid":h,value:Array.isArray(D)?D.join(","):D,name:y,ref:W,"aria-hidden":!0,onChange:e=>{const t=G.find((t=>t.props.value===e.target.value));void 0!==t&&(M(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:ue.nativeInput,autoFocus:i,required:C,...j,ownerState:le}),(0,lM.jsx)(hAe,{as:p,className:ue.icon,ownerState:le}),(0,lM.jsx)(eAe,{id:`menu-${y||""}`,anchorEl:Y,open:K,onClose:e=>{Z(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,MenuListProps:{"aria-labelledby":g,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:de,...v.MenuListProps},slotProps:{...v.slotProps,paper:{...ce,style:{minWidth:ae,...null!=ce?ce.style:null}}},children:ie})]})})),OAe=vAe,yAe=q$e((0,lM.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bAe={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_q(e)&&"variant"!==e,slot:"Root"},wAe=Pq(VQe,bAe)(""),kAe=Pq(uRe,bAe)(""),xAe=Pq(JQe,bAe)(""),_Ae=c.forwardRef((function(e,t){const n=Rq({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:i,classes:o={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=yAe,id:d,input:f,inputProps:h,label:p,labelId:m,MenuProps:g,multiple:v=!1,native:O=!1,onClose:y,onOpen:b,open:w,renderValue:k,SelectDisplayProps:x,variant:_="outlined",...S}=n,P=O?lAe:OAe,E=CQe({props:n,muiFormControl:oTe(),states:["variant","error"]}),C=E.variant||_,T={...n,variant:C,classes:o},$=(e=>{const{classes:t}=e;return t})(T),{root:Q,...R}=$,A=f||{standard:(0,lM.jsx)(wAe,{ownerState:T}),outlined:(0,lM.jsx)(kAe,{label:p,ownerState:T}),filled:(0,lM.jsx)(xAe,{ownerState:T})}[C],j=rB(t,HN(A));return(0,lM.jsx)(c.Fragment,{children:c.cloneElement(A,{inputComponent:P,inputProps:{children:i,error:E.error,IconComponent:u,variant:C,type:void 0,multiple:v,...O?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:g,onClose:y,onOpen:b,open:w,renderValue:k,SelectDisplayProps:{id:d,...x}},...h,classes:h?iU(R,h.classes):R,...f?f.props.inputProps:{}},...(v&&O||l)&&"outlined"===C?{notched:!0}:{},ref:j,className:XN(A.props.className,a,$.root),...!f&&{variant:C},...S})})}));_Ae.muiName="Select";const SAe=_Ae;function PAe(e){return cB("MuiTextField",e)}dB("MuiTextField",["root"]);const EAe={standard:VQe,filled:JQe,outlined:uRe},CAe=Pq(xRe,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TAe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:h,id:p,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:O,label:y,maxRows:b,minRows:w,multiline:k=!1,name:x,onBlur:_,onChange:S,onFocus:P,placeholder:E,required:C=!1,rows:T,select:$=!1,SelectProps:Q,slots:R={},slotProps:A={},type:j,value:D,variant:M="outlined",...I}=n,z={...n,autoFocus:i,color:s,disabled:u,error:c,fullWidth:f,multiline:k,required:C,select:$,variant:M},W=(e=>{const{classes:t}=e;return qN({root:["root"]},PAe,t)})(z),N=R3(p),L=h&&N?`${N}-helper-text`:void 0,F=y&&N?`${N}-label`:void 0,U=EAe[M],X={slots:R,slotProps:{input:v,inputLabel:m,htmlInput:g,formHelperText:d,select:Q,...A}},q={},B=X.slotProps.inputLabel;"outlined"===M&&(B&&void 0!==B.shrink&&(q.notched=B.shrink),q.label=y),$&&(Q&&Q.native||(q.id=void 0),q["aria-describedby"]=void 0);const[V,Y]=zq("input",{elementType:U,externalForwardedProps:X,additionalProps:q,ownerState:z}),[Z,G]=zq("inputLabel",{elementType:yRe,externalForwardedProps:X,ownerState:z}),[H,K]=zq("htmlInput",{elementType:"input",externalForwardedProps:X,ownerState:z}),[J,ee]=zq("formHelperText",{elementType:TRe,externalForwardedProps:X,ownerState:z}),[te,ne]=zq("select",{elementType:SAe,externalForwardedProps:X,ownerState:z}),re=(0,lM.jsx)(V,{"aria-describedby":L,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:f,multiline:k,name:x,rows:T,maxRows:b,minRows:w,type:j,value:D,id:N,inputRef:O,onBlur:_,onChange:S,onFocus:P,placeholder:E,inputProps:K,slots:{input:R.htmlInput?H:void 0},...Y});return(0,lM.jsxs)(CAe,{className:XN(W.root,a),disabled:u,error:c,fullWidth:f,ref:t,required:C,color:s,variant:M,ownerState:z,...I,children:[null!=y&&""!==y&&(0,lM.jsx)(Z,{htmlFor:N,id:F,...G,children:y}),$?(0,lM.jsx)(te,{"aria-describedby":L,id:N,labelId:F,value:D,input:re,...ne,children:o}):re,h&&(0,lM.jsx)(J,{id:L,...ee,children:h})]})})),$Ae=TAe,QAe=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},RAe=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:i,now:o,token:a,startSeparator:s})=>{if(""===a)throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=KEe(e,a),u=cCe(e,l.contentType,l.type,a),c=n?u:"digit"===l.contentType,d=null!=t&&e.isValid(t);let f=d?e.formatByString(t,a):"",h=null;if(c)if(u)h=""===f?e.formatByString(o,a).length:f.length;else{if(null==l.maxLength)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);h=l.maxLength,d&&(f=rCe(oCe(nCe(f,i),h),i))}return wEe({},l,{format:a,maxLength:h,value:f,placeholder:QAe(e,r,l,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:c,startSeparator:s,endSeparator:"",modified:!1})},AAe=e=>{let t=(({utils:e,format:t})=>{let n=10,r=t,i=e.expandFormat(t);for(;i!==r;)if(r=i,i=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return i})(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=(({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n})(wEe({},e,{expandedFormat:t})),r=(e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,i=t.date(void 0),o=[];let a="";const s=Object.keys(t.formatTokenMap).sort(((e,t)=>t.length-e.length)),l=/^([a-zA-Z]+)/,u=new RegExp(`^(${s.join("|")})*$`),c=new RegExp(`^(${s.join("|")})`),d=e=>r.find((t=>t.start<=e&&t.end>=e));let f=0;for(;f0;){const n=c.exec(t)[1];t=t.slice(n.length),o.push(RAe(wEe({},e,{now:i,token:n,startSeparator:a}))),a=""}f+=s.length}else{const e=n[f];r&&t?.start===f||t?.end===f||(0===o.length?a+=e:o[o.length-1].endSeparator+=e),f+=1}}return 0===o.length&&a.length>0&&o.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),o})(wEe({},e,{expandedFormat:t,escapedParts:n}));return(({isRtl:e,formatDensity:t,sections:n})=>n.map((n=>{const r=n=>{let r=n;return e&&null!==r&&r.includes(" ")&&(r=`⁩${r}⁦`),"spacious"===t&&["/",".","-"].includes(r)&&(r=` ${r} `),r};return n.startSeparator=r(n.startSeparator),n.endSeparator=r(n.endSeparator),n})))(wEe({},e,{sections:r}))},jAe=e=>null!=e.saveQuery,DAe=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:i,onClick:o,onFocus:a,onInput:s,onPaste:l,focused:u,autoFocus:d=!1},fieldValueManager:f,applyCharacterEditing:h,resetCharacterQuery:p,setSelectedSections:m,parsedSelectedSections:g,state:v,clearActiveSection:O,clearValue:y,updateSectionValue:b,updateValueFromValueStr:w,sectionOrder:k,areAllSectionsEmpty:x,sectionsValueBoundaries:_}=e,S=c.useRef(null),P=GN(r,S),E=qCe(),C=PCe(),T=R3(),[$,Q]=c.useState(!1),R=c.useMemo((()=>({syncSelectionToDOM:()=>{if(!S.current)return;const e=document.getSelection();if(!e)return;if(null==g)return e.rangeCount>0&&S.current.getRoot().contains(e.getRangeAt(0).startContainer)&&e.removeAllRanges(),void($&&S.current.getRoot().blur());if(!S.current.getRoot().contains(NTe(document)))return;const t=new window.Range;let n;n="all"===g?S.current.getRoot():"empty"===v.sections[g].type?S.current.getSectionContainer(g):S.current.getSectionContent(g),t.selectNodeContents(n),n.focus(),e.removeAllRanges(),e.addRange(t)},getActiveSectionIndexFromDOM:()=>{const e=NTe(document);return e&&S.current&&S.current.getRoot().contains(e)?S.current.getSectionIndexFromDOMElement(e):null},focusField:(e=0)=>{if(!S.current)return;const t=hCe(e,v.sections);Q(!0),S.current.getSectionContent(t).focus()},setSelectedSections:e=>{if(!S.current)return;const t=hCe(e,v.sections);Q(null!==("all"===t?0:t)),m(e)},isFieldFocused:()=>{const e=NTe(document);return!!S.current&&S.current.getRoot().contains(e)}})),[g,m,v.sections,$]),A=gB((e=>{if(!S.current)return;const t=v.sections[e];S.current.getSectionContent(e).innerHTML=t.value||t.placeholder,R.syncSelectionToDOM()})),j=gB(((e,...t)=>{!e.isDefaultPrevented()&&S.current&&(Q(!0),o?.(e,...t),"all"===g?setTimeout((()=>{const e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void m(k.startIndex);let t=0,n=0;for(;n{if(s?.(e),!S.current||"all"!==g)return;const t=e.target.textContent??"";S.current.getRoot().innerHTML=v.sections.map((e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`)).join(""),R.syncSelectionToDOM(),0===t.length||10===t.charCodeAt(0)?(p(),y(),m("all")):t.length>1?w(t):h({keyPressed:t,sectionIndex:0})})),M=gB((e=>{if(l?.(e),n||"all"!==g)return void e.preventDefault();const t=e.clipboardData.getData("text");e.preventDefault(),p(),w(t)})),I=gB(((...e)=>{a?.(...e),!$&&S.current&&(Q(!0),null!=S.current.getSectionIndexFromDOMElement(NTe(document))||m(k.startIndex))})),z=gB(((...e)=>{i?.(...e),setTimeout((()=>{if(!S.current)return;const e=NTe(document);!S.current.getRoot().contains(e)&&(Q(!1),m(null))}))})),W=gB((e=>t=>{t.isDefaultPrevented()||m(e)})),N=gB((e=>{e.preventDefault()})),L=gB((e=>()=>{m(e)})),F=gB((e=>{if(e.preventDefault(),n||t||"number"!=typeof g)return;const r=v.sections[g],i=e.clipboardData.getData("text"),o=/^[a-zA-Z]+$/.test(i),a=/^[0-9]+$/.test(i),s=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(i);"letter"===r.contentType&&o||"digit"===r.contentType&&a||"digit-with-letter"===r.contentType&&s?(p(),b({activeSection:r,newSectionValue:i,shouldGoToNextSection:!0})):o||a||(p(),w(i))})),U=gB((e=>{e.preventDefault(),e.dataTransfer.dropEffect="none"})),X=gB((e=>{if(!S.current)return;const t=e.target,r=t.textContent??"",i=S.current.getSectionIndexFromDOMElement(t),o=v.sections[i];if(!n&&S.current){if(0===r.length){if(""===o.value)return void A(i);const t=e.nativeEvent.inputType;return"insertParagraph"===t||"insertLineBreak"===t?void A(i):(p(),void O())}h({keyPressed:r,sectionIndex:i}),A(i)}else A(i)}));rL((()=>{if($&&S.current)if("all"===g)S.current.getRoot().focus();else if("number"==typeof g){const e=S.current.getSectionContent(g);e&&e.focus()}}),[g,$]);const q=c.useMemo((()=>v.sections.reduce(((e,t)=>(e[t.type]=_[t.type]({currentDate:null,contentType:t.contentType,format:t.format}),e)),{})),[_,v.sections]),B="all"===g,V=c.useMemo((()=>v.sections.map(((e,r)=>{const i=!B&&!t&&!n;return{container:{"data-sectionindex":r,onClick:W(r)},content:{tabIndex:B||r>0?-1:0,contentEditable:!B&&!t&&!n,role:"spinbutton",id:`${T}-${e.type}`,"aria-labelledby":`${T}-${e.type}`,"aria-readonly":n,"aria-valuenow":mCe(e,C),"aria-valuemin":q[e.type].minimum,"aria-valuemax":q[e.type].maximum,"aria-valuetext":e.value?pCe(e,C):E.empty,"aria-label":E[e.type],"aria-disabled":t,spellCheck:!i&&void 0,autoCapitalize:i?"off":void 0,autoCorrect:i?"off":void 0,[parseInt(c.version,10)>=17?"enterKeyHint":"enterkeyhint"]:i?"next":void 0,children:e.value||e.placeholder,onInput:X,onPaste:F,onFocus:L(r),onDragOver:U,onMouseUp:N,inputMode:"letter"===e.contentType?"text":"numeric"},before:{children:e.startSeparator},after:{children:e.endSeparator}}}))),[v.sections,L,F,U,X,W,N,t,n,B,E,C,q,T]),Y=gB((e=>{w(e.target.value)})),Z=c.useMemo((()=>x?"":f.getV7HiddenInputValueFromSections(v.sections)),[x,v.sections,f]);return c.useEffect((()=>{if(null==S.current)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join("\n"));d&&S.current&&S.current.getSectionContent(k.startIndex).focus()}),[]),{interactions:R,returnedValue:{autoFocus:d,readOnly:n,focused:u??$,sectionListRef:P,onBlur:z,onClick:j,onFocus:I,onInput:D,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:V,tabIndex:0===g?-1:0,contentEditable:B,value:Z,onChange:Y,areAllSectionsEmpty:x}}},MAe=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),IAe=e=>{const t=VN(),n=c.useRef(),r=c.useRef(),{forwardedProps:{onFocus:i,onClick:o,onPaste:a,onBlur:s,inputRef:l,placeholder:u},internalProps:{readOnly:d=!1,disabled:f=!1},parsedSelectedSections:h,activeSectionIndex:p,state:m,fieldValueManager:g,valueManager:v,applyCharacterEditing:O,resetCharacterQuery:y,updateSectionValue:b,updateValueFromValueStr:w,clearActiveSection:k,clearValue:x,setTempAndroidValueStr:_,setSelectedSections:S,getSectionsFromValue:P,areAllSectionsEmpty:E,localizedDigits:C}=e,T=c.useRef(null),$=GN(l,T),Q=c.useMemo((()=>((e,t,n)=>{let r=0,i=n?1:0;const o=[];for(let a=0;a({syncSelectionToDOM:()=>{if(!T.current)return;if(null==h)return void(T.current.scrollLeft&&(T.current.scrollLeft=0));if(T.current!==NTe(document))return;const e=T.current.scrollTop;if("all"===h)T.current.select();else{const e=Q[h],t="empty"===e.type?e.startInInput-e.startSeparator.length:e.startInInput,n="empty"===e.type?e.endInInput+e.endSeparator.length:e.endInInput;t===T.current.selectionStart&&n===T.current.selectionEnd||T.current===NTe(document)&&T.current.setSelectionRange(t,n),clearTimeout(r.current),r.current=setTimeout((()=>{!T.current||T.current!==NTe(document)||T.current.selectionStart!==T.current.selectionEnd||T.current.selectionStart===t&&T.current.selectionEnd===n||R.syncSelectionToDOM()}))}T.current.scrollTop=e},getActiveSectionIndexFromDOM:()=>{const e=T.current.selectionStart??0,t=T.current.selectionEnd??0;if(0===e&&0===t)return null;const n=e<=Q[0].startInInput?1:Q.findIndex((t=>t.startInInput-t.startSeparator.length>e));return-1===n?Q.length-1:n-1},focusField:(e=0)=>{T.current?.focus(),S(e)},setSelectedSections:e=>S(e),isFieldFocused:()=>T.current===NTe(document)})),[T,h,Q,S]),A=()=>{const e=T.current.selectionStart??0;let t;t=e<=Q[0].startInInput||e>=Q[Q.length-1].endInInput?1:Q.findIndex((t=>t.startInInput-t.startSeparator.length>e));const n=-1===t?Q.length-1:t-1;S(n)},j=gB(((...e)=>{i?.(...e);const t=T.current;clearTimeout(n.current),n.current=setTimeout((()=>{t&&t===T.current&&null==p&&(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?S("all"):A())}))})),D=gB(((e,...t)=>{e.isDefaultPrevented()||(o?.(e,...t),A())})),M=gB((e=>{if(a?.(e),e.preventDefault(),d||f)return;const t=e.clipboardData.getData("text");if("number"==typeof h){const e=m.sections[h],n=/^[a-zA-Z]+$/.test(t),r=/^[0-9]+$/.test(t),i=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===e.contentType&&n||"digit"===e.contentType&&r||"digit-with-letter"===e.contentType&&i)return y(),void b({activeSection:e,newSectionValue:t,shouldGoToNextSection:!0});if(n||r)return}y(),w(t)})),I=gB(((...e)=>{s?.(...e),S(null)})),z=gB((e=>{if(d)return;const n=e.target.value;if(""===n)return y(),void x();const r=e.nativeEvent.data,i=r&&r.length>1,o=i?r:n,a=MAe(o);if(null==p||i)return void w(i?r:a);let s;if("all"===h&&1===a.length)s=a;else{const e=MAe(g.getV6InputValueFromSections(Q,C,t));let n=-1,r=-1;for(let t=0;ti.end)return;const o=a.length-e.length+i.end-MAe(i.endSeparator||"").length;s=a.slice(i.start+MAe(i.startSeparator||"").length,o)}if(0===s.length)return navigator.userAgent.toLowerCase().includes("android")&&_(o),y(),void k();O({keyPressed:s,sectionIndex:p})})),W=c.useMemo((()=>void 0!==u?u:g.getV6InputValueFromSections(P(v.emptyValue),C,t)),[u,g,P,v.emptyValue,C,t]),N=c.useMemo((()=>m.tempValueStrAndroid??g.getV6InputValueFromSections(m.sections,C,t)),[m.sections,g,m.tempValueStrAndroid,C,t]);c.useEffect((()=>(T.current&&T.current===NTe(document)&&S("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)})),[]);const L=c.useMemo((()=>null==p||"letter"===m.sections[p].contentType?"text":"numeric"),[p,m.sections]),F=T.current&&T.current===NTe(document);return{interactions:R,returnedValue:{readOnly:d,onBlur:I,onClick:D,onFocus:j,onPaste:M,inputRef:$,enableAccessibleFieldDOMStructure:!1,placeholder:W,inputMode:L,autoComplete:"off",value:!F&&E?"":N,onChange:z}}},zAe=e=>{const t=PCe(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:i,enableAccessibleFieldDOMStructure:o=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:u,clearable:d,onClear:f},fieldValueManager:h,valueManager:p,validator:m}=e,g=VN(),v=(e=>{const t=PCe(),n=qCe(),r=SCe(),i=VN(),{valueManager:o,fieldValueManager:a,valueType:s,validator:l,internalProps:u,internalProps:{value:d,defaultValue:f,referenceDate:h,onChange:p,format:m,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:O,shouldRespectLeadingZeros:y=!1,timezone:b,enableAccessibleFieldDOMStructure:w=!1}}=e,{timezone:k,value:x,handleValueChange:_}=e$e({timezone:b,value:d,defaultValue:f,referenceDate:h,onChange:p,valueManager:o}),S=c.useMemo((()=>(e=>{const t=e.date(void 0);return"0"===e.formatByString(e.setSeconds(t,0),"s")?tCe:Array.from({length:10}).map(((n,r)=>e.formatByString(e.setSeconds(t,r),"s")))})(t)),[t]),P=c.useMemo((()=>((e,t,n)=>{const r=e.date(void 0,n),i=e.endOfYear(r),o=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=jEe(e,r).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:uCe(e,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):a,longestMonth:s}),weekDay:({format:t,contentType:n})=>{if("digit"===n){const n=JEe(e,t).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:({format:n})=>{const i=e.getHours(o);return nCe(e.formatByString(e.endOfDay(r),n),t)!==i.toString()?{minimum:1,maximum:Number(nCe(e.formatByString(e.startOfDay(r),n),t))}:{minimum:0,maximum:i}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}})(t,S,k)),[t,S,k]),E=c.useCallback(((e,r=null)=>a.getSectionsFromValue(t,e,r,(e=>AAe({utils:t,localeText:n,localizedDigits:S,format:m,date:e,formatDensity:g,shouldRespectLeadingZeros:y,enableAccessibleFieldDOMStructure:w,isRtl:i})))),[a,m,n,S,i,y,t,g,w]),[C,T]=c.useState((()=>{const e=E(x),n={sections:e,value:x,referenceValue:o.emptyValue,tempValueStrAndroid:null},r=(e=>Math.max(...e.map((e=>GEe[e.type]??1))))(e);return wEe({},n,{referenceValue:o.getInitialReferenceValue({referenceDate:h,value:x,utils:t,props:u,granularity:r,timezone:k})})})),[$,Q]=j3({controlled:v,default:null,name:"useField",state:"selectedSections"}),R=e=>{Q(e),O?.(e)},A=c.useMemo((()=>hCe($,C.sections)),[$,C.sections]),j="all"===A?0:A,D=({value:e,referenceValue:n,sections:i})=>{if(T((t=>wEe({},t,{sections:i,value:e,referenceValue:n,tempValueStrAndroid:null}))),o.areValuesEqual(t,C.value,e))return;const a={validationError:l({adapter:r,value:e,timezone:k,props:u})};_(e,a)},M=(e,t)=>{const n=[...C.sections];return n[e]=wEe({},n[e],{value:t,modified:!0}),n};return c.useEffect((()=>{const e=E(C.value);T((t=>wEe({},t,{sections:e})))}),[m,t.locale,i]),c.useEffect((()=>{let e;e=!o.areValuesEqual(t,C.value,x)||o.getTimezone(t,C.value)!==o.getTimezone(t,x),e&&T((e=>wEe({},e,{value:x,referenceValue:a.updateReferenceValue(t,x,e.referenceValue),sections:E(x)})))}),[x]),{state:C,activeSectionIndex:j,parsedSelectedSections:A,setSelectedSections:R,clearValue:()=>{D({value:o.emptyValue,referenceValue:C.referenceValue,sections:E(o.emptyValue)})},clearActiveSection:()=>{if(null==j)return;const e=C.sections[j],n=a.getActiveDateManager(t,C,e),r=n.getSections(C.sections).filter((e=>""!==e.value)).length===(""===e.value?0:1),i=M(j,""),o=r?null:t.getInvalidDate(),s=n.getNewValuesFromNewActiveDate(o);D(wEe({},s,{sections:i}))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:r})=>{r&&j{const r=t.some((e=>"day"===e.type)),i=[],o=[];for(let e=0;ewEe({},e,u,{sections:o,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const r=a.parseValueStr(e,C.referenceValue,((e,r)=>{const o=t.parse(e,m);if(null==o||!t.isValid(o))return null;const a=AAe({utils:t,localeText:n,localizedDigits:S,format:m,date:o,formatDensity:g,shouldRespectLeadingZeros:y,enableAccessibleFieldDOMStructure:w,isRtl:i});return fCe(t,o,a,r,!1)})),o=a.updateReferenceValue(t,r,C.referenceValue);D({value:r,referenceValue:o,sections:E(r,C.sections)})},setTempAndroidValueStr:e=>T((t=>wEe({},t,{tempValueStrAndroid:e}))),getSectionsFromValue:E,sectionsValueBoundaries:P,localizedDigits:S,timezone:k}})(e),{state:O,activeSectionIndex:y,parsedSelectedSections:b,setSelectedSections:w,clearValue:k,clearActiveSection:x,updateSectionValue:_,setTempAndroidValueStr:S,sectionsValueBoundaries:P,localizedDigits:E,timezone:C}=v,T=(({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:i,timezone:o})=>{const a=PCe(),[s,l]=c.useState(null),u=gB((()=>l(null)));c.useEffect((()=>{null!=s&&e[s.sectionIndex]?.type!==s.sectionType&&u()}),[e,s,u]),c.useEffect((()=>{if(null!=s){const e=setTimeout((()=>u()),5e3);return()=>{clearTimeout(e)}}return()=>{}}),[s,u]);const d=({keyPressed:t,sectionIndex:n},r,i)=>{const o=t.toLowerCase(),a=e[n];if(null!=s&&(!i||i(s.value))&&s.sectionIndex===n){const e=`${s.value}${o}`,t=r(e,a);if(!jAe(t))return l({sectionIndex:n,value:e,sectionType:a.type}),t}const c=r(o,a);return jAe(c)&&!c.saveQuery?(u(),null):(l({sectionIndex:n,value:o,sectionType:a.type}),jAe(c)?null:c)},f=gB((s=>{const l=e[s.sectionIndex],u=iCe(s.keyPressed,r)?(e=>{const t=(e,t)=>{const i=nCe(e,r),o=Number(i),s=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(o>s.maximum)return{saveQuery:!1};if(os.maximum||i.length===s.maximum.toString().length;return{sectionValue:aCe(a,o,s,r,t),shouldGoToNextSection:l}};return d(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const r=cCe(a,"digit","month","MM"),i=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});return jAe(i)?i:wEe({},i,{sectionValue:lCe(a,i.sectionValue,"MM",n.format)})}if("weekDay"===n.type){const r=t(e,n);return jAe(r)?r:wEe({},r,{sectionValue:JEe(a,n.format)[Number(r.sectionValue)-1]})}return{saveQuery:!1}}),(e=>iCe(e,r)))})(wEe({},s,{keyPressed:rCe(s.keyPressed,r)})):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,r,i)=>{const s=e=>eCe(a,o,n.type,e);if("letter"===n.contentType)return t(n.format,s(n.format),e);if(r&&null!=i&&"letter"===KEe(a,r).contentType){const n=s(r),o=t(0,n,e);return jAe(o)?{saveQuery:!1}:wEe({},o,{sectionValue:i(o.sectionValue,n)})}return{saveQuery:!1}};return d(e,((e,t)=>{switch(t.type){case"month":{const r=e=>lCe(a,e,a.formats.month,t.format);return n(e,t,a.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,a.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(s);null!=u?t({activeSection:l,newSectionValue:u.sectionValue,shouldGoToNextSection:u.shouldGoToNextSection}):i(null)}));return{applyCharacterEditing:f,resetCharacterQuery:u}})({sections:O.sections,updateSectionValue:_,sectionsValueBoundaries:P,localizedDigits:E,setTempAndroidValueStr:S,timezone:C}),{resetCharacterQuery:$}=T,Q=p.areValuesEqual(t,O.value,p.emptyValue),R=o?DAe:IAe,A=c.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const i=0===r?null:r-1,o=r===e.length-1?null:r+1;n[r]={leftIndex:i,rightIndex:o}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex(((e,t)=>t>=o&&e.endSeparator?.includes(" ")&&" / "!==e.endSeparator)),-1===a&&(a=e.length-1);for(let e=a;e>=o;e-=1)i[e]=s,r[s]=e,s-=1;o=a+1}return e.forEach(((t,o)=>{const a=i[o],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[o]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(O.sections,g&&!o)),[O.sections,g,o]),{returnedValue:j,interactions:D}=R(wEe({},e,v,T,{areAllSectionsEmpty:Q,sectionOrder:A})),M=gB((e=>{if(l?.(e),!a)switch(!0){case(e.ctrlKey||e.metaKey)&&"A"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey:e.preventDefault(),w("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==b)w(A.startIndex);else if("all"===b)w(A.endIndex);else{const e=A.neighbors[b].rightIndex;null!==e&&w(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==b)w(A.endIndex);else if("all"===b)w(A.startIndex);else{const e=A.neighbors[b].leftIndex;null!==e&&w(e)}break;case"Delete"===e.key:if(e.preventDefault(),s)break;null==b||"all"===b?k():x(),$();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),s||null==y)break;const n=O.sections[y],r=h.getActiveDateManager(t,O,n),o=((e,t,n,r,i,o,a,s)=>{const l=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),u="Home"===r,c="End"===r,d=""===n.value||u||c;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),f=t=>aCe(e,t,r,o,n),h="minutes"===n.type&&s?.minutesStep?s.minutesStep:1;let p=parseInt(nCe(n.value,o),10)+l*h;if(d){if("year"===n.type&&!c&&!u)return e.formatByString(e.date(void 0,t),n.format);p=l>0||u?r.minimum:r.maximum}return p%h!=0&&((l<0||u)&&(p+=h-(h+p)%h),(l>0||c)&&(p-=p%h)),p>r.maximum?f(r.minimum+(p-r.maximum-1)%(r.maximum-r.minimum+1)):p{const r=eCe(e,t,n.type,n.format);if(0===r.length)return n.value;if(d)return l>0||u?r[0]:r[r.length-1];const i=r.indexOf(n.value);return r[((i+l)%r.length+r.length)%r.length]})()})(t,C,n,e.key,P,E,r.date,{minutesStep:i});_({activeSection:n,newSectionValue:o,shouldGoToNextSection:!1});break}}}));rL((()=>{D.syncSelectionToDOM()}));const{hasValidationError:I}=JTe({props:n,validator:m,timezone:C,value:O.value,onError:n.onError}),z=c.useMemo((()=>void 0!==u?u:I),[I,u]);c.useEffect((()=>{z||null!=y||$()}),[O.referenceValue,y,z]),c.useEffect((()=>{null!=O.tempValueStrAndroid&&null!=y&&($(),x())}),[O.sections]),c.useImperativeHandle(r,(()=>({getSections:()=>O.sections,getActiveSectionIndex:D.getActiveSectionIndexFromDOM,setSelectedSections:D.setSelectedSections,focusField:D.focusField,isFieldFocused:D.isFieldFocused})));const W={onKeyDown:M,onClear:gB(((e,...t)=>{e.preventDefault(),f?.(e,...t),k(),D.isFieldFocused()?w(A.startIndex):D.focusField(0)})),error:z,clearable:Boolean(d&&!Q&&!s&&!a)},N={disabled:a,readOnly:s};return wEe({},e.forwardedProps,W,N,j)},WAe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],NAe=(e,t)=>c.useMemo((()=>{const n=wEe({},e),r={},i=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return WAe.forEach(i),"date"===t?KCe.forEach(i):"time"===t?JCe.forEach(i):"date-time"===t&&(KCe.forEach(i),JCe.forEach(i),eTe.forEach(i)),{forwardedProps:n,internalProps:r}}),[e,t]),LAe=["clearable","onClear","InputProps","sx","slots","slotProps"],FAe=["ownerState"],UAe=e=>{const t=qCe(),{clearable:n,onClear:r,InputProps:i,sx:o,slots:a,slotProps:s}=e,l=PEe(e,LAe),u=a?.clearButton??ITe,d=PEe(b3({elementType:u,externalSlotProps:s?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),FAe),f=a?.clearIcon??xQe,h=b3({elementType:f,externalSlotProps:s?.clearIcon,ownerState:{}});return wEe({},l,{InputProps:wEe({},i,{endAdornment:(0,lM.jsxs)(c.Fragment,{children:[n&&(0,lM.jsx)(dTe,{position:"end",sx:{marginRight:i?.endAdornment?-1:-1.5},children:(0,lM.jsx)(u,wEe({},d,{onClick:r,children:(0,lM.jsx)(f,wEe({fontSize:"small"},h))}))}),i?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o)?o:[o]]})};function XAe(e){return cB("MuiPickersTextField",e)}function qAe(e){return cB("MuiPickersInputBase",e)}dB("MuiPickersTextField",["root","focused","disabled","error","required"]);const BAe=dB("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function VAe(e){return cB("MuiPickersOutlinedInput",e)}const YAe=wEe({},BAe,dB("MuiPickersOutlinedInput",["root","notchedOutline","input"])),ZAe=["children","className","label","notched","shrink"],GAe=Pq("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),HAe=Pq("span")((({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"}))),KAe=Pq("legend")((({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function JAe(e){const{className:t,label:n}=e,r=PEe(e,ZAe),i=null!=n&&""!==n,o=wEe({},e,{withLabel:i});return(0,lM.jsx)(GAe,wEe({"aria-hidden":!0,className:t},r,{ownerState:o,children:(0,lM.jsx)(KAe,{ownerState:o,children:i?(0,lM.jsx)(HAe,{children:n}):(0,lM.jsx)(HAe,{className:"notranslate",children:"​"})})}))}function eje(e){return cB("MuiPickersSectionList",e)}const tje=dB("MuiPickersSectionList",["root","section","sectionContent"]),nje=["slots","slotProps","elements","sectionListRef"],rje=Pq("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),ije=Pq("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),oje=Pq("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),aje=Pq("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"});function sje(e){const{slots:t,slotProps:n,element:r,classes:i}=e,o=t?.section??ije,a=b3({elementType:o,externalSlotProps:n?.section,externalForwardedProps:r.container,className:i.section,ownerState:{}}),s=t?.sectionContent??aje,l=b3({elementType:s,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:{}}),u=t?.sectionSeparator??oje,c=b3({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=b3({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return(0,lM.jsxs)(o,wEe({},a,{children:[(0,lM.jsx)(u,wEe({},c)),(0,lM.jsx)(s,wEe({},l)),(0,lM.jsx)(u,wEe({},d))]}))}const lje=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:o,sectionListRef:a}=n,s=PEe(n,nje),l=(e=>{const{classes:t}=e;return qN({root:["root"],section:["section"],sectionContent:["sectionContent"]},eje,t)})(n),u=c.useRef(null),d=GN(t,u),f=e=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${e} before the mount of the component.`);return u.current};c.useImperativeHandle(a,(()=>({getRoot:()=>f("getRoot"),getSectionContainer:e=>f("getSectionContainer").querySelector(`.${tje.section}[data-sectionindex="${e}"]`),getSectionContent:e=>f("getSectionContent").querySelector(`.${tje.section}[data-sectionindex="${e}"] .${tje.sectionContent}`),getSectionIndexFromDOMElement(e){const t=f("getSectionIndexFromDOMElement");if(null==e||!t.contains(e))return null;let n=null;return e.classList.contains(tje.section)?n=e:e.classList.contains(tje.sectionContent)&&(n=e.parentElement),null==n?null:Number(n.dataset.sectionindex)}})));const h=r?.root??rje,p=b3({elementType:h,externalSlotProps:i?.root,externalForwardedProps:s,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:l.root,ownerState:{}});return(0,lM.jsx)(h,wEe({},p,{children:p.contentEditable?o.map((({content:e,before:t,after:n})=>`${t.children}${e.children}${n.children}`)).join(""):(0,lM.jsx)(c.Fragment,{children:o.map(((e,t)=>(0,lM.jsx)(sje,{slots:r,slotProps:i,element:e,classes:l},t)))})}))})),uje=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],cje=Pq("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>wEe({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:(.15/16,Math.round(937.5)/1e5+"em"),variants:[{props:{fullWidth:!0},style:{width:"100%"}}]}))),dje=Pq(rje,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})((({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:t,filled:n,label:r})=>!e&&!t&&!n&&null==r,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:"light"===e.palette.mode?.42:.5}}]}))),fje=Pq(ije,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})((({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"}))),hje=Pq(aje,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})((({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"}))),pje=Pq(oje,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})((()=>({whiteSpace:"pre",letterSpacing:"inherit"}))),mje=Pq("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(wEe({},{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"})),gje=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:o,onChange:a,id:s,endAdornment:l,startAdornment:u,renderSuffix:d,slots:f,slotProps:h,contentEditable:p,tabIndex:m,onInput:g,onPaste:v,onKeyDown:O,name:y,readOnly:b,inputProps:w,inputRef:k,sectionListRef:x}=n,_=PEe(n,uje),S=GN(t,c.useRef(null)),P=GN(w?.ref,k),E=VN(),C=oTe();if(!C)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");c.useEffect((()=>{C&&C.setAdornedStart(Boolean(u))}),[C,u]),c.useEffect((()=>{C&&(i?C.onEmpty():C.onFilled())}),[C,i]);const T=wEe({},n,C,{isRtl:E}),$=(e=>{const{focused:t,disabled:n,error:r,classes:i,fullWidth:o,readOnly:a,color:s,size:l,endAdornment:u,startAdornment:c}=e;return qN({root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",o&&"fullWidth",`color${dU(s)}`,"small"===l&&"inputSizeSmall",Boolean(c)&&"adornedStart",Boolean(u)&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]},qAe,i)})(T),Q=f?.root||cje,R=b3({elementType:Q,externalSlotProps:h?.root,externalForwardedProps:_,additionalProps:{"aria-invalid":C.error,ref:S},className:$.root,ownerState:T}),A=f?.input||dje;return(0,lM.jsxs)(Q,wEe({},R,{children:[u,(0,lM.jsx)(lje,{sectionListRef:x,elements:r,contentEditable:p,tabIndex:m,className:$.sectionsContainer,onFocus:e=>{C.disabled?e.stopPropagation():C.onFocus?.(e)},onBlur:C.onBlur,onInput:g,onPaste:v,onKeyDown:O,slots:{root:A,section:fje,sectionContent:hje,sectionSeparator:pje},slotProps:{root:{ownerState:T},sectionContent:{className:BAe.sectionContent},sectionSeparator:({position:e})=>({className:"before"===e?BAe.sectionBefore:BAe.sectionAfter})}}),l,d?d(wEe({},C)):null,(0,lM.jsx)(mje,wEe({name:y,className:$.input,value:o,onChange:a,id:s,"aria-hidden":"true",tabIndex:-1,readOnly:b,required:C.required,disabled:C.disabled},w,{ref:P}))]}))})),vje=["label","autoFocus","ownerState","notched"],Oje=Pq(cje,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${YAe.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${YAe.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${YAe.focused} .${YAe.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${YAe.disabled}`]:{[`& .${YAe.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${YAe.error} .${YAe.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t]?.main??!1)).map((t=>({props:{color:t},style:{[`&.${YAe.focused}:not(.${YAe.error}) .${YAe.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})))}})),yje=Pq(dje,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),bje=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:o}=n,a=PEe(n,vje),s=oTe(),l=wEe({},n,i,s,{color:s?.color||"primary"}),u=(e=>{const{classes:t}=e;return wEe({},t,qN({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},VAe,t))})(l);return(0,lM.jsx)(gje,wEe({slots:{root:Oje,input:yje},renderSuffix:e=>(0,lM.jsx)(JAe,{shrink:Boolean(o||e.adornedStart||e.focused||e.filled),notched:Boolean(o||e.adornedStart||e.focused||e.filled),className:u.notchedOutline,label:null!=r&&""!==r&&s?.required?(0,lM.jsxs)(c.Fragment,{children:[r," ","*"]}):r,ownerState:l})},a,{label:r,classes:u,ref:t}))}));function wje(e){return cB("MuiPickersFilledInput",e)}bje.muiName="Input";const kje=wEe({},BAe,dB("MuiPickersFilledInput",["root","underline","input"])),xje=["label","autoFocus","disableUnderline","ownerState"],_je=Pq(cje,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dX(e)&&"disableUnderline"!==e})((({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${kje.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${kje.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[...Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t].main)).map((t=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}}))),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${kje.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kje.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kje.disabled}, .${kje.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kje.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:12}},{props:({endAdornment:e})=>!!e,style:{paddingRight:12}}]}})),Sje=Pq(dje,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),Pje=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:o}=n,a=PEe(n,xje),s=oTe(),l=(e=>{const{classes:t,disableUnderline:n}=e;return wEe({},t,qN({root:["root",!n&&"underline"],input:["input"]},wje,t))})(wEe({},n,o,s,{color:s?.color||"primary"}));return(0,lM.jsx)(gje,wEe({slots:{root:_je,input:Sje},slotProps:{root:{disableUnderline:i}}},a,{label:r,classes:l,ref:t}))}));function Eje(e){return cB("MuiPickersFilledInput",e)}Pje.muiName="Input";const Cje=wEe({},BAe,dB("MuiPickersInput",["root","input"])),Tje=["label","autoFocus","disableUnderline","ownerState"],$je=Pq(cje,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t].main)).map((t=>({props:{color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Cje.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Cje.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Cje.disabled}, .${Cje.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Cje.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}})),Qje=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:o}=n,a=PEe(n,Tje),s=oTe(),l=(e=>{const{classes:t,disableUnderline:n}=e;return wEe({},t,qN({root:["root",!n&&"underline"],input:["input"]},Eje,t))})(wEe({},n,o,s,{disableUnderline:i,color:s?.color||"primary"}));return(0,lM.jsx)(gje,wEe({slots:{root:$je}},a,{label:r,classes:l,ref:t}))}));Qje.muiName="Input";const Rje=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],Aje={standard:Qje,filled:Pje,outlined:bje},jje=Pq(xRe,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dje=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:o,color:a="primary",disabled:s=!1,error:l=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:h,inputRef:p,sectionListRef:m,elements:g,areAllSectionsEmpty:v,onClick:O,onKeyDown:y,onKeyUp:b,onPaste:w,onInput:k,endAdornment:x,startAdornment:_,tabIndex:S,contentEditable:P,focused:E,value:C,onChange:T,fullWidth:$,id:Q,name:R,helperText:A,FormHelperTextProps:j,label:D,InputLabelProps:M}=n,I=PEe(n,Rje),z=GN(t,c.useRef(null)),W=R3(Q),N=A&&W?`${W}-helper-text`:void 0,L=D&&W?`${W}-label`:void 0,F=wEe({},n,{color:a,disabled:s,error:l,focused:E,required:d,variant:u}),U=(e=>{const{focused:t,disabled:n,classes:r,required:i}=e;return qN({root:["root",t&&!n&&"focused",n&&"disabled",i&&"required"]},XAe,r)})(F),X=Aje[u];return(0,lM.jsxs)(jje,wEe({className:XN(U.root,o),ref:z,focused:E,onFocus:r,onBlur:i,disabled:s,variant:u,error:l,color:a,fullWidth:$,required:d,ownerState:F},I,{children:[(0,lM.jsx)(yRe,wEe({htmlFor:W,id:L},M,{children:D})),(0,lM.jsx)(X,wEe({elements:g,areAllSectionsEmpty:v,onClick:O,onKeyDown:y,onKeyUp:b,onInput:k,onPaste:w,endAdornment:x,startAdornment:_,tabIndex:S,contentEditable:P,value:C,onChange:T,id:W,fullWidth:$,inputProps:h,inputRef:p,sectionListRef:m,label:D,name:R,role:"group","aria-labelledby":L},f)),A&&(0,lM.jsx)(TRe,wEe({id:N},j,{children:A}))]}))})),Mje=["enableAccessibleFieldDOMStructure"],Ije=["InputProps","readOnly"],zje=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Wje=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=PEe(e,Mje);if(t){const{InputProps:e,readOnly:t}=n;return wEe({},PEe(n,Ije),{InputProps:wEe({},e??{},{readOnly:t})})}const{onPaste:r,onKeyDown:i,inputMode:o,readOnly:a,InputProps:s,inputProps:l,inputRef:u}=n;return wEe({},PEe(n,zje),{InputProps:wEe({},s??{},{readOnly:a}),inputProps:wEe({},l??{},{inputMode:o,onPaste:r,onKeyDown:i,ref:u})})},Nje=["slots","slotProps","InputProps","inputProps"],Lje=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:o,inputProps:a}=n,s=PEe(n,Nje),l=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Dje:$Ae),c=b3({elementType:u,externalSlotProps:i?.textField,externalForwardedProps:s,additionalProps:{ref:t},ownerState:l});c.inputProps=wEe({},a,c.inputProps),c.InputProps=wEe({},o,c.InputProps);const d=(e=>{const t=(e=>{const t=PCe(),n=ECe();return wEe({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:AEe(t,e.minDate,n.minDate),maxDate:AEe(t,e.maxDate,n.maxDate)})})(e),{forwardedProps:n,internalProps:r}=NAe(t,"date");return zAe({forwardedProps:n,internalProps:r,valueManager:vCe,fieldValueManager:OCe,validator:rTe,valueType:"date"})})(c),f=Wje(d),h=UAe(wEe({},f,{slots:r,slotProps:i}));return(0,lM.jsx)(u,wEe({},h))})),Fje=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=SCe();return c.useCallback((u=>null!==rTe({adapter:l,value:u,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a}})),[l,e,t,n,r,i,o,a,s])},Uje=e=>cB("MuiPickersFadeTransitionGroup",e),Xje=(dB("MuiPickersFadeTransitionGroup",["root"]),Pq(OTe,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function qje(e){const t=EEe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=(e=>{const{classes:t}=e;return qN({root:["root"]},Uje,t)})(t),s=eB();return i?n:(0,lM.jsx)(Xje,{className:XN(a.root,r),children:(0,lM.jsx)(aB,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function Bje(e){return cB("MuiPickersDay",e)}const Vje=dB("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Yje=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Zje=({theme:e})=>wEe({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Vje.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Vje.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Vje.disabled}:not(.${Vje.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vje.disabled}&.${Vje.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:"0 2px"}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Vje.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Gje=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Hje=Pq(RTe,{name:"MuiPickersDay",slot:"Root",overridesResolver:Gje})(Zje),Kje=Pq("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Gje})((({theme:e})=>wEe({},Zje({theme:e}),{opacity:0,pointerEvents:"none"}))),Jje=()=>{},eDe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:l=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:h=Jje,onBlur:p=Jje,onKeyDown:m=Jje,onMouseDown:g=Jje,onMouseEnter:v=Jje,outsideCurrentMonth:O,selected:y=!1,showDaysOutsideCurrentMonth:b=!1,children:w,today:k=!1}=n,x=PEe(n,Yje),_=wEe({},n,{autoFocus:r,disabled:a,disableHighlightToday:s,disableMargin:l,selected:y,showDaysOutsideCurrentMonth:b,today:k}),S=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return qN({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Bje,l)})(_),P=PCe(),E=c.useRef(null),C=GN(E,t);return rL((()=>{!r||a||u||O||E.current.focus()}),[r,a,u,O]),O&&!b?(0,lM.jsx)(Kje,{className:XN(S.root,S.hiddenDaySpacingFiller,i),ownerState:_,role:x.role}):(0,lM.jsx)(Hje,wEe({className:XN(S.root,i),ref:C,centerRipple:!0,disabled:a,tabIndex:y?0:-1,onKeyDown:e=>m(e,o),onFocus:e=>h(e,o),onBlur:e=>p(e,o),onMouseEnter:e=>v(e,o),onClick:e=>{a||f(o),O&&e.currentTarget.focus(),d&&d(e)},onMouseDown:e=>{g(e),O&&e.preventDefault()}},x,{ownerState:_,children:w||P.format(o,"dayOfMonth")}))})),tDe=c.memo(eDe);function nDe(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var rDe=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=nDe(n.className,r):n.setAttribute("class",nDe(n.className&&n.className.baseVal||"",r)));var n,r}))},iDe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;icB("MuiPickersSlideTransition",e),sDe=dB("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),lDe=["children","className","reduceAnimations","slideDirection","transKey","classes"],uDe=Pq(OTe,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${sDe["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${sDe["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${sDe.slideEnterActive}`]:t.slideEnterActive},{[`.${sDe.slideExit}`]:t.slideExit},{[`.${sDe["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${sDe["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})((({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${sDe["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${sDe["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${sDe.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${sDe.slideExit}`]:{transform:"translate(0%)"},[`& .${sDe["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${sDe["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}})),cDe=e=>cB("MuiDayCalendar",e),dDe=(dB("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),fDe=["ownerState"],hDe=Pq("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pDe=Pq("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),mDe=Pq(zCe,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary}))),gDe=Pq(zCe,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled}))),vDe=Pq(zCe,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})((({theme:e})=>wEe({},e.typography.caption,{width:36,height:36,padding:0,margin:"0 2px",color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"}))),ODe=Pq("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),yDe=Pq((function(e){const t=EEe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=PEe(t,lDe),s=(e=>{const{classes:t,slideDirection:n}=e;return qN({root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]},aDe,t)})(t),l=eB();if(i)return(0,lM.jsx)("div",{className:XN(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return(0,lM.jsx)(uDe,{className:XN(s.root,r),childFactory:e=>c.cloneElement(e,{classNames:u}),role:"presentation",children:(0,lM.jsx)(oDe,wEe({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),bDe=Pq("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),wDe=Pq("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function kDe(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:i,isDateDisabled:o,currentMonthNumber:a,isViewFocused:s}=e,l=PEe(e,dDe);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:p,slotProps:m,timezone:g}=t,v=PCe(),O=CCe(g),y=null!==r&&v.isSameDay(n,r),b=i.some((e=>v.isSameDay(e,n))),w=v.isSameDay(n,O),k=p?.day??tDe,x=PEe(b3({elementType:k,externalSlotProps:m?.day,additionalProps:wEe({disableHighlightToday:d,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":v.toJsDate(n).valueOf()},l),ownerState:wEe({},t,{day:n,selected:b})}),fDe),_=c.useMemo((()=>u||o(n)),[u,o,n]),S=c.useMemo((()=>v.getMonth(n)!==a),[v,n,a]),P=c.useMemo((()=>{const e=v.startOfMonth(v.setMonth(n,a));return h?v.isSameDay(n,v.startOfWeek(e)):v.isSameDay(n,e)}),[a,n,h,v]),E=c.useMemo((()=>{const e=v.endOfMonth(v.setMonth(n,a));return h?v.isSameDay(n,v.endOfWeek(e)):v.isSameDay(n,e)}),[a,n,h,v]);return(0,lM.jsx)(k,wEe({},x,{day:n,disabled:_,autoFocus:s&&y,today:w,outsideCurrentMonth:S,isFirstVisibleCell:P,isLastVisibleCell:E,selected:b,tabIndex:y?0:-1,"aria-selected":b,"aria-current":w?"date":void 0}))}function xDe(e){const t=EEe({props:e,name:"MuiDayCalendar"}),n=PCe(),{onFocusedDayChange:r,className:i,currentMonth:o,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:f,reduceAnimations:h,renderLoading:p=(()=>(0,lM.jsx)("span",{children:"..."})),slideDirection:m,TransitionProps:g,disablePast:v,disableFuture:O,minDate:y,maxDate:b,shouldDisableDate:w,shouldDisableMonth:k,shouldDisableYear:x,dayOfWeekFormatter:_=(e=>n.format(e,"weekdayShort").charAt(0).toUpperCase()),hasFocus:S,onFocusedViewChange:P,gridLabelId:E,displayWeekNumber:C,fixedWeekNumber:T,autoFocus:$,timezone:Q}=t,R=CCe(Q),A=(e=>{const{classes:t}=e;return qN({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},cDe,t)})(t),j=VN(),D=Fje({shouldDisableDate:w,shouldDisableMonth:k,shouldDisableYear:x,minDate:y,maxDate:b,disablePast:v,disableFuture:O,timezone:Q}),M=qCe(),[I,z]=j3({name:"DayCalendar",state:"hasFocus",controlled:S,default:$??!1}),[W,N]=c.useState((()=>s||R)),L=gB((e=>{f||u(e)})),F=e=>{D(e)||(r(e),N(e),P?.(!0),z(!0))},U=gB(((e,t)=>{switch(e.key){case"ArrowUp":F(n.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":F(n.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const r=n.addDays(t,j?1:-1),i=n.addMonths(t,j?1:-1),o=REe({utils:n,date:r,minDate:j?r:n.startOfMonth(i),maxDate:j?n.endOfMonth(i):r,isDateDisabled:D,timezone:Q});F(o||r),e.preventDefault();break}case"ArrowRight":{const r=n.addDays(t,j?-1:1),i=n.addMonths(t,j?-1:1),o=REe({utils:n,date:r,minDate:j?n.startOfMonth(i):r,maxDate:j?r:n.endOfMonth(i),isDateDisabled:D,timezone:Q});F(o||r),e.preventDefault();break}case"Home":F(n.startOfWeek(t)),e.preventDefault();break;case"End":F(n.endOfWeek(t)),e.preventDefault();break;case"PageUp":F(n.addMonths(t,1)),e.preventDefault();break;case"PageDown":F(n.addMonths(t,-1)),e.preventDefault()}})),X=gB(((e,t)=>F(t))),q=gB(((e,t)=>{I&&n.isSameDay(W,t)&&P?.(!1)})),B=n.getMonth(o),V=n.getYear(o),Y=c.useMemo((()=>a.filter((e=>!!e)).map((e=>n.startOfDay(e)))),[n,a]),Z=`${V}-${B}`,G=c.useMemo((()=>c.createRef()),[Z]),H=c.useMemo((()=>{const e=n.startOfMonth(o),t=n.endOfMonth(o);return D(W)||n.isAfterDay(W,t)||n.isBeforeDay(W,e)?REe({utils:n,date:W,minDate:e,maxDate:t,disablePast:v,disableFuture:O,isDateDisabled:D,timezone:Q}):W}),[o,O,v,W,D,n,Q]),K=c.useMemo((()=>{const e=n.getWeekArray(o);let t=n.addMonths(o,1);for(;T&&e.length{e.length(0,lM.jsx)(mDe,{variant:"caption",role:"columnheader","aria-label":n.format(e,"weekday"),className:A.weekDayLabel,children:_(e)},t.toString())))]}),l?(0,lM.jsx)(ODe,{className:A.loadingContainer,children:p()}):(0,lM.jsx)(yDe,wEe({transKey:Z,onExited:d,reduceAnimations:h,slideDirection:m,className:XN(i,A.slideTransition)},g,{nodeRef:G,children:(0,lM.jsx)(bDe,{ref:G,role:"rowgroup",className:A.monthContainer,children:K.map(((e,r)=>(0,lM.jsxs)(wDe,{role:"row",className:A.weekContainer,"aria-rowindex":r+1,children:[C&&(0,lM.jsx)(vDe,{className:A.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(e[0])),children:M.calendarWeekNumberText(n.getWeekNumber(e[0]))}),e.map(((e,n)=>(0,lM.jsx)(kDe,{parentProps:t,day:e,selectedDays:Y,focusableDay:H,onKeyDown:U,onFocus:X,onBlur:q,onDaySelect:L,isDateDisabled:D,currentMonthNumber:B,isViewFocused:I,"aria-colindex":n+1},e.toString())))]},`week-${e[0]}`)))})}))]})}function _De(e){return cB("MuiPickersMonth",e)}const SDe=dB("MuiPickersMonth",["root","monthButton","disabled","selected"]),PDe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],EDe=Pq("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),CDe=Pq("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${SDe.disabled}`]:t.disabled},{[`&.${SDe.selected}`]:t.selected}]})((({theme:e})=>wEe({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${SDe.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${SDe.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),TDe=c.memo((function(e){const t=EEe({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:d,onFocus:f,onBlur:h,"aria-current":p,"aria-label":m,slots:g,slotProps:v}=t,O=PEe(t,PDe),y=c.useRef(null),b=(e=>{const{disabled:t,selected:n,classes:r}=e;return qN({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},_De,r)})(t);rL((()=>{n&&y.current?.focus()}),[n]);const w=g?.monthButton??CDe,k=b3({elementType:w,externalSlotProps:v?.monthButton,additionalProps:{children:i,disabled:o,tabIndex:l,ref:y,type:"button",role:"radio","aria-current":p,"aria-checked":a,"aria-label":m,onClick:e=>u(e,s),onKeyDown:e=>d(e,s),onFocus:e=>f(e,s),onBlur:e=>h(e,s)},ownerState:t,className:b.monthButton});return(0,lM.jsx)(EDe,wEe({className:XN(b.root,r),ownerState:t},O,{children:(0,lM.jsx)(w,wEe({},k))}))}));function $De(e){return cB("MuiMonthCalendar",e)}dB("MuiMonthCalendar",["root"]);const QDe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],RDe=Pq("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:eQe,boxSizing:"border-box"}),ADe=c.forwardRef((function(e,t){const n=function(e,t){const n=PCe(),r=ECe(),i=EEe({props:e,name:"MuiMonthCalendar"});return wEe({disableFuture:!1,disablePast:!1},i,{minDate:AEe(n,i.minDate,r.minDate),maxDate:AEe(n,i.maxDate,r.maxDate)})}(e),{className:r,value:i,defaultValue:o,referenceDate:a,disabled:s,disableFuture:l,disablePast:u,maxDate:d,minDate:f,onChange:h,shouldDisableMonth:p,readOnly:m,autoFocus:g=!1,onMonthFocus:v,hasFocus:O,onFocusedViewChange:y,monthsPerRow:b=3,timezone:w,gridLabelId:k,slots:x,slotProps:_}=n,S=PEe(n,QDe),{value:P,handleValueChange:E,timezone:C}=t$e({name:"MonthCalendar",timezone:w,value:i,defaultValue:o,referenceDate:a,onChange:h,valueManager:vCe}),T=CCe(C),$=VN(),Q=PCe(),R=c.useMemo((()=>vCe.getInitialReferenceValue({value:P,utils:Q,props:n,timezone:C,referenceDate:a,granularity:GEe.month})),[]),A=n,j=(e=>{const{classes:t}=e;return qN({root:["root"]},$De,t)})(A),D=c.useMemo((()=>Q.getMonth(T)),[Q,T]),M=c.useMemo((()=>null!=P?Q.getMonth(P):null),[P,Q]),[I,z]=c.useState((()=>M||Q.getMonth(R))),[W,N]=j3({name:"MonthCalendar",state:"hasFocus",controlled:O,default:g??!1}),L=gB((e=>{N(e),y&&y(e)})),F=c.useCallback((e=>{const t=Q.startOfMonth(u&&Q.isAfter(T,f)?T:f),n=Q.startOfMonth(l&&Q.isBefore(T,d)?T:d),r=Q.startOfMonth(e);return!!Q.isBefore(r,t)||!!Q.isAfter(r,n)||!!p&&p(r)}),[l,u,d,f,T,p,Q]),U=gB(((e,t)=>{if(m)return;const n=Q.setMonth(P??R,t);E(n)})),X=gB((e=>{F(Q.setMonth(P??R,e))||(z(e),L(!0),v&&v(e))}));c.useEffect((()=>{z((e=>null!==M&&e!==M?M:e))}),[M]);const q=gB(((e,t)=>{const n=12;switch(e.key){case"ArrowUp":X((n+t-3)%n),e.preventDefault();break;case"ArrowDown":X((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":X((n+t+($?1:-1))%n),e.preventDefault();break;case"ArrowRight":X((n+t+($?-1:1))%n),e.preventDefault()}})),B=gB(((e,t)=>{X(t)})),V=gB(((e,t)=>{I===t&&L(!1)}));return(0,lM.jsx)(RDe,wEe({ref:t,className:XN(j.root,r),ownerState:A,role:"radiogroup","aria-labelledby":k},S,{children:jEe(Q,P??R).map((e=>{const t=Q.getMonth(e),n=Q.format(e,"monthShort"),r=Q.format(e,"month"),i=t===M,o=s||F(e);return(0,lM.jsx)(TDe,{selected:i,value:t,onClick:U,onKeyDown:q,autoFocus:W&&t===I,disabled:o,tabIndex:t!==I||o?-1:0,onFocus:B,onBlur:V,"aria-current":D===t?"date":void 0,"aria-label":r,monthsPerRow:b,slots:x,slotProps:_,children:n},n)}))}))}));function jDe(e){return cB("MuiPickersYear",e)}const DDe=dB("MuiPickersYear",["root","yearButton","selected","disabled"]),MDe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],IDe=Pq("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),zDe=Pq("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${DDe.disabled}`]:t.disabled},{[`&.${DDe.selected}`]:t.selected}]})((({theme:e})=>wEe({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${DDe.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${DDe.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),WDe=c.memo((function(e){const t=EEe({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:d,onFocus:f,onBlur:h,"aria-current":p,slots:m,slotProps:g}=t,v=PEe(t,MDe),O=c.useRef(null),y=(e=>{const{disabled:t,selected:n,classes:r}=e;return qN({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},jDe,r)})(t);rL((()=>{n&&O.current?.focus()}),[n]);const b=m?.yearButton??zDe,w=b3({elementType:b,externalSlotProps:g?.yearButton,additionalProps:{children:i,disabled:o,tabIndex:l,ref:O,type:"button",role:"radio","aria-current":p,"aria-checked":a,onClick:e=>u(e,s),onKeyDown:e=>d(e,s),onFocus:e=>f(e,s),onBlur:e=>h(e,s)},ownerState:t,className:y.yearButton});return(0,lM.jsx)(IDe,wEe({className:XN(y.root,r),ownerState:t},v,{children:(0,lM.jsx)(b,wEe({},w))}))}));function NDe(e){return cB("MuiYearCalendar",e)}dB("MuiYearCalendar",["root"]);const LDe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],FDe=Pq("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:eQe,maxHeight:280,boxSizing:"border-box",position:"relative"}),UDe=c.forwardRef((function(e,t){const n=function(e,t){const n=PCe(),r=ECe(),i=EEe({props:e,name:"MuiYearCalendar"});return wEe({disablePast:!1,disableFuture:!1},i,{yearsPerRow:i.yearsPerRow??3,minDate:AEe(n,i.minDate,r.minDate),maxDate:AEe(n,i.maxDate,r.maxDate)})}(e),{autoFocus:r,className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:d,maxDate:f,minDate:h,onChange:p,readOnly:m,shouldDisableYear:g,onYearFocus:v,hasFocus:O,onFocusedViewChange:y,yearsOrder:b="asc",yearsPerRow:w,timezone:k,gridLabelId:x,slots:_,slotProps:S}=n,P=PEe(n,LDe),{value:E,handleValueChange:C,timezone:T}=t$e({name:"YearCalendar",timezone:k,value:o,defaultValue:a,referenceDate:s,onChange:p,valueManager:vCe}),$=CCe(T),Q=VN(),R=PCe(),A=c.useMemo((()=>vCe.getInitialReferenceValue({value:E,utils:R,props:n,timezone:T,referenceDate:s,granularity:GEe.year})),[]),j=n,D=(e=>{const{classes:t}=e;return qN({root:["root"]},NDe,t)})(j),M=c.useMemo((()=>R.getYear($)),[R,$]),I=c.useMemo((()=>null!=E?R.getYear(E):null),[E,R]),[z,W]=c.useState((()=>I||R.getYear(A))),[N,L]=j3({name:"YearCalendar",state:"hasFocus",controlled:O,default:r??!1}),F=gB((e=>{L(e),y&&y(e)})),U=c.useCallback((e=>{if(d&&R.isBeforeYear(e,$))return!0;if(u&&R.isAfterYear(e,$))return!0;if(h&&R.isBeforeYear(e,h))return!0;if(f&&R.isAfterYear(e,f))return!0;if(!g)return!1;const t=R.startOfYear(e);return g(t)}),[u,d,f,h,$,g,R]),X=gB(((e,t)=>{if(m)return;const n=R.setYear(E??A,t);C(n)})),q=gB((e=>{U(R.setYear(E??A,e))||(W(e),F(!0),v?.(e))}));c.useEffect((()=>{W((e=>null!==I&&e!==I?I:e))}),[I]);const B="desc"!==b?1*w:-1*w,V=Q&&"asc"===b||!Q&&"desc"===b?-1:1,Y=gB(((e,t)=>{switch(e.key){case"ArrowUp":q(t-B),e.preventDefault();break;case"ArrowDown":q(t+B),e.preventDefault();break;case"ArrowLeft":q(t-V),e.preventDefault();break;case"ArrowRight":q(t+V),e.preventDefault()}})),Z=gB(((e,t)=>{q(t)})),G=gB(((e,t)=>{z===t&&F(!1)})),H=c.useRef(null),K=GN(t,H);c.useEffect((()=>{if(r||null===H.current)return;const e=H.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,i=H.current.clientHeight,o=H.current.scrollTop,a=n+t;t>i||n{const t=R.getYear(e),n=t===I,r=l||U(e);return(0,lM.jsx)(WDe,{selected:n,value:t,onClick:X,onKeyDown:Y,autoFocus:N&&t===z,disabled:r,tabIndex:t!==z||r?-1:0,onFocus:Z,onBlur:G,"aria-current":M===t?"date":void 0,yearsPerRow:w,slots:_,slotProps:S,children:R.format(e,"year")},R.format(e,"year"))}))}))}));function XDe(e){return cB("MuiPickersArrowSwitcher",e)}dB("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const qDe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],BDe=["ownerState"],VDe=["ownerState"],YDe=Pq("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),ZDe=Pq("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((({theme:e})=>({width:e.spacing(3)}))),GDe=Pq(ITe,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),HDe=c.forwardRef((function(e,t){const n=VN(),r=EEe({props:e,name:"MuiPickersArrowSwitcher"}),{children:i,className:o,slots:a,slotProps:s,isNextDisabled:l,isNextHidden:u,onGoToNext:c,nextLabel:d,isPreviousDisabled:f,isPreviousHidden:h,onGoToPrevious:p,previousLabel:m,labelId:g}=r,v=PEe(r,qDe),O=r,y=(e=>{const{classes:t}=e;return qN({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},XDe,t)})(O),b={isDisabled:l,isHidden:u,goTo:c,label:d},w={isDisabled:f,isHidden:h,goTo:p,label:m},k=a?.previousIconButton??GDe,x=b3({elementType:k,externalSlotProps:s?.previousIconButton,additionalProps:{size:"medium",title:w.label,"aria-label":w.label,disabled:w.isDisabled,edge:"end",onClick:w.goTo},ownerState:wEe({},O,{hidden:w.isHidden}),className:XN(y.button,y.previousIconButton)}),_=a?.nextIconButton??GDe,S=b3({elementType:_,externalSlotProps:s?.nextIconButton,additionalProps:{size:"medium",title:b.label,"aria-label":b.label,disabled:b.isDisabled,edge:"start",onClick:b.goTo},ownerState:wEe({},O,{hidden:b.isHidden}),className:XN(y.button,y.nextIconButton)}),P=a?.leftArrowIcon??vQe,E=PEe(b3({elementType:P,externalSlotProps:s?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:O,className:y.leftArrowIcon}),BDe),C=a?.rightArrowIcon??OQe,T=PEe(b3({elementType:C,externalSlotProps:s?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:O,className:y.rightArrowIcon}),VDe);return(0,lM.jsxs)(YDe,wEe({ref:t,className:XN(y.root,o),ownerState:O},v,{children:[(0,lM.jsx)(k,wEe({},x,{children:n?(0,lM.jsx)(C,wEe({},T)):(0,lM.jsx)(P,wEe({},E))})),i?(0,lM.jsx)(zCe,{variant:"subtitle1",component:"span",id:g,children:i}):(0,lM.jsx)(ZDe,{className:y.spacer,ownerState:O}),(0,lM.jsx)(_,wEe({},S,{children:n?(0,lM.jsx)(P,wEe({},E)):(0,lM.jsx)(C,wEe({},T))}))]}))}));function KDe(e,t,n,r){const i=PCe();return{meridiemMode:XEe(e,i),handleMeridiemChange:c.useCallback((o=>{const a=null==e?null:BEe(e,o,Boolean(t),i);n(a,r??"partial")}),[t,e,n,r,i])}}const JDe=e=>cB("MuiPickersCalendarHeader",e),eMe=dB("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),tMe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],nMe=["ownerState"],rMe=Pq("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),iMe=Pq("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>wEe({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),oMe=Pq("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),aMe=Pq(ITe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${eMe.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),sMe=Pq(gQe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"}))),lMe=c.forwardRef((function(e,t){const n=qCe(),r=PCe(),i=EEe({props:e,name:"MuiPickersCalendarHeader"}),{slots:o,slotProps:a,currentMonth:s,disabled:l,disableFuture:u,disablePast:d,maxDate:f,minDate:h,onMonthChange:p,onViewChange:m,view:g,reduceAnimations:v,views:O,labelId:y,className:b,timezone:w,format:k=`${r.formats.month} ${r.formats.year}`}=i,x=PEe(i,tMe),_=i,S=(e=>{const{classes:t}=e;return qN({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},JDe,t)})(i),P=o?.switchViewButton??aMe,E=b3({elementType:P,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(g)},ownerState:_,className:S.switchViewButton}),C=o?.switchViewIcon??sMe,T=PEe(b3({elementType:C,externalSlotProps:a?.switchViewIcon,ownerState:_,className:S.switchViewIcon}),nMe),$=function(e,{disableFuture:t,maxDate:n,timezone:r}){const i=PCe();return c.useMemo((()=>{const o=i.date(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)}),[t,n,e,i,r])}(s,{disableFuture:u,maxDate:f,timezone:w}),Q=function(e,{disablePast:t,minDate:n,timezone:r}){const i=PCe();return c.useMemo((()=>{const o=i.date(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)}),[t,n,e,i,r])}(s,{disablePast:d,minDate:h,timezone:w});if(1===O.length&&"year"===O[0])return null;const R=r.formatByString(s,k);return(0,lM.jsxs)(rMe,wEe({},x,{ownerState:_,className:XN(S.root,b),ref:t,children:[(0,lM.jsxs)(iMe,{role:"presentation",onClick:()=>{if(1!==O.length&&m&&!l)if(2===O.length)m(O.find((e=>e!==g))||O[0]);else{const e=0!==O.indexOf(g)?0:1;m(O[e])}},ownerState:_,"aria-live":"polite",className:S.labelContainer,children:[(0,lM.jsx)(qje,{reduceAnimations:v,transKey:R,children:(0,lM.jsx)(oMe,{id:y,ownerState:_,className:S.label,children:R})}),O.length>1&&!l&&(0,lM.jsx)(P,wEe({},E,{children:(0,lM.jsx)(C,wEe({},T))}))]}),(0,lM.jsx)(aB,{in:"day"===g,children:(0,lM.jsx)(HDe,{slots:o,slotProps:a,onGoToPrevious:()=>p(r.addMonths(s,-1),"right"),isPreviousDisabled:Q,previousLabel:n.previousMonth,onGoToNext:()=>p(r.addMonths(s,1),"left"),isNextDisabled:$,nextLabel:n.nextMonth})})]}))})),uMe=Pq("div")({overflow:"hidden",width:eQe,maxHeight:tQe,display:"flex",flexDirection:"column",margin:"0 auto"}),cMe=e=>cB("MuiDateCalendar",e),dMe=(dB("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"]),fMe=Pq(uMe,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:tQe}),hMe=Pq(qje,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),pMe=c.forwardRef((function(e,t){const n=PCe(),r=R3(),i=function(e,t){const n=PCe(),r=ECe(),i=VTe(),o=EEe({props:e,name:"MuiDateCalendar"});return wEe({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??"day",views:o.views??["year","day"],reduceAnimations:o.reduceAnimations??i,renderLoading:o.renderLoading??(()=>(0,lM.jsx)("span",{children:"..."})),minDate:AEe(n,o.minDate,r.minDate),maxDate:AEe(n,o.maxDate,r.maxDate)})}(e),{autoFocus:o,onViewChange:a,value:s,defaultValue:l,referenceDate:u,disableFuture:d,disablePast:f,onChange:h,onYearChange:p,onMonthChange:m,reduceAnimations:g,shouldDisableDate:v,shouldDisableMonth:O,shouldDisableYear:y,view:b,views:w,openTo:k,className:x,disabled:_,readOnly:S,minDate:P,maxDate:E,disableHighlightToday:C,focusedView:T,onFocusedViewChange:$,showDaysOutsideCurrentMonth:Q,fixedWeekNumber:R,dayOfWeekFormatter:A,slots:j,slotProps:D,loading:M,renderLoading:I,displayWeekNumber:z,yearsOrder:W,yearsPerRow:N,monthsPerRow:L,timezone:F}=i,U=PEe(i,dMe),{value:X,handleValueChange:q,timezone:B}=t$e({name:"DateCalendar",timezone:F,value:s,defaultValue:l,referenceDate:u,onChange:h,valueManager:vCe}),{view:V,setView:Y,focusedView:Z,setFocusedView:G,goToNextView:H,setValueAndGoToNextView:K}=n$e({view:b,views:w,openTo:k,onChange:q,onViewChange:a,autoFocus:o,focusedView:T,onFocusedViewChange:$}),{referenceDate:J,calendarState:ee,changeFocusedDay:te,changeMonth:ne,handleChangeMonth:re,isDateDisabled:ie,onMonthSwitchingAnimationEnd:oe}=(e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:o=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:u,shouldDisableDate:d,timezone:f}=e,h=PCe(),p=c.useRef(((e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return wEe({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const e=i.newTimezone;if(n.getTimezone(r.currentMonth)===e)return r;let t=n.setTimezone(r.currentMonth,e);return n.getMonth(t)!==n.getMonth(r.currentMonth)&&(t=n.setMonth(t,n.getMonth(r.currentMonth))),wEe({},r,{currentMonth:t})}case"finishMonthSwitchingAnimation":return wEe({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=i.focusedDay&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=null!=i.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return wEe({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:null!=i.focusedDay&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(u),o,h)).current,m=c.useMemo((()=>vCe.getInitialReferenceValue({value:t,utils:h,timezone:f,props:e,referenceDate:n,granularity:GEe.day})),[n,f]),[g,v]=c.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:h.startOfMonth(m),slideDirection:"left"});c.useEffect((()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(m)})}),[m,h]);const O=c.useCallback((e=>{v(wEe({type:"changeMonth"},e)),l&&l(e.newMonth)}),[l]),y=c.useCallback((e=>{const t=e;h.isSameMonth(t,g.currentMonth)||O({newMonth:h.startOfMonth(t),direction:h.isAfterDay(t,g.currentMonth)?"left":"right"})}),[g.currentMonth,O,h]),b=Fje({shouldDisableDate:d,minDate:s,maxDate:a,disableFuture:r,disablePast:i,timezone:f}),w=c.useCallback((()=>{v({type:"finishMonthSwitchingAnimation"})}),[]),k=gB(((e,t)=>{b(e)||v({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:m,calendarState:g,changeMonth:y,changeFocusedDay:k,isDateDisabled:b,onMonthSwitchingAnimationEnd:w,handleChangeMonth:O}})({value:X,referenceDate:u,reduceAnimations:g,onMonthChange:m,minDate:P,maxDate:E,shouldDisableDate:v,disablePast:f,disableFuture:d,timezone:B}),ae=_&&X||P,se=_&&X||E,le=`${r}-grid-label`,ue=null!==Z,ce=j?.calendarHeader??lMe,de=b3({elementType:ce,externalSlotProps:D?.calendarHeader,additionalProps:{views:w,view:V,currentMonth:ee.currentMonth,onViewChange:Y,onMonthChange:(e,t)=>re({newMonth:e,direction:t}),minDate:ae,maxDate:se,disabled:_,disablePast:f,disableFuture:d,reduceAnimations:g,timezone:B,labelId:le},ownerState:i}),fe=gB((e=>{const t=n.startOfMonth(e),r=n.endOfMonth(e),i=ie(e)?REe({utils:n,date:e,minDate:n.isBefore(P,t)?t:P,maxDate:n.isAfter(E,r)?r:E,disablePast:f,disableFuture:d,isDateDisabled:ie,timezone:B}):e;i?(K(i,"finish"),m?.(t)):(H(),ne(t)),te(i,!0)})),he=gB((e=>{const t=n.startOfYear(e),r=n.endOfYear(e),i=ie(e)?REe({utils:n,date:e,minDate:n.isBefore(P,t)?t:P,maxDate:n.isAfter(E,r)?r:E,disablePast:f,disableFuture:d,isDateDisabled:ie,timezone:B}):e;i?(K(i,"finish"),p?.(i)):(H(),ne(t)),te(i,!0)})),pe=gB((e=>q(e?QEe(n,e,X??J):e,"finish",V)));c.useEffect((()=>{null!=X&&n.isValid(X)&&ne(X)}),[X]);const me=i,ge=(e=>{const{classes:t}=e;return qN({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},cMe,t)})(me),ve={disablePast:f,disableFuture:d,maxDate:E,minDate:P},Oe={disableHighlightToday:C,readOnly:S,disabled:_,timezone:B,gridLabelId:le,slots:j,slotProps:D},ye=c.useRef(V);c.useEffect((()=>{ye.current!==V&&(Z===ye.current&&G(V,!0),ye.current=V)}),[Z,G,V]);const be=c.useMemo((()=>[X]),[X]);return(0,lM.jsxs)(fMe,wEe({ref:t,className:XN(ge.root,x),ownerState:me},U,{children:[(0,lM.jsx)(ce,wEe({},de,{slots:j,slotProps:D})),(0,lM.jsx)(hMe,{reduceAnimations:g,className:ge.viewTransitionContainer,transKey:V,ownerState:me,children:(0,lM.jsxs)("div",{children:["year"===V&&(0,lM.jsx)(UDe,wEe({},ve,Oe,{value:X,onChange:he,shouldDisableYear:y,hasFocus:ue,onFocusedViewChange:e=>G("year",e),yearsOrder:W,yearsPerRow:N,referenceDate:J})),"month"===V&&(0,lM.jsx)(ADe,wEe({},ve,Oe,{hasFocus:ue,className:x,value:X,onChange:fe,shouldDisableMonth:O,onFocusedViewChange:e=>G("month",e),monthsPerRow:L,referenceDate:J})),"day"===V&&(0,lM.jsx)(xDe,wEe({},ee,ve,Oe,{onMonthSwitchingAnimationEnd:oe,onFocusedDayChange:te,reduceAnimations:g,selectedDays:be,onSelectedDaysChange:pe,shouldDisableDate:v,shouldDisableMonth:O,shouldDisableYear:y,hasFocus:ue,onFocusedViewChange:e=>G("day",e),showDaysOutsideCurrentMonth:Q,fixedWeekNumber:R,dayOfWeekFormatter:A,displayWeekNumber:z,loading:M,renderLoading:I}))]})})]}))})),mMe=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:h,maxDate:p,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:O,onMonthChange:y,monthsPerRow:b,onYearChange:w,yearsOrder:k,yearsPerRow:x,slots:_,slotProps:S,loading:P,renderLoading:E,disableHighlightToday:C,readOnly:T,disabled:$,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:R,sx:A,autoFocus:j,fixedWeekNumber:D,displayWeekNumber:M,timezone:I})=>(0,lM.jsx)(pMe,{view:e,onViewChange:t,views:n.filter(zEe),focusedView:r&&zEe(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minDate:h,maxDate:p,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:O,onMonthChange:y,monthsPerRow:b,onYearChange:w,yearsOrder:k,yearsPerRow:x,slots:_,slotProps:S,loading:P,renderLoading:E,disableHighlightToday:C,readOnly:T,disabled:$,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:R,sx:A,autoFocus:j,fixedWeekNumber:D,displayWeekNumber:M,timezone:I}),gMe=c.forwardRef((function(e,t){const n=qCe(),r=PCe(),i=HCe(e,"MuiDesktopDatePicker"),o=wEe({day:mMe,month:mMe,year:mMe},i.viewRenderers),a=wEe({},i,{viewRenderers:o,format:WEe(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:wEe({openPickerIcon:yQe,field:Lje},i.slots),slotProps:wEe({},i.slotProps,{field:e=>wEe({},jq(i.slotProps?.field,e),nTe(i),{ref:t}),toolbar:wEe({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:s}=mQe({props:a,valueManager:vCe,valueType:"date",getOpenDialogAriaText:kCe({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:rTe});return s()}));function vMe(e){return cB("MuiDialogContent",e)}gMe.propTypes={autoFocus:Hye().bool,className:Hye().string,closeOnSelect:Hye().bool,dayOfWeekFormatter:Hye().func,defaultValue:Hye().object,disabled:Hye().bool,disableFuture:Hye().bool,disableHighlightToday:Hye().bool,disableOpenPicker:Hye().bool,disablePast:Hye().bool,displayWeekNumber:Hye().bool,enableAccessibleFieldDOMStructure:Hye().any,fixedWeekNumber:Hye().number,format:Hye().string,formatDensity:Hye().oneOf(["dense","spacious"]),inputRef:CEe,label:Hye().node,loading:Hye().bool,localeText:Hye().object,maxDate:Hye().object,minDate:Hye().object,monthsPerRow:Hye().oneOf([3,4]),name:Hye().string,onAccept:Hye().func,onChange:Hye().func,onClose:Hye().func,onError:Hye().func,onMonthChange:Hye().func,onOpen:Hye().func,onSelectedSectionsChange:Hye().func,onViewChange:Hye().func,onYearChange:Hye().func,open:Hye().bool,openTo:Hye().oneOf(["day","month","year"]),orientation:Hye().oneOf(["landscape","portrait"]),readOnly:Hye().bool,reduceAnimations:Hye().bool,referenceDate:Hye().object,renderLoading:Hye().func,selectedSections:Hye().oneOfType([Hye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Hye().number]),shouldDisableDate:Hye().func,shouldDisableMonth:Hye().func,shouldDisableYear:Hye().func,showDaysOutsideCurrentMonth:Hye().bool,slotProps:Hye().object,slots:Hye().object,sx:Hye().oneOfType([Hye().arrayOf(Hye().oneOfType([Hye().func,Hye().object,Hye().bool])),Hye().func,Hye().object]),timezone:Hye().string,value:Hye().object,view:Hye().oneOf(["day","month","year"]),viewRenderers:Hye().shape({day:Hye().func,month:Hye().func,year:Hye().func}),views:Hye().arrayOf(Hye().oneOf(["day","month","year"]).isRequired),yearsOrder:Hye().oneOf(["asc","desc"]),yearsPerRow:Hye().oneOf([3,4])},dB("MuiDialogContent",["root","dividers"]);const OMe=dB("MuiDialogTitle",["root"]),yMe=Pq("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Cq((({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${OMe.root} + &`]:{paddingTop:0}}}]})))),bMe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...o}=n,a={...n,dividers:i},s=(e=>{const{classes:t,dividers:n}=e;return qN({root:["root",n&&"dividers"]},vMe,t)})(a);return(0,lM.jsx)(yMe,{className:XN(s.root,r),ownerState:a,ref:t,...o})})),wMe=bMe;function kMe(e){return cB("MuiDialog",e)}const xMe=dB("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_Me=c.createContext({}),SMe=Pq(mB,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),PMe=Pq($B,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),EMe=Pq("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${LB(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),CMe=Pq(NB,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${LB(n.scroll)}`],t[`paperWidth${LB(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Cq((({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${xMe.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter((e=>"xs"!==e)).map((t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${xMe.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}}))),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${xMe.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]})))),TMe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDialog"}),r=eB(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":a,"aria-modal":s=!0,BackdropComponent:l,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:v,onClick:O,onClose:y,open:b,PaperComponent:w=NB,PaperProps:k={},scroll:x="paper",TransitionComponent:_=aB,transitionDuration:S=i,TransitionProps:P,...E}=n,C={...n,disableEscapeKeyDown:h,fullScreen:p,fullWidth:m,maxWidth:g,scroll:x},T=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e;return qN({root:["root"],container:["container",`scroll${LB(n)}`],paper:["paper",`paperScroll${LB(n)}`,`paperWidth${LB(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]},kMe,t)})(C),$=c.useRef(),Q=R3(a),R=c.useMemo((()=>({titleId:Q})),[Q]);return(0,lM.jsx)(PMe,{className:XN(T.root,f),closeAfterTransition:!0,components:{Backdrop:SMe},componentsProps:{backdrop:{transitionDuration:S,as:l,...u}},disableEscapeKeyDown:h,onClose:y,open:b,ref:t,onClick:e=>{O&&O(e),$.current&&($.current=null,v&&v(e),y&&y(e,"backdropClick"))},ownerState:C,...E,children:(0,lM.jsx)(_,{appear:!0,in:b,timeout:S,role:"presentation",...P,children:(0,lM.jsx)(EMe,{className:XN(T.container),onMouseDown:e=>{$.current=e.target===e.currentTarget},ownerState:C,children:(0,lM.jsx)(CMe,{as:w,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":Q,"aria-modal":s,...k,className:XN(T.paper,k.className),ownerState:C,children:(0,lM.jsx)(_Me.Provider,{value:R,children:d})})})})})})),$Me=Pq(TMe)({[`& .${xMe.container}`]:{outline:0},[`& .${xMe.paper}`]:{outline:0,minWidth:eQe}}),QMe=Pq(wMe)({"&:first-of-type":{padding:0}});function RMe(e){const{children:t,onDismiss:n,open:r,slots:i,slotProps:o}=e,a=i?.dialog??$Me,s=i?.mobileTransition??aB;return(0,lM.jsx)(a,wEe({open:r,onClose:n},o?.dialog,{TransitionComponent:s,TransitionProps:o?.mobileTransition,PaperComponent:i?.mobilePaper,PaperProps:o?.mobilePaper,children:(0,lM.jsx)(QMe,{children:t})}))}const AMe=["props","getOpenDialogAriaText"],jMe=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=PEe(e,AMe);const{slots:i,slotProps:o,className:a,sx:s,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:p,name:m,label:g,inputRef:v,readOnly:O,disabled:y,localeText:b}=t,w=c.useRef(null),k=R3(),x=o?.toolbar?.hidden??!1,{open:_,actions:S,layoutProps:P,renderCurrentView:E,fieldProps:C,contextValue:T}=o$e(wEe({},r,{props:t,fieldRef:w,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),$=i.field,Q=b3({elementType:$,externalSlotProps:o?.field,additionalProps:wEe({},C,x&&{id:k},!(y||O)&&{onClick:S.onOpen,onKeyDown:(R=S.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(R(e),e.preventDefault(),e.stopPropagation())})},{readOnly:O??!0,disabled:y,className:a,sx:s,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:p,label:g,name:m},v?{inputRef:v}:{}),ownerState:t});var R;Q.inputProps=wEe({},Q.inputProps,{"aria-label":n(C.value)});const A=wEe({textField:i.textField},Q.slots),j=i.layout??uQe;let D=k;x&&(D=g?`${k}-label`:void 0);const M=wEe({},o,{toolbar:wEe({},o?.toolbar,{titleId:k}),mobilePaper:wEe({"aria-labelledby":D},o?.mobilePaper)}),I=GN(w,Q.unstableFieldRef);return{renderPicker:()=>(0,lM.jsxs)(dQe,{contextValue:T,localeText:b,children:[(0,lM.jsx)($,wEe({},Q,{slots:A,slotProps:M,unstableFieldRef:I})),(0,lM.jsx)(RMe,wEe({},S,{open:_,slots:i,slotProps:M,children:(0,lM.jsx)(j,wEe({},P,M?.layout,{slots:i,slotProps:M,children:E()}))}))]})}},DMe=c.forwardRef((function(e,t){const n=qCe(),r=PCe(),i=HCe(e,"MuiMobileDatePicker"),o=wEe({day:mMe,month:mMe,year:mMe},i.viewRenderers),a=wEe({},i,{viewRenderers:o,format:WEe(r,i,!1),slots:wEe({field:Lje},i.slots),slotProps:wEe({},i.slotProps,{field:e=>wEe({},jq(i.slotProps?.field,e),nTe(i),{ref:t}),toolbar:wEe({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:s}=jMe({props:a,valueManager:vCe,valueType:"date",getOpenDialogAriaText:kCe({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:rTe});return s()}));DMe.propTypes={autoFocus:Hye().bool,className:Hye().string,closeOnSelect:Hye().bool,dayOfWeekFormatter:Hye().func,defaultValue:Hye().object,disabled:Hye().bool,disableFuture:Hye().bool,disableHighlightToday:Hye().bool,disableOpenPicker:Hye().bool,disablePast:Hye().bool,displayWeekNumber:Hye().bool,enableAccessibleFieldDOMStructure:Hye().any,fixedWeekNumber:Hye().number,format:Hye().string,formatDensity:Hye().oneOf(["dense","spacious"]),inputRef:CEe,label:Hye().node,loading:Hye().bool,localeText:Hye().object,maxDate:Hye().object,minDate:Hye().object,monthsPerRow:Hye().oneOf([3,4]),name:Hye().string,onAccept:Hye().func,onChange:Hye().func,onClose:Hye().func,onError:Hye().func,onMonthChange:Hye().func,onOpen:Hye().func,onSelectedSectionsChange:Hye().func,onViewChange:Hye().func,onYearChange:Hye().func,open:Hye().bool,openTo:Hye().oneOf(["day","month","year"]),orientation:Hye().oneOf(["landscape","portrait"]),readOnly:Hye().bool,reduceAnimations:Hye().bool,referenceDate:Hye().object,renderLoading:Hye().func,selectedSections:Hye().oneOfType([Hye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Hye().number]),shouldDisableDate:Hye().func,shouldDisableMonth:Hye().func,shouldDisableYear:Hye().func,showDaysOutsideCurrentMonth:Hye().bool,slotProps:Hye().object,slots:Hye().object,sx:Hye().oneOfType([Hye().arrayOf(Hye().oneOfType([Hye().func,Hye().object,Hye().bool])),Hye().func,Hye().object]),timezone:Hye().string,value:Hye().object,view:Hye().oneOf(["day","month","year"]),viewRenderers:Hye().shape({day:Hye().func,month:Hye().func,year:Hye().func}),views:Hye().arrayOf(Hye().oneOf(["day","month","year"]).isRequired),yearsOrder:Hye().oneOf(["asc","desc"]),yearsPerRow:Hye().oneOf([3,4])};const MMe=["desktopModeMediaQuery"],IMe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=FTe}=n,i=PEe(n,MMe);return z2(r,{defaultMatches:!0})?(0,lM.jsx)(gMe,wEe({ref:t},i)):(0,lM.jsx)(DMe,wEe({ref:t},i))}));function zMe(e){return cB("MuiDivider",e)}const WMe=dB("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),NMe=Pq("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(Cq((({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:xX(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]})))),LMe=Pq("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Cq((({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]})))),FMe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,orientation:a="horizontal",component:s=(i||"vertical"===a?"div":"hr"),flexItem:l=!1,light:u=!1,role:c=("hr"!==s?"separator":void 0),textAlign:d="center",variant:f="fullWidth",...h}=n,p={...n,absolute:r,component:s,flexItem:l,light:u,orientation:a,role:c,textAlign:d,variant:f},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return qN({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},zMe,r)})(p);return(0,lM.jsx)(NMe,{as:s,className:XN(m.root,o),role:c,ref:t,ownerState:p,"aria-orientation":"separator"!==c||"hr"===s&&"vertical"!==a?void 0:a,...h,children:i?(0,lM.jsx)(LMe,{className:m.wrapper,ownerState:p,children:i}):null})}));FMe&&(FMe.muiSkipListHighlight=!0);const UMe=FMe,XMe=({adapter:e,value:t,timezone:n,props:r})=>{if(null===t)return null;const{minTime:i,maxTime:o,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c}=r,d=e.utils.date(void 0,n),f=YEe(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(i&&f(i,t)):return"minTime";case Boolean(o&&f(t,o)):return"maxTime";case Boolean(c&&e.utils.isAfter(t,d)):return"disableFuture";case Boolean(u&&e.utils.isBefore(t,d)):return"disablePast";case Boolean(s&&s(t,"hours")):return"shouldDisableTime-hours";case Boolean(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case Boolean(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case Boolean(a&&e.utils.getMinutes(t)%a!=0):return"minutesStep";default:return null}};XMe.valueManager=vCe;const qMe=({adapter:e,value:t,timezone:n,props:r})=>{const i=rTe({adapter:e,value:t,timezone:n,props:r});return null!==i?i:XMe({adapter:e,value:t,timezone:n,props:r})};qMe.valueManager=vCe;const BMe=["slots","slotProps","InputProps","inputProps"],VMe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiDateTimeField"}),{slots:r,slotProps:i,InputProps:o,inputProps:a}=n,s=PEe(n,BMe),l=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Dje:$Ae),c=b3({elementType:u,externalSlotProps:i?.textField,externalForwardedProps:s,ownerState:l,additionalProps:{ref:t}});c.inputProps=wEe({},a,c.inputProps),c.InputProps=wEe({},o,c.InputProps);const d=(e=>{const t=(e=>{const t=PCe(),n=ECe(),r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return wEe({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r,disableIgnoringDatePartForTimeValidation:Boolean(e.minDateTime||e.maxDateTime),minDate:AEe(t,e.minDateTime??e.minDate,n.minDate),maxDate:AEe(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})})(e),{forwardedProps:n,internalProps:r}=NAe(t,"date-time");return zAe({forwardedProps:n,internalProps:r,valueManager:vCe,fieldValueManager:OCe,validator:qMe,valueType:"date-time"})})(c),f=Wje(d),h=UAe(wEe({},f,{slots:r,slotProps:i}));return(0,lM.jsx)(u,wEe({},h))}));function YMe(e){return cB("MuiTab",e)}const ZMe=dB("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),GMe=Pq(RTe,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${LB(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ZMe.iconWrapper}`]:t.iconWrapper},{[`& .${ZMe.icon}`]:t.icon}]}})(Cq((({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${ZMe.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${ZMe.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${ZMe.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${ZMe.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ZMe.selected}`]:{opacity:1},[`&.${ZMe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ZMe.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ZMe.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ZMe.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ZMe.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]})))),HMe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTab"}),{className:r,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:u,label:d,onChange:f,onClick:h,onFocus:p,selected:m,selectionFollowsFocus:g,textColor:v="inherit",value:O,wrapped:y=!1,...b}=n,w={...n,disabled:i,disableFocusRipple:o,selected:m,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:v,wrapped:y},k=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e;return qN({root:["root",o&&a&&"labelIcon",`textColor${LB(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},YMe,t)})(w),x=s&&d&&c.isValidElement(s)?c.cloneElement(s,{className:XN(k.icon,s.props.className)}):s;return(0,lM.jsxs)(GMe,{focusRipple:!o,className:XN(k.root,r),ref:t,role:"tab","aria-selected":m,disabled:i,onClick:e=>{!m&&f&&f(e,O),h&&h(e)},onFocus:e=>{g&&!m&&f&&f(e,O),p&&p(e)},ownerState:w,tabIndex:m?0:-1,...b,children:["top"===l||"start"===l?(0,lM.jsxs)(c.Fragment,{children:[x,d]}):(0,lM.jsxs)(c.Fragment,{children:[d,x]}),u]})})),KMe=HMe;function JMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const eIe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},tIe=q$e((0,lM.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),nIe=q$e((0,lM.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function rIe(e){return cB("MuiTabScrollButton",e)}const iIe=dB("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),oIe=Pq(RTe,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${iIe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),aIe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTabScrollButton"}),{className:r,slots:i={},slotProps:o={},direction:a,orientation:s,disabled:l,...u}=n,c=VN(),d={isRtl:c,...n},f=(e=>{const{classes:t,orientation:n,disabled:r}=e;return qN({root:["root",n,r&&"disabled"]},rIe,t)})(d),h=i.StartScrollButtonIcon??tIe,p=i.EndScrollButtonIcon??nIe,m=b3({elementType:h,externalSlotProps:o.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=b3({elementType:p,externalSlotProps:o.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,lM.jsx)(oIe,{component:"div",className:XN(f.root,r),ref:t,role:null,ownerState:d,tabIndex:null,...u,style:{...u.style,..."vertical"===s&&{"--TabScrollButton-svgRotate":`rotate(${c?-90:90}deg)`}},children:"left"===a?(0,lM.jsx)(h,{...m}):(0,lM.jsx)(p,{...g})})})),sIe=aIe;function lIe(e){return cB("MuiTabs",e)}const uIe=dB("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),cIe=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,dIe=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fIe=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},hIe=Pq("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${uIe.scrollButtons}`]:t.scrollButtons},{[`& .${uIe.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Cq((({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${uIe.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]})))),pIe=Pq("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),mIe=Pq("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),gIe=Pq("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Cq((({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]})))),vIe=Pq((function(e){const{onChange:t,...n}=e,r=c.useRef(),i=c.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return TQe((()=>{const e=RB((()=>{const e=r.current;o(),e!==r.current&&t(r.current)})),n=AB(i.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),c.useEffect((()=>{o(),t(r.current)}),[t]),(0,lM.jsx)("div",{style:eIe,...n,ref:i})}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),OIe={},yIe=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiTabs"}),r=eB(),i=VN(),{"aria-label":o,"aria-labelledby":a,action:s,centered:l=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:v=sIe,scrollButtons:O="auto",selectionFollowsFocus:y,slots:b={},slotProps:w={},TabIndicatorProps:k={},TabScrollButtonProps:x={},textColor:_="primary",value:S,variant:P="standard",visibleScrollbar:E=!1,...C}=n,T="scrollable"===P,$="vertical"===g,Q=$?"scrollTop":"scrollLeft",R=$?"top":"left",A=$?"bottom":"right",j=$?"clientHeight":"clientWidth",D=$?"height":"width",M={...n,component:f,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:$,scrollButtons:O,textColor:_,variant:P,visibleScrollbar:E,fixed:!T,hideScrollbar:T&&!E,scrollableX:T&&!$,scrollableY:T&&$,centered:l&&!T,scrollButtonsHideMobile:!h},I=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return qN({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},lIe,l)})(M),z=b3({elementType:b.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:M}),W=b3({elementType:b.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:M}),[N,L]=c.useState(!1),[F,U]=c.useState(OIe),[X,q]=c.useState(!1),[B,V]=c.useState(!1),[Y,Z]=c.useState(!1),[G,H]=c.useState({overflow:"hidden",scrollbarWidth:0}),K=new Map,J=c.useRef(null),ee=c.useRef(null),te=()=>{const e=J.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==S){const e=ee.current.children;if(e.length>0){const t=e[K.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ne=T3((()=>{const{tabsMeta:e,tabMeta:t}=te();let n,r=0;$?(n="top",t&&e&&(r=t.top-e.top+e.scrollTop)):(n=i?"right":"left",t&&e&&(r=(i?-1:1)*(t[n]-e[n]+e.scrollLeft)));const o={[n]:r,[D]:t?t[D]:0};if("number"!=typeof F[n]||"number"!=typeof F[D])U(o);else{const e=Math.abs(F[n]-o[n]),t=Math.abs(F[D]-o[D]);(e>=1||t>=1)&&U(o)}})),re=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},i=(()=>{})){const{ease:o=JMe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=r=>{if(u)return void i(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=o(d)*(n-l)+l,d>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(c)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(c)}(Q,J.current,e,{duration:r.transitions.duration.standard}):J.current[Q]=e},ie=e=>{let t=J.current[Q];t+=$?e:e*(i?-1:1),re(t)},oe=()=>{const e=J.current[j];let t=0;const n=Array.from(ee.current.children);for(let r=0;re){0===r&&(t=e);break}t+=i[j]}return t},ae=()=>{ie(-1*oe())},se=()=>{ie(oe())},le=c.useCallback((e=>{H({overflow:null,scrollbarWidth:e})}),[]),ue=T3((e=>{const{tabsMeta:t,tabMeta:n}=te();if(n&&t)if(n[R]t[A]){const r=t[Q]+(n[A]-t[A]);re(r,{animation:e})}})),ce=T3((()=>{T&&!1!==O&&Z(!Y)}));c.useEffect((()=>{const e=RB((()=>{J.current&&ne()}));let t;const n=AB(J.current);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(r=new MutationObserver((n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{t?.unobserve(e)})),e.addedNodes.forEach((e=>{t?.observe(e)}))})),e(),ce()})),r.observe(ee.current,{childList:!0})),()=>{e.clear(),n.removeEventListener("resize",e),r?.disconnect(),t?.disconnect()}}),[ne,ce]),c.useEffect((()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&T&&!1!==O){const n=e[0],r=e[t-1],i={root:J.current,threshold:.99},o=new IntersectionObserver((e=>{q(!e[0].isIntersecting)}),i);o.observe(n);const a=new IntersectionObserver((e=>{V(!e[0].isIntersecting)}),i);return a.observe(r),()=>{o.disconnect(),a.disconnect()}}}),[T,O,Y,u?.length]),c.useEffect((()=>{L(!0)}),[]),c.useEffect((()=>{ne()})),c.useEffect((()=>{ue(OIe!==F)}),[ue,F]),c.useImperativeHandle(s,(()=>({updateIndicator:ne,updateScrollButtons:ce})),[ne,ce]);const de=(0,lM.jsx)(gIe,{...k,className:XN(I.indicator,k.className),ownerState:M,style:{...F,...k.style}});let fe=0;const he=c.Children.map(u,(e=>{if(!c.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;K.set(t,fe);const n=t===S;return fe+=1,c.cloneElement(e,{fullWidth:"fullWidth"===P,indicator:n&&!N&&de,selected:n,selectionFollowsFocus:y,onChange:m,textColor:_,value:t,...1!==fe||!1!==S||e.props.tabIndex?{}:{tabIndex:0}})})),pe=(()=>{const e={};e.scrollbarSizeListener=T?(0,lM.jsx)(vIe,{onChange:le,className:XN(I.scrollableX,I.hideScrollbar)}):null;const t=T&&("auto"===O&&(X||B)||!0===O);return e.scrollButtonStart=t?(0,lM.jsx)(v,{slots:{StartScrollButtonIcon:b.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:g,direction:i?"right":"left",onClick:ae,disabled:!X,...x,className:XN(I.scrollButtons,x.className)}):null,e.scrollButtonEnd=t?(0,lM.jsx)(v,{slots:{EndScrollButtonIcon:b.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:W},orientation:g,direction:i?"left":"right",onClick:se,disabled:!B,...x,className:XN(I.scrollButtons,x.className)}):null,e})();return(0,lM.jsxs)(hIe,{className:XN(I.root,d),ownerState:M,ref:t,as:f,...C,children:[pe.scrollButtonStart,pe.scrollbarSizeListener,(0,lM.jsxs)(pIe,{className:I.scroller,ownerState:M,style:{overflow:G.overflow,[$?"margin"+(i?"Left":"Right"):"marginBottom"]:E?void 0:-G.scrollbarWidth},ref:J,children:[(0,lM.jsx)(mIe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":"vertical"===g?"vertical":null,className:I.flexContainer,ownerState:M,onKeyDown:e=>{const t=ee.current,n=$Re(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",o="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&i&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),fIe(t,n,dIe);break;case o:e.preventDefault(),fIe(t,n,cIe);break;case"Home":e.preventDefault(),fIe(t,null,cIe);break;case"End":e.preventDefault(),fIe(t,null,dIe)}},ref:ee,role:"tablist",children:he}),N&&de]}),pe.scrollButtonEnd]})})),bIe=yIe;function wIe(e){return cB("MuiDateTimePickerTabs",e)}dB("MuiDateTimePickerTabs",["root"]);const kIe=e=>zEe(e)?"date":"time",xIe=Pq(bIe,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${uIe.indicator}`]:{bottom:"auto",top:0}}}))),_Ie=function(e){const t=EEe({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:n=(0,lM.jsx)(wQe,{}),onViewChange:r,timeIcon:i=(0,lM.jsx)(kQe,{}),view:o,hidden:a="undefined"==typeof window||window.innerHeight<667,className:s,sx:l}=t,u=qCe(),d=(e=>{const{classes:t}=e;return qN({root:["root"]},wIe,t)})(t);return a?null:(0,lM.jsxs)(xIe,{ownerState:t,variant:"fullWidth",value:kIe(o),onChange:(e,t)=>{r((e=>"date"===e?"day":"hours")(t))},className:XN(s,d.root),sx:l,children:[(0,lM.jsx)(KMe,{value:"date","aria-label":u.dateTableLabel,icon:(0,lM.jsx)(c.Fragment,{children:n})}),(0,lM.jsx)(KMe,{value:"time","aria-label":u.timeTableLabel,icon:(0,lM.jsx)(c.Fragment,{children:i})})]})};function SIe(e){return cB("MuiPickersToolbarText",e)}const PIe=dB("MuiPickersToolbarText",["root","selected"]),EIe=["className","selected","value"],CIe=Pq(zCe,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${PIe.selected}`]:t.selected}]})((({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${PIe.selected}`]:{color:(e.vars||e).palette.text.primary}}))),TIe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersToolbarText"}),{className:r,value:i}=n,o=PEe(n,EIe),a=(e=>{const{classes:t,selected:n}=e;return qN({root:["root",n&&"selected"]},SIe,t)})(n);return(0,lM.jsx)(CIe,wEe({ref:t,className:XN(a.root,r),component:"span"},o,{children:i}))})),$Ie=["align","className","selected","typographyClassName","value","variant","width"],QIe=Pq(v$e,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),RIe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:i,selected:o,typographyClassName:a,value:s,variant:l,width:u}=n,c=PEe(n,$Ie),d=(e=>{const{classes:t}=e;return qN({root:["root"]},WCe,t)})(n);return(0,lM.jsx)(QIe,wEe({variant:"text",ref:t,className:XN(d.root,i)},u?{sx:{width:u}}:{},c,{children:(0,lM.jsx)(TIe,{align:r,className:a,variant:l,value:s,selected:o})}))}));function AIe(e){return cB("MuiDateTimePickerToolbar",e)}const jIe=dB("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),DIe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],MIe=e=>{const{classes:t,isLandscape:n,isRtl:r}=e;return qN({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},AIe,t)},IIe=Pq(XCe,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${NCe.content} .${PIe.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]}))),zIe=Pq("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),WIe=Pq("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&"desktop"!==t,style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&"desktop"!==t&&n,style:{flexDirection:"column-reverse"}}]}),NIe=Pq("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),LIe=Pq(TIe,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),FIe=Pq("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${jIe.ampmLabel}`]:t.ampmLabel},{[`&.${jIe.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${jIe.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function UIe(e){const t=EEe({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:d="––",views:f,disabled:h,readOnly:p,toolbarVariant:m="mobile",toolbarTitle:g,className:v}=t,O=PEe(t,DIe),y=wEe({},t,{isRtl:VN()}),b=PCe(),{meridiemMode:w,handleMeridiemChange:k}=KDe(i,n,o),x=Boolean(n&&!r),_="desktop"===m,S=qCe(),P=MIe(y),E=g??S.dateTimePickerToolbarTitle,C=c.useMemo((()=>i?u?b.formatByString(i,u):b.format(i,"shortDate"):d),[i,u,d,b]);return(0,lM.jsxs)(IIe,wEe({isLandscape:s,className:XN(P.root,v),toolbarTitle:E},O,{ownerState:y,children:[(0,lM.jsxs)(zIe,{className:P.dateContainer,ownerState:y,children:[f.includes("year")&&(0,lM.jsx)(RIe,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:"year"===a,value:i?b.format(i,"year"):"–"}),f.includes("day")&&(0,lM.jsx)(RIe,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:"day"===a,value:C})]}),(0,lM.jsxs)(WIe,{className:P.timeContainer,ownerState:y,children:[(0,lM.jsxs)(NIe,{className:P.timeDigitsContainer,ownerState:y,children:[f.includes("hours")&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(RIe,{variant:_?"h5":"h3",width:_&&!s?nQe:void 0,onClick:()=>l("hours"),selected:"hours"===a,value:i?(e=>n?b.format(e,"hours12h"):b.format(e,"hours24h"))(i):"--"}),(0,lM.jsx)(LIe,{variant:_?"h5":"h3",value:":",className:P.separator,ownerState:y}),(0,lM.jsx)(RIe,{variant:_?"h5":"h3",width:_&&!s?nQe:void 0,onClick:()=>l("minutes"),selected:"minutes"===a||!f.includes("minutes")&&"hours"===a,value:i?b.format(i,"minutes"):"--",disabled:!f.includes("minutes")})]}),f.includes("seconds")&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(LIe,{variant:_?"h5":"h3",value:":",className:P.separator,ownerState:y}),(0,lM.jsx)(RIe,{variant:_?"h5":"h3",width:_&&!s?nQe:void 0,onClick:()=>l("seconds"),selected:"seconds"===a,value:i?b.format(i,"seconds"):"--"})]})]}),x&&!_&&(0,lM.jsxs)(FIe,{className:P.ampmSelection,ownerState:y,children:[(0,lM.jsx)(RIe,{variant:"subtitle2",selected:"am"===w,typographyClassName:P.ampmLabel,value:MEe(b,"am"),onClick:p?void 0:()=>k("am"),disabled:h}),(0,lM.jsx)(RIe,{variant:"subtitle2",selected:"pm"===w,typographyClassName:P.ampmLabel,value:MEe(b,"pm"),onClick:p?void 0:()=>k("pm"),disabled:h})]}),n&&_&&(0,lM.jsx)(RIe,{variant:"h5",onClick:()=>l("meridiem"),selected:"meridiem"===a,value:i&&w?MEe(b,w):"--",width:nQe})]})]}))}function XIe(e,t){const n=PCe(),r=ECe(),i=EEe({props:e,name:t}),o=i.ampm??n.is12HourCycleInCurrentLocale(),a=c.useMemo((()=>null==i.localeText?.toolbarTitle?i.localeText:wEe({},i.localeText,{dateTimePickerToolbarTitle:i.localeText.toolbarTitle})),[i.localeText]);return wEe({},i,$Ee({views:i.views,openTo:i.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:o,localeText:a,orientation:i.orientation??"portrait",disableIgnoringDatePartForTimeValidation:i.disableIgnoringDatePartForTimeValidation??Boolean(i.minDateTime||i.maxDateTime||i.disablePast||i.disableFuture),disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:AEe(n,i.minDateTime??i.minDate,r.minDate),maxDate:AEe(n,i.maxDateTime??i.maxDate,r.maxDate),minTime:i.minDateTime??i.minTime,maxTime:i.maxDateTime??i.maxTime,slots:wEe({toolbar:UIe,tabs:_Ie},i.slots),slotProps:wEe({},i.slotProps,{toolbar:wEe({ampm:o},i.slotProps?.toolbar)})})}const qIe=["views","format"],BIe=(e,t,n)=>{let{views:r,format:i}=t,o=PEe(t,qIe);if(i)return i;const a=[],s=[];if(r.forEach((e=>{FEe(e)?s.push(e):zEe(e)&&a.push(e)})),0===s.length)return WEe(e,wEe({views:a},o),!1);if(0===a.length)return ZEe(e,wEe({views:s},o));const l=ZEe(e,wEe({views:s},o));return`${n?e.formats.keyboardDate:WEe(e,wEe({views:a},o),!1)} ${l}`},VIe=(e,t,n)=>n?t.filter((e=>!UEe(e)||"hours"===e)):e?[...t,"meridiem"]:t;function YIe({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=wEe({hours:1,minutes:5,seconds:5},n),a=((e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t)(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:VIe(t,r,a)}}function ZIe(e){return cB("MuiTimeClock",e)}dB("MuiTimeClock",["root","arrowSwitcher"]);const GIe=220,HIe=36,KIe=GIe/2,JIe=GIe/2,eze=KIe-KIe,tze=0-JIe,nze=(e,t,n)=>{const r=t-KIe,i=n-JIe;let o=(Math.atan2(eze,tze)-Math.atan2(r,i))*(180/Math.PI);o=Math.round(o/e)*e,o%=360;const a=r**2+i**2;return{value:Math.floor(o/e)||0,distance:Math.sqrt(a)}};function rze(e){return cB("MuiClockPointer",e)}dB("MuiClockPointer",["root","thumb"]);const ize=["className","hasSelected","isInner","type","viewValue"],oze=e=>{const{classes:t}=e;return qN({root:["root"],thumb:["thumb"]},rze,t)},aze=Pq("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]}))),sze=Pq("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]})));function lze(e){const t=EEe({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=PEe(t,ize),s=c.useRef(i);c.useEffect((()=>{s.current=i}),[i]);const l=wEe({},t,{shouldAnimate:s.current!==i}),u=oze(l);return(0,lM.jsx)(aze,wEe({style:(()=>{let e=360/("hours"===i?12:60)*o;return"hours"===i&&o>12&&(e-=360),{height:Math.round((r?.26:.4)*GIe),transform:`rotateZ(${e}deg)`}})(),className:XN(u.root,n),ownerState:l},a,{children:(0,lM.jsx)(sze,{ownerState:l,className:u.thumb})}))}function uze(e){return cB("MuiClock",e)}dB("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const cze=Pq("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)}))),dze=Pq("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),fze=Pq("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),hze=Pq("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),pze=Pq("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})((({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}))),mze=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:HIe,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),gze=Pq(ITe,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})((({theme:e})=>wEe({},mze(e,"am"),{position:"absolute",left:8}))),vze=Pq(ITe,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})((({theme:e})=>wEe({},mze(e,"pm"),{position:"absolute",right:8}))),Oze=Pq(zCe,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function yze(e){const t=EEe({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:d=1,onChange:f,selectedId:h,type:p,viewValue:m,viewRange:[g,v],disabled:O=!1,readOnly:y,className:b}=t,w=t,k=PCe(),x=qCe(),_=c.useRef(!1),S=(e=>{const{classes:t,meridiemMode:n}=e;return qN({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton","am"===n&&"selected"],pmButton:["pmButton","pm"===n&&"selected"],meridiemText:["meridiemText"]},uze,t)})(w),P=l(m,p),E=!n&&"hours"===p&&(m<1||m>12),C=(e,t)=>{O||y||l(e,p)||f(e,t)},T=(e,t)=>{let{offsetX:r,offsetY:i}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,i=e.changedTouches[0].clientY-t.top}const o="seconds"===p||"minutes"===p?((e,t,n=1)=>{const r=6*n;let{value:i}=nze(r,e,t);return i=i*n%60,i})(r,i,d):((e,t,n)=>{const{value:r,distance:i}=nze(30,e,t);let o=r||12;return n?o%=12:i{_.current=!0,T(e,"shallow")},Q=c.useMemo((()=>"hours"===p||m%5==0),[p,m]),R="minutes"===p?d:1,A=c.useRef(null);rL((()=>{i&&A.current.focus()}),[i]);const j=e=>Math.max(g,Math.min(v,e)),D=e=>(e+(v+1))%(v+1);return(0,lM.jsxs)(cze,{className:XN(S.root,b),children:[(0,lM.jsxs)(dze,{className:S.clock,children:[(0,lM.jsx)(hze,{onTouchMove:$,onTouchStart:$,onTouchEnd:e=>{_.current&&(T(e,"finish"),_.current=!1),e.preventDefault()},onMouseUp:e=>{_.current&&(_.current=!1),T(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&T(e.nativeEvent,"shallow")},ownerState:{disabled:O},className:S.squareMask}),!P&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(pze,{className:S.pin}),null!=a&&(0,lM.jsx)(lze,{type:p,viewValue:m,isInner:E,hasSelected:Q})]}),(0,lM.jsx)(fze,{"aria-activedescendant":h,"aria-label":x.clockLabelText(p,a,k,null==a?null:k.format(a,"fullTime")),ref:A,role:"listbox",onKeyDown:e=>{if(!_.current)switch(e.key){case"Home":C(g,"partial"),e.preventDefault();break;case"End":C(v,"partial"),e.preventDefault();break;case"ArrowUp":C(D(m+R),"partial"),e.preventDefault();break;case"ArrowDown":C(D(m-R),"partial"),e.preventDefault();break;case"PageUp":C(j(m+5),"partial"),e.preventDefault();break;case"PageDown":C(j(m-5),"partial"),e.preventDefault();break;case"Enter":case" ":C(m,"finish"),e.preventDefault()}},tabIndex:0,className:S.wrapper,children:o})]}),n&&r&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(gze,{onClick:y?void 0:()=>s("am"),disabled:O||null===u,ownerState:w,className:S.amButton,title:MEe(k,"am"),children:(0,lM.jsx)(Oze,{variant:"caption",className:S.meridiemText,children:MEe(k,"am")})}),(0,lM.jsx)(vze,{disabled:O||null===u,onClick:y?void 0:()=>s("pm"),ownerState:w,className:S.pmButton,title:MEe(k,"pm"),children:(0,lM.jsx)(Oze,{variant:"caption",className:S.meridiemText,children:MEe(k,"pm")})})]})]})}function bze(e){return cB("MuiClockNumber",e)}const wze=dB("MuiClockNumber",["root","selected","disabled"]),kze=["className","disabled","index","inner","label","selected"],xze=Pq("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wze.disabled}`]:t.disabled},{[`&.${wze.selected}`]:t.selected}]})((({theme:e})=>({height:HIe,width:HIe,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${wze.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${wze.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:wEe({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]})));function _ze(e){const t=EEe({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=PEe(t,kze),u=t,c=(e=>{const{classes:t,selected:n,disabled:r}=e;return qN({root:["root",n&&"selected",r&&"disabled"]},bze,t)})(u),d=i%12/12*Math.PI*2-Math.PI/2,f=(GIe-HIe-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*f),p=Math.round(Math.sin(d)*f);return(0,lM.jsx)(xze,wEe({className:XN(c.root,n),"aria-disabled":!!r||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${h}px, ${p+(GIe-HIe)/2}px`},ownerState:u},l,{children:a}))}const Sze=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?12:23,u=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=o.formatNumber(a);const c=u(t);s.push((0,lM.jsx)(_ze,{id:c?i:void 0,index:t,inner:l,selected:c,disabled:r(t),label:a,"aria-label":n(a)},t))}return s},Pze=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map((([e,o],a)=>{const s=e===t;return(0,lM.jsx)(_ze,{label:o,id:s?i:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(o)},e)}))},Eze=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=c.useMemo((()=>vCe.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:GEe.day,timezone:i,getTodayDate:()=>DEe(n,i,"date")})),[]);return e??o},Cze=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Tze=Pq(uMe,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),$ze=Pq(HDe,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Qze=["hours","minutes"],Rze=c.forwardRef((function(e,t){const n=PCe(),r=EEe({props:e,name:"MuiTimeClock"}),{ampm:i=n.is12HourCycleInCurrentLocale(),ampmInClock:o=!1,autoFocus:a,slots:s,slotProps:l,value:u,defaultValue:d,referenceDate:f,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:p,minTime:m,disableFuture:g,disablePast:v,minutesStep:O=1,shouldDisableTime:y,showViewSwitcher:b,onChange:w,view:k,views:x=Qze,openTo:_,onViewChange:S,focusedView:P,onFocusedViewChange:E,className:C,disabled:T,readOnly:$,timezone:Q}=r,R=PEe(r,Cze),{value:A,handleValueChange:j,timezone:D}=t$e({name:"TimeClock",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:w,valueManager:vCe}),M=Eze({value:A,referenceDate:f,utils:n,props:r,timezone:D}),I=qCe(),z=CCe(D),{view:W,setView:N,previousView:L,nextView:F,setValueAndGoToNextView:U}=n$e({view:k,views:x,openTo:_,onViewChange:S,onChange:j,focusedView:P,onFocusedViewChange:E}),{meridiemMode:X,handleMeridiemChange:q}=KDe(M,i,U),B=c.useCallback(((e,t)=>{const r=YEe(h,n),o="hours"===t||"minutes"===t&&x.includes("seconds"),a=({start:e,end:t})=>!(m&&r(m,t)||p&&r(e,p)||g&&r(e,z)||v&&r(z,o?t:e)),s=(e,r=1)=>{if(e%r!=0)return!1;if(y)switch(t){case"hours":return!y(n.setHours(M,e),"hours");case"minutes":return!y(n.setMinutes(M,e),"minutes");case"seconds":return!y(n.setSeconds(M,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=qEe(e,X,i),r=n.setHours(M,t);return n.getHours(r)!==t||(!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t))}case"minutes":{const t=n.setMinutes(M,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,O)}case"seconds":{const t=n.setSeconds(M,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[i,M,h,p,X,m,O,y,n,g,v,z,x]),V=R3(),Y=c.useMemo((()=>{switch(W){case"hours":{const e=(e,t)=>{const r=qEe(e,X,i);U(n.setHours(M,r),t,"hours")},t=n.getHours(M);let r;return r=i?t>12?[12,23]:[0,11]:[0,23],{onChange:e,viewValue:t,children:Sze({value:A,utils:n,ampm:i,onChange:e,getClockNumberText:I.hoursClockNumberText,isDisabled:e=>T||B(e,"hours"),selectedId:V}),viewRange:r}}case"minutes":{const e=n.getMinutes(M),t=(e,t)=>{U(n.setMinutes(M,e),t,"minutes")};return{viewValue:e,onChange:t,children:Pze({utils:n,value:e,onChange:t,getClockNumberText:I.minutesClockNumberText,isDisabled:e=>T||B(e,"minutes"),selectedId:V}),viewRange:[0,59]}}case"seconds":{const e=n.getSeconds(M),t=(e,t)=>{U(n.setSeconds(M,e),t,"seconds")};return{viewValue:e,onChange:t,children:Pze({utils:n,value:e,onChange:t,getClockNumberText:I.secondsClockNumberText,isDisabled:e=>T||B(e,"seconds"),selectedId:V}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}}),[W,n,A,i,I.hoursClockNumberText,I.minutesClockNumberText,I.secondsClockNumberText,X,U,M,B,V,T]),Z=r,G=(e=>{const{classes:t}=e;return qN({root:["root"],arrowSwitcher:["arrowSwitcher"]},ZIe,t)})(Z);return(0,lM.jsxs)(Tze,wEe({ref:t,className:XN(G.root,C),ownerState:Z},R,{children:[(0,lM.jsx)(yze,wEe({autoFocus:a??!!P,ampmInClock:o&&x.includes("hours"),value:A,type:W,ampm:i,minutesStep:O,isTimeDisabled:B,meridiemMode:X,handleMeridiemChange:q,selectedId:V,disabled:T,readOnly:$},Y)),b&&(0,lM.jsx)($ze,{className:G.arrowSwitcher,slots:s,slotProps:l,onGoToPrevious:()=>N(L),isPreviousDisabled:!L,previousLabel:I.openPreviousView,onGoToNext:()=>N(F),isNextDisabled:!F,nextLabel:I.openNextView,ownerState:Z})]}))})),Aze=dB("MuiListItemIcon",["root","alignItemsFlexStart"]),jze=dB("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Dze(e){return cB("MuiMenuItem",e)}const Mze=dB("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ize=Pq(RTe,{shouldForwardProp:e=>_q(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Cq((({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mze.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mze.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WMe.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WMe.inset}`]:{marginLeft:52},[`& .${jze.root}`]:{marginTop:0,marginBottom:0},[`& .${jze.inset}`]:{paddingLeft:36},[`& .${Aze.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Aze.root} svg`]:{fontSize:"1.25rem"}}}]})))),zze=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:o=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:d,className:f,...h}=n,p=c.useContext(_$e),m=c.useMemo((()=>({dense:o||p.dense||!1,disableGutters:s})),[p.dense,o,s]),g=c.useRef(null);TQe((()=>{r&&g.current&&g.current.focus()}),[r]);const v={...n,dense:m.dense,divider:a,disableGutters:s},O=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,s=qN({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Dze,a);return{...a,...s}})(n),y=rB(g,t);let b;return n.disabled||(b=void 0!==d?d:-1),(0,lM.jsx)(_$e.Provider,{value:m,children:(0,lM.jsx)(Ize,{ref:y,role:u,tabIndex:b,component:i,focusVisibleClassName:XN(O.focusVisible,l),className:XN(O.root,f),...h,ownerState:v,classes:O})})})),Wze=zze;function Nze(e){return cB("MuiDigitalClock",e)}const Lze=dB("MuiDigitalClock",["root","list","item"]),Fze=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Uze=Pq(uMe,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:232,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),Xze=Pq(IRe,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),qze=Pq(Wze,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette.primary.main,e.palette.action.focusOpacity)}}))),Bze=c.forwardRef((function(e,t){const n=PCe(),r=c.useRef(null),i=GN(t,r),o=c.useRef(null),a=EEe({props:e,name:"MuiDigitalClock"}),{ampm:s=n.is12HourCycleInCurrentLocale(),timeStep:l=30,autoFocus:u,slots:d,slotProps:f,value:h,defaultValue:p,referenceDate:m,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:v,minTime:O,disableFuture:y,disablePast:b,minutesStep:w=1,shouldDisableTime:k,onChange:x,view:_,openTo:S,onViewChange:P,focusedView:E,onFocusedViewChange:C,className:T,disabled:$,readOnly:Q,views:R=["hours"],skipDisabled:A=!1,timezone:j}=a,D=PEe(a,Fze),{value:M,handleValueChange:I,timezone:z}=t$e({name:"DigitalClock",timezone:j,value:h,defaultValue:p,referenceDate:m,onChange:x,valueManager:vCe}),W=qCe(),N=CCe(z),L=c.useMemo((()=>wEe({},a,{alreadyRendered:!!r.current})),[a]),F=(e=>{const{classes:t}=e;return qN({root:["root"],list:["list"],item:["item"]},Nze,t)})(L),U=d?.digitalClockItem??qze,X=b3({elementType:U,externalSlotProps:f?.digitalClockItem,ownerState:{},className:F.item}),q=Eze({value:M,referenceDate:m,utils:n,props:a,timezone:z}),B=gB((e=>I(e,"finish","hours"))),{setValueAndGoToNextView:V}=n$e({view:_,views:R,openTo:S,onViewChange:P,onChange:B,focusedView:E,onFocusedViewChange:C}),Y=gB((e=>{V(e,"finish")}));c.useEffect((()=>{if(null===r.current)return;const e=r.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;(u||E)&&e.focus(),r.current.scrollTop=t-4}));const Z=c.useCallback((e=>{const t=YEe(g,n);return!!(O&&t(O,e)||v&&t(e,v)||y&&t(e,N)||b&&t(N,e))||!!(n.getMinutes(e)%w!=0||k&&k(e,"hours"))}),[g,n,O,v,y,N,b,w,k]),G=c.useMemo((()=>{const e=[];let t=n.startOfDay(q);for(;n.isSameDay(q,t);)e.push(t),t=n.addMinutes(t,l);return e}),[q,l,n]),H=G.findIndex((e=>n.isEqual(e,q)));return(0,lM.jsx)(Uze,wEe({ref:i,className:XN(F.root,T),ownerState:L},D,{children:(0,lM.jsx)(Xze,{ref:o,role:"listbox","aria-label":W.timePickerToolbarTitle,className:F.list,onKeyDown:e=>{switch(e.key){case"PageUp":{const t=LTe(o.current)-5,n=o.current.children[Math.max(0,t)];n&&n.focus(),e.preventDefault();break}case"PageDown":{const t=LTe(o.current)+5,n=o.current.children,r=n[Math.min(n.length-1,t)];r&&r.focus(),e.preventDefault();break}}},children:G.map(((e,t)=>{if(A&&Z(e))return null;const r=n.isEqual(e,M),i=n.format(e,s?"fullTime12h":"fullTime24h"),o=H===t||-1===H&&0===t?0:-1;return(0,lM.jsx)(U,wEe({onClick:()=>!Q&&Y(e),selected:r,disabled:$||Z(e),disableRipple:Q,role:"option","aria-disabled":Q,"aria-selected":r,tabIndex:o},X,{children:i}),`${e.valueOf()}-${i}`)}))})}))}));function Vze(e){return cB("MuiMultiSectionDigitalClock",e)}const Yze=dB("MuiMultiSectionDigitalClock",["root"]);function Zze(e){return cB("MuiMultiSectionDigitalClockSection",e)}const Gze=dB("MuiMultiSectionDigitalClockSection",["root","item"]),Hze=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Kze=Pq(IRe,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({maxHeight:232,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}))),Jze=Pq(Wze,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:8,margin:"2px 4px",width:nQe,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xX(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:xX(e.palette.primary.main,e.palette.action.focusOpacity)}}))),eWe=c.forwardRef((function(e,t){const n=c.useRef(null),r=GN(t,n),i=c.useRef(null),o=EEe({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:s,className:l,disabled:u,readOnly:d,items:f,active:h,slots:p,slotProps:m,skipDisabled:g}=o,v=PEe(o,Hze),O=c.useMemo((()=>wEe({},o,{alreadyRendered:!!n.current})),[o]),y=(e=>{const{classes:t}=e;return qN({root:["root"],item:["item"]},Zze,t)})(O),b=p?.digitalClockSectionItem??Jze;c.useEffect((()=>{if(null===n.current)return;const e=n.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(h&&a&&e&&e.focus(),!e||i.current===e)return;i.current=e;const t=e.offsetTop;n.current.scrollTop=t-4}));const w=f.findIndex((e=>e.isFocused(e.value)));return(0,lM.jsx)(Kze,wEe({ref:r,className:XN(y.root,l),ownerState:O,autoFocusItem:a&&h,role:"listbox",onKeyDown:e=>{switch(e.key){case"PageUp":{const t=LTe(n.current)-5,r=n.current.children[Math.max(0,t)];r&&r.focus(),e.preventDefault();break}case"PageDown":{const t=LTe(n.current)+5,r=n.current.children,i=r[Math.min(r.length-1,t)];i&&i.focus(),e.preventDefault();break}}}},v,{children:f.map(((e,t)=>{const n=e.isDisabled?.(e.value),r=u||n;if(g&&r)return null;const i=e.isSelected(e.value),o=w===t||-1===w&&0===t?0:-1;return(0,lM.jsx)(b,wEe({onClick:()=>!d&&s(e.value),selected:i,disabled:r,disableRipple:d,role:"option","aria-disabled":d||r||void 0,"aria-label":e.ariaLabel,"aria-selected":i,tabIndex:o,className:y.item},m?.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),tWe=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,u=[],c=(e,t)=>{const n=t??l;return null!==n&&(r?12===e?12===n||0===n:n===e||n-12===e:n===e)},d=e=>c(e,n.getHours(s)),f=r?11:23;for(let t=0;t<=f;t+=a){let a=n.format(n.setHours(e,t),r?"hours12h":"hours24h");const s=o(parseInt(a,10).toString());a=n.formatNumber(a),u.push({value:t,label:a,isSelected:c,isDisabled:i,isFocused:d,ariaLabel:s})}return u},nWe=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=t=>null!==e&&a&&e===t,l=t=>e===t;return[...Array.from({length:Math.ceil(60/r)},((e,a)=>{const u=r*a;return{value:u,label:t.formatNumber(i(u)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:o(u.toString())}}))]},rWe=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],iWe=Pq(uMe,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`}))),oWe=c.forwardRef((function(e,t){const n=PCe(),r=VN(),i=EEe({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:o=n.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,slots:l,slotProps:u,value:d,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:m,minTime:g,disableFuture:v,disablePast:O,minutesStep:y=1,shouldDisableTime:b,onChange:w,view:k,views:x=["hours","minutes"],openTo:_,onViewChange:S,focusedView:P,onFocusedViewChange:E,className:C,disabled:T,readOnly:$,skipDisabled:Q=!1,timezone:R}=i,A=PEe(i,rWe),{value:j,handleValueChange:D,timezone:M}=t$e({name:"MultiSectionDigitalClock",timezone:R,value:d,defaultValue:f,referenceDate:h,onChange:w,valueManager:vCe}),I=qCe(),z=CCe(M),W=c.useMemo((()=>wEe({hours:1,minutes:5,seconds:5},a)),[a]),N=Eze({value:j,referenceDate:h,utils:n,props:i,timezone:M}),L=gB(((e,t,n)=>D(e,t,n))),F=c.useMemo((()=>o&&x.includes("hours")?x.includes("meridiem")?x:[...x,"meridiem"]:x),[o,x]),{view:U,setValueAndGoToNextView:X,focusedView:q}=n$e({view:k,views:F,openTo:_,onViewChange:S,onChange:L,focusedView:P,onFocusedViewChange:E}),B=gB((e=>{X(e,"finish","meridiem")})),{meridiemMode:V,handleMeridiemChange:Y}=KDe(N,o,B,"finish"),Z=c.useCallback(((e,t)=>{const r=YEe(p,n),i="hours"===t||"minutes"===t&&F.includes("seconds"),a=({start:e,end:t})=>!(g&&r(g,t)||m&&r(e,m)||v&&r(e,z)||O&&r(z,i?t:e)),s=(e,r=1)=>{if(e%r!=0)return!1;if(b)switch(t){case"hours":return!b(n.setHours(N,e),"hours");case"minutes":return!b(n.setMinutes(N,e),"minutes");case"seconds":return!b(n.setSeconds(N,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=qEe(e,V,o),r=n.setHours(N,t);return n.getHours(r)!==t||(!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t))}case"minutes":{const t=n.setMinutes(N,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,y)}case"seconds":{const t=n.setSeconds(N,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[o,N,p,m,V,g,y,b,n,v,O,z,F]),G=c.useCallback((e=>{switch(e){case"hours":return{onChange:e=>{const t=qEe(e,V,o);X(n.setHours(N,t),"finish","hours")},items:tWe({now:z,value:j,ampm:o,utils:n,isDisabled:e=>Z(e,"hours"),timeStep:W.hours,resolveAriaLabel:I.hoursClockNumberText,valueOrReferenceDate:N})};case"minutes":return{onChange:e=>{X(n.setMinutes(N,e),"finish","minutes")},items:nWe({value:n.getMinutes(N),utils:n,isDisabled:e=>Z(e,"minutes"),resolveLabel:e=>n.format(n.setMinutes(z,e),"minutes"),timeStep:W.minutes,hasValue:!!j,resolveAriaLabel:I.minutesClockNumberText})};case"seconds":return{onChange:e=>{X(n.setSeconds(N,e),"finish","seconds")},items:nWe({value:n.getSeconds(N),utils:n,isDisabled:e=>Z(e,"seconds"),resolveLabel:e=>n.format(n.setSeconds(z,e),"seconds"),timeStep:W.seconds,hasValue:!!j,resolveAriaLabel:I.secondsClockNumberText})};case"meridiem":{const e=MEe(n,"am"),t=MEe(n,"pm");return{onChange:Y,items:[{value:"am",label:e,isSelected:()=>!!j&&"am"===V,isFocused:()=>!!N&&"am"===V,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!j&&"pm"===V,isFocused:()=>!!N&&"pm"===V,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}}),[z,j,o,n,W.hours,W.minutes,W.seconds,I.hoursClockNumberText,I.minutesClockNumberText,I.secondsClockNumberText,V,X,N,Z,Y]),H=c.useMemo((()=>{if(!r)return F;const e=F.filter((e=>"meridiem"!==e));return e.reverse(),F.includes("meridiem")&&e.push("meridiem"),e}),[r,F]),K=c.useMemo((()=>F.reduce(((e,t)=>wEe({},e,{[t]:G(t)})),{})),[F,G]),J=i,ee=(e=>{const{classes:t}=e;return qN({root:["root"]},Vze,t)})(J);return(0,lM.jsx)(iWe,wEe({ref:t,className:XN(ee.root,C),ownerState:J,role:"group"},A,{children:H.map((e=>(0,lM.jsx)(eWe,{items:K[e].items,onChange:K[e].onChange,active:U===e,autoFocus:s??q===e,disabled:T,readOnly:$,slots:l,slotProps:u,skipDisabled:Q,"aria-label":I.selectViewText(e)},e)))}))})),aWe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,ampmInClock:O,slots:y,slotProps:b,readOnly:w,disabled:k,sx:x,autoFocus:_,showViewSwitcher:S,disableIgnoringDatePartForTimeValidation:P,timezone:E})=>(0,lM.jsx)(Rze,{view:e,onViewChange:t,focusedView:n&&FEe(n)?n:null,onFocusedViewChange:r,views:i.filter(FEe),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,ampmInClock:O,slots:y,slotProps:b,readOnly:w,disabled:k,sx:x,autoFocus:_,showViewSwitcher:S,disableIgnoringDatePartForTimeValidation:P,timezone:E}),sWe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,slots:O,slotProps:y,readOnly:b,disabled:w,sx:k,autoFocus:x,disableIgnoringDatePartForTimeValidation:_,timeSteps:S,skipDisabled:P,timezone:E})=>(0,lM.jsx)(Bze,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(FEe),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,slots:O,slotProps:y,readOnly:b,disabled:w,sx:k,autoFocus:x,disableIgnoringDatePartForTimeValidation:_,timeStep:S?.minutes,skipDisabled:P,timezone:E}),lWe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,slots:O,slotProps:y,readOnly:b,disabled:w,sx:k,autoFocus:x,disableIgnoringDatePartForTimeValidation:_,timeSteps:S,skipDisabled:P,timezone:E})=>(0,lM.jsx)(oWe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(FEe),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:f,minTime:h,maxTime:p,shouldDisableTime:m,minutesStep:g,ampm:v,slots:O,slotProps:y,readOnly:b,disabled:w,sx:k,autoFocus:x,disableIgnoringDatePartForTimeValidation:_,timeSteps:S,skipDisabled:P,timezone:E}),uWe=c.forwardRef((function(e,t){const n=VN(),{toolbar:r,tabs:i,content:o,actionBar:a,shortcuts:s}=aQe(e),{sx:l,className:u,isLandscape:c,classes:d}=e,f=a&&(a.props.actions?.length??0)>0,h=wEe({},e,{isRtl:n});return(0,lM.jsxs)(sQe,{ref:t,className:XN(s$e.root,d?.root,u),sx:[{[`& .${s$e.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${s$e.actionBar}`]:{gridRow:5}},...Array.isArray(l)?l:[l]],ownerState:h,children:[c?s:r,c?r:s,(0,lM.jsxs)(lQe,{className:XN(s$e.contentWrapper,d?.contentWrapper),sx:{display:"grid"},children:[o,i,f&&(0,lM.jsx)(UMe,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})})),cWe=["openTo","focusedView","timeViewsCount"],dWe=function(e,t,n){const{openTo:r,focusedView:i,timeViewsCount:o}=n,a=wEe({},PEe(n,cWe),{focusedView:null,sx:[{[`&.${Yze.root}`]:{borderBottom:0},[`&.${Yze.root}, .${Gze.root}, &.${Lze.root}`]:{maxHeight:tQe}}]}),s=UEe(t);return(0,lM.jsxs)(c.Fragment,{children:[e[s?"day":t]?.(wEe({},n,{view:s?"day":t,focusedView:i&&zEe(i)?i:null,views:n.views.filter(zEe),sx:[{gridColumn:1},...a.sx]})),o>0&&(0,lM.jsxs)(c.Fragment,{children:[(0,lM.jsx)(UMe,{orientation:"vertical",sx:{gridColumn:2}}),e[s?t:"hours"]?.(wEe({},a,{view:s?t:"hours",focusedView:i&&UEe(i)?i:null,openTo:UEe(r)?r:"hours",views:n.views.filter(UEe),sx:[{gridColumn:3},...a.sx]}))]})]})},fWe=c.forwardRef((function(e,t){const n=qCe(),r=PCe(),i=XIe(e,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:o,thresholdToRenderTimeInASingleColumn:a,views:s,timeSteps:l}=YIe(i),u=o?sWe:lWe,c=wEe({day:mMe,month:mMe,year:mMe,hours:u,minutes:u,seconds:u,meridiem:u},i.viewRenderers),d=i.ampmInClock??!0,f=c.hours?.name===lWe.name?s:s.filter((e=>"meridiem"!==e)),h=o?[]:["accept"],p=wEe({},i,{viewRenderers:c,format:BIe(r,i),views:f,yearsPerRow:i.yearsPerRow??4,ampmInClock:d,timeSteps:l,thresholdToRenderTimeInASingleColumn:a,shouldRenderTimeInASingleColumn:o,slots:wEe({field:VMe,layout:uWe,openPickerIcon:yQe},i.slots),slotProps:wEe({},i.slotProps,{field:e=>wEe({},jq(i.slotProps?.field,e),nTe(i),{ref:t}),toolbar:wEe({hidden:!0,ampmInClock:d,toolbarVariant:"desktop"},i.slotProps?.toolbar),tabs:wEe({hidden:!0},i.slotProps?.tabs),actionBar:e=>wEe({actions:h},jq(i.slotProps?.actionBar,e))})}),{renderPicker:m}=mQe({props:p,valueManager:vCe,valueType:"date-time",getOpenDialogAriaText:kCe({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:p.localeText?.openDatePickerDialogue}),validator:qMe,rendererInterceptor:dWe});return m()}));fWe.propTypes={ampm:Hye().bool,ampmInClock:Hye().bool,autoFocus:Hye().bool,className:Hye().string,closeOnSelect:Hye().bool,dayOfWeekFormatter:Hye().func,defaultValue:Hye().object,disabled:Hye().bool,disableFuture:Hye().bool,disableHighlightToday:Hye().bool,disableIgnoringDatePartForTimeValidation:Hye().bool,disableOpenPicker:Hye().bool,disablePast:Hye().bool,displayWeekNumber:Hye().bool,enableAccessibleFieldDOMStructure:Hye().any,fixedWeekNumber:Hye().number,format:Hye().string,formatDensity:Hye().oneOf(["dense","spacious"]),inputRef:CEe,label:Hye().node,loading:Hye().bool,localeText:Hye().object,maxDate:Hye().object,maxDateTime:Hye().object,maxTime:Hye().object,minDate:Hye().object,minDateTime:Hye().object,minTime:Hye().object,minutesStep:Hye().number,monthsPerRow:Hye().oneOf([3,4]),name:Hye().string,onAccept:Hye().func,onChange:Hye().func,onClose:Hye().func,onError:Hye().func,onMonthChange:Hye().func,onOpen:Hye().func,onSelectedSectionsChange:Hye().func,onViewChange:Hye().func,onYearChange:Hye().func,open:Hye().bool,openTo:Hye().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Hye().oneOf(["landscape","portrait"]),readOnly:Hye().bool,reduceAnimations:Hye().bool,referenceDate:Hye().object,renderLoading:Hye().func,selectedSections:Hye().oneOfType([Hye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Hye().number]),shouldDisableDate:Hye().func,shouldDisableMonth:Hye().func,shouldDisableTime:Hye().func,shouldDisableYear:Hye().func,showDaysOutsideCurrentMonth:Hye().bool,skipDisabled:Hye().bool,slotProps:Hye().object,slots:Hye().object,sx:Hye().oneOfType([Hye().arrayOf(Hye().oneOfType([Hye().func,Hye().object,Hye().bool])),Hye().func,Hye().object]),thresholdToRenderTimeInASingleColumn:Hye().number,timeSteps:Hye().shape({hours:Hye().number,minutes:Hye().number,seconds:Hye().number}),timezone:Hye().string,value:Hye().object,view:Hye().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Hye().shape({day:Hye().func,hours:Hye().func,meridiem:Hye().func,minutes:Hye().func,month:Hye().func,seconds:Hye().func,year:Hye().func}),views:Hye().arrayOf(Hye().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Hye().oneOf(["asc","desc"]),yearsPerRow:Hye().oneOf([3,4])};const hWe=c.forwardRef((function(e,t){const n=qCe(),r=PCe(),i=XIe(e,"MuiMobileDateTimePicker"),o=wEe({day:mMe,month:mMe,year:mMe,hours:aWe,minutes:aWe,seconds:aWe},i.viewRenderers),a=i.ampmInClock??!1,s=wEe({},i,{viewRenderers:o,format:BIe(r,i),ampmInClock:a,slots:wEe({field:VMe},i.slots),slotProps:wEe({},i.slotProps,{field:e=>wEe({},jq(i.slotProps?.field,e),nTe(i),{ref:t}),toolbar:wEe({hidden:!1,ampmInClock:a},i.slotProps?.toolbar),tabs:wEe({hidden:!1},i.slotProps?.tabs)})}),{renderPicker:l}=jMe({props:s,valueManager:vCe,valueType:"date-time",getOpenDialogAriaText:kCe({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:qMe});return l()}));hWe.propTypes={ampm:Hye().bool,ampmInClock:Hye().bool,autoFocus:Hye().bool,className:Hye().string,closeOnSelect:Hye().bool,dayOfWeekFormatter:Hye().func,defaultValue:Hye().object,disabled:Hye().bool,disableFuture:Hye().bool,disableHighlightToday:Hye().bool,disableIgnoringDatePartForTimeValidation:Hye().bool,disableOpenPicker:Hye().bool,disablePast:Hye().bool,displayWeekNumber:Hye().bool,enableAccessibleFieldDOMStructure:Hye().any,fixedWeekNumber:Hye().number,format:Hye().string,formatDensity:Hye().oneOf(["dense","spacious"]),inputRef:CEe,label:Hye().node,loading:Hye().bool,localeText:Hye().object,maxDate:Hye().object,maxDateTime:Hye().object,maxTime:Hye().object,minDate:Hye().object,minDateTime:Hye().object,minTime:Hye().object,minutesStep:Hye().number,monthsPerRow:Hye().oneOf([3,4]),name:Hye().string,onAccept:Hye().func,onChange:Hye().func,onClose:Hye().func,onError:Hye().func,onMonthChange:Hye().func,onOpen:Hye().func,onSelectedSectionsChange:Hye().func,onViewChange:Hye().func,onYearChange:Hye().func,open:Hye().bool,openTo:Hye().oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Hye().oneOf(["landscape","portrait"]),readOnly:Hye().bool,reduceAnimations:Hye().bool,referenceDate:Hye().object,renderLoading:Hye().func,selectedSections:Hye().oneOfType([Hye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Hye().number]),shouldDisableDate:Hye().func,shouldDisableMonth:Hye().func,shouldDisableTime:Hye().func,shouldDisableYear:Hye().func,showDaysOutsideCurrentMonth:Hye().bool,slotProps:Hye().object,slots:Hye().object,sx:Hye().oneOfType([Hye().arrayOf(Hye().oneOfType([Hye().func,Hye().object,Hye().bool])),Hye().func,Hye().object]),timezone:Hye().string,value:Hye().object,view:Hye().oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Hye().shape({day:Hye().func,hours:Hye().func,minutes:Hye().func,month:Hye().func,seconds:Hye().func,year:Hye().func}),views:Hye().arrayOf(Hye().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Hye().oneOf(["asc","desc"]),yearsPerRow:Hye().oneOf([3,4])};const pWe=["desktopModeMediaQuery"],mWe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:r=FTe}=n,i=PEe(n,pWe);return z2(r,{defaultMatches:!0})?(0,lM.jsx)(fWe,wEe({ref:t},i)):(0,lM.jsx)(hWe,wEe({ref:t},i))})),gWe=["slots","slotProps","InputProps","inputProps"],vWe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiTimeField"}),{slots:r,slotProps:i,InputProps:o,inputProps:a}=n,s=PEe(n,gWe),l=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Dje:$Ae),c=b3({elementType:u,externalSlotProps:i?.textField,externalForwardedProps:s,ownerState:l,additionalProps:{ref:t}});c.inputProps=wEe({},a,c.inputProps),c.InputProps=wEe({},o,c.InputProps);const d=(e=>{const t=(e=>{const t=PCe(),n=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return wEe({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??n})})(e),{forwardedProps:n,internalProps:r}=NAe(t,"time");return zAe({forwardedProps:n,internalProps:r,valueManager:vCe,fieldValueManager:OCe,validator:XMe,valueType:"time"})})(c),f=Wje(d),h=UAe(wEe({},f,{slots:r,slotProps:i}));return(0,lM.jsx)(u,wEe({},h))}));function OWe(e){return cB("MuiTimePickerToolbar",e)}const yWe=dB("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),bWe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],wWe=e=>{const{isLandscape:t,classes:n,isRtl:r}=e;return qN({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",t&&"hourMinuteLabelLandscape",r&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",t&&"ampmLandscape"],ampmLabel:["ampmLabel"]},OWe,n)},kWe=Pq(XCe,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xWe=Pq(TIe,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),_We=Pq("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${yWe.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${yWe.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{isLandscape:!0},style:{marginTop:"auto"}}]}),SWe=Pq("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${yWe.ampmLabel}`]:t.ampmLabel},{[`&.${yWe.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${yWe.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function PWe(e){const t=EEe({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:s,onViewChange:l,views:u,disabled:c,readOnly:d,className:f}=t,h=PEe(t,bWe),p=PCe(),m=qCe(),g=VN(),v=Boolean(n&&!r&&u.includes("hours")),{meridiemMode:O,handleMeridiemChange:y}=KDe(i,n,a),b=wEe({},t,{isRtl:g}),w=wWe(b),k=(0,lM.jsx)(xWe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:w.separator});return(0,lM.jsxs)(kWe,wEe({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:b,className:XN(w.root,f)},h,{children:[(0,lM.jsxs)(_We,{className:w.hourMinuteLabel,ownerState:b,children:[WTe(u,"hours")&&(0,lM.jsx)(RIe,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:"hours"===s,value:i?(e=>n?p.format(e,"hours12h"):p.format(e,"hours24h"))(i):"--"}),WTe(u,["hours","minutes"])&&k,WTe(u,"minutes")&&(0,lM.jsx)(RIe,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:"minutes"===s,value:i?p.format(i,"minutes"):"--"}),WTe(u,["minutes","seconds"])&&k,WTe(u,"seconds")&&(0,lM.jsx)(RIe,{variant:"h3",onClick:()=>l("seconds"),selected:"seconds"===s,value:i?p.format(i,"seconds"):"--"})]}),v&&(0,lM.jsxs)(SWe,{className:w.ampmSelection,ownerState:b,children:[(0,lM.jsx)(RIe,{disableRipple:!0,variant:"subtitle2",selected:"am"===O,typographyClassName:w.ampmLabel,value:MEe(p,"am"),onClick:d?void 0:()=>y("am"),disabled:c}),(0,lM.jsx)(RIe,{disableRipple:!0,variant:"subtitle2",selected:"pm"===O,typographyClassName:w.ampmLabel,value:MEe(p,"pm"),onClick:d?void 0:()=>y("pm"),disabled:c})]})]}))}function EWe(e,t){const n=PCe(),r=EEe({props:e,name:t}),i=r.ampm??n.is12HourCycleInCurrentLocale(),o=c.useMemo((()=>null==r.localeText?.toolbarTitle?r.localeText:wEe({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle})),[r.localeText]);return wEe({},r,{ampm:i,localeText:o},$Ee({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,slots:wEe({toolbar:PWe},r.slots),slotProps:wEe({},r.slotProps,{toolbar:wEe({ampm:i,ampmInClock:r.ampmInClock},r.slotProps?.toolbar)})})}const CWe=c.forwardRef((function(e,t){const n=qCe(),r=PCe(),i=EWe(e,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:o,views:a,timeSteps:s}=YIe(i),l=o?sWe:lWe,u=wEe({hours:l,minutes:l,seconds:l,meridiem:l},i.viewRenderers),c=i.ampmInClock??!0,d=o?[]:["accept"],f=u.hours?.name===lWe.name?a:a.filter((e=>"meridiem"!==e)),h=wEe({},i,{ampmInClock:c,timeSteps:s,viewRenderers:u,format:ZEe(r,i),views:o?["hours"]:f,slots:wEe({field:vWe,openPickerIcon:bQe},i.slots),slotProps:wEe({},i.slotProps,{field:e=>wEe({},jq(i.slotProps?.field,e),nTe(i),{ref:t}),toolbar:wEe({hidden:!0,ampmInClock:c},i.slotProps?.toolbar),actionBar:wEe({actions:d},i.slotProps?.actionBar)})}),{renderPicker:p}=mQe({props:h,valueManager:vCe,valueType:"time",getOpenDialogAriaText:kCe({utils:r,formatKey:"fullTime",contextTranslation:n.openTimePickerDialogue,propsTranslation:h.localeText?.openTimePickerDialogue}),validator:XMe});return p()}));CWe.propTypes={ampm:Hye().bool,ampmInClock:Hye().bool,autoFocus:Hye().bool,className:Hye().string,closeOnSelect:Hye().bool,defaultValue:Hye().object,disabled:Hye().bool,disableFuture:Hye().bool,disableIgnoringDatePartForTimeValidation:Hye().bool,disableOpenPicker:Hye().bool,disablePast:Hye().bool,enableAccessibleFieldDOMStructure:Hye().any,format:Hye().string,formatDensity:Hye().oneOf(["dense","spacious"]),inputRef:CEe,label:Hye().node,localeText:Hye().object,maxTime:Hye().object,minTime:Hye().object,minutesStep:Hye().number,name:Hye().string,onAccept:Hye().func,onChange:Hye().func,onClose:Hye().func,onError:Hye().func,onOpen:Hye().func,onSelectedSectionsChange:Hye().func,onViewChange:Hye().func,open:Hye().bool,openTo:Hye().oneOf(["hours","meridiem","minutes","seconds"]),orientation:Hye().oneOf(["landscape","portrait"]),readOnly:Hye().bool,reduceAnimations:Hye().bool,referenceDate:Hye().object,selectedSections:Hye().oneOfType([Hye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Hye().number]),shouldDisableTime:Hye().func,skipDisabled:Hye().bool,slotProps:Hye().object,slots:Hye().object,sx:Hye().oneOfType([Hye().arrayOf(Hye().oneOfType([Hye().func,Hye().object,Hye().bool])),Hye().func,Hye().object]),thresholdToRenderTimeInASingleColumn:Hye().number,timeSteps:Hye().shape({hours:Hye().number,minutes:Hye().number,seconds:Hye().number}),timezone:Hye().string,value:Hye().object,view:Hye().oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Hye().shape({hours:Hye().func,meridiem:Hye().func,minutes:Hye().func,seconds:Hye().func}),views:Hye().arrayOf(Hye().oneOf(["hours","minutes","seconds"]).isRequired)};const TWe=c.forwardRef((function(e,t){const n=qCe(),r=PCe(),i=EWe(e,"MuiMobileTimePicker"),o=wEe({hours:aWe,minutes:aWe,seconds:aWe},i.viewRenderers),a=i.ampmInClock??!1,s=wEe({},i,{ampmInClock:a,viewRenderers:o,format:ZEe(r,i),slots:wEe({field:vWe},i.slots),slotProps:wEe({},i.slotProps,{field:e=>wEe({},jq(i.slotProps?.field,e),nTe(i),{ref:t}),toolbar:wEe({hidden:!1,ampmInClock:a},i.slotProps?.toolbar)})}),{renderPicker:l}=jMe({props:s,valueManager:vCe,valueType:"time",getOpenDialogAriaText:kCe({utils:r,formatKey:"fullTime",contextTranslation:n.openTimePickerDialogue,propsTranslation:s.localeText?.openTimePickerDialogue}),validator:XMe});return l()}));TWe.propTypes={ampm:Hye().bool,ampmInClock:Hye().bool,autoFocus:Hye().bool,className:Hye().string,closeOnSelect:Hye().bool,defaultValue:Hye().object,disabled:Hye().bool,disableFuture:Hye().bool,disableIgnoringDatePartForTimeValidation:Hye().bool,disableOpenPicker:Hye().bool,disablePast:Hye().bool,enableAccessibleFieldDOMStructure:Hye().any,format:Hye().string,formatDensity:Hye().oneOf(["dense","spacious"]),inputRef:CEe,label:Hye().node,localeText:Hye().object,maxTime:Hye().object,minTime:Hye().object,minutesStep:Hye().number,name:Hye().string,onAccept:Hye().func,onChange:Hye().func,onClose:Hye().func,onError:Hye().func,onOpen:Hye().func,onSelectedSectionsChange:Hye().func,onViewChange:Hye().func,open:Hye().bool,openTo:Hye().oneOf(["hours","minutes","seconds"]),orientation:Hye().oneOf(["landscape","portrait"]),readOnly:Hye().bool,reduceAnimations:Hye().bool,referenceDate:Hye().object,selectedSections:Hye().oneOfType([Hye().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Hye().number]),shouldDisableTime:Hye().func,slotProps:Hye().object,slots:Hye().object,sx:Hye().oneOfType([Hye().arrayOf(Hye().oneOfType([Hye().func,Hye().object,Hye().bool])),Hye().func,Hye().object]),timezone:Hye().string,value:Hye().object,view:Hye().oneOf(["hours","minutes","seconds"]),viewRenderers:Hye().shape({hours:Hye().func,minutes:Hye().func,seconds:Hye().func}),views:Hye().arrayOf(Hye().oneOf(["hours","minutes","seconds"]).isRequired)};const $We=["desktopModeMediaQuery"],QWe=c.forwardRef((function(e,t){const n=EEe({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=FTe}=n,i=PEe(n,$We);return z2(r,{defaultMatches:!0})?(0,lM.jsx)(CWe,wEe({ref:t},i)):(0,lM.jsx)(TWe,wEe({ref:t},i))}));const RWe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},AWe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jWe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,DWe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function MWe(e){return e?parseInt(e):1}function IWe(e){return e&&parseFloat(e.replace(",","."))||0}const zWe=[31,null,31,30,31,30,31,31,30,31,30,31];function WWe(e){return e%400==0||e%4==0&&e%100!=0}const NWe=UD("WidgetDateTime_NowButton",["root","button"]),LWe=({disabled:e,field:t,handleChange:n})=>{var r;const i=LD(),o=(0,c.useCallback)((e=>{e.stopPropagation(),n(new Date)}),[n]);return c.createElement("div",{key:"now-button-wrapper",className:NWe.root},c.createElement(GD,{key:"now-button","data-testid":"datetime-now",onClick:o,disabled:e,color:"secondary",variant:"outlined",className:NWe.button,"aria-label":`set ${null!==(r=t.label)&&void 0!==r?r:t.name} to now`},i("editor.editorWidgets.datetime.now")))};function FWe(e){return hEe(e.getTime(),XWe(e))}function UWe(e){return hEe(e.getTime(),-1*XWe(e))}function XWe(e){return e.getTimezoneOffset()}const qWe=UD("WidgetDateTime",["root","error","required","disabled","for-single-list","wrapper","inputs","input-wrapper","input"]),BWe=({field:e,label:t,value:r,disabled:i,duplicate:o,errors:a,hasErrors:s,forSingleList:l,config:{locale:u},onChange:d})=>{const f=(0,c.useRef)(null),[h,p]=(0,c.useState)(!1),m=(0,c.useCallback)((()=>{p(!0)}),[]),g=(0,c.useCallback)((()=>{p(!1)}),[]),{storageFormat:v,dateFormat:O,timeFormat:y,displayFormat:b}=QO(e),w=(0,c.useMemo)((()=>{const t=e.picker_utc?FWe(new Date):new Date;return void 0===e.default?Ta(t,v||CO):e.default}),[e.default,e.picker_utc,v]),[k,x]=(0,c.useState)(r),_=(0,c.useMemo)((()=>o?r:k),[k,o,r]),S=(0,c.useMemo)((()=>{let e=_;if(e||(e=w),"string"!=typeof e)return e;if(v){const t=ls(e,v,new Date);if(!isNaN(t.getTime()))return t}return function(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(RWe.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],RWe.timeZoneDelimiter.test(t.date)&&(t.date=e.split(RWe.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const e=RWe.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let i;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);i=function(e,t){if(null===t)return new Date(NaN);const n=e.match(AWe);if(!n)return new Date(NaN);const r=!!n[4],i=MWe(n[1]),o=MWe(n[2])-1,a=MWe(n[3]),s=MWe(n[4]),l=MWe(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(t,s,l):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(zWe[t]||(WWe(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(WWe(e)?366:365)}(t,i)?(e.setUTCFullYear(t,o,Math.max(i,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a,s=0;if(r.time&&(s=function(e){const t=e.match(jWe);if(!t)return NaN;const n=IWe(t[1]),r=IWe(t[2]),i=IWe(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*Zo+r*Yo+1e3*i:NaN}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(o+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(DWe);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*Zo+i*Yo):NaN}(r.timezone),isNaN(a)?new Date(NaN):new Date(o+s+a)}(e)}),[w,v,_]),P=(0,c.useCallback)((t=>{if(null===t||isNaN(t.getTime()))return x(w),void d(w);const n=Ta(e.picker_utc?FWe(t):t,v);x(n),d(n)}),[w,e.picker_utc,v,d]),E=GN(f,(0,c.useRef)()),C=(0,c.useMemo)((()=>O&&!y?c.createElement(IMe,{key:"date-picker",format:b,value:S,disabled:i,onChange:P,onOpen:m,onClose:g,className:qWe["input-wrapper"],inputRef:E,slotProps:{textField:{inputProps:{"data-testid":"date-input",className:qWe.input}}}}):!O&&y?c.createElement(QWe,{key:"time-picker",format:b,value:S,disabled:i,onChange:P,onOpen:m,onClose:g,className:qWe["input-wrapper"],inputRef:E,slotProps:{textField:{inputProps:{"data-testid":"time-input",className:qWe.input}}}}):c.createElement(mWe,{key:"date-time-picker",format:b,value:S,disabled:i,onChange:P,onOpen:m,onClose:g,className:qWe["input-wrapper"],inputRef:E,slotProps:{textField:{inputProps:{"data-testid":"date-time-input",className:qWe.input}}}})),[O,y,b,S,i,P,m,g,E]),T=(0,c.useMemo)((()=>u?function(e){var t;return null!==(t=n[e])&&void 0!==t?t:Uo}(u):void 0),[u]);return c.createElement(Mfe,{inputRef:h?void 0:f,label:t,errors:a,hint:e.hint,forSingleList:l,cursor:"text",disabled:i,rootClassName:qD(qWe.root,i&&qWe.disabled,!1!==e.required&&qWe.required,s&&qWe.error,l&&qWe["for-single-list"]),wrapperClassName:qWe.wrapper},c.createElement("div",{className:qWe.inputs},c.createElement(wCe,{key:"localization-provider",dateAdapter:SEe,adapterLocale:T},C),c.createElement(LWe,{key:"date-now",field:e,handleChange:e=>P(e),disabled:i})))},VWe=UD("WidgetDateTimePreview",["root"]),YWe=({value:e})=>c.createElement("div",{className:VWe.root},e?e.toString():null),ZWe=(e,t)=>{var n,r;if(Ie(e))return e;const i=null===(n=t.date_format)||void 0===n||n,o=null===(r=t.time_format)||void 0===r||r;let a=t.format;var s;if(!1===o)a=null!==(s=t.format)&&void 0!==s?s:PO;else if(!1===i){var l;a=null!==(l=t.format)&&void 0!==l?l:EO}else{var u;a=null!==(u=t.format)&&void 0!==u?u:CO}return Ta(t.picker_utc?FWe(new Date):new Date,a)},GWe={properties:{default:{type:"string"},format:{type:"string"},date_format:{oneOf:[{type:"string"},{type:"boolean"}]},time_format:{oneOf:[{type:"string"},{type:"boolean"}]},picker_utc:{type:"boolean"}}},HWe=()=>({name:"datetime",controlComponent:BWe,previewComponent:YWe,options:{schema:GWe,getDefaultValue:ZWe}}),KWe=({value:e,collection:t,field:n,entry:r})=>{const i=Sz(e,t,n,r);return c.createElement("a",{href:i,rel:"noopener noreferrer",target:"_blank"},e)},JWe=({value:e,collection:t,field:n,entry:r})=>e?Array.isArray(e)?c.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}},e.map(((e,i)=>c.createElement(KWe,{key:`link-preview-${i}`,value:e,collection:t,field:n,entry:r})))):c.createElement(KWe,{key:e,value:e,collection:t,field:n,entry:r}):null,eNe=e=>c.createElement("div",null,e.value?c.createElement(JWe,e):null),tNe={properties:{allow_multiple:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},media_folder:{type:"string"},public_folder:{type:"string"},select_folder:{type:"boolean"},choose_url:{type:"boolean"},multiple:{type:"boolean"},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}}}};function nNe(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function rNe(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function iNe(e){return null!==e&&e>=0}const oNe=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=nNe(t,r,n),a=t[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},aNe={scaleX:1,scaleY:1},sNe=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const s=null!=(t=o[n])?t:r;if(!s)return null;if(i===n){const e=o[a];return e?{x:0,y:nn&&i<=a?{x:0,y:-s.height-l,...aNe}:i=a?{x:0,y:s.height+l,...aNe}:{x:0,y:0,...aNe}},lNe="Sortable",uNe=c.createContext({activeIndex:-1,containerId:lNe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oNe,disabled:{draggable:!1,droppable:!1}});function cNe(e){let{children:t,id:n,items:r,strategy:i=oNe,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:d}=h9(),f=m5(lNe,n),h=Boolean(null!==s.rect),p=(0,c.useMemo)((()=>r.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[r]),m=null!=a,g=a?p.indexOf(a.id):-1,v=u?p.indexOf(u.id):-1,O=(0,c.useRef)(p),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{y&&m&&d(p)}),[y,p,m,d]),(0,c.useEffect)((()=>{O.current=p}),[p]);const k=(0,c.useMemo)((()=>({activeIndex:g,containerId:f,disabled:w,disableTransforms:b,items:p,overIndex:v,useDragOverlay:h,sortedRects:rNe(p,l),strategy:i})),[g,f,w.draggable,w.droppable,b,p,v,l,h,i]);return c.createElement(uNe.Provider,{value:k},t)}const dNe=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return nNe(n,r,i).indexOf(t)},fNe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!(!u||!r||s!==o&&i===a||!n&&(a===i||t!==l))},hNe={duration:200,easing:"ease"},pNe="transform",mNe=w5.Transition.toString({property:pNe,duration:0,easing:"linear"}),gNe={roleDescription:"sortable"};function vNe(e){let{animateLayoutChanges:t=fNe,attributes:n,disabled:r,data:i,getNewIndex:o=dNe,id:a,strategy:s,resizeObserverConfig:l,transition:u=hNe}=e;const{items:d,containerId:f,activeIndex:h,disabled:p,disableTransforms:m,sortedRects:g,overIndex:v,useDragOverlay:O,strategy:y}=(0,c.useContext)(uNe),b=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,p),w=d.indexOf(a),k=(0,c.useMemo)((()=>({sortable:{containerId:f,index:w,items:d},...i})),[f,i,w,d]),x=(0,c.useMemo)((()=>d.slice(d.indexOf(a))),[d,a]),{rect:_,node:S,isOver:P,setNodeRef:E}=g9({id:a,data:k,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...l}}),{active:C,activatorEvent:T,activeNodeRect:$,attributes:Q,setNodeRef:R,listeners:A,isDragging:j,over:D,setActivatorNodeRef:M,transform:I}=f9({id:a,data:k,attributes:{...gNe,...n},disabled:b.draggable}),z=function(){for(var e=arguments.length,t=new Array(e),n=0;ne=>{t.forEach((t=>t(e)))}),t)}(E,R),W=Boolean(C),N=W&&!m&&iNe(h)&&iNe(v),L=!O&&j,F=L&&N?I:null,U=N?null!=F?F:(null!=s?s:y)({rects:g,activeNodeRect:$,activeIndex:h,overIndex:v,index:w}):null,X=iNe(h)&&iNe(v)?o({id:a,items:d,activeIndex:h,overIndex:v}):w,q=null==C?void 0:C.id,B=(0,c.useRef)({activeId:q,items:d,newIndex:X,containerId:f}),V=d!==B.current.items,Y=t({active:C,containerId:f,isDragging:j,isSorting:W,id:a,index:w,items:d,newIndex:B.current.newIndex,previousItems:B.current.items,previousContainerId:B.current.containerId,transition:u,wasDragging:null!=B.current.activeId}),Z=function(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=(0,c.useState)(null),s=(0,c.useRef)(n);return l5((()=>{if(!t&&n!==s.current&&r.current){const e=i.current;if(e){const t=H5(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==s.current&&(s.current=n)}),[t,n,r,i]),(0,c.useEffect)((()=>{o&&a(null)}),[o]),o}({disabled:!Y,index:w,node:S,rect:_});return(0,c.useEffect)((()=>{W&&B.current.newIndex!==X&&(B.current.newIndex=X),f!==B.current.containerId&&(B.current.containerId=f),d!==B.current.items&&(B.current.items=d)}),[W,X,f,d]),(0,c.useEffect)((()=>{if(q===B.current.activeId)return;if(q&&!B.current.activeId)return void(B.current.activeId=q);const e=setTimeout((()=>{B.current.activeId=q}),50);return()=>clearTimeout(e)}),[q]),{active:C,activeIndex:h,attributes:Q,data:k,rect:_,index:w,newIndex:X,items:d,isOver:P,isSorting:W,isDragging:j,listeners:A,node:S,overIndex:v,over:D,setNodeRef:z,setActivatorNodeRef:M,setDroppableNodeRef:E,setDraggableNodeRef:R,transform:null!=Z?Z:U,transition:Z||V&&B.current.newIndex===w?mNe:L&&!y5(T)||!u?void 0:W||Y?w5.Transition.toString({...u,property:pNe}):void 0}}function ONe(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const yNe=[O6.Down,O6.Right,O6.Up,O6.Left],bNe=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:a,scrollableAncestors:s}}=t;if(yNe.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];o.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const o=i.get(n.id);if(o)switch(e.code){case O6.Down:r.topo.top&&t.push(n);break;case O6.Left:r.left>o.left&&t.push(n);break;case O6.Right:r.left{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=N5(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=N5(r),a=i.reduce(((e,t,r)=>e+M5(n[r],t)),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(z5)})({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null});let u=L5(l,"id");if(u===(null==a?void 0:a.id)&&l.length>1&&(u=l[1].id),null!=u){const e=o.get(n.id),t=o.get(u),a=t?i.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&a&&e&&t){const n=J5(l).some(((e,t)=>s[t]!==e)),i=wNe(e,t),o=function(e,t){return!(!ONe(e)||!ONe(t))&&(!!wNe(e,t)&&e.data.current.sortable.index{const o=Sz(e,n,r,pz(JM));return c.createElement("a",{key:"link",href:o,"data-testid":null!=i?i:"link"},t)},xNe=UD("WidgetFileImage",["root","error","required","disabled","for-single-list","drag-over-active","for-image","multiple","wrapper","drop-area","for-image","image-grid","empty-content","content","actions"]);var _Ne=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("circle",{cx:12,cy:12,r:3.2}),c.createElement("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}))}));function SNe(){return SNe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=(0,c.useMemo)((()=>({id:e})),[e]),{attributes:s,listeners:l,setNodeRef:u,transform:d,transition:f}=vNe(a),h=(0,c.useMemo)((()=>({transform:w5.Transform.toString(d),transition:f})),[d,f]),p=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault()}),[]),m=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),null==o||o(e)}),[o]),g=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),null==i||i(e)}),[i]);return c.createElement("div",SNe({ref:u,style:h},s,l,{className:PNe.root,tabIndex:-1,title:t}),c.createElement("div",{onClick:p,"data-testid":`image-card-${t}`,className:PNe.card},c.createElement("div",{key:"handle","data-testid":`image-card-handle-${t}`,tabIndex:0,className:PNe.handle}),c.createElement("div",{className:PNe["controls-wrapper"]},c.createElement("div",{className:PNe.controls},o?c.createElement(FN,{icon:_Ne,key:"replace",variant:"text",onClick:m,rootClassName:PNe["replace-button"],"aria-label":"replace image"}):null,i?c.createElement(FN,{icon:p1,key:"remove",variant:"text",color:"error",onClick:g,rootClassName:PNe["remove-button"],"aria-label":"remove image"}):null)),c.createElement("div",{className:PNe.content},c.createElement(WK,{src:t,className:PNe.image,collection:n,field:r}))))};var CNe=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}))}));function TNe(){return TNe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=(0,c.useMemo)((()=>({id:e})),[e]),{attributes:o,listeners:a,setNodeRef:s,transform:l,transition:u}=vNe(i),d=(0,c.useMemo)((()=>({transform:w5.Transform.toString(l),transition:u})),[l,u]),f=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault()}),[]),h=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),null==r||r(e)}),[r]),p=(0,c.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),null==n||n(e)}),[n]),m=t.length<=100?t:`${t.slice(0,50)}…${t.slice(-49)}`;return c.createElement("div",TNe({ref:s,style:d},o,a,{className:$Ne.root,tabIndex:-1,title:t}),c.createElement("div",{onClick:f,"data-testid":`image-card-${t}`,className:$Ne.card},c.createElement("div",{className:$Ne.content},c.createElement("span",null,m),c.createElement("div",{className:$Ne.controls},r?c.createElement(FN,{icon:CNe,key:"replace",color:"secondary",variant:"text",onClick:h,rootClassName:$Ne["replace-button"],"aria-label":"replace link"}):null,n?c.createElement(FN,{icon:p1,key:"remove",variant:"text",color:"error",onClick:p,rootClassName:$Ne["remove-button"],"aria-label":"remove link"}):null))))};function RNe(e){return Array.isArray(e)}function ANe(e){return e?RNe(e)?e.map((e=>ES(e))):ES(e):e}const jNe=({forImage:e=!1}={})=>{const t=(0,c.memo)((({value:t,label:n,collection:r,field:i,errors:o,forSingleList:a,duplicate:s,onChange:l,hasErrors:u,disabled:d,t:f})=>{var h;const p=Wz(),m=(0,c.useMemo)((()=>{var e;return null!==(e=i.multiple)&&void 0!==e&&e}),[i.multiple]),g=(0,c.useMemo)((()=>m?[]:""),[m]),[{keys:v,internalRawValue:O},y]=(0,c.useState)((()=>{const e=null!=t?t:g;return{keys:Array.from({length:Array.isArray(e)?e.length:1},(()=>PA())),internalRawValue:e}})),b=(0,c.useMemo)((()=>s?null!=t?t:g:O),[s,t,g,O]),w=(0,c.useRef)(null),k=(0,c.useMemo)((()=>{var e;return null!==(e=i.select_folder)&&void 0!==e&&e}),[i.select_folder]),x=(0,c.useCallback)((({path:e},t)=>{if(e!==b){const n=[...null!=t?t:v];if(Array.isArray(e))for(;n.length{l(e)}))}}),[b,v,l]),_=$z({path:b},{collection:r,field:i,controlID:p,forImage:e,forFolder:k,insertOptions:{chooseUrl:i.choose_url}},x),S=pz(dC),P=(0,c.useCallback)(((e,t)=>{var n;const r=m?[...Array.isArray(b)?b:[b],...t.filter((e=>e)).map((e=>e.path))]:null===(n=t[0])||void 0===n?void 0:n.path;Array.isArray(r)&&0===r.length||!r||x({path:r})}),[m,x,b]),E=zz({mediaConfig:null!==(h=i.media_library)&&void 0!==h?h:null==S?void 0:S.media_library,field:i,callback:P}),{dragOverActive:C,handleDragEnter:T,handleDragLeave:$,handleDragOver:Q,handleDrop:R}=T0(E),A=(0,c.useMemo)((()=>{var e;return null!==(e=i.choose_url)&&void 0!==e&&e}),[i.choose_url]),j=(0,c.useCallback)((e=>t=>{var n;t.preventDefault();const r=null!==(n=window.prompt(f(`editor.editorWidgets.${e}.promptUrl`)))&&void 0!==n?n:"";""!==r&&x({path:m?[...Array.isArray(b)?b:[b],r]:r})}),[m,x,b,f]),D=(0,c.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),x({path:""})}),[x]),M=(0,c.useCallback)((e=>()=>{if(Array.isArray(b)){const t=[...b],n=[...v];t.splice(e,1),n.splice(e,1),x({path:t},n)}}),[x,b,v]),I=(0,c.useCallback)((e=>t=>{_(t,{replaceIndex:e})}),[_]),z=j5(A5(T9),A5($9,{coordinateGetter:bNe})),W=(0,c.useCallback)((({active:e,over:t})=>{if(Array.isArray(b)&&t&&e.id!==t.id){const n=v.indexOf(`${e.id}`),r=v.indexOf(`${t.id}`),i=nNe(v,n,r),o=nNe(b,n,r);x({path:o},i)}}),[x,b,v]),N=(0,c.useCallback)((e=>{if(!e)return null;const t=e.length<=50?e:`${e.slice(0,25)}…${e.slice(-24)}`;return c.createElement(kNe,{href:e,collection:r,field:i},t)}),[r,i]),L=(0,c.useMemo)((()=>e?b?RNe(b)?c.createElement(l9,{key:"multi-image-wrapper",sensors:z,collisionDetection:U5,onDragEnd:W},c.createElement(cNe,{items:v,strategy:oNe},c.createElement("div",{className:xNe["image-grid"]},b.map(((e,t)=>{const n=v[t];return c.createElement(ENe,{id:n,key:`image-${n}`,itemValue:e,collection:r,field:i,onRemove:M(t),onReplace:I(t)})}))))):c.createElement("div",{key:"single-image-wrapper"},c.createElement(WK,{key:"single-image",src:b,collection:r,field:i})):null:RNe(b)?c.createElement(l9,{key:"multi-image-wrapper",sensors:z,collisionDetection:U5,onDragEnd:W},c.createElement(cNe,{items:v,strategy:sNe},c.createElement("div",{key:"mulitple-file-links"},b.map(((e,t)=>{const n=v[t];return c.createElement(QNe,{id:n,key:`link-${n}`,itemValue:e,onRemove:M(t),onReplace:I(t)})}))))):c.createElement("div",{key:"single-file-links"},N(b))),[r,i,b,v,M,I,W,N,z]),F=(0,c.useMemo)((()=>{const t=e?"image":k?"folder":"file";return(Array.isArray(b)?0===b.length:We(b))?c.createElement("div",{key:"selection",className:xNe["empty-content"]},c.createElement("div",{key:"controls",className:xNe.actions},c.createElement(GD,{buttonRef:w,color:"secondary",variant:"outlined",key:"upload",onClick:_,"data-testid":"choose-upload",disabled:d},f(`editor.editorWidgets.${t}.choose${m?"Multiple":""}`)),A?c.createElement(GD,{color:"secondary",variant:"outlined",key:"choose-url",onClick:j(t),"data-testid":"choose-url",disabled:d},f(`editor.editorWidgets.${t}.chooseUrl`)):null)):c.createElement("div",{key:"selection",className:xNe.content},L,c.createElement("div",{key:"controls",className:xNe.actions},c.createElement(GD,{buttonRef:w,color:"secondary",variant:"outlined",key:"add-replace",onClick:_,"data-testid":"add-replace-upload",disabled:d},f(`editor.editorWidgets.${t}.${m?"addMore":"chooseDifferent"}`)),A?m?c.createElement(GD,{color:"secondary",variant:"outlined",key:"choose-url",onClick:j(t),"data-testid":"choose-url",disabled:d},f(`editor.editorWidgets.${t}.chooseUrl`)):c.createElement(GD,{color:"secondary",variant:"outlined",key:"replace-url",onClick:j(t),"data-testid":"replace-url",disabled:d},f(`editor.editorWidgets.${t}.replaceUrl`)):null,c.createElement(GD,{color:"error",variant:"outlined",key:"remove",onClick:D,"data-testid":"remove-upload",disabled:d},f(`editor.editorWidgets.${t}.remove${m?"All":""}`))))}),[k,b,m,L,_,d,f,A,j,D]);return(0,c.useMemo)((()=>c.createElement("div",{onDrop:R,onDragEnter:T,onDragLeave:$,onDragOver:Q,className:qD(xNe.root,d&&xNe.disabled,!1!==i.required&&xNe.required,u&&xNe.error,a&&xNe["for-single-list"],C&&xNe["drag-over-active"],e&&xNe["for-image"],RNe(t)&&xNe.multiple)},c.createElement("div",{className:xNe.wrapper},c.createElement(Mfe,{inputRef:m?void 0:w,label:n,errors:o,noPadding:!u,hint:i.hint,forSingleList:a,cursor:m?"default":"pointer",disabled:d},F),c.createElement("div",{className:xNe["drop-area"]},f("mediaLibrary.mediaLibraryModal."+(e?"dropImages":"dropFiles")))))),[R,T,$,Q,d,i.required,i.hint,u,a,C,t,m,n,o,F,f])}));return t.displayName="FileControl",t},DNe=jNe(),MNe=()=>({name:"file",controlComponent:DNe,previewComponent:eNe,options:{schema:tNe,getValidValue:ANe}}),INe=({value:e,collection:t,field:n,entry:r})=>{const i=Sz(e,t,n,r);return c.createElement("img",{src:i||"",role:"presentation"})},zNe=({value:e,collection:t,field:n,entry:r})=>e?Array.isArray(e)?c.createElement(c.Fragment,null,e.map(((e,i)=>c.createElement(INe,{key:`image-preview-${i}`,value:e,collection:t,field:n,entry:r})))):c.createElement(INe,{value:e,collection:t,field:n,entry:r}):null,WNe=e=>c.createElement("div",null,e.value?c.createElement(zNe,e):null),NNe={properties:{allow_multiple:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},media_folder:{type:"string"},public_folder:{type:"string"},choose_url:{type:"boolean"},multiple:{type:"boolean"},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}}}},LNe=jNe({forImage:!0}),FNe=function(){return{name:"image",controlComponent:LNe,previewComponent:WNe,options:{schema:NNe,getValidValue:ANe}}};function UNe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XNe(e){for(var t=1;t{const f=(0,c.useMemo)((()=>{var e;return o.label_singular?o.label_singular:null!==(e=o.label)&&void 0!==e?e:o.name}),[o.label,o.label_singular,o.name]),h=(0,c.useMemo)((()=>{var e;return null!==(e=o.key_label)&&void 0!==e?e:d("editor.editorWidgets.keyvalue.key")}),[o.key_label,d]),p=(0,c.useMemo)((()=>{var e;return null!==(e=o.value_label)&&void 0!==e?e:d("editor.editorWidgets.keyvalue.value")}),[o.value_label,d]),m=(0,c.useMemo)((()=>e||[{key:"",value:""}]),[e]),[g,v]=(0,c.useState)(m),O=(0,c.useMemo)((()=>l||s?m:g),[l,s,m,g]),y=(0,c.useRef)(null),b=y0(u,250),w=(0,c.useCallback)((e=>{v(e),b(e)}),[b]),k=(0,c.useCallback)(((e,t)=>n=>{const r=[...O];r[e]=XNe(XNe({},r[e]),{},{[t]:n.target.value}),w(r)}),[O,w]),x=(0,c.useCallback)((()=>{const e=[...O];e.push({key:"",value:""}),w(e)}),[O,w]),_=(0,c.useCallback)((e=>()=>{const t=[...O];t.splice(e,1),w(t)}),[O,w]),S=(0,c.useCallback)((e=>{e.stopPropagation()}),[]);return c.createElement(Mfe,{inputRef:y,label:t,errors:n,hint:o.hint,forSingleList:a,cursor:"text",disabled:i,rootClassName:qD(BNe.root,i&&BNe.disabled,!1!==o.required&&BNe.required,r&&BNe.error,a&&BNe["for-single-list"])},c.createElement("div",{className:BNe.header},c.createElement("div",{className:BNe["header-cell"]},h),c.createElement("div",{className:BNe["header-cell"]},p),c.createElement("div",{className:BNe["header-action-cell"]},c.createElement("div",{className:BNe["header-action-cell-content"]}))),O.map(((e,t)=>c.createElement("div",{key:`keyvalue-${t}`,className:BNe.row},c.createElement(Y0,{type:"text","data-testid":`key-${t}`,inputRef:0===t?y:void 0,value:e.key,disabled:i,onChange:k(t,"key"),onClick:S,variant:"contained"}),c.createElement(Y0,{type:"text","data-testid":`value-${t}`,value:e.value,disabled:i,onChange:k(t,"value"),onClick:S,variant:"contained"}),c.createElement(FN,{icon:yG,"data-testid":`remove-button-${t}`,size:"small",variant:"text",onClick:_(t),disabled:i,rootClassName:BNe["delete-button"],"aria-label":"delete"})))),c.createElement("div",{className:BNe.actions},c.createElement(GD,{color:"secondary",variant:"outlined",onClick:x,className:BNe["add-button"],"data-testid":"key-value-add",disabled:i},d("editor.editorWidgets.list.add",{item:f}))))},YNe=UD("WidgetKeyValuePreview",["root"]),ZNe=({value:e})=>c.createElement("ul",{className:YNe.root},(null!=e?e:[]).map(((e,t)=>{var n,r;return c.createElement("li",{key:`preview-keyvalue-${t}`},c.createElement("b",null,null!==(n=e.key)&&void 0!==n?n:"")," - ",null!==(r=e.value)&&void 0!==r?r:"")}))),GNe={deserialize:e=>e?Object.keys(e).map((t=>{var n;return{key:t,value:null!==(n=e[t])&&void 0!==n?n:""}})):[{key:"",value:""}],serialize:e=>null==e?void 0:e.reduce(((e,t)=>(e[t.key]=t.value,e)),{})},HNe=GNe,KNe={properties:{default:{type:"object"},label_singular:{type:"string"},key_label:{type:"string"},value_label:{type:"string"},max:{type:"number"},min:{type:"number"}}},JNe=({field:e,value:t,t:n})=>{var r,i;const o=e.min,a=e.max,s=null!==(r=e.key_label)&&void 0!==r?r:n("editor.editorWidgets.keyvalue.key"),l=null!==(i=e.value_label)&&void 0!==i?i:n("editor.editorWidgets.keyvalue.value");let u=!1;const c=null!=t?t:[];var d;0===c.length&&e.required&&(u={type:FE.PRESENCE,message:n("editor.editorControlPane.widget.required",{fieldLabel:null!==(d=e.label)&&void 0!==d?d:e.name})});const f=[];if(!u)for(const e of c){if(We(e.key)){u={type:FE.PRESENCE,message:n("editor.editorControlPane.widget.required",{fieldLabel:s})};break}if(f.includes(e.key)){u={type:FE.CUSTOM,message:n("editor.editorWidgets.keyvalue.uniqueKeys",{keyLabel:s})};break}if(f.push(e.key),We(e.value)){u={type:FE.PRESENCE,message:n("editor.editorControlPane.widget.required",{fieldLabel:l})};break}}var h;return u||(u=UE(n,null!==(h=e.label)&&void 0!==h?h:e.name,c,o,a)),u},eLe=()=>({name:"keyvalue",controlComponent:VNe,previewComponent:ZNe,options:{converters:HNe,validator:JNe,schema:KNe}}),tLe=UD("WidgetList",["root","disabled","error","required","for-single-list","open","summary","field-wrapper","field","expand-button","expand-button-icon","content","error-message","delimited","delimited-input","fields","actions","add-types-button","add-button","sortable-item","multi-field-item"]),nLe=({field:e,openLabel:t,closedLabel:n,children:r,errors:i,hasChildErrors:o,hint:a,forSingleList:s,disabled:l})=>{var u;const d=(0,c.useMemo)((()=>i.length>0),[i.length]),[f,h]=(0,c.useState)(null===(u=!e.collapsed)||void 0===u||u),p=(0,c.useCallback)((()=>{h((e=>!e))}),[]);return c.createElement("div",{"data-testid":`list-field-${null==t?void 0:t.trim()}`,className:qD(tLe.root,l&&tLe.disabled,!1!==e.required&&tLe.required,(d||o)&&tLe.error,s&&tLe["for-single-list"],f&&tLe.open)},c.createElement("div",{"data-testid":"field-wrapper",className:tLe["field-wrapper"]},c.createElement("button",{"data-testid":"list-expand-button",className:tLe["expand-button"],onClick:p},c.createElement(jfe,{key:"label",hasErrors:d||o,className:tLe.summary,cursor:"pointer",variant:"inline",disabled:l},f?t.trim():n.trim()),c.createElement(EY,{className:tLe["expand-button-icon"]})),c.createElement(Zfe,{in:f,appear:!1},c.createElement("div",{className:tLe.content},c.createElement("div",{"data-testid":"object-fields"},r))),a?c.createElement(Rfe,{key:"hint",hasErrors:d,cursor:"pointer",disabled:l},a):null,c.createElement(coe,{errors:i,className:tLe["error-message"]})))};function rLe(){return rLe=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("span",rLe({"data-testid":"drag-handle",className:iLe["drag-handle"]},t?{}:e),c.createElement(MN,{className:iLe["drag-handle-icon"]})),aLe=({label:e,summary:t,collapsed:n=!1,onRemove:r,listeners:i,hasErrors:o,children:a,isSingleField:s,disabled:l})=>{const[u,d]=(0,c.useState)(!n),f=(0,c.useCallback)((()=>{d((e=>!e))}),[]),h=(0,c.useMemo)((()=>c.createElement("div",{className:iLe.controls},r?c.createElement(FN,{icon:yG,"data-testid":"remove-button",size:"small",color:"secondary",variant:"text",onClick:r,disabled:l,rootClassName:iLe["remove-button"],iconClassName:iLe["button-icon"],"aria-label":"remove"}):null,i?c.createElement(oLe,{listeners:i,disabled:l}):null)),[l,i,r]);return s?c.createElement("div",{"data-testid":`list-item-field-${null==e?void 0:e.trim()}`,className:qD(iLe["single-field-root"],o&&iLe.error,l&&iLe.disabled)},c.createElement("div",{"data-testid":"list-item-objects",className:iLe.content},c.createElement("div",{className:iLe["content-fields"]},a),c.createElement("div",{className:iLe["single-field-controls"]},h))):c.createElement("div",{"data-testid":`list-item-field-${null==e?void 0:e.trim()}`,className:qD(iLe.root,o&&iLe.error,l&&iLe.disabled,u&&iLe.open)},c.createElement("div",{className:iLe.header},c.createElement("button",{"data-testid":"list-item-expand-button",className:iLe["expand-button"],onClick:f,"aria-label":u?"collapse":"expand"},c.createElement(EY,{className:iLe["expand-button-icon"]}),c.createElement("div",{className:iLe.summary},c.createElement(jfe,{key:"label",hasErrors:o,className:iLe["summary-label"],cursor:"pointer",variant:"inline","data-testid":"item-label",disabled:l},e.trim()),u?null:c.createElement("span",{"data-testid":"item-summary"},t))),h),u?null:c.createElement("div",{className:iLe["not-open-placeholder"]}),c.createElement(Zfe,{in:u,appear:!1},c.createElement("div",{className:iLe.content},c.createElement("div",{className:iLe["content-fields"]},a))))};function sLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lLe(e){for(var t=1;t{var g,v,O;const y=LD(),[b,w]=(0,c.useMemo)((()=>{var e;const i={name:`${t}`,label:r.label,summary:r.summary,widget:"object",fields:[]},o=null!==(e=r.label)&&void 0!==e?e:r.name;if(null===d)return[o,i];const a=null!=f?f:{};switch(d){case vLe.MIXED:{var s;if(!dLe(r,a))return[o,i];const e=a,[l,u]=VK(r,e,t);if(!u)return[o,i];const c=null!==(s=u.label)&&void 0!==s?s:l,d="summary"in u&&u.summary?u.summary:r.summary,f=d?`${c} - ${cLe(d,n,c,e,u.fields,y)}`:c;return[null!=f?f:y("editor.editorWidgets.list.noValue"),u]}case vLe.MULTIPLE:{var l;if(i.fields=null!==(l=r.fields)&&void 0!==l?l:[],!dLe(r,a))return[o,i];const e=r.fields,t=e&&e[0];if(!t)return[o,i];const s="object"!=typeof a||a instanceof Date||Array.isArray(a)?a:a[t.name],u=r.summary,c=u?cLe(u,n,String(s),a,e,y):s?String(s):void 0;return[null!=c?c:y("editor.editorWidgets.list.noValue"),i]}}}),[n,r,t,y,f,d]),k=wz(u,i,h,!1),x=(0,c.useMemo)((()=>r.fields&&1===r.fields.length?{[r.fields[0].name]:f}:f),[r.fields,f]),_=(0,c.useMemo)((()=>{var e;return 1===(null===(e=r.fields)||void 0===e?void 0:e.length)}),[null===(g=r.fields)||void 0===g?void 0:g.length]);return c.createElement("div",{key:"sortable-list-item"},c.createElement(aLe,{key:"list-item-top-bar",collapsed:r.collapsed,onRemove:gee()(m,t),"data-testid":`list-item-top-bar-${e}`,label:null!==(v=null!==(O=r.label_singular)&&void 0!==O?O:r.label)&&void 0!==v?v:r.name,summary:b,listeners:p,hasErrors:k,isSingleField:_,disabled:a},c.createElement(l3,{key:`control-${e}`,field:w,value:x,fieldsErrors:i,submitted:o,parentPath:u,disabled:a||s,parentDuplicate:s,locale:l,i18n:h,forList:!0,listItemPath:`${u}.${w.name}`,forSingleList:_})))},hLe=({field:e,label:t,disabled:n,duplicate:r,value:i,errors:o,hasErrors:a,forSingleList:s,controlled:l,onChange:u})=>{const d=(0,c.useMemo)((()=>{var t;return null!==(t=e.delimiter)&&void 0!==t?t:","}),[e.delimiter]),f=(0,c.useMemo)((()=>(null!=i?i:[]).join(d)),[d,i]),[h,p]=(0,c.useState)(f),m=(0,c.useMemo)((()=>l||r?f:h),[l,r,f,h]),g=kz(m,250),v=(0,c.useRef)(null),O=(0,c.useCallback)((e=>{const t=e.target.value;p(t)}),[]);return(0,c.useEffect)((()=>{if(f===g)return;const e=g.split(d).map((e=>e.trim()));u(e)}),[g,d,u,f]),c.createElement(Mfe,{inputRef:v,label:t,errors:o,hint:e.hint,forSingleList:s,cursor:"text",disabled:n,rootClassName:qD(tLe.root,tLe.delimited,n&&tLe.disabled,!1!==e.required&&tLe.required,a&&tLe.error,s&&tLe["for-single-list"])},c.createElement(Y0,{type:"text",inputRef:v,value:m,disabled:n,onChange:O,inputClassName:tLe["delimited-input"]}))};function pLe(){return pLe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var m;const{attributes:g,listeners:v,setNodeRef:O,transform:y,transition:b}=vNe({id:e}),w={transform:w5.Translate.toString(y),transition:b};return null===r?c.createElement("div",{key:e}):c.createElement("div",pLe({ref:O,"data-testid":`object-control-${n}`,style:w},u?{}:g,{className:qD(tLe["sortable-item"],1!==(null===(m=a.fields)||void 0===m?void 0:m.length)&&tLe["multi-field-item"])}),c.createElement(fLe,{index:n,id:e,key:`sortable-item-${e}`,valueType:r,handleRemove:i,"data-testid":`object-control-${n}`,entry:o,field:a,fieldsErrors:s,submitted:l,disabled:u,duplicate:d,locale:f,path:h,value:t,i18n:p,listeners:v}))};let vLe=function(e){return e[e.MULTIPLE=0]="MULTIPLE",e[e.MIXED=1]="MIXED",e[e.DELIMITED=2]="DELIMITED",e}({});function OLe(e,t={}){if(1===e.length){if("default"in e[0]&&e[0].default)return e[0].default;switch(e[0].widget){case"string":case"text":return"";case"boolean":return!1;case"number":return 0}return null}return e.reduce(((e,t)=>{const n="fields"in t&&t.fields,r=t.name,i="default"in t&&t.default?t.default:null;if(Array.isArray(n)){const t=OLe(n);return C0()(t)||(e[r]=t),e}if("object"==typeof n){const t=OLe([n]);return!C0()(t)&&(e[r]=t),e}return null!==i&&(e[r]=i),e}),t)}const yLe=e=>{var t,n;const{entry:r,field:i,fieldsErrors:o,submitted:a,disabled:s,duplicate:l,locale:u,path:d,value:f,i18n:h,errors:p,forSingleList:m,onChange:g,clearChildValidation:v,t:O}=e,y=(0,c.useMemo)((()=>null!=f?f:[]),[f]),[b,w]=(0,c.useState)(Array.from({length:y.length},(()=>PA()))),k=(0,c.useMemo)((()=>"fields"in i?vLe.MULTIPLE:"types"in i?vLe.MIXED:vLe.DELIMITED),[i]),x=(0,c.useCallback)((e=>OLe(e)),[]),_=(0,c.useCallback)(((e,t)=>{var n,r;const o="types"in i&&(null===(n=i.types)||void 0===n?void 0:n.find((e=>e.name===t)));return o?OLe(null!==(r=o.fields)&&void 0!==r?r:[],{[e]:t}):{}}),[i]),S=(0,c.useCallback)((e=>{var t;const n=null!==(t=i.add_to_top)&&void 0!==t&&t,r=[...b],o=[...y];n?(r.unshift(PA()),o.unshift(e)):(r.push(PA()),o.push(e)),w(r),g(o)}),[i.add_to_top,g,y,b]),P=(0,c.useCallback)((e=>{var t;e.preventDefault();const n=x(null!==(t=i.fields)&&void 0!==t?t:[]);S(n)}),[S,i,x]),E=(0,c.useCallback)(((e,t)=>{const n=_(t,e);S(n)}),[S,_]),C=(0,c.useCallback)(((e,t)=>{t.preventDefault();const n=[...b],r=[...y];n.splice(e,1),r.splice(e,1),v(),w(n),g(r)}),[b,y,v,g]),T=(0,c.useCallback)((({active:e,over:t})=>{if(!t||e.id===t.id)return;const n=b.indexOf(e.id),r=b.indexOf(t.id);w(mLe(b,n,r)),g(mLe(y,n,r))}),[g,y,b]),$=wz(d,o,h,!1),Q=null!==(t=i.label)&&void 0!==t?t:i.name,R=i.label_singular?i.label_singular:null!==(n=i.label)&&void 0!==n?n:i.name,A=1===y.length?R:Q,j=i[XK];return k===vLe.DELIMITED?c.createElement(hLe,e):c.createElement(nLe,{key:"list-control-wrapper",field:i,openLabel:Q,closedLabel:A,errors:p,hasChildErrors:$,hint:i.hint,forSingleList:m,disabled:s},y.length>0?c.createElement(l9,{key:"dnd-context",id:"dnd-context",onDragEnd:T},c.createElement(cNe,{items:b},c.createElement("div",{"data-testid":"list-widget-children",className:tLe.fields},y.map(((e,t)=>{const n=b[t];return n?c.createElement(gLe,{index:t,key:n,id:n,item:e,valueType:k,handleRemove:C,entry:r,field:i,fieldsErrors:o,submitted:a,disabled:s,duplicate:l,locale:u,path:d,value:e,i18n:h}):null}))))):null,!1!==i.allow_add?c.createElement("div",{className:tLe.actions},j&&j.length?c.createElement(NZ,{label:O("editor.editorWidgets.list.addType",{item:Q}),color:"secondary",variant:"outlined",buttonClassName:tLe["add-types-button"],"data-testid":"list-type-add",disabled:s,"aria-label":"add type options dropdown"},c.createElement(FZ,null,j.map(((e,t)=>{var n;return e?c.createElement(OG,{key:t,onClick:()=>E(e.name,ZK(i)),"data-testid":`list-type-add-item-${e.name}`},null!==(n=e.label)&&void 0!==n?n:e.name):null})))):c.createElement(GD,{color:"secondary",variant:"outlined",onClick:P,className:tLe["add-button"],"data-testid":"list-add",disabled:s},O("editor.editorWidgets.list.add",{item:R}))):null)},bLe=UD("WidgetListPreview",["root"]);function wLe(e){return ze(e)?null:Array.isArray(e)?c.createElement("ul",{style:{marginTop:0}},e.map(((e,t)=>c.createElement("li",{key:t},wLe(e))))):"object"==typeof e?e instanceof Date?e.toISOString():Object.keys(e).map(((t,n)=>c.createElement("div",{key:n},c.createElement("strong",null,t,":")," ",wLe(e[t])))):e}const kLe=({field:e,value:t})=>{var n;return Array.isArray(t)?c.createElement("div",{style:{marginTop:"12px"},className:bLe.root},c.createElement("label",null,c.createElement("strong",null,null!==(n=e.label)&&void 0!==n?n:e.name,":")),e.fields&&1===e.fields.length&&!["object","list"].includes(e.fields[0].widget)||!e.fields&&!e.types?c.createElement("ul",{style:{marginTop:0}},null==t?void 0:t.map(((e,t)=>c.createElement("li",{key:t},String(e))))):wLe(t)):null},xLe={properties:{default:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"},{type:"object"},{type:"array",minItems:1,items:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"},{type:"object"}]}}]},allow_add:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},label_singular:{type:"string"},fields:{type:"array",items:{type:"object"}},max:{type:"number"},min:{type:"number"},i18n:{type:"boolean"},add_to_top:{type:"boolean"},types:{type:"array",items:{type:"object"}},type_key:{type:"string"}}},_Le=()=>({name:"list",controlComponent:yLe,previewComponent:kLe,options:{schema:xLe}}),SLe=UD("WidgetMapPreview",["root"]),PLe=({value:e})=>c.createElement("div",{className:SLe.root},e),ELe={properties:{decimals:{type:"integer"},type:{type:"string",enum:["Point","LineString","Polygon"]}}},CLe=class{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},TLe="propertychange",$Le=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function QLe(e,t){return e>t?1:e0){for(i=1;i0?i-1:i:e[i-1]-t0)}removeEventListener(e,t){const n=this.listeners_&&this.listeners_[e];if(n){const r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=zLe,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}}},FLe={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function ULe(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){const r=n;n=function(){e.removeEventListener(t,n),r.apply(this,arguments)}}const o={target:e,type:t,listener:n};return e.addEventListener(t,n),o}function XLe(e,t,n,r){return ULe(e,t,n,r,!0)}function qLe(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),WLe(e))}class BLe extends LLe{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(FLe.CHANGE)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){const n=e.length,r=new Array(n);for(let i=0;ii&&(l|=OFe.RIGHT),so&&(l|=OFe.ABOVE),l===OFe.UNKNOWN&&(l=OFe.INTERSECTING),l}function EFe(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function CFe(e){return EFe(1/0,1/0,-1/0,-1/0,e)}function TFe(e,t,n,r,i){return AFe(CFe(i),e,t,n,r)}function $Fe(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function QFe(e,t){return t[0]e[2]&&(e[2]=t[2]),t[1]e[3]&&(e[3]=t[3]),e}function RFe(e,t){t[0]e[2]&&(e[2]=t[0]),t[1]e[3]&&(e[3]=t[1])}function AFe(e,t,n,r,i){for(;nt[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function ZFe(e){return e[2]=n[2])){const t=VFe(n),i=Math.floor((r[0]-n[0])/t)*t;e[0]-=i,e[2]-=i}return e}const HFe={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},KFe=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||HFe[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}},JFe=6378137,eUe=Math.PI*JFe,tUe=[-eUe,-eUe,eUe,eUe],nUe=[-180,-85,180,85],rUe=JFe*Math.log(Math.tan(Math.PI/2));class iUe extends KFe{constructor(e){super({code:e,units:"m",extent:tUe,global:!0,worldExtent:nUe,getPointResolution:function(e,t){return e/Math.cosh(t[1]/JFe)}})}}const oUe=[new iUe("EPSG:3857"),new iUe("EPSG:102100"),new iUe("EPSG:102113"),new iUe("EPSG:900913"),new iUe("http://www.opengis.net/def/crs/EPSG/0/3857"),new iUe("http://www.opengis.net/gml/srs/epsg.xml#3857")];const aUe=[-180,-90,180,90],sUe=6378137*Math.PI/180;class lUe extends KFe{constructor(e,t){super({code:e,units:"degrees",extent:aUe,axisOrientation:t,global:!0,metersPerUnit:sUe,worldExtent:aUe})}}const uUe=[new lUe("CRS:84"),new lUe("EPSG:4326","neu"),new lUe("urn:ogc:def:crs:OGC:1.3:CRS84"),new lUe("urn:ogc:def:crs:OGC:2:84"),new lUe("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new lUe("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new lUe("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let cUe={},dUe={};function fUe(e,t,n){const r=e.getCode(),i=t.getCode();r in dUe||(dUe[r]={}),dUe[r][i]=n}function hUe(e,t){let n=!0;for(let r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function pUe(e,t){const n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function mUe(e,t){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function gUe(e,t){return Math.sqrt(mUe(e,t))}function vUe(e,t){if(t.canWrapX()){const n=VFe(t.getExtent()),r=function(e,t,n){const r=t.getExtent();let i=0;return t.canWrapX()&&(e[0]r[2])&&(n=n||VFe(r),i=Math.floor((e[0]-r[0])/n)),i}(e,t,n);r&&(e[0]-=r*n)}return e}function OUe(e,t,n){return Math.min(Math.max(e,t),n)}function yUe(e,t,n,r,i,o){const a=i-n,s=o-r;if(0!==a||0!==s){const l=((e-n)*a+(t-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return bUe(e,t,n,r)}function bUe(e,t,n,r){const i=n-e,o=r-t;return i*i+o*o}function wUe(e){return e*Math.PI/180}function kUe(e,t){const n=e%t;return n*t<0?n+t:n}function xUe(e,t,n){return e+n*(t-e)}function _Ue(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function SUe(e,t){return Math.floor(_Ue(e,t))}function PUe(e,t){return Math.ceil(_Ue(e,t))}const EUe=6371008.8;function CUe(e,t,n){n=n||EUe;const r=wUe(e[1]),i=wUe(t[1]),o=(i-r)/2,a=wUe(t[0]-e[0])/2,s=Math.sin(o)*Math.sin(o)+Math.sin(a)*Math.sin(a)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}const TUe={info:1,warn:2,error:3,none:4};let $Ue=TUe.info;function QUe(...e){$Ue>TUe.warn||console.warn(...e)}let RUe=!0;function AUe(e,t){if(void 0!==t)for(let n=0,r=e.length;n=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(RUe=!1,QUe("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e}function YUe(e,t){return e}function ZUe(e,t){return e}function GUe(e,t){return e}function HUe(e,t,n,r,i,o){o=o||[];let a=0;for(let s=t;s1?n:2,void 0===t&&(t=n>2?e.slice():new Array(r));for(let i=0;irUe?n=rUe:n<-rUe&&(n=-rUe),t[i+1]=n}return t},nXe=function(e,t,n){const r=e.length;n=n>1?n:2,void 0===t&&(t=n>2?e.slice():new Array(r));for(let i=0;i1)d=n;else{if(f>0){for(let i=0;ii&&(i=s),o=n,a=r}return i}function gXe(e,t,n,r,i){for(let o=0,a=n.length;o0;){const n=u.pop(),o=u.pop();let a=0;const s=e[o],d=e[o+1],f=e[n],h=e[n+1];for(let t=o+r;ta&&(c=t,a=n)}a>i&&(l[(c-t)/r]=1,o+r0&&p>f)&&(h<0&&m0&&m>h)?(s=n,l=d):(o[a++]=s,o[a++]=l,u=s,c=l,s=n,l=d)}return o[a++]=s,o[a++]=l,a}function SXe(e,t,n,r,i,o,a,s){for(let l=0,u=n.length;l>1),i=+n(e[r],t),i<0?o=r+1:(a=r,s=!i);return s?o:~o}(c,d);f<0?(l=(d-c[-f-2])/(c[-f-1]-c[-f-2]),s=t+(-f-2)*r):s=t+f*r}a=a>1?a:2,o=o||new Array(a);for(let t=0;t>1;io&&(n-s)*(o-l)-(i-s)*(r-l)>0&&a++:r<=o&&(n-s)*(o-l)-(i-s)*(r-l)<0&&a--,s=n,l=r}return 0!==a}function jXe(e,t,n,r,i,o){if(0===n.length)return!1;if(!AXe(e,t,n[0],r,i,o))return!1;for(let t=1,a=n.length;t=i[0]&&o[2]<=i[2]||o[1]>=i[1]&&o[3]<=i[3]||PXe(e,t,n,r,(function(e,t){return function(e,t,n){let r=!1;const i=PFe(e,t),o=PFe(e,n);if(i===OFe.INTERSECTING||o===OFe.INTERSECTING)r=!0;else{const a=e[0],s=e[1],l=e[2],u=e[3],c=t[0],d=t[1],f=n[0],h=n[1],p=(h-d)/(f-c);let m,g;o&OFe.ABOVE&&!(i&OFe.ABOVE)&&(m=f-(h-u)/p,r=m>=a&&m<=l),r||!(o&OFe.RIGHT)||i&OFe.RIGHT||(g=h-(f-l)*p,r=g>=s&&g<=u),r||!(o&OFe.BELOW)||i&OFe.BELOW||(m=f-(h-s)/p,r=m>=a&&m<=l),r||!(o&OFe.LEFT)||i&OFe.LEFT||(g=h-(f-a)*p,r=g>=s&&g<=u)}return r}(i,e,t)})))}function MXe(e,t,n,r,i){return!!(DXe(e,t,n,r,i)||AXe(e,t,n,r,i[0],i[1])||AXe(e,t,n,r,i[0],i[3])||AXe(e,t,n,r,i[2],i[1])||AXe(e,t,n,r,i[2],i[3]))}function IXe(e,t,n,r,i){if(!MXe(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(let t=1,o=n.length;tv&&(u=(c+d)/2,jXe(e,t,n,r,u,p)&&(g=u,v=i)),c=d}return isNaN(g)&&(g=i[o]),a?(a.push(g,p,v),a):[g,p,v]}function KXe(e,t,n,r){for(;t0}function eqe(e,t,n,r,i){i=void 0!==i&&i;for(let o=0,a=n.length;o=t[0]||e[1]<=t[1]&&e[3]>=t[1]||DFe(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(let n=1;n0}}else if(e.type==gqe.POINTERDOWN){const n=this.handleDownEvent(e);this.handlingDownUpSequence=n,t=this.stopDown(n)}else e.type==gqe.POINTERMOVE&&this.handleMoveEvent(e);return!t}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}},Sqe="opacity",Pqe="visible",Eqe="extent",Cqe="zIndex",Tqe="maxResolution",$qe="minResolution",Qqe="maxZoom",Rqe="minZoom",Aqe="source",jqe=class extends KLe{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const t=Object.assign({},e);"object"==typeof e.properties&&(delete t.properties,Object.assign(t,e.properties)),t[Sqe]=void 0!==e.opacity?e.opacity:1,nFe("number"==typeof t[Sqe],64),t[Pqe]=void 0===e.visible||e.visible,t[Cqe]=e.zIndex,t[Tqe]=void 0!==e.maxResolution?e.maxResolution:1/0,t[$qe]=void 0!==e.minResolution?e.minResolution:0,t[Rqe]=void 0!==e.minZoom?e.minZoom:-1/0,t[Qqe]=void 0!==e.maxZoom?e.maxZoom:1/0,this.className_=void 0!==t.className?t.className:"ol-layer",delete t.className,this.setProperties(t),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=OUe(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t}getLayersArray(e){return YLe()}getLayerStatesArray(e){return YLe()}getExtent(){return this.get(Eqe)}getMaxResolution(){return this.get(Tqe)}getMinResolution(){return this.get($qe)}getMinZoom(){return this.get(Rqe)}getMaxZoom(){return this.get(Qqe)}getOpacity(){return this.get(Sqe)}getSourceState(){return YLe()}getVisible(){return this.get(Pqe)}getZIndex(){return this.get(Cqe)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(Eqe,e)}setMaxResolution(e){this.set(Tqe,e)}setMinResolution(e){this.set($qe,e)}setMaxZoom(e){this.set(Qqe,e)}setMinZoom(e){this.set(Rqe,e)}setOpacity(e){nFe("number"==typeof e,64),this.set(Sqe,e)}setVisible(e){this.set(Pqe,e)}setZIndex(e){this.set(Cqe,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}},Dqe="precompose",Mqe="rendercomplete",Iqe={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},zqe=42,Wqe=256;function Nqe(e,t,n){return function(r,i,o,a,s){if(!r)return;if(!i&&!t)return r;const l=t?0:o[0]*i,u=t?0:o[1]*i,c=s?s[0]:0,d=s?s[1]:0;let f=e[0]+l/2+c,h=e[2]-l/2+c,p=e[1]+u/2+d,m=e[3]-u/2+d;f>h&&(f=(h+f)/2,h=f),p>m&&(p=(m+p)/2,m=p);let g=OUe(r[0],f,h),v=OUe(r[1],p,m);if(a&&n&&i){const e=30*i;g+=-e*Math.log(1+Math.max(0,f-r[0])/e)+e*Math.log(1+Math.max(0,r[0]-h)/e),v+=-e*Math.log(1+Math.max(0,p-r[1])/e)+e*Math.log(1+Math.max(0,r[1]-m)/e)}return[g,v]}}function Lqe(e){return e}function Fqe(e,t,n,r){const i=VFe(t)/n[0],o=UFe(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function Uqe(e,t,n){let r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),OUe(r,n/2,2*t)}function Xqe(e,t,n,r,i){return n=void 0===n||n,function(o,a,s,l){if(void 0!==o){const a=r?Fqe(e,r,s,i):e;return n&&l?Uqe(o,a,t):OUe(o,t,a)}}}function qqe(e){if(void 0!==e)return 0}function Bqe(e){if(void 0!==e)return e}function Vqe(e,t){setTimeout((function(){e(t)}),0)}function Yqe(e){return!(e.sourceCenter&&e.targetCenter&&!hUe(e.sourceCenter,e.targetCenter))&&e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation}function Zqe(e,t,n,r,i){const o=Math.cos(-i);let a=Math.sin(-i),s=e[0]*o-e[1]*a,l=e[1]*o+e[0]*a;return s+=(t[0]/2-n[0])*r,l+=(n[1]-t[1]/2)*r,a=-a,[s*o-l*a,l*o+s*a]}const Gqe=class extends KLe{constructor(e){super(),this.on,this.once,this.un,e=Object.assign({},e),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=WUe(e.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,e.projection&&function(e){RUe=!(void 0===e||e)}(),e.center&&(e.center=VUe(e.center,this.projection_)),e.extent&&(e.extent=ZUe(e.extent,this.projection_)),this.applyOptions_(e)}applyOptions_(e){const t=Object.assign({},e);for(const e in Iqe)delete t[e];this.setProperties(t,!0);const n=function(e){let t,n,r;let i=void 0!==e.minZoom?e.minZoom:0,o=void 0!==e.maxZoom?e.maxZoom:28;const a=void 0!==e.zoomFactor?e.zoomFactor:2,s=void 0!==e.multiWorld&&e.multiWorld,l=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,u=void 0!==e.showFullExtent&&e.showFullExtent,c=WUe(e.projection,"EPSG:3857"),d=c.getExtent();let f=e.constrainOnlyCenter,h=e.extent;if(s||h||!c.isGlobal()||(f=!1,h=d),void 0!==e.resolutions){const a=e.resolutions;n=a[i],r=void 0!==a[o]?a[o]:a[a.length-1],t=e.constrainResolution?function(e,t,n,r){return t=void 0===t||t,function(i,o,a,s){if(void 0!==i){const l=e[0],u=e[e.length-1],c=n?Fqe(l,n,a,r):l;if(s)return t?Uqe(i,c,u):OUe(i,u,c);const d=Math.min(c,i),f=Math.floor(RLe(e,d,o));return e[f]>c&&f1&&"function"==typeof arguments[n-1]&&(t=arguments[n-1],--n);let r=0;for(;r0}getInteracting(){return this.hints_[1]>0}cancelAnimations(){let e;this.setHint(0,-this.hints_[0]);for(let t=0,n=this.animations_.length;t=0;--n){const r=this.animations_[n];let i=!0;for(let n=0,o=r.length;n0?a/o.duration:1;s>=1?(o.complete=!0,s=1):i=!1;const l=o.easing(s);if(o.sourceCenter){const e=o.sourceCenter[0],t=o.sourceCenter[1],n=o.targetCenter[0],r=o.targetCenter[1];this.nextCenter_=o.targetCenter;const i=e+l*(n-e),a=t+l*(r-t);this.targetCenter_=[i,a]}if(o.sourceResolution&&o.targetResolution){const e=1===l?o.targetResolution:o.sourceResolution+l*(o.targetResolution-o.sourceResolution);if(o.anchor){const t=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(e,0,t,!0);this.targetCenter_=this.calculateCenterZoom(n,o.anchor)}this.nextResolution_=o.targetResolution,this.targetResolution_=e,this.applyTargetState_(!0)}if(void 0!==o.sourceRotation&&void 0!==o.targetRotation){const e=1===l?kUe(o.targetRotation+Math.PI,2*Math.PI)-Math.PI:o.sourceRotation+l*(o.targetRotation-o.sourceRotation);if(o.anchor){const t=this.constraints_.rotation(e,!0);this.targetCenter_=this.calculateCenterRotate(t,o.anchor)}this.nextRotation_=o.targetRotation,this.targetRotation_=e}if(this.applyTargetState_(!0),t=!0,!o.complete)break}if(i){this.animations_[n]=null,this.setHint(0,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const e=r[0].callback;e&&Vqe(e,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,t){let n;const r=this.getCenterInternal();var i,o;return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],pUe(n,e-this.getRotation()),o=t,(i=n)[0]+=+o[0],i[1]+=+o[1]),n}calculateCenterZoom(e,t){let n;const r=this.getCenterInternal(),i=this.getResolution();return void 0!==r&&void 0!==i&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]),n}getViewportSize_(e){const t=this.viewportSize_;if(e){const n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e?BUe(e,this.getProjection()):e}getCenterInternal(){return this.get(Iqe.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){return YUe(this.calculateExtentInternal(e),this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const t=this.getCenterInternal();nFe(t,1);const n=this.getResolution();nFe(void 0!==n,2);const r=this.getRotation();return nFe(void 0!==r,3),LFe(t,n,r,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(Iqe.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,t){return this.getResolutionForExtentInternal(ZUe(e,this.getProjection()),t)}getResolutionForExtentInternal(e,t){t=t||this.getViewportSizeMinusPadding_();const n=VFe(e)/t[0],r=UFe(e)/t[1];return Math.max(n,r)}getResolutionForValueFunction(e){e=e||2;const t=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(t/n)/Math.log(e);return function(n){return t/Math.pow(e,n*r)}}getRotation(){return this.get(Iqe.ROTATION)}getValueForResolutionFunction(e){const t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){return Math.log(n/e)/t/i}}getViewportSizeMinusPadding_(e){let t=this.getViewportSize_(e);const n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t}getState(){const e=this.getProjection(),t=this.getResolution(),n=this.getRotation();let r=this.getCenterInternal();const i=this.padding_;if(i){const e=this.getViewportSizeMinusPadding_();r=Zqe(r,this.getViewportSize_(),[e[0]/2+i[3],e[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e}getZoomForResolution(e){let t,n,r=this.minZoom_||0;if(this.resolutions_){const i=RLe(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)}getResolutionForZoom(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const t=OUe(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,OUe(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,t){let n;if(nFe(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e))nFe(!ZFe(e),25),n=oqe(ZUe(e,this.getProjection()));else if("Circle"===e.getType()){const t=ZUe(e.getExtent(),this.getProjection());n=oqe(t),n.rotate(this.getRotation(),WFe(t))}else{const t=qUe();n=t?e.clone().transform(t,this.getProjection()):e}this.fitInternal(n,t)}rotatedExtentForGeometry(e){const t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride();let a=1/0,s=1/0,l=-1/0,u=-1/0;for(let e=0,t=i.length;e=e.maxResolution)return!1;const r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}const Kqe=class extends jqe{constructor(e){const t=Object.assign({},e);delete t.source,super(t),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,e.render&&(this.render=e.render),e.map&&this.setMap(e.map),this.addChangeListener(Aqe,this.handleSourcePropertyChange_);const n=e.source?e.source:null;this.setSource(n)}getLayersArray(e){return(e=e||[]).push(this),e}getLayerStatesArray(e){return(e=e||[]).push(this.getLayerState()),e}getSource(){return this.get(Aqe)||null}getRenderSource(){return this.getSource()}getSourceState(){const e=this.getSource();return e?e.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&(qLe(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const e=this.getSource();e&&(this.sourceChangeKey_=ULe(e,FLe.CHANGE,this.handleSourceChange_,this),"ready"===e.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null}isVisible(e){let t;t=e instanceof Gqe?{viewState:e.getState(),extent:e.calculateExtent()}:e;const n=this.getExtent();return this.getVisible()&&Hqe(this.getLayerState(),t.viewState)&&(!n||YFe(n,t.extent))}getAttributions(e){if(!this.isVisible(e))return[];let t;const n=this.getSource();if(n&&(t=n.getAttributions()),!t)return[];let r=t(e instanceof Gqe?e.getViewStateAndExtent():e);return Array.isArray(r)||(r=[r]),r}render(e,t){const n=this.getRenderer();if(n.prepareFrame(e))return this.rendered=!0,n.renderFrame(e,t)}unrender(){this.rendered=!1}setMapInternal(e){e||this.unrender(),this.set("map",e)}getMapInternal(){return this.get("map")}setMap(e){this.mapPrecomposeKey_&&(qLe(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(qLe(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=ULe(e,Dqe,(function(e){const t=e.frameState.layerStatesArray,n=this.getLayerState(!1);nFe(!t.some((function(e){return e.layer===n.layer})),67),t.push(n)}),this),this.mapRenderKey_=ULe(this,FLe.CHANGE,e.render,e),this.changed())}setSource(e){this.set(Aqe,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}};var Jqe=__webpack_require__(52280);const eBe=0,tBe=1,nBe=2,rBe=3;function iBe(e){return e[0]>0&&e[1]>0}function oBe(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}class aBe{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=oBe(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new aBe({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return YLe()}getImage(e){return YLe()}getHitDetectionImage(){return YLe()}getPixelRatio(e){return 1}getImageState(){return YLe()}getImageSize(){return YLe()}getOrigin(){return YLe()}getSize(){return YLe()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=oBe(e)}listenImageChange(e){YLe()}load(){YLe()}unlistenImageChange(e){YLe()}}const sBe=aBe,lBe=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,uBe=/^([a-z]*)$|^hsla?\(.*\)$/i;function cBe(e){return"string"==typeof e?e:pBe(e)}const dBe=function(){const e={};let t=0;return function(n){let r;if(e.hasOwnProperty(n))r=e[n];else{if(t>=1024){let n=0;for(const r in e)0==(3&n++)&&(delete e[r],--t)}r=function(e){let t,n,r,i,o;if(uBe.exec(e)&&(e=function(e){const t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);const e=getComputedStyle(t).color;return document.body.removeChild(t),e}return""}(e)),lBe.exec(e)){const a=e.length-1;let s;s=a<=4?1:2;const l=4===a||8===a;t=parseInt(e.substr(1+0*s,s),16),n=parseInt(e.substr(1+1*s,s),16),r=parseInt(e.substr(1+2*s,s),16),i=l?parseInt(e.substr(1+3*s,s),16):255,1==s&&(t=(t<<4)+t,n=(n<<4)+n,r=(r<<4)+r,l&&(i=(i<<4)+i)),o=[t,n,r,i/255]}else e.startsWith("rgba(")?(o=e.slice(5,-1).split(",").map(Number),hBe(o)):e.startsWith("rgb(")?(o=e.slice(4,-1).split(",").map(Number),o.push(1),hBe(o)):nFe(!1,14);return o}(n),e[n]=r,++t}return r}}();function fBe(e){return Array.isArray(e)?e:dBe(e)}function hBe(e){return e[0]=OUe(e[0]+.5|0,0,255),e[1]=OUe(e[1]+.5|0,0,255),e[2]=OUe(e[2]+.5|0,0,255),e[3]=OUe(e[3],0,1),e}function pBe(e){let t=e[0];t!=(0|t)&&(t=t+.5|0);let n=e[1];n!=(0|n)&&(n=n+.5|0);let r=e[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:Math.round(100*e[3])/100)+")"}function mBe(e){return Array.isArray(e)?pBe(e):e}function gBe(e,t,n,r){let i;return i=n&&n.length?n.shift():cFe?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(i.width=e),t&&(i.height=t),i.getContext("2d",r)}function vBe(e){const t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function OBe(e,t){const n=t.parentNode;n&&n.replaceChild(e,t)}function yBe(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}const bBe="ol-hidden",wBe="ol-unselectable",kBe="ol-control",xBe="ol-collapsed",_Be=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),SBe=["style","variant","weight","size","lineHeight","family"],PBe=function(e){const t=e.match(_Be);if(!t)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let e=0,r=SBe.length;eMath.max(t,UBe(e,n))),0);return n[t]=r,r}class qBe extends sBe{constructor(e){super({opacity:1,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius_=void 0!==e.radius?e.radius:e.radius1,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const e=this.getScale(),t=new qBe({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_;if(!e)return null;const t=this.getDisplacement(),n=this.getScaleArray();return[e[0]/2-t[0]/n[0],e[1]/2+t[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(e){let t=this.canvas_[e];if(!t){const n=this.renderOptions_,r=gBe(n.size*e,n.size*e);this.draw_(n,r,e),t=r.canvas,this.canvas_[e]=t}return t}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return nBe}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,n){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;let r=this.radius_,i=void 0===this.radius2_?r:this.radius2_;if(rthis.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const t in this.cache_){const n=this.cache_[t];0!=(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}}get(e,t,n){const r=iVe(e,t,n);return r in this.cache_?this.cache_[r]:null}set(e,t,n,r){const i=iVe(e,t,n);this.cache_[i]=r,++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}};function aVe(e,t,n){const r=e;let i=!0,o=!1,a=!1;const s=[XLe(r,FLe.LOAD,(function(){a=!0,o||t()}))];return r.src&&dFe?(o=!0,r.decode().then((function(){i&&t()})).catch((function(e){i&&(a?t():n())}))):s.push(XLe(r,FLe.ERROR,n)),function(){i=!1,s.forEach(qLe)}}let sVe=null;class lVe extends LLe{constructor(e,t,n,r,i,o){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=r,this.canvas_={},this.color_=o,this.unlisten_=null,this.imageState_=i,this.size_=n,this.src_=t,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===nBe){sVe||(sVe=gBe(1,1,void 0,{willReadFrequently:!0})),sVe.drawImage(this.image_,0,0);try{sVe.getImageData(0,0,1,1),this.tainted_=!1}catch(e){sVe=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(FLe.CHANGE)}handleImageError_(){this.imageState_=rBe,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=nBe,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],t=this.size_[1],n=gBe(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===eBe){this.image_||this.initializeImage_(),this.imageState_=tBe;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=aVe(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==nBe)return;const t=this.image_,n=document.createElement("canvas");n.width=Math.ceil(t.width*e),n.height=Math.ceil(t.height*e);const r=n.getContext("2d");r.scale(e,e),r.drawImage(t,0,0),r.globalCompositeOperation="multiply",r.fillStyle=cBe(this.color_),r.fillRect(0,0,n.width/e,n.height/e),r.globalCompositeOperation="destination-in",r.drawImage(t,0,0),this.canvas_[e]=n}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}class uVe extends sBe{constructor(e){const t=void 0!==(e=e||{}).opacity?e.opacity:1,n=void 0!==e.rotation?e.rotation:0,r=void 0!==e.scale?e.scale:1,i=void 0!==e.rotateWithView&&e.rotateWithView;super({opacity:t,rotation:n,scale:r,displacement:void 0!==e.displacement?e.displacement:[0,0],rotateWithView:i,declutterMode:e.declutterMode}),this.anchor_=void 0!==e.anchor?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==e.anchorOrigin?e.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==e.anchorXUnits?e.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==e.anchorYUnits?e.anchorYUnits:"fraction",this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null;const o=void 0!==e.img?e.img:null;this.imgSize_=e.imgSize;let a=e.src;nFe(!(void 0!==a&&o),4),nFe(!o||o&&this.imgSize_,5),void 0!==a&&0!==a.length||!o||(a=o.src||GLe(o)),nFe(void 0!==a&&a.length>0,6),nFe(!((void 0!==e.width||void 0!==e.height)&&void 0!==e.scale),69);const s=void 0!==e.src?eBe:nBe;if(this.color_=void 0!==e.color?fBe(e.color):null,this.iconImage_=function(e,t,n,r,i,o){let a=oVe.get(t,r,o);return a||(a=new lVe(e,t,n,r,i,o),oVe.set(t,r,o,a)),a}(o,a,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,s,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==e.size?e.size:null,this.width_=e.width,this.height_=e.height,void 0!==this.width_||void 0!==this.height_){const e=this.getImage(1),t=()=>{this.updateScaleFromWidthAndHeight(this.width_,this.height_)};e.width>0?this.updateScaleFromWidthAndHeight(this.width_,this.height_):e.addEventListener("load",t)}}clone(){let e=this.getScale();return e=Array.isArray(e)?e.slice():e,void 0===this.width_&&void 0===this.height_||(e=void 0),new uVe({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode(),width:this.width_,height:this.height_})}updateScaleFromWidthAndHeight(e,t){const n=this.getImage(1);void 0!==e&&void 0!==t?super.setScale([e/n.width,t/n.height]):void 0!==e?super.setScale([e/n.width,e/n.width]):void 0!==t?super.setScale([t/n.height,t/n.height]):super.setScale([1,1])}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const t=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!t)return null;e=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(e[0]*=t[0]),"fraction"==this.anchorYUnits_&&(e[1]*=t[1])}if("top-left"!=this.anchorOrigin_){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(e[0]=-e[0]+t[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}const t=this.getDisplacement(),n=this.getScaleArray();return[e[0]-t[0]/n[0],e[1]+t[1]/n[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if("top-left"!=this.offsetOrigin_){const t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[0]=n[0]-t[0]-e[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){return this.width_}getHeight(){return this.height_}setWidth(e){this.width_=e,this.updateScaleFromWidthAndHeight(e,this.height_)}setHeight(e){this.height_=e,this.updateScaleFromWidthAndHeight(this.width_,e)}setScale(e){super.setScale(e);const t=this.getImage(1);if(t){const n=Array.isArray(e)?e[0]:e;void 0!==n&&(this.width_=n*t.width);const r=Array.isArray(e)?e[1]:e;void 0!==r&&(this.height_=r*t.height)}}listenImageChange(e){this.iconImage_.addEventListener(FLe.CHANGE,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(FLe.CHANGE,e)}}const cVe=uVe;class dVe{constructor(e){e=e||{},this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=oBe(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.repeat_=e.repeat,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new GBe({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}clone(){const e=this.getScale();return new dVe({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(e){this.overflow_=e}setFont(e){this.font_=e}setMaxAngle(e){this.maxAngle_=e}setOffsetX(e){this.offsetX_=e}setOffsetY(e){this.offsetY_=e}setPlacement(e){this.placement_=e}setRepeat(e){this.repeat_=e}setRotateWithView(e){this.rotateWithView_=e}setFill(e){this.fill_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=oBe(void 0!==e?e:1)}setStroke(e){this.stroke_=e}setText(e){this.text_=e}setTextAlign(e){this.textAlign_=e}setJustify(e){this.justify_=e}setTextBaseline(e){this.textBaseline_=e}setBackgroundFill(e){this.backgroundFill_=e}setBackgroundStroke(e){this.backgroundStroke_=e}setPadding(e){this.padding_=e}}const fVe=dVe;function hVe(e){return new rVe({fill:pVe(e,""),stroke:mVe(e,""),text:gVe(e),image:vVe(e)})}function pVe(e,t){const n=e[t+"fill-color"];if(n)return new GBe({color:n})}function mVe(e,t){const n=e[t+"stroke-width"],r=e[t+"stroke-color"];if(n||r)return new KBe({width:n,color:r,lineCap:e[t+"stroke-line-cap"],lineJoin:e[t+"stroke-line-join"],lineDash:e[t+"stroke-line-dash"],lineDashOffset:e[t+"stroke-line-dash-offset"],miterLimit:e[t+"stroke-miter-limit"]})}function gVe(e){const t=e["text-value"];if(t)return new fVe({text:t,font:e["text-font"],maxAngle:e["text-max-angle"],offsetX:e["text-offset-x"],offsetY:e["text-offset-y"],overflow:e["text-overflow"],placement:e["text-placement"],repeat:e["text-repeat"],scale:e["text-scale"],rotateWithView:e["text-rotate-with-view"],rotation:e["text-rotation"],textAlign:e["text-align"],justify:e["text-justify"],textBaseline:e["text-baseline"],padding:e["text-padding"],fill:pVe(e,"text-"),backgroundFill:pVe(e,"text-background-"),stroke:mVe(e,"text-"),backgroundStroke:mVe(e,"text-background-")})}function vVe(e){const t=e["icon-src"],n=e["icon-img"];if(t||n)return new cVe({src:t,img:n,imgSize:e["icon-img-size"],anchor:e["icon-anchor"],anchorOrigin:e["icon-anchor-origin"],anchorXUnits:e["icon-anchor-x-units"],anchorYUnits:e["icon-anchor-y-units"],color:e["icon-color"],crossOrigin:e["icon-cross-origin"],offset:e["icon-offset"],displacement:e["icon-displacement"],opacity:e["icon-opacity"],scale:e["icon-scale"],rotation:e["icon-rotation"],rotateWithView:e["icon-rotate-with-view"],size:e["icon-size"],declutterMode:e["icon-declutter-mode"]});const r=e["shape-points"];if(r){const t="shape-";return new BBe({points:r,fill:pVe(e,t),stroke:mVe(e,t),radius:e["shape-radius"],radius1:e["shape-radius1"],radius2:e["shape-radius2"],angle:e["shape-angle"],displacement:e["shape-displacement"],rotation:e["shape-rotation"],rotateWithView:e["shape-rotate-with-view"],scale:e["shape-scale"],declutterMode:e["shape-declutter-mode"]})}const i=e["circle-radius"];if(i){const t="circle-";return new YBe({radius:i,fill:pVe(e,t),stroke:mVe(e,t),displacement:e["circle-displacement"],scale:e["circle-scale"],rotation:e["circle-rotation"],rotateWithView:e["circle-rotate-with-view"],declutterMode:e["circle-declutter-mode"]})}}const OVe="renderOrder",yVe=class extends Kqe{constructor(e){e=e||{};const t=Object.assign({},e);delete t.style,delete t.renderBuffer,delete t.updateWhileAnimating,delete t.updateWhileInteracting,super(t),this.declutter_=void 0!==e.declutter&&e.declutter,this.renderBuffer_=void 0!==e.renderBuffer?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=void 0!==e.updateWhileAnimating&&e.updateWhileAnimating,this.updateWhileInteracting_=void 0!==e.updateWhileInteracting&&e.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(e){return super.getFeatures(e)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(OVe)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(e){e.declutterTree||(e.declutterTree=new Jqe(9)),this.getRenderer().renderDeclutter(e)}setRenderOrder(e){this.set(OVe,e)}setStyle(e){let t;if(void 0===e)t=tVe;else if(null===e)t=null;else if("function"==typeof e)t=e;else if(e instanceof rVe)t=e;else if(Array.isArray(e)){const n=e.length,r=new Array(n);for(let t=0;ta&&(this.instructions.push([SVe.CUSTOM,a,l,e,n,EXe]),this.hitDetectionInstructions.push([SVe.CUSTOM,a,l,e,r||n,EXe]));break;case"Point":s=e.getFlatCoordinates(),this.coordinates.push(s[0],s[1]),l=this.coordinates.length,this.instructions.push([SVe.CUSTOM,a,l,e,n]),this.hitDetectionInstructions.push([SVe.CUSTOM,a,l,e,r||n])}this.endGeometry(t)}beginGeometry(e,t){this.beginGeometryInstruction1_=[SVe.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[SVe.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const e=this.hitDetectionInstructions;let t;e.reverse();const n=e.length;let r,i,o=-1;for(t=0;tthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(e){const t=e.fillStyle,n=[SVe.SET_FILL_STYLE,t];return"string"!=typeof t&&n.push(!0),n}applyStroke(e){this.instructions.push(this.createStroke(e))}createStroke(e){return[SVe.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]}updateFillStyle(e,t){const n=e.fillStyle;"string"==typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)}updateStrokeStyle(e,t){const n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!DLe(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)}endGeometry(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const t=[SVe.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=wFe(this.maxExtent),this.maxLineWidth>0)){const e=this.resolution*(this.maxLineWidth+1)/2;bFe(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},CVe=class extends EVe{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinatess_(e,t,n,r){const i=this.state,o=void 0!==i.fillStyle,a=void 0!==i.strokeStyle,s=n.length;this.instructions.push(xVe),this.hitDetectionInstructions.push(xVe);for(let i=0;i=e){const t=(e-s+d)/d,f=xUe(n,u,t),h=xUe(r,c,t);l.push(f,h),o.push(l),l=[f,h],s==e&&(a+=i),s=0}else if(s0&&o.push(l),o}function $Ve(e,t,n,r,i){let o,a,s,l,u,c,d,f,h,p,m=n,g=n,v=0,O=0,y=n;for(a=n;ae&&(O>v&&(v=O,m=y,g=a),O=0,y=a-i)),s=l,d=h,f=p),u=n,c=r}return O+=l,O>v?[y,a]:[m,g]}const QVe={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},RVe={Circle:CVe,Default:EVe,Image:class extends EVe{constructor(e,t,n,r){super(e,t,n,r),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(e,t){if(!this.image_)return;this.beginGeometry(e,t);const n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([SVe.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([SVe.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}drawMultiPoint(e,t){if(!this.image_)return;this.beginGeometry(e,t);const n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([SVe.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([SVe.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(e,t){const n=e.getAnchor(),r=e.getSize(),i=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}},LineString:class extends EVe{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinates_(e,t,n,r){const i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),a=[SVe.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n}drawLineString(e,t){const n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0===r||void 0===i)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([SVe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,$Be,0],xVe);const o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(kVe),this.endGeometry(t)}drawMultiLineString(e,t){const n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0===r||void 0===i)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([SVe.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],xVe);const o=e.getEnds(),a=e.getFlatCoordinates(),s=e.getStride();let l=0;for(let e=0,t=o.length;e{const r=o[2*(e+n)]===l[n*u]&&o[2*(e+n)+1]===l[n*u+1];return r||--e,r}))}this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);let c=i.padding;if(c!=DBe&&(i.scale[0]<0||i.scale[1]<0)){let e=i.padding[0],t=i.padding[1],n=i.padding[2],r=i.padding[3];i.scale[0]<0&&(t=-t,r=-r),i.scale[1]<0&&(e=-e,n=-n),c=[e,t,n,r]}const d=this.pixelRatio;this.instructions.push([SVe.DRAW_IMAGE,a,r,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,c==DBe?DBe:c.map((function(e){return e*d})),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const f=1/d;this.hitDetectionInstructions.push([SVe.DRAW_IMAGE,a,r,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[f,f],NaN,void 0,this.declutterImageWithText_,c,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),this.endGeometry(t)}else{if(!YFe(this.getBufferedMaxExtent(),e.getExtent()))return;let n;if(l=e.getFlatCoordinates(),"LineString"==s)n=[l.length];else if("MultiLineString"==s)n=e.getEnds();else if("Polygon"==s)n=e.getEnds().slice(0,1);else if("MultiPolygon"==s){const t=e.getEndss();n=[];for(let e=0,r=t.length;e{const o=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,i,o)}}forEachFeatureAtCoordinate(e,t,n,r,i){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){e.target.getState()===nBe&&this.renderIfReadyAndVisible()}loadImage(e){let t=e.getState();return t!=nBe&&t!=rBe&&e.addEventListener(FLe.CHANGE,this.boundHandleImageChange_),t==eBe&&(e.load(),t=e.getState()),t==nBe}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},DVe=class extends CLe{constructor(e,t,n,r){super(e),this.inversePixelTransform=t,this.frameState=n,this.context=r}},MVe=[];let IVe=null;const zVe=class extends jVe{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=[1,0,0,1,0,0],this.pixelTransform=[1,0,0,1,0,0],this.inversePixelTransform=[1,0,0,1,0,0],this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(e,t,n){let r;IVe||(IVe=gBe(1,1,void 0,{willReadFrequently:!0})),IVe.clearRect(0,0,1,1);try{IVe.drawImage(e,t,n,1,1,0,0,1,1),r=IVe.getImageData(0,0,1,1).data}catch(e){return IVe=null,null}return r}getBackground(e){let t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0}useContainer(e,t,n){const r=this.getLayer().getClassName();let i,o;if(e&&e.className===r&&(!n||e&&e.style.backgroundColor&&DLe(fBe(e.style.backgroundColor),fBe(n)))){const t=e.firstElementChild;t instanceof HTMLCanvasElement&&(o=t.getContext("2d"))}if(o&&o.canvas.style.transform===t?(this.container=e,this.context=o,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){i=document.createElement("div"),i.className=r;let e=i.style;e.position="absolute",e.width="100%",e.height="100%",o=gBe();const t=o.canvas;i.appendChild(t),e=t.style,e.position="absolute",e.left="0",e.transformOrigin="top left",this.container=i,this.context=o}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)}clipUnrotated(e,t,n){const r=qFe(n),i=BFe(n),o=zFe(n),a=IFe(n);hFe(t.coordinateToPixelTransform,r),hFe(t.coordinateToPixelTransform,i),hFe(t.coordinateToPixelTransform,o),hFe(t.coordinateToPixelTransform,a);const s=this.inversePixelTransform;hFe(s,r),hFe(s,i),hFe(s,o),hFe(s,a),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()}dispatchRenderEvent_(e,t,n){const r=this.getLayer();if(r.hasListener(e)){const i=new DVe(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}}preRender(e,t){this.frameState=t,this.dispatchRenderEvent_("prerender",e,t)}postRender(e,t){this.dispatchRenderEvent_("postrender",e,t)}getRenderTransform(e,t,n,r,i,o,a){const s=i/2,l=o/2,u=r/t,c=-u,d=-e[0]+a,f=-e[1];return pFe(this.tempTransform,s,l,u,c,-n,d,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}};function WVe(e,t,n,r,i,o,a,s,l,u,c,d){let f=e[t],h=e[t+1],p=0,m=0,g=0,v=0;function O(){p=f,m=h,f=e[t+=r],h=e[t+1],v+=g,g=Math.sqrt((f-p)*(f-p)+(h-m)*(h-m))}do{O()}while(te[2]}else E=b>S;const C=Math.PI,T=[],$=k+r===t;let Q;if(g=0,v=x,f=e[t=k],h=e[t+1],$){O(),Q=Math.atan2(h-m,f-p),E&&(Q+=Q>0?-C:C);const e=(S+b)/2,t=(P+w)/2;return T[0]=[e,t,(_-o)/2,Q,i],T}for(let e=0,d=(i=i.replace(/\n/g," ")).length;e0?-C:C),void 0!==Q){let e=b-Q;if(e+=e>C?-2*C:e<-C?2*C:0,Math.abs(e)>a)return null}Q=b;const w=e;let k=0;for(;e0&&e.push("\n",""),e.push(t,""),e}const ZVe=class{constructor(e,t,n,r){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}createLabel(e,t,n,r){const i=e+t+n+r;if(this.labels_[i])return this.labels_[i];const o=r?this.strokeStates[r]:null,a=n?this.fillStates[n]:null,s=this.textStates[t],l=this.pixelRatio,u=[s.scale[0]*l,s.scale[1]*l],c=Array.isArray(e),d=s.justify?QVe[s.justify]:VVe(Array.isArray(e)?e[0]:e,s.textAlign||ABe),f=r&&o.lineWidth?o.lineWidth:0,h=c?e:e.split("\n").reduce(YVe,[]),{width:p,height:m,widths:g,heights:v,lineWidths:O}=function(e,t){const n=[],r=[],i=[];let o=0,a=0,s=0,l=0;for(let u=0,c=t.length;u<=c;u+=2){const d=t[u];if("\n"===d||u===c){o=Math.max(o,a),i.push(a),a=0,s+=l;continue}const f=t[u+1]||e.font,h=UBe(f,d);n.push(h),a+=h;const p=LBe(f);r.push(p),l=Math.max(l,p)}return{width:o,height:s,widths:n,heights:r,lineWidths:i}}(s,h),y=p+f,b=[],w=(y+2)*u[0],k=(m+f)*u[1],x={width:w<0?Math.floor(w):Math.ceil(w),height:k<0?Math.floor(k):Math.ceil(k),contextInstructions:b};1==u[0]&&1==u[1]||b.push("scale",u),r&&(b.push("strokeStyle",o.strokeStyle),b.push("lineWidth",f),b.push("lineCap",o.lineCap),b.push("lineJoin",o.lineJoin),b.push("miterLimit",o.miterLimit),b.push("setLineDash",[o.lineDash]),b.push("lineDashOffset",o.lineDashOffset)),n&&b.push("fillStyle",a.fillStyle),b.push("textBaseline","middle"),b.push("textAlign","center");const _=.5-d;let S=d*y+_*f;const P=[],E=[];let C,T=0,$=0,Q=0,R=0;for(let e=0,t=h.length;ee?e-l:i,y=o+u>t?t-u:o,b=h[3]+O*d[0]+h[1],w=h[0]+y*d[1]+h[2],k=g-h[3],x=v-h[0];let _;return(p||0!==c)&&(LVe[0]=k,XVe[0]=k,LVe[1]=x,FVe[1]=x,FVe[0]=k+b,UVe[0]=FVe[0],UVe[1]=x+w,XVe[1]=UVe[1]),0!==c?(_=pFe([1,0,0,1,0,0],n,r,1,1,c,-n,-r),hFe(_,LVe),hFe(_,FVe),hFe(_,UVe),hFe(_,XVe),EFe(Math.min(LVe[0],FVe[0],UVe[0],XVe[0]),Math.min(LVe[1],FVe[1],UVe[1],XVe[1]),Math.max(LVe[0],FVe[0],UVe[0],XVe[0]),Math.max(LVe[1],FVe[1],UVe[1],XVe[1]),NVe)):EFe(Math.min(k,k+b),Math.min(x,x+w),Math.max(k,k+b),Math.max(x,x+w),NVe),f&&(g=Math.round(g),v=Math.round(v)),{drawImageX:g,drawImageY:v,drawImageW:O,drawImageH:y,originX:l,originY:u,declutterBox:{minX:NVe[0],minY:NVe[1],maxX:NVe[2],maxY:NVe[3],value:m},canvasTransform:_,scale:d}}replayImageOrLabel_(e,t,n,r,i,o,a){const s=!(!o&&!a),l=r.declutterBox,u=e.canvas,c=a?a[2]*r.scale[0]/2:0;return l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0&&(s&&this.replayTextBackground_(e,LVe,FVe,UVe,XVe,o,a),function(e,t,n,r,i,o,a,s,l,u,c){e.save(),1!==n&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(l,u),e.scale(c[0],c[1]),function(e,t){const n=e.contextInstructions;for(let e=0,r=n.length;ej&&(this.fill_(e),P=0),E>j&&(e.stroke(),E=0),P||E||(e.beginPath(),g=NaN,v=NaN),++d;break;case SVe.CIRCLE:S=n[1];const r=l[S],u=l[S+1],c=l[S+2]-r,f=l[S+3]-u,W=Math.sqrt(c*c+f*f);e.moveTo(r+W,u),e.arc(r,u,W,0,2*Math.PI,!0),++d;break;case SVe.CLOSE_PATH:e.closePath(),++d;break;case SVe.CUSTOM:S=n[1],h=n[2];const N=n[3],L=n[4],F=6==n.length?n[5]:void 0;A.geometry=N,A.feature=D,d in $||($[d]=[]);const U=$[d];F?F(l,S,h,2,U):(U[0]=l[S],U[1]=l[S+1],U.length=2),L(U,A),++d;break;case SVe.DRAW_IMAGE:S=n[1],h=n[2],b=n[3],p=n[4],m=n[5];let X=n[6];const q=n[7],B=n[8],V=n[9],Y=n[10];let Z=n[11];const G=n[12];let H=n[13];const K=n[14],J=n[15];if(!b&&n.length>=20){w=n[19],k=n[20],x=n[21],_=n[22];const e=this.drawLabelWithPointPlacement_(w,k,x,_);b=e.label,n[3]=b;const t=n[23];p=(e.anchorX-t)*this.pixelRatio,n[4]=p;const r=n[24];m=(e.anchorY-r)*this.pixelRatio,n[5]=m,X=b.height,n[6]=X,H=b.width,n[13]=H}let ee,te,ne,re;n.length>25&&(ee=n[25]),n.length>17?(te=n[16],ne=n[17],re=n[18]):(te=DBe,ne=!1,re=!1),Y&&R?Z+=Q:Y||R||(Z-=Q);let ie=0;for(;Sn)break;let s=r[a];s||(s=[],r[a]=s),s.push(4*((e+i)*t+(e+o))+3),i>0&&s.push(4*((e-i)*t+(e+o))+3),o>0&&(s.push(4*((e+i)*t+(e-o))+3),i>0&&s.push(4*((e-i)*t+(e-o))+3))}const i=[];for(let e=0,t=r.length;e0){if(!o||"Image"!==f&&"Text"!==f||o.includes(e)){const n=(d[s]-3)/4,o=r-n%a,l=r-(n/a|0),u=i(e,t,o*o+l*l);if(u)return u}u.clearRect(0,0,a,a);break}}const p=Object.keys(this.executorsByZIndex_).map(Number);let m,g,v,O,y;for(p.sort(QLe),m=p.length-1;m>=0;--m){const e=p[m].toString();for(v=this.executorsByZIndex_[e],g=GVe.length-1;g>=0;--g)if(f=GVe[g],O=v[f],void 0!==O&&(y=O.executeHitDetection(u,s,n,h,c),y))return y}}getClipCoords(e){const t=this.maxExtent_;if(!t)return null;const n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return HUe(a,0,8,2,e,a),a}isEmpty(){return NLe(this.executorsByZIndex_)}execute(e,t,n,r,i,o,a){const s=Object.keys(this.executorsByZIndex_).map(Number);let l,u,c,d,f,h;for(s.sort(QLe),this.maxExtent_&&(e.save(),this.clip(e,n)),o=o||GVe,a&&s.reverse(),l=0,u=s.length;le*this.pixelRatio_)),lineDashOffset:(i||0)*this.pixelRatio_,lineJoin:void 0!==o?o:QBe,lineWidth:(void 0!==a?a:1)*this.pixelRatio_,miterLimit:void 0!==s?s:10,strokeStyle:mBe(e||RBe)}}else this.strokeState_=null}setImageStyle(e){let t;if(!e||!(t=e.getSize()))return void(this.image_=null);const n=e.getPixelRatio(this.pixelRatio_),r=e.getAnchor(),i=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*n,this.imageAnchorY_=r[1]*n,this.imageHeight_=t[1]*n,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation();const o=e.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=t[0]*n}setTextStyle(e){if(e){const t=e.getFill();if(t){const e=t.getColor();this.textFillState_={fillStyle:mBe(e||CBe)}}else this.textFillState_=null;const n=e.getStroke();if(n){const e=n.getColor(),t=n.getLineCap(),r=n.getLineDash(),i=n.getLineDashOffset(),o=n.getLineJoin(),a=n.getWidth(),s=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==t?t:TBe,lineDash:r||$Be,lineDashOffset:i||0,lineJoin:void 0!==o?o:QBe,lineWidth:void 0!==a?a:1,miterLimit:void 0!==s?s:10,strokeStyle:mBe(e||RBe)}}else this.textStrokeState_=null;const r=e.getFont(),i=e.getOffsetX(),o=e.getOffsetY(),a=e.getRotateWithView(),s=e.getRotation(),l=e.getScaleArray(),u=e.getText(),c=e.getTextAlign(),d=e.getTextBaseline();this.textState_={font:void 0!==r?r:EBe,textAlign:void 0!==c?c:ABe,textBaseline:void 0!==d?d:jBe},this.text_=void 0!==u?Array.isArray(u)?u.reduce(((e,t,n)=>e+(n%2?" ":t)),""):u:"",this.textOffsetX_=void 0!==i?this.pixelRatio_*i:0,this.textOffsetY_=void 0!==o?this.pixelRatio_*o:0,this.textRotateWithView_=void 0!==a&&a,this.textRotation_=void 0!==s?s:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=""}},eYe=.5,tYe={Point:function(e,t,n,r,i){const o=n.getImage(),a=n.getText();let s;if(o){if(o.getImageState()!=nBe)return;let l=e;if(i){const u=o.getDeclutterMode();if("none"!==u)if(l=i,"obstacle"===u){const i=e.getBuilder(n.getZIndex(),"Image");i.setImageStyle(o,s),i.drawPoint(t,r)}else a&&a.getText()&&(s={})}const u=l.getBuilder(n.getZIndex(),"Image");u.setImageStyle(o,s),u.drawPoint(t,r)}if(a&&a.getText()){let o=e;i&&(o=i);const l=o.getBuilder(n.getZIndex(),"Text");l.setTextStyle(a,s),l.drawText(t,r)}},LineString:function(e,t,n,r,i){const o=n.getStroke();if(o){const i=e.getBuilder(n.getZIndex(),"LineString");i.setFillStrokeStyle(null,o),i.drawLineString(t,r)}const a=n.getText();if(a&&a.getText()){const o=(i||e).getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,r)}},Polygon:function(e,t,n,r,i){const o=n.getFill(),a=n.getStroke();if(o||a){const i=e.getBuilder(n.getZIndex(),"Polygon");i.setFillStrokeStyle(o,a),i.drawPolygon(t,r)}const s=n.getText();if(s&&s.getText()){const o=(i||e).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,r)}},MultiPoint:function(e,t,n,r,i){const o=n.getImage(),a=n.getText();let s;if(o){if(o.getImageState()!=nBe)return;let l=e;if(i){const u=o.getDeclutterMode();if("none"!==u)if(l=i,"obstacle"===u){const i=e.getBuilder(n.getZIndex(),"Image");i.setImageStyle(o,s),i.drawMultiPoint(t,r)}else a&&a.getText()&&(s={})}const u=l.getBuilder(n.getZIndex(),"Image");u.setImageStyle(o,s),u.drawMultiPoint(t,r)}if(a&&a.getText()){let o=e;i&&(o=i);const l=o.getBuilder(n.getZIndex(),"Text");l.setTextStyle(a,s),l.drawText(t,r)}},MultiLineString:function(e,t,n,r,i){const o=n.getStroke();if(o){const i=e.getBuilder(n.getZIndex(),"LineString");i.setFillStrokeStyle(null,o),i.drawMultiLineString(t,r)}const a=n.getText();if(a&&a.getText()){const o=(i||e).getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,r)}},MultiPolygon:function(e,t,n,r,i){const o=n.getFill(),a=n.getStroke();if(a||o){const i=e.getBuilder(n.getZIndex(),"Polygon");i.setFillStrokeStyle(o,a),i.drawMultiPolygon(t,r)}const s=n.getText();if(s&&s.getText()){const o=(i||e).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,r)}},GeometryCollection:function(e,t,n,r,i){const o=t.getGeometriesArray();let a,s;for(a=0,s=o.length;a{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const e=[this.context.canvas.width,this.context.canvas.height];hFe(this.pixelTransform,e);const t=this.renderedCenter_,n=this.renderedResolution_,r=this.renderedRotation_,i=this.renderedProjection_,o=this.wrappedRenderedExtent_,a=this.getLayer(),s=[],l=e[0]*eYe,u=e[1]*eYe;s.push(this.getRenderTransform(t,n,r,eYe,l,u,0).slice());const c=a.getSource(),d=i.getExtent();if(c.getWrapX()&&i.canWrapX()&&!_Fe(d,o)){let e=o[0];const i=VFe(d);let a,c=0;for(;ed[2];)++c,a=i*c,s.push(this.getRenderTransform(t,n,r,eYe,l,u,a).slice()),e-=i}this.hitDetectionImageData_=function(e,t,n,r,i,o,a){const s=gBe(e[0]*eYe,e[1]*eYe);s.imageSmoothingEnabled=!1;const l=s.canvas,u=new JVe(s,eYe,i,null,a),c=n.length,d=Math.floor(16777215/c),f={};for(let e=1;e<=c;++e){const t=n[e-1],a=t.getStyleFunction()||r;if(!r)continue;let s=a(t,o);if(!s)continue;Array.isArray(s)||(s=[s]);const l=(e*d).toString(16).padStart(7,"#00000");for(let e=0,n=s.length;ec=r.forEachFeatureAtCoordinate(e,o,a,n,u,r===this.declutterExecutorGroup&&t.declutterTree?t.declutterTree.all().map((e=>e.value)):null))),c}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}prepareFrame(e){const t=this.getLayer(),n=t.getSource();if(!n)return!1;const r=e.viewHints[0],i=e.viewHints[1],o=t.getUpdateWhileAnimating(),a=t.getUpdateWhileInteracting();if(this.ready&&!o&&r||!a&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const s=e.extent,l=e.viewState,u=l.projection,c=l.resolution,d=e.pixelRatio,f=t.getRevision(),h=t.getRenderBuffer();let p=t.getRenderOrder();void 0===p&&(p=nYe);const m=l.center.slice(),g=bFe(s,h*c),v=g.slice(),O=[g.slice()],y=u.getExtent();if(n.getWrapX()&&u.canWrapX()&&!_Fe(y,e.extent)){const e=VFe(y),t=Math.max(VFe(g)/2,e);g[0]=y[0]-t,g[2]=y[2]+t,vUe(m,u);const n=GFe(O[0],u);n[0]y[0]&&n[2]>y[2]&&O.push([n[0]-e,n[1],n[2]-e,n[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==f&&this.renderedRenderOrder_==p&&_Fe(this.wrappedRenderedExtent_,g))return DLe(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new AVe(rYe(c,d),g,c,d);let w;this.getLayer().getDeclutter()&&(w=new AVe(rYe(c,d),g,c,d));const k=qUe();let x;if(k){for(let e=0,t=O.length;e{let n;const r=e.getStyleFunction()||t.getStyleFunction();if(r&&(n=r(e,c)),n){const t=this.renderFeature(e,_,n,b,x,w);S=S&&!t}},E=YUe(g),C=n.getFeaturesInExtent(E);p&&C.sort(p);for(let e=0,t=C.length;e0;)this.pop()}extend(e){for(let t=0,n=e.length;tthis.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new dYe(lYe,t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){const t=this.array_;for(let n=0,r=t.length;n=this.getLength())return;const t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new dYe(uYe,t,e)),t}setAt(e,t){if(e>=this.getLength())return void this.insertAt(e,t);if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t,e);const n=this.array_[e];this.array_[e]=t,this.dispatchEvent(new dYe(uYe,n,e)),this.dispatchEvent(new dYe(lYe,t,e))}updateLength_(){this.set(cYe,this.array_.length)}assertUnique_(e,t){for(let n=0,r=this.array_.length;n=200&&s.status<300){const e=t.getType();let r;"json"==e||"text"==e?r=s.responseText:"xml"==e?(r=s.responseXML,r||(r=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==e&&(r=s.response),r?o(t.readFeatures(r,{extent:n,featureProjection:i}),t.readProjection(r)):a()}else a()},s.onerror=a,s.send()}(e,t,n,r,i,(function(e,t){s.addFeatures(e),void 0!==o&&o(e)}),a||zLe)}}class bYe extends CLe{constructor(e,t,n){super(e),this.feature=t,this.features=n}}const wYe=class extends mYe{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===e.wrapX||e.wrapX}),this.on,this.once,this.un,this.loader_=zLe,this.format_=e.format,this.overlaps_=void 0===e.overlaps||e.overlaps,this.url_=e.url,void 0!==e.loader?this.loader_=e.loader:void 0!==this.url_&&(nFe(this.format_,7),this.loader_=yYe(this.url_,this.format_)),this.strategy_=void 0!==e.strategy?e.strategy:OYe;const t=void 0===e.useSpatialIndex||e.useSpatialIndex;let n,r;this.featuresRtree_=t?new hYe:null,this.loadedExtentsRtree_=new hYe,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(e.features)?r=e.features:e.features&&(n=e.features,r=n.getArray()),t||void 0!==n||(n=new fYe(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(e){this.addFeatureInternal(e),this.changed()}addFeatureInternal(e){const t=GLe(e);if(!this.addToIndex_(t,e))return void(this.featuresCollection_&&this.featuresCollection_.remove(e));this.setupChangeEvents_(t,e);const n=e.getGeometry();if(n){const t=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(t,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new bYe(gYe,e))}setupChangeEvents_(e,t){this.featureChangeKeys_[e]=[ULe(t,FLe.CHANGE,this.handleFeatureChange_,this),ULe(t,TLe,this.handleFeatureChange_,this)]}addToIndex_(e,t){let n=!0;const r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&(nFe(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n}addFeatures(e){this.addFeaturesInternal(e),this.changed()}addFeaturesInternal(e){const t=[],n=[],r=[];for(let t=0,r=e.length;t{t||(t=!0,this.addFeature(e.element),t=!1)})),e.addEventListener(uYe,(e=>{t||(t=!0,this.removeFeature(e.element),t=!1)})),this.featuresCollection_=e}clear(e){if(e){for(const e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(qLe);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const e=e=>{this.removeFeatureInternal(e)};this.featuresRtree_.forEach(e);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const t=new bYe("clear");this.dispatchEvent(t),this.changed()}forEachFeature(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureAtCoordinateDirect(e,t){const n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){if(n.getGeometry().intersectsCoordinate(e))return t(n)}))}forEachFeatureInExtent(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureIntersectingExtent(e,t){return this.forEachFeatureInExtent(e,(function(n){if(n.getGeometry().intersectsExtent(e)){const e=t(n);if(e)return e}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),NLe(this.nullGeometryFeatures_)||jLe(e,Object.values(this.nullGeometryFeatures_))),e}getFeaturesAtCoordinate(e){const t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t}getFeaturesInExtent(e,t){if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);const n=function(e,t){if(t.canWrapX()){const n=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[n[0],e[1],n[2],e[3]]];GFe(e,t);const r=VFe(n);if(VFe(e)>r)return[[n[0],e[1],n[2],e[3]]];if(e[0]n[2])return[[e[0],e[1],n[2],e[3]],[n[0],e[1],e[2]-r,e[3]]]}return[e]}(e,t);return[].concat(...n.map((e=>this.featuresRtree_.getInExtent(e))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(e,t){const n=e[0],r=e[1];let i=null;const o=[NaN,NaN];let a=1/0;const s=[-1/0,-1/0,1/0,1/0];return t=t||MLe,this.featuresRtree_.forEachInExtent(s,(function(e){if(t(e)){const t=e.getGeometry(),l=a;if(a=t.closestPointXY(n,r,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new bYe("featuresloadend",void 0,e))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new bYe("featuresloaderror"))})),r.insert(o,{extent:o.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(e){const t=this.loadedExtentsRtree_;let n;t.forEachInExtent(e,(function(t){if($Fe(t.extent,e))return n=t,!0})),n&&t.remove(n)}removeFeature(e){if(!e)return;const t=GLe(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}removeFeatureInternal(e){const t=GLe(e),n=this.featureChangeKeys_[t];if(!n)return;n.forEach(qLe),delete this.featureChangeKeys_[t];const r=e.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[t],this.dispatchEvent(new bYe(vYe,e)),e}removeFromIdIndex_(e){let t=!1;for(const n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t}setLoader(e){this.loader_=e}setUrl(e){nFe(this.format_,7),this.url_=e,this.setLoader(yYe(e,this.format_))}};function kYe(e){const t=arguments;return function(e){let n=!0;for(let r=0,i=t.length;r=n?e[t-n]:e[t]}function IYe(e,t,n){let r,i;ta)return DYe(UYe(e,r),UYe(e,i));let s=0;r=n?r-=n:r<0&&(r+=n);let o=r+1;o>=n&&(o-=n);const a=e[r],s=a[0],l=a[1],u=e[o];return[s+(u[0]-s)*i,l+(u[1]-l)*i]}function XYe(){const e=function(){const e={},t=[255,255,255,1],n=[0,153,255,1];return e.Polygon=[new JBe({fill:new GBe({color:[255,255,255,.5]})})],e.MultiPolygon=e.Polygon,e.LineString=[new JBe({stroke:new KBe({color:t,width:5})}),new JBe({stroke:new KBe({color:n,width:3})})],e.MultiLineString=e.LineString,e.Circle=e.Polygon.concat(e.LineString),e.Point=[new JBe({image:new YBe({radius:6,fill:new GBe({color:n}),stroke:new KBe({color:t,width:1.5})}),zIndex:1/0})],e.MultiPoint=e.Point,e.GeometryCollection=e.Polygon.concat(e.LineString,e.Point),e}();return function(t,n){return e[t.getGeometry().getType()]}}const qYe=class extends _qe{constructor(e){const t=e;t.stopDown||(t.stopDown=ILe),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=function(e){switch(e){case"Point":case"MultiPoint":return"Point";case"LineString":case"MultiLineString":return"LineString";case"Polygon":case"MultiPolygon":return"Polygon";case"Circle":return"Circle";default:throw new Error("Invalid type: "+e)}}(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:"Polygon"===this.mode_?3:2,this.maxPoints_="Circle"===this.mode_?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:MLe,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=function(e,t,n){const r=t||new fqe([NaN,NaN]),i=VUe(e[0]),o=mUe(i,VUe(e[e.length-1]));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);const a=qUe();return a&&r.transform(n,a),r};else{let t;"Point"===e?t=XXe:"LineString"===e?t=NXe:"Polygon"===e&&(t=iqe),n=function(n,r,i){return r?"Polygon"===e?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r}}}this.geometryFunction_=n,this.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new sYe({source:new wYe({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:XYe(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:CYe,this.freehandCondition_,e.freehand?this.freehandCondition_=SYe:this.freehandCondition_=e.freehandCondition?e.freehandCondition:TYe,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(hqe,this.updateState_)}setTrace(e){let t;t=e?!0===e?SYe:e:EYe,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===FLe.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(e);let t=e.type===gqe.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&e.type===gqe.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===gqe.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===gqe.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===gqe.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===gqe.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===gqe.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout((()=>{this.handlePointerMove_(new mqe(gqe.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active)return void this.deactivateTrace_();const t=this.getMap(),n=yFe([t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_])]),r=this.traceSource_.getFeaturesInExtent(n);if(0===r.length)return;const i=function(e,t){const n=[];for(let r=0;re.endIndex||!n&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const r=[];if(t=o;--t)r.push(MYe(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active)return;if(-1===t.targetIndex&&gUe(t.startPx,e.pixel)n.startIndex?un.startIndex&&(u-=r.length)),l=u,s=e)}const u=t.targets[s];let c=u.ring;if(t.targetIndex===s&&c){const e=UYe(u.coordinates,l);gUe(n.getPixelFromCoordinate(e),t.startPx)>r&&(c=!1)}if(c){const e=u.coordinates,t=e.length,n=u.startIndex,r=l;if(nthis.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?(this.updateTrace_(e),this.modifyDrawing_(e.coordinate)):this.createOrUpdateSketchPoint_(e.coordinate.slice())}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_];const o=this.mode_;if("Point"===o)n=!0;else if("Circle"===o)n=2===this.sketchCoords_.length;else if("LineString"===o)r=!t&&this.sketchCoords_.length>this.minPoints_;else if("Polygon"===o){const e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){const t=this.getMap();for(let r=0,o=i.length;r=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):"Polygon"===o&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r&&this.finishDrawing()}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i=2){this.finishCoordinate_=e[e.length-2].slice();const t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if("Polygon"===r){e=this.sketchCoords_[0],e.splice(-2,1);const r=this.sketchLine_.getGeometry();if(e.length>=2){const t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(1===e.length){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return;let t=this.sketchCoords_;const n=e.getGeometry(),r=this.getMap().getView().getProjection();"LineString"===this.mode_?(t.pop(),this.geometryFunction_(t,n,r)):"Polygon"===this.mode_&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new BXe([t])):"MultiLineString"===this.type_?e.setGeometry(new FXe([t])):"MultiPolygon"===this.type_&&e.setGeometry(new sqe([t])),this.dispatchEvent(new jYe("drawend",e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new jYe("drawabort",e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;let r;if(n&&this.startDrawing_(e[0]),"LineString"===t||"Circle"===t)r=this.sketchCoords_;else{if("Polygon"!==t)return;r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&r.shift(),r.pop();for(let t=0;te)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){YLe()}getAlpha(e,t){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;const r=t-n+1e3/60;return r>=this.transition_?1:vqe(r/this.transition_)}inTransition(e){return!!this.transition_&&-1!==this.transitionStarts_[e]}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}},GYe=class extends ZYe{constructor(e,t,n,r,i,o){super(e,t,o),this.crossOrigin_=r,this.src_=n,this.key=n,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.unlisten_=null,this.tileLoadFunction_=i}getImage(){return this.image_}setImage(e){this.image_=e,this.state=2,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=3,this.unlistenImage_(),this.image_=function(){const e=gBe(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=2:this.state=4,this.unlistenImage_(),this.changed()}load(){3==this.state&&(this.state=0,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),0==this.state&&(this.state=1,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=aVe(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};let HYe;const KYe=[];function JYe(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function eZe(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function tZe(e,t,n,r){const i=UUe(n,t,e);let o=IUe(t,r,n);const a=t.getMetersPerUnit();void 0!==a&&(o*=a);const s=e.getMetersPerUnit();void 0!==s&&(o/=s);const l=e.getExtent();if(!l||xFe(l,i)){const t=IUe(e,o,i)/o;isFinite(t)&&t>0&&(o/=t)}return o}const nZe=class extends ZYe{constructor(e,t,n,r,i,o,a,s,l,u,c,d){super(i,0,{interpolate:!!d}),this.renderEdges_=void 0!==c&&c,this.pixelRatio_=a,this.gutter_=s,this.canvas_=null,this.sourceTileGrid_=t,this.targetTileGrid_=r,this.wrappedTileCoord_=o||i,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const f=r.getTileCoordExtent(this.wrappedTileCoord_),h=this.targetTileGrid_.getExtent();let p=this.sourceTileGrid_.getExtent();const m=h?XFe(f,h):f;if(0===MFe(m))return void(this.state=4);const g=e.getExtent();g&&(p=p?XFe(p,g):g);const v=r.getResolution(this.wrappedTileCoord_[0]),O=function(e,t,n,r){const i=WFe(n);let o=tZe(e,t,i,r);return(!isFinite(o)||o<=0)&&DFe(n,(function(n){return o=tZe(e,t,n,r),isFinite(o)&&o>0})),o}(e,n,m,v);if(!isFinite(O)||O<=0)return void(this.state=4);const y=void 0!==u?u:.5;if(this.triangulation_=new class{constructor(e,t,n,r,i,o){this.sourceProj_=e,this.targetProj_=t;let a={};const s=FUe(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){const t=e[0]+"/"+e[1];return a[t]||(a[t]=s(e)),a[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&VFe(r)==VFe(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?VFe(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?VFe(this.targetProj_.getExtent()):null;const l=qFe(n),u=BFe(n),c=zFe(n),d=IFe(n),f=this.transformInv_(l),h=this.transformInv_(u),p=this.transformInv_(c),m=this.transformInv_(d),g=10+(o?Math.max(0,Math.ceil(Math.log2(MFe(n)/(o*o*256*256)))):0);if(this.addQuad_(l,u,c,d,f,h,p,m,g),this.wrapsXInSource_){let e=1/0;this.triangles_.forEach((function(t,n,r){e=Math.min(e,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach((t=>{if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-e>this.sourceWorldWidth_/2){const n=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];n[0][0]-e>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-e>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-e>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const r=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-r.5&&c<1;let h=!1;if(l>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(h=VFe(yFe([e,t,n,r]))/this.targetWorldWidth_>.25||h),!f&&this.sourceProj_.isGlobal()&&c&&(h=c>.25||h)),!h&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!YFe(u,this.maxSourceExtent_))return;let p=0;if(!(h||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])))if(l>0)h=!0;else if(p=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1),1!=p&&2!=p&&4!=p&&8!=p)return;if(l>0){if(!h){const t=[(e[0]+n[0])/2,(e[1]+n[1])/2],r=this.transformInv_(t);let o;o=f?(kUe(i[0],d)+kUe(a[0],d))/2-kUe(r[0],d):(i[0]+a[0])/2-r[0];const s=(i[1]+a[1])/2-r[1];h=o*o+s*s>this.errorThresholdSquared_}if(h){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){const u=[(t[0]+n[0])/2,(t[1]+n[1])/2],c=this.transformInv_(u),d=[(r[0]+e[0])/2,(r[1]+e[1])/2],f=this.transformInv_(d);this.addQuad_(e,t,u,d,i,o,c,f,l-1),this.addQuad_(d,u,n,r,f,c,a,s,l-1)}else{const u=[(e[0]+t[0])/2,(e[1]+t[1])/2],c=this.transformInv_(u),d=[(n[0]+r[0])/2,(n[1]+r[1])/2],f=this.transformInv_(d);this.addQuad_(e,u,d,r,i,c,f,s,l-1),this.addQuad_(u,t,n,d,c,o,a,f,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&p)&&this.addTriangle_(e,n,r,i,a,s),0==(14&p)&&this.addTriangle_(e,n,t,i,a,o),p&&(0==(13&p)&&this.addTriangle_(t,r,e,o,s,i),0==(7&p)&&this.addTriangle_(t,r,n,o,s,a))}calculateSourceExtent(){const e=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach((function(t,n,r){const i=t.source;RFe(e,i[0]),RFe(e,i[1]),RFe(e,i[2])})),e}getTriangles(){return this.triangles_}}(e,n,m,p,O*y,v),0===this.triangulation_.getTriangles().length)return void(this.state=4);this.sourceZ_=t.getZForResolution(O);let b=this.triangulation_.calculateSourceExtent();if(p&&(e.canWrapX()?(b[1]=OUe(b[1],p[1],p[3]),b[3]=OUe(b[3],p[1],p[3])):b=XFe(b,p)),MFe(b)){const e=t.getTileRangeForExtentAndZ(b,this.sourceZ_);for(let t=e.minX;t<=e.maxX;t++)for(let n=e.minY;n<=e.maxY;n++){const e=l(this.sourceZ_,t,n,a);e&&this.sourceTiles_.push(e)}0===this.sourceTiles_.length&&(this.state=4)}else this.state=4}getImage(){return this.canvas_}reproject_(){const e=[];if(this.sourceTiles_.forEach((t=>{t&&2==t.getState()&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})})),this.sourceTiles_.length=0,0===e.length)this.state=3;else{const t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),a=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(e,t,n,r,i,o,a,s,l,u,c,d){const f=gBe(Math.round(n*e),Math.round(n*t),KYe);if(d||(f.imageSmoothingEnabled=!1),0===l.length)return f.canvas;function h(e){return Math.round(e*n)/n}f.scale(n,n),f.globalCompositeOperation="lighter";const p=[1/0,1/0,-1/0,-1/0];l.forEach((function(e,t,n){QFe(p,e.extent)}));const m=VFe(p),g=UFe(p),v=gBe(Math.round(n*m/r),Math.round(n*g/r),KYe);d||(v.imageSmoothingEnabled=!1);const O=n/r;l.forEach((function(e,t,n){const r=e.extent[0]-p[0],i=-(e.extent[3]-p[3]),o=VFe(e.extent),a=UFe(e.extent);e.image.width>0&&e.image.height>0&&v.drawImage(e.image,u,u,e.image.width-2*u,e.image.height-2*u,r*O,i*O,o*O,a*O)}));const y=qFe(a);return s.getTriangles().forEach((function(e,t,i){const a=e.source,s=e.target;let l=a[0][0],u=a[0][1],c=a[1][0],m=a[1][1],g=a[2][0],O=a[2][1];const b=h((s[0][0]-y[0])/o),w=h(-(s[0][1]-y[1])/o),k=h((s[1][0]-y[0])/o),x=h(-(s[1][1]-y[1])/o),_=h((s[2][0]-y[0])/o),S=h(-(s[2][1]-y[1])/o),P=l,E=u;l=0,u=0,c-=P,m-=E,g-=P,O-=E;const C=function(e){const t=e.length;for(let n=0;ni&&(i=t,r=o)}if(0===i)return null;const o=e[r];e[r]=e[n],e[n]=o;for(let r=n+1;r=0;r--){n[r]=e[r][t]/e[r][r];for(let i=r-1;i>=0;i--)e[i][t]-=e[i][r]*n[r]}return n}([[c,m,0,0,k-b],[g,O,0,0,_-b],[0,0,c,m,x-w],[0,0,g,O,S-w]]);if(C){if(f.save(),f.beginPath(),function(){if(void 0===HYe){const e=gBe(6,6,KYe);e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",JYe(e,4,5,4,0),JYe(e,4,5,0,5);const t=e.getImageData(0,0,3,3).data;HYe=eZe(t,0)||eZe(t,4)||eZe(t,8),vBe(e),KYe.push(e.canvas)}return HYe}()||!d){f.moveTo(k,x);const e=4,t=b-k,n=w-x;for(let r=0;r{const n=t.getState();if(0==n||1==n){e++;const n=ULe(t,FLe.CHANGE,(function(r){const i=t.getState();2!=i&&3!=i&&4!=i||(qLe(n),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(n)}})),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(e,t,n){0==e.getState()&&e.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(qLe),this.sourcesListenerKeys_=null}release(){this.canvas_&&(vBe(this.canvas_.getContext("2d")),KYe.push(this.canvas_),this.canvas_=null),super.release()}};class rZe{constructor(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function iZe(e,t,n,r,i){return void 0!==i?(i.minX=e,i.maxX=t,i.minY=n,i.maxY=r,i):new rZe(e,t,n,r)}const oZe=rZe,aZe=class extends zVe{constructor(e){super(e),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=[1/0,1/0,-1/0,-1/0],this.tmpTileRange_=new oZe(0,0,0,0)}isDrawableTile(e){const t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return 2==n||4==n||3==n&&!r}getTile(e,t,n,r){const i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer();let s=a.getSource().getTile(e,t,n,i,o);return 3==s.getState()&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(s)||(s=s.getInterimTile()),s}getData(e){const t=this.frameState;if(!t)return null;const n=this.getLayer(),r=hFe(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!xFe(i,r))return null;const o=t.pixelRatio,a=t.viewState.projection,s=t.viewState,l=n.getRenderSource(),u=l.getTileGridForProjection(s.projection),c=l.getTilePixelRatio(t.pixelRatio);for(let e=u.getZForResolution(s.resolution);e>=u.getMinZoom();--e){const t=u.getTileCoordForCoordAndZ(r,e),n=l.getTile(e,t[1],t[2],o,a);if(!(n instanceof GYe||n instanceof nZe)||n instanceof nZe&&4===n.getState())return null;if(2!==n.getState())continue;const i=u.getOrigin(e),d=oBe(u.getTileSize(e)),f=u.getResolution(e),h=Math.floor(c*((r[0]-i[0])/f-t[1]*d[0])),p=Math.floor(c*((i[1]-r[1])/f-t[2]*d[1])),m=Math.round(c*l.getGutterForProjection(s.projection));return this.getImageData(n.getImage(),h+m,p+m)}return null}loadedTileCallback(e,t,n){return!!this.isDrawableTile(n)&&super.loadedTileCallback(e,t,n)}prepareFrame(e){return!!this.getLayer().getSource()}renderFrame(e,t){const n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,o=r.resolution,a=r.center,s=r.rotation,l=e.pixelRatio,u=this.getLayer(),c=u.getSource(),d=c.getRevision(),f=c.getTileGridForProjection(i),h=f.getZForResolution(o,c.zDirection),p=f.getResolution(h);let m=e.extent;const g=e.viewState.resolution,v=c.getTilePixelRatio(l),O=Math.round(VFe(m)/g*l),y=Math.round(UFe(m)/g*l),b=n.extent&&ZUe(n.extent);b&&(m=XFe(m,ZUe(n.extent)));const w=p*O/2/v,k=p*y/2/v,x=[a[0]-w,a[1]-k,a[0]+w,a[1]+k],_=f.getTileRangeForExtentAndZ(m,h),S={};S[h]={};const P=this.createLoadedTileFinder(c,i,S),E=this.tmpExtent,C=this.tmpTileRange_;this.newTiles_=!1;const T=s?FFe(r.center,g,s,e.size):void 0;for(let t=_.minX;t<=_.maxX;++t)for(let r=_.minY;r<=_.maxY;++r){if(s&&!f.tileCoordIntersectsViewport([h,t,r],T))continue;const i=this.getTile(h,t,r,e);if(this.isDrawableTile(i)){const t=GLe(this);if(2==i.getState()){S[h][i.tileCoord.toString()]=i;let e=i.inTransition(t);e&&1!==n.opacity&&(i.endTransition(t),e=!1),this.newTiles_||!e&&this.renderedTiles.includes(i)||(this.newTiles_=!0)}if(1===i.getAlpha(t,e.time))continue}const o=f.getTileCoordChildTileRange(i.tileCoord,C,E);let a=!1;o&&(a=P(h+1,o)),a||f.forEachTileCoordParentTileRange(i.tileCoord,P,C,E)}const $=p/o*l/v;pFe(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/l,1/l,s,-O/2,-y/2);const Q=vFe(this.pixelTransform);this.useContainer(t,Q,this.getBackground(e));const R=this.context,A=R.canvas;mFe(this.inversePixelTransform,this.pixelTransform),pFe(this.tempTransform,O/2,y/2,$,$,0,-O/2,-y/2),A.width!=O||A.height!=y?(A.width=O,A.height=y):this.containerReused||R.clearRect(0,0,O,y),b&&this.clipUnrotated(R,e,b),c.getInterpolate()||(R.imageSmoothingEnabled=!1),this.preRender(R,e),this.renderedTiles.length=0;let j,D,M,I=Object.keys(S).map(Number);I.sort(QLe),1!==n.opacity||this.containerReused&&!c.getOpaque(e.viewState.projection)?(j=[],D=[]):I=I.reverse();for(let t=I.length-1;t>=0;--t){const n=I[t],r=c.getTilePixelSize(n,l,i),o=f.getResolution(n)/p,a=r[0]*o*$,s=r[1]*o*$,u=f.getTileCoordForCoordAndZ(qFe(x),n),d=f.getTileCoordExtent(u),m=hFe(this.tempTransform,[v*(d[0]-x[0])/p,v*(x[3]-d[3])/p]),g=v*c.getGutterForProjection(i),O=S[n];for(const t in O){const r=O[t],i=r.tileCoord,o=u[1]-i[1],l=Math.round(m[0]-(o-1)*a),d=u[2]-i[2],f=Math.round(m[1]-(d-1)*s),p=Math.round(m[0]-o*a),v=Math.round(m[1]-d*s),y=l-p,b=f-v,w=h===n,k=w&&1!==r.getAlpha(GLe(this),e.time);let x=!1;if(!k)if(j){M=[p,v,p+y,v,p+y,v+b,p,v+b];for(let e=0,t=j.length;e=0;--i){const o=p[i],d=o.layer;if(d.hasRenderer()&&Hqe(o,u)&&a.call(s,d)){const i=d.getRenderer(),a=d.getSource();if(i&&a){const s=a.getWrapX()?f:e,u=c.bind(null,o.managed);v[0]=s[0]+h[r][0],v[1]=s[1]+h[r][1],l=i.forEachFeatureAtCoordinate(v,t,n,u,g)}if(l)return l}}if(0===g.length)return;const O=1/g.length;return g.forEach(((e,t)=>e.distanceSq+=t*O)),g.sort(((e,t)=>e.distanceSq-t.distanceSq)),g.some((e=>l=e.callback(e.feature,e.layer,e.geometry))),l}hasFeatureAtCoordinate(e,t,n,r,i,o){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,MLe,this,i,o)}getMap(){return this.map_}renderFrame(e){YLe()}scheduleExpireIconCache(e){oVe.canExpireCache()&&e.postRenderFunctions.push(lZe)}},cZe=class extends uZe{constructor(e){super(e),this.fontChangeListenerKey_=ULe(MBe,TLe,e.redrawText.bind(e)),this.element_=document.createElement("div");const t=this.element_.style;t.position="absolute",t.width="100%",t.height="100%",t.zIndex="0",this.element_.className=wBe+" ol-layers";const n=e.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(e,t){const n=this.getMap();if(n.hasListener(e)){const r=new DVe(e,void 0,t);n.dispatchEvent(r)}}disposeInternal(){qLe(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(e){if(!e)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(e),this.dispatchRenderEvent(Dqe,e);const t=e.layerStatesArray.sort((function(e,t){return e.zIndex-t.zIndex})),n=e.viewState;this.children_.length=0;const r=[];let i=null;for(let o=0,a=t.length;o=0;--t)r[t].renderDeclutter(e);!function(e,t){const n=e.childNodes;for(let r=0;;++r){const i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}(this.element_,this.children_),this.dispatchRenderEvent("postcompose",e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}};class dZe extends CLe{constructor(e,t){super(e),this.layer=t}}const fZe="layers";class hZe extends jqe{constructor(e){e=e||{};const t=Object.assign({},e);delete t.layers;let n=e.layers;super(t),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(fZe,this.handleLayersChanged_),n?Array.isArray(n)?n=new fYe(n.slice(),{unique:!0}):nFe("function"==typeof n.getArray,43):n=new fYe(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(qLe),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(ULe(e,lYe,this.handleLayersAdd_,this),ULe(e,uYe,this.handleLayersRemove_,this));for(const e in this.listenerKeys_)this.listenerKeys_[e].forEach(qLe);WLe(this.listenerKeys_);const t=e.getArray();for(let e=0,n=t.length;e{this.clickTimeoutId_=void 0;const t=new mqe(gqe.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}),250)}updateActivePointers_(e){const t=e,n=t.pointerId;if(t.type==gqe.POINTERUP||t.type==gqe.POINTERCANCEL){delete this.trackedTouches_[n];for(const e in this.trackedTouches_)if(this.trackedTouches_[e].target!==t.target){delete this.trackedTouches_[e];break}}else t.type!=gqe.POINTERDOWN&&t.type!=gqe.POINTERMOVE||(this.trackedTouches_[n]=t);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const t=new mqe(gqe.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(qLe),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return 0===e.button}handlePointerDown_(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);const t=new mqe(gqe.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(t),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),0===this.dragListenerKeys_.length){const e=this.map_.getOwnerDocument();this.dragListenerKeys_.push(ULe(e,gqe.POINTERMOVE,this.handlePointerMove_,this),ULe(e,gqe.POINTERUP,this.handlePointerUp_,this),ULe(this.element_,gqe.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==e&&this.dragListenerKeys_.push(ULe(this.element_.getRootNode(),gqe.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const t=new mqe(gqe.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new mqe(gqe.POINTERMOVE,this.map_,e,t))}handleTouchMove_(e){const t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(qLe(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(FLe.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(qLe(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(qLe),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},vZe="postrender",OZe="loadstart",yZe="loadend",bZe="layergroup",wZe="size",kZe="target",xZe="view",_Ze=1/0,SZe=class{constructor(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,WLe(this.queuedElements_)}dequeue(){const e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));const r=this.keyFunction_(n);return delete this.queuedElements_[r],n}enqueue(e){nFe(!(this.keyFunction_(e)in this.queuedElements_),31);const t=this.priorityFunction_(e);return t!=_Ze&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(e){return 2*e+1}getRightChildIndex_(e){return 2*e+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return 0===this.elements_.length}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;for(;e>1;){const i=this.getLeftChildIndex_(e),o=this.getRightChildIndex_(e),a=oe;){const e=this.getParentIndex_(t);if(!(r[e]>o))break;n[t]=n[e],r[t]=r[e],t=e}n[t]=i,r[t]=o}reprioritize(){const e=this.priorityFunction_,t=this.elements_,n=this.priorities_;let r=0;const i=t.length;let o,a,s;for(a=0;a0;)r=this.dequeue()[0],i=r.getKey(),n=r.getState(),0!==n||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,r.load())}},EZe=class extends KLe{constructor(e){super();const t=e.element;!t||e.target||t.style.pointerEvents||(t.style.pointerEvents="auto"),this.element=t||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){yBe(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&yBe(this.element);for(let e=0,t=this.listenerKeys.length;et.getAttributions(e))))),n=!this.getMap().getAllLayers().some((e=>e.getSource()&&!1===e.getSource().getAttributionsCollapsible()));return this.overrideCollapsible_||this.setCollapsible(n),t}updateElement_(e){if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!DLe(t,this.renderedAttributions_)){!function(e){for(;e.lastChild;)e.removeChild(e.lastChild)}(this.ulElement_);for(let e=0,n=t.length;e0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:Oqe}):e.setRotation(0))}render(e){const t=e.frameState;if(!t)return;const n=t.viewState.rotation;if(n!=this.rotation_){const e="rotate("+n+"rad)";if(this.autoHide_){const e=this.element.classList.contains(bBe);e||0!==n?e&&0!==n&&this.element.classList.remove(bBe):this.element.classList.add(bBe)}this.label_.style.transform=e}this.rotation_=n}},$Ze=class extends EZe{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const t=void 0!==e.className?e.className:"ol-zoom",n=void 0!==e.delta?e.delta:1,r=void 0!==e.zoomInClassName?e.zoomInClassName:t+"-in",i=void 0!==e.zoomOutClassName?e.zoomOutClassName:t+"-out",o=void 0!==e.zoomInLabel?e.zoomInLabel:"+",a=void 0!==e.zoomOutLabel?e.zoomOutLabel:"–",s=void 0!==e.zoomInTipLabel?e.zoomInTipLabel:"Zoom in",l=void 0!==e.zoomOutTipLabel?e.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=s,u.appendChild("string"==typeof o?document.createTextNode(o):o),u.addEventListener(FLe.CLICK,this.handleClick_.bind(this,n),!1);const c=document.createElement("button");c.className=i,c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof a?document.createTextNode(a):a),c.addEventListener(FLe.CLICK,this.handleClick_.bind(this,-n),!1);const d=t+" "+wBe+" "+kBe,f=this.element;f.className=d,f.appendChild(u),f.appendChild(c),this.duration_=void 0!==e.duration?e.duration:250}handleClick_(e,t){t.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const t=this.getMap().getView();if(!t)return;const n=t.getZoom();if(void 0!==n){const r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:Oqe})):t.setZoom(r)}}},QZe=class extends kqe{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:250}handleEvent(e){let t=!1;if(e.type==gqe.DBLCLICK){const n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_;wqe(r.getView(),o,i,this.duration_),n.preventDefault(),t=!0}return!t}},RZe=class extends _qe{constructor(e){super({stopDown:ILe}),e=e||{},this.kinetic_=e.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const t=e.condition?e.condition:kYe(CYe,RYe);this.condition_=e.onFocusOnly?kYe(_Ye,t):t,this.noKinetic_=!1}handleDragEvent(e){const t=e.map;this.panning_||(this.panning_=!0,t.getView().beginInteraction());const n=this.targetPointers,r=t.getEventPixel(xqe(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){const t=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],n=e.map.getView();i=t,o=n.getResolution(),i[0]*=o,i[1]*=o,pUe(t,n.getRotation()),n.adjustCenterInternal(t)}}else this.kinetic_&&this.kinetic_.begin();var i,o;this.lastCentroid=r,this.lastPointersCount_=n.length,e.originalEvent.preventDefault()}handleUpEvent(e){const t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const e=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),i=n.getCenterInternal(),o=t.getPixelFromCoordinateInternal(i),a=t.getCoordinateFromPixelInternal([o[0]-e*Math.cos(r),o[1]-e*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(a),duration:500,easing:Oqe})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(e){if(this.targetPointers.length>0&&this.condition_(e)){const t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},AZe=class extends _qe{constructor(e){e=e||{},super({stopDown:ILe}),this.condition_=e.condition?e.condition:xYe,this.lastAngle_=void 0,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){if(!QYe(e))return;const t=e.map,n=t.getView();if(n.getConstraints().rotation===qqe)return;const r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){const e=o-this.lastAngle_;n.adjustRotationInternal(-e)}this.lastAngle_=o}handleUpEvent(e){return!QYe(e)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){return!!QYe(e)&&(!(!PYe(e)||!this.condition_(e))&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}},jZe=class extends $Le{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new iqe([n])}getGeometry(){return this.geometry_}};class DZe extends CLe{constructor(e,t,n){super(e),this.coordinate=t,this.mapBrowserEvent=n}}const MZe=class extends _qe{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.box_=new jZe(e.className||"ol-dragbox"),this.minArea_=void 0!==e.minArea?e.minArea:64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition?e.condition:PYe,this.boxEndCondition_=e.boxEndCondition?e.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(e,t,n){const r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new DZe("boxdrag",e.coordinate,e))}handleUpEvent(e){this.box_.setMap(null);const t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new DZe(t?"boxend":"boxcancel",e.coordinate,e)),!1}handleDownEvent(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new DZe("boxstart",e.coordinate,e)),!0)}onBoxEnd(e){}},IZe=class extends MZe{constructor(e){super({condition:(e=e||{}).condition?e.condition:TYe,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=void 0!==e.duration?e.duration:200,this.out_=void 0!==e.out&&e.out}onBoxEnd(e){const t=this.getMap().getView();let n=this.getGeometry();if(this.out_){const e=t.rotatedExtentForGeometry(n),r=t.getResolutionForExtentInternal(e),i=t.getResolution()/r;n=n.clone(),n.scale(i*i)}t.fitInternal(n,{duration:this.duration_,easing:Oqe})}},zZe=class extends kqe{constructor(e){super(),e=e||{},this.defaultCondition_=function(e){return CYe(e)&&$Ye(e)},this.condition_=void 0!==e.condition?e.condition:this.defaultCondition_,this.duration_=void 0!==e.duration?e.duration:100,this.pixelDelta_=void 0!==e.pixelDelta?e.pixelDelta:128}handleEvent(e){let t=!1;if(e.type==FLe.KEYDOWN){const n=e.originalEvent,r=n.keyCode;if(this.condition_(e)&&(40==r||37==r||39==r||38==r)){const i=e.map.getView(),o=i.getResolution()*this.pixelDelta_;let a=0,s=0;40==r?s=-o:37==r?a=-o:39==r?a=o:s=o;const l=[a,s];pUe(l,i.getRotation()),function(e,t,n){const r=e.getCenterInternal();if(r){const i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:bqe,center:e.getConstrainedCenter(i)})}}(i,l,this.duration_),n.preventDefault(),t=!0}}return!t}},WZe=class extends kqe{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:$Ye,this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:100}handleEvent(e){let t=!1;if(e.type==FLe.KEYDOWN||e.type==FLe.KEYPRESS){const n=e.originalEvent,r=n.key;if(this.condition_(e)&&("+"===r||"-"===r)){const i=e.map,o="+"===r?this.delta_:-this.delta_;wqe(i.getView(),o,void 0,this.duration_),n.preventDefault(),t=!0}}return!t}},NZe=class extends kqe{constructor(e){super(e=e||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==e.maxDelta?e.maxDelta:1,this.duration_=void 0!==e.duration?e.duration:250,this.timeout_=void 0!==e.timeout?e.timeout:80,this.useAnchor_=void 0===e.useAnchor||e.useAnchor,this.constrainResolution_=void 0!==e.constrainResolution&&e.constrainResolution;const t=e.condition?e.condition:SYe;this.condition_=e.onFocusOnly?kYe(_Ye,t):t,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(e){if(!this.condition_(e))return!0;if(e.type!==FLe.WHEEL)return!0;const t=e.map,n=e.originalEvent;let r;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==FLe.WHEEL&&(r=n.deltaY,aFe&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=uFe),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;const i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const o=t.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=r;const a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,t),a),!1}handleWheelZoom_(e){const t=e.getView();t.getAnimating()&&t.cancelAnimations();let n=-OUe(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),wqe(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}},LZe=class extends _qe{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=ILe),super(t),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==e.threshold?e.threshold:.3,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){let t=0;const n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){const e=i-this.lastAngle_;this.rotationDelta_+=e,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=e}this.lastAngle_=i;const o=e.map,a=o.getView();a.getConstraints().rotation!==qqe&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(xqe(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(t,this.anchor_)))}handleUpEvent(e){return!(this.targetPointers.length<2)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}},FZe=class extends _qe{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=ILe),super(t),this.anchor_=null,this.duration_=void 0!==e.duration?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let t=1;const n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;const s=e.map,l=s.getView();1!=t&&(this.lastScaleDelta_=t),this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(xqe(this.targetPointers))),s.render(),l.adjustResolutionInternal(t,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}};function UZe(e){e instanceof Kqe?e.setMapInternal(null):e instanceof pZe&&e.getLayers().forEach(UZe)}function XZe(e,t){if(e instanceof Kqe)e.setMapInternal(t);else if(e instanceof pZe){const n=e.getLayers().getArray();for(let e=0,r=n.length;ethis.updateSize())),this.controls=t.controls||function(e){e=e||{};const t=new fYe;return(void 0===e.zoom||e.zoom)&&t.push(new $Ze(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&t.push(new TZe(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&t.push(new CZe(e.attributionOptions)),t}(),this.interactions=t.interactions||function(e){e=e||{};const t=new fYe,n=new class{constructor(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,t){this.points_.push(e,t,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[n+2]>e;)n-=3;const r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;const i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&t.push(new AZe),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&t.push(new QZe({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&t.push(new RZe({onFocusOnly:e.onFocusOnly,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&t.push(new LZe),(void 0===e.pinchZoom||e.pinchZoom)&&t.push(new FZe({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(t.push(new zZe),t.push(new WZe({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&t.push(new NZe({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&t.push(new IZe({duration:e.zoomDuration})),t}({onFocusOnly:!0}),this.overlays_=t.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new PZe(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(bZe,this.handleLayerGroupChanged_),this.addChangeListener(xZe,this.handleViewChanged_),this.addChangeListener(wZe,this.handleSizeChanged_),this.addChangeListener(kZe,this.handleTargetChanged_),this.setProperties(t.values);const n=this;!e.view||e.view instanceof Gqe||e.view.then((function(e){n.setView(new Gqe(e))})),this.controls.addEventListener(lYe,(e=>{e.element.setMap(this)})),this.controls.addEventListener(uYe,(e=>{e.element.setMap(null)})),this.interactions.addEventListener(lYe,(e=>{e.element.setMap(this)})),this.interactions.addEventListener(uYe,(e=>{e.element.setMap(null)})),this.overlays_.addEventListener(lYe,(e=>{this.addOverlayInternal_(e.element)})),this.overlays_.addEventListener(uYe,(e=>{const t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)})),this.controls.forEach((e=>{e.setMap(this)})),this.interactions.forEach((e=>{e.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){XZe(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,t,n){if(!this.frameState_||!this.renderer_)return;const r=this.getCoordinateFromPixelInternal(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:MLe,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,a,t,null,o,null)}getFeaturesAtPixel(e,t){const n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n}getAllLayers(){const e=[];return function t(n){n.forEach((function(n){n instanceof pZe?t(n.getLayers()):e.push(n)}))}(this.getLayers()),e}hasFeatureAtPixel(e,t){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:MLe,i=void 0!==t.hitTolerance?t.hitTolerance:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const t=this.viewport_.getBoundingClientRect(),n=this.getSize(),r=t.width/n[0],i=t.height/n[1],o="changedTouches"in e?e.changedTouches[0]:e;return[(o.clientX-t.left)/r,(o.clientY-t.top)/i]}getTarget(){return this.get(kZe)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return BUe(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const t=this.frameState_;return t?hFe(t.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(bZe)}setLayers(e){const t=this.getLayerGroup();if(e instanceof fYe)return void t.setLayers(e);const n=t.getLayers();n.clear(),n.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,n=e.length;t=0;n--){const r=t[n];if(r.getMap()===this&&r.getActive()&&this.getTargetElement()&&(!r.handleEvent(e)||e.propagationStopped))break}}}handlePostRender(){const e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){let n=this.maxTilesLoading_,r=n;if(e){const t=e.viewHints;if(t[0]||t[1]){const t=Date.now()-e.time>8;n=t?0:8,r=t?0:2}}t.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(e){const t=this.getLayerGroup();t&&this.handleLayerRemove_(new dZe("removelayer",t)),this.set(bZe,e)}setSize(e){this.set(wZe,e)}setTarget(e){this.set(kZe,e)}setView(e){if(!e||e instanceof Gqe)return void this.set(xZe,e);this.set(xZe,new Gqe);const t=this;e.then((function(e){t.setView(new Gqe(e))}))}updateSize(){const e=this.getTargetElement();let t;if(e){const n=getComputedStyle(e),r=e.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=e.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(t=[r,i],!iBe(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&QUe("No map visible because the map container's width or height are 0."))}const n=this.getSize();!t||n&&DLe(t,n)||(this.setSize(t),this.updateViewportSize_())}updateViewportSize_(){const e=this.getView();if(e){let t;const n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}}},BZe=class{constructor(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let t=this.oldest_;for(;t;)e(t.value_,t.key_,this),t=t.newer}get(e,t){const n=this.entries_[e];return nFe(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(e){const t=this.entries_[e];return nFe(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let t,n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e}getValues(){const e=new Array(this.count_);let t,n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){if(this.containsKey(e))return this.entries_[e].value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,t){this.get(e),this.entries_[e].value_=t}set(e,t){nFe(!(e in this.entries_),16);const n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_}setSize(e){this.highWaterMark=e}};function VZe(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function YZe(e,t,n){return e+"/"+t+"/"+n}function ZZe(e){return YZe(e[0],e[1],e[2])}const GZe=class extends BZe{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const e=function(e){return e.split("/").map(Number)}(this.peekFirstKey()),t=e[0];this.forEach((e=>{e.tileCoord[0]!==t&&(this.remove(ZZe(e.tileCoord)),e.release())}))}},HZe=[0,0,0],KZe=class{constructor(e){let t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,nFe(function(e,t,n){const r=function(e,t){return t-e}||QLe;return e.every((function(t,n){if(0===n)return!0;const i=r(e[n-1],t);return!(i>0||0===i)}))}(this.resolutions_),17),!e.origins)for(let e=0,n=this.resolutions_.length-1;e=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),i=iZe(o,o,a,a,n)):i=this.getTileRangeForExtentAndZ(s,l,n),t(l,i))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,t,n){if(e[0]this.maxZoom||t0?r:Math.max(o/n[0],i/n[1]);const a=t+1,s=new Array(a);for(let e=0;en||n>t.getMaxZoom())return!1;const o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}(e,n)?e:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(e,t){const n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)}useTile(e,t,n,r){}};function iGe(e,t){const n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){if(a)return e.replace(n,a[0].toString()).replace(r,a[1].toString()).replace(i,a[2].toString()).replace(o,(function(){const e=a[0],n=t.getFullTileRange(e);return nFe(n,55),(n.getHeight()-a[2]-1).toString()}))}}class oGe extends rGe{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===oGe.prototype.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(this.tileUrlFunction=e.tileUrlFunction),this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(e){const t=e.target,n=GLe(t),r=t.getState();let i;1==r?(this.tileLoadingKeys_[n]=!0,i="tileloadstart"):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],i=3==r?"tileloaderror":2==r?"tileloadend":void 0),null!=i&&this.dispatchEvent(new nGe(i,t))}setTileLoadFunction(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()}setTileUrlFunction(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()}setUrl(e){const t=function(e){const t=[];let n=/\{([a-z])-([a-z])\}/.exec(e);if(n){const r=n[1].charCodeAt(0),i=n[2].charCodeAt(0);let o;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e),n){const r=parseInt(n[2],10);for(let i=parseInt(n[1],10);i<=r;i++)t.push(e.replace(n[0],i.toString()));return t}return t.push(e),t}(e);this.urls=t,this.setUrls(t)}setUrls(e){this.urls=e;const t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(e,t){const n=e.length,r=new Array(n);for(let i=0;ithis.getTileInternal(e,t,n,r,o)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return p.key=c,l?(p.interimTile=l,p.refreshInterimChain(),a.replace(u,p)):a.set(u,p),p}getTileInternal(e,t,n,r,i){let o=null;const a=YZe(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=s){const l=o;o=this.createTile_(e,t,n,r,i,s),0==l.getState()?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(e,t,n,r,i,s),this.tileCache.set(a,o);return o}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(e,t){const n=MUe(e);if(n){const e=GLe(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}},uGe=class extends lGe{constructor(e){const t=void 0!==(e=e||{}).projection?e.projection:"EPSG:3857",n=void 0!==e.tileGrid?e.tileGrid:function(e){const t=e||{},n=t.extent||MUe("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:eGe(n,t.maxZoom,t.tileSize,t.maxResolution)};return new KZe(r)}({extent:tGe(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,opaque:e.opaque,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=void 0!==e.gutter?e.gutter:0}getGutter(){return this.gutter_}},cGe=class extends uGe{constructor(e){let t;t=void 0!==(e=e||{}).attributions?e.attributions:['© OpenStreetMap contributors.'];const n=void 0!==e.crossOrigin?e.crossOrigin:"anonymous",r=void 0!==e.url?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:t,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:n,interpolate:e.interpolate,maxZoom:void 0!==e.maxZoom?e.maxZoom:19,opaque:void 0===e.opaque||e.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:r,wrapX:e.wrapX,zDirection:e.zDirection})}},dGe=UD("WidgetMap",["root","error","required","disabled","for-single-list","map"]),fGe={dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"},hGe=({getFormat:e,getMap:t}={})=>{const n=({value:n,field:r,onChange:i,errors:o,hasErrors:a,forSingleList:s,label:l,disabled:u})=>{const{height:d="400px"}=r,f=(0,c.useRef)(null);return(0,c.useLayoutEffect)((()=>{var o,a;const s=e?e(r):new cqe(fGe),l=n?[s.readFeature(n)]:[],c=new wYe({features:l,wrapX:!1}),d=new sYe({source:c}),h=f.current;if(!h)return;const p=t?t(h,d):function(e,t){return new qZe({target:e,layers:[new sZe({source:new cGe}),t],view:new Gqe({center:[0,0],zoom:2})})}(h,d);l.length>0&&p.getView().fit(c.getExtent(),{maxZoom:16,padding:[80,80,80,80]});const m=new qYe({source:c,type:null!==(o=r.type)&&void 0!==o?o:"Point"});p.addInteraction(m);const g={decimals:null!==(a=r.decimals)&&void 0!==a?a:7};m.on("drawend",(({feature:e})=>{if(c.clear(),u)return;const t=e.getGeometry();t&&i(s.writeGeometry(t,g))}))}),[]),c.createElement(Mfe,{label:l,errors:o,hint:r.hint,forSingleList:s,noPadding:!0,disabled:u,rootClassName:qD(dGe.root,u&&dGe.disabled,!1!==r.required&&dGe.required,a&&dGe.error,s&&dGe["for-single-list"])},c.createElement("div",{ref:f,className:dGe.map,style:{height:d}}))};return n.displayName="MapControl",n},pGe=hGe(),mGe=()=>({name:"map",controlComponent:pGe,previewComponent:PLe,options:{schema:ELe}}),gGe=UD("TextArea",["root","input"]),vGe=(0,c.forwardRef)((({value:e,disabled:t,placeholder:n,rootClassName:r,inputClassName:i,"data-testid":o,onChange:a},s)=>{const[l,u]=(0,c.useState)(80),d=(0,c.useCallback)((()=>{const e=null==s?void 0:s.current;if(!e)return;const t=(n=e.style.height,Number(n.replace("px","")));var n;e.style.height="5px";let r=e.scrollHeight;r<80&&(r=80),t!==l&&t>=r?e.style.height=`${t}px`:(r>68&&(e.style.paddingBottom="12px",r+=12),e.style.height=`${r}px`,u(r))}),[l,s]);return(0,c.useLayoutEffect)((()=>{d()}),[]),c.createElement(L0,{multiline:!0,minRows:4,onInput:d,onChange:a,value:e,disabled:t,"data-testid":null!=o?o:"textarea-input",slotProps:{root:{className:qD(gGe.root,r)},input:{ref:s,placeholder:n,className:qD(gGe.input,i)}}})}));vGe.displayName="TextArea";const OGe=vGe,yGe=UD("WidgetMarkdown",["root","error","required","disabled","for-single-list","raw-editor","rich-editor","plate-editor-wrapper","plate-editor","controls"]),bGe=Symbol(),wGe=e=>!!e[bGe],kGe=e=>{var t,n;null==(n=(t=e[bGe]).c)||n.call(t)},xGe=(e,t)=>{const n=e[bGe].o,r=t[bGe].o;return n===r||e===r||wGe(n)&&xGe(n,t)},_Ge=e=>{const t={o:e,c:null},n=new Promise((n=>{t.c=()=>{t.c=null,n()},e.then(t.c,t.c)}));return n[bGe]=t,n};var SGe=Object.defineProperty,PGe=Object.defineProperties,EGe=Object.getOwnPropertyDescriptors,CGe=Object.getOwnPropertySymbols,TGe=Object.prototype.hasOwnProperty,$Ge=Object.prototype.propertyIsEnumerable,QGe=(e,t,n)=>t in e?SGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const RGe=e=>"init"in e,AGe="r",jGe="w",DGe="c",MGe="s",IGe=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let i,o;if(i=new Set,o=new Set,e)for(const[n,r]of e){const e={v:r,r:0,d:new Map};Object.freeze(e),RGe(n)||console.warn("Found initial value for derived atom which can cause unexpected behavior",n),t.set(n,e)}const a=new WeakMap,s=new WeakMap,l=e=>{let t=s.get(e);return t||(t=new Map,s.set(e,t)),t},u=(e,n)=>{if(e){const t=l(e);let r=t.get(n);return r||(r=u(e.p,n),r&&("p"in r&&r.p.then((()=>t.delete(n))),t.set(n,r))),r}return t.get(n)},c=(e,n,i)=>{if(Object.freeze(i),e)l(e).set(n,i);else{const e=t.get(n);t.set(n,i),r.has(n)||r.set(n,e)}},d=(e,t=new Map,n)=>{if(!n)return t;const r=new Map;let i=!1;return n.forEach((n=>{var o;const a=(null==(o=u(e,n))?void 0:o.r)||0;r.set(n,a),t.get(n)!==a&&(i=!0)})),t.size!==r.size||i?r:t},f=(e,t,n,r,i)=>{const o=u(e,t);if(o){if(i&&(!("p"in o)||!xGe(o.p,i)))return o;"p"in o&&kGe(o.p)}const a={v:n,r:(null==o?void 0:o.r)||0,d:d(e,null==o?void 0:o.d,r)};let s=!1;return o&&"v"in o&&Object.is(o.v,n)?a.d===o.d||a.d.size===o.d.size&&Array.from(a.d.keys()).every((e=>o.d.has(e)))||(s=!0,Promise.resolve().then((()=>{_(e)}))):(s=!0,++a.r,a.d.has(t)&&(a.d=new Map(a.d).set(t,a.r))),o&&!s?o:(c(e,t,a),a)},h=(e,t,n,r,i)=>{const o=u(e,t);if(o){if(i&&(!("p"in o)||!xGe(o.p,i)))return o;"p"in o&&kGe(o.p)}const a={e:n,r:(null==o?void 0:o.r)||0,d:d(e,null==o?void 0:o.d,r)};return c(e,t,a),a},p=(e,t,n,r)=>{const i=u(e,t);if(i&&"p"in i){if(xGe(i.p,n))return i;kGe(i.p)}((e,t,n)=>{let r=a.get(t);r||(r=new Map,a.set(t,r)),n.then((()=>{r.get(e)===n&&(r.delete(e),r.size||a.delete(t))})),r.set(e,n)})(e,t,n);const o={p:n,r:(null==i?void 0:i.r)||0,d:d(e,null==i?void 0:i.d,r)};return c(e,t,o),o},m=(e,t,n,r)=>{if(n instanceof Promise){const i=_Ge(n.then((n=>{f(e,t,n,r,i)})).catch((n=>{if(n instanceof Promise)return wGe(n)?n.then((()=>{g(e,t,!0)})):n;h(e,t,n,r,i)})));return p(e,t,i,r)}return f(e,t,n,r)},g=(e,t,r)=>{if(!r){const r=u(e,t);if(r){if(r.r!==r.i&&"p"in r&&r.p[bGe].c)return r;if(r.d.forEach(((r,i)=>{if(i!==t)if(n.has(i)){const t=u(e,i);t&&t.r===t.i&&g(e,i)}else g(e,i)})),Array.from(r.d).every((([t,n])=>{const r=u(e,t);return r&&"v"in r&&r.r===n})))return r}}const i=new Set;try{const n=t.read((n=>{i.add(n);const r=n===t?u(e,n):g(e,n);if(r){if("e"in r)throw r.e;if("p"in r)throw r.p;return r.v}if(RGe(n))return n.init;throw new Error("no atom init")}));return m(e,t,n,i)}catch(n){if(n instanceof Promise){const r=_Ge(n);return p(e,t,r,i)}return h(e,t,n,i)}},v=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),O=(e,t)=>{const r=n.get(t);null==r||r.t.forEach((n=>{n!==t&&(((e,t)=>{const n=u(e,t);if(n){const r=((e,t)=>PGe(e,EGe(t)))(((e,t)=>{for(var n in t||(t={}))TGe.call(t,n)&&QGe(e,n,t[n]);if(CGe)for(var n of CGe(t))$Ge.call(t,n)&&QGe(e,n,t[n]);return e})({},n),{i:n.r});c(e,t,r)}else console.warn("[Bug] could not invalidate non existing atom",t)})(e,n),O(e,n))}))},y=(e,t,n)=>{let r=!0;const i=(t,n)=>{const r=g(e,t);if("e"in r)throw r.e;if("p"in r){if(null==n?void 0:n.unstable_promise)return r.p.then((()=>i(t,n)));throw console.info("Reading pending atom state in write operation. We throw a promise for now.",t),r.p}if("v"in r)return r.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",t),new Error("no value found")},o=t.write(i,((n,i)=>{let o;if(n===t){if(!RGe(n))throw new Error("atom not writable");const t=(e=>{const t=new Set,n=a.get(e);return n&&(a.delete(e),n.forEach(((e,n)=>{kGe(e),t.add(n)}))),t})(n);t.forEach((t=>{t!==e&&m(t,n,i)})),u(e,n)!==m(e,n,i)&&O(e,n)}else o=y(e,n,i);return r||_(e),o}),n);return r=!1,e=void 0,o},b=(e,t,n)=>{const r=y(n,e,t);return _(n),r},w=(e,t)=>{const r={t:new Set(t&&[t]),l:new Set};if(n.set(e,r),o.add(e),g(void 0,e).d.forEach(((t,r)=>{const i=n.get(r);i?i.t.add(e):r!==e&&w(r,e)})),(e=>!!e.write)(e)&&e.onMount){const t=t=>b(e,t),n=e.onMount(t);n&&(r.u=n)}return r},k=e=>{var t;const r=null==(t=n.get(e))?void 0:t.u;r&&r(),n.delete(e),o.delete(e);const i=u(void 0,e);i?i.d.forEach(((t,r)=>{if(r!==e){const t=n.get(r);t&&(t.t.delete(e),v(r,t)&&k(r))}})):console.warn("[Bug] could not find atom state to unmount",e)},x=(e,t,r)=>{const i=new Set(t.d.keys());null==r||r.forEach(((t,r)=>{if(i.has(r))return void i.delete(r);const o=n.get(r);o&&(o.t.delete(e),v(r,o)&&k(r))})),i.forEach((t=>{const r=n.get(t);r?r.t.add(e):n.has(e)&&w(t,e)}))},_=e=>{if(e)l(e).forEach(((r,i)=>{if(r!==t.get(i)){const t=n.get(i);null==t||t.l.forEach((t=>t(e)))}}));else{for(;r.size;){const e=Array.from(r);r.clear(),e.forEach((([e,t])=>{const r=u(void 0,e);if(r&&r.d!==(null==t?void 0:t.d)&&x(e,r,null==t?void 0:t.d),t&&"i"in t&&r&&!("i"in r))return;const i=n.get(e);null==i||i.l.forEach((e=>e()))}))}i.forEach((e=>e()))}};return{[AGe]:(e,t)=>g(t,e),[jGe]:b,[DGe]:(e,n)=>{n&&(e=>{l(e).forEach(((e,n)=>{const r=t.get(n);(e.r>((null==r?void 0:r.r)||0)||"v"in e&&e.r===(null==r?void 0:r.r)&&e.d!==(null==r?void 0:r.d))&&(t.set(n,e),e.d!==(null==r?void 0:r.d)&&x(n,e,null==r?void 0:r.d))}))})(n),_(void 0)},[MGe]:(e,t)=>{const r=(e=>{let t=n.get(e);return t||(t=w(e)),t})(e).l;return r.add(t),()=>{r.delete(t),(e=>{const t=n.get(e);t&&v(e,t)&&k(e)})(e)}},h:(e,t)=>{for(const[n,r]of e)RGe(n)&&(m(t,n,r),O(t,n));_(t)},n:e=>(i.add(e),()=>{i.delete(e)}),l:()=>o.values(),a:e=>t.get(e),m:e=>n.get(e)}},zGe=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:IGe(e)}),WGe=new Map,NGe=e=>(WGe.has(e)||WGe.set(e,(0,c.createContext)(zGe())),WGe.get(e)),LGe=({children:e,initialValues:t,scope:n,unstable_createStore:r,unstable_enableVersionedWrite:i})=>{const[o,a]=(0,c.useState)({});(0,c.useEffect)((()=>{o&&(s.current.s[DGe](null,o),delete o.p)}),[o]);const s=(0,c.useRef)();s.current||(s.current=zGe(t,r),i&&(s.current.w=e=>{a((t=>{const n=t?{p:t}:{};return e(n),n}))}));const l=NGe(n);return(0,c.createElement)(l.Provider,{value:s.current},e)};let FGe=0;function UGe(e,t){const n="atom"+ ++FGe,r={toString:()=>n};return"function"==typeof e?r.read=e:(r.init=e,r.read=e=>e(r),r.write=(e,t,n)=>t(r,"function"==typeof n?n(e(r)):n)),t&&(r.write=t),r}function XGe(e,t){const n=NGe(t),{s:r}=(0,c.useContext)(n),i=(0,c.useCallback)((t=>{const n=r[AGe](e,t);if("e"in n)throw n.e;if("p"in n)throw n.p;if("v"in n)return n.v;throw new Error("no atom value")}),[r,e]),[[o,a,s],l]=(0,c.useReducer)((0,c.useCallback)(((t,n)=>{const r=i(n);return Object.is(t[1],r)&&t[2]===e?t:[n,r,e]}),[i,e]),void 0,(()=>{const t=void 0;return[t,i(t),e]}));return s!==e&&l(void 0),(0,c.useEffect)((()=>{const t=r[MGe](e,l);return l(void 0),t}),[r,e]),(0,c.useEffect)((()=>{r[DGe](e,o)})),(0,c.useDebugValue)(a),a}function qGe(e,t){const n=NGe(t),{s:r,w:i}=(0,c.useContext)(n),o=(0,c.useCallback)((t=>{if(!("write"in e))throw new Error("not writable atom");const n=n=>r[jGe](e,t,n);return i?i(n):n()}),[r,i,e]);return o}function BGe(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[XGe(e,t),qGe(e,t)]}let VGe=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function YGe(){return YGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t'),1):!t||e.some((function(e){return t.includes(e)}))||e.includes("*"))){var e,t,n=function(e,t){var n;void 0===t&&(t=!1),(!iHe(e,["input","textarea","select"])||iHe(e,null==f?void 0:f.enableOnFormTags))&&(null!=f&&null!=f.ignoreEventWhen&&f.ignoreEventWhen(e)||(null===i.current||document.activeElement===i.current||i.current.contains(document.activeElement)?(null==(n=e.target)||!n.isContentEditable||null!=f&&f.enableOnContentEditable)&&KGe(s,null==f?void 0:f.splitKey).forEach((function(n){var r,i=JGe(n,null==f?void 0:f.combinationKey);if(function(e,t,n){void 0===n&&(n=!1);var r=t.alt,i=t.meta,o=t.mod,a=t.shift,s=t.ctrl,l=t.keys,u=e.key,c=e.code,d=e.ctrlKey,f=e.metaKey,h=e.shiftKey,p=e.altKey,m=HGe(c),g=u.toLowerCase();if(!n){if(r===!p&&"alt"!==g)return!1;if(a===!h&&"shift"!==g)return!1;if(o){if(!f&&!d)return!1}else{if(i===!f&&"meta"!==g&&"os"!==g)return!1;if(s===!d&&"ctrl"!==g&&"control"!==g)return!1}}return!(!l||1!==l.length||!l.includes(g)&&!l.includes(m))||(l?function(e,t){return void 0===t&&(t=","),(tHe(e)?e:e.split(t)).every((function(e){return eHe.has(e.trim().toLowerCase())}))}(l):!l)}(e,i,null==f?void 0:f.ignoreModifiers)||null!=(r=i.keys)&&r.includes("*")){if(t&&o.current)return;if(function(e,t,n){("function"==typeof n&&n(e,t)||!0===n)&&e.preventDefault()}(e,i,null==f?void 0:f.preventDefault),!function(e,t,n){return"function"==typeof n?n(e,t):!0===n||void 0===n}(e,i,null==f?void 0:f.enabled))return void lHe(e);d.current(e,i),t||(o.current=!0)}})):lHe(e)))},r=function(e){void 0!==e.key&&(nHe(HGe(e.code)),(void 0===(null==f?void 0:f.keydown)&&!0!==(null==f?void 0:f.keyup)||null!=f&&f.keydown)&&n(e))},l=function(e){void 0!==e.key&&(rHe(HGe(e.code)),o.current=!1,null!=f&&f.keyup&&n(e,!0))},u=i.current||(null==a?void 0:a.document)||document;return u.addEventListener("keyup",l),u.addEventListener("keydown",r),p&&KGe(s,null==f?void 0:f.splitKey).forEach((function(e){return p.addHotkey(JGe(e,null==f?void 0:f.combinationKey,null==f?void 0:f.description))})),function(){u.removeEventListener("keyup",l),u.removeEventListener("keydown",r),p&&KGe(s,null==f?void 0:f.splitKey).forEach((function(e){return p.removeHotkey(JGe(e,null==f?void 0:f.combinationKey,null==f?void 0:f.description))}))}}}),[s,f,h]),i}const dHe=Symbol(),fHe=Symbol(),hHe="a",pHe="w";const mHe=Object.getPrototypeOf,gHe=new WeakMap,vHe=e=>"object"==typeof e&&null!==e,OHe=new WeakMap,yHe=e=>e[fHe]||e,bHe=(e,t,n)=>{if(!(r=e)||!(gHe.has(r)?gHe.get(r):mHe(r)===Object.prototype||mHe(r)===Array.prototype))return e;var r;const i=yHe(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(i);let a=n&&n.get(i);return a&&a[1].f===o||(a=((e,t)=>{const n={f:t};let r=!1;const i=(t,i)=>{if(!r){let r=n[hHe].get(e);if(r||(r={},n[hHe].set(e,r)),t===pHe)r[pHe]=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(i)}}},o={get:(t,r)=>r===fHe?e:(i("k",r),bHe(Reflect.get(t,r),n[hHe],n.c)),has:(t,o)=>o===dHe?(r=!0,n[hHe].delete(e),!0):(i("h",o),Reflect.has(t,o)),getOwnPropertyDescriptor:(e,t)=>(i("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(i(pHe),Reflect.ownKeys(e))};return t&&(o.set=o.deleteProperty=()=>!1),[o,n]})(i,o),a[1].p=((e,t)=>new Proxy(e,t))(o?(e=>{let t=OHe.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(mHe(e),n)}OHe.set(e,t)}return t})(i):i,a[0]),n&&n.set(i,a)),a[1][hHe]=t,a[1].c=n,a[1].p},wHe=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!vHe(e)||!vHe(t))return!0;const i=n.get(yHe(e));if(!i)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let o=null;try{for(const n of i.h||[])if(o=Reflect.has(e,n)!==Reflect.has(t,n),o)return o;if(!0===i[pHe]){if(o=((e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))})(e,t),o)return o}else for(const n of i.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n),o)return o;for(const a of i.k||[])if(o=wHe(e[a],t[a],n,r),o)return o;return null===o&&(o=!0),o}finally{r&&r.set(e,{n:t,g:o})}};__webpack_require__(48494);const kHe="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?c.useEffect:c.useLayoutEffect;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const xHe=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};var _He=Object.defineProperty,SHe=Object.getOwnPropertySymbols,PHe=Object.prototype.hasOwnProperty,EHe=Object.prototype.propertyIsEnumerable,CHe=(e,t,n)=>t in e?_He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,THe=(e,t)=>{for(var n in t||(t={}))PHe.call(t,n)&&CHe(e,n,t[n]);if(SHe)for(var n of SHe(t))EHe.call(t,n)&&CHe(e,n,t[n]);return e};const $He=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>$He(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>$He(t)(e)}}};function QHe(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?((e,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!o(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}const RHe=e=>({...e,extendSelectors:t=>RHe(((e,t)=>{const n={...t.use},r={...t.useTracked},i={...t.get};return Object.keys(e(t.store.getState(),t.get,t)).forEach((o=>{n[o]=(...n)=>t.useStore((r=>(0,e(r,t.get,t)[o])(...n))),r[o]=(...n)=>{const r=t.useTrackedStore();return(0,e(r,t.get,t)[o])(...n)},i[o]=(...n)=>(0,e(t.store.getState(),t.get,t)[o])(...n)})),{...t,get:i,use:n,useTracked:r}})(t,e)),extendActions:t=>RHe(((e,t)=>{const n=e(t.set,t.get,t);return{...t,set:{...t.set,...n}}})(t,e))}),AHe=e=>(t,n,r)=>{const i=(e,n)=>t(DR(e),!0,n);return r.setState=i,e(i,n,r)},jHe=e=>(t,n={})=>{var r;const{middlewares:i=[],devtools:o,persist:a,immer:s}=n;RR(null!==(r=null==s?void 0:s.enabledAutoFreeze)&&void 0!==r&&r),null!=s&&s.enableMapSet&&function(){function e(e,t){function n(){this.constructor=e}i(e,t),e.prototype=(n.prototype=t.prototype,new n)}function t(e){e.o||(e.R=new Map,e.o=new Map(e.t))}function n(e){e.o||(e.o=new Set,e.t.forEach((function(t){if(DQ(t)){var n=cR(e.A.h,t,e);e.p.set(t,n),e.o.add(n)}else e.o.add(t)})))}function r(e){e.g&&AQ(3,JSON.stringify(UQ(e)))}var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},o=function(){function n(e,t){return this[wR]={i:2,l:t,A:t?t.A:GQ(),P:!1,I:!1,o:void 0,R:void 0,t:e,k:this,C:!1,g:!1},this}e(n,Map);var i=n.prototype;return Object.defineProperty(i,"size",{get:function(){return UQ(this[wR]).size}}),i.has=function(e){return UQ(this[wR]).has(e)},i.set=function(e,n){var i=this[wR];return r(i),UQ(i).has(e)&&UQ(i).get(e)===n||(t(i),lR(i),i.R.set(e,!0),i.o.set(e,n),i.R.set(e,!0)),this},i.delete=function(e){if(!this.has(e))return!1;var n=this[wR];return r(n),t(n),lR(n),n.t.has(e)?n.R.set(e,!1):n.R.delete(e),n.o.delete(e),!0},i.clear=function(){var e=this[wR];r(e),UQ(e).size&&(t(e),lR(e),e.R=new Map,MQ(e.t,(function(t){e.R.set(t,!1)})),e.o.clear())},i.forEach=function(e,t){var n=this;UQ(this[wR]).forEach((function(r,i){e.call(t,n.get(i),i,n)}))},i.get=function(e){var n=this[wR];r(n);var i=UQ(n).get(e);if(n.I||!DQ(i))return i;if(i!==n.t.get(e))return i;var o=cR(n.A.h,i,n);return t(n),n.o.set(e,o),o},i.keys=function(){return UQ(this[wR]).keys()},i.values=function(){var e,t=this,n=this.keys();return(e={})[kR]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},i.entries=function(){var e,t=this,n=this.keys();return(e={})[kR]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},i[kR]=function(){return this.entries()},n}(),a=function(){function t(e,t){return this[wR]={i:3,l:t,A:t?t.A:GQ(),P:!1,I:!1,o:void 0,t:e,k:this,p:new Map,g:!1,C:!1},this}e(t,Set);var i=t.prototype;return Object.defineProperty(i,"size",{get:function(){return UQ(this[wR]).size}}),i.has=function(e){var t=this[wR];return r(t),t.o?!!t.o.has(e)||!(!t.p.has(e)||!t.o.has(t.p.get(e))):t.t.has(e)},i.add=function(e){var t=this[wR];return r(t),this.has(e)||(n(t),lR(t),t.o.add(e)),this},i.delete=function(e){if(!this.has(e))return!1;var t=this[wR];return r(t),n(t),lR(t),t.o.delete(e)||!!t.p.has(e)&&t.o.delete(t.p.get(e))},i.clear=function(){var e=this[wR];r(e),UQ(e).size&&(n(e),lR(e),e.o.clear())},i.values=function(){var e=this[wR];return r(e),n(e),e.o.values()},i.entries=function(){var e=this[wR];return r(e),n(e),e.o.entries()},i.keys=function(){return this.values()},i[kR]=function(){return this.values()},i.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},t}();ZQ("MapSet",{F:function(e,t){return new o(e,t)},T:function(e,t){return new a(e,t)}})}();const l=[AHe,...i];if(null!=a&&a.enabled){var u;const t={...a,name:null!==(u=a.name)&&void 0!==u?u:e};l.push((e=>((e,t)=>(n,r,i)=>{let o=THe({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>THe(THe({},t),e)},t);(o.blacklist||o.whitelist)&&console.warn(`The ${o.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let u;try{u=o.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,i);u.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${o.name}' does not contain a 'removeItem' method, which will be required in v4.`);const c=$He(o.serialize),d=()=>{const e=o.partialize(THe({},r()));let t;o.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=o.whitelist)?void 0:n.includes(t))&&delete e[t]})),o.blacklist&&o.blacklist.forEach((t=>delete e[t]));const n=c({state:e,version:o.version}).then((e=>u.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=i.setState;i.setState=(e,t)=>{f(e,t),d()};const h=e(((...e)=>{n(...e),d()}),r,i);let p;const m=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return $He(u.getItem.bind(u))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=o.merge(e,null!=(t=r())?t:h),n(p,!0),d()})).then((()=>{null==t||t(p,void 0),a=!0,l.forEach((e=>e(p)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{o=THe(THe({},o),e),e.getStorage&&(u=e.getStorage())},clearStorage:()=>{var e;null==(e=null==u?void 0:u.removeItem)||e.call(u,o.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),p||h})(e,t)))}null!=o&&o.enabled&&l.push((t=>function(e,t){return(n,r,i)=>{var o;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let l;void 0!==(null==(o=null==s?void 0:s.serialize)?void 0:o.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{l=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);let u=Object.create(l.connect(s)),c=!1;Object.defineProperty(i,"devtools",{get:()=>(c||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),c=!0),u),set:e=>{c||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),c=!0),u=e}});let d=!1;Object.defineProperty(u,"prefix",{get:()=>(d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0),""),set:()=>{d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0)}});let f=!0;i.setState=(e,t,i)=>{n(e,t),f&&u.send(void 0===i?{type:s.anonymousActionType||"anonymous"}:"string"==typeof i?{type:i}:i,r())};const h=(...e)=>{const t=f;f=!1,n(...e),f=t},p=e(i.setState,r,i);if(u.init(p),i.dispatchFromDevtools&&"function"==typeof i.dispatch){let e=!1;const t=i.dispatch;i.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):xHe(e.payload,(e=>{"__setState"!==e.type?i.dispatchFromDevtools&&"function"==typeof i.dispatch&&i.dispatch(e):h(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(p),u.init(i.getState());case"COMMIT":return u.init(i.getState());case"ROLLBACK":return xHe(e.state,(e=>{h(e),u.init(i.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return xHe(e.state,(e=>{h(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return h(r),void u.send(null,n)}case"PAUSE_RECORDING":return f=!f}return}})),p}}(t,{...o,name:e}))),l.push(QHe);const d=function(e,...t){return t.reduce(((e,t)=>t(e)),e)}((()=>t),...l),f=function(e){const t="function"==typeof e?function(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?((e,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!o(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,c.useReducer)((e=>e+1),0),i=t.getState(),o=(0,c.useRef)(i),a=(0,c.useRef)(e),s=(0,c.useRef)(n),l=(0,c.useRef)(!1),u=(0,c.useRef)();let d;void 0===u.current&&(u.current=e(i));let f=!1;(o.current!==i||a.current!==e||s.current!==n||l.current)&&(d=e(i),f=!n(u.current,d)),kHe((()=>{f&&(u.current=d),o.current=i,a.current=e,s.current=n,l.current=!1}));const h=(0,c.useRef)(i);kHe((()=>{const e=()=>{try{const e=t.getState(),n=a.current(e);s.current(u.current,n)||(o.current=e,u.current=n,r())}catch(e){l.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const p=f?d:u.current;return(0,c.useDebugValue)(p),p};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}(d),h=((e,t)=>{const n={};return Object.keys(e.getState()).forEach((r=>{n[r]=n=>{if(e.getState()[r]===n)return;const i=r.replace(/^\S/,(e=>e.toUpperCase()));e.setState((e=>{e[r]=n}),`@@${t}/set${i}`)}})),n})(f,e),p=(e=>{const t={};return Object.keys(e.getState()).forEach((n=>{t[n]=t=>e((e=>e[n]),t)})),t})(f),m=(e=>{const t={};return Object.keys(e.getState()).forEach((n=>{t[n]=()=>e.getState()[n]})),t})(f),g=(e=>()=>{const[,t]=(0,c.useReducer)((e=>e+1),0),n=new WeakMap,r=(0,c.useRef)(),i=(0,c.useRef)(),o=(0,c.useRef)();(0,c.useEffect)((()=>{r.current=n,i.current!==o.current&&wHe(i.current,o.current,n,new WeakMap)&&(i.current=o.current,t())}));const a=(0,c.useCallback)((e=>(o.current=e,i.current&&i.current!==e&&r.current&&!wHe(i.current,e,r.current,new WeakMap)?i.current:(i.current=e,e))),[]),s=e(a),l=(0,c.useMemo)((()=>new WeakMap),[]);return bHe(s,n,l)})(f),v=((e,t)=>{const n={};return Object.keys(e.getState()).forEach((e=>{n[e]=()=>t()[e]})),n})(f,g),O={get:{state:d.getState,...m},name:e,set:{state:(t,n)=>{d.setState(t,n||`@@${e}/setState`)},mergeState:(t,n)=>{d.setState((e=>{Object.assign(e,t)}),n||`@@${e}/mergeState`)},...h},store:d,use:p,useTracked:v,useStore:f,useTrackedStore:g,extendSelectors:()=>O,extendActions:()=>O};return RHe(O)};var DHe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function MHe(e,t){return e(t={exports:{}},t.exports),t.exports}var IHe="object"==typeof DHe&&DHe&&DHe.Object===Object&&DHe,zHe="object"==typeof self&&self&&self.Object===Object&&self,WHe=IHe||zHe||Function("return this")(),NHe=WHe.Symbol,LHe=Object.prototype,FHe=LHe.hasOwnProperty,UHe=LHe.toString,XHe=NHe?NHe.toStringTag:void 0,qHe=Object.prototype.toString,BHe=NHe?NHe.toStringTag:void 0,VHe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":BHe&&BHe in Object(e)?function(e){var t=FHe.call(e,XHe),n=e[XHe];try{e[XHe]=void 0;var r=!0}catch(e){}var i=UHe.call(e);return r&&(t?e[XHe]=n:delete e[XHe]),i}(e):function(e){return qHe.call(e)}(e)},YHe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ZHe=WHe["__core-js_shared__"],GHe=function(){var e=/[^.]+$/.exec(ZHe&&ZHe.keys&&ZHe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),HHe=Function.prototype.toString,KHe=function(e){if(null!=e){try{return HHe.call(e)}catch(e){}try{return e+""}catch(e){}}return""},JHe=/^\[object .+?Constructor\]$/,eKe=Function.prototype,tKe=Object.prototype,nKe=eKe.toString,rKe=tKe.hasOwnProperty,iKe=RegExp("^"+nKe.call(rKe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oKe=function(e){return!(!YHe(e)||function(e){return!!GHe&&GHe in e}(e))&&(function(e){if(!YHe(e))return!1;var t=VHe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?iKe:JHe).test(KHe(e))},aKe=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return oKe(n)?n:void 0};!function(){try{var e=aKe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var sKe,lKe=function(e){return null!=e&&"object"==typeof e},uKe=Object.prototype;uKe.hasOwnProperty,uKe.propertyIsEnumerable;sKe=function(){return arguments}(),lKe(sKe)&&VHe(sKe),Array.isArray;var cKe=function(){return!1};MHe((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?WHe.Buffer:void 0,o=(i?i.isBuffer:void 0)||cKe;e.exports=o}));var dKe={};dKe["[object Float32Array]"]=dKe["[object Float64Array]"]=dKe["[object Int8Array]"]=dKe["[object Int16Array]"]=dKe["[object Int32Array]"]=dKe["[object Uint8Array]"]=dKe["[object Uint8ClampedArray]"]=dKe["[object Uint16Array]"]=dKe["[object Uint32Array]"]=!0,dKe["[object Arguments]"]=dKe["[object Array]"]=dKe["[object ArrayBuffer]"]=dKe["[object Boolean]"]=dKe["[object DataView]"]=dKe["[object Date]"]=dKe["[object Error]"]=dKe["[object Function]"]=dKe["[object Map]"]=dKe["[object Number]"]=dKe["[object Object]"]=dKe["[object RegExp]"]=dKe["[object Set]"]=dKe["[object String]"]=dKe["[object WeakMap]"]=!1;var fKe=MHe((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&IHe.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),hKe=fKe&&fKe.isTypedArray;Object.prototype.hasOwnProperty,Object.prototype;Object.keys,Object.prototype.hasOwnProperty;var pKe=function(e,t){return e===t||e!=e&&t!=t},mKe=function(e,t){for(var n=e.length;n--;)if(pKe(e[n][0],t))return n;return-1},gKe=Array.prototype.splice;function vKe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},vKe.prototype.set=function(e,t){var n=this.__data__,r=mKe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var OKe=vKe,yKe=aKe(WHe,"Map"),bKe=aKe(Object,"create"),wKe=Object.prototype.hasOwnProperty,kKe=Object.prototype.hasOwnProperty;function xKe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++te&&e.nodeName!==t?KKe(e.parentElement,t):e,JKe=/^(?:\w+:)?\/\/(\S+)$/,eJe=/mailto:([^\\?]+)/,tJe=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,nJe=/^[^\s.]+\.\S{2,}$/,rJe=e=>{if("string"!=typeof e)return!1;const t=e.match(JKe),n=e.match(eJe),r=t||n;if(!r)return!1;const i=r[1];if(!i)return!1;try{new URL(e)}catch(e){return!1}return tJe.test(i)||nJe.test(i)},iJe=(e,{allowedSchemes:t,permitInvalid:n=!1})=>{if(!e)return null;let r=null;try{r=new URL(e)}catch(t){return n?e:null}return t&&!t.includes(r.protocol.slice(0,-1))?null:r.href},oJe=e=>{return!((e=>void 0===e)(t=e)||(e=>null===e)(t));var t};function aJe(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array&&(r=e.length)===t.length){for(;r--&&aJe(e[r],t[r]););return-1===r}if(n===Object){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(r in e)if(!(r in t)||!aJe(e[r],t[r]))return!1;return!0}}return e!=e&&t!=t}function sJe(e){const t=c.useRef([]);return aJe(e,t.current)||(t.current=e),t.current}function lJe(e,t){return c.useMemo(e,sJe(t))}function uJe(e){return"[object Object]"===Object.prototype.toString.call(e)}function cJe(e){var t,n;return!1!==uJe(e)&&(void 0===(t=e.constructor)||!1!==uJe(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var dJe={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=wJe.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},fJe={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=VJe.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},hJe={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=RJe.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},pJe=new WeakMap,mJe=new WeakMap,gJe=new WeakMap,vJe=new WeakMap,OJe=new WeakMap,yJe=new WeakMap,bJe=new WeakMap,wJe={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=wJe.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;rt[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return wJe.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return wJe.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return wJe.equals(r,i)&&oe.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===wJe.compare(e,t),isAncestor:(e,t)=>e.length-1===wJe.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===wJe.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===wJe.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===wJe.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===wJe.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&wJe.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!wJe.isAncestor(t,e)&&!wJe.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:o}=t;(wJe.equals(o,r)||wJe.endsBefore(o,r)||wJe.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(wJe.equals(a,r)||wJe.isAncestor(a,r))return null;wJe.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;wJe.equals(s,r)||wJe.endsBefore(s,r)?r[s.length-1]-=1:wJe.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(wJe.equals(u,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else wJe.endsBefore(u,r)?r[u.length-1]+=1:wJe.isAncestor(u,r)&&e[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:d,newPath:f}=t;if(wJe.equals(d,f))return r;if(wJe.isAncestor(d,r)||wJe.equals(d,r)){var h=f.slice();return wJe.endsBefore(d,f)&&d.length{switch(n.type){case"insert_node":var{path:r,node:i}=n,o=zJe.parent(e,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[s,l]of RJe.points(t))t[l]=VJe.transform(s,n);break;case"insert_text":var{path:u,offset:c,text:d}=n;if(0===d.length)break;var f=zJe.leaf(e,u),h=f.text.slice(0,c),p=f.text.slice(c);if(f.text=h+d+p,t)for(var[m,g]of RJe.points(t))t[g]=VJe.transform(m,n);break;case"merge_node":var{path:v}=n,O=zJe.get(e,v),y=wJe.previous(v),b=zJe.get(e,y),w=zJe.parent(e,v),k=v[v.length-1];if(t0e.isText(O)&&t0e.isText(b))b.text+=O.text;else{if(t0e.isText(O)||t0e.isText(b))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(ZJe.stringify(O)," ").concat(ZJe.stringify(b)));b.children.push(...O.children)}if(w.children.splice(k,1),t)for(var[x,_]of RJe.points(t))t[_]=VJe.transform(x,n);break;case"move_node":var{path:S,newPath:P}=n;if(wJe.isAncestor(S,P))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(P,"] because the destination is inside itself."));var E=zJe.get(e,S),C=zJe.parent(e,S),T=S[S.length-1];C.children.splice(T,1);var $=wJe.transform(S,n),Q=zJe.get(e,wJe.parent($)),R=$[$.length-1];if(Q.children.splice(R,0,E),t)for(var[A,j]of RJe.points(t))t[j]=VJe.transform(A,n);break;case"remove_node":var{path:D}=n,M=D[D.length-1];if(zJe.parent(e,D).children.splice(M,1),t)for(var[I,z]of RJe.points(t)){var W=VJe.transform(I,n);if(null!=t&&null!=W)t[z]=W;else{var N=void 0,L=void 0;for(var[F,U]of zJe.texts(e)){if(-1!==wJe.compare(U,D)){L=[F,U];break}N=[F,U]}var X=!1;N&&L&&(X=wJe.equals(L[1],D)?!wJe.hasPrevious(L[1]):wJe.common(N[1],D).length{for(var n in e){var r=e[n],i=t[n];if(cJe(r)&&cJe(i)){if(!CJe(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var $Je=["anchor","focus"];function QJe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var RJe={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return RJe.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=RJe.edges(e);return t},equals:(e,t)=>VJe.equals(e.anchor,t.anchor)&&VJe.equals(e.focus,t.focus),includes(e,t){if(RJe.isRange(t)){if(RJe.includes(e,t.anchor)||RJe.includes(e,t.focus))return!0;var[n,r]=RJe.edges(e),[i,o]=RJe.edges(t);return VJe.isBefore(n,i)&&VJe.isAfter(r,o)}var[a,s]=RJe.edges(e),l=!1,u=!1;return VJe.isPoint(t)?(l=VJe.compare(t,a)>=0,u=VJe.compare(t,s)<=0):(l=wJe.compare(t,a.path)>=0,u=wJe.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=TJe(e,$Je),[r,i]=RJe.edges(e),[o,a]=RJe.edges(t),s=VJe.isBefore(r,o)?o:r,l=VJe.isBefore(i,a)?i:a;return VJe.isBefore(l,s)?null:function(e){for(var t=1;t!RJe.isCollapsed(e),isForward:e=>!RJe.isBackward(e),isRange:e=>cJe(e)&&VJe.isPoint(e.anchor)&&VJe.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=RJe.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return QR(e,(e=>{if(null===e)return null;var r,i,{affinity:o="inward"}=n;if("inward"===o){var a=RJe.isCollapsed(e);RJe.isForward(e)?(r="forward",i=a?r:"backward"):(r="backward",i=a?r:"forward")}else"outward"===o?RJe.isForward(e)?(r="backward",i="forward"):(r="forward",i="backward"):(r=o,i=o);var s=VJe.transform(e.anchor,t,{affinity:r}),l=VJe.transform(e.focus,t,{affinity:i});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},AJe=e=>cJe(e)&&zJe.isNodeList(e.children)&&!UJe.isEditor(e),jJe={isAncestor:e=>cJe(e)&&zJe.isNodeList(e.children),isElement:AJe,isElementList:e=>Array.isArray(e)&&e.every((e=>jJe.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return AJe(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},DJe=["children"],MJe=["text"],IJe=new WeakMap,zJe={ancestor(e,t){var n=zJe.get(e,t);if(t0e.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ZJe.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of wJe.ancestors(t,n)){var i=[zJe.ancestor(e,r),r];yield i}},child(e,t){if(t0e.isText(e))throw new Error("Cannot get the child of a text node: ".concat(ZJe.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ZJe.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,i=zJe.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of zJe.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of zJe.nodes(e,t))jJe.isElement(n)&&(yield[n,r])},extractProps:e=>jJe.isAncestor(e)?TJe(e,DJe):TJe(e,MJe),first(e,t){for(var n=t.slice(),r=zJe.get(e,n);r&&!t0e.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(t0e.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ZJe.stringify(e)));var n=QR({children:e.children},(e=>{var[n,r]=RJe.edges(t),i=zJe.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!RJe.includes(t,n)}});for(var[,o]of i){if(!RJe.includes(t,o)){var a=zJe.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(wJe.equals(o,r.path)){var l=zJe.leaf(e,o);l.text=l.text.slice(0,r.offset)}if(wJe.equals(o,n.path)){var u=zJe.leaf(e,o);u.text=u.text.slice(n.offset)}}UJe.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;rt0e.isText(e)||jJe.isElement(e)||UJe.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=IJe.get(e);if(void 0!==t)return t;var n=e.every((e=>zJe.isNode(e)));return IJe.set(e,n),n},last(e,t){for(var n=t.slice(),r=zJe.get(e,n);r&&!t0e.isText(r)&&0!==r.children.length;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=zJe.get(e,t);if(!t0e.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ZJe.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of wJe.levels(t,n)){var i=zJe.get(e,r);yield[i,r]}},matches:(e,t)=>jJe.isElement(e)&&jJe.isElementProps(t)&&jJe.matches(e,t)||t0e.isText(e)&&t0e.isTextProps(t)&&t0e.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],l=e;!o||!(r?wJe.isBefore(s,o):wJe.isAfter(s,o));)if(a.has(l)||(yield[l,s]),a.has(l)||t0e.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var u=wJe.next(s);if(zJe.has(e,u)){s=u,l=zJe.get(e,s);continue}}r&&0!==s[s.length-1]?(s=wJe.previous(s),l=zJe.get(e,s)):(s=wJe.parent(s),l=zJe.get(e,s),a.add(l))}else{a.add(l);var c=r?l.children.length-1:0;wJe.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),l=zJe.get(e,s)}},parent(e,t){var n=wJe.parent(t),r=zJe.get(e,n);if(t0e.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>t0e.isText(e)?e.text:e.children.map(zJe.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of zJe.nodes(e,t))t0e.isText(n)&&(yield[n,r])}};function WJe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NJe(e){for(var t=1;tLJe.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!cJe(e))return!1;switch(e.type){case"insert_node":case"remove_node":return wJe.isPath(e.path)&&zJe.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&wJe.isPath(e.path);case"merge_node":return"number"==typeof e.position&&wJe.isPath(e.path)&&cJe(e.properties);case"move_node":return wJe.isPath(e.path)&&wJe.isPath(e.newPath);case"set_node":return wJe.isPath(e.path)&&cJe(e.properties)&&cJe(e.newProperties);case"set_selection":return null===e.properties&&RJe.isRange(e.newProperties)||null===e.newProperties&&RJe.isRange(e.properties)||cJe(e.properties)&&cJe(e.newProperties);case"split_node":return wJe.isPath(e.path)&&"number"==typeof e.position&&cJe(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>LJe.isOperation(e))),isSelectionOperation:e=>LJe.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>LJe.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return NJe(NJe({},e),{},{type:"remove_node"});case"insert_text":return NJe(NJe({},e),{},{type:"remove_text"});case"merge_node":return NJe(NJe({},e),{},{type:"split_node",path:wJe.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(wJe.equals(t,n))return e;if(wJe.isSibling(n,t))return NJe(NJe({},e),{},{path:t,newPath:n});var r=wJe.transform(n,e),i=wJe.transform(wJe.next(n),e);return NJe(NJe({},e),{},{path:r,newPath:i});case"remove_node":return NJe(NJe({},e),{},{type:"insert_node"});case"remove_text":return NJe(NJe({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return NJe(NJe({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:l}=e;return NJe(NJe({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return NJe(NJe({},e),{},{type:"merge_node",path:wJe.next(e.path)})}}},FJe=new WeakMap,UJe={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>(e=>{var t=FJe.get(e);if(void 0!==t)return t;if(!cJe(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||cJe(e.marks))&&(null===e.selection||RJe.isRange(e.selection))&&zJe.isNodeList(e.children)&&LJe.isOperationList(e.operations);return FJe.set(e,n),n})(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)}},XJe=e=>Array.isArray(e)&&2===e.length&&e.every(wJe.isPath);function qJe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BJe(e){for(var t=1;tt.offset?1:0:n},isAfter:(e,t)=>1===VJe.compare(e,t),isBefore:(e,t)=>-1===VJe.compare(e,t),equals:(e,t)=>e.offset===t.offset&&wJe.equals(e.path,t.path),isPoint:e=>cJe(e)&&"number"==typeof e.offset&&wJe.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return QR(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=wJe.transform(i,t,n);break;case"insert_text":wJe.equals(t.path,i)&&(t.offsetJSON.stringify(e,YJe)},GJe=["text"],HJe=["anchor","focus"];function KJe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JJe(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function i(e){return TJe(e,GJe)}return CJe(r?i(e):e,r?i(t):t)},isText:e=>cJe(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>t0e.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[JJe({},e)];for(var r of t){var i=TJe(r,HJe),[o,a]=RJe.edges(r),s=[],l=0,u=o.offset,c=a.offset;for(var d of n){var{length:f}=d.text,h=l;if(l+=f,u<=h&&l<=c)Object.assign(d,i),s.push(d);else if(u!==c&&(u===l||c===h)||u>l||ch){var O=u-h;m=JJe(JJe({},p),{},{text:p.text.slice(0,O)}),p=JJe(JJe({},p),{},{text:p.text.slice(O)})}Object.assign(p,i),m&&s.push(m),s.push(p),g&&s.push(g)}}n=s}return n}},n0e=e=>e.selection?e.selection:e.children.length>0?UJe.end(e,[]):[0],r0e=(e,t)=>{var[n]=UJe.node(e,t);return e=>e===n},i0e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?c0e(e):e,i=e0e.None,o=e0e.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var c=k0e(l,u);if([i,o]=n?[o,c]:[c,i],x0e(i,e0e.ZWJ)&&x0e(o,e0e.ExtPict)&&!E0e(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(x0e(i,e0e.RI)&&x0e(o,e0e.RI)&&!(s=null!==s?!s:!!n||T0e(e.substring(0,e.length-a))))break;if(i!==e0e.None&&o!==e0e.None&&S0e(i,o))break;a+=l.length}return a||1},o0e=/\s/,a0e=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,s0e=/['\u2018\u2019]/,l0e=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},u0e=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o0e.test(t))return!1;if(s0e.test(t)){var i=i0e(n,r),[o,a]=l0e(n,i,r);if(e(o,a,r))return!0}return!a0e.test(t)},c0e=function*(e){for(var t=e.length-1,n=0;ne>=55296&&e<=56319,f0e=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(e0e||(e0e={}));var h0e=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,p0e=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,m0e=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,g0e=/^[\u1100-\u115F\uA960-\uA97C]$/,v0e=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,O0e=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,y0e=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,b0e=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,w0e=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,k0e=(e,t)=>{var n=e0e.Any;return-1!==e.search(h0e)&&(n|=e0e.Extend),8205===t&&(n|=e0e.ZWJ),t>=127462&&t<=127487&&(n|=e0e.RI),-1!==e.search(p0e)&&(n|=e0e.Prepend),-1!==e.search(m0e)&&(n|=e0e.SpacingMark),-1!==e.search(g0e)&&(n|=e0e.L),-1!==e.search(v0e)&&(n|=e0e.V),-1!==e.search(O0e)&&(n|=e0e.T),-1!==e.search(y0e)&&(n|=e0e.LV),-1!==e.search(b0e)&&(n|=e0e.LVT),-1!==e.search(w0e)&&(n|=e0e.ExtPict),n};function x0e(e,t){return 0!=(e&t)}var _0e=[[e0e.L,e0e.L|e0e.V|e0e.LV|e0e.LVT],[e0e.LV|e0e.V,e0e.V|e0e.T],[e0e.LVT|e0e.T,e0e.T],[e0e.Any,e0e.Extend|e0e.ZWJ],[e0e.Any,e0e.SpacingMark],[e0e.Prepend,e0e.Any],[e0e.ZWJ,e0e.ExtPict],[e0e.RI,e0e.RI]];function S0e(e,t){return-1===_0e.findIndex((n=>x0e(e,n[0])&&x0e(t,n[1])))}var P0e=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,E0e=e=>-1!==e.search(P0e),C0e=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,T0e=e=>{var t=e.match(C0e);return null!==t&&t[0].length/2%2==1},$0e={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};UJe.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=n0e(e)}=n;if(wJe.isPath(i)&&(i=UJe.range(e,i)),RJe.isRange(i))if(RJe.isCollapsed(i))i=i.anchor;else{var o=RJe.end(i);if(!r&&UJe.void(e,{at:o}))return;var a=RJe.start(i),s=UJe.pointRef(e,a),l=UJe.pointRef(e,o);A0e.delete(e,{at:i,voids:r});var u=s.unref(),c=l.unref();i=u||c,A0e.setSelection(e,{anchor:i,focus:i})}if(!(!r&&UJe.void(e,{at:i})||UJe.elementReadOnly(e,{at:i}))){var{path:d,offset:f}=i;t.length>0&&e.apply({type:"insert_text",path:d,offset:f,text:t})}}))}};function Q0e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R0e(e){for(var t=1;t{if(jJe.isElement(t)){var n=t;return!!UJe.isVoid(e,t)||1===n.children.length&&K0e(e,n.children[0])}return!UJe.isEditor(t)};function J0e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function e1e(e){for(var t=1;t{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var t=arguments.length,n=new Array(t),r=0;r{for(var n of UJe.pathRefs(e))dJe.transform(n,t);for(var r of UJe.pointRefs(e))fJe.transform(r,t);for(var i of UJe.rangeRefs(e))hJe.transform(i,t);var o,a,s=pJe.get(e)||[],l=mJe.get(e)||new Set,u=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),o.push(e))}};if(wJe.operationCanTransformPath(t))for(var c of(o=[],a=new Set,s))u(wJe.transform(c,t));else o=s,a=l;var d=e.getDirtyPaths(t);for(var f of d)u(f);pJe.set(e,o),mJe.set(e,a),A0e.transform(e,t),e.operations.push(t),UJe.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),gJe.get(e)||(gJe.set(e,!0),Promise.resolve().then((()=>{gJe.set(e,!1),e.onChange({operation:t}),e.operations=[]})))})(e,...n)},addMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:r}=e;if(r){var i=(t,n)=>{if(!t0e.isText(t))return!1;var[r,i]=UJe.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},o=RJe.isExpanded(r),a=!1;if(!o){var[s,l]=UJe.node(e,r);if(s&&i(s,l)){var[u]=UJe.parent(e,l);a=u&&e.markableVoid(u)}}if(o||a)A0e.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var c=D0e(D0e({},UJe.marks(e)||{}),{},{[t]:n});e.marks=c,gJe.get(e)||e.onChange()}}})(e,...n)},deleteBackward:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:n}=e;n&&RJe.isCollapsed(n)&&A0e.delete(e,{unit:t,reverse:!0})})(e,...n)},deleteForward:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:n}=e;n&&RJe.isCollapsed(n)&&A0e.delete(e,{unit:t})})(e,...n)},deleteFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e;n&&RJe.isExpanded(n)&&A0e.delete(e,{reverse:"backward"===t})}(e,...n)},getFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:t}=e;return t?zJe.fragment(e,t):[]})(e,...n)},insertBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r{A0e.splitNodes(e,{always:!0})})(e,...n)},insertSoftBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r{A0e.splitNodes(e,{always:!0})})(e,...n)},insertFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};UJe.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=n0e(e)}=n;if(t.length){if(RJe.isRange(o))if(r||(o=UJe.unhangRange(e,o,{voids:i})),RJe.isCollapsed(o))o=o.anchor;else{var[,a]=RJe.edges(o);if(!i&&UJe.void(e,{at:a}))return;var s=UJe.pointRef(e,a);A0e.delete(e,{at:o}),o=s.unref()}else wJe.isPath(o)&&(o=UJe.start(e,o));if(i||!UJe.void(e,{at:o})){var l=UJe.above(e,{at:o,match:t=>jJe.isElement(t)&&UJe.isInline(e,t),mode:"highest",voids:i});if(l){var[,u]=l;UJe.isEnd(e,o,u)?o=UJe.after(e,u):UJe.isStart(e,o,u)&&(o=UJe.before(e,u))}var c=UJe.above(e,{match:t=>jJe.isElement(t)&&UJe.isBlock(e,t),at:o,voids:i}),[,d]=c,f=UJe.isStart(e,o,d),h=UJe.isEnd(e,o,d),p=f&&h,m=!f||f&&h,g=!h,[,v]=zJe.first({children:t},[]),[,O]=zJe.last({children:t},[]),y=[],b=t=>{var[n,r]=t;return!(0===r.length||!p&&(m&&wJe.isAncestor(r,v)&&jJe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||g&&wJe.isAncestor(r,O)&&jJe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of zJe.nodes({children:t},{pass:b}))b(w)&&y.push(w);var k=[],x=[],_=[],S=!0,P=!1;for(var[E]of y)jJe.isElement(E)&&!e.isInline(E)?(S=!1,P=!0,x.push(E)):S?k.push(E):_.push(E);var[C]=UJe.nodes(e,{at:o,match:t=>t0e.isText(t)||UJe.isInline(e,t),mode:"highest",voids:i}),[,T]=C,$=UJe.isStart(e,o,T),Q=UJe.isEnd(e,o,T),R=UJe.pathRef(e,h&&!_.length?wJe.next(d):d),A=UJe.pathRef(e,Q?wJe.next(T):T);A0e.splitNodes(e,{at:o,match:t=>P?jJe.isElement(t)&&UJe.isBlock(e,t):t0e.isText(t)||UJe.isInline(e,t),mode:P?"lowest":"highest",always:P&&(!f||k.length>0)&&(!h||_.length>0),voids:i});var j,D=UJe.pathRef(e,!$||$&&Q?wJe.next(T):T);if(A0e.insertNodes(e,k,{at:D.current,match:t=>t0e.isText(t)||UJe.isInline(e,t),mode:"highest",voids:i}),p&&!k.length&&x.length&&!_.length&&A0e.delete(e,{at:d,voids:i}),A0e.insertNodes(e,x,{at:R.current,match:t=>jJe.isElement(t)&&UJe.isBlock(e,t),mode:"lowest",voids:i}),A0e.insertNodes(e,_,{at:A.current,match:t=>t0e.isText(t)||UJe.isInline(e,t),mode:"highest",voids:i}),!n.at&&(_.length>0&&A.current?j=wJe.previous(A.current):x.length>0&&R.current?j=wJe.previous(R.current):D.current&&(j=wJe.previous(D.current)),j)){var M=UJe.end(e,j);A0e.select(e,M)}D.unref(),R.unref(),A.unref()}}}))}(e,...n)},insertNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r{A0e.insertNodes(e,t,n)})(e,...n)},insertText:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{selection:r,marks:i}=e;if(r){if(i){var o=function(e){for(var t=1;t{var[n,r]=t;if(!t0e.isText(n))if(jJe.isElement(n)&&0===n.children.length)A0e.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var i=!UJe.isEditor(n)&&jJe.isElement(n)&&(e.isInline(n)||0===n.children.length||t0e.isText(n.children[0])||e.isInline(n.children[0])),o=0,a=0;a{var{selection:n}=e;if(n){var r=(t,n)=>{if(!t0e.isText(t))return!1;var[r,i]=UJe.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},i=RJe.isExpanded(n),o=!1;if(!i){var[a,s]=UJe.node(e,n);if(a&&r(a,s)){var[l]=UJe.parent(e,s);o=l&&e.markableVoid(l)}}if(i||o)A0e.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var u=function(e){for(var t=1;t{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:n}=t;return wJe.levels(n);case"insert_node":var{node:r,path:i}=t,o=wJe.levels(i),a=t0e.isText(r)?[]:Array.from(zJe.nodes(r),(e=>{var[,t]=e;return i.concat(t)}));return[...o,...a];case"merge_node":var{path:s}=t;return[...wJe.ancestors(s),wJe.previous(s)];case"move_node":var{path:l,newPath:u}=t;if(wJe.equals(l,u))return[];var c=[],d=[];for(var f of wJe.ancestors(l)){var h=wJe.transform(f,t);c.push(h)}for(var p of wJe.ancestors(u)){var m=wJe.transform(p,t);d.push(m)}var g=d[d.length-1],v=u[u.length-1],O=g.concat(v);return[...c,...d,O];case"remove_node":var{path:y}=t;return[...wJe.ancestors(y)];case"split_node":var{path:b}=t;return[...wJe.levels(b),wJe.next(b)];default:return[]}})(e,...n)},shouldNormalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{iteration:n,initialDirtyPathsLength:r}=t,i=42*r;if(n>i)throw new Error("Could not completely normalize the editor after ".concat(i," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0})(e,...n)},above:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(i){var a=UJe.path(e,i),s="lowest"===r;for(var[l,u]of UJe.levels(e,{at:a,voids:n,match:o,reverse:s}))if(!t0e.isText(l))if(RJe.isRange(i)){if(wJe.isAncestor(u,i.anchor.path)&&wJe.isAncestor(u,i.focus.path))return[l,u]}else if(!wJe.equals(a,u))return[l,u]}}(e,...n)},after:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:UJe.point(e,t,{edge:"end"}),focus:UJe.end(e,[])},{distance:o=1}=r,a=0;for(var s of UJe.positions(e,I0e(I0e({},r),{},{at:i}))){if(a>o)break;0!==a&&(n=s),a++}return n}(e,...n)},before:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:UJe.start(e,[]),focus:UJe.point(e,t,{edge:"start"})},{distance:o=1}=r,a=0;for(var s of UJe.positions(e,W0e(W0e({},r),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(n=s),a++}return n}(e,...n)},collapse:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)A0e.select(e,r.anchor);else if("focus"===n)A0e.select(e,r.focus);else if("start"===n){var[i]=RJe.edges(r);A0e.select(e,i)}else if("end"===n){var[,o]=RJe.edges(r);A0e.select(e,o)}}(e,...n)},delete:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};UJe.withoutNormalizing(e,(()=>{var n,r,{reverse:i=!1,unit:o="character",distance:a=1,voids:s=!1}=t,{at:l=e.selection,hanging:u=!1}=t;if(l){var c=!1;if(RJe.isRange(l)&&RJe.isCollapsed(l)&&(c=!0,l=l.anchor),VJe.isPoint(l)){var d=UJe.void(e,{at:l,mode:"highest"});if(!s&&d){var[,f]=d;l=f}else{var h={unit:o,distance:a};l={anchor:l,focus:i?UJe.before(e,l,h)||UJe.start(e,[]):UJe.after(e,l,h)||UJe.end(e,[])},u=!0}}if(wJe.isPath(l))A0e.removeNodes(e,{at:l,voids:s});else if(!RJe.isCollapsed(l)){if(!u){var[,p]=RJe.edges(l),m=UJe.end(e,[]);VJe.equals(p,m)||(l=UJe.unhangRange(e,l,{voids:s}))}var[g,v]=RJe.edges(l),O=UJe.above(e,{match:t=>jJe.isElement(t)&&UJe.isBlock(e,t),at:g,voids:s}),y=UJe.above(e,{match:t=>jJe.isElement(t)&&UJe.isBlock(e,t),at:v,voids:s}),b=O&&y&&!wJe.equals(O[1],y[1]),w=wJe.equals(g.path,v.path),k=s?null:null!==(n=UJe.void(e,{at:g,mode:"highest"}))&&void 0!==n?n:UJe.elementReadOnly(e,{at:g,mode:"highest"}),x=s?null:null!==(r=UJe.void(e,{at:v,mode:"highest"}))&&void 0!==r?r:UJe.elementReadOnly(e,{at:v,mode:"highest"});if(k){var _=UJe.before(e,g);_&&O&&wJe.isAncestor(O[1],_.path)&&(g=_)}if(x){var S=UJe.after(e,v);S&&y&&wJe.isAncestor(y[1],S.path)&&(v=S)}var P,E=[];for(var C of UJe.nodes(e,{at:l,voids:s})){var[T,$]=C;P&&0===wJe.compare($,P)||(!s&&jJe.isElement(T)&&(UJe.isVoid(e,T)||UJe.isElementReadOnly(e,T))||!wJe.isCommon($,g.path)&&!wJe.isCommon($,v.path))&&(E.push(C),P=$)}var Q=Array.from(E,(t=>{var[,n]=t;return UJe.pathRef(e,n)})),R=UJe.pointRef(e,g),A=UJe.pointRef(e,v),j="";if(!w&&!k){var D=R.current,[M]=UJe.leaf(e,D),{path:I}=D,{offset:z}=g,W=M.text.slice(z);W.length>0&&(e.apply({type:"remove_text",path:I,offset:z,text:W}),j=W)}if(Q.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>A0e.removeNodes(e,{at:t,voids:s}))),!x){var N=A.current,[L]=UJe.leaf(e,N),{path:F}=N,U=w?g.offset:0,X=L.text.slice(U,v.offset);X.length>0&&(e.apply({type:"remove_text",path:F,offset:U,text:X}),j=X)}!w&&b&&A.current&&R.current&&A0e.mergeNodes(e,{at:A.current,hanging:!0,voids:s}),c&&i&&"character"===o&&j.length>1&&j.match(/[\u0E00-\u0E7F]+/)&&A0e.insertText(e,j.slice(0,j.length-a));var q=R.unref(),B=A.unref(),V=i?q||B:B||q;null==t.at&&V&&A0e.select(e,V)}}}))}(e,...n)},deselect:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})})(e,...n)},edges:function(){for(var t=arguments.length,n=new Array(t),r=0;r[UJe.start(e,t),UJe.end(e,t)])(e,...n)},elementReadOnly:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return UJe.above(e,L0e(L0e({},t),{},{match:t=>jJe.isElement(t)&&UJe.isElementReadOnly(e,t)}))}(e,...n)},end:function(){for(var t=arguments.length,n=new Array(t),r=0;rUJe.point(e,t,{edge:"end"}))(e,...n)},first:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var n=UJe.path(e,t,{edge:"start"});return UJe.node(e,n)})(e,...n)},fragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var n=UJe.range(e,t);return zJe.fragment(e,n)})(e,...n)},getMarks:function(){for(var t=arguments.length,n=new Array(t),r=0;rjJe.isElement(t)&&UJe.isVoid(e,t)&&e.markableVoid(t)});if(!u){var c=UJe.above(e,{match:t=>jJe.isElement(t)&&UJe.isBlock(e,t)});if(l&&c){var[d,f]=l,[,h]=c;wJe.isAncestor(h,f)&&(s=d)}}}return TJe(s,B0e)}(e,...n)},hasBlocks:function(){for(var t=arguments.length,n=new Array(t),r=0;rt.children.some((t=>jJe.isElement(t)&&UJe.isBlock(e,t))))(e,...n)},hasInlines:function(){for(var t=arguments.length,n=new Array(t),r=0;rt.children.some((t=>t0e.isText(t)||UJe.isInline(e,t))))(e,...n)},hasPath:function(){for(var t=arguments.length,n=new Array(t),r=0;rzJe.has(e,t))(e,...n)},hasTexts:function(){for(var t=arguments.length,n=new Array(t),r=0;rt.children.every((e=>t0e.isText(e))))(e,...n)},insertNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};UJe.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:s,select:l}=n;if(zJe.isNode(t)&&(t=[t]),0!==t.length){var[u]=t;if(a||(a=n0e(e),l=!0),null==l&&(l=!1),RJe.isRange(a))if(r||(a=UJe.unhangRange(e,a,{voids:i})),RJe.isCollapsed(a))a=a.anchor;else{var[,c]=RJe.edges(a),d=UJe.pointRef(e,c);A0e.delete(e,{at:a}),a=d.unref()}if(VJe.isPoint(a)){null==s&&(s=t0e.isText(u)?e=>t0e.isText(e):e.isInline(u)?t=>t0e.isText(t)||UJe.isInline(e,t):t=>jJe.isElement(t)&&UJe.isBlock(e,t));var[f]=UJe.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!f)return;var[,h]=f,p=UJe.pathRef(e,h),m=UJe.isEnd(e,a,h);A0e.splitNodes(e,{at:a,match:s,mode:o,voids:i});var g=p.unref();a=m?wJe.next(g):g}var v=wJe.parent(a),O=a[a.length-1];if(i||!UJe.void(e,{at:v})){for(var y of t){var b=v.concat(O);O++,e.apply({type:"insert_node",path:b,node:y}),a=wJe.next(a)}if(a=wJe.previous(a),l){var w=UJe.end(e,a);w&&A0e.select(e,w)}}}}))}(e,...n)},isBlock:function(){for(var t=arguments.length,n=new Array(t),r=0;r!e.isInline(t))(e,...n)},isEdge:function(){for(var t=arguments.length,n=new Array(t),r=0;rUJe.isStart(e,t,n)||UJe.isEnd(e,t,n))(e,...n)},isEmpty:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&t0e.isText(r)&&""===r.text&&!e.isVoid(t)})(e,...n)},isEnd:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var r=UJe.end(e,n);return VJe.equals(t,r)})(e,...n)},isNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var t=vJe.get(e);return void 0===t||t})(e,...n)},isStart:function(){for(var t=arguments.length,n=new Array(t),r=0;r{if(0!==t.offset)return!1;var r=UJe.start(e,n);return VJe.equals(t,r)})(e,...n)},last:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var n=UJe.path(e,t,{edge:"end"});return UJe.node(e,n)})(e,...n)},leaf:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=UJe.path(e,t,n);return[zJe.leaf(e,r),r]}(e,...n)},levels:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),n){var a=[],s=UJe.path(e,n);for(var[l,u]of zJe.levels(e,s))if(o(l,u)&&(a.push([l,u]),!i&&jJe.isElement(l)&&UJe.isVoid(e,l)))break;r&&a.reverse(),yield*a}}(e,...n)},liftNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};UJe.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=wJe.isPath(n)?r0e(e,n):t=>jJe.isElement(t)&&UJe.isBlock(e,t)),n){var a=UJe.nodes(e,{at:n,match:o,mode:r,voids:i}),s=Array.from(a,(t=>{var[,n]=t;return UJe.pathRef(e,n)}));for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var c=UJe.node(e,wJe.parent(u)),[d,f]=c,h=u[u.length-1],{length:p}=d.children;if(1===p){var m=wJe.next(f);A0e.moveNodes(e,{at:u,to:m,voids:i}),A0e.removeNodes(e,{at:f,voids:i})}else if(0===h)A0e.moveNodes(e,{at:u,to:f,voids:i});else if(h===p-1){var g=wJe.next(f);A0e.moveNodes(e,{at:u,to:g,voids:i})}else{var v=wJe.next(u),O=wJe.next(f);A0e.splitNodes(e,{at:v,voids:i}),A0e.moveNodes(e,{at:u,to:O,voids:i})}}}}))}(e,...n)},mergeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};UJe.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(r){if(null==n)if(wJe.isPath(r)){var[s]=UJe.parent(e,r);n=e=>s.children.includes(e)}else n=t=>jJe.isElement(t)&&UJe.isBlock(e,t);if(!i&&RJe.isRange(r)&&(r=UJe.unhangRange(e,r,{voids:o})),RJe.isRange(r))if(RJe.isCollapsed(r))r=r.anchor;else{var[,l]=RJe.edges(r),u=UJe.pointRef(e,l);A0e.delete(e,{at:r}),r=u.unref(),null==t.at&&A0e.select(e,r)}var[c]=UJe.nodes(e,{at:r,match:n,voids:o,mode:a}),d=UJe.previous(e,{at:r,match:n,voids:o,mode:a});if(c&&d){var[f,h]=c,[p,m]=d;if(0!==h.length&&0!==m.length){var g,v,O=wJe.next(m),y=wJe.common(h,m),b=wJe.isSibling(h,m),w=Array.from(UJe.levels(e,{at:h}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),k=UJe.above(e,{at:h,mode:"highest",match:t=>w.includes(t)&&K0e(e,t)}),x=k&&UJe.pathRef(e,k[1]);if(t0e.isText(f)&&t0e.isText(p)){var _=TJe(f,G0e);v=p.text.length,g=_}else{if(!jJe.isElement(f)||!jJe.isElement(p))throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(ZJe.stringify(f)," ").concat(ZJe.stringify(p)));_=TJe(f,H0e),v=p.children.length,g=_}b||A0e.moveNodes(e,{at:h,to:O,voids:o}),x&&A0e.removeNodes(e,{at:x.current,voids:o}),jJe.isElement(p)&&UJe.isEmpty(e,p)||t0e.isText(p)&&""===p.text&&0!==m[m.length-1]?A0e.removeNodes(e,{at:m,voids:o}):e.apply({type:"merge_node",path:O,position:v,properties:g}),x&&x.unref()}}}}))}(e,...n)},move:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=RJe.isBackward(n)?"focus":"anchor"),"end"===a&&(a=RJe.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:i,ignoreNonSelectable:!0},c={};if(null==a||"anchor"===a){var d=o?UJe.before(e,s,u):UJe.after(e,s,u);d&&(c.anchor=d)}if(null==a||"focus"===a){var f=o?UJe.before(e,l,u):UJe.after(e,l,u);f&&(c.focus=f)}A0e.setSelection(e,c)}}(e,...n)},moveNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r{UJe.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){null==a&&(a=wJe.isPath(r)?r0e(e,r):t=>jJe.isElement(t)&&UJe.isBlock(e,t));var s=UJe.pathRef(e,n),l=UJe.nodes(e,{at:r,match:a,mode:i,voids:o}),u=Array.from(l,(t=>{var[,n]=t;return UJe.pathRef(e,n)}));for(var c of u){var d=c.unref(),f=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:f}),s.current&&wJe.isSibling(f,d)&&wJe.isAfter(f,d)&&(s.current=wJe.next(s.current))}s.unref()}}))})(e,...n)},next:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=UJe.after(e,o,{voids:r});if(a){var[,s]=UJe.last(e,[]),l=[a.path,s];if(wJe.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(wJe.isPath(o)){var[u]=UJe.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=UJe.nodes(e,{at:l,match:i,mode:n,voids:r});return c}}}(e,...n)},node:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=UJe.path(e,t,n);return[zJe.get(e,r),r]}(e,...n)},nodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1,ignoreNonSelectable:s=!1}=t,{match:l}=t;if(l||(l=()=>!0),n){var u,c;if(XJe(n))u=n[0],c=n[1];else{var d=UJe.path(e,n,{edge:"start"}),f=UJe.path(e,n,{edge:"end"});u=o?f:d,c=o?d:f}var h,p=zJe.nodes(e,{reverse:o,from:u,to:c,pass:t=>{var[n]=t;return!(!jJe.isElement(n)||(a||!UJe.isVoid(e,n)&&!UJe.isElementReadOnly(e,n))&&(!s||UJe.isSelectable(e,n)))}}),m=[];for(var[g,v]of p)if(!s||!jJe.isElement(g)||UJe.isSelectable(e,g)){var O=h&&0===wJe.compare(v,h[1]);if("highest"!==r||!O)if(l(g,v))if("lowest"===r&&O)h=[g,v];else{var y="lowest"===r?h:[g,v];y&&(i?m.push(y):yield y),h=[g,v]}else if(i&&!O&&t0e.isText(g))return}"lowest"===r&&h&&(i?m.push(h):yield h),i&&(yield*m)}}(e,...n)},normalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1,operation:r}=t,i=e=>pJe.get(e)||[],o=e=>{var t=i(e).pop(),n=t.join(",");return(e=>mJe.get(e)||new Set)(e).delete(n),t};if(UJe.isNormalizing(e)){if(n){var a=Array.from(zJe.nodes(e),(e=>{var[,t]=e;return t})),s=new Set(a.map((e=>e.join(","))));pJe.set(e,a),mJe.set(e,s)}0!==i(e).length&&UJe.withoutNormalizing(e,(()=>{for(var t of i(e))if(zJe.has(e,t)){var n=UJe.node(e,t),[a,s]=n;jJe.isElement(a)&&0===a.children.length&&e.normalizeNode(n,{operation:r})}for(var l=i(e),u=l.length,c=0;0!==l.length;){if(!e.shouldNormalize({dirtyPaths:l,iteration:c,initialDirtyPathsLength:u,operation:r}))return;var d=o(e);if(zJe.has(e,d)){var f=UJe.node(e,d);e.normalizeNode(f,{operation:r})}c++,l=i(e)}}))}}(e,...n)},parent:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=UJe.path(e,t,n),i=wJe.parent(r);return UJe.node(e,i)}(e,...n)},path:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:i}=n;if(wJe.isPath(t))if("start"===i){var[,o]=zJe.first(e,t);t=o}else if("end"===i){var[,a]=zJe.last(e,t);t=a}return RJe.isRange(t)&&(t="start"===i?RJe.start(t):"end"===i?RJe.end(t):wJe.common(t.anchor.path,t.focus.path)),VJe.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t}(e,...n)},pathRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return UJe.pathRefs(e).delete(i),i.current=null,t}};return UJe.pathRefs(e).add(i),i}(e,...n)},pathRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var t=OJe.get(e);return t||(t=new Set,OJe.set(e,t)),t})(e,...n)},point:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(wJe.isPath(t)){var i;if("end"===r){var[,o]=zJe.last(e,t);i=o}else{var[,a]=zJe.first(e,t);i=a}var s=zJe.get(e,i);if(!t0e.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:"end"===r?s.text.length:0}}if(RJe.isRange(t)){var[l,u]=RJe.edges(t);return"start"===r?l:u}return t}(e,...n)},pointRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return UJe.pointRefs(e).delete(i),i.current=null,t}};return UJe.pointRefs(e).add(i),i}(e,...n)},pointRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var t=yJe.get(e);return t||(t=new Set,yJe.set(e,t)),t})(e,...n)},positions:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1,ignoreNonSelectable:a=!1}=t;if(n){var s=UJe.range(e,n),[l,u]=RJe.edges(s),c=i?u:l,d=!1,f="",h=0,p=0,m=0;for(var[g,v]of UJe.nodes(e,{at:n,reverse:i,voids:o,ignoreNonSelectable:a})){if(jJe.isElement(g)){if(!o&&(e.isVoid(g)||e.isElementReadOnly(g))){yield UJe.start(e,v);continue}if(e.isInline(g))continue;if(UJe.hasInlines(e,g)){var O=wJe.isAncestor(v,u.path)?u:UJe.end(e,v),y=wJe.isAncestor(v,l.path)?l:UJe.start(e,v);f=UJe.string(e,{anchor:y,focus:O},{voids:o}),d=!0}}if(t0e.isText(g)){var b=wJe.equals(v,c.path);for(b?(p=i?c.offset:g.text.length-c.offset,m=c.offset):(p=g.text.length,m=i?p:0),(b||d||"offset"===r)&&(yield{path:v,offset:m},d=!1);;){if(0===h){if(""===f)break;h=w(f,r,i),f=l0e(f,h,i)[1]}if(m=i?m-h:m+h,(p-=h)<0){h=-p;break}h=0,yield{path:v,offset:m}}}}}function w(e,t,n){return"character"===t?i0e(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var i=i0e(e,t),[o,a]=l0e(e,i,t);if(u0e(o,a,t))r=!0,n+=i;else{if(r)break;n+=i}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}}(e,...n)},previous:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=UJe.before(e,o,{voids:r});if(a){var[,s]=UJe.first(e,[]),l=[a.path,s];if(wJe.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(wJe.isPath(o)){var[u]=UJe.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=UJe.nodes(e,{reverse:!0,at:l,match:i,mode:n,voids:r});return c}}}(e,...n)},range:function(){for(var t=arguments.length,n=new Array(t),r=0;rRJe.isRange(t)&&!n?t:{anchor:UJe.start(e,t),focus:UJe.end(e,n||t)})(e,...n)},rangeRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return UJe.rangeRefs(e).delete(i),i.current=null,t}};return UJe.rangeRefs(e).add(i),i}(e,...n)},rangeRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var t=bJe.get(e);return t||(t=new Set,bJe.set(e,t)),t})(e,...n)},removeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};UJe.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=wJe.isPath(o)?r0e(e,o):t=>jJe.isElement(t)&&UJe.isBlock(e,t)),!n&&RJe.isRange(o)&&(o=UJe.unhangRange(e,o,{voids:r}));var s=UJe.nodes(e,{at:o,match:a,mode:i,voids:r}),l=Array.from(s,(t=>{var[,n]=t;return UJe.pathRef(e,n)}));for(var u of l){var c=u.unref();if(c){var[d]=UJe.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))}(e,...n)},select:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:n}=e;if(t=UJe.range(e,t),n)A0e.setSelection(e,t);else{if(!RJe.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(ZJe.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}})(e,...n)},setNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};UJe.withoutNormalizing(e,(()=>{var{match:r,at:i=e.selection,compare:o,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:u=!1,voids:c=!1}=n;if(i){if(null==r&&(r=wJe.isPath(i)?r0e(e,i):t=>jJe.isElement(t)&&UJe.isBlock(e,t)),!s&&RJe.isRange(i)&&(i=UJe.unhangRange(e,i,{voids:c})),u&&RJe.isRange(i)){if(RJe.isCollapsed(i)&&UJe.leaf(e,i.anchor)[0].text.length>0)return;var d=UJe.rangeRef(e,i,{affinity:"inward"}),[f,h]=RJe.edges(i),p="lowest"===l?"lowest":"highest",m=UJe.isEnd(e,h,h.path);A0e.splitNodes(e,{at:h,match:r,mode:p,voids:c,always:!m});var g=UJe.isStart(e,f,f.path);A0e.splitNodes(e,{at:f,match:r,mode:p,voids:c,always:!g}),i=d.unref(),null==n.at&&A0e.select(e,i)}for(var[v,O]of(o||(o=(e,t)=>e!==t),UJe.nodes(e,{at:i,match:r,mode:l,voids:c}))){var y={},b={};if(0!==O.length){var w=!1;for(var k in t)"children"!==k&&"text"!==k&&o(t[k],v[k])&&(w=!0,v.hasOwnProperty(k)&&(y[k]=v[k]),a?null!=t[k]&&(b[k]=a(v[k],t[k])):null!=t[k]&&(b[k]=t[k]));w&&e.apply({type:"set_node",path:O,properties:y,newProperties:b})}}}}))}(e,...n)},setNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r{vJe.set(e,t)})(e,...n)},setPoint:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){"start"===i&&(i=RJe.isBackward(r)?"focus":"anchor"),"end"===i&&(i=RJe.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,s="anchor"===i?o:a;A0e.setSelection(e,{["anchor"===i?"anchor":"focus"]:Z0e(Z0e({},s),t)})}}(e,...n)},setSelection:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var{selection:n}=e,r={},i={};if(n){for(var o in t)("anchor"===o&&null!=t.anchor&&!VJe.equals(t.anchor,n.anchor)||"focus"===o&&null!=t.focus&&!VJe.equals(t.focus,n.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}})(e,...n)},splitNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};UJe.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>jJe.isElement(t)&&UJe.isBlock(e,t)),RJe.isRange(o)&&(o=((e,t)=>{if(RJe.isCollapsed(t))return t.anchor;var[,n]=RJe.edges(t),r=UJe.pointRef(e,n);return A0e.delete(e,{at:t}),r.unref()})(e,o)),wJe.isPath(o)){var l=o,u=UJe.point(e,l),[c]=UJe.parent(e,l);i=e=>e===c,a=u.path.length-l.length+1,o=u,s=!0}if(o){var d,f=UJe.pointRef(e,o,{affinity:"backward"});try{var[h]=UJe.nodes(e,{at:o,match:i,mode:n,voids:r});if(!h)return;var p=UJe.void(e,{at:o,mode:"highest"});if(!r&&p){var[m,g]=p;if(jJe.isElement(m)&&e.isInline(m)){var v=UJe.after(e,g);if(!v){var O=wJe.next(g);A0e.insertNodes(e,{text:""},{at:O,voids:r}),v=UJe.point(e,O)}o=v,s=!0}a=o.path.length-g.length+1,s=!0}d=UJe.pointRef(e,o);var y=o.path.length-a,[,b]=h,w=o.path.slice(0,y),k=0===a?o.offset:o.path[y]+0;for(var[x,_]of UJe.levels(e,{at:w,reverse:!0,voids:r})){var S=!1;if(_.lengthUJe.point(e,t,{edge:"start"}))(e,...n)},string:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,i=UJe.range(e,t),[o,a]=RJe.edges(i),s="";for(var[l,u]of UJe.nodes(e,{at:i,match:t0e.isText,voids:r})){var c=l.text;wJe.equals(u,a.path)&&(c=c.slice(0,a.offset)),wJe.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s}(e,...n)},unhangRange:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[i,o]=RJe.edges(t);if(0!==i.offset||0!==o.offset||RJe.isCollapsed(t)||wJe.hasPrevious(o.path))return t;var a=UJe.above(e,{at:o,match:t=>jJe.isElement(t)&&UJe.isBlock(e,t),voids:r}),s=a?a[1]:[],l={anchor:UJe.start(e,i),focus:o},u=!0;for(var[c,d]of UJe.nodes(e,{at:l,match:t0e.isText,reverse:!0,voids:r}))if(u)u=!1;else if(""!==c.text||wJe.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}}(e,...n)},unsetNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;A0e.setNodes(e,r,n)}(e,...n)},unwrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};UJe.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=wJe.isPath(o)?r0e(e,o):t=>jJe.isElement(t)&&UJe.isBlock(e,t)),wJe.isPath(o)&&(o=UJe.range(e,o));var s=RJe.isRange(o)?UJe.rangeRef(e,o):null,l=UJe.nodes(e,{at:o,match:a,mode:n,voids:i}),u=Array.from(l,(t=>{var[,n]=t;return UJe.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[o]=UJe.node(e,n),a=UJe.range(e,n);r&&s&&(a=RJe.intersection(s.current,a)),A0e.liftNodes(e,{at:a,match:e=>jJe.isAncestor(o)&&o.children.includes(e),voids:i})};for(var d of u)c(d);s&&s.unref()}}))}(e,...n)},void:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return UJe.above(e,U0e(U0e({},t),{},{match:t=>jJe.isElement(t)&&UJe.isVoid(e,t)}))}(e,...n)},withoutNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r{var n=UJe.isNormalizing(e);UJe.setNormalizing(e,!1);try{t()}finally{UJe.setNormalizing(e,n)}UJe.normalize(e)})(e,...n)},wrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};UJe.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=wJe.isPath(s)?r0e(e,s):e.isInline(t)?t=>jJe.isElement(t)&&UJe.isInline(e,t)||t0e.isText(t):t=>jJe.isElement(t)&&UJe.isBlock(e,t)),i&&RJe.isRange(s)){var[l,u]=RJe.edges(s),c=UJe.rangeRef(e,s,{affinity:"inward"});A0e.splitNodes(e,{at:u,match:a,voids:o}),A0e.splitNodes(e,{at:l,match:a,voids:o}),s=c.unref(),null==n.at&&A0e.select(e,s)}var d=Array.from(UJe.nodes(e,{at:s,match:e.isInline(t)?t=>jJe.isElement(t)&&UJe.isBlock(e,t):e=>UJe.isEditor(e),mode:"lowest",voids:o}));for(var[,f]of d){var h=RJe.isRange(s)?RJe.intersection(s,UJe.range(e,f)):s;if(h){var p=Array.from(UJe.nodes(e,{at:h,match:a,mode:r,voids:o}));if(p.length>0){var m=function(){var[n]=p,r=p[p.length-1],[,i]=n,[,a]=r;if(0===i.length&&0===a.length)return"continue";var s=wJe.equals(i,a)?wJe.parent(i):wJe.common(i,a),l=UJe.range(e,i,a),u=UJe.node(e,s),[c]=u,d=s.length+1,f=wJe.next(a.slice(0,d)),h=e1e(e1e({},t),{},{children:[]});A0e.insertNodes(e,h,{at:f,voids:o}),A0e.moveNodes(e,{at:l,match:e=>jJe.isAncestor(c)&&c.children.includes(e),to:f.concat(0),voids:o})}();if("continue"===m)continue}}}}}))}(e,...n)}};return e},n1e=e=>cJe(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||LJe.isOperationList(e.redos[0].operations))&&(0===e.undos.length||LJe.isOperationList(e.undos[0].operations)),r1e=(new WeakMap,new WeakMap),i1e=new WeakMap,o1e={isHistoryEditor:e=>n1e(e.history)&&UJe.isEditor(e),isMerging:e=>i1e.get(e),isSaving:e=>r1e.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=o1e.isMerging(e);i1e.set(e,!1),t(),i1e.set(e,n)},withoutSaving(e,t){var n=o1e.isSaving(e);r1e.set(e,!1),t(),r1e.set(e,n)}};const a1e=()=>t1e(),s1e=(e,t,n)=>UJe.pathRef(e,t,n),l1e=(e,t,n)=>UJe.pointRef(e,t,n);var u1e=Array.isArray,c1e=function(){if(!arguments.length)return[];var e=arguments[0];return u1e(e)?e:[e]};const d1e=e=>jJe.isElement(e),f1e=(e,t)=>d1e(t)&&UJe.isBlock(e,t),h1e=(e,t,n)=>!n||("object"==typeof n?Object.entries(n).every((([t,n])=>c1e(n).includes(e[t]))):n(e,t)),p1e=(e,t={})=>{const{match:n,block:r}=t;return{...t,match:n||r?(t,i)=>h1e(t,i,n)&&(!r||f1e(e,t)):void 0}},m1e=(e,t)=>UJe.above(e,p1e(e,t)),g1e=(e,t,n={})=>{const{voids:r,unhang:i=!0}=n;return RJe.isRange(t)&&i?UJe.unhangRange(e,t,{voids:r}):t},v1e=(e,t)=>(g1e(e,null==t?void 0:t.at,t),UJe.nodes(e,p1e(e,t))),O1e=(e,t,n)=>{try{return UJe.parent(e,t,n)}catch(e){}},y1e=(e,t)=>UJe.previous(e,t),b1e=(e,t)=>UJe.isEmpty(e,t),w1e=(e,t)=>{let n=!1;return UJe.withoutNormalizing(e,(()=>{n=!!t()})),n},k1e=e=>t0e.isText(e),x1e=e=>!!k1e(e)||1===e.children.length&&x1e(e.children[0]),_1e=(e,t)=>{A0e.delete(e,t)},S1e=(e,t)=>A0e.moveNodes(e,t),P1e=(e,t)=>A0e.removeNodes(e,t),E1e=(e,t)=>{A0e.select(e,t)},C1e=(e,t)=>UJe.end(e,t),T1e=(e,t,n)=>UJe.leaf(e,t,n),$1e=(e,t,n)=>UJe.after(e,t,n),Q1e=(e,t,n)=>UJe.before(e,t,n),R1e=(e,t)=>UJe.start(e,t),A1e=(e,t)=>UJe.void(e,t),j1e=(e,t)=>d1e(t)&&UJe.isVoid(e,t),D1e=(e,t={})=>{w1e(e,(()=>{const{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t;let{at:a=e.selection,hanging:s=!1}=t;if(!a)return;if(RJe.isRange(a)&&RJe.isCollapsed(a)&&(a=a.anchor),VJe.isPoint(a)){const t=A1e(e,{at:a,mode:"highest"});if(!o&&t){const[,e]=t;a=e}else{const t={unit:r,distance:i};a={anchor:a,focus:n?Q1e(e,a,t)||R1e(e,[]):$1e(e,a,t)||C1e(e,[])},s=!0}}if(wJe.isPath(a))return void P1e(e,{at:a,voids:o});if(RJe.isCollapsed(a))return;s||(a=UJe.unhangRange(e,a,{voids:o}));let[l,u]=RJe.edges(a);const c=m1e(e,{match:t=>f1e(e,t),at:l,voids:o}),d=m1e(e,{match:t=>f1e(e,t),at:u,voids:o}),f=c&&d&&!wJe.equals(c[1],d[1]),h=wJe.equals(l.path,u.path),p=o?null:A1e(e,{at:l,mode:"highest"}),m=o?null:A1e(e,{at:u,mode:"highest"});if(p){const t=Q1e(e,l);t&&c&&wJe.isAncestor(c[1],t.path)&&(l=t)}if(m){const t=$1e(e,u);t&&d&&wJe.isAncestor(d[1],t.path)&&(u=t)}const g=[];let v;const O=v1e(e,{at:a,voids:o});for(const t of O){const[n,r]=t;v&&0===wJe.compare(r,v)||(!o&&j1e(e,n)||!wJe.isCommon(r,l.path)&&!wJe.isCommon(r,u.path))&&(g.push(t),v=r)}const y=Array.from(g,(([,t])=>s1e(e,t))),b=l1e(e,l),w=l1e(e,u);if(!h&&!p){const t=b.current,[n]=T1e(e,t),{path:r}=t,{offset:i}=l,o=n.text.slice(i);e.apply({type:"remove_text",path:r,offset:i,text:o})}for(const t of y){const n=t.unref();P1e(e,{at:n,voids:o})}if(!m){const t=w.current,[n]=T1e(e,t),{path:r}=t,i=h?l.offset:0,o=n.text.slice(i,u.offset);e.apply({type:"remove_text",path:r,offset:i,text:o})}!h&&f&&w.current&&b.current&&((e,t={})=>{w1e(e,(()=>{let{match:n,at:r=e.selection}=t;const{mergeNode:i,removeEmptyAncestor:o,hanging:a=!1,voids:s=!1,mode:l="lowest"}=t;if(!r)return;if(null==n)if(wJe.isPath(r)){const[t]=O1e(e,r);n=e=>t.children.includes(e)}else n=t=>f1e(e,t);if(!a&&RJe.isRange(r)&&(r=UJe.unhangRange(e,r)),RJe.isRange(r))if(RJe.isCollapsed(r))r=r.anchor;else{const[,n]=RJe.edges(r),i=l1e(e,n);_1e(e,{at:r}),r=i.unref(),null==t.at&&E1e(e,r)}const u=v1e(e,{at:r,match:n,voids:s,mode:l}),[c]=Array.from(u),d=y1e(e,{at:r,match:n,voids:s,mode:l});if(!c||!d)return;const[f,h]=c,[p,m]=d;if(0===h.length||0===m.length)return;const g=wJe.next(m),v=wJe.common(h,m),O=wJe.isSibling(h,m),y=UJe.levels(e,{at:h}),b=new Set(Array.from(y,(([e])=>e)).slice(v.length).slice(0,-1)),w=m1e(e,{at:h,mode:"highest",match:e=>b.has(e)&&d1e(e)&&x1e(e)}),k=w&&s1e(e,w[1]);let x,_;if(k1e(f)&&k1e(p)){const{text:e,...t}=f;_=p.text.length,x=t}else{if(!d1e(f)||!d1e(p))throw new Error(`Cannot merge the node at path [${h}] with the previous sibling because it is not the same kind: ${JSON.stringify(f)} ${JSON.stringify(p)}`);{const{children:e,...t}=f;_=p.children.length,x=t}}if(O||i||S1e(e,{at:h,to:g,voids:s}),k)if(o){const t=k.current;t&&o(e,{at:t})}else P1e(e,{at:k.current,voids:s});i?i(e,{at:h,to:g}):d1e(p)&&b1e(e,p)||k1e(p)&&""===p.text?P1e(e,{at:m,voids:s}):e.apply({type:"merge_node",path:g,position:_,properties:x}),k&&k.unref()}))})(e,{at:w.current,hanging:!0,voids:o});const k=w.unref()||b.unref();null==t.at&&k&&E1e(e,k)}))},M1e=(e,t)=>UJe.edges(e,t),I1e=(e,t,n)=>{if(!t)return"";try{return UJe.string(e,t,n)}catch(e){return""}},z1e=e=>UJe.marks(e),W1e=(e,t,n)=>{try{return UJe.node(e,t,n)}catch(e){}},N1e=(e,t,n)=>UJe.path(e,t,n),L1e=(e,t,n)=>UJe.point(e,t,n),F1e=(e,t,n)=>UJe.range(e,t,n),U1e=(e,t,n)=>!!t&&UJe.isEnd(e,t,n),X1e=(e,t)=>d1e(t)&&UJe.isInline(e,t),q1e=(e,t,n)=>!!t&&UJe.isStart(e,t,n),B1e=(e,t)=>UJe.normalize(e,t),V1e=(e,t,n)=>zJe.common(e,t,n),Y1e=(e,t)=>{try{for(let n=0;nzJe.extractProps(e),G1e=e=>zJe.string(e),H1e=(e,t)=>zJe.nodes(e,t),K1e=(e,t)=>zJe.has(e,t),J1e=e=>jJe.isAncestor(e),e2e=e=>!!e&&RJe.isCollapsed(e),t2e=e=>!!e&&RJe.isExpanded(e),n2e=(e,t)=>{A0e.collapse(e,t)},r2e=(e,t,n)=>{if(null!=n&&n.nextBlock){const t=(null==n?void 0:n.at)||e.selection;if(t){const r=C1e(e,t),i=m1e(e,{at:r,block:!0});if(i){const e=wJe.next(i[1]);n.at=e}}}A0e.insertNodes(e,t,n)},i2e=(e,t,n)=>{A0e.insertText(e,t,n)},o2e=(e,t)=>{A0e.move(e,t)},a2e=(e,t,n)=>A0e.setNodes(e,t,n),s2e=(e,t)=>{A0e.setSelection(e,t)},l2e=(e,t)=>A0e.splitNodes(e,t),u2e=(e,t,n)=>A0e.unsetNodes(e,t,n),c2e=(e,t)=>{A0e.unwrapNodes(e,p1e(e,t))},d2e=(e,t,n)=>{g1e(e,null==n?void 0:n.at,n),A0e.wrapNodes(e,t,n)},f2e=(e,{filter:t,allow:n,exclude:r,level:i,maxLevel:o}={})=>{if(!e)return!1;const[a,s]=e;if(i&&!c1e(i).includes(s.length))return!1;if(o&&s.length>o)return!1;if(t&&!t(e))return!1;if(n){const e=c1e(n);if(e.length>0&&!e.includes(a.type))return!1}if(r){const e=c1e(r);if(e.length>0&&e.includes(a.type))return!1}return!0},h2e=(e,t={})=>{try{const n=v1e(e,{at:e.selection||[],...p1e(e,t)});for(const[e,t]of n)return[e,t]}catch(e){return}},p2e=(e,t)=>!!h2e(e,t),m2e=(e,t,n)=>a2e(e,t,n),g2e=(e,t)=>{let[n,r]=RJe.edges(t);if(!wJe.equals(n.path,r.path))if(0===r.offset){const t=$1e(e,n);t&&(r=t)}else{const t=Q1e(e,r);t&&(n=t)}return{anchor:n,focus:r}};var v2e=__webpack_require__(91587),O2e=__webpack_require__.n(v2e),y2e=__webpack_require__(52197),b2e=__webpack_require__.n(y2e);function w2e(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function k2e(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function x2e(e,t){if(e.clientHeightt||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0}var S2e=function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!w2e(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=e;w2e(h)&&l(h);){if((h=null==(c=(u=h).parentElement)?u.getRootNode().host||null:c)===d){f.push(h);break}null!=h&&h===document.body&&x2e(h)&&!x2e(document.documentElement)||null!=h&&x2e(h,s)&&f.push(h)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,O=e.getBoundingClientRect(),y=O.height,b=O.width,w=O.top,k=O.right,x=O.bottom,_=O.left,S="start"===i||"nearest"===i?w:"end"===i?x:w+y/2,P="center"===o?_+b/2:"end"===o?k:_,E=[],C=0;C=0&&_>=0&&x<=m&&k<=p&&w>=A&&x<=D&&_>=M&&k<=j)return E;var I=getComputedStyle(T),z=parseInt(I.borderLeftWidth,10),W=parseInt(I.borderTopWidth,10),N=parseInt(I.borderRightWidth,10),L=parseInt(I.borderBottomWidth,10),F=0,U=0,X="offsetWidth"in T?T.offsetWidth-T.clientWidth-z-N:0,q="offsetHeight"in T?T.offsetHeight-T.clientHeight-W-L:0,B="offsetWidth"in T?0===T.offsetWidth?0:R/T.offsetWidth:0,V="offsetHeight"in T?0===T.offsetHeight?0:Q/T.offsetHeight:0;if(d===T)F="start"===i?S:"end"===i?S-m:"nearest"===i?_2e(v,v+m,m,W,L,v+S,v+S+y,y):S-m/2,U="start"===o?P:"center"===o?P-p/2:"end"===o?P-p:_2e(g,g+p,p,z,N,g+P,g+P+b,b),F=Math.max(0,F+v),U=Math.max(0,U+g);else{F="start"===i?S-A-W:"end"===i?S-D+L+q:"nearest"===i?_2e(A,D,Q,W,L+q,S,S+y,y):S-(A+Q/2)+q/2,U="start"===o?P-M-z:"center"===o?P-(M+R/2)+X/2:"end"===o?P-j+N+X:_2e(M,j,R,z,N+X,P,P+b,b);var Y=T.scrollLeft,Z=T.scrollTop;S+=Z-(F=Math.max(0,Math.min(Z+F/V,T.scrollHeight-Q/V+q))),P+=Y-(U=Math.max(0,Math.min(Y+U/B,T.scrollWidth-R/B+X)))}E.push({el:T,top:F,left:U})}return E};function P2e(e){return e===Object(e)&&0!==Object.keys(e).length}var E2e,C2e=[],T2e="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(E2e||(E2e={}));var $2e,Q2e=function(e){return Object.freeze(e)},R2e=function(e,t){this.inlineSize=e,this.blockSize=t,Q2e(this)},A2e=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Q2e(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),j2e=function(e){return e instanceof SVGElement&&"getBBox"in e},D2e=function(e){if(j2e(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},M2e=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},I2e="undefined"!=typeof window?window:{},z2e=new WeakMap,W2e=/auto|scroll/,N2e=/^tb|vertical/,L2e=/msie|trident/i.test(I2e.navigator&&I2e.navigator.userAgent),F2e=function(e){return parseFloat(e||"0")},U2e=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new R2e((n?t:e)||0,(n?e:t)||0)},X2e=Q2e({devicePixelContentBoxSize:U2e(),borderBoxSize:U2e(),contentBoxSize:U2e(),contentRect:new A2e(0,0,0,0)}),q2e=function(e,t){if(void 0===t&&(t=!1),z2e.has(e)&&!t)return z2e.get(e);if(D2e(e))return z2e.set(e,X2e),X2e;var n=getComputedStyle(e),r=j2e(e)&&e.ownerSVGElement&&e.getBBox(),i=!L2e&&"border-box"===n.boxSizing,o=N2e.test(n.writingMode||""),a=!r&&W2e.test(n.overflowY||""),s=!r&&W2e.test(n.overflowX||""),l=r?0:F2e(n.paddingTop),u=r?0:F2e(n.paddingRight),c=r?0:F2e(n.paddingBottom),d=r?0:F2e(n.paddingLeft),f=r?0:F2e(n.borderTopWidth),h=r?0:F2e(n.borderRightWidth),p=r?0:F2e(n.borderBottomWidth),m=d+u,g=l+c,v=(r?0:F2e(n.borderLeftWidth))+h,O=f+p,y=s?e.offsetHeight-O-e.clientHeight:0,b=a?e.offsetWidth-v-e.clientWidth:0,w=i?m+v:0,k=i?g+O:0,x=r?r.width:F2e(n.width)-w-b,_=r?r.height:F2e(n.height)-k-y,S=x+m+b+v,P=_+g+y+O,E=Q2e({devicePixelContentBoxSize:U2e(Math.round(x*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:U2e(S,P,o),contentBoxSize:U2e(x,_,o),contentRect:new A2e(d,l,x,_)});return z2e.set(e,E),E},B2e=function(e,t,n){var r=q2e(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case E2e.DEVICE_PIXEL_CONTENT_BOX:return a;case E2e.BORDER_BOX:return i;default:return o}},V2e=function(e){var t=q2e(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Q2e([t.borderBoxSize]),this.contentBoxSize=Q2e([t.contentBoxSize]),this.devicePixelContentBoxSize=Q2e([t.devicePixelContentBoxSize])},Y2e=function(e){if(D2e(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Z2e=function(){var e=1/0,t=[];C2e.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new V2e(t.target),i=Y2e(t.target);r.push(n),t.lastReportedSize=B2e(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},H2e=[],K2e=0,J2e={attributes:!0,characterData:!0,childList:!0,subtree:!0},e3e=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],t3e=function(e){return void 0===e&&(e=0),Date.now()+e},n3e=!1,r3e=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!n3e){n3e=!0;var n,r=t3e(e);n=function(){var n=!1;try{n=function(){var e,t=0;for(G2e(t);C2e.some((function(e){return e.activeTargets.length>0}));)t=Z2e(),G2e(t);return C2e.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:T2e}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=T2e),window.dispatchEvent(e)),t>0}()}finally{if(n3e=!1,e=r-t3e(),!K2e)return;n?t.run(1e3):e>0?t.run(e):t.start()}},function(e){if(!$2e){var t=0,n=document.createTextNode("");new MutationObserver((function(){return H2e.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),$2e=function(){n.textContent="".concat(t?t--:t++)}}H2e.push(e),$2e()}((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,J2e)};document.body?t():I2e.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),e3e.forEach((function(t){return I2e.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),e3e.forEach((function(t){return I2e.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}(),i3e=new r3e,o3e=function(e){!K2e&&e>0&&i3e.start(),!(K2e+=e)&&i3e.stop()},a3e=function(){function e(e,t){this.target=e,this.observedBox=t||E2e.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=B2e(this.target,this.observedBox,!0);return e=this.target,j2e(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),s3e=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},l3e=new WeakMap,u3e=function(e,t){for(var n=0;n=0&&(i&&C2e.splice(C2e.indexOf(n),1),n.observationTargets.splice(r,1),o3e(-1))},e.disconnect=function(e){var t=this,n=l3e.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),d3e=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");c3e.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!M2e(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");c3e.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!M2e(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");c3e.unobserve(this,e)},e.prototype.disconnect=function(){c3e.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),f3e=__webpack_require__(49216);function h3e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p3e(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var m3e=(0,c.createContext)(null),g3e=()=>{var e=(0,c.useContext)(m3e);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the component's context.");return e},v3e=parseInt(c.version.split(".")[0],10),O3e="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,y3e="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),b3e="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),w3e="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),k3e="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),x3e="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),_3e="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),S3e="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),P3e=b3e&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),E3e="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),C3e="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),T3e="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),$3e=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Q3e=(!S3e||!P3e)&&!x3e&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,R3e=new WeakMap,A3e=new WeakMap,j3e=new WeakMap,D3e=new WeakMap,M3e=new WeakMap,I3e=new WeakMap,z3e=new WeakMap,W3e=new WeakMap,N3e=new WeakMap,L3e=new WeakMap,F3e=new WeakMap,U3e=new WeakMap,X3e=new WeakMap,q3e=new WeakMap,B3e=new WeakMap,V3e=new WeakMap,Y3e=new WeakMap,Z3e=new WeakMap,G3e=new WeakMap,H3e=new WeakMap,K3e=new WeakMap,J3e=Symbol("placeholder"),e4e=Symbol("mark-placeholder"),t4e=globalThis.Text,n4e=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,r4e=e=>i4e(e)&&1===e.nodeType,i4e=e=>{var t=n4e(e);return!!t&&e instanceof t.Node},o4e=e=>{var t=e&&e.anchorNode&&n4e(e.anchorNode);return!!t&&e instanceof t.Selection},a4e=e=>i4e(e)&&3===e.nodeType,s4e=(e,t,n)=>{for(var r,{childNodes:i}=e,o=i[t],a=t,s=!1,l=!1;(i4e(r=o)&&8===r.nodeType||r4e(o)&&0===o.childNodes.length||r4e(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!l);)a>=i.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(o=i[a],t=a,a+="forward"===n?1:-1);return[o,t]},l4e=(e,t,n)=>{var[r]=s4e(e,t,n);return r},u4e=e=>{var t="";if(a4e(e)&&e.nodeValue)return e.nodeValue;if(r4e(e)){for(var n of Array.from(e.childNodes))t+=u4e(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},c4e=/data-slate-fragment="(.+?)"/m,d4e=(e,t,n)=>{var{target:r}=t;if(r4e(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:i}=p4e.getWindow(e);if(i.contains(r))return p4e.hasDOMNode(e,r,{editable:!0});var o=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var i of t)if(i===r||i.contains(r))return!0;for(var o of n)if(o===r||o.contains(r))return!0}));return!(!o||o===t)&&d4e(e,o,n)},f4e=0;class h4e{constructor(){this.id="".concat(f4e++)}}var p4e={androidPendingDiffs:e=>Z3e.get(e),androidScheduleFlush:e=>{var t;null===(t=B3e.get(e))||void 0===t||t()},blur:e=>{var t=p4e.toDOMNode(e,e),n=p4e.findDocumentOrShadowRoot(e);F3e.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=p4e.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&A0e.deselect(e)},findDocumentOrShadowRoot:e=>{var t=p4e.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:i}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o,a=p4e.toSlateNode(e,t.target),s=p4e.findPath(e,a);if(jJe.isElement(a)&&UJe.isVoid(e,a)){var l=i.getBoundingClientRect(),u=e.isInline(a)?n-l.left{var n=W3e.get(t);return n||(n=new h4e,W3e.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var i=A3e.get(r);if(null==i){if(UJe.isEditor(r))return n;break}var o=R3e.get(r);if(null==o)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: ".concat(ZJe.stringify(t)))},focus:e=>{var t=p4e.toDOMNode(e,e),n=p4e.findDocumentOrShadowRoot(e);F3e.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},getWindow:e=>{var t=j3e.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=r,o=p4e.toDOMNode(e,e);try{n=r4e(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==o||i&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==o)&&!n.getAttribute("data-slate-zero-width"))},hasEditableTarget:(e,t)=>i4e(t)&&p4e.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return UJe.hasPath(e,n.path)&&UJe.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>p4e.hasEditableTarget(e,t)||p4e.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>i4e(t)&&p4e.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!U3e.get(e),isFocused:e=>!!F3e.get(e),isReadOnly:e=>!!L3e.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(L3e.get(e))return!1;var n=p4e.hasTarget(e,t)&&p4e.toSlateNode(e,t);return jJe.isElement(n)&&UJe.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=N3e.get(e),r=UJe.isEditor(t)?D3e.get(e):null==n?void 0:n.get(p4e.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ZJe.stringify(t)));return r},toDOMPoint:(e,t)=>{var n,[r]=UJe.node(e,t.path),i=p4e.toDOMNode(e,r);UJe.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s{var{anchor:n,focus:r}=t,i=RJe.isBackward(t),o=p4e.toDOMPoint(e,n),a=RJe.isCollapsed(t)?o:p4e.toDOMPoint(e,r),s=p4e.getWindow(e).document.createRange(),[l,u]=i?a:o,[c,d]=i?o:a,f=!!(r4e(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(r4e(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,f?1:u),s.setEnd(c,h?1:d),s},toSlateNode:(e,t)=>{var n=r4e(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?I3e.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:i}=n,[o,a]=r?t:(e=>{var[t,n]=e;if(r4e(t)&&t.childNodes.length){var r=n===t.childNodes.length,i=r?n-1:n;for([t,i]=s4e(t,i,r?"backward":"forward"),r=i{b3e&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),u=O.textContent.length,g=l}}else if(p){for(var y=p.querySelectorAll("[data-slate-leaf]"),b=0;b{u-=e.textContent.length}))):u=1}g&&u===g.textContent.length&&b3e&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(c=g.textContent)&&void 0!==c&&c.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||w3e&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&u--}if(b3e&&!l&&!r){var k=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(k&&p4e.hasDOMNode(e,k,{editable:!0})){var x=p4e.toSlateNode(e,k),{path:_,offset:S}=UJe.start(e,p4e.findPath(e,x));return k.querySelector("[data-slate-leaf]")||(S=a),{path:_,offset:S}}}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var P=p4e.toSlateNode(e,l);return{path:p4e.findPath(e,P),offset:u}},toSlateRange:(e,t,n)=>{var r,i,o,a,s,l,{exactMatch:u,suppressThrow:c}=n;if(o4e(t)?t.anchorNode:t.startContainer)if(o4e(t)){if(w3e&&t.rangeCount>1){o=t.focusNode;var d=t.getRangeAt(0),f=t.getRangeAt(t.rangeCount-1);if(o instanceof HTMLTableRowElement&&d.startContainer instanceof HTMLTableRowElement&&f.startContainer instanceof HTMLTableRowElement){function b(e){return e.childElementCount>0?b(e.children[0]):e}var h=d.startContainer,p=f.startContainer,m=b(h.children[d.startOffset]),g=b(p.children[f.startOffset]);a=0,r=g.childNodes.length>0?g.childNodes[0]:g,o=m.childNodes.length>0?m.childNodes[0]:m,i=g instanceof HTMLElement?g.innerHTML.length:0}else d.startContainer===o?(r=f.endContainer,i=f.endOffset,a=d.startOffset):(r=d.startContainer,i=d.endOffset,a=f.startOffset)}else r=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset;s=_3e&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(r)||w3e?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed}else r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed;if(null==r||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));"getAttribute"in o&&"false"===o.getAttribute("contenteditable")&&"true"!==o.getAttribute("data-slate-void")&&(o=r,a=(null===(l=r.textContent)||void 0===l?void 0:l.length)||0);var v=p4e.toSlatePoint(e,[r,i],{exactMatch:u,suppressThrow:c});if(!v)return null;var O=s?v:p4e.toSlatePoint(e,[o,a],{exactMatch:u,suppressThrow:c});if(!O)return null;var y={anchor:v,focus:O};return RJe.isExpanded(y)&&RJe.isForward(y)&&r4e(o)&&UJe.void(e,{at:y.focus,mode:"highest"})&&(y=UJe.unhangRange(e,y,{voids:!0})),y}};function m4e(e,t){var{path:n,diff:r}=t;if(!UJe.hasPath(e,n))return!1;var i=zJe.get(e,n);if(!t0e.isText(i))return!1;if(r.start!==i.text.length||0===r.text.length)return i.text.slice(r.start,r.start+r.text.length)===r.text;var o=wJe.next(n);if(!UJe.hasPath(e,o))return!1;var a=zJe.get(e,o);return t0e.isText(a)&&a.text.startsWith(r.text)}function g4e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.slice(0,t.start)+t.text+e.slice(t.end)),e)}function v4e(e,t){var{start:n,end:r,text:i}=t,o=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;rjJe.isElement(t)&&UJe.isBlock(e,t),at:n});if(!o)return null;for(;r>i.text.length;){var a=UJe.next(e,{at:n,match:t0e.isText});if(!a||!wJe.isDescendant(a[1],o[1]))return null;r-=i.text.length,i=a[0],n=a[1]}return{path:n,offset:r}}function b4e(e,t){var n=y4e(e,t.anchor);if(!n)return null;if(RJe.isCollapsed(t))return{anchor:n,focus:n};var r=y4e(e,t.focus);return r?{anchor:n,focus:r}:null}function w4e(e,t,n){var r=Z3e.get(e),i=null==r?void 0:r.find((e=>{var{path:n}=e;return wJe.equals(n,t.path)}));if(!i||t.offset<=i.diff.start)return VJe.transform(t,n,{affinity:"backward"});var{diff:o}=i;if(t.offset<=o.start+o.text.length){var a={path:t.path,offset:o.start},s=VJe.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-o.start}:null}var l={path:t.path,offset:t.offset-o.text.length+o.end-o.start},u=VJe.transform(l,n,{affinity:"backward"});return u?"split_node"===n.type&&wJe.equals(n.path,t.path)&&l.offset{var{node:t}=e,n=p3e(e,P4e);if(!b3e)return null;var r,i=g3e(),o=(r=(0,c.useRef)(!1),(0,c.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,c.useState)((()=>function(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,i=!1,o=null,a=null,s=null,l=0,u=!1,c=()=>{var e=H3e.get(t);if(H3e.delete(t),e){var{selection:n}=t,r=b4e(t,e);!r||n&&RJe.equals(r,n)||A0e.select(t,r)}},d=()=>{if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),g()||m()){i||(i=!0,setTimeout((()=>i=!1))),m()&&(i="action");var e=t.selection&&UJe.rangeRef(t,t.selection,{affinity:"forward"});Y3e.set(t,t.marks),G3e.get(t),Z3e.get(t);for(var o,l=g();o=null===(d=Z3e.get(t))||void 0===d?void 0:d[0];){var d,f,h=V3e.get(t);void 0!==h&&(V3e.delete(t),t.marks=h),h&&!1===u&&(u=null);var p=O4e(o);t.selection&&RJe.equals(t.selection,p)||A0e.select(t,p),o.diff.text?UJe.insertText(t,o.diff.text):UJe.deleteFragment(t),Z3e.set(t,null===(f=Z3e.get(t))||void 0===f?void 0:f.filter((e=>{var{id:t}=e;return t!==o.id}))),m4e(t,o)||(l=!1,G3e.delete(t),Y3e.delete(t),i="action",H3e.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var v=null==e?void 0:e.unref();if(!v||H3e.get(t)||t.selection&&RJe.equals(v,t.selection)||A0e.select(t,v),m())(()=>{var e=G3e.get(t);if(G3e.delete(t),e){if(e.at){var n=VJe.isPoint(e.at)?y4e(t,e.at):b4e(t,e.at);if(!n)return;var r=UJe.range(t,n);t.selection&&RJe.equals(t.selection,r)||A0e.select(t,n)}e.run()}})();else{l&&n(),n.flush(),r.flush(),c();var O=Y3e.get(t);Y3e.delete(t),void 0!==O&&(t.marks=O,t.onChange())}}else c()},f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=M3e.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},h=(e,n)=>{var r,i=null!==(r=Z3e.get(t))&&void 0!==r?r:[];Z3e.set(t,i);var o=zJe.leaf(t,e),a=i.findIndex((t=>wJe.equals(t.path,e)));if(a<0)return v4e(o.text,n)&&i.push({path:e,diff:n,id:l++}),void f();var s=function(e,t,n){var r=Math.min(t.start,n.start),i=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),o=g4e(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-i),s=o.slice(r,a);return v4e(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}(o.text,i[a].diff,n);if(!s)return i.splice(a,1),void f();i[a]=_4e(_4e({},i[a]),{},{diff:s})},p=function(e){var{at:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u=!1,H3e.delete(t),n.cancel(),r.cancel(),m()&&d(),G3e.set(t,{at:i,run:e}),s=setTimeout(d)},m=()=>!!G3e.get(t),g=()=>{var e;return!(null===(e=Z3e.get(t))||void 0===e||!e.length)},v=e=>{H3e.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!wJe.equals(n.anchor.path,e.anchor.path),i=!n||!wJe.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&u||i)&&(u=!1),(r||g())&&(a=setTimeout(d,200))}},O=()=>{m()||(s=setTimeout(d))};return{flush:d,scheduleFlush:O,hasPendingDiffs:g,hasPendingAction:m,hasPendingChanges:()=>m()||g(),isFlushing:()=>i,handleUserSelect:v,handleCompositionEnd:e=>{o&&clearTimeout(o),o=setTimeout((()=>{U3e.set(t,!1),d()}),25)},handleCompositionStart:e=>{U3e.set(t,!0),o&&(clearTimeout(o),o=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:r}=e,i=null,o=e.dataTransfer||e.data||void 0;!1!==u&&"insertText"!==r&&"insertCompositionText"!==r&&(u=!1);var[s]=e.getTargetRanges();s&&(i=p4e.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=p4e.getWindow(t).getSelection();if(!i&&l&&(s=l,i=p4e.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),i=null!==(n=i)&&void 0!==n?n:t.selection){var c,d=!0;if(r.startsWith("delete")){if(RJe.isExpanded(i)){var[f,m]=RJe.edges(i);if(zJe.leaf(t,f.path).text.length===f.offset&&0===m.offset){var g=UJe.next(t,{at:f.path,match:t0e.isText});g&&wJe.equals(g[1],m.path)&&(i={anchor:m,focus:m})}}var y=r.endsWith("Backward")?"backward":"forward",[b,w]=RJe.edges(i),[k,x]=UJe.leaf(t,b.path),_={text:"",start:b.offset,end:w.offset},S=Z3e.get(t),P=null==S?void 0:S.find((e=>wJe.equals(e.path,x))),E=P?[P.diff,_]:[_];if(0===g4e(k.text,...E).length&&(d=!1),RJe.isExpanded(i)){if(d&&wJe.equals(i.anchor.path,i.focus.path)){var C={path:i.anchor.path,offset:b.offset},T=UJe.range(t,C,C);return v(T),h(i.anchor.path,{text:"",end:w.offset,start:b.offset})}return p((()=>UJe.deleteFragment(t,{direction:y})),{at:i})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return p((()=>UJe.deleteFragment(t)),{at:i});case"deleteContent":case"deleteContentForward":var{anchor:$}=i;if(d&&RJe.isCollapsed(i)){var Q=zJe.leaf(t,$.path);if($.offsetUJe.deleteForward(t)),{at:i});case"deleteContentBackward":var R,{anchor:A}=i,j=o4e(s)?s.isCollapsed:!(null===(R=s)||void 0===R||!R.collapsed);return d&&j&&RJe.isCollapsed(i)&&A.offset>0?h(A.path,{text:"",start:A.offset-1,end:A.offset}):p((()=>UJe.deleteBackward(t)),{at:i});case"deleteEntireSoftLine":return p((()=>{UJe.deleteBackward(t,{unit:"line"}),UJe.deleteForward(t,{unit:"line"})}),{at:i});case"deleteHardLineBackward":return p((()=>UJe.deleteBackward(t,{unit:"block"})),{at:i});case"deleteSoftLineBackward":return p((()=>UJe.deleteBackward(t,{unit:"line"})),{at:i});case"deleteHardLineForward":return p((()=>UJe.deleteForward(t,{unit:"block"})),{at:i});case"deleteSoftLineForward":return p((()=>UJe.deleteForward(t,{unit:"line"})),{at:i});case"deleteWordBackward":return p((()=>UJe.deleteBackward(t,{unit:"word"})),{at:i});case"deleteWordForward":return p((()=>UJe.deleteForward(t,{unit:"word"})),{at:i});case"insertLineBreak":return p((()=>UJe.insertSoftBreak(t)),{at:i});case"insertParagraph":return p((()=>UJe.insertBreak(t)),{at:i});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==(c=o)?void 0:c.constructor.name))return p((()=>p4e.insertData(t,o)),{at:i});var D=null!=o?o:"";if(V3e.get(t)&&(D=D.replace("\ufeff","")),"insertText"===r&&/.*\n.*\n$/.test(D)&&(D=D.slice(0,-1)),D.includes("\n"))return p((()=>{var e=D.split("\n");e.forEach(((n,r)=>{n&&UJe.insertText(t,n),r!==e.length-1&&UJe.insertSoftBreak(t)}))}),{at:i});if(wJe.equals(i.anchor.path,i.focus.path)){var[M,I]=RJe.edges(i),z={start:M.offset,end:I.offset,text:D};if(D&&u&&"insertCompositionText"===r){var W=u.start+u.text.search(/\S|$/);z.start+z.text.search(/\S|$/)===W+1&&z.end===u.start+u.text.length?(z.start-=1,u=null,O()):u=!1}else u="insertText"===r&&(null===u?z:!(!u||!RJe.isCollapsed(i)||u.end+u.text.length!==M.offset)&&_4e(_4e({},u),{},{text:u.text+D}));if(d)return void h(M.path,z)}return p((()=>UJe.insertText(t,D)),{at:i})}}},handleKeyDown:e=>{g()||(f(!0),setTimeout(f))},handleDomMutations:e=>{var n;g()||m()||e.some((n=>d4e(t,n,e)))&&(null===(n=K3e.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}(function(e){for(var t=1;tnew MutationObserver(t)));S4e((()=>{r.takeRecords()})),(0,c.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()}),[r,e,n])}(t,a.handleDomMutations,C4e),B3e.set(i,a.scheduleFlush),o&&a.flush(),a}:()=>null,$4e=["anchor","focus"],Q4e=["anchor","focus"],R4e=(e,t)=>{var n,r,i=p3e(e,$4e),o=p3e(t,Q4e);return e[J3e]===t[J3e]&&(n=i,r=o,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((e=>r.hasOwnProperty(e)&&n[e]===r[e])))},A4e=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,o=g3e(),a=p4e.findPath(o,i),s=wJe.parent(a),l=!0===n[e4e];return o.isVoid(r)?c.createElement(M4e,{length:zJe.string(r).length}):""!==n.text||r.children[r.children.length-1]!==i||o.isInline(r)||""!==UJe.string(o,s)?""===n.text?c.createElement(M4e,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c.createElement(j4e,{isTrailing:!0,text:n.text}):c.createElement(j4e,{text:n.text}):c.createElement(M4e,{isLineBreak:!0,isMarkPlaceholder:l})},j4e=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,c.useRef)(null),i=()=>"".concat(null!=t?t:"").concat(n?"\n":""),[o]=(0,c.useState)(i);return S4e((()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),c.createElement(D4e,{ref:r},o)},D4e=(0,c.memo)((0,c.forwardRef)(((e,t)=>c.createElement("span",{"data-slate-string":!0,ref:t},e.children)))),M4e=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,i={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(i["data-slate-mark-placeholder"]=!0),c.createElement("span",Object.assign({},i),b3e&&n?null:"\ufeff",n?c.createElement("br",null):null)};function I4e(e){e.current&&(clearTimeout(e.current),e.current=null)}var z4e=e=>{var{leaf:t,isLast:n,text:r,parent:i,renderPlaceholder:o,renderLeaf:a=(e=>c.createElement(N4e,Object.assign({},e)))}=e,s=g3e(),l=(0,c.useRef)(null),u=(0,c.useRef)(null),[d,f]=(0,c.useState)(!1),h=(0,c.useRef)(null),p=(0,c.useCallback)((e=>{if(function(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}(l,null==e),null==e){var n;M3e.delete(s),null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,null)}else{if(M3e.set(s,e),!l.current){var r=window.ResizeObserver||d3e;l.current=new r((()=>{var n;null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,e)}))}l.current.observe(e),u.current=e}}),[u,t,s]),m=c.createElement(A4e,{isLast:n,leaf:t,parent:i,text:r}),g=t[J3e];if((0,c.useEffect)((()=>(g?h.current||(h.current=setTimeout((()=>{f(!0),h.current=null}),300)):(I4e(h),f(!1)),()=>I4e(h))),[g,f]),g&&d){var v={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:k3e?"inherit":void 0},contentEditable:!1,ref:p}};m=c.createElement(c.Fragment,null,o(v),m)}return a({attributes:{"data-slate-leaf":!0},children:m,leaf:t,text:r})},W4e=c.memo(z4e,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&t0e.equals(t.leaf,e.leaf)&&t.leaf[J3e]===e.leaf[J3e])),N4e=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Object.assign({},t),n)},L4e=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:o,text:a}=e,s=g3e(),l=(0,c.useRef)(null),u=t0e.decorations(a,t),d=p4e.findKey(s,a),f=[],h=0;h{var t=N3e.get(s);e?(null==t||t.set(d,e),z3e.set(a,e),I3e.set(e,a)):(null==t||t.delete(d),z3e.delete(a),l.current&&I3e.delete(l.current)),l.current=e}),[l,s,d,a]);return c.createElement("span",{"data-slate-node":"text",ref:m},f)},F4e=c.memo(L4e,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n{var{decorations:t,element:n,renderElement:r=(e=>c.createElement(q4e,Object.assign({},e))),renderPlaceholder:i,renderLeaf:o,selection:a}=e,s=g3e(),l=G4e(),u=s.isInline(n),d=p4e.findKey(s,n),f=(0,c.useCallback)((e=>{var t=N3e.get(s);e?(null==t||t.set(d,e),z3e.set(n,e),I3e.set(e,n)):(null==t||t.delete(d),z3e.delete(n))}),[s,d,n]),h=Y4e({decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}),p={"data-slate-node":"element",ref:f};if(u&&(p["data-slate-inline"]=!0),!u&&UJe.hasInlines(s,n)){var m=zJe.string(n),g=O2e()(m);"rtl"===g&&(p.dir=g)}if(UJe.isVoid(s,n)){p["data-slate-void"]=!0,!l&&u&&(p.contentEditable=!1);var v=u?"span":"div",[[O]]=zJe.texts(n);h=c.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},c.createElement(F4e,{renderPlaceholder:i,decorations:[],isLast:!1,parent:n,text:O})),R3e.set(O,0),A3e.set(O,n)}return r({attributes:p,children:h,element:n})},X4e=c.memo(U4e,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n{var{attributes:t,children:n,element:r}=e,i=g3e().isInline(r)?"span":"div";return c.createElement(i,Object.assign({},t,{style:{position:"relative"}}),n)},B4e=(0,c.createContext)((()=>[])),V4e=(0,c.createContext)(!1),Y4e=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}=e,s=(0,c.useContext)(B4e),l=g3e(),u=p4e.findPath(l,n),d=[],f=jJe.isElement(n)&&!l.isInline(n)&&UJe.hasInlines(l,n),h=0;h(0,c.useContext)(Z4e),H4e=(0,c.createContext)(null),K4e=()=>{var e=(0,c.useContext)(H4e);if(!e)throw new Error("The `useSlate` hook must be used inside the component's context.");var{editor:t}=e;return t},J4e={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},e5e={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},t5e={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},n5e=e=>{var t=J4e[e],n=e5e[e],r=t5e[e],i=t&&(0,f3e.P6)(t),o=n&&(0,f3e.P6)(n),a=r&&(0,f3e.P6)(r);return e=>!(!i||!i(e))||!!(y3e&&o&&o(e))||!(y3e||!a||!a(e))},r5e={isBold:n5e("bold"),isCompose:n5e("compose"),isMoveBackward:n5e("moveBackward"),isMoveForward:n5e("moveForward"),isDeleteBackward:n5e("deleteBackward"),isDeleteForward:n5e("deleteForward"),isDeleteLineBackward:n5e("deleteLineBackward"),isDeleteLineForward:n5e("deleteLineForward"),isDeleteWordBackward:n5e("deleteWordBackward"),isDeleteWordForward:n5e("deleteWordForward"),isExtendBackward:n5e("extendBackward"),isExtendForward:n5e("extendForward"),isExtendLineBackward:n5e("extendLineBackward"),isExtendLineForward:n5e("extendLineForward"),isItalic:n5e("italic"),isMoveLineBackward:n5e("moveLineBackward"),isMoveLineForward:n5e("moveLineForward"),isMoveWordBackward:n5e("moveWordBackward"),isMoveWordForward:n5e("moveWordForward"),isRedo:n5e("redo"),isSoftBreak:n5e("insertSoftBreak"),isSplitBlock:n5e("splitBlock"),isTransposeCharacter:n5e("transposeCharacter"),isUndo:n5e("undo")},i5e={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class o5e extends c.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,i5e)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var i=r.filter((t=>d4e(e,t,r)));n.push(...i)}},restoreDOM:function(){n.length>0&&(n.reverse().forEach((e=>{"characterData"!==e.type&&(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)})))})),r())},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,i=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();return null!=i&&i.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(i)),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}o5e.contextType=m3e;var a5e=b3e?o5e:e=>{var{children:t}=e;return c.createElement(c.Fragment,null,t)},s5e=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],l5e=["text"];function u5e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c5e(e){for(var t=1;tc.createElement(c.Fragment,null,Y4e(e)),f5e=e=>{var t=(0,c.useCallback)((e=>c.createElement(h5e,Object.assign({},e))),[]),{autoFocus:n,decorate:r=p5e,onDOMBeforeInput:i,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:l,renderPlaceholder:u=t,scrollSelectionIntoView:d=m5e,style:f={},as:h="div",disableDefaultStyles:p=!1}=e,m=p3e(e,s5e),g=K4e(),[v,O]=(0,c.useState)(!1),y=(0,c.useRef)(null),b=(0,c.useRef)([]),[w,k]=(0,c.useState)(),{onUserInput:x,receivedUserInput:_}=function(){var e=g3e(),t=(0,c.useRef)(!1),n=(0,c.useRef)(0),r=(0,c.useCallback)((()=>{if(!t.current){t.current=!0;var r=p4e.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((()=>{t.current=!1}))}}),[e]);return(0,c.useEffect)((()=>()=>cancelAnimationFrame(n.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,S]=(0,c.useReducer)((e=>e+1),0);K3e.set(g,S),L3e.set(g,a);var P=(0,c.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,c.useEffect)((()=>{y.current&&n&&y.current.focus()}),[n]);var E=(0,c.useRef)(),C=(0,c.useMemo)((()=>b2e()((()=>{var e=E.current;if((b3e||!p4e.isComposing(g))&&(!P.isUpdatingSelection||null!=e&&e.isFlushing())&&!P.isDraggingInternally){var t=p4e.findDocumentOrShadowRoot(g),{activeElement:n}=t,r=p4e.toDOMNode(g,g),i=t.getSelection();if(n===r?(P.latestElement=n,F3e.set(g,!0)):F3e.delete(g),!i)return A0e.deselect(g);var{anchorNode:o,focusNode:s}=i,l=p4e.hasEditableTarget(g,o)||p4e.isTargetInsideNonReadonlyVoid(g,o),u=p4e.hasEditableTarget(g,s)||p4e.isTargetInsideNonReadonlyVoid(g,s);if(l&&u){var c=p4e.toSlateRange(g,i,{exactMatch:!1,suppressThrow:!0});c&&(p4e.isComposing(g)||null!=e&&e.hasPendingChanges()||null!=e&&e.isFlushing()?null==e||e.handleUserSelect(c):A0e.select(g,c))}!a||l&&u||A0e.deselect(g)}}),100)),[g,a,P]),T=(0,c.useMemo)((()=>O0()(C,0)),[C]);E.current=T4e({node:y,onDOMSelectionChange:C,scheduleOnDOMSelectionChange:T}),S4e((()=>{var e,t,n;y.current&&(n=n4e(y.current))?(j3e.set(g,n),D3e.set(g,y.current),z3e.set(g,y.current),I3e.set(y.current,g)):z3e.delete(g);var{selection:r}=g,i=p4e.findDocumentOrShadowRoot(g).getSelection();if(i&&p4e.isFocused(g)&&(null===(e=E.current)||void 0===e||!e.hasPendingAction())){var o=e=>{var t="None"!==i.type;if(r||t){var n,o=i.focusNode;if(w3e&&i.rangeCount>1){var a=i.getRangeAt(0),s=i.getRangeAt(i.rangeCount-1);n=a.startContainer===o?s.endContainer:a.startContainer}else n=i.anchorNode;var l=D3e.get(g),u=!1;if(l.contains(n)&&l.contains(o)&&(u=!0),t&&u&&r&&!e){var c=p4e.toSlateRange(g,i,{exactMatch:!0,suppressThrow:!0});if(c&&RJe.equals(c,r)){var f,h;if(!P.hasMarkPlaceholder)return;if(null!==(f=n)&&void 0!==f&&null!==(h=f.parentElement)&&void 0!==h&&h.hasAttribute("data-slate-mark-placeholder"))return}}if(!r||p4e.hasRange(g,r)){P.isUpdatingSelection=!0;var p=r&&p4e.toDOMRange(g,r);return p?(p4e.isComposing(g)&&!b3e?i.collapseToEnd():RJe.isBackward(r)?i.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):i.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset),d(g,p)):i.removeAllRanges(),p}g.selection=p4e.toSlateRange(g,i,{exactMatch:!1,suppressThrow:!0})}};i.rangeCount<=1&&o();var a="action"===(null===(t=E.current)||void 0===t?void 0:t.isFlushing());if(b3e&&a){var s=null,l=requestAnimationFrame((()=>{if(a){var e=e=>{try{p4e.toDOMNode(g,g).focus(),o(e)}catch(e){}};e(),s=setTimeout((()=>{e(!0),P.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(l),s&&clearTimeout(s)}}setTimeout((()=>{P.isUpdatingSelection=!1}))}}));var $=(0,c.useCallback)((e=>{if(x(),!a&&p4e.hasEditableTarget(g,e.target)&&!O5e(e,i)){var t;if(E.current)return E.current.handleDOMBeforeInput(e);T.flush(),C.flush();var{selection:n}=g,{inputType:r}=e,o=e.dataTransfer||e.data||void 0,s="insertCompositionText"===r||"deleteCompositionText"===r;if(s&&p4e.isComposing(g))return;var l=!1;if("insertText"===r&&n&&RJe.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var u,c;l=!0,g.marks&&(l=!1);var{anchor:d}=n,[f,h]=p4e.toDOMPoint(g,d),p=null===(u=f.parentElement)||void 0===u?void 0:u.closest("a"),m=p4e.getWindow(g);if(l&&p&&p4e.hasDOMNode(g,p)){var v,y=null==m?void 0:m.document.createTreeWalker(p,NodeFilter.SHOW_TEXT).lastChild();y===f&&(null===(v=y.textContent)||void 0===v?void 0:v.length)===h&&(l=!1)}if(l&&f.parentElement&&"pre"===(null==m||null===(c=m.getComputedStyle(f.parentElement))||void 0===c?void 0:c.whiteSpace)){var w=UJe.above(g,{at:d.path,match:e=>jJe.isElement(e)&&UJe.isBlock(g,e)});w&&zJe.string(w[0]).includes("\t")&&(l=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var[k]=e.getTargetRanges();if(k){var _=p4e.toSlateRange(g,k,{exactMatch:!1,suppressThrow:!1});if(!n||!RJe.equals(n,_)){l=!1;var S=!s&&g.selection&&UJe.rangeRef(g,g.selection);A0e.select(g,_),S&&X3e.set(g,S)}}}if(s)return;if(l||e.preventDefault(),n&&RJe.isExpanded(n)&&r.startsWith("delete")){var P=r.endsWith("Backward")?"backward":"forward";return void UJe.deleteFragment(g,{direction:P})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":UJe.deleteFragment(g);break;case"deleteContent":case"deleteContentForward":UJe.deleteForward(g);break;case"deleteContentBackward":UJe.deleteBackward(g);break;case"deleteEntireSoftLine":UJe.deleteBackward(g,{unit:"line"}),UJe.deleteForward(g,{unit:"line"});break;case"deleteHardLineBackward":UJe.deleteBackward(g,{unit:"block"});break;case"deleteSoftLineBackward":UJe.deleteBackward(g,{unit:"line"});break;case"deleteHardLineForward":UJe.deleteForward(g,{unit:"block"});break;case"deleteSoftLineForward":UJe.deleteForward(g,{unit:"line"});break;case"deleteWordBackward":UJe.deleteBackward(g,{unit:"word"});break;case"deleteWordForward":UJe.deleteForward(g,{unit:"word"});break;case"insertLineBreak":UJe.insertSoftBreak(g);break;case"insertParagraph":UJe.insertBreak(g);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&p4e.isComposing(g)&&(O(!1),U3e.set(g,!1)),"DataTransfer"===(null==o?void 0:o.constructor.name)?p4e.insertData(g,o):"string"==typeof o&&(l?b.current.push((()=>UJe.insertText(g,o))):UJe.insertText(g,o))}var $=null===(t=X3e.get(g))||void 0===t?void 0:t.unref();X3e.delete(g),!$||g.selection&&RJe.equals(g.selection,$)||A0e.select(g,$)}}),[g,C,x,i,a,T]),Q=(0,c.useCallback)((e=>{null==e?(C.cancel(),T.cancel(),D3e.delete(g),z3e.delete(g),y.current&&Q3e&&y.current.removeEventListener("beforeinput",$)):Q3e&&e.addEventListener("beforeinput",$),y.current=e}),[C,T,g,$]);S4e((()=>{var e=p4e.getWindow(g);return e.document.addEventListener("selectionchange",T),()=>{e.document.removeEventListener("selectionchange",T)}}),[T]);var R=r([g,[]]),A=o&&1===g.children.length&&1===Array.from(zJe.texts(g)).length&&""===zJe.string(g)&&!v,j=(0,c.useCallback)((e=>{var t;k(e&&A?null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height:void 0)}),[A]);if(A){var D=UJe.start(g,[]);R.push({[J3e]:!0,placeholder:o,onPlaceholderResize:j,anchor:D,focus:D})}var{marks:M}=g;if(P.hasMarkPlaceholder=!1,g.selection&&RJe.isCollapsed(g.selection)&&M){var{anchor:I}=g.selection,z=zJe.leaf(g,I.path),W=p3e(z,l5e);if(!t0e.equals(z,M,{loose:!0})){P.hasMarkPlaceholder=!0;var N=Object.fromEntries(Object.keys(W).map((e=>[e,null])));R.push(c5e(c5e(c5e({[e4e]:!0},N),M),{},{anchor:I,focus:I}))}}return(0,c.useEffect)((()=>{setTimeout((()=>{var{selection:e}=g;if(e){var{anchor:t}=e,n=zJe.leaf(g,t.path);if(M&&!t0e.equals(n,M,{loose:!0}))return void V3e.set(g,M)}V3e.delete(g)}))})),c.createElement(Z4e.Provider,{value:a},c.createElement(B4e.Provider,{value:r},c.createElement(a5e,{node:y,receivedUserInput:_},c.createElement(h,Object.assign({role:a?void 0:"textbox","aria-multiline":!a||void 0},m,{spellCheck:!(!Q3e&&$3e)&&m.spellCheck,autoCorrect:Q3e||!$3e?m.autoCorrect:"false",autoCapitalize:Q3e||!$3e?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:Q,style:c5e(c5e({},p?{}:c5e({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},w?{minHeight:w}:{})),f),onBeforeInput:(0,c.useCallback)((e=>{if(!Q3e&&!a&&!g5e(e,m.onBeforeInput)&&p4e.hasSelectableTarget(g,e.target)&&(e.preventDefault(),!p4e.isComposing(g))){var t=e.data;UJe.insertText(g,t)}}),[m.onBeforeInput,g,a]),onInput:(0,c.useCallback)((e=>{if(!g5e(e,m.onInput))if(E.current)E.current.handleInput();else{for(var t of b.current)t();b.current=[]}}),[m.onInput]),onBlur:(0,c.useCallback)((e=>{if(!a&&!P.isUpdatingSelection&&p4e.hasSelectableTarget(g,e.target)&&!g5e(e,m.onBlur)){var t=p4e.findDocumentOrShadowRoot(g);if(P.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===p4e.toDOMNode(g,g)||r4e(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&i4e(n)&&p4e.hasDOMNode(g,n)){var r=p4e.toSlateNode(g,n);if(jJe.isElement(r)&&!g.isVoid(r))return}if(k3e){var i=t.getSelection();null==i||i.removeAllRanges()}F3e.delete(g)}}}}),[a,P.isUpdatingSelection,P.latestElement,g,m.onBlur]),onClick:(0,c.useCallback)((e=>{if(p4e.hasTarget(g,e.target)&&!g5e(e,m.onClick)&&i4e(e.target)){var t=p4e.toSlateNode(g,e.target),n=p4e.findPath(g,t);if(!UJe.hasPath(g,n)||zJe.get(g,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!jJe.isElement(t)||!UJe.isBlock(g,t)){var i,o=UJe.above(g,{match:e=>jJe.isElement(e)&&UJe.isBlock(g,e),at:n});r=null!==(i=null==o?void 0:o[1])&&void 0!==i?i:n.slice(0,1)}var s=UJe.range(g,r);return void A0e.select(g,s)}if(a)return;var l=UJe.start(g,n),u=UJe.end(g,n),c=UJe.void(g,{at:l}),d=UJe.void(g,{at:u});if(c&&d&&wJe.equals(c[1],d[1])){var f=UJe.range(g,l);A0e.select(g,f)}}}),[g,m.onClick,a]),onCompositionEnd:(0,c.useCallback)((e=>{if(p4e.hasSelectableTarget(g,e.target)){var t;if(p4e.isComposing(g)&&(O(!1),U3e.set(g,!1)),null===(t=E.current)||void 0===t||t.handleCompositionEnd(e),g5e(e,m.onCompositionEnd)||b3e)return;if(!k3e&&!E3e&&!O3e&&!T3e&&!C3e&&e.data){var n=V3e.get(g);V3e.delete(g),void 0!==n&&(Y3e.set(g,g.marks),g.marks=n),UJe.insertText(g,e.data);var r=Y3e.get(g);Y3e.delete(g),void 0!==r&&(g.marks=r)}}}),[m.onCompositionEnd,g]),onCompositionUpdate:(0,c.useCallback)((e=>{p4e.hasSelectableTarget(g,e.target)&&!g5e(e,m.onCompositionUpdate)&&(p4e.isComposing(g)||(O(!0),U3e.set(g,!0)))}),[m.onCompositionUpdate,g]),onCompositionStart:(0,c.useCallback)((e=>{if(p4e.hasSelectableTarget(g,e.target)){var t;if(null===(t=E.current)||void 0===t||t.handleCompositionStart(e),g5e(e,m.onCompositionStart)||b3e)return;O(!0);var{selection:n}=g;if(n){if(RJe.isExpanded(n))return void UJe.deleteFragment(g);var r=UJe.above(g,{match:e=>jJe.isElement(e)&&UJe.isInline(g,e),mode:"highest"});if(r){var[,i]=r;if(UJe.isEnd(g,n.anchor,i)){var o=UJe.after(g,i);A0e.setSelection(g,{anchor:o,focus:o})}}}}}),[m.onCompositionStart,g]),onCopy:(0,c.useCallback)((e=>{!p4e.hasSelectableTarget(g,e.target)||g5e(e,m.onCopy)||v5e(e)||(e.preventDefault(),p4e.setFragmentData(g,e.clipboardData,"copy"))}),[m.onCopy,g]),onCut:(0,c.useCallback)((e=>{if(!a&&p4e.hasSelectableTarget(g,e.target)&&!g5e(e,m.onCut)&&!v5e(e)){e.preventDefault(),p4e.setFragmentData(g,e.clipboardData,"cut");var{selection:t}=g;if(t)if(RJe.isExpanded(t))UJe.deleteFragment(g);else{var n=zJe.parent(g,t.anchor.path);UJe.isVoid(g,n)&&A0e.delete(g)}}}),[a,g,m.onCut]),onDragOver:(0,c.useCallback)((e=>{if(p4e.hasTarget(g,e.target)&&!g5e(e,m.onDragOver)){var t=p4e.toSlateNode(g,e.target);jJe.isElement(t)&&UJe.isVoid(g,t)&&e.preventDefault()}}),[m.onDragOver,g]),onDragStart:(0,c.useCallback)((e=>{if(!a&&p4e.hasTarget(g,e.target)&&!g5e(e,m.onDragStart)){var t=p4e.toSlateNode(g,e.target),n=p4e.findPath(g,t);if(jJe.isElement(t)&&UJe.isVoid(g,t)||UJe.void(g,{at:n,voids:!0})){var r=UJe.range(g,n);A0e.select(g,r)}P.isDraggingInternally=!0,p4e.setFragmentData(g,e.dataTransfer,"drag")}}),[a,g,m.onDragStart,P]),onDrop:(0,c.useCallback)((e=>{if(!a&&p4e.hasTarget(g,e.target)&&!g5e(e,m.onDrop)){e.preventDefault();var t=g.selection,n=p4e.findEventRange(g,e),r=e.dataTransfer;A0e.select(g,n),P.isDraggingInternally&&(!t||RJe.equals(t,n)||UJe.void(g,{at:n,voids:!0})||A0e.delete(g,{at:t})),p4e.insertData(g,r),p4e.isFocused(g)||p4e.focus(g)}P.isDraggingInternally=!1}),[a,g,m.onDrop,P]),onDragEnd:(0,c.useCallback)((e=>{!a&&P.isDraggingInternally&&m.onDragEnd&&p4e.hasTarget(g,e.target)&&m.onDragEnd(e),P.isDraggingInternally=!1}),[a,P,m,g]),onFocus:(0,c.useCallback)((e=>{if(!a&&!P.isUpdatingSelection&&p4e.hasEditableTarget(g,e.target)&&!g5e(e,m.onFocus)){var t=p4e.toDOMNode(g,g),n=p4e.findDocumentOrShadowRoot(g);if(P.latestElement=n.activeElement,w3e&&e.target!==t)return void t.focus();F3e.set(g,!0)}}),[a,P,g,m.onFocus]),onKeyDown:(0,c.useCallback)((e=>{if(!a&&p4e.hasEditableTarget(g,e.target)){var t;null===(t=E.current)||void 0===t||t.handleKeyDown(e);var{nativeEvent:n}=e;if(p4e.isComposing(g)&&!1===n.isComposing&&(U3e.set(g,!1),O(!1)),g5e(e,m.onKeyDown)||p4e.isComposing(g))return;var{selection:r}=g,i=g.children[null!==r?r.focus.path[0]:0],o="rtl"===O2e()(zJe.string(i));if(r5e.isRedo(n)){e.preventDefault();var s=g;return void("function"==typeof s.redo&&s.redo())}if(r5e.isUndo(n)){e.preventDefault();var l=g;return void("function"==typeof l.undo&&l.undo())}if(r5e.isMoveLineBackward(n))return e.preventDefault(),void A0e.move(g,{unit:"line",reverse:!0});if(r5e.isMoveLineForward(n))return e.preventDefault(),void A0e.move(g,{unit:"line"});if(r5e.isExtendLineBackward(n))return e.preventDefault(),void A0e.move(g,{unit:"line",edge:"focus",reverse:!0});if(r5e.isExtendLineForward(n))return e.preventDefault(),void A0e.move(g,{unit:"line",edge:"focus"});if(r5e.isMoveBackward(n))return e.preventDefault(),void(r&&RJe.isCollapsed(r)?A0e.move(g,{reverse:!o}):A0e.collapse(g,{edge:"start"}));if(r5e.isMoveForward(n))return e.preventDefault(),void(r&&RJe.isCollapsed(r)?A0e.move(g,{reverse:o}):A0e.collapse(g,{edge:"end"}));if(r5e.isMoveWordBackward(n))return e.preventDefault(),r&&RJe.isExpanded(r)&&A0e.collapse(g,{edge:"focus"}),void A0e.move(g,{unit:"word",reverse:!o});if(r5e.isMoveWordForward(n))return e.preventDefault(),r&&RJe.isExpanded(r)&&A0e.collapse(g,{edge:"focus"}),void A0e.move(g,{unit:"word",reverse:o});if(Q3e){if((_3e||k3e)&&r&&(r5e.isDeleteBackward(n)||r5e.isDeleteForward(n))&&RJe.isCollapsed(r)){var u=zJe.parent(g,r.anchor.path);if(jJe.isElement(u)&&UJe.isVoid(g,u)&&(UJe.isInline(g,u)||UJe.isBlock(g,u)))return e.preventDefault(),void UJe.deleteBackward(g,{unit:"block"})}}else{if(r5e.isBold(n)||r5e.isItalic(n)||r5e.isTransposeCharacter(n))return void e.preventDefault();if(r5e.isSoftBreak(n))return e.preventDefault(),void UJe.insertSoftBreak(g);if(r5e.isSplitBlock(n))return e.preventDefault(),void UJe.insertBreak(g);if(r5e.isDeleteBackward(n))return e.preventDefault(),void(r&&RJe.isExpanded(r)?UJe.deleteFragment(g,{direction:"backward"}):UJe.deleteBackward(g));if(r5e.isDeleteForward(n))return e.preventDefault(),void(r&&RJe.isExpanded(r)?UJe.deleteFragment(g,{direction:"forward"}):UJe.deleteForward(g));if(r5e.isDeleteLineBackward(n))return e.preventDefault(),void(r&&RJe.isExpanded(r)?UJe.deleteFragment(g,{direction:"backward"}):UJe.deleteBackward(g,{unit:"line"}));if(r5e.isDeleteLineForward(n))return e.preventDefault(),void(r&&RJe.isExpanded(r)?UJe.deleteFragment(g,{direction:"forward"}):UJe.deleteForward(g,{unit:"line"}));if(r5e.isDeleteWordBackward(n))return e.preventDefault(),void(r&&RJe.isExpanded(r)?UJe.deleteFragment(g,{direction:"backward"}):UJe.deleteBackward(g,{unit:"word"}));if(r5e.isDeleteWordForward(n))return e.preventDefault(),void(r&&RJe.isExpanded(r)?UJe.deleteFragment(g,{direction:"forward"}):UJe.deleteForward(g,{unit:"word"}))}}}),[a,g,m.onKeyDown]),onPaste:(0,c.useCallback)((e=>{a||!p4e.hasEditableTarget(g,e.target)||g5e(e,m.onPaste)||(!Q3e||(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||k3e)&&(e.preventDefault(),p4e.insertData(g,e.clipboardData))}),[a,g,m.onPaste])}),c.createElement(d5e,{decorations:R,node:g,renderElement:s,renderPlaceholder:u,renderLeaf:l,selection:g.selection})))))},h5e=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Object.assign({},t),n,b3e&&c.createElement("br",null))},p5e=()=>[],m5e=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&RJe.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(P2e(t)&&"function"==typeof t.behavior)return t.behavior(n?S2e(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:P2e(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,o=e.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:t}):(r.scrollTop=i,r.scrollLeft=o)}))})(S2e(e,r),r.behavior)}}(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},g5e=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},v5e=e=>i4e(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),O5e=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},y5e=(0,c.createContext)(!1),b5e=()=>(0,c.useContext)(y5e),w5e=(0,c.createContext)({}),k5e=["editor","children","onChange","initialValue"],x5e=e=>{var{editor:t,children:n,onChange:r,initialValue:i}=e,o=p3e(e,k5e),a=(0,c.useRef)(!1),[s,l]=c.useState((()=>{if(!zJe.isNodeList(i))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(ZJe.stringify(i)));if(!UJe.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(ZJe.stringify(t)));return t.children=i,Object.assign(t,o),{v:0,editor:t}})),{selectorContext:u,onChange:d}=function(e){var t=(0,c.useRef)([]).current,n=(0,c.useRef)({editor:e}).current,r=(0,c.useCallback)((e=>{n.editor=e,t.forEach((t=>t(e)))}),[t,n]);return{selectorContext:(0,c.useMemo)((()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,n]),onChange:r}}(t),f=(0,c.useCallback)((()=>{r&&r(t.children),l((e=>({v:e.v+1,editor:t}))),d(t)}),[t,d,r]);(0,c.useEffect)((()=>(q3e.set(t,f),()=>{q3e.set(t,(()=>{})),a.current=!0})),[t,f]);var[h,p]=(0,c.useState)(p4e.isFocused(t));return(0,c.useEffect)((()=>{p(p4e.isFocused(t))}),[t]),S4e((()=>{var e=()=>p(p4e.isFocused(t));return v3e>=17?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),c.createElement(w5e.Provider,{value:u},c.createElement(H4e.Provider,{value:s},c.createElement(m3e.Provider,{value:s.editor},c.createElement(y5e.Provider,{value:h},n))))},_5e=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},S5e=(e,t,n)=>{var r=p4e.toDOMRange(e,t).getBoundingClientRect(),i=p4e.toDOMRange(e,n).getBoundingClientRect();return _5e(r,i)&&_5e(i,r)};function P5e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E5e(e){for(var t=1;t{var n=[];for(var[r,i]of UJe.levels(e,{at:t})){var o=p4e.findKey(e,r);n.push([i,o])}return n};function T5e(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{try{return p4e.findPath(e,t)}catch(e){}},A5e=(e,t)=>{t&&w1e(e,(()=>{(e=>{A0e.deselect(e)})(e),E1e(e,t)})),p4e.focus(e)},j5e=(e,t)=>{try{return p4e.toDOMNode(e,t)}catch(e){}},D5e=(e="")=>e.length>0?`${e}Store`:"store",M5e=(e="")=>`use${((e="")=>e.length>0?e[0].toUpperCase()+e.slice(1):"")(e)}Store`,I5e=(e,{scope:t,initialStore:n,name:r=""}={})=>{const i=M5e(null==n?void 0:n.name),o=D5e(null==n?void 0:n.name),a=M5e(r),s=D5e(r),l=n?n[i]().get:{},u=n?n[i]().set:{},c=n?n[i]().use:{},d=n?n[o].atom:{};Object.keys(e).forEach((n=>{const r=UGe(e[n]);d[n]=r,l[n]=e=>XGe(r,null!=e?e:t),u[n]=e=>qGe(r,null!=e?e:t),c[n]=e=>BGe(r,null!=e?e:t)}));const f={[a]:e=>{if(e){const n={...l},r={...u},i={...c};return Object.keys(n).forEach((r=>{const i=n[r];n[r]=n=>{var r;return i(null!==(r=null!=n?n:e)&&void 0!==r?r:t)}})),Object.keys(r).forEach((n=>{const i=r[n];r[n]=n=>{var r;return i(null!==(r=null!=n?n:e)&&void 0!==r?r:t)}})),Object.keys(i).forEach((n=>{const r=i[n];i[n]=n=>{var i;return r(null!==(i=null!=n?n:e)&&void 0!==i?i:t)}})),{get:n,set:r,use:i}}return{get:l,set:u,use:c}},[s]:{atom:d},name:r};return{...f,[s]:{...f[s],scope:t,extend:(e,n)=>I5e(e,{scope:t,initialStore:f,...n})}}};function z5e(){return z5e=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=L5e().set.element(t),i=L5e().set.element(W5e);return(0,c.useEffect)((()=>{r(e),i(e)}),[e,r,i]),n};function U5e({element:e,scope:t,children:n,...r}){return c.createElement(LGe,z5e({initialValues:[[N5e.atom.element,e]],scope:W5e},r),c.createElement(LGe,z5e({initialValues:[[N5e.atom.element,e]],scope:t},r),c.createElement(F5e,{element:e,scope:t},n)))}const X5e=(e=W5e)=>L5e().get.element(e)||(console.warn("The `useElement(pluginKey)` hook must be used inside the node component's context"),{});function q5e({attributes:e,children:t,text:n,leaf:r,editor:i,nodeProps:o,...a}){return c.createElement("span",z5e({},e,a),t)}var B5e=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n-1},G5e.prototype.set=function(e,t){var n=this.__data__,r=Y5e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var H5e=G5e,K5e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function J5e(e,t){return e(t={exports:{}},t.exports),t.exports}var e6e="object"==typeof K5e&&K5e&&K5e.Object===Object&&K5e,t6e="object"==typeof self&&self&&self.Object===Object&&self,n6e=e6e||t6e||Function("return this")(),r6e=n6e.Symbol,i6e=Object.prototype,o6e=i6e.hasOwnProperty,a6e=i6e.toString,s6e=r6e?r6e.toStringTag:void 0,l6e=Object.prototype.toString,u6e=r6e?r6e.toStringTag:void 0,c6e=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u6e&&u6e in Object(e)?function(e){var t=o6e.call(e,s6e),n=e[s6e];try{e[s6e]=void 0;var r=!0}catch(e){}var i=a6e.call(e);return r&&(t?e[s6e]=n:delete e[s6e]),i}(e):function(e){return l6e.call(e)}(e)},d6e=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},f6e=function(e){if(!d6e(e))return!1;var t=c6e(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},h6e=n6e["__core-js_shared__"],p6e=function(){var e=/[^.]+$/.exec(h6e&&h6e.keys&&h6e.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),m6e=Function.prototype.toString,g6e=function(e){if(null!=e){try{return m6e.call(e)}catch(e){}try{return e+""}catch(e){}}return""},v6e=/^\[object .+?Constructor\]$/,O6e=Function.prototype,y6e=Object.prototype,b6e=O6e.toString,w6e=y6e.hasOwnProperty,k6e=RegExp("^"+b6e.call(w6e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x6e=function(e){return!(!d6e(e)||function(e){return!!p6e&&p6e in e}(e))&&(f6e(e)?k6e:v6e).test(g6e(e))},_6e=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return x6e(n)?n:void 0},S6e=_6e(n6e,"Map"),P6e=_6e(Object,"create"),E6e=Object.prototype.hasOwnProperty,C6e=Object.prototype.hasOwnProperty;function T6e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},e9e={};e9e["[object Float32Array]"]=e9e["[object Float64Array]"]=e9e["[object Int8Array]"]=e9e["[object Int16Array]"]=e9e["[object Int32Array]"]=e9e["[object Uint8Array]"]=e9e["[object Uint8ClampedArray]"]=e9e["[object Uint16Array]"]=e9e["[object Uint32Array]"]=!0,e9e["[object Arguments]"]=e9e["[object Array]"]=e9e["[object ArrayBuffer]"]=e9e["[object Boolean]"]=e9e["[object DataView]"]=e9e["[object Date]"]=e9e["[object Error]"]=e9e["[object Function]"]=e9e["[object Map]"]=e9e["[object Number]"]=e9e["[object Object]"]=e9e["[object RegExp]"]=e9e["[object Set]"]=e9e["[object String]"]=e9e["[object WeakMap]"]=!1;var t9e=function(e){return function(t){return e(t)}},n9e=J5e((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&e6e.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),r9e=n9e&&n9e.isTypedArray,i9e=r9e?t9e(r9e):function(e){return F6e(e)&&J6e(e.length)&&!!e9e[c6e(e)]},o9e=Object.prototype.hasOwnProperty,a9e=function(e,t){var n=Y6e(e),r=!n&&V6e(e),i=!n&&!r&&G6e(e),o=!n&&!r&&!i&&i9e(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++ni?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r0&&r(l)?n>1?e(l,n-1,r,i,o):_9e(o,l):i||(o[o.length]=l)}return o},U8e=function(e){return null!=e&&e.length?F8e(e,1):[]},X8e=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},q8e=Math.max,B8e=function(e,t,n){return t=q8e(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=q8e(r.length-t,0),a=Array(o);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(G8e),J8e=function(e){return K8e(B8e(e,void 0,U8e),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=B5e(t,(function(t){return t=C8e(t,e),r||(r=t.length>1),t})),L6e(e,$9e(e),n),r&&(n=h8e(n,7,W8e));for(var i=t.length;i--;)R8e(n,t[i]);return n})),e7e=J8e;const t7e=jHe("event-editor")({blur:null,focus:null,last:null}),n7e=t7e.set,r7e=t7e.get,i7e=(t7e.use,"plate"),o7e=Symbol("global-plate"),a7e=UGe(i7e),{plateStore:s7e,usePlateStore:l7e}=(({decorate:e=null,editor:t=null,id:n,isRendered:r=!1,keyDecorate:i="1",keyEditor:o="1",keySelection:a="1",onChange:s=null,editorRef:l=null,plugins:u=[],rawPlugins:c=[],readOnly:d=!1,renderElement:f=null,renderLeaf:h=null,value:p=null,...m}={})=>{const g=I5e({decorate:e,editor:t,id:n,isRendered:r,keyDecorate:i,keyEditor:o,keySelection:a,onChange:s,editorRef:l,plugins:u,rawPlugins:c,readOnly:d,renderElement:f,renderLeaf:h,value:p,...m},{scope:i7e,name:"plate"});return{plateStore:g.plateStore,usePlateStore:e=>{const t=BGe(a7e,o7e)[0];return oJe(e)||g.usePlateStore(e).get.id(e)?g.usePlateStore(e):g.usePlateStore(t)}}})(),u7e=e=>l7e(e).get,c7e=e=>l7e(e).set,d7e=e=>l7e(e).use,f7e=(e,t)=>{const n=c7e(t)[e]();return(0,c.useCallback)((()=>{n(VGe())}),[n])},h7e=({node:e,path:t=[],source:n,apply:r,query:i})=>{f2e([e,t],i)&&r(e,n instanceof Function?n():n),J1e(e)&&e.children.forEach(((e,o)=>{h7e({node:e,path:t.concat([o]),source:n,apply:r,query:i})}))};var p7e=function(e,t){return K8e(B8e(e,t,Y8e),e+"")},m7e=function(e,t,n){(void 0!==n&&!V5e(e[t],n)||void 0===n&&!(t in e))&&z6e(e,t,n)},g7e=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}(),v7e=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},O7e=function(e,t,n,r,i,o,a){var s=v7e(e,n),l=v7e(t,n),u=a.get(l);if(u)m7e(e,n,u);else{var c=o?o(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var f=Y6e(l),h=!f&&G6e(l),p=!f&&!h&&i9e(l);c=l,f||h||p?Y6e(s)?c=s:function(e){return F6e(e)&&f9e(e)}(s)?c=O9e(s):h?(d=!1,c=v9e(l,!0)):p?(d=!1,c=J9e(l,!0)):c=[]:z8e(l)||V6e(l)?(c=s,V6e(s)?c=function(e){return L6e(e,g9e(e))}(s):d6e(s)&&!f6e(s)||(c=i8e(l))):d=!1}d&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),m7e(e,n,c)}},y7e=function e(t,n,r,i,o){t!==n&&g7e(n,(function(a,s){if(o||(o=new D6e),d6e(a))O7e(t,n,s,r,e,i,o);else{var l=i?i(v7e(t,s),a,s+"",t,n,o):void 0;void 0===l&&(l=a),m7e(t,s,l)}}),g9e)},b7e=function e(t,n,r,i,o,a){return d6e(t)&&d6e(n)&&(a.set(n,t),y7e(t,n,void 0,e,a),a.delete(n)),t},w7e=function(e){return p7e((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!d6e(n))return!1;var r=typeof t;return!!("number"==r?f9e(n)&&K6e(t,n.length):"string"==r&&t in n)&&V5e(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r{var r;if(t[e.key]){const{plugins:r,then:i,...o}=t[e.key];e=_7e(o,e),n||null==r||r.forEach((t=>{e.plugins||(e.plugins=[]);const n=e.plugins.find((e=>e.key===t.key));n||e.plugins.push(t)}))}e.plugins&&(e.plugins=e.plugins.map((e=>S7e(e,t,!0))));const{then:i}=e;return i?(void 0===e._thenReplaced&&(e._thenReplaced=0),e._thenReplaced<3&&(e.then=(n,r)=>{const o={key:e.key,...i(n,r)};return _7e(S7e(o,t),o)},e._thenReplaced++)):null!==(r=t[e.key])&&void 0!==r&&r.then&&(e.then=t[e.key].then),e},P7e=e=>(t,n={})=>(n[e.key]=t,S7e({...e},n)),E7e="deserializeAst",C7e=P7e({key:E7e,editor:{insertData:{format:"application/x-slate-fragment",getFragment:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch(e){}return n}}}}),T7e="editorProtocol",$7e=P7e({key:T7e,withOverrides:e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,i=()=>{((e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const i=null===(n=((e,t={})=>m1e(e,{...t,block:!0}))(e,t))||void 0===n?void 0:n[1];return!!i&&(q1e(e,r.focus,i)||t2e(e.selection)&&q1e(e,r.anchor,i))})(e)&&(e=>{const t=z1e(e);t&&Object.keys(t).forEach((t=>{((e,t)=>{UJe.removeMark(e,t)})(e,t)}))})(e)};return e.deleteBackward=e=>{t(e),i()},e.deleteForward=e=>{n(e),i()},e.deleteFragment=e=>{r(e),i()},e}}),Q7e="event-editor",R7e=P7e({key:Q7e,handlers:{onFocus:e=>()=>{n7e.focus(e.id)},onBlur:e=>()=>{r7e.focus()===e.id&&n7e.focus(null),n7e.blur(e.id)}}}),A7e=P7e({key:"history",withOverrides:e=>(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&A0e.setSelection(t,r.selectionBefore),o1e.withoutSaving(t,(()=>{UJe.withoutNormalizing(t,(()=>{for(var e of r.operations)t.apply(e)}))})),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];o1e.withoutSaving(t,(()=>{UJe.withoutNormalizing(t,(()=>{var e=r.operations.map(LJe.inverse).reverse();for(var n of e)t.apply(n);r.selectionBefore&&A0e.setSelection(t,r.selectionBefore)}))})),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a.operations[a.operations.length-1],l=o1e.isSaving(t),u=o1e.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type)(e)),l){if(null==u&&(u=null!=a&&(0!==r.length||((e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!wJe.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!wJe.equals(e.path,t.path)))(e,s))),a&&u)a.operations.push(e);else{var c={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",c)}for(;o.length>100;)o.shift();i.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t})(e)}),j7e="inline-void",D7e=P7e({key:j7e,withOverrides:e=>{const{isInline:t,isVoid:n,markableVoid:r}=e,i=[],o=[],a=[];return e.plugins.forEach((e=>{e.isInline&&o.push(e.type),e.isVoid&&i.push(e.type),e.isMarkableVoid&&a.push(e.type)})),e.isInline=e=>!!o.includes(e.type)||t(e),e.isVoid=e=>!!i.includes(e.type)||n(e),e.markableVoid=e=>!!a.includes(e.type)||r(e),e}}),M7e=(e,t)=>{const n=[];return[...e.plugins].reverse().forEach((e=>{var r;const i=null===(r=e.inject.pluginsByKey)||void 0===r?void 0:r[t.key];i&&n.push(i)})),[t,...n]},I7e=(e,{data:t,dataTransfer:n})=>e.every((e=>{var r,i;const o=null===(r=e.editor)||void 0===r||null===(i=r.insertData)||void 0===i?void 0:i.query;return!o||o({data:t,dataTransfer:n})})),z7e="insertData",W7e=P7e({key:z7e,withOverrides:e=>{const{insertData:t}=e;return e.insertData=n=>{const r=[...e.plugins].reverse().some((t=>{var r;const i=t.editor.insertData;if(!i)return!1;const o=M7e(e,t),{format:a,getFragment:s}=i;if(!a)return!1;let l=n.getData(a);if(!l)return;if(!I7e(o,{data:l,dataTransfer:n}))return!1;l=((e,{data:t,dataTransfer:n})=>(e.forEach((e=>{var r,i;const o=null===(r=e.editor)||void 0===r||null===(i=r.insertData)||void 0===i?void 0:i.transformData;o&&(t=o(t,{dataTransfer:n}))})),t))(o,{data:l,dataTransfer:n});let u=null==s?void 0:s({data:l,dataTransfer:n});return!(null===(r=u)||void 0===r||!r.length||(u=((e,{fragment:t,...n})=>(e.forEach((e=>{var r,i;const o=null===(r=e.editor)||void 0===r||null===(i=r.insertData)||void 0===i?void 0:i.transformFragment;o&&(t=o(t,n))})),t))(o,{fragment:u,data:l,dataTransfer:n}),0===u.length||(((e,t,{fragment:n,...r})=>{w1e(e,(()=>{t.some((e=>{var t,i,o;return!0===(null===(t=e.editor)||void 0===t||null===(i=t.insertData)||void 0===i||null===(o=i.preInsert)||void 0===o?void 0:o.call(i,n,r))})),e.insertFragment(n)}))})(e,o,{fragment:u,data:l,dataTransfer:n}),0)))}));r||t(n)},e}}),N7e="p",L7e="nodeFactory",F7e=P7e({key:L7e,withOverrides:e=>(e.blockFactory=t=>({type:G7e(e,N7e),children:[{text:""}],...t}),e.childrenFactory=()=>[e.blockFactory()],e)}),U7e="prevSelection",X7e=P7e({key:U7e,handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},withOverrides:e=>{const{apply:t}=e;return e.apply=n=>{if("set_selection"===n.type){const{properties:r}=n;return e.prevSelection=r,t(n),void(e.currentKeyboardEvent=null)}t(n)},e}}),q7e=P7e({key:"react",withOverrides:e=>function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{apply:r,onChange:i,deleteBackward:o,addMark:a,removeMark:s}=n;return N3e.set(n,new WeakMap),n.addMark=(e,t)=>{var r,i;null===(r=B3e.get(n))||void 0===r||r(),!V3e.get(n)&&null!==(i=Z3e.get(n))&&void 0!==i&&i.length&&V3e.set(n,null),Y3e.delete(n),a(e,t)},n.removeMark=e=>{var t;!V3e.get(n)&&null!==(t=Z3e.get(n))&&void 0!==t&&t.length&&V3e.set(n,null),Y3e.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return o(e);if(n.selection&&RJe.isCollapsed(n.selection)){var t=UJe.above(n,{match:e=>jJe.isElement(e)&&UJe.isBlock(n,e),at:n.selection});if(t){var[,r]=t,i=UJe.range(n,r,n.selection.anchor),a=((e,t)=>{var n=UJe.range(e,RJe.end(t)),r=Array.from(UJe.positions(e,{at:t})),i=0,o=r.length,a=Math.floor(o/2);if(S5e(e,UJe.range(e,r[i]),n))return UJe.range(e,r[i],n);if(r.length<2)return UJe.range(e,r[r.length-1],n);for(;a!==r.length&&a!==i;)S5e(e,UJe.range(e,r[a]),n)?o=a:i=a,a=Math.floor((i+o)/2);return UJe.range(e,r[o],n)})(n,i);RJe.isCollapsed(a)||A0e.delete(n,{at:a})}}},n.apply=e=>{var t=[],i=Z3e.get(n);if(null!=i&&i.length){var o=i.map((t=>function(e,t){var{path:n,diff:r,id:i}=e;switch(t.type){case"insert_text":return!wJe.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:i,path:n};case"remove_text":return!wJe.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:i,path:n};case"split_node":return!wJe.equals(t.path,n)||t.position>=r.end?{diff:r,id:i,path:wJe.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:i,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:i,path:wJe.transform(n,t,{affinity:"forward"})};case"merge_node":return wJe.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:i,path:wJe.transform(n,t)}:{diff:r,id:i,path:wJe.transform(n,t)}}var o=wJe.transform(n,t);return o?{diff:r,path:o,id:i}:null}(t,e))).filter(Boolean);Z3e.set(n,o)}var a=H3e.get(n);a&&H3e.set(n,k4e(n,a,e));var s=G3e.get(n);if(null!=s&&s.at){var l=VJe.isPoint(null==s?void 0:s.at)?w4e(n,s.at,e):k4e(n,s.at,e);G3e.set(n,l?E5e(E5e({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":t.push(...C5e(n,e.path));break;case"set_selection":var u;null===(u=X3e.get(n))||void 0===u||u.unref(),X3e.delete(n);break;case"insert_node":case"remove_node":t.push(...C5e(n,wJe.parent(e.path)));break;case"merge_node":var c=wJe.previous(e.path);t.push(...C5e(n,c));break;case"move_node":var d=wJe.common(wJe.parent(e.path),wJe.parent(e.newPath));t.push(...C5e(n,d))}for(var[f,h]of(r(e),t)){var[p]=UJe.node(n,f);W3e.set(p,h)}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[i,o]=RJe.edges(r),a=UJe.void(n,{at:i.path}),s=UJe.void(n,{at:o.path});if(!RJe.isCollapsed(r)||a){var l=p4e.toDOMRange(n,r),u=l.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),s){var[d]=s,f=l.cloneRange(),h=p4e.toDOMNode(n,d);f.setEndAfter(h),u=f.cloneContents()}if(a&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),a4e(c)){var p=c.ownerDocument.createElement("span");p.style.whiteSpace="pre",p.appendChild(c),u.appendChild(p),c=p}var m=n.getFragment(),g=JSON.stringify(m),v=window.btoa(encodeURIComponent(g));c.setAttribute("data-slate-fragment",v),e.setData("application/".concat(t),v);var O=u.ownerDocument.createElement("div");return O.appendChild(u),O.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(O),e.setData("text/html",O.innerHTML),e.setData("text/plain",u4e(O)),u.ownerDocument.body.removeChild(O),e}}},n.insertData=e=>{n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=e=>{var r=e.getData("application/".concat(t))||(e=>{var t=e.getData("text/html"),[,n]=t.match(c4e)||[];return n})(e);if(r){var i=decodeURIComponent(window.atob(r)),o=JSON.parse(i);return n.insertFragment(o),!0}return!1},n.insertTextData=e=>{var t=e.getData("text/plain");if(t){var r=t.split(/\r\n|\r|\n/),i=!1;for(var o of r)i&&A0e.splitNodes(n,{always:!0}),n.insertText(o),i=!0;return!0}return!1},n.onChange=e=>{(v3e<18?NC.unstable_batchedUpdates:e=>e())((()=>{var t=q3e.get(n);t&&t(),i(e)}))},n}(e)}),B7e="\r",V7e="\n",Y7e=" ",Z7e=(e,t)=>{var n;return null!==(n=(e=>{var t;return null!==(t=null==e?void 0:e.pluginsByKey)&&void 0!==t?t:{}})(e)[t])&&void 0!==n?n:{key:t}},G7e=(e,t)=>{var n,r;return null!==(n=null!==(r=Z7e(e,t).type)&&void 0!==r?r:t)&&void 0!==n?n:""},H7e=(e,t,n)=>(e=((e,t,n)=>{const r=((e,t)=>e.some(((e,n,r)=>{const i=r[n-1];return 0!==n&&t(e)!==t(i)})))(e,t),{fragment:i}=e.reduce(((e,i)=>{if(r&&t(i)){let t=e.precedingBlock;t||(t=n(),e.precedingBlock=t,e.fragment.push(t)),t.children.push(i)}else e.fragment.push(i),e.precedingBlock=null;return e}),{fragment:[],precedingBlock:null});return i})(e=(e=>0===e.length?[{text:""}]:e)(e),t,n),e=e.map((e=>d1e(e)?{...e,children:H7e(e.children,t,n)}:e)),e);function K7e(e){return"[object Object]"===Object.prototype.toString.call(e)}function J7e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eet=new WeakMap,tet=new WeakMap;class net{}class ret extends net{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}class iet extends net{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}var oet=e=>tet.get(e);function aet(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function set(e){for(var t=1;t{var t=[],n=e=>{if(null!=e){var r=t[t.length-1];if("string"==typeof e){var i={text:e};uet.add(i),e=i}if(t0e.isText(e)){var o=e;t0e.isText(r)&&uet.has(r)&&uet.has(o)&&t0e.equals(r,o,{loose:!0})?r.text+=o.text:t.push(o)}else if(jJe.isElement(e))t.push(e);else{if(!(e instanceof net))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];t0e.isText(a)||(n(""),a=t[t.length-1]),e instanceof ret?((e,t)=>{var n=e.text.length;eet.set(e,[n,t])})(a,e):e instanceof iet&&((e,t)=>{var n=e.text.length;tet.set(e,[n,t])})(a,e)}}};for(var r of e.flat(1/0))n(r);return t};function det(e,t,n){return set(set({},t),{},{children:cet(n)})}function fet(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function het(e){for(var t=1;t{var r,i=[];for(var o of n)RJe.isRange(o)?r=o:i.push(o);var a,s=cet(i),l={},u=pet();for(var[c,d]of(Object.assign(u,t),u.children=s,zJe.texts(u))){var f=(a=c,eet.get(a)),h=oet(c);if(null!=f){var[p]=f;l.anchor={path:d,offset:p}}if(null!=h){var[m]=h;l.focus={path:d,offset:m}}}if(l.anchor&&!l.focus)throw new Error("Slate hyperscript ranges must have both `` and `` defined if one is defined, but you only defined ``. For collapsed selections, use `` instead.");if(!l.anchor&&l.focus)throw new Error("Slate hyperscript ranges must have both `` and `` defined if one is defined, but you only defined ``. For collapsed selections, use `` instead.");return null!=r?u.selection=r:RJe.isRange(l)&&(u.selection=l),u}),element:det,focus:function(e,t,n){return new iet(t)},fragment:function(e,t,n){return cet(n)},selection:function(e,t,n){var r=n.find((e=>e instanceof ret)),i=n.find((e=>e instanceof iet));if(!r||null==r.offset||null==r.path)throw new Error("The hyperscript tag must have an tag as a child with `path` and `offset` attributes defined.");if(!i||null==i.offset||null==i.path)throw new Error("The hyperscript tag must have a tag as a child with `path` and `offset` attributes defined.");return set({anchor:{offset:r.offset,path:r.path},focus:{offset:i.offset,path:i.path}},t)},text:function(e,t,n){var r=cet(n);if(r.length>1)throw new Error("The hyperscript tag must only contain a single node's worth of children.");var[i]=r;if(null==i&&(i={text:""}),!t0e.isText(i))throw new Error("\n The hyperscript tag can only contain text content as children.");return uet.delete(i),Object.assign(i,t),i}},get=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=(e=>{var t={},n=function(n){var r=e[n];if("object"!=typeof r)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(n,"> tag you passed: ").concat(r));t[n]=(e,t,n)=>det(0,het(het({},r),t),n)};for(var r in e)n(r);return t})(t);return(e=>function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o"));return null==n&&(n={}),function(e){var t,n;return!1!==K7e(e)&&(void 0===(t=e.constructor)||!1!==K7e(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}(n)||(i=[n].concat(i),n={}),a(t,n,i=i.filter((e=>Boolean(e))).flat())})(het(het(het({},met),n),e.creators))}();const vet=(e,t)=>Array.from(t.childNodes).flatMap(ket(e));var Oet=function(){if(!arguments.length)return[];var e=arguments[0];return Y6e(e)?e:[e]};const yet=(e,t,{element:n,deserializeLeaf:r})=>{var i;const{deserializeHtml:o,isElement:a,isLeaf:s,type:l}=t;if(!o)return;const{attributeNames:u,query:c,isLeaf:d,isElement:f,rules:h}=o;let{getNode:p}=o;const m=f||a,g=d||s;if(!r&&!m)return;if(r&&!g)return;if(h){const e=h.some((({validNodeName:e="*",validStyle:r,validClassName:i,validAttribute:o})=>{if(e){const t=Oet(e);if(t.length>0&&!t.includes(n.nodeName)&&"*"!==e)return!1}if(i&&!n.classList.contains(i))return!1;if(r)for(const[e,i]of Object.entries(r)){var a;if(!Oet(i).includes(n.style[e])&&"*"!==i)return;if("*"===i&&!n.style[e])return;const r=null===(a=t.inject.props)||void 0===a?void 0:a.defaultNodeValue;if(r&&r===n.style[e])return!1}if(o)if("string"==typeof o){if(!n.getAttributeNames().includes(o))return!1}else for(const[e,t]of Object.entries(o)){const r=Oet(t),i=n.getAttribute(e);if(!oJe(i)||!r.includes(i))return!1}return!0}));if(!e)return}if(c&&!c(n))return;if(!p)if(m)p=()=>({type:l});else{if(!g)return;p=()=>({[l]:!0})}let v=null!==(i=p(n,{}))&&void 0!==i?i:{};if(0!==Object.keys(v).length){if(M7e(e,t).forEach((e=>{var t,r;const i=null===(t=e.deserializeHtml)||void 0===t||null===(r=t.getNode)||void 0===r?void 0:r.call(t,n,v);i&&(v={...v,...i})})),u){const e={},t=n.getAttributeNames();for(const r of t)u.includes(r)&&(e[r]=n.getAttribute(r));Object.keys(e).length>0&&(v.attributes=e)}return{...o,node:v}}},bet=e=>e.nodeType===Node.TEXT_NODE,wet=e=>e.nodeType===Node.ELEMENT_NODE,ket=e=>t=>{const n=(e=>{if(bet(e)){var t,n;const r=null!==(t=null===(n=e.textContent)||void 0===n?void 0:n.replace(/^\n+|\n+$/g,""))&&void 0!==t?t:"";return r.length>0?r:null}})(t);if(n)return n;if(!wet(t))return null;const r=(e=>{if("BR"===e.nodeName)return"\n"})(t);if(r)return r;const i=((e,t)=>{if("BODY"===t.nodeName)return get("fragment",{},vet(e,t))})(e,t);if(i)return i;const o=((e,t)=>{const n=((e,t)=>{let n;return[...e.plugins].reverse().some((r=>(n=yet(e,r,{element:t}),!!n))),n})(e,t);if(n){var r;const{node:i,withoutChildren:o}=n;let a=null!==(r=i.children)&&void 0!==r?r:vet(e,t);return(0===a.length||o)&&(a=[{text:""}]),get("element",i,a)}})(e,t);return o||((e,t)=>{const n=((e,t)=>{let n={};return[...e.plugins].reverse().forEach((r=>{const i=yet(e,r,{element:t,deserializeLeaf:!0});i&&(n={...n,...i.node})})),n})(e,t);return vet(e,t).reduce(((e,t)=>{if(!t)return e;if(d1e(t))Object.keys(n).length>0&&Ftt({node:t,source:n,query:{filter:([e])=>k1e(e)}}),e.push(t);else{const r={...n};k1e(t)&&t.text&&Object.keys(r).forEach((e=>{r[e]&&t[e]&&(r[e]=t[e])})),e.push(get("text",r,t))}return e}),[])})(e,t)},xet=(e,{element:t,stripWhitespace:n=!0})=>{"string"==typeof t&&(t=((e,t=!0)=>{const n=document.createElement("body");return n.innerHTML=e,t&&(n.innerHTML=n.innerHTML.replaceAll(/(\r\n|[\t\n\r])/g,"")),n})(t,n));const r=((e,t)=>ket(e)(t))(e,t);return((e,{descendants:t})=>{const n=(e=>t=>k1e(t)||d1e(t)&&e.isInline(t))(e),r=G7e(e,N7e),i=(o=r,()=>({type:o,children:[]}));var o;return H7e(t,n,i)})(e,{descendants:r})},_et="deserializeHtml",Pet=P7e({key:_et,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=(r=t,(new DOMParser).parseFromString(r,"text/html"));var r;return xet(e,{element:n.body})}}}})}),Eet=(e,t)=>{if(!t(e))return;let n=e.firstChild;for(;n;){const r=n,i=n.previousSibling;n=n.nextSibling,Eet(r,t),r.previousSibling||r.nextSibling||r.parentNode||!n||i===n.previousSibling||!n.parentNode?r.previousSibling||r.nextSibling||r.parentNode||!n||n.previousSibling||n.nextSibling||n.parentNode||(i?n=i.nextSibling?i.nextSibling.nextSibling:null:e.firstChild&&(n=e.firstChild.nextSibling)):n=i?i.nextSibling:e.firstChild}},Cet=(e,t)=>{Eet(e,(e=>!wet(e)||t(e)))},Tet=e=>{Cet(e,(e=>{if("BR"!==e.tagName)return!0;const t=document.createTextNode(V7e);return e.parentElement&&e.parentElement.replaceChild(t,e),!1}))},$et=new Set(["BR","IMG","TH","TD"]),Qet=e=>{if((e=>!$et.has(e.nodeName)&&!e.innerHTML.trim())(e)){const{parentElement:t}=e;e.remove(),t&&Qet(t)}},Ret=(e,t)=>{const n=document.createElement(t);n.innerHTML=e.innerHTML;for(const{name:t}of e.attributes){const r=e.getAttribute(t);r&&n.setAttribute(t,r)}return e.parentNode&&e.parentNode.replaceChild(n,e),n},Aet=e=>{e.outerHTML=e.innerHTML},jet=e=>{((e,t)=>{Eet(e,(e=>!bet(e)||(e=>{if(/^\n\s*$/.test(e.data)&&(e.previousElementSibling||e.nextElementSibling))return e.remove(),!0;if(e.data=e.data.replaceAll(/\n\s*/g,"\n"),e.data.includes(B7e)||e.data.includes(V7e)||e.data.includes(" ")){const t=e.data.includes(Y7e),n=/\S/.test(e.data),r=e.data.includes(V7e);if(!t&&!n&&!r)return" "===e.data?(e.data=Y7e,!0):(e.remove(),!0);if(e.previousSibling&&"BR"===e.previousSibling.nodeName&&e.parentElement){e.previousSibling.remove();const t=e.data.match(/^[\n\r]+/),n=t?t[0].length:0;e.data=e.data.slice(Math.max(0,n)).replaceAll(new RegExp(V7e,"g"),Y7e).replaceAll(new RegExp(B7e,"g"),Y7e),e.data=`\n${e.data}`}else e.data=e.data.replaceAll(new RegExp(V7e,"g"),Y7e).replaceAll(new RegExp(B7e,"g"),Y7e)}return!0})(e)))})(e)},Det=e=>/^(?:address|blockquote|body|center|dir|div|dl|fieldset|form|h[1-6]|hr|isindex|menu|noframes|noscript|ol|p|pre|table|ul|dd|dt|frameset|li|tbody|td|tfoot|th|thead|tr|html)$/i.test(e.nodeName),Met=e=>{Cet(e,(e=>{const t=e;if(!e.getAttribute("style"))return!0;if(Det(t)&&!(e=>"TABLE"===e.nodeName)(t)){const{style:{backgroundColor:n,color:r,fontFamily:i,fontSize:o,fontStyle:a,fontWeight:s,textDecoration:l}}=t;if(n||r||i||o||a||s||l){const n=document.createElement("span");["initial","inherit"].includes(r)||(n.style.color=r),n.style.fontFamily=i,n.style.fontSize=o,["normal","initial","inherit"].includes(r)||(n.style.fontStyle=a),["normal",400].includes(s)||(n.style.fontWeight=s),n.style.textDecoration=l,n.innerHTML=t.innerHTML,e.innerHTML=n.outerHTML}}return!0}))},Iet=(e,t)=>!!((e,t)=>{let n=null;return Cet(e,(e=>!t(e)||(n=e,!1))),n})(e,t),zet=()=>NodeFilter.FILTER_ACCEPT,Wet=e=>{const t=[],n=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode:zet});let r=n.nextNode();for(;r;)r.nodeValue&&t.push(r.nodeValue),r=n.nextNode();return t},Net=e=>e.nodeType===Node.COMMENT_NODE,Let=e=>`${e.trim().replaceAll(new RegExp("​","g"),"")}`,Fet=[e=>(e=>{const t=e.indexOf("{const t=e.lastIndexOf("");return-1===t?e:e.slice(0,Math.max(0,t+7))})(e)),e=>e.replaceAll(/(\r\n|\r)/g,"\n")],Uet=(e,t,n)=>{const r=e=>Net(e)&&e.data===n;((e,n)=>{Eet(e,(e=>!Net(e)||(e=>{if(e.data===t){let t=e.nextSibling;for(e.remove();t&&!r(t);){const{nextSibling:e}=t;t.remove(),t=e}t&&r(t)&&t.remove()}return!0})(e)))})(e)};var Xet=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++is))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=2&n?new Get:void 0;for(o.set(e,t),o.set(t,e);++d{const n={...t},{then:r}=n;if(r){delete n.then;const{plugins:t}=n,i=xtt(e,_7e(r(e,n),n));if(t&&i.plugins){const e=wtt(ytt(t,"key"),ytt(i.plugins,"key"));i.plugins=ktt(e)}return i}return n},_tt=(e,t)=>{t&&t.forEach((t=>{let n=(e=>(void 0===e.type&&(e.type=e.key),e.options||(e.options={}),e.inject||(e.inject={}),e.editor||(e.editor={}),e))(t);if(n=xtt(e,n),!1!==n.enabled){if(e.pluginsByKey[n.key]){const t=e.plugins.indexOf(e.pluginsByKey[n.key]),r=_7e(n,e.pluginsByKey[n.key]);t>=0&&(e.plugins[t]=r),e.pluginsByKey[n.key]=r}else e.plugins.push(n),e.pluginsByKey[n.key]=n;_tt(e,n.plugins)}}))},Stt=(e,{disableCorePlugins:t,plugins:n=[]})=>{let r=[];if(!0!==t){const n=t;var i,o,a,s,l,u,c,d,f,h,p,m,g,v,O,y,b,w,k,x;"object"==typeof n&&null!=n&&n.react||r.push(null!==(i=null==e||null===(o=e.pluginsByKey)||void 0===o?void 0:o.react)&&void 0!==i?i:q7e()),"object"==typeof n&&null!=n&&n.history||r.push(null!==(a=null==e||null===(s=e.pluginsByKey)||void 0===s?void 0:s.history)&&void 0!==a?a:A7e()),"object"==typeof n&&null!=n&&n.nodeFactory||r.push(null!==(l=null==e||null===(u=e.pluginsByKey)||void 0===u?void 0:u[L7e])&&void 0!==l?l:F7e()),"object"==typeof n&&null!=n&&n.eventEditor||r.push(null!==(c=null==e||null===(d=e.pluginsByKey)||void 0===d?void 0:d[Q7e])&&void 0!==c?c:R7e()),"object"==typeof n&&null!=n&&n.inlineVoid||r.push(null!==(f=null==e||null===(h=e.pluginsByKey)||void 0===h?void 0:h[j7e])&&void 0!==f?f:D7e()),"object"==typeof n&&null!=n&&n.insertData||r.push(null!==(p=null==e||null===(m=e.pluginsByKey)||void 0===m?void 0:m[z7e])&&void 0!==p?p:W7e()),"object"==typeof n&&null!=n&&n.selection||r.push(null!==(g=null==e||null===(v=e.pluginsByKey)||void 0===v?void 0:v[U7e])&&void 0!==g?g:X7e()),"object"==typeof n&&null!=n&&n.deserializeHtml||r.push(null!==(O=null==e||null===(y=e.pluginsByKey)||void 0===y?void 0:y[_et])&&void 0!==O?O:Pet()),"object"==typeof n&&null!=n&&n.deserializeAst||r.push(null!==(b=null==e||null===(w=e.pluginsByKey)||void 0===w?void 0:w[E7e])&&void 0!==b?b:C7e()),"object"==typeof n&&null!=n&&n.editorProtocol||r.push(null!==(k=null==e||null===(x=e.pluginsByKey)||void 0===x?void 0:x[T7e])&&void 0!==k?k:$7e())}r=[...r,...n],e.plugins=[],e.pluginsByKey={},_tt(e,r),e.plugins.forEach((t=>{if(t.overrideByKey){const n=e.plugins.map((e=>S7e(e,t.overrideByKey)));e.plugins=[],e.pluginsByKey={},_tt(e,n)}}))},Ptt=e=>()=>{console.warn(`editor.${e} should have been overriden but was not. Please report this issue here: https://github.com/udecode/plate/issues`)};var Ett=function(e){return h8e(e,5)};const Ctt=(e,{components:t,overrideByKey:n}={})=>{let r={};return n&&(r=Ett(n)),t&&Object.keys(t).forEach((e=>{r[e]||(r[e]={}),r[e].component=t[e]})),Object.keys(r).length>0?e.map((e=>S7e(e,r))):e},Ttt=({editor:e=a1e(),plugins:t=[],components:n,overrideByKey:r,normalizeInitialValue:i,...o}={})=>{const a=((e,{id:t,plugins:n=[],disableCorePlugins:r}={})=>{let i=e;return i.id=null!=t?t:i.id,i.prevSelection=null,i.currentKeyboardEvent=null,i.reset=()=>Ptt("reset"),i.redecorate=()=>Ptt("redecorate"),i.plate={get set(){return null}},i.key||(i.key=Math.random()),Stt(i,{plugins:n,disableCorePlugins:r}),i.plugins.forEach((e=>{e.withOverrides&&(i=e.withOverrides(i,e))})),i})(e,{plugins:t=Ctt(t,{components:n,overrideByKey:r}),...o});return i&&B1e(a,{force:!0}),a},$tt=(e,t)=>{var n;return null!==(n=Z7e(e,t).options)&&void 0!==n?n:{}},Qtt=e=>`slate-${e}`,Rtt=({attributes:e,nodeProps:t,props:n,type:r})=>{let i={};var o;n&&(i=null!==(o="function"==typeof n?n(t):n)&&void 0!==o?o:{}),!i.nodeProps&&e&&(i.nodeProps=e),(t={...t,...i}).nodeProps&&Object.keys(t.nodeProps).forEach((e=>{var n,r;void 0===(null===(n=t.nodeProps)||void 0===n?void 0:n[e])&&(null===(r=t.nodeProps)||void 0===r||delete r[e])}));const{className:a}=t;return{...t,className:$5e(Qtt(r),a)}};var Att=J5e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}));!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Att),Att.isHotkey,Att.isCodeHotkey;var jtt=Att.isKeyHotkey;Att.parseHotkey,Att.compareHotkey,Att.toKeyCode,Att.toKeyName;const Dtt={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",splitBlock:"enter",tab:"tab",untab:"shift+tab",undo:"mod+z"},Mtt={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Itt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ztt=e=>{const t=Dtt[e],n=Mtt[e],r=Itt[e],i=t&&jtt(t),o=n&&jtt(n),a=r&&jtt(r);return e=>!(!i||!i(e))||!!(HKe&&o&&o(e))||!(HKe||!a||!a(e))},Wtt=e=>(t,n,{composing:r}={})=>!!ztt(e)(n)&&!!r===(e=>p4e.isComposing(e))(t),Ntt={isBold:ztt("bold"),isCompose:ztt("compose"),isMoveBackward:ztt("moveBackward"),isMoveForward:ztt("moveForward"),isDeleteBackward:ztt("deleteBackward"),isDeleteForward:ztt("deleteForward"),isDeleteLineBackward:ztt("deleteLineBackward"),isDeleteLineForward:ztt("deleteLineForward"),isDeleteWordBackward:ztt("deleteWordBackward"),isDeleteWordForward:ztt("deleteWordForward"),isExtendBackward:ztt("extendBackward"),isExtendForward:ztt("extendForward"),isExtendLineBackward:ztt("extendLineBackward"),isExtendLineForward:ztt("extendLineForward"),isItalic:ztt("italic"),isMoveLineBackward:ztt("moveLineBackward"),isMoveLineForward:ztt("moveLineForward"),isMoveWordBackward:ztt("moveWordBackward"),isMoveWordForward:ztt("moveWordForward"),isRedo:ztt("redo"),isSoftBreak:ztt("insertSoftBreak"),isSplitBlock:ztt("splitBlock"),isTab:Wtt("tab"),isTransposeCharacter:ztt("transposeCharacter"),isUndo:ztt("undo"),isUntab:Wtt("untab")},Ltt=(e,t,n)=>{var r;const i=null===(r=t.inject.props)||void 0===r?void 0:r.validTypes;if(!i)return;const o=((e,t)=>{const n=Oet(t);return Object.values(e.pluginsByKey).filter((e=>n.includes(e.type))).map((e=>e.key))})(e,i),a={};return o.forEach((e=>{a[e]=n})),{inject:{pluginsByKey:a}}},Ftt=e=>{h7e({...e,apply:wtt})},Utt=e=>({key:"",type:"",editor:{},inject:{},options:{},...e});const Xtt=(e,t)=>{let n=Ett(t);if(e.plugins.forEach((e=>{var t;const r=null===(t=e.normalizeInitialValue)||void 0===t?void 0:t.call(e,n);r&&(n=r)})),!function(e,t){return ctt(e,t)}(t,n))return n},qtt=(e,t)=>{if(!t)return!1;const n=t(e);return null!=n?n:e.isPropagationStopped()},Btt=(e,t)=>(e.plugins.forEach((e=>{if(e.inject.props){const n=((e,{key:t,inject:{props:n}},r)=>{var i;const{element:o,text:a,className:s,style:l}=r,u=null!=o?o:a;if(!u)return;if(!n)return;const{nodeKey:c=t,styleKey:d=c,validTypes:f,classNames:h,transformClassName:p,transformNodeValue:m,transformProps:g,transformStyle:v,validNodeValues:O,defaultNodeValue:y,query:b}=n,w=null==b?void 0:b(n,r);if(!w&&f&&d1e(u)&&u.type&&!f.includes(u.type))return;const k=u[c];if(!w&&(!oJe(k)||O&&!O.includes(k)||k===y))return;const x={...r,nodeValue:k},_=null!==(i=null==m?void 0:m(x))&&void 0!==i?i:k;x.value=_;let S={};var P,E,C;return o&&(S.className=$5e(s,`slate-${c}-${k}`)),(null!=h&&h[k]||p)&&(S.className=null!==(P=null==p?void 0:p(x))&&void 0!==P?P:$5e(s,null==h?void 0:h[_])),d&&(S.style=null!==(E=null==v?void 0:v(x))&&void 0!==E?E:{...l,[d]:_}),g&&(S=null!==(C=g(x,S))&&void 0!==C?C:S),S})(0,e,t);n&&(t={...t,...n})}})),{...t,editor:e}),Vtt=e=>u7e(e).editor(),Ytt=e=>(u7e(e).keySelection(),Vtt(e).selection),Ztt=["onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onDOMBeforeInput","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Gtt=({id:e,...t}={})=>{var n,r,i;const o=Vtt(e),a=u7e(e),s=a.keyDecorate(),l=a.readOnly(),u=null===(n=a.decorate())||void 0===n?void 0:n.fn,d=null===(r=a.renderLeaf())||void 0===r?void 0:r.fn,f=null===(i=a.renderElement())||void 0===i?void 0:i.fn,h=(0,c.useMemo)((()=>((e,t)=>{const n=e.plugins.flatMap((t=>{var n,r;return null!==(n=null===(r=t.decorate)||void 0===r?void 0:r.call(t,e,t))&&void 0!==n?n:[]}));if(t&&n.push(t),0!==n.length)return e=>{let t=[];return n.forEach((n=>{var r;null!=(r=n(e))&&r.length&&(t=[...t,...r])})),t}})(o,null!=u?u:null==t?void 0:t.decorate)),[null==t?void 0:t.decorate,o,u]),p=(0,c.useMemo)((()=>{if(s&&h)return e=>h(e)}),[h,s]),m=(0,c.useMemo)((()=>((e,t)=>{const n=[];return e.plugins.forEach((t=>{t.isElement&&n.push(((e,{key:t,type:n,component:r,props:i})=>function(o){const{element:a,children:s}=o;if(a.type===n){const l=null!=r?r:q4e,u=e.plugins.flatMap((e=>{var t,n;return null!==(t=null===(n=e.inject)||void 0===n?void 0:n.aboveComponent)&&void 0!==t?t:[]})),d=e.plugins.flatMap((e=>{var t,n;return null!==(t=null===(n=e.inject)||void 0===n?void 0:n.belowComponent)&&void 0!==t?t:[]}));o=Rtt({attributes:a.attributes,nodeProps:o,props:i,type:n});let f=s;d.forEach((e=>{const n=e({...o,key:t});n&&(f=n({...o,children:f}))}));let h=c.createElement(l,o,f);return u.forEach((e=>{const n=e({...o,key:t});n&&(h=n({...o,children:h}))})),c.createElement(U5e,{element:a,scope:t},h)}})(e,t))})),function(r){const i=Btt(e,r);let o;return n.some((e=>(o=e(i),!!o))),o||(t?t(i):c.createElement(q4e,i))}})(o,null!=f?f:null==t?void 0:t.renderElement)),[null==t?void 0:t.renderElement,o,f]),g=(0,c.useMemo)((()=>((e,t)=>{const n=[];return e.plugins.forEach((e=>{e.isLeaf&&e.key&&n.push(((e,{key:t,type:n=t,component:r,props:i})=>function(e){const{leaf:t,children:o}=e;if(t[n]){const a=null!=r?r:q5e;return e=Rtt({attributes:t.attributes,props:i,nodeProps:e,type:n}),c.createElement(a,e,o)}return o})(0,e))})),function(r){const i=Btt(e,r);return n.forEach((e=>{const t=e(i);void 0!==t&&(i.children=t)})),t?t(i):c.createElement(q5e,i)}})(o,null!=d?d:null==t?void 0:t.renderLeaf)),[null==t?void 0:t.renderLeaf,o,d]),v=lJe((()=>{const e={decorate:p,renderElement:m,renderLeaf:g};return oJe(l)&&(e.readOnly=l),Ztt.forEach((n=>{const r=((e,{editableProps:t,handlerKey:n})=>{let r=[];r=e.plugins.flatMap((t=>{var r,i,o;return null!==(r=null===(i=t.handlers)||void 0===i||null===(o=i[n])||void 0===o?void 0:o.call(i,e,t))&&void 0!==r?r:[]}));const i=null==t?void 0:t[n];if(0!==r.length||i)return e=>!!r.some((t=>qtt(e,t)))||qtt(e,i)})(o,{editableProps:t,handlerKey:n});r&&(e[n]=r)})),e}),[p,t,m,g,l]);return lJe((()=>({...e7e(t,[...Ztt,"renderElement","renderLeaf"]),...v})),[t,v])},Htt=()=>g3e(),Ktt=()=>K4e();const Jtt=({setState:e,state:t,nextState:n,nextStateValue:r=n})=>{(0,c.useEffect)((()=>{n===t||function(e){return void 0===e}(n)||e(r)}),[e,t,n,r])},ent=({id:e,disableCorePlugins:t,value:n,onChange:r,plugins:i,editorRef:o,decorate:a,renderElement:s,renderLeaf:l,readOnly:u})=>{const d=Vtt(e),f=d7e(e),[h,p]=f.value(),[m,g]=f.editorRef(),[v,O]=f.decorate(),[y,b]=f.renderElement(),[w,k]=f.renderLeaf(),[x,_]=f.rawPlugins(),[,S]=f.plugins(),[P,E]=f.onChange(),[C,T]=f.readOnly();Jtt({state:h,setState:p,nextState:n}),Jtt({state:C,setState:T,nextState:u}),Jtt({state:x,setState:S,nextState:i,nextStateValue:null!=i?i:[]}),Jtt({state:null==P?void 0:P.fn,setState:E,nextState:r,nextStateValue:r?{fn:r}:null}),Jtt({state:null==m?void 0:m.ref,setState:g,nextState:o,nextStateValue:o?{ref:o}:null}),Jtt({state:null==v?void 0:v.fn,setState:O,nextState:a,nextStateValue:a?{fn:a}:null}),Jtt({state:null==y?void 0:y.fn,setState:b,nextState:s,nextStateValue:s?{fn:s}:null}),Jtt({state:null==w?void 0:w.fn,setState:k,nextState:l,nextStateValue:l?{fn:l}:null}),(0,c.useEffect)((()=>{i!==x&&(_(x),Stt(d,{plugins:i,disableCorePlugins:t}),S(d.plugins))}),[t,d,x,i,S,_])},tnt=({id:e})=>{var t;const n=Vtt(e),r=u7e(e).value(),i=c7e(e).value(),o=null===(t=u7e(e).onChange())||void 0===t?void 0:t.fn,a=(0,c.useCallback)((e=>{const t=(e=>{const t=e.plugins.flatMap((t=>{var n,r,i;return null!==(n=null===(r=t.handlers)||void 0===r||null===(i=r.onChange)||void 0===i?void 0:i.call(r,e,t))&&void 0!==n?n:[]}));return e=>t.some((t=>{if(!t)return!1;const n=t(e);return null!=n&&n}))})(n)(e);t||null==o||o(e),i(e)}),[n,i,o]);return(0,c.useMemo)((()=>({key:n.key,editor:n,onChange:a,value:r,initialValue:r})),[n,a,r])},nnt=["readOnly","plugins","onChange","decorate","renderElement","renderLeaf"],rnt=({id:e})=>{const t=Htt(),n=(e=>{const t=u7e(e).editor(),n=c7e(e).editor();return(0,c.useCallback)((()=>{const e=Ttt({id:t.id,plugins:t.plugins,disableCorePlugins:!0});n(e)}),[t,n])})(e),r=(e=>{const t=f7e("keyDecorate",e);return(0,c.useCallback)((()=>{t()}),[t])})(e),i=l7e(e),o=Object.fromEntries(nnt.map((e=>[e,i.set[e]()]))),a=(0,c.useMemo)((()=>o),[]);return(0,c.useEffect)((()=>{t.reset=n,t.redecorate=r,t.plate={set:a}}),[t,n,r,a]),null};function int({plugin:e}){var t;const n=Htt();return null===(t=e.useHooks)||void 0===t||t.call(e,n,e),null}function ont({id:e}){var t;const n=c7e(e).isRendered(),r=u7e(e).plugins(),i=Htt(),o=null===(t=u7e(e).editorRef())||void 0===t?void 0:t.ref;return(0,c.useEffect)((()=>(n(!0),()=>{n(!1)})),[n]),(0,c.useEffect)((()=>"function"==typeof o?(o(i),()=>o(null)):o?(o.current=i,()=>{o.current=null}):void 0),[o,i]),c.createElement(c.Fragment,null,r.map((e=>c.createElement(int,{key:e.key,plugin:e}))))}const ant=(0,c.memo)((({id:e})=>{const t=Ktt(),n=f7e("keyEditor",e),r=f7e("keySelection",e);return(0,c.useEffect)((()=>{n()})),(0,c.useEffect)((()=>{r()}),[t.selection,r]),null}));function snt({children:e,renderEditable:t,editableRef:n,firstChildren:r,...i}){const{id:o}=i,a=Htt(),{plugins:s}=a,l=Gtt(i),u=c.createElement(f5e,z5e({ref:n},l));let d=null,f=null;s.forEach((e=>{const{renderBeforeEditable:t,renderAfterEditable:n}=e;n&&(d=c.createElement(c.Fragment,null,d,n(l))),t&&(f=c.createElement(c.Fragment,null,f,t(l)))}));let h=c.createElement(c.Fragment,null,r,f,t?t(u):u,c.createElement(rnt,{id:o}),c.createElement(ant,{id:o}),c.createElement(ont,{id:o}),d,e);return s.forEach((e=>{const{renderAboveEditable:t}=e;t&&(h=t({children:h}))})),h}function lnt({children:e,...t}){return ent(t),c.createElement(c.Fragment,null,e)}function unt({normalizeInitialValue:e,...t}){const{id:n=i7e,editor:r,initialValue:i,value:o,children:a,plugins:s,disableCorePlugins:l,onChange:u,editorRef:d,decorate:f,renderElement:h,renderLeaf:p,readOnly:m}=t,g=(0,c.useMemo)((()=>null!=r?r:Ttt({id:n,plugins:s,disableCorePlugins:l})),[]),v=(0,c.useMemo)((()=>{let t=null!=i?i:o;t||(t=g.children.length>0?g.children:g.childrenFactory());const n=Xtt(g,t);return n&&(t=n),g.children=t,e&&B1e(g,{force:!0}),g.children}),[]);return c.createElement(LGe,{initialValues:[[s7e.atom.id,n],[s7e.atom.editor,g],[s7e.atom.plugins,g.plugins],[s7e.atom.rawPlugins,s],[s7e.atom.readOnly,m],[s7e.atom.value,v],[s7e.atom.decorate,{fn:f}],[s7e.atom.onChange,{fn:u}],[s7e.atom.editorRef,{ref:d}],[s7e.atom.renderElement,{fn:h}],[s7e.atom.renderLeaf,{fn:p}]],scope:n},c.createElement(LGe,{initialValues:[[a7e,n]],scope:o7e},c.createElement(lnt,t,a)))}function cnt(e){const{id:t}=e;return c.createElement(unt,z5e({key:null==t?void 0:t.toString()},e))}function dnt({id:e,children:t}){const n=tnt({id:e}),{plugins:r}=u7e(e).editor();let i=c.createElement(x5e,n,t);return null==r||r.forEach((e=>{const{renderAboveSlate:t}=e;t&&(i=t({children:i}))})),i}function fnt({children:e,editableRef:t,firstChildren:n,renderEditable:r,editableProps:i,...o}){const{id:a=i7e}=o,s=u7e(a).id(),l=c.createElement(dnt,{id:a},c.createElement(snt,z5e({id:a,editableRef:t,firstChildren:n,renderEditable:r},i),e));return s?l:c.createElement(cnt,o,l)}const hnt=(e,t,n)=>{const{activeType:r,inactiveType:i=G7e(e,N7e)}=t;if(!r||!e.selection)return;const o=p2e(e,{...n,match:{type:r}});o&&r===i||m2e(e,{type:o?i:r})};function pnt(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}const mnt=(0,c.forwardRef)(((e,t)=>{const{children:n,...r}=e,i=c.Children.toArray(n),o=i.find(Ont);if(o){const e=o.props.children,n=i.map((t=>t===o?c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null:t));return(0,c.createElement)(gnt,tT({},r,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(gnt,tT({},r,{ref:t}),n)}));mnt.displayName="Slot";const gnt=(0,c.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...ynt(r,n.props),ref:t?pnt(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null}));gnt.displayName="SlotClone";const vnt=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function Ont(e){return(0,c.isValidElement)(e)&&e.type===vnt}function ynt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const bnt=(e,t)=>{try{const{match:n,at:r=e.selection,reverse:i=!1,voids:o=!1}=t;if(!r)return;let a,s;if(XJe(r))[a,s]=r;else if(RJe.isRange(r)){const t=N1e(e,r,{edge:"start"}),n=N1e(e,r,{edge:"end"});a=i?n:t,s=i?t:n}let l=[e,[]];wJe.isPath(r)&&(l=W1e(e,r));const u=((e,t)=>zJe.descendants(e,t))(l[0],{reverse:i,from:a,to:s,pass:([t])=>!o&&j1e(e,t)});for(const[e,t]of u)if(h1e(e,t,n))return[e,r.concat(t)]}catch(e){return}},wnt=(e,t={})=>m1e(e,{...t,block:!0}),knt=e=>{const[t,n]=e;if(J1e(t)){const{children:e}=t;return e.map(((e,t)=>[e,n.concat([t])]))}return[]},xnt=e=>{const t=(e=>{const[t,n]=e;if(k1e(t))return null;if(0===t.children.length)return null;const r=t.children;return[r.at(-1),n.concat([r.length-1])]})(e);return t?t[1]:e[1].concat([-1])},_nt=(e,t)=>{const n=xnt(e);return wJe.equals(n,t)},Snt=(e,t)=>{if(!(t+1&&J1e(e)))return e;const{children:n}=e,r=n.at(-1);return Snt(r,t-1)},Pnt=(e,t)=>{const n=((e,t)=>UJe.next(e,t))(e,{at:t});if(n)return R1e(e,n[1])};var Ent=Array.isArray,Cnt=function(){if(!arguments.length)return[];var e=arguments[0];return Ent(e)?e:[e]},Tnt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n-1},Ant.prototype.set=function(e,t){var n=this.__data__,r=Qnt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var jnt=Ant,Dnt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Mnt(e,t){return e(t={exports:{}},t.exports),t.exports}var Int="object"==typeof Dnt&&Dnt&&Dnt.Object===Object&&Dnt,znt="object"==typeof self&&self&&self.Object===Object&&self,Wnt=Int||znt||Function("return this")(),Nnt=Wnt.Symbol,Lnt=Object.prototype,Fnt=Lnt.hasOwnProperty,Unt=Lnt.toString,Xnt=Nnt?Nnt.toStringTag:void 0,qnt=Object.prototype.toString,Bnt=Nnt?Nnt.toStringTag:void 0,Vnt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Bnt&&Bnt in Object(e)?function(e){var t=Fnt.call(e,Xnt),n=e[Xnt];try{e[Xnt]=void 0;var r=!0}catch(e){}var i=Unt.call(e);return r&&(t?e[Xnt]=n:delete e[Xnt]),i}(e):function(e){return qnt.call(e)}(e)},Ynt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Znt=function(e){if(!Ynt(e))return!1;var t=Vnt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Gnt=Wnt["__core-js_shared__"],Hnt=function(){var e=/[^.]+$/.exec(Gnt&&Gnt.keys&&Gnt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Knt=Function.prototype.toString,Jnt=function(e){if(null!=e){try{return Knt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ert=/^\[object .+?Constructor\]$/,trt=Function.prototype,nrt=Object.prototype,rrt=trt.toString,irt=nrt.hasOwnProperty,ort=RegExp("^"+rrt.call(irt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),art=function(e){return!(!Ynt(e)||function(e){return!!Hnt&&Hnt in e}(e))&&(Znt(e)?ort:ert).test(Jnt(e))},srt=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return art(n)?n:void 0},lrt=srt(Wnt,"Map"),urt=srt(Object,"create"),crt=Object.prototype.hasOwnProperty,drt=Object.prototype.hasOwnProperty;function frt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=2&n?new brt:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},Xrt={};Xrt["[object Float32Array]"]=Xrt["[object Float64Array]"]=Xrt["[object Int8Array]"]=Xrt["[object Int16Array]"]=Xrt["[object Int32Array]"]=Xrt["[object Uint8Array]"]=Xrt["[object Uint8ClampedArray]"]=Xrt["[object Uint16Array]"]=Xrt["[object Uint32Array]"]=!0,Xrt["[object Arguments]"]=Xrt["[object Array]"]=Xrt["[object ArrayBuffer]"]=Xrt["[object Boolean]"]=Xrt["[object DataView]"]=Xrt["[object Date]"]=Xrt["[object Error]"]=Xrt["[object Function]"]=Xrt["[object Map]"]=Xrt["[object Number]"]=Xrt["[object Object]"]=Xrt["[object RegExp]"]=Xrt["[object Set]"]=Xrt["[object String]"]=Xrt["[object WeakMap]"]=!1;var qrt=Mnt((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&Int.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),Brt=qrt&&qrt.isTypedArray,Vrt=Brt?function(e){return function(t){return e(t)}}(Brt):function(e){return Art(e)&&Urt(e.length)&&!!Xrt[Vnt(e)]},Yrt=Object.prototype.hasOwnProperty,Zrt=function(e,t){var n=Ent(e),r=!n&&zrt(e),i=!n&&!r&&Nrt(e),o=!n&&!r&&!i&&Vrt(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n{if(t||(t=e.selection),!t)return;const[r,i]=RJe.edges(t),o=wnt(e,{at:r,...n}),a=wnt(e,{at:i,...n});return o||a?!o||!a||!wJe.equals(o[1],a[1]):void 0},not=(e,t,n)=>{if(!n||!n.match&&!n.matchString)return Q1e(e,t,n);const r=!n.unit||"offset"===n.unit;let i;return(n.matchString?Cnt(n.matchString):[""]).some((o=>{let a=t,s=L1e(e,t,{edge:"end"});const l=o.length+1,u=Array.from({length:l});let c=0;for(;;){var d;const h=Q1e(e,a,n);if(!h)return;if(tot(e,{at:{anchor:h,focus:s}}))return;const p=I1e(e,{anchor:h,focus:s});let m=p;var f;if(r&&l&&(u.unshift({point:h,text:p}),u.pop(),m=eot(u.slice(0,-1),"text").join("")),o===m||null!==(d=n.match)&&void 0!==d&&d.call(n,{beforeString:m,beforePoint:h,at:t}))return n.afterMatch?l&&r?(i=null===(f=u.at(-1))||void 0===f?void 0:f.point,!!i):(i=s,!0):(i=h,!0);if(s=h,a=h,c+=1,!n.skipInvalid&&(!o||c>=o.length))return}})),i},rot=e=>{if(0===e.length)return;const t=e.at(-1);return t<=0?void 0:e.slice(0,-1).concat(t-1)},iot=(e,t,n)=>{const r=not(e,t,n);if(r)return{anchor:r,focus:L1e(e,t,{edge:"end"})}},oot=(e,t={})=>{var n;const r=null===(n=wnt(e,t))||void 0===n?void 0:n[1];if(!r)return;const i=R1e(e,r),o=((e,{at:t=e.selection,focus:n}={})=>{let r;return RJe.isRange(t)&&(r=n?t.focus:t.anchor),VJe.isPoint(t)&&(r=t),wJe.isPath(t)&&(r={path:t,offset:0}),r})(e,t);return o?{anchor:i,focus:o}:void 0},aot=e=>I1e(e,e.selection),sot=e=>{var t;const n=null===(t=wnt(e))||void 0===t?void 0:t[0];return!!n&&((e,t)=>!G1e(t)&&!t.children.some((t=>X1e(e,t))))(e,n)},lot=e=>{if(!e.selection)return!1;const t=wnt(e);if(!t)return!1;const n=e.selection.focus,r=O1e(e,e.selection);if(!r)return!1;const[,i]=r;if(!U1e(e,n,i))return!1;const o=((e,t)=>{const[n,r]=e,i=t[r.length],o=[],a=n.children;if(i+10))return U1e(e,n,t[1]);for(const e of o)if(k1e(e)&&e.text)return!1;return!0},uot=(e,t)=>oJe(((e,t)=>{if(!e)return;const n=z1e(e);return null==n?void 0:n[t]})(e,t)),cot=(e,{at:t,...n}={})=>{if(t||(t=e.selection),!t)return;const[r,i]=RJe.edges(t),o=wnt(e,{at:r,...n}),a=wnt(e,{at:i,...n});return o&&a?wJe.equals(o[1],a[1]):void 0},dot=(e,t)=>{var n,r;const i=null===(n=wnt(e,t))||void 0===n?void 0:n[1];return!!i&&U1e(e,null===(r=e.selection)||void 0===r?void 0:r.focus,i)},fot=(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const i=null===(n=wnt(e,t))||void 0===n?void 0:n[1];return!!i&&(q1e(e,r.focus,i)||t2e(e.selection)&&q1e(e,r.anchor,i))},hot=e=>t2e(e.selection),pot=(e,t,n)=>{r2e(e,t,n)},mot=(e,{at:t,to:n,match:r,fromStartIndex:i=0})=>{let o=0;const a=wJe.isPath(t)?t:t[1],s=wJe.isPath(t)?Y1e(e,a):t[0];if(!s)return o;if(!f1e(e,s))return o;for(let t=s.children.length-1;t>=i;t--){const i=[...a,t],s=Y1e(e,i);(!r||s&&r([s,i]))&&(S1e(e,{at:i,to:n}),o++)}return o},got=(e,{key:t,at:n,shouldChange:r=!0,...i})=>{const o=null!=n?n:e.selection;if(t=Cnt(t),o)if(RJe.isRange(o)&&RJe.isExpanded(o))u2e(e,t,{at:o,match:k1e,split:!0,...i});else if(e.selection){var a;const n=null!==(a=z1e(e))&&void 0!==a?a:{};t.forEach((e=>{delete n[e]})),e.marks=n,r&&e.onChange()}},vot=(e,{at:t,nodes:n,insertOptions:r,removeOptions:i})=>{w1e(e,(()=>{((e,t,n)=>{w1e(e,(()=>{for(const[,r]of((e,t,n)=>zJe.children(e,t,{reverse:!0}))(e,t))P1e(e,{...n,at:r})}))})(e,t,i),r2e(e,n,{...r,at:t.concat([0])})}))},Oot=(e,{key:t,clear:n})=>{e.selection&&w1e(e,(()=>{if(uot(e,t))got(e,{key:t});else{if(n){const t=Cnt(n);got(e,{key:t})}e.addMark(t,!0)}}))};function yot(){return yot=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.forwardRef((({as:t,asChild:n=!1,...r},i)=>{const o=n?mnt:t||e;return c.createElement(o,yot({ref:i},r))})),wot=bot("div");function kot(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{const{ref:n,props:r}=(e=>{const{editor:t,attributes:n,nodeProps:r,element:i,elementToAttributes:o,...a}=e;return{ref:vst(e.ref,n.ref),props:{...n,...a,...r,...null==o?void 0:o(i),className:xot(e.className,null==r?void 0:r.className)}}})({...e,ref:t});return c.createElement(wot,yot({},r,{ref:n}))}));_ot.displayName="PlateElement";const Sot=c.forwardRef(((e,t)=>{const{ref:n,props:r}=(e=>{const{editor:t,attributes:n,nodeProps:r,text:i,leaf:o,leafToAttributes:a,...s}=e;return{ref:vst(e.ref,n.ref),props:{...n,...s,...r,...null==a?void 0:a(o),className:xot(e.className,null==r?void 0:r.className)}}})({...e,ref:t});return c.createElement(_st,yot({},r,{ref:n}))}));Sot.displayName="PlateLeaf";var Pot=Array.isArray,Eot=function(){if(!arguments.length)return[];var e=arguments[0];return Pot(e)?e:[e]},Cot=function(e,t){return e===t||e!=e&&t!=t},Tot=function(e,t){for(var n=e.length;n--;)if(Cot(e[n][0],t))return n;return-1},$ot=Array.prototype.splice;function Qot(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Qot.prototype.set=function(e,t){var n=this.__data__,r=Tot(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Rot=Qot,Aot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function jot(e,t){return e(t={exports:{}},t.exports),t.exports}var Dot="object"==typeof Aot&&Aot&&Aot.Object===Object&&Aot,Mot="object"==typeof self&&self&&self.Object===Object&&self,Iot=Dot||Mot||Function("return this")(),zot=Iot.Symbol,Wot=Object.prototype,Not=Wot.hasOwnProperty,Lot=Wot.toString,Fot=zot?zot.toStringTag:void 0,Uot=Object.prototype.toString,Xot=zot?zot.toStringTag:void 0,qot=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xot&&Xot in Object(e)?function(e){var t=Not.call(e,Fot),n=e[Fot];try{e[Fot]=void 0;var r=!0}catch(e){}var i=Lot.call(e);return r&&(t?e[Fot]=n:delete e[Fot]),i}(e):function(e){return Uot.call(e)}(e)},Bot=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Vot=function(e){if(!Bot(e))return!1;var t=qot(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Yot=Iot["__core-js_shared__"],Zot=function(){var e=/[^.]+$/.exec(Yot&&Yot.keys&&Yot.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Got=Function.prototype.toString,Hot=/^\[object .+?Constructor\]$/,Kot=Function.prototype,Jot=Object.prototype,eat=Kot.toString,tat=Jot.hasOwnProperty,nat=RegExp("^"+eat.call(tat).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rat=function(e){return!(!Bot(e)||function(e){return!!Zot&&Zot in e}(e))&&(Vot(e)?nat:Hot).test(function(e){if(null!=e){try{return Got.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))},iat=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return rat(n)?n:void 0},oat=iat(Iot,"Map"),aat=iat(Object,"create"),sat=Object.prototype.hasOwnProperty,lat=Object.prototype.hasOwnProperty;function uat(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991},Iat=function(e){return null!=e&&Mat(e.length)&&!Vot(e)},zat=function(){return!1},Wat=jot((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?Iot.Buffer:void 0,o=(i?i.isBuffer:void 0)||zat;e.exports=o})),Nat=Function.prototype,Lat=Object.prototype,Fat=Nat.toString,Uat=Lat.hasOwnProperty,Xat=Fat.call(Object),qat={};qat["[object Float32Array]"]=qat["[object Float64Array]"]=qat["[object Int8Array]"]=qat["[object Int16Array]"]=qat["[object Int32Array]"]=qat["[object Uint8Array]"]=qat["[object Uint8ClampedArray]"]=qat["[object Uint16Array]"]=qat["[object Uint32Array]"]=!0,qat["[object Arguments]"]=qat["[object Array]"]=qat["[object ArrayBuffer]"]=qat["[object Boolean]"]=qat["[object DataView]"]=qat["[object Date]"]=qat["[object Error]"]=qat["[object Function]"]=qat["[object Map]"]=qat["[object Number]"]=qat["[object Object]"]=qat["[object RegExp]"]=qat["[object Set]"]=qat["[object String]"]=qat["[object WeakMap]"]=!1;var Bat=jot((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&Dot.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),Vat=Bat&&Bat.isTypedArray,Yat=Vat?function(e){return function(t){return e(t)}}(Vat):function(e){return $at(e)&&Mat(e.length)&&!!qat[qot(e)]},Zat=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Gat=Object.prototype.hasOwnProperty,Hat=function(e,t,n){var r=e[t];Gat.call(e,t)&&Cot(r,n)&&(void 0!==n||t in e)||Oat(e,t,n)},Kat=/^(?:0|[1-9]\d*)$/,Jat=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Kat.test(e))&&e>-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fst),mst=function(e,t){return pst(function(e,t,n){return t=ust(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=ust(r.length-t,0),a=Array(o);++i1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&gst(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r(0,c.useCallback)(((...e)=>t=>e.forEach((e=>((e,t)=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})(e,t))))(...e),e),Ost=e=>{const t=bot(e);return({propsHook:e,stateHook:n}={})=>c.forwardRef((({asChild:r,options:i,state:o,className:a,getClassName:s,...l},u)=>{var d,f;const h=oJe(o)?o:n?n(i):void 0,{ref:p,props:m,hidden:g}=e?e(h):{props:{},hidden:!1,ref:null},v=vst(u,p),O=oJe(null==m?void 0:m.className)||oJe(a)?xot(null==m?void 0:m.className,a):void 0,y=null!=m&&m.style||l.style?{...null==m?void 0:m.style,...l.style}:void 0;return!r&&g?null:c.createElement(t,yot({ref:v,asChild:r},m,{className:O,style:y},l,null!==(d=null===(f=l.setProps)||void 0===f?void 0:f.call(l,null!=m?m:{}))&&void 0!==d?d:{}))}))};var yst=Object.prototype,bst=yst.hasOwnProperty,wst=mst((function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&gst(t[0],t[1],i)&&(r=1);++nfunction(n){return c.createElement(e,yot({},n,t))},_st=bot("span");var Sst=jot((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c})),Pst=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Sst);Sst.isHotkey,Sst.isCodeHotkey,Sst.isKeyHotkey,Sst.parseHotkey,Sst.compareHotkey,Sst.toKeyCode,Sst.toKeyName;const Est=(e,{type:t,options:{hotkey:n}})=>r=>{if(r.defaultPrevented)return;const i=G7e(e,N7e);if(!n)return;const o=Eot(n);for(const n of o)if(Pst(n,r))return r.preventDefault(),void hnt(e,{activeType:t,inactiveType:i})},Cst=(e,{type:t,options:{hotkey:n,clear:r}})=>i=>{i.defaultPrevented||n&&Pst(n,i)&&(i.preventDefault(),Oot(e,{key:t,clear:r}))},Tst=(e,t,n)=>{const r=Eot(n),i=[];return r.forEach((t=>i.push(G7e(e,t)))),i.includes(null==t?void 0:t.type)},$st="align",Qst=P7e({key:$st,then:e=>({inject:{props:{nodeKey:$st,defaultNodeValue:"left",styleKey:"textAlign",validNodeValues:["left","center","right","justify"],validTypes:[G7e(e,N7e)]}},then:(t,n)=>Ltt(e,n,{deserializeHtml:{getNode:(e,t)=>{e.style.textAlign&&(t[n.key]=e.style.textAlign)}}})})});var Rst=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Ast=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Rst);Rst.isHotkey,Rst.isCodeHotkey,Rst.isKeyHotkey,Rst.parseHotkey,Rst.compareHotkey,Rst.toKeyCode,Rst.toKeyName;var jst=Array.isArray,Dst=function(){if(!arguments.length)return[];var e=arguments[0];return jst(e)?e:[e]};const Mst=({match:e,trigger:t})=>{let n,r;"object"==typeof e?(n=e.start,r=e.end):(n=e,r=n.split("").reverse().join(""));const i=t?Dst(t):[r.slice(-1)];return r=t?r:r.slice(0,-1),{start:n,end:r,triggers:i}},Ist=(e,{text:t,trigger:n,match:r,type:i=N7e,allowSameTypeAbove:o=!1,preFormat:a,format:s,triggerAtBlockStart:l=!0})=>{const u=Dst(r);for(const r of u){const{end:u,triggers:c}=Mst({match:{start:"",end:r},trigger:n});if(!c.includes(t))continue;let d;if(l){d=oot(e);const t=p2e(e,{at:d,match:t=>j1e(e,t)});if(t)continue;if(u!==I1e(e,d))continue}else if(d=iot(e,e.selection,{matchString:u}),!d)continue;if(o||!p2e(e,{match:{type:i}}))return r.length>1&&_1e(e,{at:d}),a&&a(e),s?s(e):m2e(e,{type:i},{match:t=>f1e(e,t)}),!0}return!1},zst=(e,{start:t,end:n})=>{const r=e.selection;let i,o,a=r.anchor;if(!n||(a=not(e,r,{matchString:n}),a)){if(t){if(i=not(e,a,{matchString:t,skipInvalid:!0,afterMatch:!0}),!i)return;if(o=not(e,a,{matchString:t,skipInvalid:!0}),!((e,t)=>{const n=iot(e,t);if(n){const t=I1e(e,n);if(t){const e=new RegExp("\\S+");return!t.match(e)}}return!0})(e,o))return}return{afterStartMatchPoint:i,beforeStartMatchPoint:o,beforeEndMatchPoint:a}}},Wst=(e,{type:t,text:n,trigger:r,match:i,ignoreTrim:o})=>{if(!t)return!1;const a=e.selection,s=Dst(i);for(const i of s){const{start:s,end:l,triggers:u}=Mst({match:i,trigger:r});if(!u.includes(n))continue;const c=zst(e,{start:s,end:l});if(!c)continue;const{afterStartMatchPoint:d,beforeEndMatchPoint:f,beforeStartMatchPoint:h}=c,p={anchor:d,focus:f};if(!o){const t=I1e(e,p);if(t.trim()!==t)continue}l&&_1e(e,{at:{anchor:f,focus:a.anchor}});const m=Dst(t);return E1e(e,p),m.forEach((t=>{e.addMark(t,!0)})),n2e(e,{edge:"end"}),got(e,{key:m,shouldChange:!1}),_1e(e,{at:{anchor:h,focus:d}}),!0}return!1},Nst=(e,{text:t,match:n,trigger:r,format:i})=>{const o=e.selection,a=Dst(n);for(const n of a){const{start:a,end:s,triggers:l}=Mst({match:Array.isArray(i)?n:{start:"",end:n},trigger:r});if(!l.includes(t))continue;const u=zst(e,{start:a,end:s});if(!u)continue;const{afterStartMatchPoint:c,beforeEndMatchPoint:d,beforeStartMatchPoint:f}=u;if(s&&_1e(e,{at:{anchor:d,focus:o.anchor}}),"function"==typeof i)i(e,u);else{const t=Array.isArray(i)?i[1]:i;if(e.insertText(t),f){const t=Array.isArray(i)?i[0]:i;_1e(e,{at:{anchor:f,focus:c}}),i2e(e,t,{at:f})}}return!0}return!1},Lst=P7e({key:"autoformat",withOverrides:(e,{options:{rules:t}})=>{const{insertText:n}=e;return e.insertText=r=>{if(!e2e(e.selection))return n(r);for(const o of t){var i;const{mode:t="text",insertTrigger:a,query:s}=o;if(s&&!s(e,{...o,text:r}))continue;const l={block:Ist,mark:Wst,text:Nst};if(null!==(i=l[t])&&void 0!==i&&i.call(l,e,{...o,text:r}))return a&&n(r)}n(r)},e},handlers:{onKeyDown:(e,{options:{rules:t,enableUndoOnDelete:n}})=>r=>{if(r.defaultPrevented)return!1;if(!Ast("backspace",{byKey:!0},r))return!1;if(!t)return!1;if(!n)return!1;const{selection:i}=e;if(!i||!RJe.isCollapsed(i))return;const[o,a]=RJe.edges(i),s=Q1e(e,a,{unit:"character",distance:1});if(!o)return!1;if(!s)return!1;const l={anchor:s,focus:o};if(!l)return!1;const u=I1e(e,l);if(!u)return!1;const c=[...t].filter((e=>{const t=e;return!!t&&"text"===t.mode&&t.format===u}));if(!c||0===c.length)return!1;r.preventDefault(),((e,t)=>{UJe.deleteBackward(e,{unit:"character"})})(e);const d=c[0];if(d&&"string"==typeof d.match)i2e(e,d.match);else{const t=d.match;t&&t.length>0&&i2e(e,t[0])}return!0}},options:{rules:[]}}),Fst=[{mode:"text",match:"!>",format:"≯"},{mode:"text",match:"!<",format:"≮"},{mode:"text",match:">=",format:"≥"},{mode:"text",match:"<=",format:"≤"},{mode:"text",match:"!>=",format:"≱"},{mode:"text",match:"!<=",format:"≰"},{mode:"text",match:"!=",format:"≠"},{mode:"text",match:"==",format:"≡"},{mode:"text",match:["!==","≠="],format:"≢"},{mode:"text",match:"~=",format:"≈"},{mode:"text",match:"!~=",format:"≉"},{mode:"text",match:"+-",format:"±"},{mode:"text",match:"%%",format:"‰"},{mode:"text",match:["%%%","‰%"],format:"‱"},{mode:"text",match:"//",format:"÷"},{mode:"text",match:"1/2",format:"½"},{mode:"text",match:"1/3",format:"⅓"},{mode:"text",match:"1/4",format:"¼"},{mode:"text",match:"1/5",format:"⅕"},{mode:"text",match:"1/6",format:"⅙"},{mode:"text",match:"1/7",format:"⅐"},{mode:"text",match:"1/8",format:"⅛"},{mode:"text",match:"1/9",format:"⅑"},{mode:"text",match:"1/10",format:"⅒"},{mode:"text",match:"2/3",format:"⅔"},{mode:"text",match:"2/5",format:"⅖"},{mode:"text",match:"3/4",format:"¾"},{mode:"text",match:"3/5",format:"⅗"},{mode:"text",match:"3/8",format:"⅜"},{mode:"text",match:"4/5",format:"⅘"},{mode:"text",match:"5/6",format:"⅚"},{mode:"text",match:"5/8",format:"⅝"},{mode:"text",match:"7/8",format:"⅞"},{mode:"text",match:"^o",format:"°"},{mode:"text",match:"^+",format:"⁺"},{mode:"text",match:"^-",format:"⁻"},{mode:"text",match:"~+",format:"₊"},{mode:"text",match:"~-",format:"₋"},{mode:"text",match:"^0",format:"⁰"},{mode:"text",match:"^1",format:"¹"},{mode:"text",match:"^2",format:"²"},{mode:"text",match:"^3",format:"³"},{mode:"text",match:"^4",format:"⁴"},{mode:"text",match:"^5",format:"⁵"},{mode:"text",match:"^6",format:"⁶"},{mode:"text",match:"^7",format:"⁷"},{mode:"text",match:"^8",format:"⁸"},{mode:"text",match:"^9",format:"⁹"},{mode:"text",match:"~0",format:"₀"},{mode:"text",match:"~1",format:"₁"},{mode:"text",match:"~2",format:"₂"},{mode:"text",match:"~3",format:"₃"},{mode:"text",match:"~4",format:"₄"},{mode:"text",match:"~5",format:"₅"},{mode:"text",match:"~6",format:"₆"},{mode:"text",match:"~7",format:"₇"},{mode:"text",match:"~8",format:"₈"},{mode:"text",match:"~9",format:"₉"}],Ust="blockquote",Xst=P7e({key:Ust,isElement:!0,deserializeHtml:{rules:[{validNodeName:"BLOCKQUOTE"}]},handlers:{onKeyDown:Est},options:{hotkey:"mod+shift+."}});var qst=__webpack_require__(74114);const Bst="code_block",Vst="code_line",Yst="code_syntax";Prism.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},Prism.languages.g4=Prism.languages.antlr4,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,Prism.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/},function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=l(o),c=RegExp(l(i+" "+o+" "+a+" "+s)),d=l(o+" "+a+" "+s),f=l(i+" "+o+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=r(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),v=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),O=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,O]),b=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,O]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),k=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,v,O]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,P=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,k]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,g]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,f,m]),inside:x}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,v]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,g,m,k,c.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(k),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var E=S+"|"+_,C=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[E]),T=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[C]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Q=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,T]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,Q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[T]),inside:e.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,A=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[C]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[A,R]),D=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[E]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,R]);function I(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:I(j,A)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:I(M,D)}],char:{pattern:RegExp(_),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,(function(){return t})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),o={pattern:RegExp(r),greedy:!0},a={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return e=e.replace(//g,(function(){return i})).replace(//g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},e.languages.dockerfile=e.languages.docker}(Prism),Prism.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/},Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var s=f(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l=0&&h(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(e,t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(i);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=a(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(Prism),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Prism),function(e){var t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:t,alias:"regex"}};e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}(Prism),Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,function(e){var t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(Prism),function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(Prism),Prism.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/},function(e){var t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),Prism.languages.scala=Prism.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Prism.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Prism.languages.scala}}},string:/[\s\S]+/}}}),delete Prism.languages.scala["class-name"],delete Prism.languages.scala.function,delete Prism.languages.scala.constant,function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,(function(t){return"(?:"+e[t].trim()+")"}));return e[t]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(Prism),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+i+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(o),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism);const Zst={rules:[{validNodeName:"PRE"},{validNodeName:"P",validStyle:{fontFamily:"Consolas"}}],getNode:e=>{var t,n,r;const i=(null===(t=[...e.childNodes].find((e=>"SELECT"===e.nodeName)))||void 0===t?void 0:t.textContent)||"",o=(null===(n=e.textContent)||void 0===n?void 0:n.replace(i,""))||"";let a=o.split("\n");null!==(r=a)&&void 0!==r&&r.length||(a=[o]);const s=a.map((e=>({type:Vst,children:[{text:e}]})));return{type:Bst,children:s}}};var Gst=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Hst=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Gst);Gst.isHotkey,Gst.isCodeHotkey,Gst.isKeyHotkey,Gst.parseHotkey,Gst.compareHotkey,Gst.toKeyCode,Gst.toKeyName;const Kst=e=>G7e(e,Vst),Jst=(e,{at:t=e.selection}={})=>{if(t&&p2e(e,{at:t,match:{type:Kst(e)}})){const n=O1e(e,t);if(!n)return;const[,r]=n,i=m1e(e,{at:t,match:{type:Kst(e)}})||O1e(e,r);if(!i)return;const[o,a]=i;if(d1e(o)&&o.type!==Kst(e))return;const s=O1e(e,a);if(!s)return;return{codeBlock:s,codeLine:i}}},elt=(e,{codeLine:t,indentDepth:n=2})=>{const[,r]=t,i=R1e(e,r),o=" ".repeat(n);if(!t2e(e.selection)){var a;const t=null===(a=e.selection)||void 0===a?void 0:a.anchor,n=F1e(e,i,t),r=I1e(e,n);if(/\S/.test(r))return void i2e(e,o,{at:e.selection})}i2e(e,o,{at:i})},tlt=(e,{codeLine:t})=>{const[,n]=t,r=R1e(e,n),i=r&&$1e(e,r),o=i&&F1e(e,r,i),a=I1e(e,o);return!!/\s/.test(a)&&(_1e(e,{at:o}),!0)},nlt=(e,{codeBlock:t,codeLine:n})=>{tlt(e,{codeBlock:t,codeLine:n})&&tlt(e,{codeBlock:t,codeLine:n})},rlt=(e,{defaultType:t=G7e(e,N7e),insertNodesOptions:n}={})=>{e.selection&&(!t2e(e.selection)&&sot(e)||pot(e,{type:t,children:[{text:""}]},{select:!0,nextBlock:!0,...n}),((e,t={})=>{e.selection&&!t2e(e.selection)&&(p2e(e,{match:t=>t.type===G7e(e,Bst)||t.type===Kst(e)})||(fot(e)||e.insertBreak(),m2e(e,{type:Kst(e),children:[{text:""}]},t),d2e(e,{type:G7e(e,Bst),children:[]},t)))})(e,n))},ilt=P7e({key:Bst,isElement:!0,deserializeHtml:Zst,handlers:{onKeyDown:e=>t=>{if(t.defaultPrevented)return;const n=Ntt.isTab(e,t),r=Ntt.isUntab(e,t);if(n||r){const i=v1e(e,{match:{type:Kst(e)}}),o=Array.from(i);if(o.length>0){t.preventDefault();const[,i]=o[0],a=O1e(e,i);if(!a)return;w1e(e,(()=>{for(const t of o)r&&nlt(e,{codeBlock:a,codeLine:t}),n&&elt(e,{codeBlock:a,codeLine:t})}))}}if(Hst("mod+a",t)){const n=Jst(e,{});if(!n)return;const{codeBlock:r}=n,[,i]=r;E1e(e,i),t.preventDefault(),t.stopPropagation()}}},withOverrides:e=>{const{insertBreak:t}=e;return e.insertBreak=()=>{(()=>{if(!e.selection)return;const n=Jst(e,{});if(!n)return;const{codeBlock:r,codeLine:i}=n,o=((e,{codeLine:t})=>{const[,n]=t;return I1e(e,n).search(/\S|$/)})(e,{codeBlock:r,codeLine:i});return t(),elt(e,{codeBlock:r,codeLine:i,indentDepth:o}),!0})()||t()},e.insertFragment=(e=>{const{insertFragment:t}=e,n=G7e(e,Bst),r=G7e(e,Vst);return i=>{const o=h2e(e,{match:{type:r}});return t(o?i.flatMap((e=>{const t=e;return t.type===n?function(e){return e.children}(t):function(e){return{type:r,children:[{text:G1e(e)}]}}(t)})):i)}})(e),e.normalizeNode=(e=>{const t=G7e(e,Bst),n=Kst(e),{normalizeNode:r}=e;return([i,o])=>{if(r([i,o]),d1e(i)&&i.type===t){const t=knt([i,o]).find((([e])=>e.type!==n));t&&a2e(e,{type:n},{at:t[1]})}}})(e),e},options:{hotkey:["mod+opt+8","mod+shift+8"],syntax:!0,syntaxPopularFirst:!1},then:e=>({inject:{pluginsByKey:{[_et]:{editor:{insertData:{query:()=>{const t=Z7e(e,Vst);return!p2e(e,{match:{type:t.type}})}}}}}}}),plugins:[{key:Vst,isElement:!0},{key:Yst,isLeaf:!0,decorate:e=>{const t=Z7e(e,Bst),n=Z7e(e,Vst);return([r,i])=>{var o;const a=[];if(!t.options.syntax||r.type!==n.type)return a;const s=O1e(e,i);if(!s)return a;let l=null!==(o=s[0].lang)&&void 0!==o?o:"";"plain"===l&&(l="");const u=qst.languages[l];if(!u)return a;const c=G1e(r),d=(0,qst.tokenize)(c,u);let f=0;for(const e of d)e instanceof qst.Token&&a.push({anchor:{path:i,offset:f},focus:{path:i,offset:f+e.length},tokenType:e.type,[Yst]:!0}),f+=e.length;return a}}}]}),olt="h1",alt="h2",slt="h3",llt="h4",ult="h5",clt="h6",dlt=[olt,alt,slt,llt,ult,clt],flt=P7e({key:"heading",options:{levels:6},then:(e,{options:{levels:t}={}})=>{const n=[];for(let e=1;e<=t;e++){const t={key:dlt[e-1],isElement:!0,deserializeHtml:{rules:[{validNodeName:`H${e}`}]},handlers:{onKeyDown:Est},options:{}};e<4&&(t.options.hotkey=[`mod+opt+${e}`,`mod+shift+${e}`]),n.push(t)}return{plugins:n}}}),hlt="p",plt=P7e({key:hlt,isElement:!0,handlers:{onKeyDown:Est},options:{hotkey:["mod+opt+0","mod+shift+0"]},deserializeHtml:{rules:[{validNodeName:"P"}],query:e=>"Consolas"!==e.style.fontFamily}}),mlt=(P7e({key:"basicElements",plugins:[Xst(),ilt(),flt(),plt()]}),"bold"),glt=P7e({key:mlt,isLeaf:!0,deserializeHtml:{rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}],query:e=>!Iet(e,(e=>"normal"===e.style.fontWeight))},handlers:{onKeyDown:Cst},options:{hotkey:"mod+b"}}),vlt="code",Olt=P7e({key:vlt,isLeaf:!0,deserializeHtml:{rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}],query(e){const t=KKe(e,"P");return"Consolas"!==(null==t?void 0:t.style.fontFamily)&&!KKe(e,"PRE")}},handlers:{onKeyDown:Cst},options:{hotkey:"mod+e"}}),ylt="italic",blt=P7e({key:ylt,isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+i"},deserializeHtml:{rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}],query:e=>!Iet(e,(e=>"normal"===e.style.fontStyle))}}),wlt="strikethrough",klt=P7e({key:wlt,isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+shift+x"},deserializeHtml:{rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}],query:e=>!Iet(e,(e=>"none"===e.style.textDecoration))}}),xlt="subscript",_lt=P7e({key:xlt,isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+,",clear:"superscript"},deserializeHtml:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]}}),Slt="superscript",Plt=P7e({key:Slt,isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+.",clear:"subscript"},deserializeHtml:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]}}),Elt="underline",Clt=P7e({key:Elt,isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+u"},deserializeHtml:{rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}],query:e=>!Iet(e,(e=>"none"===e.style.textDecoration))}});P7e({key:"basicMarks",plugins:[glt(),Olt(),blt(),klt(),_lt(),Plt(),Clt()]});var Tlt=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),$lt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Tlt);Tlt.isHotkey,Tlt.isCodeHotkey,Tlt.isKeyHotkey,Tlt.parseHotkey,Tlt.compareHotkey,Tlt.toKeyCode,Tlt.toKeyName;const Qlt=P7e({key:"exitBreak",handlers:{onKeyDown:(e,{options:{rules:t=[]}})=>n=>{if(n.defaultPrevented)return;const r=wnt(e);r&&t.forEach((({hotkey:t,...i})=>{$lt(t,n)&&f2e(r,i.query)&&((e,{level:t=0,relative:n=!1,defaultType:r=G7e(e,N7e),query:i={},before:o})=>{if(!e.selection)return;const{queryEdge:a,isEdge:s,isStart:l}=((e,{start:t,end:n})=>{let r=!1,i=!1,o=!1;return(t||n)&&(r=!0,t&&fot(e)&&(i=!0,o=!0),n&&dot(e)&&(i=!0),i&&t2e(e.selection)&&e.deleteFragment()),{queryEdge:r,isEdge:i,isStart:o}})(e,i);if(l&&(o=!0),a&&!s)return;const u=N1e(e,e.selection),c=n?u.slice(0,-t):u.slice(0,t+1),d=o?c:wJe.next(c);return pot(e,{type:r,children:[{text:""}]},{at:d,select:!l}),!0})(e,i)&&(n.preventDefault(),n.stopPropagation())}))}},options:{rules:[{hotkey:"mod+enter"},{hotkey:"mod+shift+enter",before:!0}]}}),Rlt=(P7e({key:"singleLine",handlers:{onKeyDown:()=>e=>{e.defaultPrevented||Ntt.isSplitBlock(e)&&e.preventDefault()}},withOverrides:e=>{const{normalizeNode:t}=e;return e.insertBreak=()=>null,e.normalizeNode=n=>{0===n[1].length&&e.children.length>1&&P1e(e,{at:[],mode:"highest",match:(e,t)=>1===t.length&&t[0]>0}),t(n)},e}}),P7e({key:"softBreak",handlers:{onKeyDown:(e,{options:{rules:t=[]}})=>n=>{if(n.defaultPrevented)return;const r=wnt(e);r&&t.forEach((({hotkey:t,query:i})=>{$lt(t,n)&&f2e(r,i)&&(n.preventDefault(),n.stopPropagation(),e.insertText("\n"))}))}},options:{rules:[{hotkey:"shift+enter"}]}})),Alt=jHe("combobox")({activeId:null,byId:{},highlightedIndex:0,items:[],filteredItems:[],targetRange:null,text:null}).extendActions(((e,t)=>({setComboboxById:n=>{t.byId()[n.id]||e.state((e=>{e.byId[n.id]=(e=>jHe(`combobox-${e.id}`)(e))(n)}))},open:t=>{e.mergeState(t)},reset:()=>{e.state((e=>{e.activeId=null,e.highlightedIndex=0,e.filteredItems=[],e.items=[],e.text=null,e.targetRange=null}))}}))).extendSelectors((e=>({isOpen:()=>!!e.activeId}))),jlt=(Alt.use,Alt.get),Dlt=Alt.set,Mlt=(e,{at:t,trigger:n,searchPattern:r="\\S+"})=>{const i=(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"))(n),o=new RegExp(`(?:^|\\s)${i}`);let a,s=t;for(;a=s,s;){s=Q1e(e,s);const t=s&&F1e(e,s,a);if(!I1e(e,t).match(r)){s=a;break}}const l=s&&F1e(e,s,t),u=I1e(e,l);if(l&&u.match(o))return{range:l,textAfterTrigger:u.slice(n.length)}};var Ilt=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),zlt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ilt);Ilt.isHotkey,Ilt.isCodeHotkey,Ilt.isKeyHotkey,Ilt.parseHotkey,Ilt.compareHotkey,Ilt.toKeyCode,Ilt.toKeyName;const Wlt=(e,t,n,r,i)=>{const o=r(t);if(!o||!o.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e=0;e--)if(!r(e).hasAttribute("disabled"))return e;return i?e>0?Wlt(1,0,n,r,!1):Wlt(-1,n-1,n,r,!1):-1},Nlt=(e,t,n,r,i=!0)=>{if(0===n)return-1;const o=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);let a=t+e;a<0?a=i?o:0:a>o&&(a=i?0:o);const s=Wlt(e,a,n,r,i);return-1===s?t>=n?-1:t:s},Llt=(P7e({key:"combobox",handlers:{onChange:e=>()=>{const t=jlt.byId(),n=jlt.activeId();let r=!0;for(const l of Object.values(t)){var i,o,a,s;const t=l.get.id();if(null===(i=(o=l.get).controlled)||void 0===i?void 0:i.call(o)){if(n===t){r=!1;break}continue}const{selection:u}=e;if(!u||!e2e(u))continue;const c=l.get.trigger(),d=null===(a=(s=l.get).searchPattern)||void 0===a?void 0:a.call(s),f=Mlt(e,{at:RJe.start(u),trigger:c,searchPattern:d});if(!f)continue;const{range:h,textAfterTrigger:p}=f;Dlt.open({activeId:t,text:p,targetRange:h}),r=!1;break}r&&jlt.isOpen()&&Dlt.reset()},onKeyDown:e=>t=>{const{highlightedIndex:n,filteredItems:r,activeId:i}=jlt.state();if(!jlt.isOpen())return;const o=(e=>e?jlt.byId()[e]:null)(i);if(!o)return;const a=o.get.onSelectItem();if(zlt("down",t)){t.preventDefault();const e=Nlt(1,n,r.length,(()=>{}),!0);Dlt.highlightedIndex(e)}else if(zlt("up",t)){t.preventDefault();const e=Nlt(-1,n,r.length,(()=>{}),!0);Dlt.highlightedIndex(e)}else{if(zlt("escape",t))return t.preventDefault(),void Dlt.reset();(Ntt.isTab(e,t)||zlt("enter",t))&&(t.preventDefault(),t.stopPropagation(),r[n]&&(null==a||a(e,r[n])))}}}}),"comment"),Flt=Symbol("comments"),{commentsStore:Ult,useCommentsStore:Xlt}=I5e({myUserId:null,users:{},comments:{},activeCommentId:null,addingCommentId:null,newValue:[{type:"p",children:[{text:""}]}],focusTextarea:!1,onCommentAdd:null,onCommentUpdate:null,onCommentDelete:null},{name:"comments",scope:Flt}),qlt=()=>Xlt().use,Blt=()=>Xlt().get,Vlt=()=>Xlt().set,Ylt=e=>{const t=Blt().comments();return e?t[e]:null},Zlt=()=>{const e=Blt().newValue();return G1e(null==e?void 0:e[0])},Glt=e=>{const t=Ylt(e),[n,r]=qlt().comments();return i=>{e&&r({...n,[e]:{...t,...i}})}},Hlt=Symbol("comment"),Klt=Symbol("activeComment"),{commentStore:Jlt,useCommentStore:eut}=I5e({id:"",isMenuOpen:!1,editingValue:null},{name:"comment",scope:Hlt}),tut=()=>eut().get,nut=()=>eut().set,rut=e=>{const t=tut().id(e);return Ylt(t)},iut=e=>{var t;const n=rut(e);return n?G1e(null===(t=n.value)||void 0===t?void 0:t[0]):null},out=e=>`${Llt}_${e}`,aut=e=>e.startsWith(`${Llt}_`),sut=(e,{id:t})=>{u2e(e,out(t),{at:[],match:e=>((e,t)=>!!e[out(t)])(e,t)})};var lut=/\s/,uut=/^\s+/,cut=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&lut.test(e.charAt(t)););return t}(e)+1).replace(uut,""):e},dut=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},fut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},hut="object"==typeof fut&&fut&&fut.Object===Object&&fut,put="object"==typeof self&&self&&self.Object===Object&&self,mut=(hut||put||Function("return this")()).Symbol,gut=Object.prototype,vut=gut.hasOwnProperty,Out=gut.toString,yut=mut?mut.toStringTag:void 0,but=Object.prototype.toString,wut=mut?mut.toStringTag:void 0,kut=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":wut&&wut in Object(e)?function(e){var t=vut.call(e,yut),n=e[yut];try{e[yut]=void 0;var r=!0}catch(e){}var i=Out.call(e);return r&&(t?e[yut]=n:delete e[yut]),i}(e):function(e){return but.call(e)}(e)},xut=/^[-+]0x[0-9a-f]+$/i,_ut=/^0b[01]+$/i,Sut=/^0o[0-7]+$/i,Put=parseInt,Eut=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==kut(e)}(e))return NaN;if(dut(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=dut(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=cut(e);var n=_ut.test(e);return n||Sut.test(e)?Put(e.slice(2),n?2:8):xut.test(e)?NaN:+e},Cut=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=Eut(n))==n?n:0),void 0!==t&&(t=(t=Eut(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(Eut(e),t,n)};const Tut=(P7e({key:Llt,isLeaf:!0,withOverrides:(e,t)=>{const{normalizeNode:n,insertBreak:r}=e;return e.insertBreak=()=>{(e=>{const t=((e,t)=>h2e(e,{match:e=>e[Llt]}))(e);if(!t)return;const n=(e=>{const t=[];return Object.keys(e).forEach((e=>{aut(e)&&t.push(e)})),t})(t[0]);w1e(e,(()=>{n.forEach((t=>{e.removeMark(t)})),e.removeMark(Llt)}))})(e),r()},e.normalizeNode=t=>{const[r,i]=t;r[Llt]&&(e=>{let t=0;return Object.keys(e).forEach((e=>{aut(e)&&t++})),t})(r)<1?u2e(e,Llt,{at:i}):n(t)},e},useHooks:(e,{options:t})=>{const{hotkey:n}=t,r=(()=>{const e=Vtt(),t=Vlt().activeCommentId();return()=>{const{selection:n}=e;if(!t2e(n))return;const r=VGe();a2e(e,{[Llt]:!0,[out(r)]:!0},{match:k1e,split:!0});try{(e=>{p4e.deselect(e)})(e)}catch{}setTimeout((()=>{t(r)}),0)}})(),i=Vlt().focusTextarea();cHe(n,(t=>{e.selection&&(t.preventDefault(),t2e(e.selection)&&(r(),i(!0)))}),{enableOnContentEditable:!0})},options:{hotkey:["meta+shift+m","ctrl+shift+m"]}}),Ost("button")({stateHook:()=>{const e=Blt().activeCommentId(),t=Blt().onCommentDelete(),n=tut().id(),r=Vlt().activeCommentId(),i=(()=>{const[e,t]=qlt().comments();return n=>{n&&(delete e[n],t({...e}))}})();return{activeCommentId:e,onCommentDelete:t,id:n,setActiveCommentId:r,removeComment:i,editor:Vtt()}},propsHook:({activeCommentId:e,editor:t,id:n,onCommentDelete:r,removeComment:i,setActiveCommentId:o})=>({props:{onClick:()=>{e===n?(sut(t,{id:n}),o(null)):i(n),null==r||r(n)}}})}),Ost("button")({propsHook:()=>{const e=nut().editingValue();return{props:{onClick:()=>{e(null)}}}}}),Ost("button")({stateHook:()=>{const e=Blt().onCommentUpdate(),t=tut().editingValue(),n=nut().editingValue(),r=tut().id(),i=Glt(r);return{value:iut(),editingValue:t,setEditingValue:n,id:r,onCommentUpdate:e,updateComment:i}},propsHook:({editingValue:e,setEditingValue:t,id:n,onCommentUpdate:r,updateComment:i,value:o})=>({props:{onClick:(0,c.useCallback)((()=>{e&&(i({value:e}),t(null),null==r||r({id:n,value:e}))}),[e,n,r,t,i]),disabled:0===(null==o?void 0:o.trim().length)}})}),Ost("button")({stateHook:()=>({setIsMenuOpen:nut().isMenuOpen(),comment:rut(),editingValue:nut().editingValue()}),propsHook:({setIsMenuOpen:e,comment:t,editingValue:n})=>({props:{onClick:()=>{e(!1),n(t.value)}}})}),Ost("textarea")({stateHook:()=>{const e=nut().editingValue(),t=(()=>{const e=tut().editingValue();return e?G1e(null==e?void 0:e[0]):null})(),n=(0,c.useRef)(null);return(0,c.useEffect)((()=>{setTimeout((()=>{const e=n.current;e&&e.focus()}),0)}),[n]),{textareaRef:n,setEditingValue:e,value:t}},propsHook:({setEditingValue:e,textareaRef:t,value:n})=>({props:{placeholder:"Add a comment...",rows:1,ref:t,value:null!=n?n:void 0,onChange:t=>{e([{type:"p",children:[{text:t.target.value}]}])}}})}),Ost("button")({stateHook:()=>{const e=Blt().onCommentAdd(),t=Blt().activeCommentId(),n=rut(Klt),r=Blt().newValue(),i=Zlt(),o=(()=>{const e=Vlt().newValue();return()=>{e([{type:"p",children:[{text:""}]}])}})(),a=(()=>{const[e,t]=qlt().comments(),n=Blt().myUserId();return r=>{var i;const o=null!==(i=r.id)&&void 0!==i?i:VGe(),a={id:o,userId:null!=n?n:void 0,createdAt:Date.now(),...r};return a.userId&&t({...e,[o]:a}),a}})(),s=!!n;return{editingCommentText:i,resetNewCommentValue:o,addComment:a,isReplyComment:s,submitButtonText:s?"Reply":"Comment",onCommentAdd:e,activeCommentId:t,comment:n,newValue:r}},propsHook:({editingCommentText:e,resetNewCommentValue:t,addComment:n,isReplyComment:r,submitButtonText:i,onCommentAdd:o,activeCommentId:a,comment:s,newValue:l})=>({props:{type:"submit",disabled:!(null!=e&&e.trim().length),children:i,onClick:()=>{const e=n(r?{id:VGe(),parentId:s.id,value:l}:{id:a,value:l});null==o||o(e),t()}}})}),Ost("textarea")({stateHook:()=>{const e=Vlt().newValue(),t=Ylt(Blt().activeCommentId()),n=Zlt(),r=Blt().focusTextarea(),i=Vlt().focusTextarea(),o=(0,c.useRef)(null);return(0,c.useEffect)((()=>{var e;r&&(null===(e=o.current)||void 0===e||e.focus(),i(!1))}),[r,i,o]),{textareaRef:o,placeholder:t?"Reply...":"Add a comment...",value:n,setNewValue:e}},propsHook:({textareaRef:e,placeholder:t,value:n,setNewValue:r})=>({props:{placeholder:t,rows:1,ref:e,value:null!=n?n:void 0,onChange:e=>{r([{type:"p",children:[{text:e.target.value}]}])}}})}),Ost("button")({propsHook:()=>{const e=Blt().onCommentUpdate(),t=Blt().activeCommentId(),n=Vlt().activeCommentId(),r=Glt(t),i=rut();return{props:{onClick:()=>{const o=!i.isResolved,a={isResolved:o};r(a),null==e||e({id:t,...a}),o&&n(null)}}}}}),Ost("div")({propsHook:()=>{var e;const t=(e=>{const t=tut().id(e),n=Blt().users(),r=Ylt(t);return r?n[r.userId]:null})();return{props:{children:null!==(e=null==t?void 0:t.name)&&void 0!==e?e:"Anonymous"}}}}),Ost("div")({stateHook:()=>{var e;const t=Vtt();let n=Blt().activeCommentId();const[r,i]=(0,c.useState)({left:0,top:0});0===r.left&&0===r.top&&(n=null);const[o]=null!==(e=(()=>{const e=Vtt(),t=Blt().activeCommentId();return t?((e,t)=>h2e(e,{at:[],match:e=>e[out(t)]}))(e,t):null})())&&void 0!==e?e:[];return(0,c.useEffect)((()=>{if(!o)return;if(!j5e(t,o))return;const e=((e,t)=>{const n=j5e(e,t);if(!n)return;const r=(e=>{let t=0,n=0,r=e;do{t+=(r.offsetLeft||0)-r.scrollLeft,n+=(r.offsetTop||0)-r.scrollTop,r=r.offsetParent}while(r);return{left:t,top:n}})(n),i=j5e(e,e);if(!i)return;const{x:o,width:a}=i.getBoundingClientRect();return{left:Cut(o+a+16,window.innerWidth-434),top:r.top}})(t,o);e&&i(e)}),[t,o]),{activeCommentId:n,position:r}},propsHook:({activeCommentId:e,position:t})=>({hidden:!e,props:{style:{...t}}})}),P7e({key:"search_highlight",isLeaf:!0,decorate:(e,{key:t,type:n})=>([r,i])=>{const o=[],{search:a}=e.pluginsByKey[t].options;if(!a||!k1e(r))return o;const{text:s}=r,l=s.toLowerCase().split(a.toLowerCase());let u=0;return l.forEach(((e,t)=>{0!==t&&o.push({anchor:{path:i,offset:u-a.length},focus:{path:i,offset:u},search:a,[n]:!0}),u=u+e.length+a.length})),o}}),()=>{const e=window.getSelection();return!e||e.rangeCount<1?{width:0,height:0,x:0,y:0,top:-9999,left:-9999,right:9999,bottom:9999}:e.getRangeAt(0).getBoundingClientRect()}),$ut="backgroundColor",Qut=P7e({key:$ut,inject:{props:{nodeKey:$ut}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode:e=>({[t]:e.style.backgroundColor}),rules:[{validStyle:{backgroundColor:"*"}}]}})}),Rut="color",Aut=P7e({key:Rut,inject:{props:{nodeKey:Rut,defaultNodeValue:"black"}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode(e){if(e.style.color)return{[t]:e.style.color}},rules:[{validStyle:{color:"*"}}]}})}),jut="fontFamily",Dut=(P7e({key:jut,inject:{props:{nodeKey:jut}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode:e=>({[t]:e.style.fontFamily}),rules:[{validStyle:{fontFamily:"*"}}]}})}),"fontSize"),Mut=(P7e({key:Dut,inject:{props:{nodeKey:Dut}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode:e=>({[t]:e.style.fontSize}),rules:[{validStyle:{fontSize:"*"}}]}})}),"fontWeight");P7e({key:Mut,inject:{props:{nodeKey:Mut}},then:(e,{type:t})=>({deserializeHtml:{isLeaf:!0,getNode:e=>({[t]:e.style.fontWeight}),rules:[{validStyle:{fontWeight:"*"}}]}})});var Iut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},zut="object"==typeof Iut&&Iut&&Iut.Object===Object&&Iut,Wut="object"==typeof self&&self&&self.Object===Object&&self,Nut=(zut||Wut||Function("return this")()).Symbol,Lut=Object.prototype;Lut.hasOwnProperty,Lut.toString,Nut&&Nut.toStringTag,Object.prototype.toString,Nut&&Nut.toStringTag,Math.max,Math.min;const Fut="highlight",Uut=(P7e({key:Fut,isLeaf:!0,handlers:{onKeyDown:Cst},deserializeHtml:{rules:[{validNodeName:["MARK"]}]},options:{hotkey:"mod+shift+h"}}),"hr"),Xut=(P7e({key:Uut,isElement:!0,isVoid:!0,deserializeHtml:{rules:[{validNodeName:"HR"}]}}),(e,{offset:t=1,getNodesOptions:n,setNodesProps:r,unsetNodesProps:i=[]})=>{const{nodeKey:o}=((e,t)=>{var n,r;return null!==(n=null===(r=Z7e(e,t).inject)||void 0===r?void 0:r.props)&&void 0!==n?n:{}})(e,Vut),a=v1e(e,{block:!0,mode:"lowest",...n}),s=Array.from(a);w1e(e,(()=>{s.forEach((([n,a])=>{var s,l;const u=(null!==(s=n[o])&&void 0!==s?s:0)+t,c=null!==(l=null==r?void 0:r({indent:u}))&&void 0!==l?l:{};u<=0?u2e(e,[o,...i],{at:a}):m2e(e,{[o]:u,...c},{at:a})}))}))}),qut=(e,t)=>{Xut(e,{offset:1,...t})},But=(e,t)=>{Xut(e,{offset:-1,...t})},Vut="indent",Yut=(P7e({key:Vut,withOverrides:(e,{inject:{props:{validTypes:t}={}},options:{indentMax:n}})=>{const{normalizeNode:r}=e;return e.normalizeNode=([i,o])=>{const a=i,{type:s}=a;if(s)if(t.includes(s)){if(n&&a.indent&&a.indent>n)return void m2e(e,{indent:n},{at:o})}else if(a.indent)return void u2e(e,"indent",{at:o});return r([i,o])},e},handlers:{onKeyDown:e=>t=>{t.defaultPrevented||(Ntt.isTab(e,t)&&(t.preventDefault(),qut(e)),Ntt.isUntab(e,t)&&(t.preventDefault(),But(e)))}},options:{offset:24,unit:"px"},then:(e,{options:{offset:t,unit:n}={}})=>({inject:{props:{nodeKey:Vut,styleKey:"marginLeft",validTypes:[G7e(e,N7e)],transformNodeValue:({nodeValue:e})=>e*t+n}}})}),"textIndent");function Zut(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t({inject:{props:{nodeKey:Yut,styleKey:"textIndent",validTypes:[G7e(e,N7e)],transformNodeValue:({nodeValue:e})=>e*t+n}}})});let Hut=function(e){return e.Armenian="armenian",e.Circle="circle",e.CjkIdeographic="cjk-ideographic",e.Decimal="decimal",e.DecimalLeadingZero="decimal-leading-zero",e.Disc="disc",e.Georgian="georgian",e.Hebrew="hebrew",e.Hiragana="hiragana",e.HiraganaIroha="hiragana-iroha",e.Katakana="katakana",e.KatakanaIroha="katakana-iroha",e.LowerAlpha="lower-alpha",e.LowerGreek="lower-greek",e.LowerLatin="lower-latin",e.LowerRoman="lower-roman",e.None="none",e.Square="square",e.UpperAlpha="upper-alpha",e.UpperLatin="upper-latin",e.UpperRoman="upper-roman",e.Initial="initial",e.Inherit="inherit",e}({});var Kut=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Jut=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Kut);Kut.isHotkey,Kut.isCodeHotkey,Kut.isKeyHotkey,Kut.parseHotkey,Kut.compareHotkey,Kut.toKeyCode,Kut.toKeyName;const ect=(e,[t,n],{getPreviousEntry:r,getNextEntry:i,query:o,eqIndent:a=!0,breakQuery:s,breakOnLowerIndent:l=!0,breakOnEqIndentNeqListStyleType:u=!0})=>{if(!r&&!i)return;const c=null!=i?i:r;let d=c([t,n]);for(;;){if(!d)return;const[e,n]=d,r=t[Vut],i=e[Vut];if(!oJe(i))return;if(s&&s(e))return;if(l&&iect(0,t,{getNextEntry:([,t])=>{const n=wJe.next(t),r=Y1e(e,n);if(r)return[r,n]},...n,getPreviousEntry:void 0}),nct=(e,t,n)=>ect(0,t,{getPreviousEntry:([,t])=>{const n=rot(t);if(!n)return;const r=Y1e(e,n);return r?[r,n]:void 0},...n,getNextEntry:void 0}),rct=(e,t,n)=>{var r,i;const[o,a]=t,[s]=null!=n?n:[null],l=null!==(r=null==s?void 0:s[act])&&void 0!==r?r:1,u=null!==(i=o[act])&&void 0!==i?i:1,c=o[sct],d=null==c?l+1:c;return u!==d&&(m2e(e,{[act]:d},{at:a}),!0)},ict=(e,t,n)=>w1e(e,(()=>{const[r]=t;if(!r[oct])return;let i=!1,o=nct(e,t,n);if(!o&&(i=((e,[t,n])=>{if(oJe(t[act]))return u2e(e,act,{at:n}),!0})(e,t),!i))return;let a=!0,s=t;for(;a&&(a=rct(e,s,o)||i,a&&(i=!0),o=[Y1e(e,s[1]),s[1]],s=tct(e,s,n),s););return i})),oct="listStyleType",act="listStart",sct="listRestart",lct=(P7e({key:oct,inject:{belowComponent:e=>{const{element:t}=e,n=t[oct],r=t[act];if(n){let e=Gut(`slate-${oct}-${n}`);const t={padding:0,margin:0,listStyleType:n};return[Hut.Disc,Hut.Circle,Hut.Square].includes(n)?(e=Gut(e,"slate-list-bullet"),function({children:n}){return c.createElement("ul",{style:t,className:e},c.createElement("li",null,n))}):(e=Gut(e,"slate-list-number"),function({children:n}){return c.createElement("ol",{style:t,className:e,start:r},c.createElement("li",null,n))})}}},withOverrides:(e,{options:t})=>{const{apply:n}=e,{getSiblingIndentListOptions:r}=t;return e.normalizeNode=((e,{getSiblingIndentListOptions:t}={})=>{const{normalizeNode:n}=e;return([r,i])=>{if(!w1e(e,(()=>!!((e,[t,n])=>{if(!oJe(t[Vut])&&(t[oct]||t[act]))return u2e(e,[oct,act],{at:n}),!0})(e,[r,i])||!!ict(e,[r,i],t)||void 0)))return n([r,i])}})(e,t),e.apply=t=>{const{path:i}=t;let o=null;if("set_node"===t.type&&(o=Y1e(e,i)),"insert_node"===t.type){const n=t.node[oct];if(n&&["lower-roman","upper-roman"].includes(n)){const o=nct(e,[t.node,i],{eqIndent:!1,breakOnEqIndentNeqListStyleType:!1,...r});if(o){const e=o[0][oct];e===Hut.LowerAlpha&&n===Hut.LowerRoman?t.node[oct]=Hut.LowerAlpha:e===Hut.UpperAlpha&&n===Hut.UpperRoman&&(t.node[oct]=Hut.UpperAlpha)}}}let a=null;if("merge_node"===t.type&&t.properties[oct]){const t=Y1e(e,i);if(t){const n=tct(e,[t,i],r);n&&(a=s1e(e,n[1]))}}if(n(t),"merge_node"===t.type){const{properties:n}=t;if(n[oct]){const t=Y1e(e,i);if(!t)return;if(ict(e,[t,i],r),a){const t=a.unref();if(t){const n=Y1e(e,t);n&&ict(e,[n,t],r)}}}}if(o&&"set_node"===t.type){const n=t.properties[oct],a=t.newProperties[oct];if(n&&!a){if(!Y1e(e,i))return;const t=tct(e,[o,i],r);if(!t)return;ict(e,t,r)}if((n||a)&&n!==a){const t=Y1e(e,i);if(!t)return;let n=tct(e,[o,i],r);n&&ict(e,n,r),n=tct(e,[t,i],r),n&&ict(e,n,r)}if(t.properties[Vut]!==t.newProperties[Vut]){const t=Y1e(e,i);if(!t)return;let n=nct(e,[o,i],{eqIndent:!1,breakOnLowerIndent:!1,breakOnEqIndentNeqListStyleType:!1,...r});n&&ict(e,n,r),n=nct(e,[t,i],{eqIndent:!1,breakOnLowerIndent:!1,breakOnEqIndentNeqListStyleType:!1,...r}),n&&ict(e,n,r);let a=tct(e,[o,i],{eqIndent:!1,breakOnLowerIndent:!1,breakOnEqIndentNeqListStyleType:!1});a&&ict(e,a,r),a=tct(e,[t,i],{eqIndent:!1,breakOnLowerIndent:!1,breakOnEqIndentNeqListStyleType:!1}),a&&ict(e,a,r)}}},e},handlers:{onKeyDown:(e,t)=>t=>{if(t.defaultPrevented)return;if(!e.selection)return;const n=wnt(e);if(!n)return;const r=n[0];r[oct]&&Jut("Enter",t)&&sot(e)&&r.indent&&(((e,t={})=>{Xut(e,{offset:-1,unsetNodesProps:[oct],...t})})(e),t.stopPropagation(),t.preventDefault())}},options:{getListStyleType:e=>e.style.listStyleType},then:(e,{options:t})=>({inject:{pluginsByKey:{[_et]:{editor:{insertData:{transformData:e=>{const t=(new DOMParser).parseFromString(e,"text/html"),{body:n}=t;return Cet(n,(e=>{if("LI"===e.tagName){const{childNodes:t}=e,n=[];return t.forEach((e=>{Det(e)?n.push(...e.childNodes):n.push(e)})),e.replaceChildren(...n),!1}return!0})),Let(n.innerHTML)}}}}}},deserializeHtml:{isElement:!0,getNode:n=>{var r;return{type:G7e(e,N7e),listStyleType:null===(r=t.getListStyleType)||void 0===r?void 0:r.call(t,n),indent:Number(n.getAttribute("aria-level"))}},rules:[{validNodeName:"LI"}]}})}),P7e({key:"kbd",isLeaf:!0,handlers:{onKeyDown:Cst},deserializeHtml:{rules:[{validNodeName:["KBD"]}]}}),"lineHeight");P7e({key:lct,inject:{props:{nodeKey:lct,defaultNodeValue:1.5}},then:e=>({inject:{props:{validTypes:[G7e(e,N7e)]}},then:(t,n)=>Ltt(e,n,{deserializeHtml:{getNode:(e,t)=>{e.style.lineHeight&&(t[n.key]=e.style.lineHeight)}}})})}),P7e({key:"normalizeTypes",withOverrides:(e,{options:{rules:t,onError:n}})=>{const{normalizeNode:r}=e;return e.normalizeNode=([i,o])=>{if(0===o.length){const r=t.some((({strictType:t,type:r,path:i})=>{const o=Y1e(e,i);if(o){if(t&&d1e(o)&&o.type!==t)return m2e(e,{type:t},{at:i}),!0}else try{return pot(e,{type:null!=t?t:r,children:[{text:""}]},{at:i}),!0}catch(e){null==n||n(e)}return!1}));if(r)return}return r([i,o])},e},options:{rules:[]}});var uct=Array.isArray;const cct=(e,{options:{types:t}})=>{const n=function(){if(!arguments.length)return[];var e=arguments[0];return uct(e)?e:[e]}(t),{normalizeNode:r}=e;return e.normalizeNode=([t,i])=>{d1e(t)&&t.type&&n.includes(t.type)&&""===G1e(t)?P1e(e,{at:i}):r([t,i])},e},dct=(P7e({key:"removeEmptyNodes",withOverrides:cct}),(e,{url:t,text:n="",target:r,children:i})=>({type:G7e(e,kct),url:t,target:r,children:null!=i?i:[{text:n}]})),fct=(e,t)=>{const{allowedSchemes:n,defaultLinkAttributes:r,dangerouslySkipSanitization:i}=$tt(e,kct),o={...r},a=i?t.url:iJe(t.url,{allowedSchemes:n})||void 0;return void 0!==a&&(o.href=a),"target"in t&&(o.target=t.target),o},hct=jHe("floatingLink")({openEditorId:null,mouseDown:!1,updated:!1,url:"",text:"",newTab:!1,mode:"",isEditing:!1}).extendActions((e=>({reset:()=>{e.url(""),e.text(""),e.newTab(!1),e.mode(""),e.isEditing(!1)}}))).extendActions((e=>({show:(t,n)=>{e.mode(t),e.isEditing(!1),e.openEditorId(n)},hide:()=>{e.openEditorId(null),e.reset()}}))).extendSelectors((e=>({isOpen:t=>e.openEditorId===t}))),pct=hct.set,mct=hct.get,gct=()=>hct.use,vct=(Ost("input")({propsHook:({checked:e,ref:t,setChecked:n})=>({ref:t,props:{onChange:(0,c.useCallback)((e=>{n(e.target.checked),pct.newTab(e.target.checked)}),[n]),checked:e,type:"checkbox"}}),stateHook:()=>{const e=gct().updated(),t=(0,c.useRef)(null),[n,r]=(0,c.useState)(mct.newTab());return(0,c.useEffect)((()=>{t.current&&e&&setTimeout((()=>{var e;null===(e=t.current)||void 0===e||e.focus()}),0)}),[e]),{ref:t,checked:n,setChecked:r}}}),Ost("input")({propsHook:e=>{const t=(0,c.useCallback)((e=>{pct.url(e.target.value)}),[]);return{ref:e.ref,props:{onChange:t,defaultValue:mct.url()}}},stateHook:()=>{const e=gct().updated(),t=(0,c.useRef)(null);return(0,c.useEffect)((()=>{t.current&&e&&setTimeout((()=>{var e;null===(e=t.current)||void 0===e||e.focus()}),0)}),[e]),{ref:t}}}),Ost("a")({stateHook:()=>{const e=Vtt(),t=Ytt(),n=(0,c.useMemo)((()=>h2e(e,{match:{type:G7e(e,kct)}})),[e,t]);if(!n)return{};const[r]=n;return{element:r}},propsHook:({element:e})=>{const t=Vtt();return e?{props:{...fct(t,e),target:"_blank","aria-label":"Open link in a new tab",onMouseOver:e=>{e.stopPropagation()}}}:{props:{}}}}),(e,t,n)=>{r2e(e,[dct(e,t)],n)}),Oct=(e,t)=>w1e(e,(()=>{if(null!=t&&t.split){var n,r,i,o,a,s;if(m1e(e,{at:null===(n=e.selection)||void 0===n?void 0:n.anchor,match:{type:G7e(e,kct)}}))return l2e(e,{at:null===(i=e.selection)||void 0===i?void 0:i.anchor,match:t=>d1e(t)&&t.type===G7e(e,kct)}),Oct(e,{at:null===(o=e.selection)||void 0===o?void 0:o.anchor}),!0;if(m1e(e,{at:null===(r=e.selection)||void 0===r?void 0:r.focus,match:{type:G7e(e,kct)}}))return l2e(e,{at:null===(a=e.selection)||void 0===a?void 0:a.focus,match:t=>d1e(t)&&t.type===G7e(e,kct)}),Oct(e,{at:null===(s=e.selection)||void 0===s?void 0:s.focus}),!0}c2e(e,{match:{type:G7e(e,kct)},...t})})),yct=(e,{text:t})=>{const n=m1e(e,{match:{type:G7e(e,kct)}});if(n){const[r,i]=n;if(null!=t&&t.length&&t!==I1e(e,i)){const n=r.children[0];vot(e,{at:i,nodes:{...n,text:t},insertOptions:{select:!0}})}}},bct=(e,{url:t,text:n,target:r,insertTextInLink:i,insertNodesOptions:o,skipValidation:a=!1})=>{var s,l,u;const c=e.selection;if(!c)return;const d=m1e(e,{at:c,match:{type:G7e(e,kct)}});if(i&&d)return e.insertText(t),!0;if(!a&&!wct(e,t))return;var f,h;if(oJe(n)&&0===n.length&&(n=t),d)return t===(null===(f=d[0])||void 0===f?void 0:f.url)&&r===(null===(h=d[0])||void 0===h?void 0:h.target)||a2e(e,{url:t,target:r},{at:d[1]}),yct(e,{url:t,text:n,target:r}),!0;const p=h2e(e,{at:c,match:{type:G7e(e,kct)}}),[m,g]=null!=p?p:[];let v=!1;if(g&&null!==(s=n)&&void 0!==s&&s.length&&n!==I1e(e,g)&&(v=!0),t2e(c))return Oct(e,d?{at:d[1]}:{split:!0}),((e,{url:t,target:n,...r})=>{d2e(e,{type:G7e(e,kct),url:t,target:n,children:[]},{split:!0,...r})})(e,{url:t,target:r}),yct(e,{url:t,target:r,text:n}),!0;v&&P1e(e,{at:g});const O=Z1e(null!=m?m:{}),y=null===(l=e.selection)||void 0===l?void 0:l.focus.path;if(!y)return;const b=((e,t)=>zJe.leaf(e,t))(e,y);return null!==(u=n)&&void 0!==u&&u.length||(n=t),vct(e,{...O,url:t,target:r,children:[{...b,text:n}]},o),!0},wct=(e,t)=>{const{allowedSchemes:n,isUrl:r,dangerouslySkipSanitization:i}=$tt(e,kct);return!(r&&!r(t)||!i&&!iJe(t,{allowedSchemes:n,permitInvalid:!0}))},kct="a",xct=P7e({key:kct,isElement:!0,isInline:!0,withOverrides:(e,{type:t,options:{isUrl:n,getUrlHref:r,rangeBeforeOptions:i,keepSelectedTextOnPaste:o}})=>{const{insertData:a,insertText:s,apply:l,normalizeNode:u,insertBreak:c}=e,d=()=>{w1e(e,(()=>{var t;const o=e.selection;let a=iot(e,o,i);if(a||(a=oot(e)),!a)return;if(p2e(e,{at:a,match:{type:G7e(e,kct)}}))return;let s=I1e(e,a);s=null!==(t=null==r?void 0:r(s))&&void 0!==t?t:s,n(s)&&(E1e(e,a),bct(e,{url:s}),n2e(e,{edge:"end"}))}))};return e.insertBreak=()=>{if(!e2e(e.selection))return c();d(),c()},e.insertText=t=>{" "===t&&e2e(e.selection)&&d(),s(t)},e.insertData=t=>{const n=t.getData("text/plain"),i=null==r?void 0:r(n);if(n){const t=i||n;if(bct(e,{text:o?void 0:t,url:t,insertTextInLink:!0}))return}a(t)},e.apply=t=>{if("set_selection"===t.type){const n=t.newProperties;if(n&&n.focus&&n.anchor&&e2e(n)){const r=m1e(e,{at:n,match:{type:G7e(e,kct)}});if(r){const[,i]=r;let o;q1e(e,n.focus,i)&&(o=((e,t)=>{const n=y1e(e,{at:t});if(n)return C1e(e,n[1])})(e,i)),U1e(e,n.focus,i)&&(o=Pnt(e,i)),o&&(t.newProperties={anchor:o,focus:o})}}}l(t)},e.normalizeNode=([t,n])=>{if(t.type===G7e(e,kct)){const t=e.selection;if(t&&e2e(t)&&U1e(e,t.focus,n)){const t=Pnt(e,n);if(t)E1e(e,t);else{const t=wJe.next(n);r2e(e,{text:""},{at:t}),E1e(e,t)}}}u([t,n])},e=cct(e,Utt({options:{types:t}}))},options:{allowedSchemes:["http","https","mailto","tel"],dangerouslySkipSanitization:!1,defaultLinkAttributes:{},isUrl:rJe,rangeBeforeOptions:{matchString:" ",skipInvalid:!0,afterMatch:!0},triggerFloatingLinkHotkeys:"meta+k, ctrl+k",keepSelectedTextOnPaste:!0},then:(e,{type:t})=>({props:({element:t})=>({nodeProps:fct(e,t)}),deserializeHtml:{rules:[{validNodeName:"A"}],getNode:n=>{const r=n.getAttribute("href");if(r&&wct(e,r))return{type:t,url:r,target:n.getAttribute("target")||"_blank"}}}})});var _ct=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Sct=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(_ct);_ct.isHotkey,_ct.isCodeHotkey,_ct.isKeyHotkey,_ct.parseHotkey,_ct.compareHotkey,_ct.toKeyCode,_ct.toKeyName;const Pct={key:"",which:8},Ect=(e,{options:{rules:t}})=>n=>{if(n.defaultPrevented)return;let r;return e.selection?(e2e(e.selection)&&t.forEach((({types:t,defaultType:i,hotkey:o,predicate:a,onReset:s})=>{var l;o&&Sct(o,n)&&a(e)&&p2e(e,{match:{type:t}})&&(null===(l=n.preventDefault)||void 0===l||l.call(n),m2e(e,{type:i}),s&&s(e),r=!0)})),r):void 0},Cct=P7e({key:"resetNode",handlers:{onKeyDown:Ect},withOverrides:(e,{options:t})=>{const{deleteFragment:n,deleteBackward:r}=e;if(!t.disableEditorReset){const t=()=>{const{selection:t}=e;if(!t)return;const n=R1e(e,[]),r=C1e(e,[]);return VJe.equals(t.anchor,n)&&VJe.equals(t.focus,r)||VJe.equals(t.focus,n)&&VJe.equals(t.anchor,r)?(((e,t)=>{vot(e,{at:[],nodes:e.childrenFactory(),insertOptions:{select:!0}})})(e),!0):void 0};e.deleteFragment=e=>{t()||n(e)}}return t.disableFirstBlockReset||(e.deleteBackward=t=>{const{selection:n}=e;if(n&&e2e(n)){const t=R1e(e,[]);if(VJe.equals(n.anchor,t)){const t=Y1e(e,[0]),{children:n,...r}=e.blockFactory({},[0]);return void w1e(e,(()=>{u2e(e,Object.keys(Z1e(t)),{at:[0]}),a2e(e,r,{at:[0]})}))}}r(t)}),e},options:{rules:[]}});var Tct=Array.isArray,$ct=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),Qct=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}($ct);$ct.isHotkey,$ct.isCodeHotkey,$ct.isKeyHotkey,$ct.parseHotkey,$ct.compareHotkey,$ct.toKeyCode,$ct.toKeyName;const Rct=(e,t)=>{var n;const r=null===(n=O1e(e,t))||void 0===n?void 0:n[0];return(null==r?void 0:r.type)===G7e(e,ldt)},Act=e=>G7e(e,adt),jct=e=>G7e(e,sdt),Dct=e=>[jct(e),Act(e)],Mct=(e,{diffListPath:t,liPath:n})=>{const r=m1e(e,{at:n,match:{type:Dct(e)}});if(!r)return;const[i,o]=r;if(!t||!wJe.equals(o,t)){if(i.children.length<2){const n=m1e(e,{at:o,match:{type:G7e(e,ldt)}});if(n)return Mct(e,{liPath:n[1],diffListPath:t})||o}return n}},Ict=(e,{at:t=e.selection}={})=>{const n=G7e(e,ldt);let r;if(r=RJe.isRange(t)&&!e2e(t)?t.focus.path:RJe.isRange(t)?t.anchor.path:t,r&&Y1e(e,r)){const t=m1e(e,{at:r,match:{type:n}});if(t)return{list:O1e(e,t[1]),listItem:t}}},zct=(e,t=e.selection)=>{if(!t)return;const n=m1e(e,{at:t,match:{type:[G7e(e,adt),G7e(e,sdt)]}});if(n){var r;const[,t]=n;return null!==(r=zct(e,t))&&void 0!==r?r:n}},Wct="action_item",Nct=P7e({key:Wct,isElement:!0,withOverrides:(e,{options:t})=>{const{insertBreak:n}=e;return e.insertBreak=()=>{((e,t)=>{if(e.selection&&Lct(e)){const n=((e,{inheritCheckStateOnLineStartBreak:t=!1,inheritCheckStateOnLineEndBreak:n=!1})=>{const r=G7e(e,Wct);if(!e.selection)return!1;const i=m1e(e,{match:{type:r}});if(!i)return!1;const[o,a]=i;let s=!1;return w1e(e,(()=>{RJe.isCollapsed(e.selection)||_1e(e);const i=q1e(e,e.selection.focus,a),l=lot(e),u=wJe.next(a);if(i)return pot(e,{type:r,checked:!!t&&o.checked,children:[{text:""}]},{at:a}),void(s=!0);if(l){const t=z1e(e)||{};pot(e,{type:r,checked:!!n&&o.checked,children:[{text:"",...t}]},{at:u}),E1e(e,u)}else w1e(e,(()=>{l2e(e)}));s=!0})),s})(e,t);if(n)return!0}})(e,t)||n()},e},handlers:{onKeyDown:Est},options:{hotkey:["mod+opt+4","mod+shift+4"]}}),Lct=(e,{at:t=e.selection}={})=>{const n=G7e(e,Wct);let r;if(r=RJe.isRange(t)&&!e2e(t)?t.focus.path:RJe.isRange(t)?t.anchor.path:t,r&&Y1e(e,r)){const t=m1e(e,{at:r,match:{type:n}});if(t)return{list:O1e(e,t[1]),listItem:t}}},Fct=(e,t)=>t.children.some((t=>h1e(t,[],{type:Dct(e)}))),Uct=e=>{const{selection:t}=e;return!(!t||e2e(t))&&(!!tot(e)&&p2e(e,{match:{type:G7e(e,ldt)}}))},Xct=(e,t)=>d1e(t)&&Dct(e).includes(t.type),qct=(e,{fromList:t,fromListItem:n,fromStartIndex:r,to:i,toList:o,toListIndex:a=null,deleteFromList:s=!0})=>{let l,u;return w1e(e,(()=>{if(n){const t=bnt(e,{at:n[1],match:{type:Dct(e)}});if(!t)return;l=null==t?void 0:t[1]}else{if(!t)return;l=t[1]}let c=null;if(i&&(c=i),o)if(null===a){const e=xnt(o);c=wJe.next(e)}else c=o[1].concat([a]);c&&(u=mot(e,{at:l,to:c,fromStartIndex:r}),s&&_1e(e,{at:l}))})),u},Bct=(e,{at:t}={})=>{const n=()=>{if(m1e(e,{match:{type:Dct(e),at:t}}))return!0;if(!t&&e.selection){const t=V1e(e,e.selection.anchor.path,e.selection.focus.path);if(d1e(t[0])&&Dct(e).includes(t[0].type))return!0}return!1};w1e(e,(()=>{do{wnt(e,{at:t,match:{type:G7e(e,udt)}})&&m2e(e,{at:t,type:G7e(e,N7e)}),c2e(e,{at:t,match:{type:G7e(e,ldt)},split:!0}),c2e(e,{at:t,match:{type:[G7e(e,adt),G7e(e,sdt)]},split:!0})}while(n())}))},Vct=(e,{list:t,listItem:n})=>{let r=!1;return w1e(e,(()=>{r=(()=>{const[r,i]=t,[o,a]=n,s=m1e(e,{at:i,match:{type:G7e(e,ldt)}});if(!s){let s;try{s=wJe.next(i)}catch(e){return}const l=Fct(e,o),u=!_nt(t,a);if((l||u)&&pot(e,{type:r.type,children:[]},{at:s}),l){const t=Y1e(e,s);if(!t)return;qct(e,{fromListItem:n,toList:[t,s]})}if(u){const n=Y1e(e,s);if(!n)return;qct(e,{fromList:t,fromStartIndex:a.at(-1)+1,toList:[n,s],deleteFromList:!1})}return Bct(e,{at:a.concat(0)}),!0}const[,l]=s,u=a.concat([1]);if(!_nt(t,a)){Fct(e,o)||pot(e,{type:r.type,children:[]},{at:u});const t=Y1e(e,u);if(!t)return;qct(e,{fromListItem:s,toList:[t,u],fromStartIndex:a.at(-1)+1,deleteFromList:!1})}const c=wJe.next(l);return S1e(e,{at:a,to:c}),!0})()})),r},Yct=(e,{list:t,listItem:n})=>{const[,r]=t;return!Rct(e,r)&&(Vct(e,{list:t,listItem:n}),!0)},Zct=(e,{fromListItem:t,toListItem:n,start:r})=>{const[,i]=t,[,o]=n;let a=0;return w1e(e,(()=>{const t=bnt(e,{at:i,match:{type:Dct(e)}});if(!t)return;const[,n]=t,s=bnt(e,{at:o,match:{type:Dct(e)}});let l;if(s)if(r){const[,e]=s;l=e.concat([0])}else l=wJe.next(xnt(s));else{const t=O1e(e,i);if(!t)return;const[n]=t,r=n.type,a=o.concat([1]);pot(e,{type:r,children:[]},{at:a}),l=a.concat([0])}a=mot(e,{at:n,to:l}),_1e(e,{at:n})})),a},Gct=(e,{list:t,listItem:n,reverse:r=!0})=>{const[i,o]=n;if(t2e(e.selection)||!Fct(e,i))return!1;const a=rot(o);let s=!1;return w1e(e,(()=>{if(a){const t=W1e(e,a);if(!t)return;let i=wJe.next(o);pot(e,{type:G7e(e,ldt),children:[{type:G7e(e,udt),children:[{text:""}]}]},{at:i});const l=W1e(e,i);if(!l)return;const u=s1e(e,l[1]);return Zct(e,{fromListItem:n,toListItem:l}),D1e(e,{reverse:r}),i=u.unref(),Zct(e,{fromListItem:[l[0],i],toListItem:t}),P1e(e,{at:i}),void(s=!0)}qct(e,{fromListItem:n,toList:t,toListIndex:1})})),s},Hct=(e,{type:t,pluginKey:n=t})=>w1e(e,(()=>{if(!e.selection)return;const{validLiChildrenTypes:r}=$tt(e,n);if(e2e(e.selection)||!tot(e)){const n=Ict(e);if(n){const{list:r}=n;r[0].type===t?Bct(e):m2e(e,{type:t},{at:e.selection,match:t=>d1e(t)&&Dct(e).includes(t.type),mode:"lowest"})}else{d2e(e,{type:t,children:[]});const n=v1e(e,{match:{type:G7e(e,N7e)}}),i=Array.from(n);wnt(e,{match:{type:r}})||m2e(e,{type:G7e(e,udt)});const o={type:G7e(e,ldt),children:[]};for(const[,t]of i)d2e(e,o,{at:t})}}else{const[n,i]=RJe.edges(e.selection),o=V1e(e,n.path,i.path);if(Dct(e).includes(o[0].type)||o[0].type===G7e(e,ldt))if(o[0].type===t)Bct(e);else{const n=h2e(e,{at:RJe.start(e.selection),match:{type:Dct(e)},mode:"lowest"}),r=h2e(e,{at:RJe.end(e.selection),match:{type:Dct(e)},mode:"lowest"}),i=Math.min(n[1].length,r[1].length);m2e(e,{type:t},{at:e.selection,match:(t,n)=>d1e(t)&&Dct(e).includes(t.type)&&n.length>=i,mode:"all"})}else{const n=o[1].length,i=v1e(e,{mode:"all"});Array.from(i).filter((([,e])=>e.length===n+1)).forEach((n=>{if(Dct(e).includes(n[0].type))m2e(e,{type:t},{at:n[1],match:t=>d1e(t)&&Dct(e).includes(t.type),mode:"all"});else{null!=r&&r.includes(n[0].type)||m2e(e,{type:G7e(e,udt)},{at:n[1]});const i={type:G7e(e,ldt),children:[]};d2e(e,i,{at:n[1]}),d2e(e,{type:t,children:[]},{at:n[1]})}}))}}})),Kct=(e,{type:t,options:{hotkey:n,enableResetOnShiftTab:r}})=>i=>{if(i.defaultPrevented)return;const o=Ntt.isTab(e,i),a=Ntt.isUntab(e,i);let s=e.selection;if(e.selection&&(o||a)){const{selection:t}=e;if(!e2e(e.selection)){const{anchor:n,focus:r}=RJe.isBackward(t)?{anchor:{...t.focus},focus:{...t.anchor}}:{anchor:{...t.anchor},focus:{...t.focus}},i=g1e(e,{anchor:n,focus:r});i&&(s=i,E1e(e,i))}const n=p2e(e,{match:{type:G7e(e,ldt)}});if(s&&n)return i.preventDefault(),((e,{increase:t=!0,at:n=(t=>null!==(t=e.selection)&&void 0!==t?t:void 0)(),enableResetOnShiftTab:r}={})=>{const i=v1e(e,{at:n,match:{type:G7e(e,udt)}}),o=Array.from(i);if(0===o.length)return;const a=[],s=[];o.forEach((t=>{const n=t[1],r=wJe.parent(n);a.some((e=>{const t=wJe.parent(e);return wJe.isAncestor(t,r)}))||(a.push(n),s.push(s1e(e,n)))}));const l=t?s:s.reverse();w1e(e,(()=>{let n=!1;return l.forEach((i=>{const o=i.unref();if(!o)return;const a=O1e(e,o);if(!a)return;const s=O1e(e,a[1]);if(!s)return;let l;t?l=((e,{list:t,listItem:n})=>{let r=!1;const[i]=t,[,o]=n;let a;try{a=wJe.previous(o)}catch(e){return}const s=W1e(e,a);if(s){const[t,n]=s,a=t.children.find((t=>h1e(t,[],{type:Dct(e)}))),l=n.concat(a?[1,a.children.length]:[1]);w1e(e,(()=>{a||d2e(e,{type:i.type,children:[]},{at:o}),S1e(e,{at:o,to:l}),r=!0}))}return r})(e,{list:s,listItem:a}):Rct(e,s[1])?l=Vct(e,{list:s,listItem:a}):r&&(l=Yct(e,{list:s,listItem:a})),n=l||n})),n}))})(e,{at:s,increase:o,enableResetOnShiftTab:r}),!0}if(!n)return;const l=function(){if(!arguments.length)return[];var e=arguments[0];return Tct(e)?e:[e]}(n);for(const n of l)Qct(n)(i)&&Hct(e,{type:t})},Jct=(e,t)=>{const n=Ict(e,{});let r=!1;if(n){const{list:i,listItem:o}=n;fot(e,{match:t=>t.type===G7e(e,ldt)})&&w1e(e,(()=>{if(r=Yct(e,{list:i,listItem:o}),r)return!0;if(r=Gct(e,{list:i,listItem:o}),r)return!0;if(0===o[1].at(-1)&&!Rct(e,i[1]))return Ect(e,Utt({options:{rules:[{types:[G7e(e,ldt)],defaultType:G7e(e,N7e),hotkey:"backspace",predicate:()=>fot(e),onReset:e=>Bct(e)}]}}))(Pct),void(r=!0);const n=Q1e(e,e.selection.focus);let a,s=!1;if(n&&Uct({...e,selection:{anchor:e.selection.anchor,focus:n}})){const t=G7e(e,udt),n=v1e(e,{at:o[1],mode:"lowest",match:e=>e.type===t});a=[...n][0],s=a[0].children.length>1}if(D1e(e,{unit:t,reverse:!0}),r=!0,!a||!s)return;const l=W1e(e,wJe.parent(a[1]));l&&0===l[0].children.length&&P1e(e,{at:l[1]})}))}return r},edt=(e,t,n)=>{let r=!1;return null!=e&&e.selection&&dot(e)?(w1e(e,(()=>{const i=Ict(e,{});r=i?((e,t,n,r)=>{const{listItem:i}=t;if(!Fct(e,i[0])){const t=G7e(e,ldt),o=v1e(e,{at:i[1],mode:"lowest",match:(n,r)=>{var i;if(0===r.length)return!1;const o=n.type===t,a=(null===(i=Y1e(e,wJe.next(r)))||void 0===i?void 0:i.type)===t;return o&&a}}),a=Array.from(o,(e=>e[1]))[0];if(!a){const t=$1e(e,i[1]);if(t){const n=Ict(e,{at:t});if(n){const t=zct(e,i[1]);return qct(e,{fromList:n.list,toList:t,deleteFromList:!0}),!0}}return!1}const s=W1e(e,wJe.next(a));if(!s)return!1;const l=O1e(e,s[1]);if(l&&Gct(e,{list:l,listItem:s,reverse:!1}))return!0;const u=$1e(e,e.selection.focus);if(!u||!Uct({...e,selection:{anchor:e.selection.anchor,focus:u}}))return!1;const c=G7e(e,udt),d=v1e(e,{at:u.path,mode:"lowest",match:e=>e.type===c}),f=[...d][0];if(f[0].children.length<2)return!1;n(r);const h=W1e(e,wJe.parent(f[1]));return h&&0===h[0].children.length&&P1e(e,{at:h[1]}),!0}const o=W1e(e,wJe.next([...i[1],0]));if(!o)return!1;const a=knt(o)[0];return!!Yct(e,{list:o,listItem:a})||!!Gct(e,{list:o,listItem:a})})(e,i,t,n):(e=>{const t=$1e(e,e.selection.focus.path);if(t){const n=Ict(e,{at:t});if(n){const{listItem:t}=n,r=wnt(e,{at:e.selection.anchor});if(!I1e(e,r[1]))return P1e(e),!0;if(Fct(e,t[0])){const n=Ict(e,{at:[...t[1],1,0,0]});Vct(e,n)}}}return!1})(e)})),r):r},tdt=e=>{const t=R1e(e,e.selection);return m1e(e,{at:t,match:{type:G7e(e,ldt)}})},ndt=e=>{let t=!1;return w1e(e,(()=>{if(!Uct(e))return;const n=C1e(e,e.selection),r=m1e(e,{at:n,match:{type:G7e(e,ldt)}}),i=r&&!Fct(e,r[0])?s1e(e,r[1]):void 0;if(!tdt(e)||!r)return void(t=!1);D1e(e);const o=tdt(e);if(i){const n=i.unref(),r=o&&O1e(e,o[1]),a=Mct(e,{liPath:n,diffListPath:null==r?void 0:r[1]});a&&P1e(e,{at:a}),t=!0}})),t},rdt=e=>{const{insertFragment:t}=e,n=Z7e(e,ldt),r=(e=>G7e(e,ldt))(e),i=(e=>G7e(e,udt))(e),o=t=>{let n=null,o=t;for(;Xct(e,o)||o.type===r&&o.children[0].type!==i;)n=o,[o]=o.children;return n?n.children:[o]},a=t=>{if(!Xct(e,t))return[t];const r=(u=t,zJe.texts(u,void 0)),i=Array.from(r),a=i.reduce(((e,n)=>wJe.isAncestor(e[1],n[1])?e:V1e(t,n[1],e[1])),((e,t,{type:n})=>{let r=wJe.parent(t[1]);for(;Y1e(e,r).type!==n;)r=wJe.parent(r);return[Y1e(e,r),r]})(t,i[0],n)),[s,...l]=Xct(e,a[0])?a[0].children:[a[0]];var u;return[...o(s),...l]},s=e=>e.type===r?e:{type:r,children:[e]};return n=>{let o=h2e(e,{match:{type:r},mode:"lowest"});if(!o)return t(Xct(e,n[0])?[{text:""},...n]:n);t([{text:""}]),o=h2e(e,{match:{type:r},mode:"lowest"});const l=h2e(e,{match:{type:i},mode:"lowest"});if(!l)return t(Xct(e,n[0])?[{text:""},...n]:n);const{textNode:u,listItemNodes:c}=((t,n,r)=>{const[,o]=n,[l,u]=r,c=!G1e(l),[d,...f]=t.flatMap(a).map(s);let h,p;if(Xct(e,t[0]))if((t=>1===t.length&&Xct(e,t[0])&&1===[...H1e({children:t})].filter((e=>d1e(e[0]))).filter((([e])=>e.type===i)).length)(t))h=d,p=f;else if(c){const t=Y1e(e,o),[,...n]=t.children,[r,...i]=d.children;if(pot(e,r,{at:wJe.next(u),select:!0}),P1e(e,{at:u}),null!=i&&i.length)if(null!=n&&n.length){const t=[...o,1,0];pot(e,i[0].children,{at:t,select:!0})}else pot(e,i,{at:wJe.next(u),select:!0});h={text:""},p=f}else h={text:""},p=[d,...f];else h=d,p=f;return{textNode:h,listItemNodes:p}})(n,o,l);t([u]);const[,d]=o;return pot(e,c,{at:wJe.next(d),select:!0})}},idt=(e,{children:t})=>{const n=[];for(const r of t)f1e(e,r[0])?n.push(...idt(e,{children:knt(r)})):n.push(r);return n},odt=(e,{validLiChildrenTypes:t})=>{const{normalizeNode:n}=e,r=G7e(e,ldt),i=G7e(e,udt),o=G7e(e,N7e);return([a,s])=>{var l;if(!d1e(a))return n([a,s]);if(Xct(e,a)){const t=knt([a,s]).find((([e])=>e.type!==r));if(t)return d2e(e,{type:r,children:[]},{at:t[1]})}if(h1e(a,[],{type:Dct(e)})){if(0===a.children.length||!a.children.some((e=>e.type===r)))return P1e(e,{at:s});const t=wJe.next(s),n=Y1e(e,t);(null==n?void 0:n.type)===a.type&&qct(e,{fromList:[n,t],toList:[a,s],deleteFromList:!0});const i=rot(s),o=Y1e(e,i);if((null==o?void 0:o.type)===a.type)return void e.normalizeNode([o,i]);if(((e,{nestedListItem:t})=>{const[,n]=t,r=O1e(e,n);if(!r||!h1e(r[0],[],{type:Dct(e)}))return!1;let i;try{i=wJe.previous(n)}catch(e){return!1}const o=W1e(e,i);if(o){const[,t]=o,r=t.concat([1]);return S1e(e,{at:n,to:r}),!0}})(e,{nestedListItem:[a,s]}))return}a.type===G7e(e,ldt)&&((e,{listItem:t,validLiChildrenTypes:n=[]})=>{let r=!1;const i=new Set([G7e(e,adt),G7e(e,sdt),G7e(e,udt),...n]),[,o]=t,a=knt(t),s=a.filter((([e])=>!i.has(e.type))).map((([,t])=>s1e(e,t))),l=a[0],[u,c]=null!=l?l:[];if(!l||!f1e(e,u))return((e,t,n)=>{pot(e,{type:t,children:[{text:""}]},p1e(e,n))})(e,G7e(e,udt),{at:o.concat([0])}),!0;if(f1e(e,u)&&!h1e(u,[],{type:G7e(e,udt)})){if(h1e(u,[],{type:Dct(e)})){const n=O1e(e,t[1]),r=l;return knt(l).reverse().forEach((t=>{Vct(e,{list:r,listItem:t})})),P1e(e,{at:[...n[1],0]}),!0}if(n.includes(u.type))return!0;m2e(e,{type:G7e(e,udt)},{at:c}),r=!0}const d=knt(l);if(d.length>0){const t=[],n=[];for(const r of d){if(!f1e(e,r[0]))break;t.push(s1e(e,r[1])),n.push(...idt(e,{children:knt(r)}))}const i=wJe.next(d.at(-1)[1]);n.reverse().forEach((([,t])=>{S1e(e,{at:t,to:i})})),t.forEach((t=>{const n=t.unref();n&&P1e(e,{at:n})})),t.length>0&&(r=!0)}return!!r||(s.reverse().forEach((t=>{const n=t.unref();n&&S1e(e,{at:n,to:c.concat([0])})})),s.length>0)})(e,{listItem:[a,s],validLiChildrenTypes:t})||(a.type!==i||i===o||(null===(l=O1e(e,s))||void 0===l?void 0:l[0].type)===r?n([a,s]):m2e(e,{type:o},{at:s}))}},adt="ul",sdt="ol",ldt="li",udt="lic";P7e({key:"list",plugins:[{key:adt,isElement:!0,handlers:{onKeyDown:Kct},withOverrides:(e,{options:{validLiChildrenTypes:t}})=>{const{insertBreak:n,deleteBackward:r,deleteForward:i,deleteFragment:o}=e;return e.insertBreak=()=>{(e=>{if(!e.selection)return;const t=Ict(e,{});let n;if(t){const{list:r,listItem:i}=t;if(sot(e)&&(n=Vct(e,{list:r,listItem:i}),n))return!0}if(Ect(e,Utt({options:{rules:[{types:[G7e(e,ldt)],defaultType:G7e(e,N7e),predicate:()=>!n&&sot(e),onReset:e=>Bct(e)}]}}))(Pct))return!0;if(!n){const t=(e=>{const t=G7e(e,ldt),n=G7e(e,udt);if(!e.selection)return!1;const r=m1e(e,{match:{type:n}});if(!r)return!1;const[,i]=r,o=O1e(e,i);if(!o)return!1;const[a,s]=o;if(a.type!==t)return!1;let l=!1;return w1e(e,(()=>{RJe.isCollapsed(e.selection)||_1e(e);const r=q1e(e,e.selection.focus,i),o=lot(e),u=wJe.next(i),c=wJe.next(s);if(r)return pot(e,{type:t,children:[{type:n,children:[{text:""}]}]},{at:s}),void(l=!0);if(o){const r=z1e(e)||{};pot(e,{type:t,children:[{type:n,children:[{text:"",...r}]}]},{at:c}),E1e(e,c)}else w1e(e,(()=>{l2e(e),d2e(e,{type:t,children:[]},{at:u}),S1e(e,{at:u,to:c}),E1e(e,c),n2e(e,{edge:"start"})}));a.children.length>1&&S1e(e,{at:u,to:c.concat(1)}),l=!0})),l})(e);if(t)return!0}})(e)||n()},e.deleteBackward=t=>{Jct(e,t)||r(t)},e.deleteForward=t=>{edt(e,i,t)||i(t)},e.deleteFragment=t=>{ndt(e)||o(t)},e.insertFragment=rdt(e),e.normalizeNode=odt(e,{validLiChildrenTypes:t}),e},deserializeHtml:{rules:[{validNodeName:"UL"}]}},{key:sdt,isElement:!0,handlers:{onKeyDown:Kct},deserializeHtml:{rules:[{validNodeName:"OL"}]}},{key:ldt,isElement:!0,deserializeHtml:{rules:[{validNodeName:"LI"}]},then:(e,{type:t})=>({inject:{pluginsByKey:{[_et]:{editor:{insertData:{preInsert:()=>p2e(e,{match:{type:t}})}}}}}})},{key:udt,isElement:!0}]}),__webpack_require__(32090);const cdt=(e,t,n={})=>{const r={type:G7e(e,fdt),url:t,children:[{text:""}]};r2e(e,r,{nextBlock:!0,...n})},ddt=new Set(["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga"]),fdt="img",hdt=P7e({key:fdt,isElement:!0,isVoid:!0,withOverrides:(e,t)=>{const{options:{disableUploadInsert:n,disableEmbedInsert:r}}=t;return n||(e=((e,t)=>{const{options:{uploadImage:n}}=t,{insertData:r}=e;return e.insertData=i=>{const o=i.getData("text/plain"),{files:a}=i;if(!o&&a&&a.length>0){const s=M7e(e,t);if(!I7e(s,{data:o,dataTransfer:i}))return r(i);for(const t of a){const r=new FileReader,[i]=t.type.split("/");"image"===i&&(r.addEventListener("load",(async()=>{if(!r.result)return;const t=n?await n(r.result):r.result;cdt(e,t)})),r.readAsDataURL(t))}}else r(i)},e})(e,t)),r||(e=((e,t)=>{const{insertData:n}=e;return e.insertData=t=>{const r=t.getData("text/plain");(e=>{if(!rJe(e))return!1;const t=new URL(e).pathname.split(".").pop();return ddt.has(t)})(r)?cdt(e,r):n(t)},e})(e)),e},then:(e,{type:t})=>({deserializeHtml:{rules:[{validNodeName:"IMG"}],getNode:e=>({type:t,url:e.getAttribute("src")})}})}),pdt=(Ost("img")({propsHook:()=>{const{url:e}=X5e();return{props:{src:e,draggable:!0}}}}),"media_embed"),mdt=(P7e({key:pdt,isElement:!0,isVoid:!0,options:{transformUrl:e=>{if("http"!==e.slice(0,4)){var t,n;const r=/src=".*?"/,i=/"([^"]*)"/,o=null===(t=e.match(r))||void 0===t?void 0:t[0],a=null==o||null===(n=o.match(i))||void 0===n?void 0:n[1];a&&(e=a)}return e}},then:(e,{type:t})=>({deserializeHtml:{rules:[{validNodeName:"IFRAME"}],getNode:e=>{const n=e.getAttribute("src");if(n)return{type:t,url:n}}}})}),jHe("floatingMedia")({url:"",isEditing:!1}).extendActions((e=>({reset:()=>{e.url(""),e.isEditing(!1)}})))),gdt=mdt.set,vdt=mdt.get;Ost("button")({propsHook:()=>{const e=X5e();return{props:{onClick:(0,c.useCallback)((()=>{gdt.url(e.url),gdt.isEditing(!0)}),[e.url])}}}}),Ost("input")({stateHook:({pluginKey:e}={})=>{const t=Vtt(),n=X5e();return cHe("enter",(r=>{((e,{element:t,pluginKey:n="media"})=>{let r=vdt.url();if(r===t.url)return gdt.reset(),!0;const{isUrl:i=rJe,transformUrl:o}=$tt(e,n);return i(r)?(o&&(r=o(r)),a2e(e,{url:r}),gdt.reset(),A5e(e,e.selection),!0):void 0})(t,{element:n,pluginKey:e})&&r.preventDefault()}),{enableOnFormTags:["INPUT"]},[]),cHe("escape",(()=>{vdt.isEditing()&&(gdt.reset(),A5e(t,t.selection))}),{enableOnFormTags:["INPUT"],enableOnContentEditable:!0},[]),{defaultValue:vdt.url()}},propsHook:({defaultValue:e})=>({props:{onChange:(0,c.useCallback)((e=>{gdt.url(e.target.value)}),[]),autoFocus:!0,defaultValue:e}})});var Odt=function(e,t){return function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c}(t={exports:{}},t.exports),t.exports}(),ydt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Odt);Odt.isHotkey,Odt.isCodeHotkey,Odt.isKeyHotkey,Odt.parseHotkey,Odt.compareHotkey,Odt.toKeyCode,Odt.toKeyName;const bdt=(e,t)=>h2e(e,{...t,match:{type:G7e(e,_dt)}}),wdt=(e,t)=>t.type===G7e(e,_dt),kdt=e=>void 0!==bdt(e),xdt=(e,t)=>w1e(e,(()=>{const n=Y1e(e,t);if(!n)return;const{trigger:r}=n;i2e(e,r,{at:{path:[...t,0],offset:0}}),c2e(e,{at:t})})),_dt="mention_input";var Sdt;P7e({key:"mention",isElement:!0,isInline:!0,isVoid:!0,isMarkableVoid:!0,handlers:{onKeyDown:(Sdt={query:kdt},e=>t=>{if(ydt("escape",t)){const n=bdt(e);return!!n&&(t.preventDefault(),xdt(e,n[1]),!0)}return((e,{query:t=(()=>!0)}={})=>n=>{const{selection:r}=e;return!(!r||RJe.isExpanded(r)||!t(e))&&(ydt("left",n)?(n.preventDefault(),o2e(e,{unit:"offset",reverse:!0}),!0):ydt("right",n)?(n.preventDefault(),o2e(e,{unit:"offset"}),!0):void 0)})(e,Sdt)(t)}),onBlur:e=>()=>{P1e(e,{match:e=>e.type===_dt,at:[]})}},withOverrides:(e,{options:{id:t,trigger:n,triggerPreviousCharPattern:r,query:i,inputCreation:o}})=>{const{type:a}=Z7e(e,_dt),{apply:s,insertBreak:l,insertText:u,deleteBackward:c,insertFragment:d,insertTextData:f,insertNode:h}=e,p=e=>e.split(/\r\n|\r|\n/).map((e=>e.trim())).join("");return e.insertFragment=t=>void 0!==bdt(e)?u(t.map((e=>p(G1e(e)))).join("")):d(t),e.insertTextData=t=>{if(void 0===bdt(e))return f(t);const n=t.getData("text/plain");return!!n&&(e.insertText(p(n)),!0)},e.deleteBackward=t=>{const n=bdt(e);if(n&&""===G1e(n[0]))return xdt(e,n[1]);c(t)},e.insertBreak=()=>{kdt(e)||l()},e.insertText=t=>{if(!e.selection||t!==n||i&&!i(e)||kdt(e))return u(t);const s=I1e(e,F1e(e,e.selection,Q1e(e,e.selection)));if((null==r?void 0:r.test(s))&&t===n){const e={type:a,children:[{text:""}],trigger:n};return o&&(e[o.key]=o.value),h(e)}return u(t)},e.apply=r=>{if(s(r),"insert_text"===r.type||"remove_text"===r.type){const t=bdt(e);t&&Dlt.text(G1e(t[0]))}else if("set_selection"===r.type){var i,a;const t=RJe.isRange(r.properties)?null===(i=bdt(e,{at:r.properties}))||void 0===i?void 0:i[1]:void 0,n=RJe.isRange(r.newProperties)?null===(a=bdt(e,{at:r.newProperties}))||void 0===a?void 0:a[1]:void 0;t&&!n&&xdt(e,t),n&&Dlt.targetRange(e.selection)}else if("insert_node"===r.type&&wdt(e,r.node)){var l,u;if(r.node.trigger!==n)return;const i=null!==(l=null===(u=r.node.children[0])||void 0===u?void 0:u.text)&&void 0!==l?l:"";void 0!==o&&r.node[o.key]!==o.value||(s2e(e,{anchor:{path:r.path.concat([0]),offset:i.length},focus:{path:r.path.concat([0]),offset:i.length}}),Dlt.open({activeId:t,text:i,targetRange:e.selection}))}else if("remove_node"===r.type&&wdt(e,r.node)){if(r.node.trigger!==n)return;Dlt.reset()}},e},options:{trigger:"@",triggerPreviousCharPattern:/^\s?$/,createMentionNode:e=>({value:e.text})},plugins:[{key:_dt,isElement:!0,isInline:!0}],then:(e,{key:t})=>({options:{id:t}})});var Pdt=Array.isArray,Edt=function(e,t){return e===t||e!=e&&t!=t},Cdt=function(e,t){for(var n=e.length;n--;)if(Edt(e[n][0],t))return n;return-1},Tdt=Array.prototype.splice;function $dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},$dt.prototype.set=function(e,t){var n=this.__data__,r=Cdt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Qdt=$dt,Rdt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Adt(e,t){return e(t={exports:{}},t.exports),t.exports}var jdt="object"==typeof Rdt&&Rdt&&Rdt.Object===Object&&Rdt,Ddt="object"==typeof self&&self&&self.Object===Object&&self,Mdt=jdt||Ddt||Function("return this")(),Idt=Mdt.Symbol,zdt=Object.prototype,Wdt=zdt.hasOwnProperty,Ndt=zdt.toString,Ldt=Idt?Idt.toStringTag:void 0,Fdt=Object.prototype.toString,Udt=Idt?Idt.toStringTag:void 0,Xdt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Udt&&Udt in Object(e)?function(e){var t=Wdt.call(e,Ldt),n=e[Ldt];try{e[Ldt]=void 0;var r=!0}catch(e){}var i=Ndt.call(e);return r&&(t?e[Ldt]=n:delete e[Ldt]),i}(e):function(e){return Fdt.call(e)}(e)},qdt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Bdt=function(e){if(!qdt(e))return!1;var t=Xdt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Vdt=Mdt["__core-js_shared__"],Ydt=function(){var e=/[^.]+$/.exec(Vdt&&Vdt.keys&&Vdt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Zdt=Function.prototype.toString,Gdt=function(e){if(null!=e){try{return Zdt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Hdt=/^\[object .+?Constructor\]$/,Kdt=Function.prototype,Jdt=Object.prototype,eft=Kdt.toString,tft=Jdt.hasOwnProperty,nft=RegExp("^"+eft.call(tft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rft=function(e){return!(!qdt(e)||function(e){return!!Ydt&&Ydt in e}(e))&&(Bdt(e)?nft:Hdt).test(Gdt(e))},ift=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return rft(n)?n:void 0},oft=ift(Mdt,"Map"),aft=ift(Object,"create"),sft=Object.prototype.hasOwnProperty,lft=Object.prototype.hasOwnProperty;function uft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},Aft={};Aft["[object Float32Array]"]=Aft["[object Float64Array]"]=Aft["[object Int8Array]"]=Aft["[object Int16Array]"]=Aft["[object Int32Array]"]=Aft["[object Uint8Array]"]=Aft["[object Uint8ClampedArray]"]=Aft["[object Uint16Array]"]=Aft["[object Uint32Array]"]=!0,Aft["[object Arguments]"]=Aft["[object Array]"]=Aft["[object ArrayBuffer]"]=Aft["[object Boolean]"]=Aft["[object DataView]"]=Aft["[object Date]"]=Aft["[object Error]"]=Aft["[object Function]"]=Aft["[object Map]"]=Aft["[object Number]"]=Aft["[object Object]"]=Aft["[object RegExp]"]=Aft["[object Set]"]=Aft["[object String]"]=Aft["[object WeakMap]"]=!1;var jft=function(e){return function(t){return e(t)}},Dft=Adt((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&jdt.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),Mft=Dft&&Dft.isTypedArray,Ift=Mft?jft(Mft):function(e){return kft(e)&&Rft(e.length)&&!!Aft[Xdt(e)]},zft=Object.prototype.hasOwnProperty,Wft=function(e,t){var n=Pdt(e),r=!n&&Eft(e),i=!n&&!r&&Tft(e),o=!n&&!r&&!i&&Ift(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n{const{apply:u,insertNode:c,insertNodes:d}=e,f=()=>({[t]:n()}),h=n=>{o&&!p2e(e,{match:{[t]:n[t]},at:[]})||delete n[t]},p=n=>{if(oJe(n._id)){const r=n._id;delete n._id,p2e(e,{match:{[t]:r},at:[]})||(n[t]=r)}},m={filter:e=>{var t;return i(e)&&(!r||void 0!==(null===(t=e[0])||void 0===t?void 0:t.type))},allow:a,exclude:s};return e.insertNodes=(e,n)=>{const r=function(){if(!arguments.length)return[];var e=arguments[0];return Pdt(e)?e:[e]}(e);d(r.map((e=>(!l&&e[t]&&(e._id=e[t]),e))),n)},e.insertNode=e=>{!l&&e[t]&&(e._id=e[t]),c(e)},e.apply=r=>{if("insert_node"===r.type){const e=function(e){return Uht(e,5)}(r.node);return h7e({node:e,query:m,source:{},apply:h}),(e=>{h7e({...e,apply:kst})})({node:e,path:r.path,source:f,query:m}),l||h7e({node:e,query:m,source:{},apply:p}),u({...r,node:e})}if("split_node"===r.type){const i=r.properties;let a=r.properties[t];if(f2e([i,r.path],m))return o&&void 0!==a&&!p2e(e,{match:{[t]:a},at:[]})||(a=n()),u({...r,properties:{...r.properties,[t]:a}});a&&delete r.properties[t]}return u(r)},e},options:{idKey:"id",idCreator:()=>Math.random().toString(36).slice(2,7),filterText:!0,filter:()=>!0}}),P7e({key:"selectOnBackspace",withOverrides:(e,{options:{query:t,removeNodeIfEmpty:n}})=>{const{deleteBackward:r}=e;return e.deleteBackward=i=>{const{selection:o}=e;if("character"===i&&e2e(o)){const a=Q1e(e,o,{unit:i});if(a){const[s]=v1e(e,{match:e=>f2e([e,a.path],t),at:a});if(s&&a){const t=L1e(e,o),r=Y1e(e,t.path);n&&r&&!G1e(r)&&P1e(e),E1e(e,a)}else r(i)}else r(i)}else r(i)},e},options:{removeNodeIfEmpty:!1}});const qht=(e,t)=>"string"==typeof e?t*Number.parseFloat(e)/100:e,Bht={onResize:UGe(null)},Vht=({onResize:e})=>{const[,t]=BGe(Bht.onResize);return(0,c.useEffect)((()=>{t({fn:e})}),[e,t]),null},Yht=({children:e,onResize:t})=>c.createElement(LGe,{initialValues:[[Bht.onResize,{fn:t}]]},c.createElement(Vht,{onResize:t}),e),{resizableStore:Zht,useResizableStore:Ght}=(Ost("div")({propsHook:({setInitialPosition:e,setInitialSize:t,setIsResizing:n,onMouseDown:r,onTouchStart:i,isHorizontal:o,isResizing:a,onHover:s,onHoverEnd:l})=>{const u=()=>{null==s||s()},c=()=>{a||null==l||l()};return{props:{onMouseDown:i=>{const{clientX:a,clientY:s}=i;e(o?a:s);const l=i.target.parentElement;t(o?l.offsetWidth:l.offsetHeight),n(!0),null==r||r(i)},onTouchStart:r=>{const{touches:a}=r,s=a[0],{clientX:l,clientY:u}=s;e(o?l:u);const c=r.target.parentElement;t(o?c.offsetWidth:c.offsetHeight),n(!0),null==i||i(r)},onMouseOver:u,onMouseOut:c,onTouchMove:u,onTouchEnd:c}}},stateHook:({direction:e="left",onResize:t,onMouseDown:n,onTouchStart:r,onHover:i,onHoverEnd:o})=>{const[a]=BGe(Bht.onResize);t||(t=null==a?void 0:a.fn);const[s,l]=(0,c.useState)(!1),[u,d]=(0,c.useState)(0),[f,h]=(0,c.useState)(0),p="left"===e||"right"===e;return(0,c.useEffect)((()=>{if(!s)return;const n=(n,r)=>{var i;const{clientX:o,clientY:a}=(e=>"touches"in e)(n)?n.touches[0]||n.changedTouches[0]:n;null===(i=t)||void 0===i||i({initialSize:f,delta:(p?o:a)-u,finished:r,direction:e})},r=e=>n(e,!1),i=e=>{l(!1),null==o||o(),n(e,!0)};return window.addEventListener("mousemove",r),window.addEventListener("mouseup",i),window.addEventListener("touchmove",r),window.addEventListener("touchend",i),()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",i),window.removeEventListener("touchmove",r),window.removeEventListener("touchend",i)}}),[s,u,f,t,p,o,e]),{isResizing:s,setIsResizing:l,initialPosition:u,setInitialPosition:d,initialSize:f,setInitialSize:h,isHorizontal:p,direction:e,onResize:t,onMouseDown:n,onTouchStart:r,onHover:i,onHoverEnd:o}}}),I5e({width:0},{name:"resizable",scope:W5e})),Hht=c.forwardRef((({children:e,options:t,...n},r)=>{const i=(({align:e="center",minWidth:t=92,maxWidth:n="100%"}={})=>{var r;const i=X5e(),o=Vtt(),a=null!==(r=null==i?void 0:i.width)&&void 0!==r?r:"100%",[s,l]=Ght().use.width(),u=(0,c.useCallback)((e=>{const t=R5e(o,i);t&&(e===a?E1e(o,t):a2e(o,{width:e},{at:t}))}),[o,i,a]);return(0,c.useEffect)((()=>{l(a)}),[a,l]),{align:e,minWidth:t,maxWidth:n,setNodeWidth:u,setWidth:l,width:s}})(t),{wrapperRef:o,wrapperProps:a,props:s,context:l}=(({align:e,minWidth:t,maxWidth:n,setNodeWidth:r,setWidth:i,width:o})=>{const a=(0,c.useRef)(null);return{wrapperRef:a,wrapperProps:{style:{position:"relative"}},props:{style:{width:o,minWidth:t,maxWidth:n,position:"relative"}},context:{onResize:(0,c.useCallback)((({initialSize:o,delta:s,finished:l,direction:u})=>{const c=a.current.offsetWidth,d=((e,t,{min:n,max:r})=>{const i=((e,{min:t,max:n})=>(void 0!==t&&(e=Math.max(e,t)),void 0!==n&&(e=Math.min(e,n)),e))(qht(e,t),{min:void 0===n?void 0:qht(n,t),max:void 0===r?void 0:qht(r,t)});switch(typeof e){case"string":return((e,t)=>"number"==typeof e?e/t*100+"%":e)(i,t);case"number":return i;default:throw new Error("Invalid length type")}})(o+s*(("center"===e?2:1)*("left"===u?-1:1)),c,{min:t,max:n});l?r(d):i(d)}),[e,n,t,r,i])}}})(i);return c.createElement("div",Xht({ref:o},a),c.createElement("div",Xht({ref:r},s,n),c.createElement(Yht,{onResize:l.onResize},e)))}));Hht.displayName="Resizable";const Kht={"shift+up":"top","shift+right":"right","shift+down":"bottom","shift+left":"left"};var Jht="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function ept(e,t){return e(t={exports:{}},t.exports),t.exports}var tpt=ept((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)i["f"+o]=111+o;function a(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return s(e,t)})),i=function(e){return r.some((function(t){return l(t,e)}))};return null==n?i:i(n)}function s(e,t){var r=t&&t.byKey,i={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in n)i[n[s]]=!1;var l=!0,d=!1,f=void 0;try{for(var h,p=o[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=c(m),O=n[v];1!==a&&O||(r?i.key=v:i.which=u(m)),O&&(i[O]=!g||null)}}catch(e){d=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(d)throw f}}return i}function l(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}function u(e){return e=c(e),i[e]||e.toUpperCase().charCodeAt(0)}function c(e){return e=e.toLowerCase(),r()[e]||e}t.default=a,t.isHotkey=a,t.isCodeHotkey=function(e,t){return a(e,t)},t.isKeyHotkey=function(e,t){return a(e,{byKey:!0},t)},t.parseHotkey=s,t.compareHotkey=l,t.toKeyCode=u,t.toKeyName=c})),npt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(tpt);tpt.isHotkey,tpt.isCodeHotkey,tpt.isKeyHotkey,tpt.parseHotkey,tpt.compareHotkey,tpt.toKeyCode,tpt.toKeyName;const rpt=e=>((e,t)=>t.map((t=>G7e(e,t))))(e,[zgt,Mgt]),ipt=(e,{header:t,newCellChildren:n=[e.blockFactory()]})=>({type:G7e(e,t?Mgt:zgt),children:n}),opt=(e,{header:t,rowCount:n=0,colCount:r,newCellChildren:i}={})=>{const o=Array.from({length:n}).fill(n).map((()=>((e,{colCount:t=1,...n}={})=>({type:G7e(e,Igt),children:Array.from({length:t}).fill(t).map((()=>ipt(e,n)))}))(e,{header:t,colCount:r,newCellChildren:i})));return{type:G7e(e,Dgt),children:o}},apt=(e,t)=>wnt(e,{match:{type:G7e(e,Dgt)},...t}),spt=(e,{format:t="table",...n}={})=>{const r=((e,{at:t,...n}={})=>{const r=null!=t?t:e.selection;if(!r)return null;const[i,o]=M1e(e,null!=r?r:e.selection),a=wnt(e,{at:i,...n});if(!a)return null;const s=wnt(e,{at:o,...n});return s?[a,s]:null})(e,{match:{type:rpt(e)},...n});if(r){const[n,i]=r;if(!wJe.equals(n[1],i[1]))return((e,{at:t,format:n="table"})=>{const r=t.anchor.path,i=t.focus.path,o=r.at(-2),a=i.at(-2),s=r.at(-1),l=i.at(-1),u=Math.min(o,a),c=Math.max(o,a),d=Math.min(s,l),f=Math.max(s,l),h=r.slice(0,-2),p=opt(e,{rowCount:c-u+1,colCount:f-d+1,newCellChildren:[]});let m=u,g=d;const v=[];for(;;){const t=h.concat([m,g]),n=Y1e(e,t);if(!n)break;if(p.children[m-u].children[g-d]=n,v.push([n,t]),g+1<=f)g+=1;else{if(!(m+1<=c))break;g=d,m+=1}}return"cell"===n?v:[[p,h]]})(e,{at:{anchor:{path:n[1],offset:0},focus:{path:i[1],offset:0}},format:t});if("table"===t){const t=opt(e,{rowCount:1});return t.children[0].children=[n[0]],[[t,n[1].slice(0,-2)]]}return[n]}return[]},lpt=(e,{disableSelect:t,fromCell:n,at:r,header:i}={})=>{const o=n?h2e(e,{at:n,match:{type:rpt(e)}}):wnt(e,{match:{type:rpt(e)}});if(!o)return;const[,a]=o,s=wnt(e,{match:{type:G7e(e,Dgt)},at:a});if(!s)return;const[l,u]=s;let c,d;wJe.isPath(r)?(c=r,d=r.at(-1)):(c=wJe.next(a),d=a.at(-1)+1);const f=a.at(-2),{newCellChildren:h,initialTableWidth:p,minColumnWidth:m}=$tt(e,Dgt);w1e(e,(()=>{l.children.forEach(((n,o)=>{const s=[...c];wJe.isPath(r)?s[r.length-2]=o:s[a.length-2]=o;const l=void 0===i?n.children.every((t=>t.type===G7e(e,Mgt))):i;pot(e,ipt(e,{header:l,newCellChildren:h}),{at:s,select:!t&&o===f})}));const{colSizes:n}=l;if(n){let t=[...n.slice(0,d),0,...n.slice(d)];if(p){var o,s;t[d]=null!==(o=null!==(s=n[d])&&void 0!==s?s:n[d-1])&&void 0!==o?o:p/n.length;const e=n.reduce(((e,t)=>e+t),0),r=t.reduce(((e,t)=>e+t),0),i=Math.max(e,p);if(r>i){const e=i/r;t=t.map((t=>Math.max(null!=m?m:0,Math.floor(t*e))))}}a2e(e,{colSizes:t},{at:u})}}))},upt=(e,{header:t,fromRow:n,at:r,disableSelect:i}={})=>{const o=n?h2e(e,{at:n,match:{type:G7e(e,Igt)}}):wnt(e,{match:{type:G7e(e,Igt)}});if(!o)return;const[a,s]=o,l=wnt(e,{match:{type:G7e(e,Dgt)},at:s});if(!l)return;const{newCellChildren:u}=$tt(e,Dgt);if(w1e(e,(()=>{pot(e,{type:G7e(e,Igt),children:a.children.map(((n,r)=>ipt(e,{header:null!=t?t:l[0].children.every((e=>e.children[r].type===Mgt)),...u})))},{at:wJe.isPath(r)?r:wJe.next(s)})})),!i){const t=wnt(e,{match:{type:rpt(e)}});if(!t)return;const[,n]=t;wJe.isPath(r)?n[n.length-2]=r.at(-2):n[n.length-2]+=1,E1e(e,n)}},cpt=(e,{at:t,reverse:n,edge:r,fromOneCell:i}={})=>{if(r){const n=spt(e,{at:t,format:"cell"}),o=i?0:1;if(n.length>o){const[,t]=n[0],[,i]=n.at(-1),o=[...t],a=[...i];switch(r){case"bottom":a[a.length-2]+=1;break;case"top":o[o.length-2]-=1;break;case"right":a[a.length-1]+=1;break;case"left":o[o.length-1]-=1}return K1e(e,o)&&K1e(e,a)&&E1e(e,{anchor:R1e(e,o),focus:R1e(e,a)}),!0}return}const o=wnt(e,{at:t,match:{type:rpt(e)}});if(o){const[,t]=o,r=[...t],i=n?-1:1;if(r[r.length-2]+=i,K1e(e,r))E1e(e,R1e(e,r));else{const r=t.slice(0,-2);w1e(e,n?()=>{E1e(e,R1e(e,r)),o2e(e,{reverse:!0})}:()=>{E1e(e,C1e(e,r)),o2e(e)})}return!0}},dpt=(e,{type:t})=>n=>{if(n.defaultPrevented)return;const r={"shift+up":npt("shift+up",n),"shift+down":npt("shift+down",n),"shift+left":npt("shift+left",n),"shift+right":npt("shift+right",n)};Object.keys(r).forEach((t=>{r[t]&&cpt(e,{reverse:"shift+up"===t,edge:Kht[t]})&&(n.preventDefault(),n.stopPropagation())}));const i=Ntt.isTab(e,n),o=Ntt.isUntab(e,n);if(i||o){const t=((e,{at:t=e.selection}={})=>{if(!t)return;const n=h2e(e,{at:t,match:{type:rpt(e)}});if(!n)return;const[,r]=n,i=m1e(e,{at:r,match:{type:G7e(e,Igt)}});if(!i)return;const[,o]=i,a=m1e(e,{at:o,match:{type:G7e(e,Dgt)}});return a?{table:a,row:i,cell:n}:void 0})(e);if(!t)return;const{row:r,cell:a}=t,[,s]=a;if(o){const t=((e,t,n,r)=>{const i=rot(n);if(!i){const[,t]=r;return((e,t)=>{var n;const r=rot(t);if(!r)return;const i=W1e(e,r);if(!i)return;const[o,a]=i,s=null==o||null===(n=o.children)||void 0===n?void 0:n[o.children.length-1],l=a.concat(o.children.length-1);return s&&l?W1e(e,l):void 0})(e,t)}const o=W1e(e,i);if(o)return o})(e,0,s,r);if(t){const[,n]=t;E1e(e,n)}}else if(i){const t=((e,t,n,r)=>{const i=W1e(e,wJe.next(n));if(i)return i;const[,o]=r;return((e,t)=>{var n;const r=W1e(e,wJe.next(t));if(!r)return;const[i,o]=r,a=null==i||null===(n=i.children)||void 0===n?void 0:n[0],s=o.concat(0);return a&&s?W1e(e,s):void 0})(e,o)})(e,0,s,r);if(t){const[,n]=t;E1e(e,n)}}n.preventDefault(),n.stopPropagation()}if(npt("mod+a",n)){const r=m1e(e,{match:{type:t}});if(!r)return;const[,i]=r;E1e(e,i),n.preventDefault(),n.stopPropagation()}},fpt=(e,{unit:t,reverse:n})=>{const{selection:r}=e,i=n?C1e:R1e,o=n?$1e:Q1e;if(e2e(r)){const a=wnt(e,{match:{type:rpt(e)}});if(a){const[,t]=a,n=i(e,t);if(r&&VJe.equals(r.anchor,n))return!0}else{const i=o(e,r,{unit:t});if(wnt(e,{match:{type:rpt(e)},at:i}))return o2e(e,{reverse:!n}),!0}}},hpt=e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e;return e.deleteBackward=n=>{if(!fpt(e,{unit:n}))return t(n)},e.deleteForward=t=>{if(!fpt(e,{unit:t,reverse:!0}))return n(t)},e.deleteFragment=t=>{if(cot(e,{match:t=>t.type===G7e(e,Dgt)}),cot(e,{match:t=>t.type===G7e(e,Dgt)})){const t=spt(e,{format:"cell"});if(t.length>1)return void w1e(e,(()=>{t.forEach((([,t])=>{vot(e,{at:t,nodes:e.blockFactory()})})),E1e(e,{anchor:R1e(e,t[0][1]),focus:C1e(e,t.at(-1)[1])})}))}r(t)},e},ppt=e=>{const{getFragment:t}=e;return e.getFragment=()=>{const n=t(),r=[];return n.forEach((t=>{if(t.type===G7e(e,Dgt)){const n=t.children,i=n.length;if(!i)return;const o=n[0].children.length;if(i<=1&&o<=1)return void r.push(...n[0].children[0].children);{const t=spt(e);if(t.length>0)return void r.push(t[0][0])}}r.push(t)})),r},e};var mpt=function(e,t){return e===t||e!=e&&t!=t},gpt=function(e,t){for(var n=e.length;n--;)if(mpt(e[n][0],t))return n;return-1},vpt=Array.prototype.splice;function Opt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Opt.prototype.set=function(e,t){var n=this.__data__,r=gpt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ypt=Opt,bpt="object"==typeof Jht&&Jht&&Jht.Object===Object&&Jht,wpt="object"==typeof self&&self&&self.Object===Object&&self,kpt=bpt||wpt||Function("return this")(),xpt=kpt.Symbol,_pt=Object.prototype,Spt=_pt.hasOwnProperty,Ppt=_pt.toString,Ept=xpt?xpt.toStringTag:void 0,Cpt=Object.prototype.toString,Tpt=xpt?xpt.toStringTag:void 0,$pt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Tpt&&Tpt in Object(e)?function(e){var t=Spt.call(e,Ept),n=e[Ept];try{e[Ept]=void 0;var r=!0}catch(e){}var i=Ppt.call(e);return r&&(t?e[Ept]=n:delete e[Ept]),i}(e):function(e){return Cpt.call(e)}(e)},Qpt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Rpt=function(e){if(!Qpt(e))return!1;var t=$pt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Apt=kpt["__core-js_shared__"],jpt=function(){var e=/[^.]+$/.exec(Apt&&Apt.keys&&Apt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Dpt=Function.prototype.toString,Mpt=function(e){if(null!=e){try{return Dpt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ipt=/^\[object .+?Constructor\]$/,zpt=Function.prototype,Wpt=Object.prototype,Npt=zpt.toString,Lpt=Wpt.hasOwnProperty,Fpt=RegExp("^"+Npt.call(Lpt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Upt=function(e){return!(!Qpt(e)||function(e){return!!jpt&&jpt in e}(e))&&(Rpt(e)?Fpt:Ipt).test(Mpt(e))},Xpt=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Upt(n)?n:void 0},qpt=Xpt(kpt,"Map"),Bpt=Xpt(Object,"create"),Vpt=Object.prototype.hasOwnProperty,Ypt=Object.prototype.hasOwnProperty;function Zpt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},bmt={};bmt["[object Float32Array]"]=bmt["[object Float64Array]"]=bmt["[object Int8Array]"]=bmt["[object Int16Array]"]=bmt["[object Int32Array]"]=bmt["[object Uint8Array]"]=bmt["[object Uint8ClampedArray]"]=bmt["[object Uint16Array]"]=bmt["[object Uint32Array]"]=!0,bmt["[object Arguments]"]=bmt["[object Array]"]=bmt["[object ArrayBuffer]"]=bmt["[object Boolean]"]=bmt["[object DataView]"]=bmt["[object Date]"]=bmt["[object Error]"]=bmt["[object Function]"]=bmt["[object Map]"]=bmt["[object Number]"]=bmt["[object Object]"]=bmt["[object RegExp]"]=bmt["[object Set]"]=bmt["[object String]"]=bmt["[object WeakMap]"]=!1;var wmt=function(e){return function(t){return e(t)}},kmt=ept((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&bpt.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),xmt=kmt&&kmt.isTypedArray,_mt=xmt?wmt(xmt):function(e){return lmt(e)&&ymt(e.length)&&!!bmt[$pt(e)]},Smt=Object.prototype.hasOwnProperty,Pmt=function(e,t){var n=pmt(e),r=!n&&hmt(e),i=!n&&!r&&gmt(e),o=!n&&!r&&!i&&_mt(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n{const{insertFragment:n}=e,{disableExpandOnInsert:r,insertColumn:i,insertRow:o}=t;return e.insertFragment=t=>{const a=t.find((t=>t.type===G7e(e,Dgt)));var s,l;if(!a&&apt(e,{at:null===(s=e.selection)||void 0===s?void 0:s.anchor})){const n=spt(e,{format:"cell"});if(n.length>1)return n.forEach((n=>{if(n){const[,r]=n;vot(e,{at:r,nodes:Qgt(t)})}})),void E1e(e,{anchor:R1e(e,n[0][1]),focus:C1e(e,n.at(-1)[1])})}if(a&&apt(e,{at:null===(l=e.selection)||void 0===l?void 0:l.anchor})){var u;const[t]=spt(e,{at:null===(u=e.selection)||void 0===u?void 0:u.anchor,format:"cell"});if(t)return void w1e(e,(()=>{const[,n]=t,s=[...n],l=s.at(-1);let u=null,c=!0;a.children.forEach((t=>{if(s[s.length-1]=l,!c){const t=s.slice(0,-1);if(s[s.length-2]+=1,!K1e(e,s)){if(r)return;null==o||o(e,{fromRow:t})}}c=!1;const n=t.children;let a=!0;n.forEach((t=>{if(!a){const t=[...s];if(s[s.length-1]+=1,!K1e(e,s)){if(r)return;null==i||i(e,{fromCell:t})}}a=!1,vot(e,{at:s,nodes:Qgt(t.children)}),u=[...s]}))})),u&&E1e(e,{anchor:R1e(e,n),focus:C1e(e,u)})}))}n(t)},e},Agt=(e,t)=>{const{insertText:n}=e;return e.insertText=t=>{var r;t2e(e.selection)&&(apt(e,{at:null===(r=e.selection)||void 0===r?void 0:r.anchor})&&spt(e,{format:"cell"}).length>1&&n2e(e,{edge:"focus"}));n(t)},e},jgt=e=>{const{apply:t}=e;return e.apply=n=>{if("set_selection"===n.type&&n.newProperties){const t={...e.selection,...n.newProperties};if(RJe.isRange(t)&&tot(e,{at:t,match:t=>t.type===G7e(e,Dgt)})){const r=wnt(e,{at:t.anchor,match:t=>t.type===G7e(e,Dgt)});if(r){const[,i]=r;RJe.isBackward(t)?n.newProperties.focus=R1e(e,i):Q1e(e,i)&&(n.newProperties.focus=C1e(e,i))}else{const r=wnt(e,{at:t.focus,match:t=>t.type===G7e(e,Dgt)});if(r){const[,i]=r;if(RJe.isBackward(t)){const t=R1e(e,i),r=Q1e(e,t);n.newProperties.focus=null!=r?r:t}else n.newProperties.focus=C1e(e,i)}}}((e,t)=>{var n;let r;if(!(e.currentKeyboardEvent&&["up","down","shift+up","shift+right","shift+down","shift+left"].some((t=>{const n=npt(t,e.currentKeyboardEvent);return n&&(r=t),n}))&&null!==(n=e.selection)&&void 0!==n&&n.focus&&null!=t&&t.focus&&tot(e,{at:{anchor:e.selection.focus,focus:t.focus},match:{type:rpt(e)}})))return;if(!r)return;const i=Kht[r];if(i&&!cot(e,{at:e.selection,match:{type:rpt(e)}}))return;const o=e.selection,a=["up","shift+up"].includes(r);setTimeout((()=>{cpt(e,{at:o,reverse:a,edge:i,fromOneCell:!0})}),0)})(e,t)}t(n)},e},Dgt="table",Mgt="th",Igt="tr",zgt="td",{tableStore:Wgt,useTableStore:Ngt}=(P7e({key:Dgt,isElement:!0,handlers:{onKeyDown:dpt},deserializeHtml:{rules:[{validNodeName:"TABLE"}]},options:{insertColumn:(e,{fromCell:t})=>{lpt(e,{fromCell:t,disableSelect:!0})},insertRow:(e,{fromRow:t})=>{upt(e,{fromRow:t,disableSelect:!0})},minColumnWidth:48},withOverrides:(e,t)=>(e=(e=>{const{normalizeNode:t}=e,n=e,{initialTableWidth:r}=$tt(e,Dgt);return n.normalizeNode=([n,i])=>{if(d1e(n)){if(n.type===G7e(e,Dgt)){if(wnt(e,{at:i,match:{type:G7e(e,Dgt)}}))return void c2e(e,{at:i});if(r){var o,a;const t=n,s=null===(o=t.children[0])||void 0===o||null===(a=o.children)||void 0===a?void 0:a.length;if(s){const n=[];if(t.colSizes)t.colSizes.some((e=>!e))&&t.colSizes.forEach((e=>{n.push(e||r/s)}));else for(let e=0;e0)return void a2e(e,{colSizes:n},{at:i})}}}if(n.type===G7e(e,Igt)){const t=O1e(e,i);if((null==t?void 0:t[0].type)!==G7e(e,Dgt))return void c2e(e,{at:i})}if(rpt(e).includes(n.type)){const{children:t}=n,r=O1e(e,i);if((null==r?void 0:r[0].type)!==G7e(e,Igt))return void c2e(e,{at:i});if(k1e(t[0]))return void((e,t,n)=>{const r=null==n?void 0:n.at,i=Y1e(e,r);null!=i&&i.children&&w1e(e,(()=>{const o=r.concat([0]);d2e(e,t,{...n,at:o}),i.children.length<2||mot(e,{at:r,to:o.concat([1]),fromStartIndex:1})}))})(e,e.blockFactory({},i),{at:i})}}return t([n,i])},e})(e),e=hpt(e),e=ppt(e),e=Rgt(e,t),e=Agt(e),e=(e=>{const{setFragmentData:t}=e;return e.setFragmentData=(n,r)=>{var i;const o=null===(i=spt(e,{format:"table"}))||void 0===i?void 0:i[0],a=spt(e,{format:"cell"}),s=e.selection;if(!o||!s)return void t(n,r);const l=wJe.compare(s.anchor.path,s.focus.path)<1?s.anchor:s.focus,[u,c]=o,d=u.children,f=l.path.slice(c.length,c.length+2),[h,p]=f;let m="",g="";const v=document.createElement("div"),O=document.createElement("table");if(o&&s&&1===a.length&&("copy"===r||"cut"===r))return void t(n);w1e(e,(()=>{d.forEach(((r,i)=>{const o=r.children,a=c.concat(h+i),s=[],l=r.type===G7e(e,Mgt)?document.createElement("th"):document.createElement("tr");o.forEach(((r,i)=>{const o=a.concat(p+i);E1e(e,{anchor:R1e(e,o),focus:C1e(e,o)}),t(n),s.push(n.getData("text/plain"));const u=document.createElement("td");u.innerHTML=n.getData("text/html"),l.append(u)})),O.append(l),m+=`${s.join(",")}\n`,g+=`${s.join("\t")}\n`})),E1e(e,s),v.append(O)})),n.setData("text/csv",m),n.setData("text/tsv",g),n.setData("text/plain",g),n.setData("text/html",v.innerHTML);const y=JSON.stringify(u),b=window.btoa(encodeURIComponent(y));n.setData("application/x-slate-fragment",b)},e})(e=jgt(e)),e),plugins:[{key:Igt,isElement:!0,deserializeHtml:{rules:[{validNodeName:"TR"}]}},{key:zgt,isElement:!0,deserializeHtml:{attributeNames:["rowspan","colspan"],rules:[{validNodeName:"TD"}],getNode:e=>{const t=e.style.background||e.style.backgroundColor;return t?{type:"td",background:t}:{type:"td"}}},props:({element:e})=>{var t,n;return{nodeProps:{colSpan:null==e||null===(t=e.attributes)||void 0===t?void 0:t.colspan,rowSpan:null==e||null===(n=e.attributes)||void 0===n?void 0:n.rowspan}}}},{key:Mgt,isElement:!0,deserializeHtml:{attributeNames:["rowspan","colspan"],rules:[{validNodeName:"TH"}],getNode:e=>{const t=e.style.background||e.style.backgroundColor;return t?{type:"th",background:t}:{type:"th"}}},props:({element:e})=>{var t,n;return{nodeProps:{colSpan:null==e||null===(t=e.attributes)||void 0===t?void 0:t.colspan,rowSpan:null==e||null===(n=e.attributes)||void 0===n?void 0:n.rowspan}}}}]}),I5e({colSizeOverrides:new Map,rowSizeOverrides:new Map,marginLeftOverride:null,hoveredColIndex:null,selectedCells:null},{name:"table",scope:Dgt}));var Lgt=__webpack_require__(81358);const Fgt="deserializeCsv",Ugt=(P7e({key:Fgt,options:{errorTolerance:.25,parseOptions:{header:!0}},then:e=>({editor:{insertData:{format:"text/plain",getFragment:({data:t})=>((e,{data:t,...n})=>{const{options:{errorTolerance:r,parseOptions:i}}=Z7e(e,Fgt);if(0===(0,Lgt.parse)(t,{preview:2}).errors.length){const o=(0,Lgt.parse)(t,{...i,...n});if(!((e,t,n)=>(n<0&&(n=0),!(!e||e.length<2||e[0].length<2||e[1].length<2||t.length>0&&t.length>n*e.length)))(o.data,o.errors,r))return;const a=G7e(e,N7e),s=G7e(e,Dgt),l=G7e(e,Mgt),u=G7e(e,Igt),c=G7e(e,zgt),d={type:s,children:[]};if(o.meta.fields){d.children.push({type:u,children:o.meta.fields.map((e=>({type:l,children:[{type:a,children:[{text:e}]}]})))});for(const e of o.data)d.children.push({type:u,children:o.meta.fields.map((t=>({type:c,children:[{type:a,children:[{text:e[t]||""}]}]})))})}else for(const e of o.data){d.children.push({type:u,children:[]});for(const t of e)d.children.at(-1).children.push({type:c,children:[{type:a,children:[{text:t}]}]})}return[{type:a,children:[{text:""}]},d,{type:a,children:[{text:""}]}]}})(e,{data:t})}}})}),e=>1===e.children.length&&null!==e.firstElementChild&&((e=>"O:P"===e.nodeName&&" "===e.textContent)(e.firstElementChild)||Ugt(e.firstElementChild))),Xgt=e=>{Cet(e,(e=>{if((e=>"SPAN"===e.tagName&&e.classList.contains("MsoFootnoteReference"))(e)){const t=document.createElement("sup");return t.textContent=(e.textContent||"").trim().replaceAll(/[[\]]/g,""),e.parentElement&&e.parentElement.replaceChild(t,e),!0}return!0}))};function qgt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bgt(e,t){return e(t={exports:{}},t.exports),t.exports}var Vgt=Bgt((function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default}));qgt(Vgt);var Ygt=Bgt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default}));qgt(Ygt);var Zgt=Bgt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,r.default)(t,o)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),a=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/\s/.test(a))return!1}return!(!t.allow_numeric_tld&&/^\d+$/.test(a))&&i.every((function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))}))};var n=i(Vgt),r=i(Ygt);function i(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}));qgt(Zgt);var Ggt=Bgt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.default)(t),(n=String(n))?"4"===n?a.test(t):"6"===n&&l.test(t):e(t,4)||e(t,6)};var n,r=(n=Vgt)&&n.__esModule?n:{default:n},i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(i,"[.]){3}").concat(i),a=new RegExp("^".concat(o,"$")),s="(?:[0-9a-fA-F]{1,4})",l=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(o,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(o,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(o,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(o,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(o,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(o,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(o,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}));qgt(Ggt);var Hgt=Bgt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,o.default)(t,l)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var a,d,f,h,p,m,g,v,O;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(a=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(a))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((d=g.shift()).indexOf(":")>=0&&d.split(":").length>2)return!1;var y=function(e){if(Array.isArray(e))return e}(O=d.split(":"))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),2!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(O)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,2):void 0}}(O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=y[0],w=y[1];if(""===b&&""===w)return!1}m=null,v=null;var k=(h=g.join("@")).match(u);if(k?(f="",v=k[1],m=k[2]||null):(f=(g=h.split(":")).shift(),g.length&&(m=g.join(":"))),null!==m&&m.length>0){if(p=parseInt(m,10),!/^[0-9]+$/.test(m)||p<=0||p>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?c(f,t.host_whitelist):""===f&&!t.require_host||!!((0,i.default)(f)||(0,r.default)(f,t)||v&&(0,i.default)(v,6))&&(f=f||v,!t.host_blacklist||!c(f,t.host_blacklist))};var n=a(Vgt),r=a(Zgt),i=a(Ggt),o=a(Ygt);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const[,...r]=e.split(n);return r.reduce(((e,n)=>{const[,r=""]=n.split("shplid"),i=((e,t)=>{const n=Jgt.map((t=>e.indexOf(t))),r=n.filter((e=>-1!==e)),i=Math.min(e.length,...r),o=e.slice(0,Math.max(0,i));return o?`${t}${o}`:null})(r,t),o=(e=>{const[t]=e.split("bliptag");return t.includes("pngblip")?"image/png":t.includes("jpegblip")?"image/jpeg":null})(r),a=(e=>{const[,t=""]=e.split("bliptag"),n=t.split("}");if(n.length<2)return null;const[r,i]=n;if(n.length>2&&r.includes("blipuid"))return i.split(Y7e).join("");const o=r.split(Y7e);return o.length<2?null:o.slice(1).join("")})(r);return i&&o&&a&&e.push({hex:a,mimeType:o,spid:i}),e}),[])},tvt=e=>e.split("_")[2],nvt=(e,t,n)=>{t&&Cet(n,(n=>{if(!["IMG","V:IMAGEDATA"].includes(n.tagName))return!0;if("IMG"===n.tagName){const e=n.getAttribute("src");if(!e||!e.startsWith("file://"))return!0;const t=n.getAttribute("alt");if("string"==typeof t&&Kgt(t,{require_protocol:!0}))return n.setAttribute("src",t),!0}const r=((e,t)=>{if("IMG"===t.tagName){const n=t.getAttribute("v:shapes"),r=(e=>Wet(e).reduce(((e,t)=>{try{const n=(new DOMParser).parseFromString(t,"text/html");Array.from(n.querySelectorAll("V:SHAPE")).forEach((t=>{const{id:n}=t,r=t.getAttribute("o:spid");"string"==typeof n&&"string"==typeof r&&(e[n]=r)}))}catch(e){}return e}),{}))(e);if(!n)return null;const i=r[n];return i?tvt(i):t.parentElement&&t.parentElement.parentElement&&t.parentElement.parentElement.innerHTML.includes("msEquation")?null:tvt(n)}if(!t.parentElement)return null;const n=t.parentElement.getAttribute("o:spid");return n?tvt(n):n})(e,n);if(!r)return!0;const i=(e=>{const t={},n=evt(e,"i","\\shppict");for(const e of n)t[e.spid]=e;const r=evt(e,"s","\\shp");for(const e of r)t[e.spid]=e;return t})(t),o=i[r];if(!o)return n.remove(),!0;const a=`data:${o.mimeType};base64,${(e=>{const t=(e.match(/\w{2}/g)||[]).map((e=>String.fromCharCode(parseInt(e,16))));return btoa(t.join(""))})(o.hex)}`;if("IMG"===n.tagName)n.setAttribute("src",a);else if(n.parentNode&&n.parentNode.parentNode){const t=e.createElement("img");t.setAttribute("src",a),n.parentNode.parentNode.replaceChild(t,n.parentNode)}return!0}))},rvt=e=>{const t=e.getAttribute("style");if(!t||!["mso-spacerun:yes","mso-spacerun: yes"].includes(t))return;const n=(e.textContent||"").length,r=document.createTextNode((i=n,Array.from({length:i},(()=>Y7e)).join("")));var i;e.parentNode&&e.parentNode.replaceChild(r,e)},ivt=e=>{const t=e.getAttribute("style")||"";if(!t.startsWith("mso-tab-count:"))return;const[,n]=t.split(":"),r=Number.parseInt(n,10),i=document.createTextNode((e=>Array.from({length:e},(()=>"\t")).join(""))(r));e.parentNode&&e.parentNode.replaceChild(i,e)},ovt=(e,t)=>{const n=e.style[t];return n&&((e,t=36)=>{const n=(e=>{if("-"===e[0])return 0;let t=e.replace(/[^\d,.]+/,"");return"."===t[0]&&(t=`0${t}`),Number.parseFloat(t)})(e);return n?e.includes("in")?Math.round(72*n/t):Math.round(n/t):0})(n)||0},avt=e=>{let t=!1;return Cet(e,(e=>{const n=e.getAttribute("style")||"",r=Array.from(e.classList),i=n.includes("mso-")||r.some((e=>e.startsWith("Mso")));return t=t||i,!t})),t},svt=e=>t=>{const n={type:e};if((e=>{const t=e.getAttribute("style");return!!t&&!!/mso-list:\s*l/i.test(t)&&(!!Boolean(e.querySelector('[style="mso-list:Ignore"]'))||e.outerHTML.includes("\x3c!--[if !supportLists]--\x3e"))})(t)){var r,i;n[Vut]=(e=>{const t=(e.getAttribute("style")||"").match(/level(\d+)/i);if(t&&t.length>0){const[,e]=t;return Number.parseInt(e,10)}return 1})(t);const e=null!==(r=t.textContent)&&void 0!==r?r:"";n[oct]=null!==(i=(e=>{var t,n,r,i,o;return null!==(t=(e=e.trimStart()).match(/^\d+[.\\]/))&&void 0!==t&&t[0]?"0"===e[0]?Hut.DecimalLeadingZero:Hut.Decimal:null!==(n=e.match(/^[cdilmvx]+\./))&&void 0!==n&&n[0]?Hut.LowerRoman:null!==(r=e.match(/^[a-z]+\./))&&void 0!==r&&r[0]?Hut.LowerAlpha:null!==(i=e.match(/^[CDILMVX]+\./))&&void 0!==i&&i[0]?Hut.UpperRoman:null!==(o=e.match(/^[A-Z]+\./))&&void 0!==o&&o[0]?Hut.UpperAlpha:void 0})(e))&&void 0!==i?i:Hut.Disc,t.innerHTML=(e=>{const t=e.cloneNode(!0);return Uet(t,"[if !supportLists]","[endif]"),Cet(t,(e=>("mso-list:Ignore"===e.getAttribute("style")&&e.remove(),!0))),t.innerHTML})(t)}else{const e=(e=>ovt(e,"marginLeft"))(t);e&&(n[Vut]=e);const r=(e=>ovt(e,"textIndent"))(t);r&&(n[Yut]=r)}return n},lvt={};[hlt,olt,alt,slt,llt,ult,clt].forEach((e=>{lvt[e]={then:(e,{type:t})=>({deserializeHtml:{getNode:svt(t)}})}})),P7e({key:"deserializeDocx",inject:{pluginsByKey:{[_et]:{editor:{insertData:{transformData:(e,{dataTransfer:t})=>((e,t)=>{const n=(new DOMParser).parseFromString((e=>Fet.reduce(((e,t)=>t(e)),e))(e),"text/html"),{body:r}=n;return t||avt(r)?(Xgt(r),nvt(n,t,r),Cet(r,(e=>(Qet(e),!0))),Cet(r,(e=>("P"===e.tagName&&Ugt(e)&&(e.innerHTML=""),!0))),i=r,Cet(i,(e=>(e.parentNode&&"P"===e.tagName&&e.classList.contains("MsoQuote")&&Ret(e,"blockquote"),!0))),(e=>{Cet(e,(e=>("SPAN"!==e.nodeName||(rvt(e),ivt(e)),!0)))})(r),jet(r),(e=>{Cet(e,(e=>"BR"!==e.tagName||(e.nextSibling&&Net(e.nextSibling)&&"[if !supportLineBreakNewLine]"===e.nextSibling.data&&Uet(e.nextSibling,"[if !supportLineBreakNewLine]","[endif]"),!1)))})(r),Tet(r),(e=>{Cet(e,(e=>{if("A"!==e.tagName)return!0;const t=e.getAttribute("href");if(t&&!(e=>e.startsWith("#"))(t)||Aet(e),t&&e.querySelector("img"))for(const t of e.querySelectorAll("span"))t.textContent||Aet(t);return!0}))})(r),(e=>{Cet(e,(e=>("FONT"===e.tagName&&(e.textContent?Ret(e,"span"):e.remove()),!0)))})(r),(e=>{Cet(e,(e=>{const t=e.getAttribute("style");return t&&e.setAttribute("style",t.replaceAll(/mso-list:\s*ignore/gi,"mso-list:Ignore")),!0}))})(r),Met(r),Let(r.innerHTML)):e;var i})(e,t.getData("text/rtf"))}}}}},overrideByKey:{...lvt,[fdt]:{editor:{insertData:{query:({dataTransfer:e})=>{const t=e.getData("text/html"),{body:n}=(new DOMParser).parseFromString(t,"text/html");return!avt(n)}}}}}}),__webpack_require__(9721);var uvt=__webpack_require__(39748),cvt=__webpack_require__.n(uvt),dvt=__webpack_require__(92698),fvt=__webpack_require__.n(dvt);P7e({key:"hr",isElement:!0,isVoid:!0,deserializeHtml:{rules:[{validNodeName:"HR"}]}}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self&&self,function(e,t){e.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=function(t,n){if("object"!==e(t))return"";var r="",i=0,o=Object.keys(t);if(0===o.length)return"";for(o.sort(),n||(r+="?"+o[0]+"="+t[o[0]],i+=1);i{const r={type:G7e(e,mvt),url:t,children:[{text:""}]};r2e(e,r,{nextBlock:!0,...n})},pvt=new Set(["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga"]),mvt="img";P7e({key:mvt,isElement:!0,isVoid:!0,withOverrides:(e,t)=>{const{options:{disableUploadInsert:n,disableEmbedInsert:r}}=t;return n||(e=((e,t)=>{const{options:{uploadImage:n}}=t,{insertData:r}=e;return e.insertData=i=>{const o=i.getData("text/plain"),{files:a}=i;if(!o&&a&&a.length>0){const s=M7e(e,t);if(!I7e(s,{data:o,dataTransfer:i}))return r(i);for(const t of a){const r=new FileReader,[i]=t.type.split("/");"image"===i&&(r.addEventListener("load",(async()=>{if(!r.result)return;const t=n?await n(r.result):r.result;hvt(e,t)})),r.readAsDataURL(t))}}else r(i)},e})(e,t)),r||(e=((e,t)=>{const{insertData:n}=e;return e.insertData=t=>{const r=t.getData("text/plain");(e=>{if(!rJe(e))return!1;const t=new URL(e).pathname.split(".").pop();return pvt.has(t)})(r)?hvt(e,r):n(t)},e})(e)),e},then:(e,{type:t})=>({deserializeHtml:{rules:[{validNodeName:"IMG"}],getNode:e=>({type:t,url:e.getAttribute("src")})}})}),Ost("img")({propsHook:()=>{const{url:e}=X5e();return{props:{src:e,draggable:!0}}}}),P7e({key:"media_embed",isElement:!0,isVoid:!0,options:{transformUrl:e=>{if("http"!==e.slice(0,4)){var t,n;const r=/src=".*?"/,i=/"([^"]*)"/,o=null===(t=e.match(r))||void 0===t?void 0:t[0],a=null==o||null===(n=o.match(i))||void 0===n?void 0:n[1];a&&(e=a)}return e}},then:(e,{type:t})=>({deserializeHtml:{rules:[{validNodeName:"IFRAME"}],getNode:e=>{const n=e.getAttribute("src");if(n)return{type:t,url:n}}}})});const gvt=jHe("floatingMedia")({url:"",isEditing:!1}).extendActions((e=>({reset:()=>{e.url(""),e.isEditing(!1)}}))),vvt=gvt.set,Ovt=gvt.get;Ost("button")({propsHook:()=>{const e=X5e();return{props:{onClick:(0,c.useCallback)((()=>{vvt.url(e.url),vvt.isEditing(!0)}),[e.url])}}}}),Ost("input")({stateHook:({pluginKey:e}={})=>{const t=Vtt(),n=X5e();return cHe("enter",(r=>{((e,{element:t,pluginKey:n="media"})=>{let r=Ovt.url();if(r===t.url)return vvt.reset(),!0;const{isUrl:i=rJe,transformUrl:o}=$tt(e,n);return i(r)?(o&&(r=o(r)),a2e(e,{url:r}),vvt.reset(),A5e(e,e.selection),!0):void 0})(t,{element:n,pluginKey:e})&&r.preventDefault()}),{enableOnFormTags:["INPUT"]},[]),cHe("escape",(()=>{Ovt.isEditing()&&(vvt.reset(),A5e(t,t.selection))}),{enableOnFormTags:["INPUT"],enableOnContentEditable:!0},[]),{defaultValue:Ovt.url()}},propsHook:({defaultValue:e})=>({props:{onChange:(0,c.useCallback)((e=>{vvt.url(e.target.value)}),[]),autoFocus:!0,defaultValue:e}})});const yvt=["emphasis","strong","delete","inlineCode","html","text"],bvt="bold",wvt=P7e({key:bvt,isLeaf:!0,deserializeHtml:{rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}],query:e=>!Iet(e,(e=>"normal"===e.style.fontWeight))},handlers:{onKeyDown:Cst},options:{hotkey:"mod+b"}}),kvt="code",xvt=P7e({key:kvt,isLeaf:!0,deserializeHtml:{rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}],query(e){const t=KKe(e,"P");return"Consolas"!==(null==t?void 0:t.style.fontFamily)&&!KKe(e,"PRE")}},handlers:{onKeyDown:Cst},options:{hotkey:"mod+e"}}),_vt="italic",Svt=P7e({key:_vt,isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+i"},deserializeHtml:{rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}],query:e=>!Iet(e,(e=>"normal"===e.style.fontStyle))}}),Pvt=P7e({key:"strikethrough",isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+shift+x"},deserializeHtml:{rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}],query:e=>!Iet(e,(e=>"none"===e.style.textDecoration))}}),Evt=P7e({key:"subscript",isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+,",clear:"superscript"},deserializeHtml:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]}}),Cvt=P7e({key:"superscript",isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+.",clear:"subscript"},deserializeHtml:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]}}),Tvt=P7e({key:"underline",isLeaf:!0,handlers:{onKeyDown:Cst},options:{hotkey:"mod+u"},deserializeHtml:{rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}],query:e=>!Iet(e,(e=>"none"===e.style.textDecoration))}});P7e({key:"basicMarks",plugins:[wvt(),xvt(),Svt(),Pvt(),Evt(),Cvt(),Tvt()]});const $vt={text:{},emphasis:{mark:({editor:e})=>G7e(e,_vt)},strong:{mark:({editor:e})=>G7e(e,bvt)},inlineCode:{mark:({editor:e})=>G7e(e,kvt)},html:{transform:e=>e.replaceAll("
","\n")}},Qvt=(e,t,n={})=>{const{editor:r,textRules:i}=t,{type:o,value:a,children:s}=e,l=i[o]||$vt.text,{mark:u,transform:c=(e=>e)}=l,d=u?{...n,[u({editor:r})]:!0}:n,f=(null==s?void 0:s.flatMap((e=>Qvt(e,t,d))))||[];return[...a||0===f.length?[{text:c(a||""),...d}]:[],...f]},Rvt=(e,t)=>{const{type:n}=e;return yvt.includes(n)?Qvt(e,t):((e,t)=>{const{elementRules:n}=t,{type:r}=e,i=n[r];return i?i.transform(e,t):[]})(e,t)},Avt=(e,t)=>{const{children:n}=e;return n?n.flatMap((e=>Rvt(e,t))):[]},jvt={heading:{transform:(e,t)=>{var n;const r={1:olt,2:alt,3:slt,4:llt,5:ult,6:clt}[null!==(n=e.depth)&&void 0!==n?n:1];return{type:G7e(t.editor,r),children:Avt(e,t)}}},list:{transform:(e,t)=>({type:G7e(t.editor,e.ordered?sdt:adt),children:Avt(e,t)})},listItem:{transform:(e,t)=>({type:G7e(t.editor,ldt),children:Avt(e,t).map((e=>({...e,type:e.type===G7e(t.editor,hlt)?G7e(t.editor,udt):e.type})))})},paragraph:{transform:(e,t)=>{const n=Avt(e,t),r=G7e(t.editor,hlt),i=new Set([G7e(t.editor,mvt)]),o=[];let a=[];const s=()=>{a.length>0&&(o.push({type:r,children:a}),a=[])};return n.forEach((e=>{const{type:t}=e;t&&i.has(t)?(s(),o.push(e)):a.push(e)})),s(),o}},link:{transform:(e,t)=>({type:G7e(t.editor,kct),url:e.url,children:Avt(e,t)})},image:{transform:(e,t)=>({type:G7e(t.editor,mvt),children:[{text:""}],url:e.url,caption:[{text:e.alt}]})},blockquote:{transform:(e,t)=>({type:G7e(t.editor,Ust),children:e.children.flatMap((e=>Avt(e,t)))})},code:{transform:(e,t)=>{var n;return{type:G7e(t.editor,Bst),lang:null!==(n=e.lang)&&void 0!==n?n:void 0,children:(e.value||"").split("\n").map((e=>({type:G7e(t.editor,Vst),children:[{text:e}]})))}}},thematicBreak:{transform:(e,t)=>({type:G7e(t.editor,"hr"),children:[{text:""}]})}};function Dvt(e){this.Compiler=t=>t.children.flatMap((t=>Rvt(t,e)))}const Mvt="deserializeMd",Ivt=(P7e({key:Mvt,then:e=>({editor:{insertData:{format:"text/plain",query:({data:e,dataTransfer:t})=>{if(t.getData("text/html"))return!1;const{files:n}=t;return!((null==n||!n.length)&&rJe(e))},getFragment:({data:t})=>((e,t)=>{const{elementRules:n,textRules:r}=$tt(e,Mvt);return fvt()().use(cvt()).use(Dvt,{editor:e,elementRules:n,textRules:r}).processSync(t).result})(e,t)}}}),options:{elementRules:jvt,textRules:$vt}}),"suggestion"),zvt="suggestionId",Wvt=(e,{match:t,...n}={})=>h2e(e,{match:(e,n)=>e[Ivt]&&(!t||t(e,n)),...n}),Nvt=(e,t)=>{let n=Wvt(e,{at:t});if(!n){let r,i;try{[r,i]=M1e(e,t)}catch{return}const o=$1e(e,i);if(o&&(n=Wvt(e,{at:o}),!n)){const t=Q1e(e,r);t&&(n=Wvt(e,{at:t}))}}if(n)return n[0][zvt]},Lvt=Symbol("suggestion"),{suggestionStore:Fvt,useSuggestionStore:Uvt}=I5e({currentUserId:null,users:{},suggestions:{},isSuggesting:!1,activeSuggestionId:null,onSuggestionAdd:null,onSuggestionUpdate:null,onSuggestionDelete:null},{name:"suggestion",scope:Lvt}),Xvt=e=>e[zvt],qvt=e=>{const t=[];return Object.keys(e).forEach((e=>{(e=>e.startsWith(`${Ivt}_`))(e)&&t.push(e)})),t},Bvt=e=>{const{currentUserId:t}=$tt(e,Ivt);return((e="0")=>`${Ivt}_${e}`)(t)},Vvt=(e,t,{suggestionDeletion:n}={})=>{const r={[Ivt]:!0,[zvt]:t,[Bvt(e)]:!0};return n&&(r.suggestionDeletion=!0),r},Yvt=(e,t)=>{const{at:n=e.selection,suggestionId:r=VGe()}=null!=t?t:{},i=v1e(e,{match:t=>X1e(e,t),...t}),o=[...i];w1e(e,(()=>{const i=Vvt(e,r,t);((e,t,{at:n=e.selection}={})=>{if(n){wJe.isPath(n)&&(n=F1e(e,n));const r=(t,n)=>{if(!t0e.isText(t))return!1;const r=UJe.parent(e,n);if(!r)return!1;const[i]=r;return!e.isVoid(i)||e.markableVoid(i)},i=RJe.isExpanded(n);let o=!1;if(!i){const t=UJe.node(e,n);if(!t)return;const[i,a]=t;if(i&&r(i,a)){const t=UJe.parent(e,a);if(!t)return;const[n]=t;o=n&&e.markableVoid(n)}}(i||o)&&A0e.setNodes(e,t,{match:r,split:!0,voids:!0,at:n})}})(e,i,{at:n}),o.forEach((([,n])=>{a2e(e,i,{at:n,match:t=>!!X1e(e,t),...t})}))}))},Zvt=(e,t,{reverse:n}={})=>{w1e(e,(()=>{var r;const{anchor:i,focus:o}=t,a=null!==(r=Nvt(e,i))&&void 0!==r?r:VGe(),s=l1e(e,o);let l;for(;;){var u;if(l=null===(u=e.selection)||void 0===u?void 0:u.anchor,!l)break;const t=s.current;if(!t)break;if(!tot(e,{at:{anchor:l,focus:t}})&&0===I1e(e,n?{anchor:t,focus:l}:{anchor:l,focus:t}).length)break;const r=(n?Q1e:$1e)(e,l,{unit:"character"});if(!r)break;let i=n?{anchor:r,focus:l}:{anchor:l,focus:r};i=g2e(e,i);const o=h2e(e,{at:l,match:t=>f1e(e,t)&&t[Ivt]&&!t.suggestionDeletion&&t[Bvt(e)]});if(o&&q1e(e,l,o[1])&&b1e(e,o[0])){P1e(e,{at:o[1]});continue}if(VJe.equals(l,e.selection.anchor)&&o2e(e,{reverse:n,unit:"character"}),tot(e,{at:i}))continue;const c=Wvt(e,{at:i,match:t=>!t.suggestionDeletion&&t[Bvt(e)]});c?_1e(e,{at:i,unit:"character"}):Yvt(e,{at:i,suggestionDeletion:!0,suggestionId:a})}}))},Gvt=(e,{reverse:t}={})=>{w1e(e,(()=>{const n=e.selection,[r,i]=M1e(e,n);t?(n2e(e,{edge:"end"}),Zvt(e,{anchor:i,focus:r},{reverse:!0})):(n2e(e,{edge:"start"}),Zvt(e,{anchor:r,focus:i}))}))},Hvt=(e,t)=>{w1e(e,(()=>{var n;const r=null!==(n=Nvt(e,e.selection))&&void 0!==n?n:VGe();hot(e)&&Gvt(e),r2e(e,{text:t,...Vvt(e,r)},{at:e.selection,select:!0})}))};P7e({key:Ivt,isLeaf:!0,useHooks:(e,t)=>{const n=u7e().keyEditor(),r=(()=>{const e=Vtt(),t=Uvt().set.activeSuggestionId();return n=>{t(n),e.activeSuggestionId=n}})();(0,c.useEffect)((()=>{if(!e.selection)return;const t=()=>{r(null)},n=Wvt(e);if(!n)return t();const[i]=n,o=Xvt(i);if(!o)return t();r(o)}),[e,n,r])},withOverrides:(e,t)=>{const n=e,{normalizeNode:r,insertText:i,insertFragment:o,insertBreak:a,deleteBackward:s,deleteForward:l,deleteFragment:u}=n;return n.isSuggesting=!1,n.insertBreak=()=>{n.isSuggesting?Hvt(n,"\n"):a()},n.insertText=e=>{n.isSuggesting?Hvt(n,e):i(e)},n.insertFragment=e=>{n.isSuggesting?((e,t,{insertFragment:n=e.insertFragment}={})=>{w1e(e,(()=>{var r;Gvt(e);const i=null!==(r=Nvt(e,e.selection))&&void 0!==r?r:VGe();t.forEach((t=>{h7e({node:t,source:{},apply:t=>{t[Ivt]||(t[Ivt]=!0),t.suggestionDeletion&&delete t.suggestionDeletion,t[zvt]=i,qvt(t).forEach((e=>{delete t[e]})),t[Bvt(e)]=!0}})})),n(t)}))})(n,e,{insertFragment:o}):o(e)},n.deleteFragment=e=>{n.isSuggesting?Gvt(n,{reverse:!0}):u(e)},n.deleteBackward=e=>{if(n.isSuggesting){const t=n.selection,r=Q1e(n,t,{unit:e});if(!r)return;Zvt(n,{anchor:t.anchor,focus:r},{reverse:!0})}else s(e)},n.deleteForward=e=>{if(n.isSuggesting){const t=n.selection,r=$1e(n,t,{unit:e});if(!r)return;Zvt(n,{anchor:t.anchor,focus:r})}else l(e)},n.normalizeNode=e=>{const[t,i]=e;if(t[Ivt]){const e=Q1e(n,i);if(e){const r=Y1e(n,e.path);if(null!=r&&r[Ivt]&&r[zvt]!==t[zvt])return void a2e(n,{[zvt]:r[zvt]},{at:i})}if(!Xvt(t)){const e=qvt(t);return void u2e(n,[Ivt,"suggestionDeletion",...e],{at:i})}if(0===qvt(t).length)return void(t.suggestionDeletion?u2e(n,[Ivt,zvt],{at:i}):P1e(n,{at:i}))}r(e)},n}});var Kvt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Jvt="undefined"==typeof Element,eOt=Jvt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tOt=!Jvt&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},nOt=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},rOt=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!nOt(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:a,candidates:l})}else{eOt.call(a,Kvt)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),c=!nOt(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return i},iOt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},oOt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!iOt(e)?0:e.tabIndex},aOt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},sOt=function(e){return"INPUT"===e.tagName},lOt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},uOt=function(e,t){return!(t.disabled||nOt(t)||function(e){return sOt(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=eOt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(eOt.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return lOt(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,s=tOt(e);if(a&&!a.shadowRoot&&!0===r(a))return lOt(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=o}if(function(e){var t,n,r,i,o=e&&tOt(e),a=null===(t=o)||void 0===t?void 0:t.host,s=!1;if(o&&o!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!s&&a;){var l,u,c;s=!(null===(u=a=null===(l=o=tOt(a))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},fOt=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=oOt(e);return n<0&&t&&!iOt(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(aOt).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)};const hOt="tabbable";P7e({key:hOt,renderAfterEditable:function(){const e=Ktt(),{query:t,globalEventListener:n,insertTabbableEntries:r,isTabbable:i}=$tt(e,hOt);return(0,c.useEffect)((()=>{const o=j5e(e,e);if(!o)return;const a=a=>{var s;if("Tab"!==a.key||a.defaultPrevented||null==t||!t(e,a))return;const l=null==r?void 0:r(e,a);if(n&&a.target&&![o,...l.map((({domNode:e})=>e))].some((e=>e.contains(a.target))))return;const u=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rOt([e],t.includeContainer,{filter:cOt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:dOt}):function(e,t,n){if(nOt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Kvt));return t&&eOt.call(e,Kvt)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,cOt.bind(null,t)),fOt(n)}(o),c=u.map((t=>{const n=((e,t)=>{try{return p4e.toSlateNode(e,t)}catch(e){}})(e,t);if(n)return{domNode:t,slateNode:n,path:R5e(e,n)}})).filter((t=>t&&(null==i?void 0:i(e,t)))),d=[...l,...c].sort(((e,t)=>wJe.compare(e.path,t.path))),{activeElement:f}=document,h=null!==(s=f&&d.find((e=>e.domNode===f)))&&void 0!==s?s:null,p=((e,{tabbableEntries:t,activeTabbableEntry:n,direction:r})=>{var i,o;if(n){const i=t.indexOf(n),o=t[i+("forward"===r?1:-1)];if(o&&wJe.equals(n.path,o.path))return{type:"dom-node",domNode:o.domNode};if("forward"===r){const t=$1e(e,n.path);return t?{type:"path",path:t.path}:null}return{type:"path",path:L1e(e,n.path).path}}const a=(null===(i=e.selection)||void 0===i||null===(o=i.anchor)||void 0===o?void 0:o.path)||[],s="forward"===r?t.find((e=>!wJe.isBefore(e.path,a))):[...t].reverse().find((e=>wJe.isBefore(e.path,a)));return s?{type:"dom-node",domNode:s.domNode}:null})(e,{tabbableEntries:d,activeTabbableEntry:h,direction:a.shiftKey?"backward":"forward"});if(p)switch(a.preventDefault(),p.type){case"path":A5e(e,{anchor:{path:p.path,offset:0},focus:{path:p.path,offset:0}});break;case"dom-node":p.domNode.focus()}else u.forEach((e=>{const t=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),setTimeout((()=>{t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}),0)}))},s=n?document.body:o;return s.addEventListener("keydown",a,!0),()=>s.removeEventListener("keydown",a,!0)}),[e,n,i,r,t]),null},options:{query:()=>!0,globalEventListener:!1,insertTabbableEntries:()=>[],isTabbable:(e,t)=>j1e(e,t.slateNode)}});const pOt=P7e({key:"trailingBlock",withOverrides:(e,{options:{type:t=G7e(e,N7e),level:n,...r}})=>{const{normalizeNode:i}=e;return e.normalizeNode=([o,a])=>{if(0===a.length){const i=((e,t)=>{const{children:n}=e,r=n.at(-1);if(!r)return;const[,i]=((e,t)=>UJe.last(e,[]))(e);return[Snt(r,t-1),i.slice(0,t+1)]})(e,n),o=null==i?void 0:i[0];if(!o||o.type!==t&&f2e(i,r)){const t=i?wJe.next(i[1]):[0];return void pot(e,e.blockFactory({},t),{at:t})}}return i([o,a])},e},options:{level:0},then:e=>({type:G7e(e,N7e)})});var mOt={categories:[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","robot_face","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","kiss","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","brown_heart","black_heart","white_heart","100","anger","boom","dizzy","sweat_drops","dash","hole","bomb","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","mushroom","peanuts","beans","chestnut","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","8ball","crystal_ball","magic_wand","nazar_amulet","hamsa","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","gun","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],emojis:{100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous","oops","huh"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},kiss:{id:"kiss",name:"Kiss Mark",keywords:["face","lips","love","like","affection","valentines"],skins:[{unified:"1f48b",native:"💋"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["{this.grid.addSection(e,new _Ot(e,this.settings.perLine.value),this.elements)})),this.grid}}class POt{constructor(e=mOt){bOt(this,"_hash",{}),bOt(this,"_keys",[]),bOt(this,"_emojis",void 0),this._emojis=e.emojis,this.init()}init(){Object.values(this._emojis).forEach((e=>{const t=this.createSearchableString(e);this._keys.push(t),this._hash[t]=e.id}))}createSearchableString(e){const{id:t,name:n,keywords:r}=e;return`${t},${this.getName(n)},${r.join(",")}`}getName(e){return e.toLowerCase().split(" ").join(",")}get keys(){return this._keys}getEmoji(e){return this._emojis[e]}getEmojiId(e){return this._hash[e]}}class EOt extends POt{constructor(e,t,n=mOt){var r;super(n),this.settings=e,this.localStorage=t,this.library=n,bOt(this,"categories",yOt),bOt(this,"emojis",{}),bOt(this,"grid",void 0),this.categories=null!==(r=e.categories.value)&&void 0!==r?r:this.categories,this.initEmojis(n.categories),this.grid=new SOt(this.localStorage,this.categories,this.emojis,e).build()}static getInstance(e,t,n=mOt){return EOt.instance||(EOt.instance=new EOt(e,t,n)),EOt.instance}initEmojis(e){for(const t of e)this.emojis[t.id]=t.emojis}updateFrequentCategory(e){this.localStorage.update(e),this.grid.updateSection(gOt.Frequent,this.localStorage.getList())}getGrid(){return this.grid}indexOf(e){const t=this.grid.indexOf(e);return t<1?0:t}}bOt(EOt,"instance",void 0),new Map;class COt{constructor(e){this.library=e,bOt(this,"result",[]),bOt(this,"scores",{}),bOt(this,"maxResult",60),bOt(this,"input",void 0)}search(e){this.input=e.toLowerCase();const t=this.input;return t?(this.createSearchResult(t),this.sortResultByScores(this.result,this.scores)):(this.scores={},this.result=[]),this}createSearchResult(e){this.scores={},this.result=[];for(const t of this.library.keys){const n=t.indexOf(`${e}`);if(-1===n)continue;const r=this.library.getEmojiId(t);this.result.push(r),this.scores[r]||(this.scores[r]=0),this.scores[r]+=r===e?0:n+1}}sortResultByScores(e,t){e.sort(((e,n)=>{const r=t[e],i=t[n];return r===i?e.localeCompare(n):r-i}))}hasFound(e=!1){return e&&this.input?this.result.includes(this.input):this.result.length>0}get(){const e=[];for(const n of this.result){var t;const r=null===(t=this.library)||void 0===t?void 0:t.getEmoji(n);if(e.push(this.transform(r)),e.length>=this.maxResult)break}return e}getEmoji(){return this.get()[0]}}class TOt extends COt{constructor(e){super(e),this.library=e}static getInstance(e){return TOt.instance||(TOt.instance=new TOt(e)),TOt.instance}transform(e){return e}}bOt(TOt,"instance",void 0);class $Ot extends COt{constructor(e){super(e),this.library=e}static getInstance(){return $Ot.instance||($Ot.instance=new $Ot(new POt)),$Ot.instance}transform(e){const{id:t,name:n,skins:r}=e;return{key:t,text:n,data:{id:t,emoji:r[0].native,name:n,text:n}}}}bOt($Ot,"instance",void 0);const QOt=e=>!!e&&/\s/.test(e),ROt=(e,t)=>t?I1e(e,F1e(e,t,Q1e(e,t))):void 0,AOt=(e,t)=>t?Q1e(e,t):void 0,jOt=(e,t)=>{const n=AOt(e,t);return(null==t?void 0:t.path[0])!==(null==n?void 0:n.path[0])};P7e({key:vOt,withOverrides:(e,{options:{id:t,emojiTriggeringController:n}})=>{const r=$Ot.getInstance(),i=((e,t)=>({char:n="",action:r="insert"}={})=>{const{selection:i}=e;if(!i||!e2e(i)||QOt(n))return void t.setIsTriggering(!1);let o,a,s=i.anchor,l=n;do{if(a=ROt(e,s),l=a+l,o=AOt(e,s),jOt(e,s))break;s=o}while(!QOt(a));l=l.trim(),"delete"===r&&(l=l.slice(0,-1)),t.setText(l)})(e,n),{apply:o,insertText:a,deleteBackward:s,deleteForward:l}=e;return e.insertText=t=>{const{selection:n}=e;return e2e(n)?(i({char:t}),a(t)):a(t)},e.deleteBackward=e=>(i({action:"delete"}),s(e)),e.deleteForward=e=>(i(),l(e)),e.apply=i=>{if(o(i),null==n||!n.hasTriggeringMark)return;const a=n.getText();switch(i.type){case"set_selection":n.reset(),Dlt.reset();break;case"insert_text":if(n.hasEnclosingTriggeringMark()&&r.search(a).hasFound(!0)){const t=r.getEmoji();t&&(({key:e=vOt}={})=>(t,n)=>{const{options:{createEmoji:r,emojiTriggeringController:i}}=Z7e(t,e);return w1e(t,(()=>{((e,t)=>{o1e.withoutMerging(e,t)})(t,(()=>_1e(t,{distance:i.setIsTriggering(!1).getTextSize(),reverse:!0})));const e=r(n);i2e(t,e)})),Dlt.reset()})()(e,t);break}if(!n.hasEnclosingTriggeringMark()&&n.isTriggering&&r.search(a).hasFound()){Dlt.items(r.search(a).get()),Dlt.open({activeId:t,text:"",targetRange:e.selection});break}n.reset(),Dlt.reset();break;case"remove_text":if(n.isTriggering&&r.search(a).hasFound()){Dlt.items(r.search(a).get()),Dlt.open({activeId:t,text:"",targetRange:e.selection});break}n.reset(),Dlt.reset()}},e},options:{trigger:":",createEmoji:e=>e.data.emoji,emojiTriggeringController:new class{constructor(e=OOt){this.options=e,bOt(this,"_isTriggering",!1),bOt(this,"_hasTriggeringMark",!1),bOt(this,"text",""),bOt(this,"pos",void 0)}get isTriggering(){return this._isTriggering}setIsTriggering(e){return this._isTriggering=e,this}get hasTriggeringMark(){return this._hasTriggeringMark}hasEnclosingTriggeringMark(){return this.endsWithEnclosingMark(this.text)}setText(e){return this._hasTriggeringMark=this.startsWithTriggeringMark(e),this.setIsTriggering(this._hasTriggeringMark&&e.length>this.options.limitTriggeringChars),this.text=this.isTriggering?e:"",this}startsWithTriggeringMark(e){return new RegExp(`^${this.options.trigger}`).test(e)}endsWithEnclosingMark(e){return new RegExp(`${this.options.trigger}$`).test(e)}getText(){return this.text.replaceAll(/(^:)|(:$)/g,"")}getTextSize(){return this.text.length}reset(){return this.text="",this.setIsTriggering(!1),this._hasTriggeringMark=!1,this}}},then:(e,{key:t,options:{trigger:n,createEmoji:r,emojiTriggeringController:i}})=>({options:{id:t,trigger:n,createEmoji:r,emojiTriggeringController:i}})});var DOt=__webpack_require__(48494);function MOt(e,t,...n){if(void 0!==DOt&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function IOt(e,t,n){return t.split(".").reduce(((e,t)=>e&&e[t]?e[t]:n||null),e)}function zOt(e){return"object"==typeof e}const WOt="dnd-core/INIT_COORDS",NOt="dnd-core/BEGIN_DRAG",LOt="dnd-core/PUBLISH_DRAG_SOURCE",FOt="dnd-core/HOVER",UOt="dnd-core/DROP",XOt="dnd-core/END_DRAG";function qOt(e,t){return{type:WOt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const BOt={type:WOt,payload:{clientOffset:null,sourceClientOffset:null}};function VOt(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:i,getSourceClientOffset:o}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(qOt(i)),function(e,t,n){MOt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){MOt(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(BOt);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){MOt("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(l)}e.dispatch(qOt(i,u));const c=s.getSource(l).beginDrag(a,l);if(null==c)return;!function(e){MOt(zOt(e),"Item must be an object.")}(c),s.pinSource(l);const d=s.getSourceType(l);return{type:NOt,payload:{itemType:d,item:c,sourceId:l,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function YOt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZOt(e){for(var t=1;t{const a=function(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return function(e){MOt(void 0===e||zOt(e),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===t?{}:r.getDropResult()),o}(i,o,r,n),s={type:UOt,payload:{dropResult:ZOt({},t,a)}};e.dispatch(s)}))}}function HOt(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){MOt(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:XOt}}}function KOt(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function JOt(e){return function(t,{clientOffset:n}={}){!function(e){MOt(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r];KOt(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){MOt(t.isDragging(),"Cannot call hover while not dragging."),MOt(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t{const o=n[i];var a;return r[i]=(a=o,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function nyt(e,t){return{x:e.x-t.x,y:e.y-t.y}}const ryt=[],iyt=[];ryt.__IS_NONE__=!0,iyt.__IS_ALL__=!0;class oyt{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;MOt("function"==typeof e,"listener must be a function."),MOt(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===r||i===r+1&&!function(e,t){if(e===ryt)return!1;if(e===iyt||void 0===t)return!0;const n=(r=e,t.filter((e=>r.indexOf(e)>-1)));var r;return n.length>0}(t.dirtyHandlerIds,n);o||e()}finally{r=i}}))}subscribeToOffsetChange(e){MOt("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return MOt(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return MOt(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(KOt(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return MOt(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!KOt(r,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const a=o.indexOf(e);return n?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?nyt(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?nyt(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const ayt="undefined"!=typeof global?global:self,syt=ayt.MutationObserver||ayt.WebKitMutationObserver;function lyt(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const uyt="function"==typeof syt?function(e){let t=1;const n=new syt(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:lyt;class cyt{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const dyt=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let t=0,n=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=uyt(this.flush),this.requestErrorThrow=lyt((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},fyt=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new cyt(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(dyt.registerPendingError),hyt="dnd-core/ADD_SOURCE",pyt="dnd-core/ADD_TARGET",myt="dnd-core/REMOVE_SOURCE",gyt="dnd-core/REMOVE_TARGET";function vyt(e,t){t&&Array.isArray(e)?e.forEach((e=>vyt(e,!1))):MOt("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Oyt;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Oyt||(Oyt={}));let yyt=0;function byt(e){switch(e[0]){case"S":return Oyt.SOURCE;case"T":return Oyt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function wyt(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}class kyt{addSource(e,t){vyt(e),function(e){MOt("function"==typeof e.canDrag,"Expected canDrag to be a function."),MOt("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),MOt("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(Oyt.SOURCE,e,t);return this.store.dispatch(function(e){return{type:hyt,payload:{sourceId:e}}}(n)),n}addTarget(e,t){vyt(e,!0),function(e){MOt("function"==typeof e.canDrop,"Expected canDrop to be a function."),MOt("function"==typeof e.hover,"Expected hover to be a function."),MOt("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(Oyt.TARGET,e,t);return this.store.dispatch(function(e){return{type:pyt,payload:{targetId:e}}}(n)),n}containsHandler(e){return wyt(this.dragSources,e)||wyt(this.dropTargets,e)}getSource(e,t=!1){return MOt(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return MOt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return MOt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return MOt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return byt(e)===Oyt.SOURCE}isTargetId(e){return byt(e)===Oyt.TARGET}removeSource(e){var t;MOt(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:myt,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},dyt.enqueueTask(fyt.create(t))}removeTarget(e){MOt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:gyt,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);MOt(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){MOt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(yyt++).toString();switch(e){case Oyt.SOURCE:return`S${t}`;case Oyt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===Oyt.SOURCE?this.dragSources.set(r,n):e===Oyt.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const xyt=(e,t)=>e===t;function _yt(e=ryt,t){switch(t.type){case FOt:break;case hyt:case pyt:case gyt:case myt:return ryt;default:return iyt}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach(((e,t)=>{1===e&&i.push(t)})),i}(n,r),o=i.length>0||!function(e,t,n=xyt){if(e.length!==t.length)return!1;for(let r=0;re!==i)))});case UOt:return Tyt({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case XOt:return Tyt({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function Ryt(e=0,t){switch(t.type){case hyt:case pyt:return e+1;case myt:case gyt:return e-1;default:return e}}function Ayt(e=0){return e+1}function jyt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dyt(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]);const[r,i]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=function(e,t=Fyt(),n,r){const i=t;return i[Nyt]||(i[Nyt]={dragDropManager:Iyt(e,t,n,r)}),i[Nyt]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(n);return(0,c.useEffect)((()=>{if(i){const e=Fyt();return++Wyt,()=>{0==--Wyt&&(e[Nyt]=null)}}}),[]),(0,lM.jsx)(zyt.Provider,{value:r,children:t})}));function Fyt(){return"undefined"!=typeof global?global:window}function Uyt(e){let t=null;return()=>(null==t&&(t=e()),t)}class Xyt{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const i=[];return n.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class qyt{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Byt="__NATIVE_FILE__",Vyt="__NATIVE_URL__",Yyt="__NATIVE_TEXT__",Zyt="__NATIVE_HTML__";function Gyt(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const Hyt={[Byt]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Zyt]:{exposeProperties:{html:(e,t)=>Gyt(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Vyt]:{exposeProperties:{urls:(e,t)=>Gyt(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Yyt]:{exposeProperties:{text:(e,t)=>Gyt(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Kyt(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Hyt).filter((e=>{const n=Hyt[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const Jyt=Uyt((()=>/firefox/i.test(navigator.userAgent))),ebt=Uyt((()=>Boolean(window.safari)));class tbt{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:i,c3s:o}=this;let a=t.length-1;if(e===t[a])return n[a];let s,l=0,u=o.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const r=t[s];if(re))return n[s];u=s-1}}a=Math.max(0,u);const c=e-t[a],d=c*c;return n[a]+r[a]*c+i[a]*d+o[a]*c*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;ee[t]{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return sbt({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return sbt({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(s).some((t=>s[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Hyt[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new qyt(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&rbt(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=ibt(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,i=Kyt(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,i){const o=function(e){var t;return"IMG"===e.nodeName&&(Jyt()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=rbt(o?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:l,offsetHeight:u}=e,{anchorX:c,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return ebt()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,l,u),{offsetX:p,offsetY:m}=i,g=0===m||m;return{x:0===p||p?p:new tbt([0,.5,1],[s.x,s.x/l*f,s.x+f-l]).interpolate(c),y:g?m:(()=>{let e=new tbt([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return ebt()&&o&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,i,n,{anchorX:e,anchorY:o},{offsetX:a,offsetY:s});r.setDragImage(i,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Kyt(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:ibt(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=ibt(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Kyt(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:ibt(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new obt(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Xyt(this.isNodeInDocument)}}const ubt=function(e,t,n){return new lbt(e,t,n)},cbt="font",dbt="shortcode",fbt="blockquote",hbt="bold",pbt="code-block",mbt="code",gbt="decrease-indent",vbt="delete-column",Obt="delete-row",ybt="delete-table",bbt="increase-indent",wbt="insert-column",kbt="image",xbt="file-link",_bt="insert-row",Sbt="insert-table",Pbt="italic",Ebt="ordered-list",Cbt="strikethrough",Tbt="unordered-list",$bt="shortcode",Qbt=e=>e,Rbt=()=>Htt(),Abt=()=>Ktt(),jbt=e=>Vtt(e),Dbt=e=>(e=>(u7e(e).keyEditor(),Vtt(e)))(e),Mbt=e=>u7e(e),Ibt=e=>c7e(e),zbt=e=>d7e(e),Wbt=()=>a1e(),Nbt=(e={})=>Ttt(e),Lbt=e=>P7e(e),Fbt=(e,t)=>Ctt(e,t);var Ubt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"}))}));Ubt.displayName="FormatQuote";const Xbt=UD("WidgetMarkdown_ToolbarButton",["root","active","custom-active-color","icon"]),qbt=({id:e,icon:t,tooltip:n,label:r,active:i=!1,activeColor:o,disableFocusAfterClick:a=!1,disabled:s,variant:l,onClick:u})=>{const d=Dbt(),f=(0,c.useCallback)((e=>{e.preventDefault(),d&&(u(e),a||setTimeout((()=>{A5e(d)})))}),[a,d,u]),h={};return i&&o&&(h.color=o),"menu"===l?c.createElement(OG,{key:"menu-item",onClick:f,startIcon:t},null!=r?r:n):c.createElement(GD,{key:"button","aria-label":null!=r?r:n,color:"secondary",title:null!=r?r:n,variant:"text","data-testid":`toolbar-button-${e}`,onClick:f,className:qD(Xbt.root,i&&Xbt.active,o&&Xbt["custom-active-color"]),style:h,disabled:s},c.createElement(t,{className:Xbt.icon}))},Bbt=["type","inactiveType","icon"];function Vbt(){return Vbt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{type:t,inactiveType:n,icon:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{hnt(o,{activeType:t,inactiveType:n})}),[o,n,t]);return c.createElement(qbt,Vbt({key:t,active:!(null==o||!o.selection)&&p2e(o,{match:{type:t}}),onClick:a,icon:r},i))},Zbt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Ybt,{id:"blockquote",label:n("editor.editorWidgets.markdown.quote"),tooltip:n("editor.editorWidgets.markdown.insertQuote"),icon:Ubt,type:Ust,disabled:e,variant:t})};var Gbt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"}))}));Gbt.displayName="FormatBold";const Hbt=["type","clear","icon"];function Kbt(){return Kbt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{type:t,clear:n,icon:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{Oot(o,{key:t,clear:n})}),[n,o,t]);return c.createElement(qbt,Kbt({active:!(null==o||!o.selection)&&uot(o,t),onClick:a,icon:r},i))},ewt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Jbt,{id:"bold",tooltip:n("editor.editorWidgets.markdown.bold"),type:mlt,variant:t,icon:Gbt,disabled:e})};var twt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))}));twt.displayName="Code";const nwt=({disabled:e,variant:t})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{rlt(r,{insertNodesOptions:{select:!0}})}),[r]);return c.createElement(qbt,{id:"code-block",label:n("editor.editorWidgets.markdown.codeBlock"),tooltip:n("editor.editorWidgets.markdown.insertCodeBlock"),icon:twt,onClick:i,disabled:e,variant:t})},rwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Jbt,{id:"code",tooltip:n("editor.editorWidgets.markdown.code"),type:vlt,icon:twt,disabled:e,variant:t})};var iwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M11 17h10v-2H11v2zm-8-5 4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"}))}));iwt.displayName="FormatIndentDecrease";const owt=({disabled:e,variant:t})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{But(r)}),[r]);return c.createElement(qbt,{id:"decrease-ident",tooltip:n("editor.editorWidgets.markdown.decreaseIndent"),onClick:i,icon:iwt,disabled:e,variant:t})};var awt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M13.25 25.25v-7.73l.08-.07.67-.67.67.67.08.07v7.73a.75.75 0 0 1-1.5 0Zm.08-14.45a1.83 1.83 0 0 0-.08-.07V2.75a.75.75 0 0 1 1.5 0v7.98l-.08.07-.67.67-.67-.67Zm-1.86 4.67a.75.75 0 1 0 1.06 1.06L14 15.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L15.06 14l1.47-1.47a.75.75 0 1 0-1.06-1.06L14 12.94l-1.47-1.47a.75.75 0 1 0-1.06 1.06L12.94 14l-1.47 1.47ZM3.75 3a.75.75 0 0 0 0 1.5h1.5c1.24 0 2.25 1 2.25 2.25V9.5H3.75a.75.75 0 0 0 0 1.5H7.5v6H3.75a.75.75 0 0 0 0 1.5H7.5v2.75c0 1.24-1 2.25-2.25 2.25h-1.5a.75.75 0 0 0 0 1.5h1.5A3.75 3.75 0 0 0 9 21.25V6.75A3.75 3.75 0 0 0 5.25 3h-1.5Zm19 0A3.75 3.75 0 0 0 19 6.75v14.5A3.75 3.75 0 0 0 22.75 25h2.5a.75.75 0 0 0 0-1.5h-2.5c-1.24 0-2.25-1-2.25-2.25V18.5h4.75a.75.75 0 0 0 0-1.5H20.5v-6h4.75a.75.75 0 0 0 0-1.5H20.5V6.75c0-1.24 1-2.25 2.25-2.25h2.5a.75.75 0 0 0 0-1.5h-2.5Z"}))}));awt.displayName="TableDeleteColumn";const swt=({disabled:e,variant:t})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{(e=>{if(p2e(e,{match:{type:G7e(e,Dgt)}})){const t=m1e(e,{match:{type:[G7e(e,zgt),G7e(e,Mgt)]}}),n=m1e(e,{match:{type:G7e(e,Igt)}}),r=m1e(e,{match:{type:G7e(e,Dgt)}});if(t&&n&&r&&n[0].children.length>1){const[n,i]=r,o=t[1],a=o.at(-1),s=o.slice(),l=s.length-2;w1e(e,(()=>{n.children.forEach(((t,n)=>{s[l]=n,1===t.children.length||a>t.children.length-1||P1e(e,{at:s})}));const{colSizes:t}=n;if(t){const n=[...t];n.splice(a,1),a2e(e,{colSizes:n},{at:i})}}))}}})(r)}),[r]);return c.createElement(qbt,{id:"delete-column",tooltip:n("editor.editorWidgets.markdown.table.deleteColumn"),icon:awt,onClick:i,disabled:e,variant:t})};var lwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M2.75 13.25h7.73l.07.08.67.67-.67.67-.07.08H2.75a.75.75 0 0 1 0-1.5Zm14.45.08.07-.08h7.98a.75.75 0 0 1 0 1.5h-7.98a1.83 1.83 0 0 0-.07-.08l-.67-.67.67-.67Zm-4.67-1.86a.75.75 0 1 0-1.06 1.06L12.94 14l-1.47 1.47a.75.75 0 1 0 1.06 1.06L14 15.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L15.06 14l1.47-1.47a.75.75 0 1 0-1.06-1.06L14 12.94l-1.47-1.47ZM25 3.75a.75.75 0 0 0-1.5 0v1.5c0 1.24-1 2.25-2.25 2.25H18.5V3.75a.75.75 0 0 0-1.5 0V7.5h-6V3.75a.75.75 0 0 0-1.5 0V7.5H6.75c-1.24 0-2.25-1-2.25-2.25v-1.5a.75.75 0 0 0-1.5 0v1.5A3.75 3.75 0 0 0 6.75 9h14.5A3.75 3.75 0 0 0 25 5.25v-1.5Zm0 19A3.75 3.75 0 0 0 21.25 19H6.75A3.75 3.75 0 0 0 3 22.75v2.5a.75.75 0 0 0 1.5 0v-2.5c0-1.24 1-2.25 2.25-2.25H9.5v4.75a.75.75 0 0 0 1.5 0V20.5h6v4.75a.75.75 0 0 0 1.5 0V20.5h2.75c1.24 0 2.25 1 2.25 2.25v2.5a.75.75 0 0 0 1.5 0v-2.5Z"}))}));lwt.displayName="TableDeleteRow";const uwt=({disabled:e,variant:t})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{(e=>{if(p2e(e,{match:{type:G7e(e,Dgt)}})){const t=m1e(e,{match:{type:G7e(e,Dgt)}}),n=m1e(e,{match:{type:G7e(e,Igt)}});n&&t&&t[0].children.length>1&&P1e(e,{at:n[1]})}})(r)}),[r]);return c.createElement(qbt,{id:"delete-row",tooltip:n("editor.editorWidgets.markdown.table.deleteRow"),icon:lwt,onClick:i,disabled:e,variant:t})};var cwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M3 6.75A3.75 3.75 0 0 1 6.75 3h14.5A3.75 3.75 0 0 1 25 6.75v7.75a7.49 7.49 0 0 0-1.5-.88V11h-5v2.27c-.53.14-1.03.35-1.5.6V11h-6v6h2.87c-.25.47-.46.97-.6 1.5H11v5h2.62c.24.54.53 1.04.88 1.5H6.75A3.75 3.75 0 0 1 3 21.25V6.75ZM4.5 18.5v2.75c0 1.24 1 2.25 2.25 2.25H9.5v-5h-5Zm5-1.5v-6h-5v6h5Zm14-10.25c0-1.24-1-2.25-2.25-2.25H18.5v5h5V6.75ZM17 4.5h-6v5h6v-5Zm-7.5 0H6.75c-1.24 0-2.25 1-2.25 2.25V9.5h5v-5Zm17.5 16a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Zm-9.15-3.35a.5.5 0 0 0-.7.7l2.64 2.65-2.64 2.65a.5.5 0 0 0 .7.7l2.65-2.64 2.65 2.64a.5.5 0 0 0 .7-.7l-2.64-2.65 2.64-2.65a.5.5 0 0 0-.7-.7l-2.65 2.64-2.65-2.64Z"}))}));cwt.displayName="TableDismiss";const dwt=({disabled:e,variant:t})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{(e=>{if(p2e(e,{match:{type:G7e(e,Dgt)}})){const t=m1e(e,{match:{type:G7e(e,Dgt)}});t&&P1e(e,{at:t[1]})}})(r)}),[r]);return c.createElement(qbt,{id:"delete-table",tooltip:n("editor.editorWidgets.markdown.table.deleteTable"),icon:cwt,onClick:i,disabled:e,variant:t})};var fwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"}))}));fwt.displayName="UnfoldMore";const hwt=["ownerState","children"];function pwt(){return pwt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t;const n=LD(),r=Dbt(),[i,o]=(0,c.useState)(0),a=kz(null==r?void 0:r.selection,100),s=(0,c.useMemo)((()=>a&&gwt.find((e=>p2e(r,{match:{type:e.value},at:null==a?void 0:a.anchor})))),[r,a,i]),l=(0,c.useCallback)(((e,t)=>{t&&(null==s?void 0:s.value)!==t&&(hnt(r,{activeType:t}),o((e=>e+1)))}),[r,null==s?void 0:s.value]);return c.createElement("div",{className:qD(mwt.root,e&&mwt.disabled)},c.createElement(aye,{value:null!==(t=null==s?void 0:s.value)&&void 0!==t?t:hlt,onChange:l,disabled:e,slots:{root:vwt},slotProps:{popper:{disablePortal:!1,className:qD(mwt.popper,"CMS_Scrollbar_root","CMS_Scrollbar_secondary")}},"data-testid":"font-type-select"},gwt.map((e=>{var t;const r=(null!==(t=null==s?void 0:s.value)&&void 0!==t?t:hlt)===e.value;return c.createElement(cye,{key:e.value,value:e.value,slotProps:{root:{className:qD(mwt.option,r&&mwt["option-selected"])}}},c.createElement("span",{className:mwt["option-label"]},n(e.label)))}))))};var ywt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"}))}));ywt.displayName="FormatIndentIncrease";const bwt=({disabled:e,variant:t})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{qut(r)}),[r]);return c.createElement(qbt,{id:"increase-ident",tooltip:n("editor.editorWidgets.markdown.increaseIndent"),onClick:i,icon:ywt,disabled:e,variant:t})};var wwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M4.5 3.75a.75.75 0 0 0-1.5 0v20.5a.75.75 0 0 0 1.5 0V3.75Zm20.5 0a.75.75 0 0 0-1.5 0v20.5a.75.75 0 0 0 1.5 0V3.75ZM11.75 3A2.75 2.75 0 0 0 9 5.75v16.5A2.75 2.75 0 0 0 11.75 25h4.5A2.75 2.75 0 0 0 19 22.25V5.75A2.75 2.75 0 0 0 16.25 3h-4.5ZM10.5 5.75c0-.69.56-1.25 1.25-1.25h4.5c.69 0 1.25.56 1.25 1.25V10h-7V5.75Zm0 5.75h7v5h-7v-5Zm0 6.5h7v4.25c0 .69-.56 1.25-1.25 1.25h-4.5c-.69 0-1.25-.56-1.25-1.25V18Z"}))}));wwt.displayName="TableInsertColumn";const kwt=({disabled:e,variant:t})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{lpt(r)}),[r]);return c.createElement(qbt,{id:"insert-column",tooltip:n("editor.editorWidgets.markdown.table.insertColumn"),icon:wwt,onClick:i,disabled:e,variant:t})};var xwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}))}));xwt.displayName="Image";const _wt=({variant:e,field:t,collection:n,currentValue:r,disabled:i})=>{var o;const a=LD(),[s,l]=(0,c.useState)(),u=Dbt(),d=(0,c.useCallback)((e=>{if(Ne(e.path)){const r={type:fdt,url:e.path,children:[{text:""}]},i=m1e(u,{at:null==s?void 0:s.focus,match:{type:fdt}});var t,n;if(i)return void(e.path===(null===(t=i[0])||void 0===t?void 0:t.url)&&e.alt===(null===(n=i[0])||void 0===n?void 0:n.alt)||a2e(u,{url:e.path,alt:e.alt},{at:i[1]}));a2e(u,r,{at:null==s?void 0:s.focus})}}),[u,s]),f=(0,c.useMemo)((()=>{var e;return null===(e=t.choose_url)||void 0===e||e}),[t.choose_url]),h=$z({path:null!==(o=null==r?void 0:r.url)&&void 0!==o?o:"",alt:null==r?void 0:r.alt},{collection:n,field:t,forImage:!0,insertOptions:{chooseUrl:f,showAlt:!0}},d),p=(0,c.useCallback)((()=>{l(u.selection),h()}),[u.selection,h]);return c.createElement(qbt,{id:"image",label:a("editor.editorWidgets.markdown.image"),tooltip:a("editor.editorWidgets.markdown.insertImage"),icon:xwt,onClick:p,disabled:i,variant:e})};var Swt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}))}));Swt.displayName="Link";const Pwt=({variant:e,field:t,collection:n,currentValue:r,disabled:i})=>{var o,a;const s=LD(),l=Dbt(),u=(0,c.useCallback)((({path:e,alt:t})=>{var n;const r=null===(n=l.selection)||void 0===n?void 0:n.focus.path;if(Ne(e)&&r){const n=Ne(t)?t:e,i=Y1e(l,r);if(i&&i.type===kct)return void(e===i.url&&n===i.children[0].text||(a2e(l,{url:e,children:[{text:t}]},{at:r}),n!==I1e(l,r)&&vot(l,{at:r,nodes:{text:n},insertOptions:{select:!0}})));_1e(l,{at:l.selection}),vct(l,{url:e,text:n},{at:l.selection})}}),[l]),d=(0,c.useMemo)((()=>{var e;return null===(e=t.choose_url)||void 0===e||e}),[t.choose_url]),f=!(null==l||!l.selection)&&p2e(l,{match:{type:kct}}),h=l.selection?aot(l):"",p=Wz(),m=$z({path:null!==(o=null==r?void 0:r.url)&&void 0!==o?o:"",alt:null!==(a=null==r?void 0:r.alt)&&void 0!==a?a:h},{collection:n,field:t,controlID:p,forImage:!1,insertOptions:{chooseUrl:d,showAlt:!0}},u),g=(0,c.useCallback)((()=>{m()}),[m]);return f?null:c.createElement(qbt,{id:"link",label:s("editor.editorWidgets.markdown.link"),tooltip:s("editor.editorWidgets.markdown.insertLink"),icon:Swt,onClick:g,disabled:i,variant:e})};var Ewt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M3.75 23.5a.75.75 0 0 0 0 1.5h20.5a.75.75 0 0 0 0-1.5H3.75Zm0-20.5a.75.75 0 0 0 0 1.5h20.5a.75.75 0 0 0 0-1.5H3.75ZM3 16.25A2.75 2.75 0 0 0 5.75 19h16.5A2.75 2.75 0 0 0 25 16.25v-4.5A2.75 2.75 0 0 0 22.25 9H5.75A2.75 2.75 0 0 0 3 11.75v4.5Zm2.75 1.25c-.69 0-1.25-.56-1.25-1.25v-4.5c0-.69.56-1.25 1.25-1.25H10v7H5.75Zm5.75 0v-7h5v7h-5Zm6.5 0v-7h4.25c.69 0 1.25.56 1.25 1.25v4.5c0 .69-.56 1.25-1.25 1.25H18Z"}))}));Ewt.displayName="TableInsertRow";const Cwt=({disabled:e,variant:t})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{upt(r)}),[r]);return c.createElement(qbt,{id:"insert-row",tooltip:n("editor.editorWidgets.markdown.table.insertRow"),icon:Ewt,onClick:i,disabled:e,variant:t})};var Twt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 28 28"},e,{ref:t}),c.createElement("path",{d:"M3 6.75A3.75 3.75 0 0 1 6.75 3h14.5A3.75 3.75 0 0 1 25 6.75v7.75a7.49 7.49 0 0 0-1.5-.88V11h-5v2.27c-.53.14-1.03.35-1.5.6V11h-6v6h2.87c-.25.47-.46.97-.6 1.5H11v5h2.62c.24.54.53 1.04.88 1.5H6.75A3.75 3.75 0 0 1 3 21.25V6.75ZM4.5 18.5v2.75c0 1.24 1 2.25 2.25 2.25H9.5v-5h-5Zm5-1.5v-6h-5v6h5Zm14-10.25c0-1.24-1-2.25-2.25-2.25H18.5v5h5V6.75ZM17 4.5h-6v5h6v-5Zm-7.5 0H6.75c-1.24 0-2.25 1-2.25 2.25V9.5h5v-5Zm17.5 16a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Zm-6-4a.5.5 0 0 0-1 0V20h-3.5a.5.5 0 0 0 0 1H20v3.5a.5.5 0 0 0 1 0V21h3.5a.5.5 0 0 0 0-1H21v-3.5Z"}))}));Twt.displayName="TableAdd";const $wt=({disabled:e,variant:t="button"})=>{const n=LD(),r=Dbt(),i=(0,c.useCallback)((()=>{((e,{rowCount:t=2,colCount:n=2,header:r}={},i={})=>{w1e(e,(()=>{if(!p2e(e,{match:{type:G7e(e,Dgt)}})&&(r2e(e,opt(e,{header:r,rowCount:t,colCount:n}),{nextBlock:!0,...i}),e.selection)){const t=wnt(e,{match:{type:G7e(e,Dgt)}});if(!t)return;((e,{at:t,edge:n,focus:r})=>{r&&A5e(e);let i=t;"start"===n&&(i=R1e(e,[])),"end"===n&&(i=C1e(e,[])),i&&E1e(e,i)})(e,{at:R1e(e,t[1])})}}))})(r,{rowCount:2,colCount:2})}),[r]);return c.createElement(qbt,{id:"insert-table",label:n("editor.editorWidgets.markdown.table.table"),tooltip:n("editor.editorWidgets.markdown.table.insertTable"),icon:Twt,onClick:i,disabled:e,variant:t})};var Qwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}))}));Qwt.displayName="FormatItalic";const Rwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Jbt,{id:"italic",tooltip:n("editor.editorWidgets.markdown.italic"),type:ylt,variant:t,icon:Qwt,disabled:e})};var Awt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"}))}));Awt.displayName="FormatListNumbered";const jwt=["type","icon"];function Dwt(){return Dwt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{type:t,icon:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{Hct(i,{type:t})}),[i,t]),a=!(null==i||!i.selection)&&Ict(i);return c.createElement(qbt,Dwt({active:!!a&&a.list[0].type===t,onClick:o,icon:n},r))},Iwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Mwt,{id:"numbered-list",tooltip:n("editor.editorWidgets.markdown.numberedList"),type:sdt,icon:Awt,disabled:e,variant:t})};var zwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}))}));zwt.displayName="DataArray";const Wwt=UD("WidgetMarkdown_ShortcodeToolbarButton",["root","label-icon","button"]),Nwt=({disabled:e})=>{const t=Dbt(),n=(0,c.useMemo)((()=>WE()),[]),r=(0,c.useCallback)((e=>()=>{r2e(t,{type:$bt,shortcode:e,args:[],children:[{text:""}]}),A5e(t)}),[t]);return c.createElement(NZ,{label:c.createElement(zwt,{className:Wwt["label-icon"],"aria-hidden":"true"}),"data-testid":"toolbar-button-shortcode",keepMounted:!0,hideDropdownIcon:!0,color:"secondary",variant:"text",rootClassName:Wwt.root,buttonClassName:Wwt.button,disabled:e,"aria-label":"add shortcode"},c.createElement(FZ,null,Object.keys(n).map((e=>{var t;const i=n[e];return c.createElement(OG,{key:`shortcode-${e}`,onClick:r(e)},null!==(t=i.label)&&void 0!==t?t:Le(e))}))))};var Lwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"}))}));Lwt.displayName="FormatStrikethrough";const Fwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Jbt,{id:"strikethrough",tooltip:n("editor.editorWidgets.markdown.strikethrough"),type:wlt,variant:t,icon:Lwt,disabled:e})};var Uwt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}))}));Uwt.displayName="FormatListBulleted";const Xwt=({disabled:e,variant:t})=>{const n=LD();return c.createElement(Mwt,{id:"bulleted-list",tooltip:n("editor.editorWidgets.markdown.bulletedList"),type:adt,icon:Uwt,disabled:e,variant:t})},qwt=UD("WidgetMarkdown_MenuToolbar",["root","button","label-icon"]);function Bwt(e,t,n,r){return e.map((e=>"string"==typeof e?Vwt(e,t,n,r,"button"):c.createElement(NZ,{key:`menu-${e.label}`,label:c.createElement(DN,{className:qwt["label-icon"],"aria-hidden":"true"}),"data-testid":`toolbar-menu-${e.label.toLowerCase().replace(" ","-")}`,keepMounted:!0,hideDropdownIcon:!0,color:"secondary",variant:"text",rootClassName:qwt.root,buttonClassName:qwt.button,disabled:r,"aria-label":"additional toolbar options dropdown"},e.groups.map(((e,i)=>0===e.items.length?null:c.createElement(FZ,{key:`group-${i}`},e.items.map((e=>Vwt(e,t,n,r,"menu")))))))))}function Vwt(e,t,n,r,i){switch(e){case"blockquote":return c.createElement(Zbt,{key:"bold",disabled:r,variant:i});case"bold":return c.createElement(ewt,{key:"bold",disabled:r,variant:i});case"code":return c.createElement(rwt,{key:"code",disabled:r,variant:i});case"code-block":return c.createElement(nwt,{key:"code",disabled:r,variant:i});case"decrease-indent":return c.createElement(bwt,{key:"decrease-indent",disabled:r,variant:i});case"delete-column":return c.createElement(swt,{key:"delete-column",disabled:r,variant:i});case"delete-row":return c.createElement(uwt,{key:"delete-row",disabled:r,variant:i});case"delete-table":return c.createElement(dwt,{key:"delete-table",disabled:r,variant:i});case"font":return"menu"===i?null:c.createElement(Owt,{key:"font",disabled:r});case"increase-indent":return c.createElement(owt,{key:"increase-indent",disabled:r,variant:i});case"insert-column":return c.createElement(kwt,{key:"insert-column",disabled:r,variant:i});case"image":return c.createElement(_wt,{key:"image",disabled:r,variant:i,collection:t,field:n});case"file-link":return c.createElement(Pwt,{key:"file-link",disabled:r,variant:i,collection:t,field:n});case"insert-row":return c.createElement(Cwt,{key:"insert-row",disabled:r,variant:i});case"insert-table":return c.createElement($wt,{key:"insert-table",disabled:r,variant:i});case"italic":return c.createElement(Rwt,{key:"italic",disabled:r,variant:i});case"ordered-list":return c.createElement(Iwt,{key:"ordered-list",disabled:r,variant:i});case"shortcode":return"menu"===i?null:c.createElement(Nwt,{key:"shortcode",disabled:r});case"strikethrough":return c.createElement(Fwt,{key:"strikethrough",disabled:r,variant:i});case"unordered-list":return c.createElement(Xwt,{key:"unordered-list",disabled:r,variant:i});default:return null}}const Ywt=UD("WidgetMarkdown_BalloonToolbar",["root","popper","content"]),Zwt=[],Gwt=[hbt,Pbt,Cbt,mbt,cbt,xbt],Hwt=[hbt,Pbt,Cbt,mbt,_bt,Obt,wbt,vbt,ybt,xbt,kbt,dbt],Kwt=[hbt,Pbt,Cbt,mbt,_bt,Obt,wbt,vbt,ybt,xbt],Jwt=({useMdx:e,containerRef:t,collection:n,field:r,disabled:i})=>{var o,a,s,l,u;const d=b5e(),f=Dbt(),h=Ytt(),[p,m]=(0,c.useState)(!1),g=pz(dI),v=(0,c.useCallback)((()=>{m(!0)}),[]),O=(0,c.useCallback)((()=>{m(!1)}),[]),y=(0,c.useRef)(null),[b,w]=(0,c.useState)(null),k=Tut();(0,c.useEffect)((()=>{0===k.x&&0===k.y||w(k)}),[k.x,k.y]);const[x,_]=(0,c.useMemo)((()=>f?[hot(f),aot(f)]:[void 0,void 0,void 0]),[f,h]),S=Y1e(f,null!==(o=null===(a=f.selection)||void 0===a?void 0:a.anchor.path)&&void 0!==o?o:[]),P=(0,c.useMemo)((()=>Boolean(h&&p2e(f,{match:{type:zgt},at:null==h?void 0:h.anchor}))),[f,h]),[E,C]=(0,c.useState)([]);(0,c.useEffect)((()=>{var e,t,o,a,s,l,u,c;g||(d||p?h&&p2e(f,{match:{type:kct},at:null==h?void 0:h.anchor})?C([]):_&&x?C(Bwt(P?null!==(e=null===(t=r.toolbar_buttons)||void 0===t?void 0:t.table_selection)&&void 0!==e?e:Kwt:null!==(o=null===(a=r.toolbar_buttons)||void 0===a?void 0:a.selection)&&void 0!==o?o:Gwt,n,r,i)):S&&(d1e(S)&&b1e(f,S)||k1e(S)&&We(S.text))?C(Bwt(P?null!==(s=null===(l=r.toolbar_buttons)||void 0===l?void 0:l.table_empty)&&void 0!==s?s:Hwt:null!==(u=null===(c=r.toolbar_buttons)||void 0===c?void 0:c.empty)&&void 0!==u?u:Zwt,n,r,i)):C([]):C([]))}),[p,d,h,f,_,x,S,e,P,t,n,r,g]);const T=(0,c.useMemo)((()=>Boolean(b&&(E.length>0||g))),[E.length,g,b]);return c.createElement(c.Fragment,null,c.createElement("div",{ref:y,className:Ywt.root,style:{top:`${null!==(s=null==b?void 0:b.y)&&void 0!==s?s:0}px`,left:`${null!==(l=null==b?void 0:b.x)&&void 0!==l?l:0}px`,width:1,height:1}}),b&&T&&y.current&&E.length>0?c.createElement(xY,{open:!0,placement:"top",anchorEl:null!==(u=y.current)&&void 0!==u?u:null,onFocus:v,onBlur:O,tabIndex:0,slots:{root:"div"},className:Ywt.popper,keepMounted:!0},c.createElement("div",{"data-testid":"balloon-toolbar",className:Ywt.content},E)):null)},ekt=q$e((0,lM.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function tkt(e){return cB("MuiAvatar",e)}dB("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const nkt=Pq("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Cq((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]})))),rkt=Pq("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ikt=Pq(ekt,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),okt=c.forwardRef((function(e,t){const n=Rq({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:o,component:a="div",slots:s={},slotProps:l={},imgProps:u,sizes:d,src:f,srcSet:h,variant:p="circular",...m}=n;let g=null;const v={...n,component:a,variant:p},O=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=c.useState(!1);return c.useEffect((()=>{if(!n&&!r)return;o(!1);let i=!0;const a=new Image;return a.onload=()=>{i&&o("loaded")},a.onerror=()=>{i&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{i=!1}}),[e,t,n,r]),i}({...u,..."function"==typeof l.img?l.img(v):l.img,src:f,srcSet:h}),y=f||h,b=y&&"error"!==O;v.colorDefault=!b,delete v.ownerState;const w=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return qN({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},tkt,t)})(v),[k,x]=zq("img",{className:w.img,elementType:rkt,externalForwardedProps:{slots:s,slotProps:{img:{...u,...l.img}}},additionalProps:{alt:r,src:f,srcSet:h,sizes:d},ownerState:v});return g=b?(0,lM.jsx)(k,{...x}):i||0===i?i:y&&r?r[0]:(0,lM.jsx)(ikt,{ownerState:v,className:w.fallback}),(0,lM.jsx)(nkt,{as:a,className:XN(w.root,o),ref:t,...m,ownerState:v,children:g})})),akt=okt,skt=UD("WidgetMarkdown_ColorButton",["root","avatar","is-bright-color","check-icon"]),lkt=({name:e,value:t,isBrightColor:n,isSelected:r,updateColor:i})=>{const o=(0,c.useCallback)((()=>{i(t)}),[i,t]);return c.createElement(B3,{title:e,disableInteractive:!0},c.createElement(ITe,{onClick:o,sx:{p:0},className:qD(skt.root,n&&skt["is-bright-color"]),"aria-label":t},c.createElement(akt,{alt:e,className:skt.avatar,sx:{background:t}},r?c.createElement(TH,{className:skt["check-icon"]}):c.createElement(c.Fragment,null," "))))},ukt=({value:e="#000000",onChange:t})=>{const n=(0,c.useRef)(null);return c.createElement("div",null,c.createElement(v$e,{onClick:function(){var e;null===(e=n.current)||void 0===e||e.click()},fullWidth:!0},"CUSTOM"),c.createElement("input",{ref:n,type:"color",onChange:function(e){null==t||t(e)},value:e}))},ckt=({color:e,colors:t,updateColor:n})=>c.createElement("div",null,t.map((({name:t,value:r,isBrightColor:i})=>c.createElement(lkt,{key:null!=t?t:r,name:t,value:r,isBrightColor:i,isSelected:e===r,updateColor:n})))),dkt=({color:e,colors:t,customColors:n,updateColor:r,updateCustomColor:i})=>{const[o,a]=(0,c.useState)(),s=(0,c.useCallback)(O0()(i,100),[i]),[l,u]=(0,c.useState)(e||"#000000");(0,c.useEffect)((()=>{!e||n.some((t=>t.value===e))||t.some((t=>t.value===e))||a(e)}),[e,t,n]);const d=(0,c.useMemo)((()=>o?[...n,{name:"",value:o,isBrightColor:!1}]:n),[o,n]),f=(0,c.useCallback)((e=>{u(e.target.value),s(e.target.value)}),[s]);return c.createElement("div",null,c.createElement(ukt,{value:l,onChange:f}),c.createElement(ckt,{color:e,colors:d,updateColor:r}))},fkt=({color:e,colors:t,customColors:n,updateColor:r,updateCustomColor:i,clearColor:o})=>c.createElement("div",null,c.createElement(dkt,{color:e,colors:t,customColors:n,updateColor:r,updateCustomColor:i}),c.createElement("div",null),c.createElement(ckt,{color:e,colors:t,updateColor:r}),c.createElement(v$e,{onClick:o,disabled:!e},"Clear")),hkt=(0,c.memo)(fkt,((e,t)=>e.color===t.color&&e.colors===t.colors&&e.customColors===t.customColors&&e.open===t.open)),pkt=hkt;var mkt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}))}));mkt.displayName="DeleteForever";const gkt=UD("WidgetMarkdown_MediaPopover",["root","content","icon","divider"]),vkt=({anchorEl:e,url:t,text:n,forImage:r=!1,collection:i,field:o,onMediaToggle:a,onMediaChange:s,onRemove:l,onFocus:u,onBlur:d})=>{XD("mediaLibraryClose",(()=>{null==a||a(!1)}));const f=(0,c.useMemo)((()=>{var e;return null===(e=o.choose_url)||void 0===e||e}),[o.choose_url]),h=(0,c.useCallback)((()=>{null==u||u()}),[u]),p=(0,c.useCallback)((()=>{null==d||d()}),[d]),m=(0,c.useCallback)((e=>{s(e),null==a||a(!1)}),[s,a]),g=$z({path:t,alt:n},{collection:i,field:o,forImage:r,insertOptions:{chooseUrl:f,showAlt:!0}},m),v=(0,c.useCallback)((e=>{e.stopPropagation()}),[]),O=Boolean(e),y=O?"edit-popover":void 0;return c.createElement(xY,{id:y,open:O,placement:"top",anchorEl:e,onFocus:h,onBlur:p,disablePortal:!0,tabIndex:0,slots:{root:"div"},className:gkt.root},c.createElement("div",{key:"edit-content",contentEditable:!1,className:gkt.content},c.createElement(GD,{onClick:g,color:"secondary",variant:"text",size:"small"},r?"Edit Image":"Edit Link"),c.createElement("div",{className:gkt.divider}),r?null:c.createElement(GD,{href:t,color:"secondary",variant:"text",size:"small",onClick:v},c.createElement(IN,{className:gkt.icon,title:"Open In New Tab"})),c.createElement(GD,{onClick:l,color:"secondary",variant:"text",size:"small"},c.createElement(mkt,{className:gkt.icon,title:"Delete"}))))},Okt=UD("WidgetMarkdown_Blockquote",["root"]),ykt=({children:e})=>c.createElement("blockquote",{className:Okt.root},e),bkt=(()=>[(0,kme.Eu)(),(0,kme.HQ)(),(0,kme.AE)(),Ime(),(0,Gfe.mi)(),(0,kme.Uw)(),(0,kme.qr)(),wme.yy.allowMultipleSelections.of(!0),(0,Gfe.nY)(),(0,Gfe.nF)(Gfe.R_,{fallback:!0}),(0,Gfe.n$)(),(0,aOe.vQ)(),(0,aOe.ys)(),(0,kme.Zs)(),(0,kme.S2)(),(0,kme.ZO)(),Ove(),kme.$f.of([...aOe.GA,...Jge,...Kve,...ege,...Gfe.e7,...aOe.B1,...OOe])])(),wkt=({id:e,lang:t,code:n})=>{const{window:r}=(0,K3.xQ)(),i=f4(),o=(0,c.useMemo)((()=>{var e;if(!t)return null;const n=null===(e=yye.find((e=>e.identifiers.includes(t))))||void 0===e?void 0:e.codemirror_mode;return n?yme(n):null}),[t]),a=(0,c.useMemo)((()=>{const e=[bkt,kme.$f.of([eve])];return o?[...e,o]:e}),[o]),s=(0,c.useCallback)((t=>{null==r||r.parent.postMessage({message:`code_block_${e}_onChange`,value:t})}),[e,r]),l=(0,c.useCallback)((()=>{null==r||r.parent.postMessage({message:`code_block_${e}_onFocus`})}),[e,null==r?void 0:r.parent]),u=(0,c.useCallback)((()=>{null==r||r.parent.postMessage({message:`code_block_${e}_onBlur`})}),[e,null==r?void 0:r.parent]),d=(0,c.useCallback)((t=>{"Backspace"===t.key&&We(n)&&(null==r||r.parent.postMessage({message:`code_block_${e}_delete`}))}),[n,e,null==r?void 0:r.parent]);return c.createElement(qOe,{value:n,height:"auto",onFocus:l,onBlur:u,onChange:s,onKeyDown:d,extensions:a,theme:i.codemirror.theme})};function kkt(){return kkt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t;const{attributes:n,nodeProps:r,element:i,editor:o,children:a}=e,s=Wz(),l="lang"in i?i.lang:"",u="code"in i&&null!==(t=i.code)&&void 0!==t?t:"",d=(0,c.useCallback)((e=>{const t=R5e(o,i);t&&a2e(o,{code:e},{at:t})}),[o,i]),f=(0,c.useCallback)((()=>{const e=R5e(o,i);e&&P1e(o,{at:e}),A5e(o)}),[o,i]);XD("message",(0,c.useCallback)((e=>{switch(e.data.message){case`code_block_${s}_onChange`:d(e.data.value);break;case`code_block_${s}_delete`:f()}}),[d,f,s]));const h=(0,c.useMemo)((()=>'\n \n \n \n \n \n \n
\n \n '),[]),[p,m]=(0,c.useState)(24),g=(0,c.useRef)(),v=(0,c.useCallback)((e=>{var t,n,r,i;const o=null!==(t=null===(n=e.current)||void 0===n||null===(r=n.contentDocument)||void 0===r||null===(i=r.body)||void 0===i?void 0:i.scrollHeight)&&void 0!==t?t:0;0!==o&&m(o)}),[]);(0,c.useEffect)((()=>v(g)),[v,g,u]),(0,c.useEffect)((()=>{setTimeout((()=>v(g)),500)}),[]);const O=pz(wG);return c.createElement(c.Fragment,null,c.createElement("div",kkt({key:O},n,r,{contentEditable:!1,className:xkt.root}),c.createElement("input",{id:s,value:null!=l?l:"",onChange:e=>{const t=e.target.value,n=R5e(o,i);n&&a2e(o,{lang:t},{at:n})},className:xkt["language-input"]}),c.createElement("div",null,c.createElement(K3.ZP,{key:`code-frame-${s}`,id:s,ref:g,style:{border:"none",width:"100%",height:p,overflow:"hidden"},initialContent:h},c.createElement(wkt,{id:s,code:u,lang:l}))),c.createElement("div",null,a)))};function Skt(){return Skt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h1",Skt({},e,n,{className:Pkt.root}),t);function Ckt(){return Ckt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h2",Ckt({},e,n,{className:Tkt.root}),t);function Qkt(){return Qkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h3",Qkt({},e,n,{className:Rkt.root}),t);function jkt(){return jkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h4",jkt({},e,n,{className:Dkt.root}),t);function Ikt(){return Ikt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h5",Ikt({},e,n,{className:zkt.root}),t);function Nkt(){return Nkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("h6",Nkt({},e,n,{className:Lkt.root}),t);function Ukt(){return Ukt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{attributes:t,children:n,nodeProps:r}=e;return c.createElement("div",Ukt({},t,r),c.createElement("hr",Ukt({contentEditable:!1},r)),n)},qkt=({collection:e,entry:t,field:n})=>({element:r,editor:i,children:o})=>{const{url:a,alt:s}=(0,c.useMemo)((()=>r),[r]),[l,u]=(0,c.useState)(!1),d=kz(l,100),[f,h]=(0,c.useState)(!1),p=(0,c.useRef)(null),[m,g]=(0,c.useState)(null),v=b5e(),O=kz(v,100),y=(0,c.useCallback)((()=>{l||f||g(null)}),[f,l]),b=(0,c.useCallback)((()=>{u(!0)}),[]),w=(0,c.useCallback)((()=>{u(!1)}),[]),k=(0,c.useCallback)((()=>{h((e=>!e))}),[]),x=(0,c.useCallback)(((e,t)=>{const n=R5e(i,r);n&&a2e(i,{[t]:e},{at:n})}),[i,r]),_=(0,c.useCallback)((()=>{const e=R5e(i,r);let t=i.prevSelection;if(e){const n=[...e,0];t={anchor:{path:n,offset:0},focus:{path:n,offset:0}}}s2e(i,t),g(p.current)}),[i,r]),S=(0,c.useCallback)((()=>{g(null)}),[]),P=Sz(a,e,n,t),E=(0,c.useCallback)((e=>{var t;x(e.path,"url"),x(null!==(t=e.alt)&&void 0!==t?t:"","alt")}),[x]),C=(0,c.useCallback)((()=>{const e=R5e(i,r);P1e(i,{at:e})}),[i,r]),T=Ytt();return(0,c.useEffect)((()=>{v||O||f||l||d||S()}),[O,d,S,v,f,l]),(0,c.useEffect)((()=>{if(!v||!T||f||l)return;const e=Y1e(i,T.anchor.path),t="children"in r&&r.children.length>0?r.children[0]:void 0;e&&(e===r||e===t?_():m&&S())}),[S,v,r,T,i,_,f,l,m]),c.createElement("span",{onBlur:y},c.createElement("img",{ref:p,src:P,alt:We(s)?void 0:s,draggable:!1,onClick:_}),c.createElement(vkt,{anchorEl:m,collection:e,field:n,url:a,text:s,onMediaChange:E,onRemove:C,forImage:!0,onFocus:b,onBlur:w,onMediaToggle:k}),o)},Bkt=["ref"];function Vkt(){return Vkt=Object.assign?Object.assign.bind():function(e){for(var t=1;tn=>{let{attributes:{ref:r},children:i,nodeProps:o,element:a,editor:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;ra),[a]),h=(0,c.useMemo)((()=>I1e(s,d)),[s,d]),[p,m]=(0,c.useState)(!1),g=kz(p,100),[v,O]=(0,c.useState)(!1),[y,b]=(0,c.useState)(null),w=b5e(),k=kz(w,100),x=(0,c.useCallback)((()=>{b(u.current)}),[]),_=(0,c.useCallback)((()=>{p||v||b(null)}),[v,p]),S=(0,c.useCallback)((()=>{m(!0)}),[]),P=(0,c.useCallback)((()=>{m(!1)}),[]),E=(0,c.useCallback)((()=>{O((e=>!e))}),[]),C=(0,c.useCallback)((e=>{b(e.currentTarget)}),[]),T=(0,c.useCallback)((()=>{s.selection&&(Oct(s),A5e(s,s.selection))}),[s]),$=Ytt(),Q=(0,c.useCallback)(((e,t)=>{const n=R5e(s,a);n&&(a2e(s,Zkt(Zkt({},a),{},{url:e,children:[{text:t}]}),{at:n}),null!=t&&t.length&&t!==I1e(s,n)&&vot(s,{at:n,nodes:{text:t},insertOptions:{select:!0}}))}),[s,a]),R=(0,c.useCallback)((e=>{var t;Q(e.path,null!==(t=e.alt)&&void 0!==t?t:"")}),[Q]),A=(0,c.useCallback)((()=>{b(null)}),[]);return(0,c.useEffect)((()=>{w||k||v||p||g||A()}),[k,g,A,w,v,p]),(0,c.useEffect)((()=>{w||k||v||p||g||A()}),[k,g,A,w,v,p]),(0,c.useEffect)((()=>{if(!w||!$||v||p)return;const e=Y1e(s,$.anchor.path),t="children"in a&&a.children.length>0?a.children[0]:void 0;e&&(e===a||e===t?x():y&&A())}),[A,w,a,$,s,x,v,p,y]),c.createElement("span",{onBlur:_},c.createElement("a",Vkt({ref:u},l,{href:f},o,{onClick:C,className:Hkt.root}),i),c.createElement(vkt,{anchorEl:y,collection:e,field:t,url:f,text:h,onMediaChange:R,onRemove:T,onFocus:S,onBlur:P,onMediaToggle:E}))},Jkt=({children:e})=>c.createElement("span",null,e),ext=UD("WidgetMarkdown_ListItem",["root","checked","checkbox"]),txt=({children:e,editor:t,element:n})=>{const r=n.checked,i=(0,c.useCallback)((e=>{const r=e.target.checked,i=R5e(t,n);i&&a2e(t,{checked:r},{at:i})}),[t,n]);return c.createElement("li",{className:qD(ext.root,r&&ext.checked)},Ie(r)?c.createElement("input",{key:`checkbox-${r}`,type:"checkbox",checked:null!=r&&r,onChange:i,className:ext.checkbox}):null,e)},nxt=UD("WidgetMarkdown_OrderedList",["root"]),rxt=({children:e})=>c.createElement("ol",{className:nxt.root},e),ixt=UD("WidgetMarkdown_UnorderedList",["root"]),oxt=({children:e})=>c.createElement("ul",{className:ixt.root},e),axt=UD("WidgetMarkdown_Paragraph",["root"]),sxt=({children:e,element:{align:t}})=>c.createElement("p",{style:{textAlign:t},className:axt.root},e);function lxt(){return lxt=Object.assign?Object.assign.bind():function(e){for(var t=1;t({element:t,editor:n,children:r})=>{const i=(0,c.useMemo)((()=>zE(t.shortcode)),[t.shortcode]),[o,a]=(0,c.useMemo)((()=>{if(!i)return[null,{}];const e=i.toProps?i.toProps(t.args):{};return[i.control,e]}),[i,t.args]),s=(0,c.useCallback)((e=>{if(!i||!i.toArgs)return;const r=R5e(n,t);r&&a2e(n,{args:i.toArgs(e)},{at:r})}),[i,n,t]);return c.createElement("span",{contentEditable:!1},o?c.createElement(o,lxt({controlProps:e,onChange:s},a)):null,r)},cxt=UD("WidgetMarkdown_Table",["root","header","body","row","header-cell","body-cell"]);function dxt(){return dxt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("td",dxt({},e,n,{className:cxt["body-cell"]}),c.createElement("div",null,t));function hxt(){return hxt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("th",hxt({},e,n,{className:cxt["header-cell"]}),c.createElement("div",null,t));function mxt(){return mxt=Object.assign?Object.assign.bind():function(e){for(var t=1;t((()=>{const e=G4e(),t=(0,c.useContext)(V4e),n=Vtt(),[r,i]=Ngt().use.selectedCells();(0,c.useEffect)((()=>{t&&!e||i(null)}),[t,n,i,e]),(0,c.useEffect)((()=>{if(e)return;const t=spt(n,{format:"cell"});if(t.length>1){const e=t.map((e=>e[0]));JSON.stringify(e)!==JSON.stringify(r)&&i(e)}else r&&i(null)}),[n,null==n?void 0:n.selection,e,r,i])})(),c.createElement("table",mxt({},e,n,{className:cxt.root}),t?c.createElement(c.Fragment,null,c.createElement("thead",{key:"thead",className:cxt.header},t[0]),c.createElement("tbody",{key:"tbody",className:cxt.body},t.slice(1))):null));function vxt(){return vxt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("tr",vxt({},e,n,{className:cxt.row}),t),yxt=UD("WidgetMarkdown_Toolbar",["root"]),bxt=[hbt,Pbt,Cbt,mbt,cbt,Tbt,Ebt,gbt,bbt,dbt,{label:"Insert",groups:[{items:[fbt,pbt]},{items:[Sbt]},{items:[kbt,xbt]}]}],wxt=({collection:e,field:t,disabled:n})=>{var r,i;const o=function(e,t,n,r){return(0,c.useMemo)((()=>Bwt(e,t,n,r)),[t,r,n,e])}(null!==(r=null===(i=t.toolbar_buttons)||void 0===i?void 0:i.main)&&void 0!==r?r:bxt,e,t,n);return c.createElement("div",{className:yxt.root},o)};function kxt(){return kxt=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("code",kxt({},e,n,{className:xxt.root}),t),Sxt={spellCheck:!1,autoFocus:!1,readOnly:!1},Pxt={inject:{props:{validTypes:[hlt,olt,alt,slt,llt,ult,clt]}}},Ext=e=>Bct(e),Cxt=(e,t)=>{if(e.selection){const n=O1e(e,e.selection);if(!n)return;const[r]=n;!d1e(r)||Tst(e,r,Bst)||Tst(e,r,Vst)||t()}},Txt=(e,t)=>{Cxt(e,(()=>Hct(e,{type:t})))},$xt=(e,t)=>{Cxt(e,(()=>e.insertText(t)))},Qxt=[{mode:"block",type:olt,match:"# ",preFormat:Ext},{mode:"block",type:alt,match:"## ",preFormat:Ext},{mode:"block",type:slt,match:"### ",preFormat:Ext},{mode:"block",type:llt,match:"#### ",preFormat:Ext},{mode:"block",type:ult,match:"##### ",preFormat:Ext},{mode:"block",type:clt,match:"###### ",preFormat:Ext},{mode:"block",type:Ust,match:"> ",preFormat:Ext},{mode:"block",type:Bst,match:"```",triggerAtBlockStart:!1,preFormat:Ext,format:e=>{rlt(e,{defaultType:G7e(e,N7e),insertNodesOptions:{select:!0}})}},{mode:"block",type:Uut,match:["---","—-","___ "],format:e=>{a2e(e,{type:Uut}),r2e(e,{type:N7e,children:[{text:""}]})}}],Rxt=[{mode:"block",type:ldt,match:["* ","- "],preFormat:Ext,format:e=>Txt(e,adt)},{mode:"block",type:ldt,match:["1. ","1) "],preFormat:Ext,format:e=>Txt(e,sdt)},{mode:"block",match:["[ ] "],format:e=>{var t,n;const r=[...null!==(t=null===(n=e.selection)||void 0===n?void 0:n.anchor.path)&&void 0!==t?t:[]].slice(0,-2);a2e(e,{type:ldt,checked:!1},{at:r})},query:e=>{var t,n,r,i;const o=Y1e(e,null!==(t=null===(n=e.selection)||void 0===n?void 0:n.anchor.path)&&void 0!==t?t:[]);if(!o||!("text"in o)||!o.text.startsWith("[ ]"))return!1;const a=[...null!==(r=null===(i=e.selection)||void 0===i?void 0:i.anchor.path)&&void 0!==r?r:[]].slice(0,-2),s=Y1e(e,a);return Boolean(s&&"type"in s&&s.type===ldt)}},{mode:"block",match:["[x] "],format:e=>{var t,n;const r=[...null!==(t=null===(n=e.selection)||void 0===n?void 0:n.anchor.path)&&void 0!==t?t:[]].slice(0,-2);a2e(e,{type:ldt,checked:!0},{at:r})},query:e=>{var t,n,r,i;const o=Y1e(e,null!==(t=null===(n=e.selection)||void 0===n?void 0:n.anchor.path)&&void 0!==t?t:[]);if(!o||!("text"in o)||!o.text.startsWith("[x]"))return!1;const a=[...null!==(r=null===(i=e.selection)||void 0===i?void 0:i.anchor.path)&&void 0!==r?r:[]].slice(0,-2),s=Y1e(e,a);return Boolean(s&&"type"in s&&s.type===ldt)}}],Axt=Rxt,jxt=[{mode:"mark",type:[mlt,ylt],match:"***"},{mode:"mark",type:[Elt,ylt],match:"__*"},{mode:"mark",type:[Elt,mlt],match:"__**"},{mode:"mark",type:[Elt,mlt,ylt],match:"___***"},{mode:"mark",type:mlt,match:"**"},{mode:"mark",type:Elt,match:"__"},{mode:"mark",type:ylt,match:"*"},{mode:"mark",type:ylt,match:"_"},{mode:"mark",type:wlt,match:"~~"},{mode:"mark",type:Slt,match:"^"},{mode:"mark",type:xlt,match:"~"},{mode:"mark",type:Fut,match:"=="},{mode:"mark",type:Fut,match:"≡"},{mode:"mark",type:vlt,match:"`"}],Dxt=[...Qxt,...Axt,...jxt,{mode:"text",match:'"',format:["“","”"]},{mode:"text",match:"'",format:["‘","’"]},{mode:"text",match:"--",format:"—"},{mode:"text",match:"...",format:"…"},{mode:"text",match:">>",format:"»"},{mode:"text",match:"<<",format:"«"},{mode:"text",match:["(tm)","(TM)"],format:"™"},{mode:"text",match:["(r)","(R)"],format:"®"},{mode:"text",match:["(c)","(C)"],format:"©"},{mode:"text",match:"™",format:"™"},{mode:"text",match:"®",format:"®"},{mode:"text",match:"©",format:"©"},{mode:"text",match:"§",format:"§"},{mode:"text",match:"->",format:"→"},{mode:"text",match:"<-",format:"←"},{mode:"text",match:"=>",format:"⇒"},{mode:"text",match:["<=","≤="],format:"⇐"},...Fst],Mxt={options:{rules:Dxt,enableUndoOnDelete:!0}},Ixt={rules:[{validNodeName:"PRE"},{validNodeName:"P",validStyle:{fontFamily:"Consolas"}}],getNode:e=>{var t;const n=null!==(t=e.textContent)&&void 0!==t?t:"";return{type:Bst,code:n,children:[{text:""}]}}},zxt=Ixt,Wxt=P7e({key:Bst,isElement:!0,deserializeHtml:zxt,options:{hotkey:["mod+opt+8","mod+shift+8"]}});function Nxt(){return Nxt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=Vtt(),i=(0,c.useRef)(new WeakMap),[o,a]=(0,c.useState)({}),s=(0,c.useCallback)((()=>{if(null==e||!e.current)return;if(!t)return;let n=0,s=0;if(e){const t=e.current.getBoundingClientRect();n=t.x,s=t.y}let l=Object.keys(o).length!==Object.keys(t).length;const u=({cursor:e})=>{const t=e.selection;if(!t)return Lxt;const o=i.current.get(t);if(o)return o;const a=((e,{range:t,xOffset:n,yOffset:r})=>{const[i,o]=RJe.edges(t),a=((e,t)=>{try{return p4e.toDOMRange(e,t)}catch(e){}})(e,t);if(!a)return[];const s=[],l=v1e(e,{at:t,match:k1e});for(const[t,u]of l){const l=j5e(e,t);if(!l||!l.parentElement)return[];const c=wJe.equals(u,i.path),d=wJe.equals(u,o.path);let f=null;if(c||d){const e=document.createRange();e.selectNode(l),c&&e.setStart(a.startContainer,a.startOffset),d&&e.setEnd(a.endContainer,a.endOffset),f=e.getClientRects()}else f=l.getClientRects();for(let e=0;e[e,u({cursor:t})])));l&&a(c)}),[e,t,r,o]);Q5e((()=>{s()}));const l=(0,c.useMemo)((()=>(({cursors:e,selectionRects:t})=>e?Object.entries(e).map((([e,n])=>{var r,i;const o=null!==(r=null==n?void 0:n.selection)&&void 0!==r?r:null,a=null!==(i=t[e])&&void 0!==i?i:Lxt,s=o?((e,t)=>{const n=t&&RJe.isCollapsed(t),r=t&&RJe.isBackward(t),i=e[r?0:e.length-1];return i?{height:i.height,top:i.top,left:i.left+(r||n?0:i.width)}:null})(a,o):null;return{...n,selection:o,caretPosition:s,selectionRects:a}})):[])({selectionRects:o,cursors:t})),[t,o]),{refresh:u}=(({containerRef:e,refreshOnResize:t,selectionRectCache:n})=>{const r=(()=>{const[,e]=(0,c.useState)(0),t=(0,c.useRef)(null),n=(0,c.useCallback)(((n=!1)=>{t.current&&!n||(n?(t.current&&(cancelAnimationFrame(t.current),t.current=null),e((e=>e+1))):t.current=requestAnimationFrame((()=>{e((e=>e+1)),t.current=null})))}),[]);return(0,c.useEffect)((()=>{t.current&&(cancelAnimationFrame(t.current),t.current=null)})),(0,c.useEffect)((()=>()=>{t.current&&cancelAnimationFrame(t.current)}),[]),n})(),i=(0,c.useCallback)(((e=!1)=>{n.current=new WeakMap,r(e)}),[r,n]);return(0,c.useEffect)((()=>{if(!t||null==e||!e.current)return;const n=new ResizeObserver((()=>i()));return n.observe(e.current),()=>n.disconnect()}),[e,i,t]),{refresh:i}})({containerRef:e,selectionRectCache:i,refreshOnResize:n});return{refresh:u,cursors:l}};function Uxt({classNames:e,onRenderCursor:t,onRenderSelectionRect:n,onRenderCaret:r,...i}){const{disableCaret:o,disableSelection:a}=i,{cursors:s}=Fxt(i),l={classNames:e,onRenderSelectionRect:n,onRenderCaret:r,disableCaret:o,disableSelection:a};return t?c.createElement(c.Fragment,null,s.map((e=>c.createElement(t,Nxt({key:e.key},l,e))))):null}function Xxt(e){return u7e().isRendered()?c.createElement(Uxt,e):null}const qxt=jHe("cursor")({cursors:{}}),Bxt=["cursors"];function Vxt(){return Vxt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{cursors:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;rt=>{if(e.isDragging)return;const n=((e,t)=>{try{return p4e.findEventRange(e,t)}catch(e){}})(e,t);n&&qxt.set.cursors({drag:{key:"drag",data:{style:{backgroundColor:"#fc00ff",backgroundImage:"linear-gradient(0deg, #fc00ff, #00dbde)",width:3}},selection:n}})},onDragLeave:()=>()=>{qxt.set.cursors({})},onDragEnd:()=>()=>{qxt.set.cursors({})},onDrop:()=>()=>{qxt.set.cursors({})}}},Jxt={one:{key:"one",data:{style:{backgroundColor:"red"}},selection:{anchor:{path:[0,0],offset:5},focus:{path:[0,0],offset:12}}},two:{key:"two",data:{style:{backgroundColor:"red"}},selection:{anchor:{path:[0,0],offset:18},focus:{path:[0,0],offset:18}}}},e_t={options:{rules:[{hotkey:"mod+enter"},{hotkey:"mod+shift+enter",before:!0},{hotkey:"enter",query:{start:!0,end:!0,allow:dlt}}]}};function t_t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n_t(e){for(var t=1;t{const t=G7e(e,u_t),n=G7e(e,c_t);if(!e.selection)return!1;const r=m1e(e,{match:{type:n}});if(!r)return!1;const[,i]=r,o=O1e(e,i);if(!o)return!1;const[a,s]=o;if(a.type!==t)return!1;let l=!1;return w1e(e,(()=>{RJe.isCollapsed(e.selection)||_1e(e);const r=q1e(e,e.selection.focus,i),o=lot(e),u=wJe.next(i),c=wJe.next(s);if(r)return pot(e,{type:t,checked:a.checked,children:[{type:n,children:[{text:""}]}]},{at:s}),void(l=!0);if(o){const r=z1e(e)||{};pot(e,{type:t,checked:a.checked,children:[{type:n,children:[n_t({text:""},r)]}]},{at:c}),E1e(e,c)}else w1e(e,(()=>{l2e(e),d2e(e,{type:t,checked:a.checked,children:[]},{at:u}),S1e(e,{at:u,to:c}),E1e(e,c),n2e(e,{edge:"start"})}));a.children.length>1&&S1e(e,{at:u,to:c.concat(1)}),l=!0})),l},o_t=e=>{if(!e.selection)return;const t=Ict(e,{});let n;if(t){const{list:r,listItem:i}=t;if(sot(e)&&(n=Vct(e,{list:r,listItem:i}),n))return!0}return!!Ect(e,Utt({options:{rules:[{types:[G7e(e,ldt)],defaultType:G7e(e,N7e),predicate:()=>!n&&sot(e),onReset:e=>Bct(e)}]}}))(Pct)||(!(n||!i_t(e))||void 0)},a_t=(e,{options:{validLiChildrenTypes:t}})=>{const{insertBreak:n,deleteBackward:r,deleteForward:i,deleteFragment:o}=e;return e.insertBreak=()=>{o_t(e)||n()},e.deleteBackward=t=>{Jct(e,t)||r(t)},e.deleteForward=t=>{edt(e,i,t)||i(t)},e.deleteFragment=()=>{ndt(e)||o()},e.insertFragment=rdt(e),e.normalizeNode=odt(e,{validLiChildrenTypes:t}),e},s_t="ul",l_t="ol",u_t="li",c_t="lic",d_t=P7e({key:"list",plugins:[{key:s_t,isElement:!0,handlers:{onKeyDown:Kct},withOverrides:a_t,deserializeHtml:{rules:[{validNodeName:"UL"}]}},{key:l_t,isElement:!0,handlers:{onKeyDown:Kct},deserializeHtml:{rules:[{validNodeName:"OL"}]}},{key:u_t,isElement:!0,deserializeHtml:{rules:[{validNodeName:"LI"}]},then:(e,{type:t})=>({inject:{pluginsByKey:{[_et]:{editor:{insertData:{preInsert:()=>p2e(e,{match:{type:t}})}}}}}})},{key:c_t,isElement:!0}]});function f_t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h_t(e){for(var t=1;t(e=hpt(e),e=ppt(e),e=Rgt(e,t),e=Agt(e),jgt(e)),b_t=P7e({key:Dgt,isElement:!0,handlers:{onKeyDown:dpt},deserializeHtml:{rules:[{validNodeName:"TABLE"}]},options:{insertColumn:(e,{fromCell:t})=>{lpt(e,{fromCell:t,disableSelect:!0})},insertRow:(e,{fromRow:t})=>{upt(e,{fromRow:t,disableSelect:!0})}},withOverrides:y_t,plugins:[{key:Igt,isElement:!0,deserializeHtml:{rules:[{validNodeName:"TR"}]}},{key:zgt,isElement:!0,deserializeHtml:{attributeNames:["rowspan","colspan"],rules:[{validNodeName:"TD"}]},props:({element:e})=>{var t,n;return{nodeProps:{colSpan:null==e||null===(t=e.attributes)||void 0===t?void 0:t.colspan,rowSpan:null==e||null===(n=e.attributes)||void 0===n?void 0:n.rowspan}}}},{key:Mgt,isElement:!0,deserializeHtml:{attributeNames:["rowspan","colspan"],rules:[{validNodeName:"TH"}]},props:({element:e})=>{var t,n;return{nodeProps:{colSpan:null==e||null===(t=e.attributes)||void 0===t?void 0:t.colspan,rowSpan:null==e||null===(n=e.attributes)||void 0===n?void 0:n.rowspan}}}}]}),w_t={options:{type:hlt}};function k_t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x_t(e){for(var t=1;t{const u=LD(),d=(0,c.useRef)(null),f=(0,c.useRef)(null),{disabled:h}=o,p=(0,c.useMemo)((()=>x_t(x_t({},{[olt]:Ekt,[alt]:$kt,[slt]:Akt,[llt]:Mkt,[ult]:Wkt,[clt]:Fkt,[hlt]:sxt,[Dgt]:gxt,[Igt]:Oxt,[Mgt]:pxt,[zgt]:fxt,[Ust]:ykt,[Bst]:_kt,[kct]:Kkt({collection:t,field:r}),[fdt]:qkt({collection:t,entry:n,field:r}),[sdt]:rxt,[adt]:oxt,[ldt]:txt,[udt]:Jkt,[$bt]:uxt({controlProps:o}),[mlt]:xst(Sot,{as:"strong"}),[ylt]:xst(Sot,{as:"em"}),[wlt]:xst(Sot,{as:"s"}),[vlt]:_xt}),{},i?{[xlt]:xst(Sot,{as:"sub"}),[Slt]:xst(Sot,{as:"sup"}),[Elt]:xst(Sot,{as:"u"})}:{[$bt]:uxt({controlProps:o})})),[t,o,n,r,i]),m=(0,c.useMemo)((()=>{const e=[plt(),Xst(),Nct(),flt(),hdt(),xct(),d_t(),b_t(),Wxt(),glt(),Olt(),blt(),klt(),Lst(Mxt),Cct(g_t),Rlt(O_t),Qlt(e_t),pOt(w_t)];return Fbt(i?[...e,Aut(),Qut(),_lt(),Plt(),Clt(),Qst(Pxt)]:[...e,v_t()],{components:p})}),[p,i]),g=Wz();return(0,c.useMemo)((()=>c.createElement("div",{className:yGe["rich-editor"]},c.createElement(Lyt,{backend:ubt},c.createElement(cnt,{id:g,key:"plate-provider",initialValue:e,plugins:m,onChange:a,readOnly:h},c.createElement("div",{key:"editor-outer_wrapper"},c.createElement(wxt,{key:"toolbar",useMdx:i,collection:t,field:r,disabled:h}),c.createElement("div",{key:"editor-wrapper",ref:d,className:yGe["plate-editor-wrapper"]},c.createElement(fnt,{key:"editor",id:g,editableProps:x_t(x_t({},Sxt),{},{placeholder:u("editor.editorWidgets.markdown.type"),onFocus:s,onBlur:l,className:yGe["plate-editor"]})},c.createElement("div",{key:"editor-inner-wrapper",ref:f},c.createElement(Jwt,{key:"balloon-toolbar",useMdx:i,containerRef:f.current,collection:t,field:r,disabled:h}),c.createElement(Hxt,{containerRef:d}))))))))),[t,r,l,s,e,a,m])};function P_t(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function E_t(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function C_t(e){const t=this.resume(),n=e.estree,r=this.stack[this.stack.length-1];"mdxFlowExpression"===r.type||r.type,this.exit(e),r.value=t,n&&(r.data={estree:n})}function T_t(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function $_t(e){return"{"+(e.value||"")+"}"}const Q_t=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],R_t={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function A_t(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function j_t(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function D_t(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||A_t(e)}const M_t=String.fromCharCode,I_t=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function z_t(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function W_t(e){return"&#x"+e.toString(16).toUpperCase()+";"}function N_t(e,t){return function(e,t){return e=e.replace(t.subset?function(e){const t=[];let n=-1;for(;++n`]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:W_t},t))}function L_t(e){return e&&"object"==typeof e?"position"in e||"type"in e?U_t(e.position):"start"in e||"end"in e?U_t(e):"line"in e||"column"in e?F_t(e):"":""}function F_t(e){return X_t(e&&e.line)+":"+X_t(e&&e.column)}function U_t(e){return F_t(e&&e.start)+"-"+F_t(e&&e.end)}function X_t(e){return e&&"number"==typeof e?e:1}const q_t=" ";function B_t(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:n,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:c,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:n,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:c,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:a,mdxJsxFlowTagNamePrimary:s,mdxJsxFlowTagNameMember:l,mdxJsxFlowTagNameLocal:u,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagExpressionAttributeValue:t,mdxJsxFlowTagAttributeNamePrimary:h,mdxJsxFlowTagAttributeNameLocal:p,mdxJsxFlowTagAttributeValueLiteral:m,mdxJsxFlowTagAttributeValueLiteralValue:t,mdxJsxFlowTagAttributeValueExpression:g,mdxJsxFlowTagAttributeValueExpressionValue:t,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:O,mdxJsxTextTagClosingMarker:a,mdxJsxTextTagNamePrimary:s,mdxJsxTextTagNameMember:l,mdxJsxTextTagNameLocal:u,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagExpressionAttributeValue:t,mdxJsxTextTagAttributeNamePrimary:h,mdxJsxTextTagAttributeNameLocal:p,mdxJsxTextTagAttributeValueLiteral:m,mdxJsxTextTagAttributeValueLiteralValue:t,mdxJsxTextTagAttributeValueExpression:g,mdxJsxTextTagAttributeValueExpressionValue:t,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:O}};function e(){this.buffer()}function t(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function n(e){const t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function r(e){if(0===this.data.mdxJsxTagStack.length)throw new mae("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function i(e){if(this.data.mdxJsxTag.close)throw new mae("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(e){if(this.data.mdxJsxTag.close)throw new mae("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function a(){this.data.mdxJsxTag.close=!0}function s(e){this.data.mdxJsxTag.name=this.sliceSerialize(e)}function l(e){this.data.mdxJsxTag.name+="."+this.sliceSerialize(e)}function u(e){this.data.mdxJsxTag.name+=":"+this.sliceSerialize(e)}function c(e){const t=this.data.mdxJsxTag;i.call(this,e),t.attributes.push({type:"mdxJsxAttribute",name:"",value:null})}function d(e){const t=this.data.mdxJsxTag;i.call(this,e),t.attributes.push({type:"mdxJsxExpressionAttribute",value:""}),this.buffer()}function f(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type;const r=e.estree;n.value=this.resume(),r&&(n.data={estree:r})}function h(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type,n.name=this.sliceSerialize(e)}function p(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type,n.name+=":"+this.sliceSerialize(e)}function m(){const e=this.data.mdxJsxTag;e.attributes[e.attributes.length-1].value=function(e,t={}){const n="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,r=[];let i,o,a=0,s=-1,l="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let u,c=(i?i.line:0)||1,d=(i?i.column:0)||1,f=p();for(a--;++a<=e.length;)if(10===u&&(d=(o?o[s]:0)||1),u=e.charCodeAt(a),38===u){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||n&&i===n){l+=M_t(u),d++;continue}const o=a+1;let s,c=o,v=o;if(35===i){v=++c;const t=e.charCodeAt(v);88===t||120===t?(s="hexadecimal",v=++c):s="decimal"}else s="named";let O="",y="",b="";const w="named"===s?D_t:"decimal"===s?A_t:j_t;for(v--;++v<=e.length;){const t=e.charCodeAt(v);if(!w(t))break;b+=M_t(t),"named"===s&&Q_t.includes(b)&&(O=b,y=Xse(b))}let k=59===e.charCodeAt(v);if(k){v++;const e="named"===s&&Xse(b);e&&(O=b,y=e)}let x=1+v-o,_="";if(k||!1!==t.nonTerminated)if(b)if("named"===s){if(k&&!y)m(5,1);else if(O!==b&&(v=c+O.length,x=1+v-c,k=!1),!k){const n=O?1:3;if(t.attribute){const t=e.charCodeAt(v);61===t?(m(n,x),y=""):D_t(t)?y="":m(n,x)}else m(n,x)}_=y}else{k||m(2,x);let e=Number.parseInt(b,"hexadecimal"===s?16:10);if((h=e)>=55296&&h<=57343||h>1114111)m(7,x),_=M_t(65533);else if(e in R_t)m(6,x),_=R_t[e];else{let t="";z_t(e)&&m(6,x),e>65535&&(e-=65536,t+=M_t(e>>>10|55296),e=56320|1023&e),_=t+M_t(e)}}else"named"!==s&&m(4,x);if(_){g(),f=p(),a=v-1,d+=v-o+1,r.push(_);const n=p();n.offset++,t.reference&&t.reference.call(t.referenceContext,_,{start:f,end:n},e.slice(o-1,v)),f=n}else b=e.slice(o-1,v),l+=b,d+=b.length,a=v-1}else 10===u&&(c++,s++,d=0),Number.isNaN(u)?g():(l+=M_t(u),d++);var h;return r.join("");function p(){return{line:c,column:d,offset:a+((i?i.offset:0)||0)}}function m(e,n){let r;t.warning&&(r=p(),r.column+=n,r.offset+=n,t.warning.call(t.warningContext,I_t[e],r,e))}function g(){l&&(r.push(l),t.text&&t.text.call(t.textContext,l,{start:f,end:p()}),l="")}}(this.resume(),{nonTerminated:!1})}function g(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type;const r={type:"mdxJsxAttributeValueExpression",value:this.resume()},i=e.estree;i&&(r.data={estree:i}),n.value=r}function v(){this.data.mdxJsxTag.selfClosing=!0}function O(e){const t=this.data.mdxJsxTag,n=this.data.mdxJsxTagStack,r=n[n.length-1];if(t.close&&r.name!==t.name)throw new mae("Unexpected closing tag `"+w(t)+"`, expected corresponding closing tag for `"+w(r)+"` ("+L_t(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,y),t.selfClosing||t.close?this.exit(e,b):n.push(t)}function y(e,t){const n=this.data.mdxJsxTag,r=e?" before the end of `"+e.type+"`":"",i=e?{start:e.start,end:e.end}:void 0;throw new mae("Expected a closing tag for `"+w(n)+"` ("+L_t({start:t.start,end:t.end})+")"+r,i,"mdast-util-mdx-jsx:end-tag-mismatch")}function b(e,t){const n=this.data.mdxJsxTag;throw new mae("Expected the closing tag `"+w(n)+"` either after the end of `"+t.type+"` ("+L_t(t.end)+") or another opening tag after the start of `"+t.type+"` ("+L_t(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function w(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}function V_t(e){const t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,o=t.printWidth||Number.POSITIVE_INFINITY,a='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return s.peek=G_t,{handlers:{mdxJsxFlowElement:s,mdxJsxTextElement:s},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function s(e,t,s,l){const u="mdxJsxFlowElement"===e.type,c=!(!e.name||e.children&&0!==e.children.length),d=Z_t(Y_t(s)),f=s.createTracker(l),h=s.createTracker(l),p=[],m=(u?d:"")+"<"+(e.name||""),g=s.enter(e.type);if(f.move(m),h.move(m),e.attributes&&e.attributes.length>0){if(!e.name)throw new Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++tFue(e,a)?a:n;s=t+N_t(e,{subset:[t]})+t}o=t+(s?"=":"")+s}p.push(o)}}let v=!1;const O=p.join(" ");u&&(/\r?\n|\r/.test(O)||f.current().now.column+O.length+(c?i?2:3:1)>o)&&(v=!0);let y=f,b=m;if(v){y=h;let e=-1;for(;++e"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?b+=y.move(s.containerPhrasing(e,{...y.current(),before:">",after:"<"})):(y.shift(2),b+=y.move("\n"),b+=y.move(function(e,t,n){const r=t.indexStack,i=e.children,o=t.createTracker(n),a=Z_t(Y_t(t)),s=[];let l=-1;for(r.push(-1);++l")),g(),b}}function Y_t(e){let t=0;for(const n of e.stack)"mdxJsxFlowElement"===n&&t++;return t}function Z_t(e){return q_t.repeat(e)}function G_t(){return"<"}function H_t(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function K_t(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const r=e.estree;n.value=t,r&&(n.data={estree:r})}function J_t(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function eSt(e){return e.value||""}var tSt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],nSt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],rSt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",iSt={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},oSt="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",aSt={5:oSt,"5module":oSt+" export import",6:oSt+" const class extends export import super"},sSt=/^in(stanceof)?$/,lSt=new RegExp("["+rSt+"]"),uSt=new RegExp("["+rSt+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function cSt(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function dSt(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&lSt.test(String.fromCharCode(e)):!1!==t&&cSt(e,nSt)))}function fSt(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&uSt.test(String.fromCharCode(e)):!1!==t&&(cSt(e,nSt)||cSt(e,tSt)))))}var hSt=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function pSt(e,t){return new hSt(e,{beforeExpr:!0,binop:t})}var mSt={beforeExpr:!0},gSt={startsExpr:!0},vSt={};function OSt(e,t){return void 0===t&&(t={}),t.keyword=e,vSt[e]=new hSt(e,t)}var ySt={num:new hSt("num",gSt),regexp:new hSt("regexp",gSt),string:new hSt("string",gSt),name:new hSt("name",gSt),privateId:new hSt("privateId",gSt),eof:new hSt("eof"),bracketL:new hSt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new hSt("]"),braceL:new hSt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new hSt("}"),parenL:new hSt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new hSt(")"),comma:new hSt(",",mSt),semi:new hSt(";",mSt),colon:new hSt(":",mSt),dot:new hSt("."),question:new hSt("?",mSt),questionDot:new hSt("?."),arrow:new hSt("=>",mSt),template:new hSt("template"),invalidTemplate:new hSt("invalidTemplate"),ellipsis:new hSt("...",mSt),backQuote:new hSt("`",gSt),dollarBraceL:new hSt("${",{beforeExpr:!0,startsExpr:!0}),eq:new hSt("=",{beforeExpr:!0,isAssign:!0}),assign:new hSt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new hSt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new hSt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:pSt("||",1),logicalAND:pSt("&&",2),bitwiseOR:pSt("|",3),bitwiseXOR:pSt("^",4),bitwiseAND:pSt("&",5),equality:pSt("==/!=/===/!==",6),relational:pSt("/<=/>=",7),bitShift:pSt("<>/>>>",8),plusMin:new hSt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:pSt("%",10),star:pSt("*",10),slash:pSt("/",10),starstar:new hSt("**",{beforeExpr:!0}),coalesce:pSt("??",1),_break:OSt("break"),_case:OSt("case",mSt),_catch:OSt("catch"),_continue:OSt("continue"),_debugger:OSt("debugger"),_default:OSt("default",mSt),_do:OSt("do",{isLoop:!0,beforeExpr:!0}),_else:OSt("else",mSt),_finally:OSt("finally"),_for:OSt("for",{isLoop:!0}),_function:OSt("function",gSt),_if:OSt("if"),_return:OSt("return",mSt),_switch:OSt("switch"),_throw:OSt("throw",mSt),_try:OSt("try"),_var:OSt("var"),_const:OSt("const"),_while:OSt("while",{isLoop:!0}),_with:OSt("with"),_new:OSt("new",{beforeExpr:!0,startsExpr:!0}),_this:OSt("this",gSt),_super:OSt("super",gSt),_class:OSt("class",gSt),_extends:OSt("extends",mSt),_export:OSt("export"),_import:OSt("import",gSt),_null:OSt("null",gSt),_true:OSt("true",gSt),_false:OSt("false",gSt),_in:OSt("in",{beforeExpr:!0,binop:7}),_instanceof:OSt("instanceof",{beforeExpr:!0,binop:7}),_typeof:OSt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:OSt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:OSt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},bSt=/\r\n?|\n|\u2028|\u2029/,wSt=new RegExp(bSt.source,"g");function kSt(e){return 10===e||13===e||8232===e||8233===e}function xSt(e,t,n){void 0===n&&(n=e.length);for(var r=t;r>10),56320+(1023&e)))}var ASt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,jSt=function(e,t){this.line=e,this.column=t};jSt.prototype.offset=function(e){return new jSt(this.line,this.column+e)};var DSt=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function MSt(e,t){for(var n=1,r=0;;){var i=xSt(e,r,t);if(i<0)return new jSt(n,t-r);++n,r=i}}var ISt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},zSt=!1;var WSt=2,NSt=256,LSt=1|WSt|NSt;function FSt(e,t){return WSt|(e?4:0)|(t?8:0)}var USt=function(e,t,n){this.options=e=function(e){var t={};for(var n in ISt)t[n]=e&&TSt(e,n)?e[n]:ISt[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!zSt&&"object"==typeof console&&console.warn&&(zSt=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),$St(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return $St(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,o,a,s){var l={type:n?"Block":"Line",value:r,start:i,end:o};e.locations&&(l.loc=new DSt(this,a,s)),e.ranges&&(l.range=[i,o]),t.push(l)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=QSt(aSt[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=iSt[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=QSt(r);var i=(r?r+" ":"")+iSt.strict;this.reservedWordsStrict=QSt(i),this.reservedWordsStrictBind=QSt(i+" "+iSt.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(bSt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=ySt.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},XSt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};USt.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},XSt.inFunction.get=function(){return(this.currentVarScope().flags&WSt)>0},XSt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},XSt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},XSt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&NSt)return!1;if(t.flags&WSt)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},XSt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},XSt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},XSt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},XSt.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(WSt|NSt))>0||n},XSt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&NSt)>0},USt.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,SSt.lastIndex=e,e+=SSt.exec(this.input)[0].length,";"===this.input[e]&&e++}},qSt.eat=function(e){return this.type===e&&(this.next(),!0)},qSt.isContextual=function(e){return this.type===ySt.name&&this.value===e&&!this.containsEsc},qSt.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},qSt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},qSt.canInsertSemicolon=function(){return this.type===ySt.eof||this.type===ySt.braceR||bSt.test(this.input.slice(this.lastTokEnd,this.start))},qSt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},qSt.semicolon=function(){this.eat(ySt.semi)||this.insertSemicolon()||this.unexpected()},qSt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},qSt.expect=function(e){this.eat(e)||this.unexpected()},qSt.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var VSt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};qSt.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},qSt.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},qSt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&r<56320)return!0;if(dSt(r,!0)){for(var i=n+1;fSt(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var o=this.input.slice(n,i);if(!sSt.test(o))return!0}return!1},YSt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;SSt.lastIndex=this.pos;var e,t=SSt.exec(this.input),n=this.pos+t[0].length;return!(bSt.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(fSt(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},YSt.parseStatement=function(e,t,n){var r,i=this.type,o=this.startNode();switch(this.isLet(e)&&(i=ySt._var,r="let"),i){case ySt._break:case ySt._continue:return this.parseBreakContinueStatement(o,i.keyword);case ySt._debugger:return this.parseDebuggerStatement(o);case ySt._do:return this.parseDoStatement(o);case ySt._for:return this.parseForStatement(o);case ySt._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case ySt._class:return e&&this.unexpected(),this.parseClass(o,!0);case ySt._if:return this.parseIfStatement(o);case ySt._return:return this.parseReturnStatement(o);case ySt._switch:return this.parseSwitchStatement(o);case ySt._throw:return this.parseThrowStatement(o);case ySt._try:return this.parseTryStatement(o);case ySt._const:case ySt._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(o,r);case ySt._while:return this.parseWhileStatement(o);case ySt._with:return this.parseWithStatement(o);case ySt.braceL:return this.parseBlock(!0,o);case ySt.semi:return this.parseEmptyStatement(o);case ySt._export:case ySt._import:if(this.options.ecmaVersion>10&&i===ySt._import){SSt.lastIndex=this.pos;var a=SSt.exec(this.input),s=this.pos+a[0].length,l=this.input.charCodeAt(s);if(40===l||46===l)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===ySt._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var u=this.value,c=this.parseExpression();return i===ySt.name&&"Identifier"===c.type&&this.eat(ySt.colon)?this.parseLabeledStatement(o,u,c,e):this.parseExpressionStatement(o,c)}},YSt.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(ySt.semi)||this.insertSemicolon()?e.label=null:this.type!==ySt.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(ySt.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},YSt.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ZSt),this.enterScope(0),this.expect(ySt.parenL),this.type===ySt.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===ySt._var||this.type===ySt._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===ySt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===ySt._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var o=this.isContextual("let"),a=!1,s=new VSt,l=this.parseExpression(!(t>-1)||"await",s);return this.type===ySt._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===ySt._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&a&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,s),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},YSt.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,KSt|(n?0:JSt),!1,t)},YSt.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(ySt._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},YSt.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(ySt.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},YSt.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(ySt.braceL),this.labels.push(GSt),this.enterScope(0);for(var n=!1;this.type!==ySt.braceR;)if(this.type===ySt._case||this.type===ySt._default){var r=this.type===ySt._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(ySt.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},YSt.parseThrowStatement=function(e){return this.next(),bSt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var HSt=[];YSt.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===ySt._catch){var t=this.startNode();if(this.next(),this.eat(ySt.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLValPattern(t.param,n?4:2),this.expect(ySt.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(ySt._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},YSt.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},YSt.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ZSt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},YSt.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},YSt.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},YSt.parseLabeledStatement=function(e,t,n,r){for(var i=0,o=this.labels;i=0;s--){var l=this.labels[s];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},YSt.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},YSt.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(ySt.braceL),e&&this.enterScope(0);this.type!==ySt.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},YSt.parseFor=function(e,t){return e.init=t,this.expect(ySt.semi),e.test=this.type===ySt.semi?null:this.parseExpression(),this.expect(ySt.semi),e.update=this.type===ySt.parenR?null:this.parseExpression(),this.expect(ySt.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},YSt.parseForIn=function(e,t){var n=this.type===ySt._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(ySt.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},YSt.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(ySt.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===ySt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===ySt._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(ySt.comma))break}return e},YSt.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var KSt=1,JSt=2;function ePt(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function tPt(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}YSt.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===ySt.star&&t&JSt&&this.unexpected(),e.generator=this.eat(ySt.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&KSt&&(e.id=4&t&&this.type!==ySt.name?null:this.parseIdent(),!e.id||t&JSt||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(FSt(e.async,e.generator)),t&KSt||(e.id=this.type===ySt.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=o,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,t&KSt?"FunctionDeclaration":"FunctionExpression")},YSt.parseFunctionParams=function(e){this.expect(ySt.parenL),e.params=this.parseBindingList(ySt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},YSt.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(ySt.braceL);this.type!==ySt.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(o&&this.raise(a.start,"Duplicate constructor in the same class"),o=!0):a.key&&"PrivateIdentifier"===a.key.type&&ePt(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},YSt.parseClassElement=function(e){if(this.eat(ySt.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,o=!1,a="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(ySt.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===ySt.star?s=!0:r="static"}if(n.static=s,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==ySt.star||this.canInsertSemicolon()?r="async":o=!0),!r&&(t>=9||!o)&&this.eat(ySt.star)&&(i=!0),!r&&!o&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:r=l)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===ySt.parenL||"method"!==a||i||o){var u=!n.static&&tPt(n,"constructor"),c=u&&e;u&&"method"!==a&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=u?"constructor":a,this.parseClassMethod(n,i,o,c)}else this.parseClassField(n);return n},YSt.isClassElementNameStart=function(){return this.type===ySt.name||this.type===ySt.privateId||this.type===ySt.num||this.type===ySt.string||this.type===ySt.bracketL||this.type.keyword},YSt.parseClassElementName=function(e){this.type===ySt.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},YSt.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&tPt(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},YSt.parseClassField=function(e){if(tPt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&tPt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(ySt.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},YSt.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==ySt.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},YSt.parseClassId=function(e,t){this.type===ySt.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},YSt.parseClassSuper=function(e){e.superClass=this.eat(ySt._extends)?this.parseExprSubscripts(null,!1):null},YSt.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},YSt.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],o=0;o=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==ySt.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(ySt._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===ySt._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|KSt,!1,n)}else if(this.type===ySt._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==ySt.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,a=e.specifiers;o=13&&this.type===ySt.string){var e=this.parseLiteral(this.value);return ASt.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},YSt.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var nPt=USt.prototype;nPt.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=8&&!a&&"async"===s.name&&!this.canInsertSemicolon()&&this.eat(ySt._function))return this.overrideContext(iPt.f_expr),this.parseFunction(this.startNodeAt(i,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(ySt.arrow))return this.parseArrowExpression(this.startNodeAt(i,o),[s],!1,t);if(this.options.ecmaVersion>=8&&"async"===s.name&&this.type===ySt.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return s=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(ySt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,o),[s],!0,t)}return s;case ySt.regexp:var l=this.value;return(n=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},n;case ySt.num:case ySt.string:return this.parseLiteral(this.value);case ySt._null:case ySt._true:case ySt._false:return(n=this.startNode()).value=this.type===ySt._null?null:this.type===ySt._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case ySt.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case ySt.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(ySt.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case ySt.braceL:return this.overrideContext(iPt.b_expr),this.parseObj(!1,e);case ySt._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case ySt._class:return this.parseClass(this.startNode(),!1);case ySt._new:return this.parseNew();case ySt.backQuote:return this.parseTemplate();case ySt._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},aPt.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case ySt.parenL:return this.parseDynamicImport(e);case ySt.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},aPt.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(ySt.parenR)){var t=this.start;this.eat(ySt.comma)&&this.eat(ySt.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},aPt.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},aPt.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},aPt.parseParenExpression=function(){this.expect(ySt.parenL);var e=this.parseExpression();return this.expect(ySt.parenR),e},aPt.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,s=this.start,l=this.startLoc,u=[],c=!0,d=!1,f=new VSt,h=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==ySt.parenR;){if(c?c=!1:this.expect(ySt.comma),o&&this.afterTrailingComma(ySt.parenR,!0)){d=!0;break}if(this.type===ySt.ellipsis){a=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===ySt.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(ySt.parenR),e&&!this.canInsertSemicolon()&&this.eat(ySt.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(r,i,u,t);u.length&&!d||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(f,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,u.length>1?((n=this.startNodeAt(s,l)).expressions=u,this.finishNodeAt(n,"SequenceExpression",m,g)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,i);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},aPt.parseParenItem=function(e){return e},aPt.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var lPt=[];aPt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(ySt.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,o=this.type===ySt._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),o&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(ySt.parenL)?e.arguments=this.parseExprList(ySt.parenR,this.options.ecmaVersion>=8,!1):e.arguments=lPt,this.finishNode(e,"NewExpression")},aPt.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===ySt.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===ySt.backQuote,this.finishNode(n,"TemplateElement")},aPt.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===ySt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(ySt.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(ySt.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},aPt.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===ySt.name||this.type===ySt.num||this.type===ySt.string||this.type===ySt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===ySt.star)&&!bSt.test(this.input.slice(this.lastTokEnd,this.start))},aPt.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(ySt.braceR);){if(r)r=!1;else if(this.expect(ySt.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(ySt.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),n.properties.push(o)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},aPt.parseProperty=function(e,t){var n,r,i,o,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(ySt.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===ySt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===ySt.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(n=this.eat(ySt.star)));var s=this.containsEsc;return this.parsePropertyName(a),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(ySt.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,n,r,i,o,t,s),this.finishNode(a,"Property")},aPt.parsePropertyValue=function(e,t,n,r,i,o,a,s){if((n||r)&&this.type===ySt.colon&&this.unexpected(),this.eat(ySt.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===ySt.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===ySt.comma||this.type===ySt.braceR||this.type===ySt.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===ySt.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},aPt.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(ySt.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(ySt.bracketR),e.key;e.computed=!1}return e.key=this.type===ySt.num||this.type===ySt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},aPt.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},aPt.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|FSt(t,r.generator)|(n?128:0)),this.expect(ySt.parenL),r.params=this.parseBindingList(ySt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},aPt.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|FSt(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},aPt.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==ySt.braceL,o=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!s||(a=this.strictDirective(this.end))&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!o&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},aPt.isSimpleParamList=function(e){for(var t=0,n=e;t-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var o=this.currentScope();r=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var s=this.scopeStack[a];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],s.flags&LSt)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},cPt.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},cPt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},cPt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&LSt)return t}},cPt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&LSt&&!(16&t.flags))return t}};var fPt=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new DSt(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},hPt=USt.prototype;function pPt(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}hPt.startNode=function(){return new fPt(this,this.start,this.startLoc)},hPt.startNodeAt=function(e,t){return new fPt(this,e,t)},hPt.finishNode=function(e,t){return pPt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},hPt.finishNodeAt=function(e,t,n,r){return pPt.call(this,e,t,n,r)},hPt.copyNode=function(e){var t=new fPt(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var mPt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",gPt=mPt+" Extended_Pictographic",vPt=gPt+" EBase EComp EMod EPres ExtPict",OPt={9:mPt,10:gPt,11:gPt,12:vPt,13:vPt,14:vPt},yPt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",bPt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",wPt=bPt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",kPt=wPt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",xPt=kPt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",_Pt=xPt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",SPt={9:bPt,10:wPt,11:kPt,12:xPt,13:_Pt,14:_Pt+" Kawi Nag_Mundari Nagm"},PPt={};function EPt(e){var t=PPt[e]={binary:QSt(OPt[e]+" "+yPt),nonBinary:{General_Category:QSt(yPt),Script:QSt(SPt[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var CPt=0,TPt=[9,10,11,12,13,14];CPt=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=PPt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function RPt(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function APt(e){return e>=65&&e<=90||e>=97&&e<=122}function jPt(e){return APt(e)||95===e}function DPt(e){return jPt(e)||MPt(e)}function MPt(e){return e>=48&&e<=57}function IPt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function zPt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function WPt(e){return e>=48&&e<=55}QPt.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},QPt.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},QPt.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var o=n.charCodeAt(e+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i},QPt.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,o=n.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},QPt.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},QPt.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},QPt.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},QPt.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},$Pt.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r-1&&this.raise(e.start,"Duplicate regular expression flag")}},$Pt.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},$Pt.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},$Pt.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},$Pt.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},$Pt.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},$Pt.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},$Pt.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},$Pt.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!RPt(t)&&(e.lastIntValue=t,e.advance(),!0)},$Pt.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!RPt(n);)e.advance();return e.pos!==t},$Pt.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},$Pt.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},$Pt.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},$Pt.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=RSt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=RSt(e.lastIntValue);return!0}return!1},$Pt.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return dSt(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},$Pt.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return fSt(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},$Pt.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},$Pt.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},$Pt.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},$Pt.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},$Pt.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},$Pt.regexp_eatZero=function(e){return 48===e.current()&&!MPt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},$Pt.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},$Pt.regexp_eatControlLetter=function(e){var t=e.current();return!!APt(t)&&(e.lastIntValue=t%32,e.advance(),!0)},$Pt.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(i&&o>=55296&&o<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(o-55296)+(s-56320)+65536,!0}e.pos=a,e.lastIntValue=o}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},$Pt.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},$Pt.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},$Pt.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},$Pt.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},$Pt.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){TSt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},$Pt.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},$Pt.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";jPt(t=e.current());)e.lastStringValue+=RSt(t),e.advance();return""!==e.lastStringValue},$Pt.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";DPt(t=e.current());)e.lastStringValue+=RSt(t),e.advance();return""!==e.lastStringValue},$Pt.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},$Pt.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},$Pt.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},$Pt.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||WPt(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},$Pt.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},$Pt.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!MPt(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},$Pt.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},$Pt.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;MPt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},$Pt.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;IPt(n=e.current());)e.lastIntValue=16*e.lastIntValue+zPt(n),e.advance();return e.pos!==t},$Pt.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},$Pt.regexp_eatOctalDigit=function(e){var t=e.current();return WPt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},$Pt.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r=this.input.length?this.finishToken(ySt.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},LPt.readToken=function(e){return dSt(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},LPt.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},LPt.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=xSt(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},LPt.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&_St.test(String.fromCharCode(e))))break e;++this.pos}}},LPt.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},LPt.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(ySt.ellipsis)):(++this.pos,this.finishToken(ySt.dot))},LPt.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(ySt.assign,2):this.finishOp(ySt.slash,1)},LPt.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?ySt.star:ySt.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=ySt.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(ySt.assign,n+1):this.finishOp(r,n)},LPt.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(ySt.assign,3):this.finishOp(124===e?ySt.logicalOR:ySt.logicalAND,2):61===t?this.finishOp(ySt.assign,2):this.finishOp(124===e?ySt.bitwiseOR:ySt.bitwiseAND,1)},LPt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(ySt.assign,2):this.finishOp(ySt.bitwiseXOR,1)},LPt.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!bSt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(ySt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(ySt.assign,2):this.finishOp(ySt.plusMin,1)},LPt.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(ySt.assign,n+1):this.finishOp(ySt.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(ySt.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},LPt.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(ySt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(ySt.arrow)):this.finishOp(61===e?ySt.eq:ySt.prefix,1)},LPt.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(ySt.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(ySt.assign,3):this.finishOp(ySt.coalesce,2)}return this.finishOp(ySt.question,1)},LPt.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,dSt(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(ySt.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+RSt(e)+"'")},LPt.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(ySt.parenL);case 41:return++this.pos,this.finishToken(ySt.parenR);case 59:return++this.pos,this.finishToken(ySt.semi);case 44:return++this.pos,this.finishToken(ySt.comma);case 91:return++this.pos,this.finishToken(ySt.bracketL);case 93:return++this.pos,this.finishToken(ySt.bracketR);case 123:return++this.pos,this.finishToken(ySt.braceL);case 125:return++this.pos,this.finishToken(ySt.braceR);case 58:return++this.pos,this.finishToken(ySt.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(ySt.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(ySt.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+RSt(e)+"'")},LPt.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},LPt.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(bSt.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var o=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(o);var s=this.regexpState||(this.regexpState=new QPt(this));s.reset(n,i,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(ySt.regexp,{pattern:i,flags:a,value:l})},LPt.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),o=this.pos,a=0,s=0,l=0,u=null==t?1/0:t;l=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;s=c,a=a*e+d}}return r&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:a},LPt.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=FPt(this.input.slice(t,this.pos)),++this.pos):dSt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ySt.num,n)},LPt.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=FPt(this.input.slice(t,this.pos));return++this.pos,dSt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ySt.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),dSt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,a=(o=this.input.slice(t,this.pos),n?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(ySt.num,a)},LPt.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},LPt.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(kSt(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(ySt.string,t)};var UPt={};LPt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==UPt)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},LPt.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw UPt;this.raise(e,t)},LPt.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==ySt.template&&this.type!==ySt.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(ySt.template,e)):36===n?(this.pos+=2,this.finishToken(ySt.dollarBraceL)):(++this.pos,this.finishToken(ySt.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(kSt(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},LPt.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return kSt(t)?"":String.fromCharCode(t)}},LPt.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},LPt.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos-1&&e.test(String.fromCharCode(t))}}VPt(/\p{P}/u),VPt(/[A-Za-z]/),VPt(/[\dA-Za-z]/),VPt(/[#-'*+\--9=?A-Z^-~]/),VPt(/\d/),VPt(/[\dA-Fa-f]/),VPt(/[!-/:-@[-`{-~]/),VPt(/\s/);const YPt={}.hasOwnProperty,ZPt=Symbol("continue"),GPt=Symbol("exit"),HPt=Symbol("skip");function KPt(e){return Array.isArray(e)?e:"number"==typeof e?[ZPt,e]:[e]}function JPt(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function eEt(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function tEt(e){let t=-1;const n=[];let r;for(;++t-1?e:void 0}const oEt="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",aEt="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",sEt="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",lEt="#unexpected-type-in-code-expected-an-object-spread-spread",uEt="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",cEt="#could-not-parse-expression-with-acorn";function dEt(e,t,n,r,i,o,a,s,l,u,c){const d=this,f=this.events.length+3;let h,p,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),h=d.now(),g};function g(c){if(null===c){if(p)throw p;const e=new mae("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=oEt+aEt,e}if(qPt(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),O;if(125===c&&0===m){const m=o?fEt.call(d,o,a,i,f,h,u||!1,l||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(c),e.exit(r);const i=e.exit(n);return s&&m.estree&&Object.assign(i,{estree:m.estree}),t}return p=m.message,e.enter(i),e.consume(c),v}return e.enter(i),v(c)}function v(t){return 125===t&&0===m||null===t||qPt(t)?(e.exit(i),g(t)):(123!==t||o?125===t&&(m-=1):m+=1,e.consume(t),v)}function O(e){const t=d.now();if(t.line!==h.line&&!c&&d.parser.lazy[t.line]){const e=new mae("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=oEt+sEt,e}return g(e)}}function fEt(e,t,n,r,i,o,a){const s=function(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),o=[],a=[],s=i.onComment,l=i.onToken;let u,c,d=!1;const f=Object.assign({},i,{onComment:o,preserveParens:!0});l&&(f.onToken=a);const h=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r0&&-1===e[0];)e.shift();const t=tEt(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),p=h.value,m=n+p+r,g=t.expression&&eEt(p);if(g&&!t.allowEmpty)throw new mae("Unexpected empty expression",{place:O(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{u=t.expression&&!g?t.acorn.parseExpressionAt(m,0,f):t.acorn.parse(m,f)}catch(e){const t=e,r=O(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},c=t,d=t.raisedAt>=n.length+p.length||"Unterminated comment"===t.message}if(u&&t.expression&&!g)if(eEt(m.slice(u.end,m.length-r.length)))u={type:"Program",start:0,end:n.length+p.length,body:[{type:"ExpressionStatement",expression:u,start:0,end:n.length+p.length}],sourceType:"module",comments:[]};else{const e=O(u.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},c=t,u=void 0}if(u){if(u.comments=o,function(e,t){let n,r;n=t,function e(t,i,o,a){return JPt(t)&&(s.displayName="node ("+t.type+")"),s;function s(){const s=n?KPt(n(t,i,o,a)):[];if(s[0]===GPt)return s;if(s[0]!==HPt){let n;for(n in t)if(YPt.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let o=0;for(;o>-1&&o=p.length||(v(e),Array.isArray(l)?l.push(e):l(e))}return{estree:u,error:c,swallow:d};function v(e){const t=O(e.start),n=O(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function O(e){let r=e-n.length;r<0?r=0:r>p.length&&(r=p.length);let i=function(e,t){let n=0;for(;n-1&&e.test(String.fromCharCode(t))}}const yEt={}.hasOwnProperty,bEt=Symbol("continue"),wEt=Symbol("exit"),kEt=Symbol("skip");function xEt(e){return Array.isArray(e)?e:"number"==typeof e?[bEt,e]:[e]}function _Et(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function SEt(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function PEt(e){let t=-1;const n=[];let r;for(;++t-1?e:void 0}const $Et="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",QEt="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",REt="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",AEt="#unexpected-type-in-code-expected-an-object-spread-spread",jEt="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",DEt="#could-not-parse-expression-with-acorn";function MEt(e,t,n,r,i,o,a,s,l,u,c){const d=this,f=this.events.length+3;let h,p,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),h=d.now(),g};function g(c){if(null===c){if(p)throw p;const e=new mae("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=$Et+QEt,e}if(pEt(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),O;if(125===c&&0===m){const m=o?IEt.call(d,o,a,i,f,h,u||!1,l||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(c),e.exit(r);const i=e.exit(n);return s&&m.estree&&Object.assign(i,{estree:m.estree}),t}return p=m.message,e.enter(i),e.consume(c),v}return e.enter(i),v(c)}function v(t){return 125===t&&0===m||null===t||pEt(t)?(e.exit(i),g(t)):(123!==t||o?125===t&&(m-=1):m+=1,e.consume(t),v)}function O(e){const t=d.now();if(t.line!==h.line&&!c&&d.parser.lazy[t.line]){const e=new mae("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=$Et+REt,e}return g(e)}}function IEt(e,t,n,r,i,o,a){const s=function(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),o=[],a=[],s=i.onComment,l=i.onToken;let u,c,d=!1;const f=Object.assign({},i,{onComment:o,preserveParens:!0});l&&(f.onToken=a);const h=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r0&&-1===e[0];)e.shift();const t=PEt(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),p=h.value,m=n+p+r,g=t.expression&&SEt(p);if(g&&!t.allowEmpty)throw new mae("Unexpected empty expression",{place:O(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{u=t.expression&&!g?t.acorn.parseExpressionAt(m,0,f):t.acorn.parse(m,f)}catch(e){const t=e,r=O(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},c=t,d=t.raisedAt>=n.length+p.length||"Unterminated comment"===t.message}if(u&&t.expression&&!g)if(SEt(m.slice(u.end,m.length-r.length)))u={type:"Program",start:0,end:n.length+p.length,body:[{type:"ExpressionStatement",expression:u,start:0,end:n.length+p.length}],sourceType:"module",comments:[]};else{const e=O(u.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},c=t,u=void 0}if(u){if(u.comments=o,function(e,t){let n,r;n=t,function e(t,i,o,a){return _Et(t)&&(s.displayName="node ("+t.type+")"),s;function s(){const s=n?xEt(n(t,i,o,a)):[];if(s[0]===wEt)return s;if(s[0]!==kEt){let n;for(n in t)if(yEt.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let o=0;for(;o>-1&&o=p.length||(v(e),Array.isArray(l)?l.push(e):l(e))}return{estree:u,error:c,swallow:d};function v(e){const t=O(e.start),n=O(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function O(e){let r=e-n.length;r<0?r=0:r>p.length&&(r=p.length);let i=function(e,t){let n=0;for(;n=0&&Ooe(t)?(e.enter(d),e.enter(f),e.consume(t),z):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function I(t){return 62===t?ie(t):null!==t&&t>=0&&Ooe(t)?(e.enter(d),e.enter(f),e.consume(t),z):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function z(t){return null!==t&&t>=0&&yoe(t,{jsx:!0})?(e.consume(t),z):46===t||47===t||58===t||62===t||123===t||mEt(t)||vEt(t)?(e.exit(f),A=W,oe(t)):void le(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function W(t){return 46===t?(e.enter(h),e.consume(t),e.exit(h),A=N,oe):58===t?(e.enter(m),e.consume(t),e.exit(m),A=U,oe):47===t||62===t||123===t||null!==t&&t>=0&&Ooe(t)?(e.exit(d),B(t)):void le(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function N(t){if(null!==t&&t>=0&&Ooe(t))return e.enter(p),e.consume(t),L;le(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function L(t){return null!==t&&t>=0&&yoe(t,{jsx:!0})?(e.consume(t),L):46===t||47===t||62===t||123===t||mEt(t)||vEt(t)?(e.exit(p),A=F,oe(t)):void le(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function F(t){return 46===t?(e.enter(h),e.consume(t),e.exit(h),A=N,oe):47===t||62===t||123===t||null!==t&&t>=0&&Ooe(t)?(e.exit(d),B(t)):void le(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){if(null!==t&&t>=0&&Ooe(t))return e.enter(g),e.consume(t),X;le(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function X(t){return null!==t&&t>=0&&yoe(t,{jsx:!0})?(e.consume(t),X):47===t||62===t||123===t||mEt(t)||vEt(t)?(e.exit(g),A=q,oe(t)):void le(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function q(t){if(47===t||62===t||123===t||null!==t&&t>=0&&Ooe(t))return e.exit(d),B(t);le(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function B(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),A=re,oe):62===t?ie(t):123===t?MEt.call(R,e,V,v,O,y,r,i,o,!0,!1,a)(t):null!==t&&t>=0&&Ooe(t)?(e.enter(b),e.enter(w),e.enter(k),e.consume(t),Y):void le(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function V(e){return A=B,oe(e)}function Y(t){return null!==t&&t>=0&&yoe(t,{jsx:!0})?(e.consume(t),Y):47===t||58===t||61===t||62===t||123===t||mEt(t)||vEt(t)?(e.exit(k),A=Z,oe(t)):void le(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Z(t){return 58===t?(e.enter(x),e.consume(t),e.exit(x),A=G,oe):61===t?(e.exit(w),e.enter(S),e.consume(t),e.exit(S),A=J,oe):47===t||62===t||123===t||mEt(t)||vEt(t)||null!==t&&t>=0&&Ooe(t)?(e.exit(w),e.exit(b),A=B,oe(t)):void le(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function G(t){if(null!==t&&t>=0&&Ooe(t))return e.enter(_),e.consume(t),H;le(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function H(t){return null!==t&&t>=0&&yoe(t,{jsx:!0})?(e.consume(t),H):47===t||61===t||62===t||123===t||mEt(t)||vEt(t)?(e.exit(_),e.exit(w),A=K,oe(t)):void le(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function K(t){return 61===t?(e.enter(S),e.consume(t),e.exit(S),A=J,oe):47===t||62===t||123===t||null!==t&&t>=0&&Ooe(t)?(e.exit(b),B(t)):void le(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function J(t){return 34===t||39===t?(e.enter(P),e.enter(E),e.consume(t),e.exit(E),j=t,te):123===t?MEt.call(R,e,ee,T,$,Q,r,i,o,!1,!1,a)(t):void le(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{}`)":""))}function ee(t){return e.exit(b),A=B,oe(t)}function te(t){return null===t&&le(t,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(j)+"`"),t===j?(e.enter(E),e.consume(t),e.exit(E),e.exit(P),e.exit(b),j=void 0,A=B,oe):pEt(t)?(A=te,oe(t)):(e.enter(C),ne(t))}function ne(t){return null===t||t===j||pEt(t)?(e.exit(C),te(t)):(e.consume(t),ne)}function re(e){if(62===e)return ie(e);le(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function ie(n){return e.enter(l),e.consume(n),e.exit(l),e.exit(s),t}function oe(t){return pEt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),se):gEt(t)||vEt(t)?(e.enter("esWhitespace"),ae(t)):A(t)}function ae(t){return pEt(t)?(e.exit("esWhitespace"),oe(t)):gEt(t)||vEt(t)?(e.consume(t),ae):(e.exit("esWhitespace"),A(t))}function se(e){if(!a&&R.parser.lazy[R.now().line]){const e=new mae("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",R.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=zEt+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return oe(e)}function le(e,t,n){const r=new mae("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` ("+function(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}(e)+")")+" "+t+", expected "+n,R.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw r.url=zEt+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),r}}function NEt(e,t){return{name:"mdxJsxTextTag",tokenize:function(n,r,i){return WEt.call(this,n,r,i,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}}function LEt(e,t){return{name:"mdxJsxFlowTag",tokenize:function(n,r,i){const o=this;return a;function a(r){return function(r){return WEt.call(o,n,s,i,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(r)}(r)}function s(e){return gEt(e)?function(e,t,n,r){const i=Number.POSITIVE_INFINITY;let o=0;return function(r){return gEt(r)?(e.enter(n),a(r)):t(r)};function a(r){return gEt(r)&&o++"mdxFlowExpression"===e.name));return 60===e?a(e):123===e&&s?n.attempt(s,l,i)(e):null===e||pEt(e)?r(e):i(e)}},concrete:!0}}function FEt(e){const t=e||{},n=t.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:LEt(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:NEt(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}BEt(/\p{P}/u);const UEt=BEt(/[A-Za-z]/);function XEt(e){return null!==e&&e<-2}function qEt(e){return-2===e||-1===e||32===e}function BEt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}BEt(/[\dA-Za-z]/),BEt(/[#-'*+\--9=?A-Z^-~]/),BEt(/\d/),BEt(/[\dA-Fa-f]/),BEt(/[!-/:-@[-`{-~]/),BEt(/\s/);const VEt={tokenize:function(e,t,n){return function(t){return qEt(t)?function(e,t,n,r){const i=Number.POSITIVE_INFINITY;let o=0;return function(r){return qEt(r)?(e.enter(n),a(r)):t(r)};function a(r){return qEt(r)&&o++0)}function eCt(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function tCt(e){let t=-1;const n=[];let r;for(;++t-1?e:void 0}const oCt={tokenize:function(e,t,n){return function(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(VEt,t,n)}},partial:!0},aCt="https://github.com/micromark/micromark-extension-mdxjs-esm",sCt=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function lCt(e){const t={tokenize:function(t,i,o){const a=this,s=a.parser.definedModuleSpecifiers||(a.parser.definedModuleSpecifiers=[]),l=this.events.length+1;let u="";return a.interrupt?o:function(e){return a.now().column>1?o(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),u+=String.fromCharCode(e),c)};function c(e){return UEt(e)?(t.consume(e),u+=String.fromCharCode(e),c):"import"!==u&&"export"!==u||32!==e?o(e):(t.consume(e),d)}function d(e){return null===e||XEt(e)?(t.exit("mdxjsEsmData"),f(e)):(t.consume(e),d)}function f(e){return null===e?p(e):XEt(e)?t.check(oCt,p,h)(e):(t.enter("mdxjsEsmData"),d(e))}function h(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),f}function p(o){const u=function(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),o=[],a=[],s=i.onComment,l=i.onToken;let u,c,d=!1;const f=Object.assign({},i,{onComment:o,preserveParens:!0});l&&(f.onToken=a);const h=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r0&&-1===e[0];)e.shift();const t=tCt(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),p=h.value,m=n+p+r,g=t.expression&&eCt(p);if(g&&!t.allowEmpty)throw new mae("Unexpected empty expression",{place:O(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{u=t.expression&&!g?t.acorn.parseExpressionAt(m,0,f):t.acorn.parse(m,f)}catch(e){const t=e,r=O(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},c=t,d=t.raisedAt>=n.length+p.length||"Unterminated comment"===t.message}if(u&&t.expression&&!g)if(eCt(m.slice(u.end,m.length-r.length)))u={type:"Program",start:0,end:n.length+p.length,body:[{type:"ExpressionStatement",expression:u,start:0,end:n.length+p.length}],sourceType:"module",comments:[]};else{const e=O(u.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},c=t,u=void 0}if(u){if(u.comments=o,function(e,t){let n,r;n=t,function e(t,i,o,a){return JEt(t)&&(s.displayName="node ("+t.type+")"),s;function s(){const s=n?KEt(n(t,i,o,a)):[];if(s[0]===GEt)return s;if(s[0]!==HEt){let n;for(n in t)if(YEt.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let o=0;for(;o>-1&&o=p.length||(v(e),Array.isArray(l)?l.push(e):l(e))}return{estree:u,error:c,swallow:d};function v(e){const t=O(e.start),n=O(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function O(e){let r=e-n.length;r<0?r=0:r>p.length&&(r=p.length);let i=function(e,t){let n=0;for(;n0?"var "+s.join(",")+"\n":""});if(u.error){if(null!==o&&u.swallow)return h(o);const e=new mae("Could not parse import/exports with acorn",{cause:u.error,place:{line:u.error.loc.line,column:u.error.loc.column+1,offset:u.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw e.url=aCt+"#could-not-parse-importexports-with-acorn",e}s.length>0&&u.estree.body.shift();let c=-1;for(;++c({text:e.map((e=>null==e?void 0:e.text)).join("")});function SCt(e){return e.reduce(((e,t)=>(Object.keys(t).forEach((function(n){"children"!==n&&"type"!==n&&"text"!==n&&(e[n]=t[n])})),e)),{})}function PCt(e,t){return kCt(kCt({[mCt[e]]:!0},_Ct(t)),SCt(t))}function ECt(e,t){var n;const r=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"style"===e.name)),i={};if(r){let e={};try{var o;e=null!==(o=JSON.parse(r.value.value.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/:[ ]*[']([^']+)[']/g,': "$1"')))&&void 0!==o?o:{}}catch(e){console.error(`Error parsing font styles (${r.value.value})`,e)}Object.keys(e).map((n=>{n in t&&(i[t[n]]=e[n])}))}return i}function CCt(e,t){var n,r,i,o,a,s,l;let u=[{text:""}];const{isInTable:c=!1,isInLink:d=!1,isInTableHeaderRow:f=!1,isInBlockquote:h=!1,isInList:p=!1,tableAlign:m,useMdx:g,shortcodeConfigs:v,index:O}=null!=t?t:{},y="table"===e.type,b="link"===e.type,w="tableRow"===e.type&&0===O,k="blockquote"===e.type,x="list"===e.type,_=e.children;switch(_&&Array.isArray(_)&&_.length>0&&(u=_.flatMap(((t,n)=>CCt(kCt(kCt({},t),{},{ordered:e.ordered||t.ordered||!1}),{isInTable:y||c,isInLink:b||d,isInTableHeaderRow:w||f,isInBlockquote:k||h,isInList:x||p,useMdx:g,shortcodeConfigs:v,index:n,tableAlign:m||(y?e.align:void 0)})))),e.type){case"heading":return{type:gCt.heading[e.depth||1],children:u};case"list":return{type:e.ordered?gCt.ol_list:gCt.ul_list,children:u};case"listItem":const[t,c]=u.reduce((([e,t],n)=>"type"in n&&vCt.includes(n.type)?[e,n]:(e.push(n),[e,t])),[[],null]),m=[{type:gCt.listItemContent,children:t}];return c&&m.push(c),{type:gCt.listItem,checked:e.checked,children:m};case"paragraph":if(h||p){if(h&&O>0){if(u.length>0){let e=u[0];if("text"in e&&(e={text:`\n\n${e.text}`}),u.length>1){const[t,...n]=u;return[e,...n]}return[e]}return u}return u}return Array.isArray(u)&&1===u.length&&"type"in u[0]&&u[0].type===hlt?u[0]:{type:gCt.paragraph,children:u};case"link":return{type:gCt.link,url:e.url,children:u};case"image":return{type:gCt.image,children:[{text:""}],url:e.url,alt:e.alt};case"blockquote":const y=u.reduce(((e,t)=>{const n=e.length>0?e[e.length-1]:null;return n&&"text"in n&&n.text&&"text"in t&&t.text?e[e.length-1]={text:`${n.text}${t.text}`}:e.push(t),e}),[]);return{type:gCt.block_quote,children:y};case"code":return{type:gCt.code_block,lang:e.lang,code:e.value,children:[{text:""}]};case"html":var S;return null!==(n=e.value)&&void 0!==n&&n.includes("
")?{break:!0,type:gCt.paragraph,children:[{text:(null===(S=e.value)||void 0===S?void 0:S.replace(/
/g,""))||""}]}:{type:"p",children:[{text:null!==(r=e.value)&&void 0!==r?r:""}]};case"emphasis":return kCt(kCt({[gCt.emphasis_mark]:!0},_Ct(u)),SCt(u));case"strong":return kCt(kCt({[gCt.strong_mark]:!0},_Ct(u)),SCt(u));case"delete":return kCt(kCt({[gCt.delete_mark]:!0},_Ct(u)),SCt(u));case"inlineCode":return kCt({[gCt.inline_code_mark]:!0,text:e.value},SCt(u));case"thematicBreak":return{type:gCt.thematic_break,children:[{text:""}]};case"table":return{type:gCt.table,children:u};case"tableRow":return{type:gCt.tableRow,children:u};case"tableCell":return{type:f?gCt.tableHeaderCell:gCt.tableCell,children:[{type:gCt.paragraph,children:u}]};case"mdxJsxFlowElement":if("name"in e){if("br"===e.name)return{type:gCt.paragraph,children:[{text:""}]};console.warn("[StaticCMS] Unrecognized mdx flow element",e)}return{text:null!==(i=e.value)&&void 0!==i?i:""};case"mdxJsxTextElement":if("name"in e&&"mdxJsxTextElement"===e.type)switch(e.name){case"br":return[{text:"\n"}];case"sub":return PCt("subscript_mark",u);case"sup":return PCt("superscript_mark",u);case"u":return PCt("underline_mark",u);case"p":const t=ECt(e,{textAlign:"align"}),n=null===(o=e.attributes)||void 0===o?void 0:o.find((e=>"align"===e.name)),r={};return n&&(r.align=n.value),kCt(kCt(kCt({type:gCt.paragraph},t),r),{},{children:[kCt(kCt({},_Ct(u)),SCt(u))]});case"font":const i=ECt(e,{color:"color",backgroundColor:"backgroundColor"}),s=null===(a=e.attributes)||void 0===a?void 0:a.find((e=>"color"===e.name));return s&&(i.color=s.value),kCt(kCt(kCt({},i),_Ct(u)),SCt(u));default:console.warn("[StaticCMS] Unrecognized mdx text element",e)}return{text:null!==(s=e.value)&&void 0!==s?s:""};case"break":return{text:"\n"};case"text":var P;if(g)return{text:(null!==(P=e.value)&&void 0!==P?P:"").replace(/(?{var t;return"text"!==e.type?e:{text:(null!==(t=e.value)&&void 0!==t?t:"").replace(/(?n=>{var r,i;return null!==(r=null===(i=n.children)||void 0===i?void 0:i.map(((n,r)=>CCt(n,{shortcodeConfigs:e,useMdx:t,index:r}))))&&void 0!==r?r:[]},$Ct=e=>function(){this.compiler=TCt(e)},QCt=async(e,{useMdx:t,shortcodeConfigs:n})=>new Promise((r=>{Tue().use(Cle).use(dCt).use(t?cCt:()=>{}).use($Ct({shortcodeConfigs:null!=n?n:WE(),useMdx:t})).process(e,((e,t)=>{e?console.error(e):r(null==t?void 0:t.result)}))})),RCt=(e,t)=>{const[n,r]=(0,c.useState)(!1),[i,o]=(0,c.useState)([]);return(0,c.useEffect)((()=>{n&&"rich"===t.mode||QCt(e,t).then((e=>{o(e),r(!0)}))}),[e,t.mode]),[i.length>0?i:[{type:hlt,children:[{text:""}]}],n]};function ACt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jCt(e){for(var t=1;t"string"==typeof e.text,ICt=["thematic_break","image","code_block","shortcode","tableCell","tableHeaderCell"],zCt="
",WCt=[gCt.code_block];function NCt(e,t){var n,r;const{ignoreParagraphNewline:i=!1,listDepth:o=0,isInTable:a=!1,isInCode:s=!1,blockquoteDepth:l=0,useMdx:u,shortcodeConfigs:c}=t,d=e.text||"";let f=e.type||"";const h="type"in e&&"blockquote"===e.type;let p=d;if(!MCt(e)){let t="";f===gCt.tableRow&&(t="|"),p=e.children.map(((t,n)=>{const r=f===gCt.table,d=!MCt(t)&&vCt.includes(t.type||""),p=vCt.includes(e.type||""),m=WCt.includes(e.type||"");let g=!1;return!MCt(e)&&Array.isArray(e.children)&&(g=e.children.some((e=>!MCt(e)&&e.type===gCt.link))),{type:"type"in t?t.type:void 0,response:NCt(jCt(jCt({},t),{},{parentType:f}),{ignoreParagraphNewline:(i||d||p||g||a)&&!t.break,listDepth:p?o+1:o,isInTable:r||a,isInCode:m||s,blockquoteDepth:h?l+1:l,useMdx:u,index:n,shortcodeConfigs:c})}})).map((({response:e,type:t})=>{if(h){let n=e;return 0===o&&(n=n.replace(/(?h&&r===gCt.block_quote?0===i?n:`${e}${t}\n${n}`:0===i?n:`${e}${t}${n}`),"")}if(i||""!==d&&"\n"!==d||e.parentType!==gCt.paragraph||f===gCt.image||f===gCt.shortcode||f===gCt.tableCell||f===gCt.tableHeaderCell||(f=gCt.paragraph,p="\n"),""===p&&!ICt.find((e=>gCt[e]===f)))return"\n";if("\n"!==p&&MCt(e))if(e.strikethrough&&e.bold&&e.italic)p=FCt(p,"~~***");else if(e.bold&&e.italic)p=FCt(p,"***");else if(e.bold&&(p=FCt(p,"**")),e.italic&&(p=FCt(p,"_")),e.strikethrough&&(p=FCt(p,"~~")),e.code&&(p=FCt(p,"`")),e.subscript&&(p=FCt(p,"","")),e.superscript&&(p=FCt(p,"","")),e.underline&&(p=FCt(p,"","")),e.color||e.backgroundColor){const t={};e.color&&(t.color=e.color),e.backgroundColor&&(t.backgroundColor=e.backgroundColor);const n=Object.keys(t).map((e=>`${e}: '${t[e]}'`)).join(", ");p=FCt(p,``,"")}if(!f)return p;switch(f){case gCt.heading[1]:return`# ${UCt(p)}\n`;case gCt.heading[2]:return`## ${UCt(p)}\n`;case gCt.heading[3]:return`### ${UCt(p)}\n`;case gCt.heading[4]:return`#### ${UCt(p)}\n`;case gCt.heading[5]:return`##### ${UCt(p)}\n`;case gCt.heading[6]:return`###### ${UCt(p)}\n`;case gCt.block_quote:return`> ${p.replace(/[\n]+$/g,"").split("\n").join("\n> ").replace(/\n>[ \t]*\n/g,"\n>\n")}${h&&0===l?"\n":""}`;case gCt.code_block:const t=e;return`\`\`\`${null!==(n=t.lang)&&void 0!==n?n:""}\n${t.code}\n\`\`\`\n`;case gCt.link:return`[${p}](${e.url||""})`;case gCt.image:const i=e;return`![${null!==(r=i.alt)&&void 0!==r?r:""}](${i.url||""})`;case gCt.ul_list:case gCt.ol_list:return`${o>0?"\n":""}${p}`;case gCt.listItemContent:return p;case gCt.listItem:const s=e,d=e&&e.parentType===gCt.ol_list,m=e.children.length>=1&&(e.children.reduce(((e,t)=>e&&MCt(t)),!0)||1===e.children.length&&"lic"===e.children[0].type);let g="";for(let e=1;o>e;e++)g+=d?" ":" ";let v="";return"boolean"==typeof s.checked&&(v=` [${s.checked?"x":" "}]`),`${g}${d?"1.":"-"}${v} ${p}${m?"\n":""}`;case gCt.paragraph:const O=e;return u&&O.align?FCt(p,`

`,"

\n"):`${p}${a?"":"\n"}`;case gCt.thematic_break:return"---\n";case gCt.table:const y=function(e){const t=e.children;return 0===t.length?0:t[0].children.length}(e),b=p.split("\n"),w=b.length>0?b[0]:`|${Array(y).fill(" ").join("|")}|`,k=b.slice(1);return`${w}\n|${Array(y).fill("---").join("|")}|\n${k.join("\n")}`;case gCt.tableRow:return`|${p}|\n`;case gCt.tableHeaderCell:case gCt.tableCell:return We(p,!0)?" ":p.replace(/\|/g,"\\|").replace(/\n/g,zCt);case gCt.shortcode:const x=e,_=c[x.shortcode];return _?`${_.openTag}${[x.shortcode,...x.args].join(_.separator)}${_.closeTag}`:p;default:return console.warn("[StaticCMS] Unrecognized slate node, proceeding as text",`"${f}"`,e),p}}const LCt=e=>e.split("").reverse().join("");function FCt(e,t,n){const r=e.trim(),i=r,o=`${t}${i}${n||LCt(t)}`;if(i.length===e.length)return o;const a=`${t}${i}${n||LCt(t)}`;return e.replace(r,a)}function UCt(e){return e.replace(/\n/g,"\\\n")}function XCt(e,{useMdx:t,shortcodeConfigs:n}){return e.map(((e,r)=>NCt(e,{useMdx:t,index:r,shortcodeConfigs:null!=n?n:WE()}))).join("\n")}const qCt={},BCt=c.createContext(qCt);function VCt(e){const t=c.useContext(BCt);return c.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function YCt(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(qCt):e.components||qCt:VCt(e.components),c.createElement(BCt.Provider,{value:t},e.children)}function ZCt(){return ZCt=Object.assign?Object.assign.bind():function(e){for(var t=1;t({shortcode:t,args:n})=>{const r=(0,c.useMemo)((()=>zE(t)),[t]),[i,o]=(0,c.useMemo)((()=>{if(!r)return[null,{}];const e=r.toProps?r.toProps(n):{};return[r.preview,e]}),[r,n]);return i?c.createElement(i,ZCt({previewProps:e},o)):null},HCt=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"].map((function(e){return"."+e}));class KCt{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(null!=n?e[t][n]=r:e[t]=r)}remove(e,t,n){e&&t&&(null!=n?e[t].splice(n,1):delete e[t])}}class JCt extends KCt{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){const i=this.should_skip,o=this.should_remove,a=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);const s=this.should_skip,l=this.should_remove;if(this.should_skip=i,this.should_remove=o,this.replacement=a,s)return e;if(l)return null}let i;for(i in e){const t=e[i];if(t&&"object"==typeof t)if(Array.isArray(t)){const n=t;for(let t=0;t{o.declarations.set(e.local.name,e)}));break;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":"FunctionDeclaration"===e.type?(e.id&&o.declarations.set(e.id.name,e),t.set(e,o=new oTt(o,!1))):(t.set(e,o=new oTt(o,!1)),"FunctionExpression"===e.type&&e.id&&o.declarations.set(e.id.name,e)),e.params.forEach((t=>{aTt(t).forEach((t=>{o.declarations.set(t,e)}))}));break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"BlockStatement":t.set(e,o=new oTt(o,!0));break;case"ClassDeclaration":case"VariableDeclaration":o.add_declaration(e);break;case"CatchClause":t.set(e,o=new oTt(o,!0)),e.param&&aTt(e.param).forEach((t=>{e.param&&o.declarations.set(t,e.param)}))}},leave(e){t.has(e)&&null!==o&&o.parent&&(o=o.parent)}});for(let e=i.length-1;e>=0;--e){const[t,r]=i[e];t.references.has(r.name)||iTt(t,r.name),t.find_owner(r.name)||n.set(r.name,r)}return{map:t,scope:r,globals:n}}function iTt(e,t){e.references.add(t),e.parent&&iTt(e.parent,t)}class oTt{constructor(e,t){this.parent=e,this.block=t,this.declarations=new Map,this.initialised_declarations=new Set,this.references=new Set}add_declaration(e){if("VariableDeclaration"===e.type)if("var"===e.kind&&this.block&&this.parent)this.parent.add_declaration(e);else{const t=t=>{aTt(t.id).forEach((n=>{this.declarations.set(n,e),t.init&&this.initialised_declarations.add(n)}))};e.declarations.forEach(t)}else e.id&&this.declarations.set(e.id.name,e)}find_owner(e){return this.declarations.has(e)?this:this.parent&&this.parent.find_owner(e)}has(e){return this.declarations.has(e)||!!this.parent&&this.parent.has(e)}}function aTt(e){return sTt(e).map((e=>e.name))}function sTt(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":const r=e=>{"RestElement"===e.type?sTt(e.argument,t):sTt(e.value,t)};e.properties.forEach(r);break;case"ArrayPattern":const i=e=>{e&&sTt(e,t)};e.elements.forEach((e=>{e&&i(e)}));break;case"RestElement":sTt(e.argument,t);break;case"AssignmentPattern":sTt(e.left,t)}return t}function lTt(e){const t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=uTt(n.start,r[0]||t.start),o=uTt(n.end,r[1]||t.end);if(i&&o)return{start:i,end:o}}function uTt(e,t){if(e&&"object"==typeof e){const n="line"in e?cTt(e.line):void 0,r="column"in e?cTt(e.column):void 0;if(n&&void 0!==r)return{line:n,column:r+1,offset:cTt(t)}}}function cTt(e){return"number"==typeof e&&e>-1?e:void 0}function dTt(e){return e&&"object"==typeof e?"position"in e||"type"in e?hTt(e.position):"start"in e||"end"in e?hTt(e):"line"in e||"column"in e?fTt(e):"":""}function fTt(e){return pTt(e&&e.line)+":"+pTt(e&&e.column)}function hTt(e){return fTt(e&&e.start)+"-"+fTt(e&&e.end)}function pTt(e){return e&&"number"==typeof e?e:1}function mTt(e,t){const n=["start","end","loc","range","comments"];let r=-1;for(;++r0&&e.comments.unshift({type:"Block",value:f.join(" "),data:{_mdxIsPragmaComment:!0}}),"classic"===l&&a){if(!i)throw new Error("Missing `pragma` in classic runtime with `pragmaImportSource`");w({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:i.split(".")[0]}}],source:{type:"Literal",value:a}})}for(m of e.body)if("ExportDefaultDeclaration"===m.type)h&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+dTt(lTt(h))+")",{ancestors:[e,m],place:lTt(m),ruleId:"duplicate-layout",source:"recma-document"}),h=m,d.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:vTt(m.declaration)?gTt(m.declaration):m.declaration}]});else if("ExportNamedDeclaration"===m.type&&m.source){const n=m.source;m.specifiers=m.specifiers.filter((function(r){if("default"===r.exported.name){h&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+dTt(lTt(h))+")",{ancestors:[e,m,r],place:lTt(m),ruleId:"duplicate-layout",source:"recma-document"}),h=r;const i=[];if("default"===r.local.name)i.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else{const e={type:"ImportSpecifier",imported:r.local,local:{type:"Identifier",name:"MDXLayout"}};mTt(r.local,e),i.push(e)}const o={type:"Literal",value:n.value};mTt(n,o);const a={type:"ImportDeclaration",specifiers:i,source:o};return mTt(r,a),w(a),!1}return!0})),m.specifiers.length>0&&b(m)}else"ExportNamedDeclaration"===m.type||"ExportAllDeclaration"===m.type?b(m):"ImportDeclaration"===m.type?w(m):"ExpressionStatement"!==m.type||"JSXElement"!==m.expression.type&&"JSXFragment"!==m.expression.type?d.push(m):(p=!0,d.push(...u(m.expression,r,Boolean(h))));p||d.push(...u(void 0,r,Boolean(h))),c.push(["MDXContent","default"]),"function-body"===r&&d.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:g}).map((function(e,t){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}})),...c.map((function(e){return{type:"Property",kind:"init",method:!1,computed:!1,shorthand:"string"==typeof e,key:{type:"Identifier",name:"string"==typeof e?e:e[1]},value:{type:"Identifier",name:"string"==typeof e?e:e[0]}}}))]}}),e.body=d;let v=!1,O=!1;var y;function b(e){if("ExportNamedDeclaration"===e.type)for(m of(e.declaration&&c.push(...rTt(e.declaration).scope.declarations.keys()),e.specifiers))c.push(m.exported.name);w(e)}function w(e){let t,n;if("function-body"===r)if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){e.source;const r={type:"ImportExpression",source:e.source};mTt(e,r),n={type:"AwaitExpression",argument:r},t="ImportDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type||0!==e.specifiers.length?{type:"VariableDeclaration",kind:"const",declarations:"ExportAllDeclaration"===e.type?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++g},init:n}]:OTt(e.specifiers,n)}:{type:"ExpressionStatement",expression:n}}else if(e.declaration)t=e.declaration;else{const n=e.specifiers.filter((function(e){return e.local.name!==e.exported.name})).map((function(e){return{type:"VariableDeclarator",id:e.exported,init:e.local}}));n.length>0&&(t={type:"VariableDeclaration",kind:"const",declarations:n})}else t=e;t&&d.push(t)}(n||"function-body"===r)&&tTt(e,{enter(e){if(("ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ImportDeclaration"===e.type)&&e.source){let t=e.source.value;try{new URL(t)}catch{(t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))&&(t=new URL(t,n).href)}const r={type:"Literal",value:t};return mTt(e.source,r),void(e.source=r)}if("ImportExpression"!==e.type){if("MemberExpression"===e.type&&"object"in e&&"MetaProperty"===e.object.type&&"Identifier"===e.property.type&&"import"===e.object.meta.name&&"meta"===e.object.property.name&&"url"===e.property.name){v=!0;const t={type:"Identifier",name:"_importMetaUrl"};mTt(e,t),this.replace(t)}}else{O=!0;const t={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[e.source],optional:!1};e.source=t}}}),O&&(n||(v=!0),e.body.push((y=n?{type:"Literal",value:n}:{type:"Identifier",name:"_importMetaUrl"},{type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:yTt(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:yTt(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:yTt(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},y]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}))),v&&e.body.unshift({type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:yTt(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export … from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null})};function u(e,t,n){let r={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};n||(r={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:r,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let i=e||{type:"Identifier",name:"undefined"};"JSXFragment"===i.type&&1===i.children.length&&"JSXElement"===i.children[0].type&&(i=i.children[0]);let o=!1;tTt(i,{enter(e){if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return this.skip();("AwaitExpression"===e.type||"ForOfStatement"===e.type&&e.await)&&(o=!0)}});const a={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:r}]}};return[{type:"FunctionDeclaration",async:o,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:i}]}},"program"===t?{type:"ExportDefaultDeclaration",declaration:a}:a]}}const kTt=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function xTt(e){let t;if(e.value)if("JSXExpressionContainer"===e.value.type){const n=e.value.expression;n.type,t=n}else{const n=e.value;"JSXElement"!==n.type&&n.type,t=n,delete t.raw}else t={type:"Literal",value:!0};const n={type:"Property",key:_Tt(e.name),value:t,kind:"init",method:!1,shorthand:!1,computed:!1};return PTt(e,n),n}function _Tt(e){let t;if("JSXMemberExpression"===e.type){const n=_Tt(e.property);t={type:"MemberExpression",object:_Tt(e.object),property:n,computed:"Literal"===n.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:boe(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return PTt(e,t),t}function STt(e){const t=e.split(".");let n,r=-1;for(;++r0){let r=0;for(;r0&&l.push({type:"Property",key:{type:"Identifier",name:"children"},value:t.length>1?{type:"ArrayExpression",elements:t}:t[0],kind:"init",method:!1,shorthand:!1,computed:!1}):d=t,r){d.push({type:"ObjectExpression",properties:l}),u?d.push(u):n.development&&d.push({type:"Identifier",name:"undefined"});const r=t.length>1;if(n.development){o.jsxDEV=!0,c={type:"Identifier",name:"_jsxDEV"},d.push({type:"Literal",value:r});const t={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:n.filePath||""}}]};e.loc&&t.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),d.push(t,{type:"ThisExpression"})}else r?(o.jsxs=!0,c={type:"Identifier",name:"_jsxs"}):(o.jsx=!0,c={type:"Identifier",name:"_jsx"})}else l.length>0?d.unshift({type:"ObjectExpression",properties:l}):d.length>0&&d.unshift({type:"Literal",value:null}),c=STt(i.jsx||n.pragma||"React.createElement");d.unshift(a);const f={type:"CallExpression",callee:c,arguments:d,optional:!1};PTt(e,f),this.replace(f)}})}(e,{development:t,filePath:r.history[0]}),e.comments&&"Block"===e.comments[0].type&&e.comments[0].data&&e.comments[0].data._mdxIsPragmaComment&&e.comments.shift(),"function-body"===n){let t=0;for(;t0||i.length>0||d.idToInvalidComponentName.size>0){if(r&&(l=!0,o.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),($Tt(d.node,"MDXContent")||$Tt(d.node,"_createMdxContent"))&&o.push(yTt(["props","components"])),n.length>0||o.length>1)for(const e of o)n.push({type:"SpreadElement",argument:e});let e,t=n.length>0?{type:"ObjectExpression",properties:n}:{type:"LogicalExpression",operator:"||",left:o[0],right:{type:"ObjectExpression",properties:[]}};if(i.length>0&&(e={type:"ObjectPattern",properties:i.map((function(e){return{type:"Property",kind:"init",key:{type:"Identifier",name:"MDXLayout"===e?"wrapper":e},value:{type:"Identifier",name:e},method:!1,shorthand:"MDXLayout"!==e,computed:!1}}))}),d.tags.length>0&&(c.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),$Tt(d.node,"_createMdxContent"))for(const[e,t]of[...d.idToInvalidComponentName].sort((function([e],[t]){return e.localeCompare(t)})))c.push({type:"VariableDeclarator",id:{type:"Identifier",name:t},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:e},computed:!0,optional:!1}});e&&c.push({type:"VariableDeclarator",id:e,init:t}),c.length>0&&h.push({type:"VariableDeclaration",kind:"const",declarations:c})}let p;for(p in d.references)if(Object.hasOwn(d.references,p)){const e=p.split(".");let t=0;for(;++t0&&("BlockStatement"!==s.body.type&&(s.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:s.body}]}),s.body.body.unshift(...h)),a.pop()}}}),l&&r&&e.body.unshift(function(e,t){const n=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return"function-body"===t?{type:"VariableDeclaration",kind:"const",declarations:OTt(n,yTt(["arguments",0]))}:{type:"ImportDeclaration",specifiers:n,source:{type:"Literal",value:e}}}(r,n)),u){const n=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],r=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(n.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:CTt([{type:"Literal",value:"\nIt’s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(i.path?"` in `"+i.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),r.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:r,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[CTt(n)]}}]}})}"function-body"===n&&e.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function $Tt(e,t){return Boolean(e&&"id"in e&&e.id&&e.id.name===t)}function QTt(e,t){let n=e;for(;n;){if(n.declarations.has(t))return!0;n=n.parent||void 0}return!1}const{stringify:RTt}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const ATt={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},jTt=17,DTt={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:jTt,ClassExpression:jTt,FunctionExpression:jTt,ObjectExpression:jTt,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function MTt(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:r}=t;for(let i=1;i0){e.write(r);for(let t=1;t0){n.VariableDeclarator(r[0],e);for(let t=1;t0){t.write(r),i&&null!=e.comments&&NTt(t,e.comments,o,r);const{length:s}=a;for(let e=0;e0){for(;i0&&t.write(", ");const e=n[i],r=e.type[6];if("D"===r)t.write(e.local.name,e),i++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),i++}}if(i0)for(let e=0;;){const i=n[e],{name:o}=i.local;if(t.write(o,i),o!==i.exported.name&&t.write(" as "+i.exported.name),!(++e "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:XTt=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:XTt,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),zTt(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:r}=e;t.write("`");const{length:i}=r;for(let e=0;e0){const{elements:n}=e,{length:r}=n;for(let e=0;;){const i=n[e];if(null!=i&&this[i.type](i,t),!(++e0){t.write(r),i&&null!=e.comments&&NTt(t,e.comments,o,r);const a=","+r,{properties:s}=e,{length:l}=s;for(let e=0;;){const n=s[e];if(i&&null!=n.comments&&NTt(t,n.comments,o,r),t.write(o),this[n.type](n,t),!(++e0){const{properties:n}=e,{length:r}=n;for(let e=0;this[n[e].type](n[e],t),++e1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),o?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:qTt=function(e,t){const n="in"===e.operator;n&&t.write("("),zTt(t,e.left,e,!1),t.write(" "+e.operator+" "),zTt(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:qTt,ConditionalExpression(e,t){const{test:n}=e,r=t.expressionsPrecedence[n.type];r===jTt||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];n===jTt||n0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}const HTt={};const KTt={JSXAttribute:function(e,t){this[e.name.type](e.name,t),null!==e.value&&void 0!==e.value&&(t.write("="),"Literal"===e.value.type?t.write('"'+JTt(String(e.value.value)).replace(/"/g,""")+'"',e):this[e.value.type](e.value,t))},JSXClosingElement:function(e,t){t.write("")},JSXClosingFragment:function(e,t){t.write("",e)},JSXElement:function(e,t){let n=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++n":">")},JSXOpeningFragment:function(e,t){t.write("<>",e)},JSXSpreadAttribute:function(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")},JSXText:function(e,t){t.write(JTt(e.value).replace(/[<>{}]/g,e$t),e)}};function JTt(e){return e.replace(/&(?=[#a-z])/gi,"&")}function e$t(e){return"<"===e?"<":">"===e?">":"{"===e?"{":"}"}function t$t(e){const{SourceMapGenerator:t}=e;this.compiler=function(e,n){const r=function(e,t){const{SourceMapGenerator:n,filePath:r,handlers:i}=t||HTt,o=n?new n({file:r||".js"}):void 0,a=function(e,t){const n=new GTt(t);return n.generator[e.type](e,n),n.output}(e,{comments:!0,generator:{...YTt,...i},sourceMap:o||void 0});return{value:a,map:o?o.toJSON():void 0}}(e,t?{SourceMapGenerator:t,filePath:n.path||"unknown.mdx",handlers:KTt}:{handlers:KTt});return n.map=r.map,r.value}}const n$t={}.hasOwnProperty,r$t=__webpack_require__(43057),i$t={}.hasOwnProperty,o$t=/[A-Z]/g,a$t=/-([a-z])/g,s$t=new Set(["td","th"]);function l$t(e,t){const n={};try{r$t(e,(function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(a$t,d$t)),n[r]=t}))}catch(e){throw new Error("Could not parse `style` attribute on `"+t+"`",{cause:e})}return n}function u$t(e){const t={};let n;for(n in e)i$t.call(e,n)&&(t[c$t(n)]=e[n]);return t}function c$t(e){let t=e.replace(o$t,f$t);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function d$t(e,t){return t.toUpperCase()}function f$t(e){return"-"+e.toLowerCase()}const h$t={}.hasOwnProperty,p$t=[];function m$t(e,t){const n=t?[...t].sort(O$t):p$t;n.length>0&&g$t(e,{comments:n,index:0})}function g$t(e,t){if(t.index===t.comments.length)return;const n=[],r=[];let i;for(i in e)if(h$t.call(e,i)){const t=e[i];if(t&&"object"==typeof t&&"comments"!==i)if(Array.isArray(t)){let e=-1;for(;++e0})),r.length>0&&(e.comments=r)}function v$t(e,t,n,r){const i=[];for(;e.comments[e.index]&&O$t(e.comments[e.index],t,n)<1;)i.push(Object.assign({},e.comments[e.index++],r));return i}function O$t(e,t,n){const r=n?"end":"start";return e.range&&t.range?e.range[0]-t.range[n?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[r]?e.loc.start.line-t.loc[r].line||e.loc.start.column-t.loc[r].column:"start"in e&&r in t?e.start-t[r]:Number.NaN}function y$t(e,t){const n=e.data&&e.data.estree,r=n&&n.comments||[];let i;n&&(t.comments.push(...r),m$t(n,n.comments),i=n.body[0]&&"ExpressionStatement"===n.body[0].type&&n.body[0].expression||void 0),i||(i={type:"JSXEmptyExpression"},t.patch(e,i));const o={type:"JSXExpressionContainer",expression:i};return t.inherit(e,o),o}function b$t(e,t){const n=t.schema;let r=n;const i=e.attributes||[];let o=-1;e.name&&"html"===n.space&&"svg"===e.name.toLowerCase()&&(r=Hoe,t.schema=r);const a=t.all(e),s=[];for(;++o0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:a}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:a};return t.inherit(e,l),l}const w$t={comment:function(e,t){const n={type:"Block",value:e.value};t.inherit(e,n),t.comments.push(n);const r={type:"JSXEmptyExpression",comments:[Object.assign({},n,{leading:!1,trailing:!0})]};t.patch(e,r);const i={type:"JSXExpressionContainer",expression:r};return t.patch(e,i),i},doctype:function(){},element:function(e,t){const n=t.schema;let r=n;const i=e.properties||{};"html"===n.space&&"svg"===e.tagName.toLowerCase()&&(r=Hoe,t.schema=r);const o=t.all(e),a=[];let s,l,u;for(s in i)if(i$t.call(i,s)){let n=i[s];const o=tae(r,s);let c;if(null==n||!1===n||"number"==typeof n&&Number.isNaN(n)||!n&&o.boolean)continue;if(s="react"===t.elementAttributeNameCase&&o.space?iae[o.property]||o.property:o.attribute,Array.isArray(n)&&(n=o.commaSeparated?doe(n):oae(n)),"style"===s){let r="object"==typeof n?n:l$t(String(n),e.tagName);"css"===t.stylePropertyNameCase&&(r=u$t(r));const i=[];let o;for(o in r)i$t.call(r,o)&&i.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:boe(o)?{type:"Identifier",name:o}:{type:"Literal",value:o},value:{type:"Literal",value:String(r[o])},kind:"init"});u=i,c={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:i}}}else if(!0===n)c=null;else{if(t.tableCellAlignToStyle&&s$t.has(e.tagName)&&"align"===s){l=String(n);continue}c={type:"Literal",value:String(n)}}boe(s,{jsx:!0})?a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:s},value:c}):a.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(s)},value:c||{type:"Literal",value:!0},kind:"init"}]}})}if(void 0!==l){u||(u=[],a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:u}}}));const e="css"===t.stylePropertyNameCase?c$t("textAlign"):"textAlign";u.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:boe(e)?{type:"Identifier",name:e}:{type:"Literal",value:e},value:{type:"Literal",value:l},kind:"init"})}t.schema=n;const c={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:a,name:t.createJsxElementName(e.tagName),selfClosing:0===o.length},closingElement:o.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:o};return t.inherit(e,c),c},mdxFlowExpression:y$t,mdxJsxFlowElement:b$t,mdxJsxTextElement:b$t,mdxTextExpression:y$t,mdxjsEsm:function(e,t){const n=e.data&&e.data.estree,r=n&&n.comments||[];n&&(t.comments.push(...r),m$t(n,r),t.esm.push(...n.body))},root:function(e,t){const n=t.all(e),r=[];let i,o=-1;for(;++o on how to migrate"));const r=Tue().use(Cle);"md"!==t.format&&r.use(cCt);const i=t.remarkRehypeOptions||{};return r.use(W$t).use(t.remarkPlugins||[]).use(hue,{...i,allowDangerousHtml:!0,passThrough:[...i.passThrough||[],...N$t]}).use(t.rehypePlugins||[]),"md"===t.format&&r.use(A$t),r.use(R$t,t).use(wTt,t).use(TTt,t),t.jsx||r.use(ETt,t),r.use(t$t,t).use(t.recmaPlugins||[]),r}(r).process(n)}const X$t=Object.getPrototypeOf(q$t).constructor;async function q$t(e,t){return new X$t(String(e))(t)}const B$t=function(){return e=>(Gle(e,"listItem",(e=>("children"in e&&e.children.length>0&&(e.children=e.children.flatMap((e=>"paragraph"===e.type?e.children:e))),e))),e)};function V$t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y$t(e){for(var t=1;t{const n=new kue({basename:e,value:t}),i=Y$t(Y$t(Y$t({},l),uM),{},{useDynamicImport:!0,remarkPlugins:[dCt,B$t]});try{n.result=(await async function(e,t){const{compiletime:n,runtime:r}=function(e){const{Fragment:t,baseUrl:n,development:r,jsx:i,jsxDEV:o,jsxs:a,useMDXComponents:s,...l}=e||{};if(!t)throw new Error("Expected `Fragment` given to `evaluate`");if(r){if(!o)throw new Error("Expected `jsxDEV` given to `evaluate`")}else{if(!i)throw new Error("Expected `jsx` given to `evaluate`");if(!a)throw new Error("Expected `jsxs` given to `evaluate`")}return{compiletime:{...l,development:r,outputFormat:"function-body",providerImportSource:s?"#":void 0},runtime:{Fragment:t,baseUrl:n,jsx:i,jsxDEV:o,jsxs:a,useMDXComponents:s}}}(t);return q$t(await U$t(e,n),r)}(n,i)).default}catch(e){const t=e instanceof mae?e:new mae(String(e));n.messages.includes(t)||n.messages.push(t),t.fatal=!0}r({file:n})}),[e]),o=y0(i,100),a=kz(n,150);return(0,c.useEffect)((()=>{o(t)}),[t,o]),[a,o]}const H$t=UD("WidgetUUIDPreview",["root"]),K$t=({state:e})=>{const t=(0,c.useMemo)((()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.result}),[e]);if(!t)return null;try{return c.createElement(t,{key:"result"})}catch(e){const t=new mae(String(e));return t.fatal=!0,c.createElement("pre",{key:"error"},c.createElement("code",null,String(t)))}},J$t=e=>{const{value:t,collection:n,field:r}=e,i=Wz(),o=(0,c.useMemo)((()=>({Shortcode:GCt({previewProps:e}),img:zK({collection:n,field:r})})),[n,r,e]),[a,s]=G$t(`editor-${i}.mdx`,null!=t?t:""),[l,u]=(0,c.useState)(null);return(0,c.useEffect)((()=>{if(l!==t){const e=function(e,t){if(We(t))return"";let n=t;for(const i in e){const o=e[i],a=new RegExp(yCt(i,o),"g");let s;for(;null!==(s=a.exec(t))&&3===s.length;){var r;const e=We(s[2])?[]:null===(r=s[2])||void 0===r?void 0:r.split(o.separator),t=(null==e?void 0:e.length)>0?`'${e.join("', '")}'`:"";n=n.replace(s[0],``)}}return n}(WE(),null!=t?t:"");u(e),s(e)}}),[t]),c.createElement("div",{key:"markdown-preview",className:H$t.root},c.createElement(YCt,{components:o},c.createElement(K$t,{state:a})," "))},eQt={type:"array",items:{anyOf:[{type:"string",enum:[cbt,dbt,fbt,hbt,pbt,mbt,gbt,vbt,Obt,ybt,bbt,wbt,kbt,xbt,_bt,Sbt,Pbt,Ebt,Cbt,Tbt]},{type:"object",properties:{label:{type:"string"},icon:{type:"string"},groups:{type:"array",items:{type:"object",properties:{items:{type:"array",items:{type:"string",enum:[fbt,hbt,pbt,mbt,gbt,vbt,Obt,ybt,bbt,wbt,kbt,xbt,_bt,Sbt,Pbt,Ebt,Cbt,Tbt]}}},required:["items"]}}},required:["label","groups"]}]}},tQt={properties:{default:{type:"string"},media_folder:{type:"string"},public_folder:{type:"string"},choose_url:{type:"boolean"},multiple:{type:"boolean"},show_raw:{type:"boolean"},toolbar_buttons:{type:"object",properties:{main:eQt,empty:eQt,selection:eQt,table_empty:eQt,table_select:eQt}},media_library:{type:"object",properties:{max_file_size:{type:"number"},folder_support:{type:"boolean"}}}}},nQt={inject:{props:{validTypes:[hlt,olt,alt,slt,llt,ult,clt,Ust,Bst]}}},rQt={options:{query:{allow:[fdt,Uut]}}},iQt=(({useMdx:e})=>t=>{const{label:n,value:r,duplicate:i,onChange:o,hasErrors:a,collection:s,entry:l,field:u,errors:d,forSingleList:f,disabled:h,t:p}=t,[m,g]=(0,c.useState)(null!=r?r:""),v=(0,c.useMemo)((()=>i?null!=r?r:"":m),[m,i,r]),[O,y]=(0,c.useState)(!1),b=kz(O,150),[w,k]=(0,c.useState)(!1),x=(0,c.useCallback)((()=>{y(!0)}),[]),_=(0,c.useCallback)((()=>{y(!1)}),[]),S=(0,c.useCallback)((t=>{const n=XCt(t,{useMdx:e});n!==v&&(g(n),o(n))}),[v,o]),P=(0,c.useCallback)((e=>{const t=e.target.value;t!==v&&(g(t),o(t))}),[v,o]),E=(0,c.useCallback)((()=>{}),[]),C=(0,c.useCallback)((()=>{u.show_raw&&k(!0)}),[u.show_raw]),T=(0,c.useCallback)((()=>{k(!1)}),[]),[$,Q]=RCt(v,{useMdx:e,mode:w?"raw":"rich"}),R=(0,c.useMemo)((()=>Q?c.createElement(S_t,{key:"plate-editor",initialValue:$,collection:s,entry:l,field:u,useMdx:e,controlProps:t,onChange:S,onFocus:x,onBlur:_}):null),[s,t,b,u,E,_,S,x,a,O,Q,$,v,w]),A=(0,c.useRef)(null);return c.createElement(Mfe,{label:n,errors:d,forSingleList:f,hint:u.hint,noHightlight:!0,disabled:h,rootClassName:qD(yGe.root,h&&yGe.disabled,!1!==u.required&&yGe.required,a&&yGe.error,f&&yGe["for-single-list"])},w?c.createElement(OGe,{key:"raw-editor",ref:A,value:v,disabled:h,onChange:P,placeholder:p("editor.editorWidgets.markdown.type"),rootClassName:yGe["raw-editor"]}):R,u.show_raw?c.createElement("div",{className:yGe.controls},c.createElement(GD,{"data-testid":"rich-editor",size:"small",color:w?"secondary":"primary",variant:w?"outlined":"contained",onClick:T,disabled:h,"aria-label":"toggle to rich text mode"},p("editor.editorWidgets.markdown.richText")),c.createElement(GD,{"data-testid":"rich-editor",size:"small",color:w?"primary":"secondary",variant:w?"contained":"outlined",onClick:C,disabled:h,"aria-label":"toggle to markdown mode"},p("editor.editorWidgets.markdown.markdown"))):null)})({useMdx:!1}),oQt=()=>({name:"markdown",controlComponent:iQt,previewComponent:J$t,options:{schema:tQt}}),aQt=UD("WidgetNumber",["root","error","required","disabled","for-single-list","input","with-prefix","with-suffix","prefix","suffix"]),sQt=({field:e,value:t,label:n,errors:r,hasErrors:i,disabled:o,forSingleList:a,duplicate:s,onChange:l})=>{const[u,d]=(0,c.useState)(null!=t?t:""),f=(0,c.useMemo)((()=>s?null!=t?t:"":u),[u,s,t]),h=(0,c.useRef)(null),p=(0,c.useCallback)((t=>{const n=e.value_type;let r=t.target.value;"float"===n?r=parseFloat(t.target.value):"int"===n&&(r=parseInt(t.target.value,10)),"string"!=typeof r&&isNaN(r)&&(r=""),l(r),d(r)}),[e,l]),m=(0,c.useMemo)((()=>{var t;return null!==(t=e.min)&&void 0!==t?t:""}),[e.min]),g=(0,c.useMemo)((()=>{var t;return null!==(t=e.max)&&void 0!==t?t:""}),[e.max]),v=(0,c.useMemo)((()=>e.step?"int"===e.value_type?Math.round(e.step):e.step:1),[e.step,e.value_type]),O=(0,c.useMemo)((()=>{var t;return null!==(t=e.prefix)&&void 0!==t?t:""}),[e.prefix]),y=(0,c.useMemo)((()=>{var t;return null!==(t=e.suffix)&&void 0!==t?t:""}),[e.suffix]);return c.createElement(Mfe,{inputRef:h,label:n,errors:r,hint:e.hint,forSingleList:a,cursor:"text",disabled:o,rootClassName:qD(aQt.root,o&&aQt.disabled,!1!==e.required&&aQt.required,i&&aQt.error,a&&aQt["for-single-list"])},c.createElement(Y0,{type:"number",inputRef:h,value:f,min:m,max:g,step:v,disabled:o,onChange:p,inputClassName:qD(aQt.input,Ne(O)&&aQt["with-prefix"],Ne(y)&&aQt["with-suffix"]),startAdornment:Ne(O)?c.createElement("div",{className:aQt.prefix},O):null,endAdornment:Ne(y)?c.createElement("div",{className:aQt.suffix},y):null}))},lQt=UD("WidgetNumberPreview",["root"]),uQt=({value:e})=>c.createElement("div",{className:lQt.root},e),cQt={properties:{step:{type:"number"},value_type:{type:"string"},min:{type:"number"},max:{type:"number"},default:{type:"number"},prefix:{type:"string"},suffix:{type:"string"}}},dQt=({field:e,value:t,t:n})=>{var r,i,o;return!(null!==(r=!!e.pattern)&&void 0!==r&&r||!t)&&function(e,t,n,r,i){var o,a,s;let l;const u="string"==typeof e?parseFloat(e):e;switch(!0){case!isNaN(u)&&!1!==t&&!1!==n&&(un):l={type:FE.RANGE,message:i("editor.editorControlPane.widget.range",{fieldLabel:null!==(o=r.label)&&void 0!==o?o:r.name,minValue:t,maxValue:n})};break;case!isNaN(u)&&!1!==t&&un:l={type:FE.RANGE,message:i("editor.editorControlPane.widget.max",{fieldLabel:null!==(s=r.label)&&void 0!==s?s:r.name,maxValue:n})};break;default:l=!1}return l}(t,null!==(i=e.min)&&void 0!==i&&i,null!==(o=e.max)&&void 0!==o&&o,e,n)},fQt=()=>({name:"number",controlComponent:sQt,previewComponent:uQt,options:{validator:dQt,schema:cQt}}),hQt=UD("WidgetObject",["root","list-root","error","disabled","required","for-single-list","open","expand","expand-icon","summary","fields","error-message"]),pQt=({field:e,openLabel:t,closedLabel:n,children:r,errors:i,hasChildErrors:o,hint:a,disabled:s,forSingleList:l})=>{var u;const d=(0,c.useMemo)((()=>i.length>0),[i.length]),[f,h]=(0,c.useState)(null===(u=!e.collapsed)||void 0===u||u),p=(0,c.useCallback)((()=>{h((e=>!e))}),[]);return c.createElement("div",{"data-testid":`object-field-${null==t?void 0:t.trim()}`,className:qD(hQt.root,s&&hQt.disabled,(d||o)&&hQt.error,f&&hQt.open,!1!==e.required&&hQt.required,l&&hQt["for-single-list"])},c.createElement("button",{"data-testid":"expand-button",className:hQt.expand,onClick:p,"aria-label":f?"collapse":"expand"},c.createElement(EY,{className:hQt["expand-icon"]}),c.createElement(jfe,{key:"label",hasErrors:d||o,className:hQt.summary,cursor:"pointer",variant:"inline",disabled:s},f?t.trim():n.trim())),c.createElement(Zfe,{in:f,appear:!1},c.createElement("div",{"data-testid":"object-fields",className:hQt.fields},r)),a?c.createElement(Rfe,{key:"hint",hasErrors:d,cursor:"pointer",disabled:s},a):null,c.createElement(coe,{errors:i,className:hQt["error-message"]}))},mQt=({label:e,field:t,fieldsErrors:n,submitted:r,forList:i,forSingleList:o,duplicate:a,locale:s,path:l,i18n:u,errors:d,disabled:f,value:h={},listItemPath:p})=>{const m=(0,c.useMemo)((()=>t.fields),[t.fields]),g=(0,c.useMemo)((()=>{const n=t.summary;return n?`${e} - ${jx(n,null,"",h,m)}`:e}),[t.summary,m,e,h]),v=wz(l,n,u,!1),O=(0,c.useMemo)((()=>{var e;return null!==(e=null==m?void 0:m.map(((e,t)=>{let d=e.name,g=l;const v=h&&h[d];if(i&&1===m.length){var O;const t=l.split(".");d=null!==(O=t.pop())&&void 0!==O?O:e.name,g=t.join(".")}return c.createElement(l3,{key:t,field:e,fieldName:d,value:v,fieldsErrors:n,submitted:r,parentPath:g,disabled:f||a,parentDuplicate:a,locale:s,i18n:u,forSingleList:o,listItemPath:p})})))&&void 0!==e?e:null}),[m,l,h,i,n,r,f,a,s,u,o,p]);return m.length?i?c.createElement("div",{className:hQt["list-root"]},O):c.createElement(pQt,{key:"object-control-wrapper",field:t,openLabel:e,closedLabel:g,errors:d,hasChildErrors:v,hint:t.hint,disabled:f,forSingleList:o},O):c.createElement("div",{key:"no-fields-found"},"No field(s) defined for this widget")},gQt=UD("WidgetObjectPreview",["root"]),vQt=({field:e})=>{var t;return c.createElement("div",{className:gQt.root},null!==(t=e.renderedFields)&&void 0!==t?t:null)},OQt={properties:{default:{type:"object"},collapsed:{type:"boolean"},summary:{type:"string"},i18n:{type:"boolean"},fields:{type:"array",items:{type:"object"}}}},yQt=()=>({name:"object",controlComponent:mQt,previewComponent:vQt,options:{schema:OQt}});var bQt=__webpack_require__(61132),wQt=__webpack_require__.n(bQt);function kQt({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=c.useRef(void 0!==e),[o,a]=c.useState(t);return[i?e:o,c.useCallback((e=>{i||a(e)}),[])]}function xQt(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function _Qt(e,t){for(let n=0;n{let u=a?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=xQt(u));const c=u?e.filter((e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=xQt(r)),"start"===i?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"==typeof r?c.slice(0,r):c}}(),PQt=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function EQt(e){const{unstable_isActiveElementInListbox:t=PQt,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:p,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=SQt,filterSelectedOptions:O=!1,freeSolo:y=!1,getOptionDisabled:b,getOptionKey:w,getOptionLabel:k=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:x,handleHomeEndKeys:_=!e.freeSolo,id:S,includeInputInList:P=!1,inputValue:E,isOptionEqualToValue:C=((e,t)=>e===t),multiple:T=!1,onChange:$,onClose:Q,onHighlightChange:R,onInputChange:A,onOpen:j,open:D,openOnFocus:M=!1,options:I,readOnly:z=!1,selectOnFocus:W=!e.freeSolo,value:N}=e,L=nZ(S);let F=k;F=e=>{const t=k(e);return"string"!=typeof t?String(t):t};const U=c.useRef(!1),X=c.useRef(!0),q=c.useRef(null),B=c.useRef(null),[V,Y]=c.useState(null),[Z,G]=c.useState(-1),H=i?0:-1,K=c.useRef(H),[J,ee]=kQt({controlled:N,default:d,name:u}),[te,ne]=kQt({controlled:E,default:"",name:u,state:"inputValue"}),[re,ie]=c.useState(!1),oe=c.useCallback(((e,t)=>{if(!(T?J.length!O||!(T?J:[J]).some((t=>null!==t&&C(e,t))))),{inputValue:ce&&le?"":te,getOptionLabel:F}):[],he=(e=>{const t=c.useRef({});return c.useEffect((()=>{t.current=e})),t.current})({filteredOptions:fe,value:J,inputValue:te});c.useEffect((()=>{const e=J!==he.value;re&&!e||y&&!e||oe(null,J)}),[J,oe,re,he.value,y]);const pe=ae&&fe.length>0&&!z,me=vM((e=>{-1===e?q.current.focus():V.querySelector(`[data-tag-index="${e}"]`).focus()}));c.useEffect((()=>{T&&Z>J.length-1&&(G(-1),me(-1))}),[J,T,Z,me]);const ge=vM((({event:e,index:t,reason:r="auto"})=>{if(K.current=t,-1===t?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${L}-option-${t}`),R&&R(e,-1===t?null:fe[t],r),!B.current)return;const i=B.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let o=B.current;if("listbox"!==B.current.getAttribute("role")&&(o=B.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===t)return void(o.scrollTop=0);const a=B.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(x?1.3:0){if(!de)return;const o=function(e,t){if(!B.current||e<0||e>=fe.length)return-1;let n=e;for(;;){const r=B.current.querySelector(`[data-option-index="${n}"]`),i=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if(n="next"===t?(n+1)%fe.length:(n-1+fe.length)%fe.length,n===e)return-1}}((()=>{const e=fe.length-1;if("reset"===t)return H;if("start"===t)return 0;if("end"===t)return e;const n=K.current+t;return n<0?-1===n&&P?-1:g&&-1!==K.current||Math.abs(t)>1?0:e:n>e?n===e+1&&P?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ge({index:o,reason:i,event:e}),r&&"reset"!==t)if(-1===o)q.current.value=te;else{const e=F(fe[o]);q.current.value=e,0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&q.current.setSelectionRange(te.length,e.length)}})),Oe=c.useCallback((()=>{if(!de)return;if((()=>{if(-1!==K.current&&he.filteredOptions&&he.filteredOptions.length!==fe.length&&he.inputValue===te&&(T?J.length===he.value.length&&he.value.every(((e,t)=>F(J[t])===F(e))):(e=he.value,t=J,(e?F(e):"")===(t?F(t):"")))){const e=he.filteredOptions[K.current];if(e&&fe.some((t=>F(t)===F(e))))return!0}var e,t;return!1})())return;const e=T?J[0]:J;if(0!==fe.length&&null!=e){if(B.current)if(null==e)K.current>=fe.length-1?ge({index:fe.length-1}):ge({index:K.current});else{const t=fe[K.current];if(T&&t&&-1!==_Qt(J,(e=>C(t,e))))return;const n=_Qt(fe,(t=>C(t,e)));-1===n?ve({diff:"reset"}):ge({index:n})}}else ve({diff:"reset"})}),[fe.length,!T&&J,O,ve,ge,de,te,T]),ye=vM((e=>{JD(B,e),e&&Oe()}));c.useEffect((()=>{Oe()}),[Oe]);const be=e=>{ae||(se(!0),ue(!0),j&&j(e))},we=(e,t)=>{ae&&(se(!1),Q&&Q(e,t))},ke=(e,t,n,r)=>{if(T){if(J.length===t.length&&J.every(((e,n)=>e===t[n])))return}else if(J===t)return;$&&$(e,t,n,r),ee(t)},xe=c.useRef(!1),_e=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(T){o=Array.isArray(J)?J.slice():[];const e=_Qt(o,(e=>C(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}oe(e,o),ke(e,o,i,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||we(e,i),(!0===a||"touch"===a&&xe.current||"mouse"===a&&!xe.current)&&q.current.blur()},Se=(e,t)=>{if(!T)return;""===te&&we(e,"toggleInput");let n=Z;-1===Z?""===te&&"previous"===t&&(n=J.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===J.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===J.length||"previous"===t&&-1===n)return-1;const e=V.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),G(n),me(n)},Pe=e=>{U.current=!0,ne(""),A&&A(e,"","clear"),ke(e,T?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Z&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(G(-1),me(-1)),229!==t.which))switch(t.key){case"Home":de&&_&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&_&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"ArrowLeft":Se(t,"previous");break;case"ArrowRight":Se(t,"next");break;case"Enter":if(-1!==K.current&&de){const e=fe[K.current],n=!!b&&b(e);if(t.preventDefault(),n)return;_e(t,e,"selectOption"),r&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else y&&""!==te&&!1===ce&&(T&&t.preventDefault(),_e(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):l&&(""!==te||T&&J.length>0)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(T&&!z&&""===te&&J.length>0){const e=-1===Z?J.length-1:Z,n=J.slice();n.splice(e,1),ke(t,n,"removeOption",{option:J[e]})}break;case"Delete":if(T&&!z&&""===te&&J.length>0&&-1!==Z){const e=Z,n=J.slice();n.splice(e,1),ke(t,n,"removeOption",{option:J[e]})}}},Ce=e=>{ie(!0),M&&!U.current&&be(e)},Te=e=>{t(B)?q.current.focus():(ie(!1),X.current=!0,U.current=!1,o&&-1!==K.current&&de?_e(e,fe[K.current],"blur"):o&&y&&""!==te?_e(e,te,"blur","freeSolo"):s&&oe(e,J),we(e,"blur"))},$e=e=>{const t=e.target.value;te!==t&&(ne(t),ue(!1),A&&A(e,t,"input")),""===t?f||T||ke(e,null,"clear"):be(e)},Qe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));K.current!==t&&ge({event:e,index:t,reason:"mouse"})},Re=e=>{ge({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),xe.current=!0},Ae=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));_e(e,fe[t],"selectOption"),xe.current=!1},je=e=>t=>{const n=J.slice();n.splice(e,1),ke(t,n,"removeOption",{option:J[e]})},De=e=>{ae?we(e,"toggleInput"):be(e)},Me=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==L&&e.preventDefault()},Ie=e=>{e.currentTarget.contains(e.target)&&(q.current.focus(),W&&X.current&&q.current.selectionEnd-q.current.selectionStart==0&&q.current.select(),X.current=!1)},ze=e=>{p||""!==te&&ae||De(e)};let We=y&&te.length>0;We=We||(T?J.length>0:null!==J);let Ne=fe;return x&&(new Map,Ne=fe.reduce(((e,t,n)=>{const r=x(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),p&&re&&Te(),{getRootProps:(e={})=>HD({"aria-owns":pe?`${L}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:Me,onClick:Ie}),getInputLabelProps:()=>({id:`${L}-label`,htmlFor:L}),getInputProps:()=>({id:L,value:te,onBlur:Te,onFocus:Ce,onChange:$e,onMouseDown:ze,"aria-activedescendant":de?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pe?`${L}-listbox`:void 0,"aria-expanded":pe,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:De}),getTagProps:({index:e})=>HD({key:e,"data-tag-index":e,tabIndex:-1},!z&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${L}-listbox`,"aria-labelledby":`${L}-label`,ref:ye,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(T?J:[J]).some((e=>null!=e&&C(t,e))),i=!!b&&b(t);return{key:null!=(n=null==w?void 0:w(t))?n:F(t),tabIndex:-1,role:"option",id:`${L}-option-${e}`,onMouseMove:Qe,onClick:Ae,onTouchStart:Re,"data-option-index":e,"aria-disabled":i,"aria-selected":r}},id:L,inputValue:te,value:J,dirty:We,expanded:de&&V,popupOpen:de,focused:re||-1!==Z,anchorEl:V,setAnchorEl:Y,focusedTag:Z,groupedOptions:Ne}}function CQt(){return CQt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[u,d]=(0,c.useState)(""),f=y0(l,200),h=(0,c.useCallback)((e=>{d(e),f(e)}),[f]),p=(0,c.useCallback)((e=>{if(null===e)return Array.isArray(t)?void s([]):void s(void 0);s("value"in e?e.value:e.map((e=>e.value)))}),[s,t]),m=(0,c.useCallback)((e=>{e.stopPropagation(),s(Array.isArray(t)?[]:void 0),d(""),f("")}),[f,s,t]),g=(0,c.useMemo)((()=>n.map($Qt)),[n]),v=(0,c.useMemo)((()=>g.reduce(((e,t)=>(e[t.value]=t,e)),{})),[g]),O=(0,c.useMemo)((()=>ze(t)?t:"string"==typeof t?v[t]:t.map((e=>v[e])).filter((e=>Boolean(e)))),[v,t]),{getRootProps:y,getInputProps:b,getListboxProps:w,getOptionProps:k,groupedOptions:x,focused:_,popupOpen:S,anchorEl:P,setAnchorEl:E}=EQt({options:g,value:O,inputValue:u,multiple:Array.isArray(t),disabled:r,openOnFocus:!0,onChange:(e,t)=>p(t),onInputChange:(e,t)=>h(t),filterOptions:e=>e,clearOnBlur:!1,clearOnEscape:!1}),C=GN((0,c.useRef)(),E),T=b().ref,$=GN(T,o),Q=(0,c.useCallback)((()=>{var e,t;null===(e=T.current)||void 0===e||e.blur(),null===(t=T.current)||void 0===t||t.click()}),[T]),R=null==P?void 0:P.clientWidth;return c.createElement(c.Fragment,null,c.createElement("div",CQt({},y(),{ref:C,className:qD(TQt.root,_&&TQt.focused,r&&TQt.disabled),"data-testid":"autocomplete"}),c.createElement("div",{className:TQt["input-wrapper"]},e,c.createElement("input",CQt({},b(),{ref:$,className:TQt.input,"data-testid":"autocomplete-input"}))),c.createElement("div",{className:TQt["button-wrapper"]},a,c.createElement(FN,{icon:zZ,variant:"text",size:"small",disabled:r,onClick:Q,rootClassName:TQt.button,iconClassName:TQt["button-icon"],"aria-label":"open options"}),i?null:c.createElement(FN,{icon:yG,variant:"text",size:"small",disabled:r,onClick:m,rootClassName:TQt.button,iconClassName:TQt["button-icon"],"aria-label":"clear"}))),P&&c.createElement(xY,{open:S,anchorEl:P,style:{width:R},className:TQt.popper},c.createElement("ul",CQt({},w(),{className:qD(TQt.options,"CMS_Scrollbar_root","CMS_Scrollbar_secondary")}),x.length>0?x.map(((e,n)=>{const{label:r,value:i}=$Qt(e),o=Array.isArray(t)?t.includes(i):t===i;return c.createElement("li",CQt({},k({option:e,index:n}),{key:n,className:qD(TQt.option,o&&TQt["option-selected"]),"data-testid":`autocomplete-option-${i}`}),c.createElement("span",{className:TQt["option-label"]},r),o?c.createElement("span",{className:TQt.checkmark},c.createElement(TH,{className:TQt["checkmark-icon"],"aria-hidden":"true"})):null)})):c.createElement("div",{className:TQt.nothing},"Nothing found."))))},RQt=UD("WidgetRelation",["root","error","required","disabled","for-single-list","values","loading"]),AQt=({value:e,field:t,duplicate:n,config:r,locale:i,label:o,errors:a,hasErrors:s,disabled:l,forSingleList:u,onChange:d,entry:f})=>{const[h,p]=(0,c.useState)(e),m=(0,c.useMemo)((()=>n?e:h),[h,n,e]),[g,v]=(0,c.useState)([]),O=pz((e=>tI(e,t.collection))),y=(0,c.useMemo)((()=>IP(O,f.slug)),[f.slug,O]),b=(0,c.useMemo)((()=>{var e;return null!==(e=t.multiple)&&void 0!==e&&e}),[t.multiple]),[w,k]=(0,c.useState)([]),[x,_]=(0,c.useState)(null),S=(0,c.useMemo)((()=>!x),[x]),P=(0,c.useCallback)((e=>{if(!x)return;const n=t.search_fields,r=t.file,o=t.options_length||20;let a;if(r)a=iC(x.find((e=>e.slug===r)),n,e);else{const t=$C(x,n);a=QC(be.filter(e,t,{extract:e=>CC(e.field,e)}).sort(oC).map((e=>e.original)))}let s=wQt()(zJ(a,t,i,y),(e=>e.value));void 0!==o&&o>0&&(s=s.slice(0,o)),k(s)}),[x,t,i,y]);(0,c.useEffect)((()=>{if(!S||!O)return;let n=!0;return(async()=>{const o=DC(r),a=await o.listAllEntries(O,r);if(n){_(a);const n=zJ(a,t,i,y);if(e){const t=n.reduce(((e,t)=>(e[t.value]=t,e)),{}),r="string"==typeof e?e in t?[e]:[]:e.filter((e=>e&&e in t)),i=r.map((e=>t[e]));v(i)}k(n)}})(),()=>{n=!1}}),[O,r,S,t,i,y]);const E=(0,c.useMemo)((()=>{let e=function(e,t){return wQt()(e.concat(t),(e=>e.value))}(g,w);const n=t.options_length||20;return void 0!==n&&n>0&&(e=e.slice(0,n)),e}),[t.options_length,g,w]),C=(0,c.useMemo)((()=>E.reduce(((e,t)=>(e[t.value]=t,e)),{})),[E]),T=(0,c.useMemo)((()=>{let e=WJ(m,E,b);return b&&!e&&(e=[]),e}),[m,b,E]),$=(0,c.useRef)(null),Q=(0,c.useCallback)((e=>{if(!e)return p(e),void d(e);if(Array.isArray(e)){const t=e.filter((e=>e&&e in C)),n=t.map((e=>C[e]));v(n),p(t),d(t)}else{if(!(e in C))return p(null),void d(null);v([C[e]]),p(e),d(e)}}),[d,C]),R=(0,c.useMemo)((()=>{var e;return null===(e=t.required)||void 0===e||e}),[t.required]);return c.createElement(Mfe,{inputRef:$,label:o,errors:a,noPadding:!s,hint:t.hint,forSingleList:u,cursor:"text",disabled:l,rootClassName:qD(RQt.root,l&&RQt.disabled,!1!==t.required&&RQt.required,s&&RQt.error,u&&RQt["for-single-list"])},c.createElement(QQt,{label:Array.isArray(T)&&T.length>0?c.createElement("div",{className:RQt.values},T.map((e=>{var t;const n=C[e];return c.createElement(uJ,{key:e,noWrap:!0,disabled:l},null!==(t=null==n?void 0:n.label)&&void 0!==t?t:e)}))):null,inputRef:$,value:T,options:E,disabled:l,required:R,displayValue:e=>{if(!e||Array.isArray(e))return"";const t=C[e];return t?t.label:""},endAdornment:S?c.createElement(eK,{key:"loading-indicator",className:RQt.loading,"data-testid":"relation-loading-indicator",size:"small"}):null,onQuery:P,onChange:Q}))},jQt=UD("WidgetRelationPreview",["root"]),DQt=({value:e})=>c.createElement("div",{className:jQt.root},e),MQt={properties:{default:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},collection:{type:"string"},value_field:{type:"string"},search_fields:{type:"array",minItems:1,items:{type:"string"}},file:{type:"string"},display_fields:{type:"array",minItems:1,items:{type:"string"}},multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},options_length:{type:"integer"}},oneOf:[{required:["collection","value_field","search_fields"]},{required:["collection","valueField","searchFields"]}]},IQt=({field:e,value:t,t:n})=>{var r;const i=e.min,o=e.max;if(!e.multiple||"string"==typeof t)return!1;return UE(n,null!==(r=e.label)&&void 0!==r?r:e.name,t,i,o)||!1},zQt=function(){return{name:"relation",controlComponent:AQt,previewComponent:DQt,options:{validator:IQt,schema:MQt}}},WQt={properties:{default:{oneOf:[{type:"string"},{type:"number"},{type:"array",items:{oneOf:[{type:"string"},{type:"number"}]}}]},options:{type:"array",items:{oneOf:[{type:"string"},{type:"number"},{type:"object",properties:{label:{type:"string"},value:{oneOf:[{type:"string"},{type:"number"}]}},required:["label","value"]}]}},multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"}},required:["options"]},NQt=UD("WidgetSelect",["root","error","required","disabled","for-single-list","input","values"]);function LQt(e){return"string"==typeof e||"number"==typeof e?{label:`${e}`,value:e}:e}const FQt=({label:e,field:t,value:n,errors:r,hasErrors:i,disabled:o,forSingleList:a,duplicate:s,onChange:l})=>{var u,d;const[f,h]=(0,c.useState)(n),p=(0,c.useMemo)((()=>s?n:f),[f,s,n]),m=(0,c.useRef)(null),g=(0,c.useMemo)((()=>t.options),[t.options]),v=(0,c.useMemo)((()=>{var e;return null!==(e=t.multiple)&&void 0!==e&&e}),[t.multiple]),O=(0,c.useMemo)((()=>g.map(LQt).filter(Boolean)),[g]),y=(0,c.useMemo)((()=>O.reduce(((e,t)=>(e[`${t.value}`]=t,e)),{})),[O]),b=(0,c.useMemo)((()=>O.map((e=>({label:e.label,value:`${e.value}`})))),[O]),w=(0,c.useCallback)((e=>{var n,r;const i=null!==(n=t.multiple)&&void 0!==n&&n,o=i&&Array.isArray(e)?!(null!=e&&e.length):ze(e);if((null===(r=t.required)||void 0===r||r)&&o&&i)h([]),l([]);else if(o)h(""),l("");else if("string"==typeof e||"number"==typeof e){var a;const t=y[e],n=null!==(a=null==t?void 0:t.value)&&void 0!==a?a:"";h(n),l(n)}else if(i){const t=e.map((e=>{var t;const n=y[e];return null!==(t=null==n?void 0:n.value)&&void 0!==t?t:""}));h(t),l(t)}}),[t.multiple,t.required,l,y]),k=(0,c.useMemo)((()=>p?Array.isArray(p)?p.map((e=>`${e}`)):`${p}`:v?[]:""),[v,p]),[x,_]=(0,c.useState)(!1),S=(0,c.useCallback)((e=>{_(e)}),[]);return c.createElement(Mfe,{inputRef:m,label:e,errors:r,noPadding:!i,hint:t.hint,forSingleList:a,cursor:"pointer",disabled:o,disableClick:x,rootClassName:qD(NQt.root,o&&NQt.disabled,!1!==t.required&&NQt.required,i&&NQt.error,a&&NQt["for-single-list"])},c.createElement(mye,{label:Array.isArray(k)?c.createElement("div",{className:NQt.values},k.map((e=>{var t,n;const r=null!==(t=null===(n=y[e])||void 0===n?void 0:n.label)&&void 0!==t?t:e;return c.createElement(uJ,{key:e,disabled:o},r)}))):null!==(u=null===(d=y[k])||void 0===d?void 0:d.label)&&void 0!==u?u:k,ref:m,value:k,options:b,required:t.required,disabled:o,onChange:w,onOpenChange:S,rootClassName:NQt.input}))},UQt=UD("WidgetSelectPreview",["root"]),XQt=({values:e})=>c.createElement("ul",null,e.map(((e,t)=>c.createElement("li",{key:t},e)))),qQt=({value:e})=>e?c.createElement("div",{className:UQt.root},"string"==typeof e||"number"==typeof e?e:c.createElement(XQt,{values:e})):c.createElement("div",null),BQt=({field:e,value:t,t:n})=>{var r;const i=e.min,o=e.max;if(!e.multiple||"string"==typeof t)return!1;return UE(n,null!==(r=e.label)&&void 0!==r?r:e.name,t,i,o)||!1},VQt=()=>({name:"select",controlComponent:FQt,previewComponent:qQt,options:{validator:BQt,schema:WQt}}),YQt={properties:{default:{type:"string"},prefix:{type:"string"},suffix:{type:"string"}}},ZQt=UD("WidgetString",["root","error","required","disabled","for-single-list","input","with-prefix","with-suffix","prefix","suffix"]),GQt=({value:e,label:t,errors:n,hasErrors:r,disabled:i,field:o,forSingleList:a,duplicate:s,controlled:l,onChange:u})=>{const d=(0,c.useMemo)((()=>null!=e?e:""),[e]),[f,h]=(0,c.useState)(d),p=(0,c.useMemo)((()=>l||s?d:f),[l,s,d,f]),m=(0,c.useRef)(null),g=(0,c.useCallback)((e=>{u(e.target.value),h(e.target.value)}),[u]),v=(0,c.useMemo)((()=>{var e;return null!==(e=o.prefix)&&void 0!==e?e:""}),[o.prefix]),O=(0,c.useMemo)((()=>{var e;return null!==(e=o.suffix)&&void 0!==e?e:""}),[o.suffix]);return c.createElement(Mfe,{inputRef:m,label:t,errors:n,hint:o.hint,forSingleList:a,cursor:"text",disabled:i,rootClassName:qD(ZQt.root,i&&ZQt.disabled,!1!==o.required&&ZQt.required,r&&ZQt.error,a&&ZQt["for-single-list"])},c.createElement(Y0,{type:"text",inputRef:m,value:p,disabled:i,onChange:g,inputClassName:qD(ZQt.input,Ne(v)&&ZQt["with-prefix"],Ne(O)&&ZQt["with-suffix"]),startAdornment:Ne(v)?c.createElement("div",{className:ZQt.prefix},v):null,endAdornment:Ne(O)?c.createElement("div",{className:ZQt.suffix},O):null}))},HQt=UD("WidgetStringPreview",["root"]),KQt=({value:e=""})=>c.createElement("div",{className:HQt.root},e),JQt=()=>({name:"string",controlComponent:GQt,previewComponent:KQt,options:{schema:YQt}}),eRt={properties:{default:{type:"string"}}},tRt=UD("WidgetText",["root","error","required","disabled","for-single-list","input"]),nRt=({label:e,value:t,errors:n,duplicate:r,hasErrors:i,disabled:o,field:a,forSingleList:s,controlled:l,onChange:u})=>{const d=(0,c.useMemo)((()=>null!=t?t:""),[t]),[f,h]=(0,c.useState)(d),p=(0,c.useMemo)((()=>l||r?d:f),[l,r,d,f]),m=(0,c.useRef)(null),g=(0,c.useCallback)((e=>{u(e.target.value),h(e.target.value)}),[u]);return c.createElement(Mfe,{inputRef:m,label:e,errors:n,noPadding:!i,hint:a.hint,forSingleList:s,cursor:"text",disabled:o,rootClassName:qD(tRt.root,o&&tRt.disabled,!1!==a.required&&tRt.required,i&&tRt.error,s&&tRt["for-single-list"])},c.createElement(OGe,{ref:m,value:p,disabled:o,inputClassName:tRt.input,onChange:g}))},rRt=UD("WidgetTextPreview",["root"]),iRt=({value:e})=>c.createElement("div",{className:rRt.root},e),oRt=()=>({name:"text",controlComponent:nRt,previewComponent:iRt,options:{schema:eRt}}),aRt={properties:{allow_regenerate:{type:"boolean"},prefix:{type:"string"}}};var sRt=c.forwardRef((function(e,t){return c.createElement(jN,tT({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),c.createElement("path",{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}))}));sRt.displayName="Refresh";const lRt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,uRt=UD("WidgetUUID",["root","error","required","disabled","for-single-list","refresh-button","input"]),cRt=({value:e,label:t,errors:n,hasErrors:r,disabled:i,field:o,forSingleList:a,duplicate:s,controlled:l,onChange:u})=>{const[d,f]=(0,c.useState)(null!=e?e:""),h=(0,c.useMemo)((()=>l||s?null!=e?e:"":d),[l,s,e,d]),p=(0,c.useRef)(null),m=(0,c.useMemo)((()=>{var e;return null!==(e=o.prefix)&&void 0!==e?e:""}),[o.prefix]),g=Ne(m)&&h.startsWith(m)?h.replace(m,""):h,v=(0,c.useCallback)((e=>{f(e),u(e)}),[u]),O=(0,c.useCallback)((()=>{v(`${m}${PA()}`)}),[v,m]);(0,c.useEffect)((()=>{let e=!0;return!We(g)&&function(e){return"string"==typeof e&&lRt.test(e)}(g)||setTimeout((()=>{e&&O()}),100),()=>{e=!1}}),[O,g]);const y=(0,c.useMemo)((()=>{var e;return null===(e=o.allow_regenerate)||void 0===e||e}),[o.allow_regenerate]);return c.createElement(Mfe,{inputRef:p,label:t,errors:n,hint:o.hint,forSingleList:a,cursor:"text",disabled:i,endAdornment:y?c.createElement(FN,{icon:sRt,"data-testid":"generate-new-uuid",title:"Generate new UUID",onClick:O,variant:"text",rootClassName:uRt["refresh-button"],"aria-label":"generate new uuid"}):null,rootClassName:qD(uRt.root,i&&uRt.disabled,!1!==o.required&&uRt.required,r&&uRt.error,a&&uRt["for-single-list"])},c.createElement(Y0,{type:"text",inputRef:p,value:h,disabled:i,readonly:!0,inputClassName:uRt.input}))},dRt=UD("WidgetUUIDPreview",["root"]),fRt=({value:e=""})=>c.createElement("div",{className:dRt.root},e),hRt=()=>({name:"uuid",controlComponent:cRt,previewComponent:fRt,options:{schema:aRt}});function pRt(e){return wD()({},DE("en"),DE(e))}const mRt=Cj(((e,t)=>{switch(t.type){case ZT:e.isFetching=!0;break;case GT:e.user=t.payload;break;case HT:e.error=t.payload&&t.payload.toString();break;case KT:e.isFetching=!1;break;case JT:e.user=void 0,e.isFetching=!1}}),{isFetching:!1,user:void 0,error:void 0}),gRt={};function vRt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ORt(e){for(var t=1;t{const e=localStorage.getItem(ARt);if(e)try{const t=JSON.parse(e),n={};return Object.entries(t).forEach((([e,t])=>{const r={};wS()(Object.values(t),["index"]).forEach((e=>{const{key:t,direction:n}=e;r[t]={key:t,direction:n}})),n[e]=r})),n}catch(e){return{}}return{}}));function MRt(e){if(e){const t={};Object.keys(e).forEach((n=>{const r=n,i=(e[r]?Object.values(e[r]):[]).map(((e,t)=>QRt(QRt({},e),{},{index:t})));i.forEach((e=>{Lk(t,`${r}.${e.key}`,e)}))})),localStorage.setItem(ARt,JSON.stringify(t))}else localStorage.removeItem(ARt)}const IRt=TRt()((()=>{const e=localStorage.getItem(jRt);return e&&SH.includes(e)?e:(localStorage.setItem(jRt,xH),xH)}));function zRt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WRt(e){for(var t=1;t{switch(t.type){case iQ:e.isScrolling=!e.isScrolling,localStorage.setItem(YT,`${e.isScrolling}`);break;case oQ:e.isScrolling=t.payload,localStorage.setItem(YT,`${e.isScrolling}`)}}),{isScrolling:!0});function tAt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nAt(e){for(var t=1;t(e[t.name]=t,e)),{}):e},config:(e=bRt,t)=>{switch(t.type){case e$:return ORt(ORt({},e),{},{isFetching:!0});case t$:return{config:t.payload.config,originalConfig:t.payload.originalConfig,isFetching:!1,error:void 0};case n$:return ORt(ORt({},e),{},{isFetching:!1,error:t.payload.toString()});default:return e}},cursors:function(e={cursorsByType:{collectionEntries:{}}},t){switch(t.type){case s$:return{cursorsByType:{collectionEntries:kRt(kRt({},e.cursorsByType.collectionEntries),{},{[t.payload.collection]:j_.create(t.payload.cursor).store})}};case h$:case g$:case c$:{const n=kRt({},e.cursorsByType.collectionEntries);return delete n[t.payload.collection],{cursorsByType:{collectionEntries:n}}}default:return e}},editorialWorkflow:function(e=ERt,t){switch(t.type){case OQ:return SRt(SRt({},e),{},{entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:SRt(SRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isFetching:!0})})});case $Q:case RQ:case bQ:const n=SRt({},e.entries);delete n[`${t.payload.collection}.${t.payload.slug}`];const r=[...e.ids],i=r.indexOf(`${t.payload.collection}.${t.payload.slug}`);return i>=0&&r.splice(i,1),SRt(SRt({},e),{},{ids:r,entries:n});case yQ:return SRt(SRt({},e),{},{entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.entry.slug}`]:t.payload.entry})});case wQ:return SRt(SRt({},e),{},{isFetching:!0});case kQ:{const n=SRt({},e.entries);return t.payload.entries.forEach((e=>{n[`${e.collection}.${e.slug}`]=SRt(SRt({},e),{},{isFetching:!1})})),SRt(SRt({},e),{},{entries:n,ids:t.payload.entries.map((e=>e.slug))})}case xQ:return We(t.payload.slug)?e:SRt(SRt({},e),{},{entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:SRt(SRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isPersisting:!0})})});case _Q:{if(We(t.payload.slug))return e;const n=[...e.ids];return n.includes(t.payload.entry.slug)||n.push(t.payload.entry.slug),SRt(SRt({},e),{},{ids:n,entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.entry.slug}`]:SRt(SRt({},t.payload.entry),{},{isPersisting:!1})})})}case SQ:return We(t.payload.slug)?e:SRt(SRt({},e),{},{entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:SRt(SRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isPersisting:!1})})});case PQ:return SRt(SRt({},e),{},{entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:SRt(SRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isUpdatingStatus:!0})})});case EQ:return SRt(SRt({},e),{},{entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:SRt(SRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{status:t.payload.newStatus,isUpdatingStatus:!1})})});case CQ:return SRt(SRt({},e),{},{entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:SRt(SRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isUpdatingStatus:!1})})});case TQ:return SRt(SRt({},e),{},{entries:SRt(SRt({},e.entries),{},{[`${t.payload.collection}.${t.payload.slug}`]:SRt(SRt({},e.entries[`${t.payload.collection}.${t.payload.slug}`]),{},{isPublishing:!0})})});default:return e}},entries:function(e={entries:{},pages:{},sort:DRt(),viewStyle:IRt()},t){switch(t.type){case t$:{const r=t.payload.config,i={},o={},a={};for(const e of r.collections){if(e.sortable_fields&&e.sortable_fields.default){var n;const t=e.sortable_fields.default.field;i[e.name]={[t]:{key:t,direction:null!==(n=e.sortable_fields.default.direction)&&void 0!==n?n:qT}}}if(e.view_filters&&e.view_filters.default){const t=e.view_filters.default,n=e.view_filters.filters.find((e=>e.name===t)),r={};n&&(r[n.id]=QRt(QRt({},n),{},{active:!0})),a[e.name]=r}if(e.view_groups&&e.view_groups.default){const t=e.view_groups.default,n=e.view_groups.groups.find((e=>e.name===t)),r={};n&&(r[n.id]=QRt(QRt({},n),{},{active:!0})),o[e.name]=r}}return QRt(QRt({},e),{},{sort:i,group:o,filter:a})}case r$:{var r;const n=t.payload,i=`${n.collection}.${n.slug}`,o=QRt({},null!==(r=e.entries[i])&&void 0!==r?r:{});return o.isFetching=!0,QRt(QRt({},e),{},{entries:QRt(QRt({},e.entries),{},{[i]:o})})}case i$:{const n=t.payload;return QRt(QRt({},e),{},{entries:QRt(QRt({},e.entries),{},{[`${n.collection}.${n.entry.slug}`]:n.entry})})}case a$:{const n=t.payload,r=QRt({},e.pages);if(n.collection in r){var i;const e=QRt({},null!==(i=r[n.collection])&&void 0!==i?i:{});e.isFetching=!0,r[n.collection]=e}return QRt(QRt({},e),{},{pages:r})}case s$:{var o,a;const n=t.payload,r=n.entries,i=n.page,s=n.append,l=QRt({},e.entries);r.forEach((e=>{l[`${n.collection}.${e.slug}`]=QRt(QRt({},e),{},{isFetching:!1})}));const u=QRt({},e.pages);return u[n.collection]={page:null!=i?i:void 0,ids:s?[...null!==(o=null===(a=u[n.collection])||void 0===a?void 0:a.ids)&&void 0!==o?o:[],...r.map((e=>e.slug))]:[...r.map((e=>e.slug))],isFetching:!1},QRt(QRt({},e),{},{entries:l,pages:u})}case l$:{const n=QRt({},e.pages);if(t.meta.collection in n){var s;const e=QRt({},null!==(s=n[t.meta.collection])&&void 0!==s?s:{});e.isFetching=!1,n[t.meta.collection]=e}return QRt(QRt({},e),{},{pages:n})}case o$:{var l;const n=t.payload,r=`${n.collection}.${n.slug}`;return QRt(QRt({},e),{},{entries:QRt(QRt({},e.entries),{},{[r]:QRt(QRt({},null!==(l=e.entries[r])&&void 0!==l?l:{}),{},{isFetching:!1,error:n.error.message})})})}case sQ:{const n=t.payload.entries,r=QRt({},e.entries);return n.forEach((e=>{r[`${e.collection}.${e.slug}`]=QRt(QRt({},e),{},{isFetching:!1})})),QRt(QRt({},e),{},{entries:r})}case R$:{var u;const n=t.payload,r=n.collectionName,i=n.entrySlug,o=QRt({},e.entries);delete o[`${r}.${i}`];const a=QRt({},e.pages),s=QRt({},null!==(u=a[r])&&void 0!==u?u:{});return s.ids||(s.ids=[]),s.ids=s.ids.filter((e=>e!==n.entrySlug)),a[r]=s,QRt(QRt({},e),{},{entries:o,pages:a})}case u$:{var c;const n=t.payload,{collection:r,key:i,direction:o}=n,a=QRt({},e.sort);a[r]={[i]:{key:i,direction:o}};const s=QRt({},e.pages),l=QRt({},null!==(c=s[r])&&void 0!==c?c:{});return l.isFetching=!0,delete l.page,s[r]=l,MRt(a),QRt(QRt({},e),{},{sort:a,pages:s})}case g$:case h$:case c$:{const n=t.payload,{collection:r}=n,i=QRt({},e.entries);n.entries.forEach((e=>{i[`${e.collection}.${e.slug}`]=QRt(QRt({},e),{},{isFetching:!1})}));const o=QRt({},e.pages),a=n.entries.map((e=>e.slug));return o[r]={page:1,ids:a,isFetching:!1},QRt(QRt({},e),{},{entries:i,pages:o})}case d$:{var d,f;const n=t.payload,{collection:r,key:i}=n,o=QRt({},e.sort),a=QRt({},null!==(d=o[r])&&void 0!==d?d:{});delete a[i],o[r]=a;const s=QRt({},e.pages),l=QRt({},null!==(f=s[r])&&void 0!==f?f:{});return l.isFetching=!1,delete l.page,s[r]=l,MRt(o),QRt(QRt({},e),{},{sort:o,pages:s})}case f$:{var h;const n=t.payload,{collection:r,filter:i}=n;if(!i.id)return e;const o=QRt({},e.filter),a=QRt({},null!==(h=o[r])&&void 0!==h?h:{});let s;return s=i.id in a?QRt({},a[i.id]):QRt({},i),s.active=!s.active,a[i.id]=s,o[r]=a,QRt(QRt({},e),{},{filter:o})}case p$:{var p,m;const n=t.payload,{collection:r,filter:i}=n;if(!i.id)return e;const o=QRt({},e.filter),a=QRt({},null!==(p=o[r])&&void 0!==p?p:{});delete a[i.id],o[r]=a;const s=QRt({},e.pages),l=QRt({},null!==(m=s[r])&&void 0!==m?m:{});return l.isFetching=!1,s[r]=l,QRt(QRt({},e),{},{filter:o,pages:s})}case m$:{const n=t.payload,{collection:r,group:i}=n;if(!i.id)return e;const o=QRt({},e.group);let a;return a=o[r]&&i.id in o[r]?QRt({},o[r][i.id]):QRt({},i),a.active=!a.active,o[r]={[i.id]:a},QRt(QRt({},e),{},{group:o})}case v$:{var g,v;const n=t.payload,{collection:r,group:i}=n;if(!i.id)return e;const o=QRt({},e.group),a=QRt({},null!==(g=o[r])&&void 0!==g?g:{});delete a[i.id],o[r]=a;const s=QRt({},e.pages),l=QRt({},null!==(v=s[r])&&void 0!==v?v:{});return l.isFetching=!1,s[r]=l,QRt(QRt({},e),{},{group:o,pages:s})}case D$:{const n=t.payload,{style:r}=n;return(O=r)?localStorage.setItem(jRt,O):localStorage.removeItem(jRt),QRt(QRt({},e),{},{viewStyle:r})}case $$:{const n=t.payload,{collectionName:r}=n,i=QRt({},e.pages);return delete i[r],QRt(QRt({},e),{},{pages:i})}default:return e}var O},entryDraft:function(e=LRt,t){switch(t.type){case O$:{const n=WRt({},e),r=WRt(WRt({},t.payload.entry),{},{newRecord:!1}),i=t.payload.collection,o=yP(i,r.slug),a=o?o.fields:"fields"in i?i.fields:[];return WRt(WRt({},n),{},{entry:WRt(WRt({},r),{},{data:nP(a,void 0,r.data)}),original:fE()(r),fieldsErrors:{},hasChanged:!1,key:PA()})}case y$:{const n=WRt({},e);delete n.localBackup;const r=WRt(WRt({},t.payload),{},{newRecord:!0});return WRt(WRt({},n),{},{entry:r,original:fE()(r),fieldsErrors:{},hasChanged:!1,key:PA()})}case E$:{const t=e.localBackup;if(!t)return e;const n=null==t?void 0:t.entry;delete WRt({},e).localBackup;const r=WRt(WRt({},n),{},{newRecord:!(null!=n&&n.path)});return WRt(WRt({},e),{},{entry:r,original:fE()(r),fieldsErrors:{},hasChanged:!0,key:PA()})}case C$:{const n=WRt({},e);delete n.localBackup;const r=WRt(WRt({},t.payload),{},{newRecord:!0});return WRt(WRt({},n),{},{entry:r,original:fE()(r),fieldsErrors:{},hasChanged:!0,key:PA()})}case b$:return LRt;case S$:{const{entry:n}=t.payload,r={entry:n};return WRt(WRt({},e),{},{localBackup:r})}case P$:{const t=WRt({},e);return delete t.localBackup,t}case w$:{var n,r,i,o,a,s;if(!e.entry)return e;const{data:p}=t.payload,m=Lk(e,"entry.data",p);let g=!tP()(null===(n=m.entry)||void 0===n?void 0:n.meta,null===(r=m.original)||void 0===r?void 0:r.meta)||!tP()(null===(i=m.entry)||void 0===i?void 0:i.data,null===(o=m.original)||void 0===o?void 0:o.data);const v=null!==(a=null===(s=m.entry)||void 0===s?void 0:s.i18n)&&void 0!==a?a:{};for(const e in v){var l,u,c,d,f,h;g=g||!tP()(null===(l=m.entry)||void 0===l||null===(u=l.i18n)||void 0===u||null===(c=u[e])||void 0===c?void 0:c.data,null===(d=m.original)||void 0===d||null===(f=d.i18n)||void 0===f||null===(h=f[e])||void 0===h?void 0:h.data)}return WRt(WRt({},m),{},{hasChanged:!m.original||g})}case k$:{var p,m,g,v,O,y;if(!e.entry)return e;const{path:n,field:r,value:i,i18n:o,isMeta:a}=t.payload;let s=Lk(e,`entry.${(a?["meta"]:o&&tx(o.currentLocale,o.defaultLocale)||["data"]).join(".")}.${n}`,i);o&&(s=ux(s,r,o.locales,o.defaultLocale,n));let l=!tP()(null===(p=s.entry)||void 0===p?void 0:p.meta,null===(m=s.original)||void 0===m?void 0:m.meta)||!tP()(null===(g=s.entry)||void 0===g?void 0:g.data,null===(v=s.original)||void 0===v?void 0:v.data);const u=null!==(O=null===(y=s.entry)||void 0===y?void 0:y.i18n)&&void 0!==O?O:{};for(const e in u){var b,w,k,x,_,S;l=l||!tP()(null===(b=s.entry)||void 0===b||null===(w=b.i18n)||void 0===w||null===(k=w[e])||void 0===k?void 0:k.data,null===(x=s.original)||void 0===x||null===(_=x.i18n)||void 0===_||null===(S=_[e])||void 0===S?void 0:S.data)}return WRt(WRt({},s),{},{hasChanged:!s.original||l})}case x$:{const{path:n,i18n:r,isMeta:i}=t.payload,o=WRt({},e.fieldsErrors),a=`${(i?["meta"]:r&&tx(r.currentLocale,r.defaultLocale)||["data"]).join(".")}.${n}`,s=[];return Object.keys(o).forEach((e=>{(e===a||e.startsWith(a))&&s.push(e)})),s.forEach((e=>{delete o[e]})),WRt(WRt({},e),{},{fieldsErrors:o})}case _$:{const{path:n,errors:r,i18n:i,isMeta:o}=t.payload,a=WRt({},e.fieldsErrors),s=`${(o?["meta"]:i&&tx(i.currentLocale,i.defaultLocale)||["data"]).join(".")}.${n}`;return 0===r.length?delete a[s]:a[s]=t.payload.errors,WRt(WRt({},e),{},{fieldsErrors:a})}case T$:case xQ:return e.entry?WRt(WRt({},e),{},{entry:WRt(WRt({},e.entry),{},{isPersisting:!0})}):e;case Q$:case SQ:return e.entry?WRt(WRt({},e),{},{entry:WRt(WRt({},e.entry),{},{isPersisting:!1})}):e;case PQ:return e.entry?WRt(WRt({},e),{},{entry:WRt(WRt({},e.entry),{},{isUpdatingStatus:!0})}):e;case CQ:case EQ:return e.entry?WRt(WRt({},e),{},{entry:WRt(WRt({},e.entry),{},{isUpdatingStatus:!1})}):e;case TQ:return e.entry?WRt(WRt({},e),{},{entry:WRt(WRt({},e.entry),{},{isPublishing:!0})}):e;case $Q:case QQ:return e.entry?WRt(WRt({},e),{},{entry:WRt(WRt({},e.entry),{},{isPublishing:!1})}):e;case $$:case _Q:{if(!e.entry)return e;const n=WRt({},e);delete n.localBackup;const r=WRt(WRt({},e.entry),{},{slug:t.payload.slug,isPersisting:!1});return WRt(WRt({},n),{},{hasChanged:!1,entry:r,original:fE()(r)})}case R$:{if(!e.entry)return e;const t=WRt({},e);delete t.localBackup;const n=WRt(WRt({},e.entry),{},{isPersisting:!1});return WRt(WRt({},t),{},{hasChanged:!1,entry:n,original:fE()(n)})}case A$:{if(!e.entry)return e;const n=e.entry.mediaFiles.filter((e=>e.id!==t.payload.id));return n.unshift(t.payload),WRt(WRt({},e),{},{hasChanged:!0,entry:WRt(WRt({},e.entry),{},{mediaFiles:n})})}case j$:{if(!e.entry)return e;const n=e.entry.mediaFiles.filter((e=>e.id!==t.payload.id));return WRt(WRt({},e),{},{hasChanged:!0,entry:WRt(WRt({},e.entry),{},{mediaFiles:n})})}default:return e}},globalUI:(e=qRt,t)=>{if(t.type.includes("REQUEST"))return URt(URt({},e),{},{isFetching:!0});if(t.type.includes("SUCCESS")||t.type.includes("FAILURE"))return URt(URt({},e),{},{isFetching:!1});switch(t.type){case vQ:return URt(URt({},e),{},{useOpenAuthoring:!0});case gQ:return localStorage.setItem("color-theme",t.payload.toLowerCase()),URt(URt({},e),{},{theme:t.payload.toLowerCase()});default:return e}},mediaLibrary:function(e=ZRt,t){switch(t.type){case F$:{const{controlID:n,forImage:r,forFolder:i,config:o,collection:a,collectionFile:s,field:l,value:u,alt:c,replaceIndex:d,insertOptions:f}=t.payload,h=o||{};return VRt(VRt({},e),{},{isVisible:!0,forImage:Boolean(r),forFolder:Boolean(i),controlID:n,config:h,collection:a,collectionFile:s,field:l,value:u,alt:c,replaceIndex:d,insertOptions:f})}case U$:return VRt(VRt({},e),{},{isVisible:!1,forImage:!1,forFolder:!1,controlID:void 0,config:void 0,collection:void 0,collectionFile:void 0,field:void 0,value:void 0,alt:void 0,replaceIndex:void 0,insertOptions:void 0});case X$:{const{mediaPath:n,alt:r}=t.payload,i=e.controlID;if(!i)return e;const o=e.value;if(!Array.isArray(o))return VRt(VRt({},e),{},{controlMedia:VRt(VRt({},e.controlMedia),{},{[i]:{path:n,alt:r}})});const a=e.replaceIndex,s=Array.isArray(n)?n:[n],l=o;return"number"==typeof a?l[a]=s[0]:l.push(...s),VRt(VRt({},e),{},{controlMedia:VRt(VRt({},e.controlMedia),{},{[i]:{path:l}})})}case q$:{const n=t.payload.controlID,r=VRt({},e.controlMedia);return delete r[n],VRt(VRt({},e),{},{controlMedia:r})}case B$:return VRt(VRt({},e),{},{isLoading:!0,isPaginating:t.payload.page>1});case V$:{var n;const{files:r=[],page:i,canPaginate:o,dynamicSearch:a,dynamicSearchQuery:s}=t.payload,l=r.map((e=>VRt(VRt({},e),{},{key:PA()})));return VRt(VRt({},e),{},{isLoading:!1,isPaginating:!1,page:null!=i?i:1,hasNextPage:Boolean(o&&r.length>0),dynamicSearch:Boolean(a),dynamicSearchQuery:null!=s?s:"",dynamicSearchActive:!!s,files:i&&i>1?(null!==(n=e.files)&&void 0!==n?n:[]).concat(l):l})}case Y$:return VRt(VRt({},e),{},{isLoading:!1});case Z$:return VRt(VRt({},e),{},{isPersisting:!0});case G$:{const{file:n,currentFolder:r}=t.payload,i=VRt(VRt({},n),{},{key:PA()}),o=e.files,a=(0,Re.dirname)(n.path);if(!r||a===r){const t=[i,...o];return VRt(VRt({},e),{},{files:t,isPersisting:!1})}if(!o.find((e=>e.isDirectory&&e.path===a))){const t=[{name:(0,Re.basename)(a),id:a,path:a,isDirectory:!0},...o];return VRt(VRt({},e),{},{files:t,isPersisting:!1})}return VRt(VRt({},e),{},{isPersisting:!1})}case H$:return VRt(VRt({},e),{},{isPersisting:!1});case K$:return VRt(VRt({},e),{},{isDeleting:!0});case J$:{const{file:n}=t.payload,{key:r,id:i}=n,o=e.files.filter((e=>r?e.key!==r:e.id!==i)),a=VRt({},e.displayURLs);return delete a[i],VRt(VRt({},e),{},{files:o,displayURLs:a,isDeleting:!1})}case eQ:return VRt(VRt({},e),{},{isDeleting:!1});case tQ:return VRt(VRt({},e),{},{displayURLs:VRt(VRt({},e.displayURLs),{},{[t.payload.key]:VRt(VRt({},e.displayURLs[t.payload.key]),{},{isFetching:!0})})});case nQ:return VRt(VRt({},e),{},{displayURLs:VRt(VRt({},e.displayURLs),{},{[t.payload.key]:{url:t.payload.url,isFetching:!1}})});case rQ:{var r;const n=VRt({},e.displayURLs[t.payload.key]);return delete n.url,n.isFetching=!1,n.err=null===(r=t.payload.err)||void 0===r||r,VRt(VRt({},e),{},{displayURLs:VRt(VRt({},e.displayURLs),{},{[t.payload.key]:n})})}default:return e}},medias:(e=JRt,t)=>{switch(t.type){case M$:{const n=t.payload,r=HRt({},e);return n.forEach((e=>{r[e.path]={asset:e,isLoading:!1,error:null}})),r}case I$:{const n=t.payload;return HRt(HRt({},e),{},{[n.path]:{asset:n,isLoading:!1,error:null}})}case z$:{const n=t.payload,r=HRt({},e);return delete r[n],r}case W$:{const{path:n}=t.payload;return HRt(HRt({},e),{},{[n]:HRt(HRt({},e[n]),{},{isLoading:!0})})}case N$:{const{path:n}=t.payload;return HRt(HRt({},e),{},{[n]:HRt(HRt({},e[n]),{},{isLoading:!1,error:null})})}case L$:{const{path:n,error:r}=t.payload;return HRt(HRt({},e),{},{[n]:HRt(HRt({},e[n]),{},{isLoading:!1,error:r})})}default:return e}},scroll:eAt,search:(e=iAt,t)=>{switch(t.type){case fQ:return iAt;case aQ:{const{page:n,searchTerm:r,searchCollections:i}=t.payload;return nAt(nAt({},e),{},{isFetching:!0,term:r,collections:i,page:n})}case sQ:{const{entries:n,page:r}=t.payload,i=n.map((e=>({collection:e.collection,slug:e.slug})));return nAt(nAt({},e),{},{isFetching:!1,page:r,entryIds:!r||isNaN(r)||0===r?i:e.entryIds.concat(i)})}case dQ:case lQ:{const{error:n}=t.payload;return nAt(nAt({},e),{},{isFetching:!1,error:n})}case uQ:{const{searchTerm:n,request:r}=t.payload,i=[...e.requests];return r&&i.push(r),nAt(nAt({},e),{},{isFetching:!0,term:n,requests:i})}case"CLEAR_REQUESTS":e.requests=e.requests.filter((e=>e.expires>=new Date));break;case cQ:return nAt(nAt({},e),{},{isFetching:!1})}return e},status:Cj(((e,t)=>{switch(t.type){case hQ:e.isFetching=!0;break;case pQ:e.isFetching=!1,e.status=t.payload.status;break;case mQ:e.isFetching=!1,e.error=t.payload.error}}),{isFetching:!1,status:{auth:{status:!0},api:{status:!0,statusPage:""}},error:void 0})};function aAt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sAt(e){for(var t=1;t{let n=[];return r=>i=>{if(!i)return null;if("WAIT_UNTIL_ACTION"===(null==i?void 0:i.type))return n.push(i),null;const o=r(i);return function(r){const i=[],o=[];for(const e of n)e.predicate(r)?i.push(e):o.push(e);n=o;for(const n of i)n.run(e,t,r)}(i),o}},cAt=function(e){var t,n=function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new dA);return n&&(function(e){return"boolean"==typeof e}(n)?r.push(GR):r.push(GR.withExtraArgument(n.extraArgument))),r}(e)},r=e||{},i=r.reducer,o=void 0===i?void 0:i,a=r.middleware,s=void 0===a?n():a,l=r.devTools,u=void 0===l||l,c=r.preloadedState,d=void 0===c?void 0:c,f=r.enhancers,h=void 0===f?void 0:f;if("function"==typeof o)t=o;else{if(!function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=qR(o)}var p=s;"function"==typeof p&&(p=p(n));var m=VR.apply(void 0,p),g=BR;u&&(g=uA(sA({trace:!1},"object"==typeof u&&u)));var v=new fA(m),O=v;return Array.isArray(h)?O=JR([m],h):"function"==typeof h&&(O=h(v)),XR(t,d,g.apply(void 0,O))}({reducer:qR(sAt(sAt({},oAt),{},{snackbar:AA})),middleware:e=>e({immutableCheck:!1,serializableCheck:!1}).concat(uAt)}),dAt="nc-root";NC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0;const fAt=xT((function(e){return{locale:(t=e.config.config,null!==(n=null==t?void 0:t.locale)&&void 0!==n?n:"en"),config:e.config.config};var t,n}))((({locale:e,config:t})=>{const n=LD();return function({name:e,content:t}){(0,c.useEffect)((()=>{const n=document.querySelector("head");if(!n)return;const r=document.createElement("meta");return r.setAttribute("name",e),r.setAttribute("content",t),n.appendChild(r),()=>{n.removeChild(r)}}),[t,e])}({name:"viewport",content:"width=device-width, initial-scale=1.0"}),t?c.createElement(IC.oc,{locale:e,messages:pRt(e)},c.createElement(l4,{showBackup:!0,config:t,t:n},c.createElement(IT,null,c.createElement(K9,null)))):null}));function hAt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class pAt{constructor(e,t){hAt(this,"unpublishedEntries",void 0),hAt(this,"unpublishedEntry",void 0),hAt(this,"unpublishedEntryDataFile",void 0),hAt(this,"unpublishedEntryMediaFile",void 0),hAt(this,"updateUnpublishedEntryStatus",void 0),hAt(this,"publishUnpublishedEntry",void 0),hAt(this,"deleteUnpublishedEntry",void 0),hAt(this,"getDeployPreview",void 0)}}function mAt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gAt(e){for(var t=1;t{jE(e,loe[e])}))),cAt.dispatch(gD(t,(function(e){"git-gateway"!==e.backend.name&&cAt.dispatch(((e,t)=>{const n=t();if(!n.config.config)return;const r=DC(n.config.config);return e(MA()),Promise.resolve(r.currentUser()).then((t=>{t?(t.useOpenAuthoring&&e(jA()),e(IA(t))):e({type:KT})})).catch((t=>{console.error(t),t instanceof Error&&e(zA(t)),e(WA())}))}))}))),(0,MC.s)(function(){const e=document.getElementById(dAt);if(e)return e;const t=document.createElement("div");return t.id=dAt,document.body.appendChild(t),t}()).render(c.createElement(r,null))},currentBackend:DC});"undefined"!=typeof window&&(window.CMS=OAt,window.useState=window.useState||c.useState,window.useMemo=window.useMemo||c.useMemo,window.useEffect=window.useEffect||c.useEffect,window.useCallback=window.useCallback||c.useCallback,window.h=window.h||c.createElement,window.useEntries=window.useEntries||yz,window.useFolderSupport=window.useFolderSupport||bz,window.useHasChildErrors=window.useHasChildErrors||wz,window.useIsMediaAsset=window.useIsMediaAsset||xz,window.useMediaAsset=window.useMediaAsset||Sz,window.useMediaFiles=window.useMediaFiles||Tz,window.useMediaInsert=window.useMediaInsert||$z,window.useUUID=window.useUUID||Wz,window.useData=window.useData||cz,window.useNavigate=window.useNavigate||ne,window.useTheme=window.useTheme||f4);const yAt=OAt})(),__webpack_exports__})())); \ No newline at end of file